]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/CyaSSL/configure
Update CyaSSL to latest version.
[freertos] / FreeRTOS-Plus / Source / CyaSSL / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cyassl 3.1.0.
4 #
5 # Report bugs to <https://github.com/cyassl/cyassl/issues>.
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
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || 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: https://github.com/cyassl/cyassl/issues about your
279 $0: system, 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='cyassl'
592 PACKAGE_TARNAME='cyassl'
593 PACKAGE_VERSION='3.1.0'
594 PACKAGE_STRING='cyassl 3.1.0'
595 PACKAGE_BUGREPORT='https://github.com/cyassl/cyassl/issues'
596 PACKAGE_URL='http://www.wolfssl.com'
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 LIBOBJS
638 INC_AMINCLUDE
639 AMINCLUDE
640 GENERIC_CONFIG
641 AM_LDFLAGS
642 AM_CFLAGS
643 AM_CPPFLAGS
644 HEX_VERSION
645 IS_VCS_CHECKOUT_FALSE
646 IS_VCS_CHECKOUT_TRUE
647 BUILD_MCAPI_FALSE
648 BUILD_MCAPI_TRUE
649 BUILD_LIBZ_FALSE
650 BUILD_LIBZ_TRUE
651 BUILD_EXAMPLES_FALSE
652 BUILD_EXAMPLES_TRUE
653 BUILD_SLOWMATH_FALSE
654 BUILD_SLOWMATH_TRUE
655 BUILD_FASTMATH_FALSE
656 BUILD_FASTMATH_TRUE
657 USE_VALGRIND_FALSE
658 USE_VALGRIND_TRUE
659 HAVE_VALGRIND
660 BUILD_PKCS7_FALSE
661 BUILD_PKCS7_TRUE
662 BUILD_NTRU_FALSE
663 BUILD_NTRU_TRUE
664 BUILD_CRL_MONITOR_FALSE
665 BUILD_CRL_MONITOR_TRUE
666 BUILD_CRL_FALSE
667 BUILD_CRL_TRUE
668 HAVE_OPENSSL_CMD
669 BUILD_OCSP_FALSE
670 BUILD_OCSP_TRUE
671 BUILD_INLINE_FALSE
672 BUILD_INLINE_TRUE
673 BUILD_FIPS_FALSE
674 BUILD_FIPS_TRUE
675 BUILD_RABBIT_FALSE
676 BUILD_RABBIT_TRUE
677 BUILD_HC128_FALSE
678 BUILD_HC128_TRUE
679 BUILD_PWDBASED_FALSE
680 BUILD_PWDBASED_TRUE
681 BUILD_MD4_FALSE
682 BUILD_MD4_TRUE
683 BUILD_SHA_FALSE
684 BUILD_SHA_TRUE
685 BUILD_MD5_FALSE
686 BUILD_MD5_TRUE
687 BUILD_RC4_FALSE
688 BUILD_RC4_TRUE
689 BUILD_DES3_FALSE
690 BUILD_DES3_TRUE
691 BUILD_CODING_FALSE
692 BUILD_CODING_TRUE
693 BUILD_AES_FALSE
694 BUILD_AES_TRUE
695 BUILD_ASN_FALSE
696 BUILD_ASN_TRUE
697 BUILD_DH_FALSE
698 BUILD_DH_TRUE
699 BUILD_RSA_FALSE
700 BUILD_RSA_TRUE
701 BUILD_MEMORY_FALSE
702 BUILD_MEMORY_TRUE
703 BUILD_ECC_FALSE
704 BUILD_ECC_TRUE
705 BUILD_DSA_FALSE
706 BUILD_DSA_TRUE
707 BUILD_SHA512_FALSE
708 BUILD_SHA512_TRUE
709 BUILD_BLAKE2_FALSE
710 BUILD_BLAKE2_TRUE
711 BUILD_RIPEMD_FALSE
712 BUILD_RIPEMD_TRUE
713 BUILD_MD2_FALSE
714 BUILD_MD2_TRUE
715 BUILD_CAMELLIA_FALSE
716 BUILD_CAMELLIA_TRUE
717 BUILD_AESNI_FALSE
718 BUILD_AESNI_TRUE
719 BUILD_AESCCM_FALSE
720 BUILD_AESCCM_TRUE
721 BUILD_AESGCM_FALSE
722 BUILD_AESGCM_TRUE
723 BUILD_SNIFFTEST_FALSE
724 BUILD_SNIFFTEST_TRUE
725 BUILD_SNIFFER_FALSE
726 BUILD_SNIFFER_TRUE
727 BUILD_LEANPSK_FALSE
728 BUILD_LEANPSK_TRUE
729 PTHREAD_CFLAGS
730 PTHREAD_LIBS
731 PTHREAD_CC
732 ax_pthread_config
733 DEBUG_FALSE
734 DEBUG_TRUE
735 MCHECK
736 LIBM
737 am__fastdepCCAS_FALSE
738 am__fastdepCCAS_TRUE
739 CCASDEPMODE
740 CCASFLAGS
741 CCAS
742 HAVE_VISIBILITY
743 CFLAG_VISIBILITY
744 CXXCPP
745 am__fastdepCXX_FALSE
746 am__fastdepCXX_TRUE
747 CXXDEPMODE
748 ac_ct_CXX
749 CXXFLAGS
750 CXX
751 CPP
752 OTOOL64
753 OTOOL
754 LIPO
755 NMEDIT
756 DSYMUTIL
757 MANIFEST_TOOL
758 RANLIB
759 ac_ct_AR
760 AR
761 DLLTOOL
762 OBJDUMP
763 LN_S
764 NM
765 ac_ct_DUMPBIN
766 DUMPBIN
767 LD
768 FGREP
769 EGREP
770 GREP
771 SED
772 am__fastdepCC_FALSE
773 am__fastdepCC_TRUE
774 CCDEPMODE
775 am__nodep
776 AMDEPBACKSLASH
777 AMDEP_FALSE
778 AMDEP_TRUE
779 am__quote
780 am__include
781 DEPDIR
782 OBJEXT
783 EXEEXT
784 ac_ct_CC
785 CPPFLAGS
786 LDFLAGS
787 CFLAGS
788 CC
789 LIBTOOL
790 CYASSL_LIBRARY_VERSION
791 AM_BACKSLASH
792 AM_DEFAULT_VERBOSITY
793 AM_DEFAULT_V
794 AM_V
795 am__untar
796 am__tar
797 AMTAR
798 am__leading_dot
799 SET_MAKE
800 AWK
801 mkdir_p
802 MKDIR_P
803 INSTALL_STRIP_PROGRAM
804 STRIP
805 install_sh
806 MAKEINFO
807 AUTOHEADER
808 AUTOMAKE
809 AUTOCONF
810 ACLOCAL
811 VERSION
812 PACKAGE
813 CYGPATH_W
814 am__isrc
815 INSTALL_DATA
816 INSTALL_SCRIPT
817 INSTALL_PROGRAM
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_silent_rules
868 enable_static
869 enable_shared
870 with_pic
871 enable_fast_install
872 enable_dependency_tracking
873 with_gnu_ld
874 with_sysroot
875 enable_libtool_lock
876 enable_debug
877 enable_singlethreaded
878 enable_dtls
879 enable_opensslextra
880 enable_ipv6
881 enable_fortress
882 enable_bump
883 enable_leanpsk
884 enable_bigcache
885 enable_hugecache
886 enable_smallcache
887 enable_savesession
888 enable_savecert
889 enable_atomicuser
890 enable_pkcallbacks
891 enable_sniffer
892 enable_aesgcm
893 enable_aesccm
894 enable_aesni
895 enable_camellia
896 enable_md2
897 enable_nullcipher
898 enable_ripemd
899 enable_blake2
900 enable_sha512
901 enable_sessioncerts
902 enable_keygen
903 enable_certgen
904 enable_certreq
905 enable_sep
906 enable_hkdf
907 enable_dsa
908 enable_ecc
909 enable_fpecc
910 enable_eccencrypt
911 enable_psk
912 enable_errorstrings
913 enable_oldtls
914 enable_stacksize
915 enable_memory
916 enable_rsa
917 enable_dh
918 enable_asn
919 enable_aes
920 enable_coding
921 enable_des3
922 enable_arc4
923 enable_md5
924 enable_sha
925 enable_md4
926 enable_webserver
927 enable_pwdbased
928 enable_hc128
929 enable_rabbit
930 enable_fips
931 enable_hashdrbg
932 enable_filesystem
933 enable_inline
934 enable_ocsp
935 enable_crl
936 enable_crl_monitor
937 with_ntru
938 enable_sni
939 enable_maxfragment
940 enable_truncatedhmac
941 enable_renegotiation_indication
942 enable_supportedcurves
943 enable_tlsx
944 enable_pkcs7
945 enable_scep
946 enable_smallstack
947 enable_valgrind
948 enable_testcert
949 enable_iopool
950 enable_certservice
951 enable_fastmath
952 enable_fasthugemath
953 enable_examples
954 with_libz
955 with_cavium
956 enable_mcapi
957 enable_jobserver
958 '
959       ac_precious_vars='build_alias
960 host_alias
961 target_alias
962 CC
963 CFLAGS
964 LDFLAGS
965 LIBS
966 CPPFLAGS
967 CPP
968 CXX
969 CXXFLAGS
970 CCC
971 CXXCPP
972 CCAS
973 CCASFLAGS'
974
975
976 # Initialize some variables set by options.
977 ac_init_help=
978 ac_init_version=false
979 ac_unrecognized_opts=
980 ac_unrecognized_sep=
981 # The variables have the same names as the options, with
982 # dashes changed to underlines.
983 cache_file=/dev/null
984 exec_prefix=NONE
985 no_create=
986 no_recursion=
987 prefix=NONE
988 program_prefix=NONE
989 program_suffix=NONE
990 program_transform_name=s,x,x,
991 silent=
992 site=
993 srcdir=
994 verbose=
995 x_includes=NONE
996 x_libraries=NONE
997
998 # Installation directory options.
999 # These are left unexpanded so users can "make install exec_prefix=/foo"
1000 # and all the variables that are supposed to be based on exec_prefix
1001 # by default will actually change.
1002 # Use braces instead of parens because sh, perl, etc. also accept them.
1003 # (The list follows the same order as the GNU Coding Standards.)
1004 bindir='${exec_prefix}/bin'
1005 sbindir='${exec_prefix}/sbin'
1006 libexecdir='${exec_prefix}/libexec'
1007 datarootdir='${prefix}/share'
1008 datadir='${datarootdir}'
1009 sysconfdir='${prefix}/etc'
1010 sharedstatedir='${prefix}/com'
1011 localstatedir='${prefix}/var'
1012 includedir='${prefix}/include'
1013 oldincludedir='/usr/include'
1014 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015 infodir='${datarootdir}/info'
1016 htmldir='${docdir}'
1017 dvidir='${docdir}'
1018 pdfdir='${docdir}'
1019 psdir='${docdir}'
1020 libdir='${exec_prefix}/lib'
1021 localedir='${datarootdir}/locale'
1022 mandir='${datarootdir}/man'
1023
1024 ac_prev=
1025 ac_dashdash=
1026 for ac_option
1027 do
1028   # If the previous option needs an argument, assign it.
1029   if test -n "$ac_prev"; then
1030     eval $ac_prev=\$ac_option
1031     ac_prev=
1032     continue
1033   fi
1034
1035   case $ac_option in
1036   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037   *=)   ac_optarg= ;;
1038   *)    ac_optarg=yes ;;
1039   esac
1040
1041   # Accept the important Cygnus configure options, so we can diagnose typos.
1042
1043   case $ac_dashdash$ac_option in
1044   --)
1045     ac_dashdash=yes ;;
1046
1047   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048     ac_prev=bindir ;;
1049   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050     bindir=$ac_optarg ;;
1051
1052   -build | --build | --buil | --bui | --bu)
1053     ac_prev=build_alias ;;
1054   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055     build_alias=$ac_optarg ;;
1056
1057   -cache-file | --cache-file | --cache-fil | --cache-fi \
1058   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059     ac_prev=cache_file ;;
1060   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062     cache_file=$ac_optarg ;;
1063
1064   --config-cache | -C)
1065     cache_file=config.cache ;;
1066
1067   -datadir | --datadir | --datadi | --datad)
1068     ac_prev=datadir ;;
1069   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070     datadir=$ac_optarg ;;
1071
1072   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073   | --dataroo | --dataro | --datar)
1074     ac_prev=datarootdir ;;
1075   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077     datarootdir=$ac_optarg ;;
1078
1079   -disable-* | --disable-*)
1080     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083       as_fn_error $? "invalid feature name: $ac_useropt"
1084     ac_useropt_orig=$ac_useropt
1085     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086     case $ac_user_opts in
1087       *"
1088 "enable_$ac_useropt"
1089 "*) ;;
1090       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091          ac_unrecognized_sep=', ';;
1092     esac
1093     eval enable_$ac_useropt=no ;;
1094
1095   -docdir | --docdir | --docdi | --doc | --do)
1096     ac_prev=docdir ;;
1097   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098     docdir=$ac_optarg ;;
1099
1100   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101     ac_prev=dvidir ;;
1102   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103     dvidir=$ac_optarg ;;
1104
1105   -enable-* | --enable-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109       as_fn_error $? "invalid feature name: $ac_useropt"
1110     ac_useropt_orig=$ac_useropt
1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112     case $ac_user_opts in
1113       *"
1114 "enable_$ac_useropt"
1115 "*) ;;
1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval enable_$ac_useropt=\$ac_optarg ;;
1120
1121   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123   | --exec | --exe | --ex)
1124     ac_prev=exec_prefix ;;
1125   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127   | --exec=* | --exe=* | --ex=*)
1128     exec_prefix=$ac_optarg ;;
1129
1130   -gas | --gas | --ga | --g)
1131     # Obsolete; use --with-gas.
1132     with_gas=yes ;;
1133
1134   -help | --help | --hel | --he | -h)
1135     ac_init_help=long ;;
1136   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137     ac_init_help=recursive ;;
1138   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139     ac_init_help=short ;;
1140
1141   -host | --host | --hos | --ho)
1142     ac_prev=host_alias ;;
1143   -host=* | --host=* | --hos=* | --ho=*)
1144     host_alias=$ac_optarg ;;
1145
1146   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147     ac_prev=htmldir ;;
1148   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149   | --ht=*)
1150     htmldir=$ac_optarg ;;
1151
1152   -includedir | --includedir | --includedi | --included | --include \
1153   | --includ | --inclu | --incl | --inc)
1154     ac_prev=includedir ;;
1155   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156   | --includ=* | --inclu=* | --incl=* | --inc=*)
1157     includedir=$ac_optarg ;;
1158
1159   -infodir | --infodir | --infodi | --infod | --info | --inf)
1160     ac_prev=infodir ;;
1161   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162     infodir=$ac_optarg ;;
1163
1164   -libdir | --libdir | --libdi | --libd)
1165     ac_prev=libdir ;;
1166   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167     libdir=$ac_optarg ;;
1168
1169   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170   | --libexe | --libex | --libe)
1171     ac_prev=libexecdir ;;
1172   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173   | --libexe=* | --libex=* | --libe=*)
1174     libexecdir=$ac_optarg ;;
1175
1176   -localedir | --localedir | --localedi | --localed | --locale)
1177     ac_prev=localedir ;;
1178   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179     localedir=$ac_optarg ;;
1180
1181   -localstatedir | --localstatedir | --localstatedi | --localstated \
1182   | --localstate | --localstat | --localsta | --localst | --locals)
1183     ac_prev=localstatedir ;;
1184   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186     localstatedir=$ac_optarg ;;
1187
1188   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189     ac_prev=mandir ;;
1190   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191     mandir=$ac_optarg ;;
1192
1193   -nfp | --nfp | --nf)
1194     # Obsolete; use --without-fp.
1195     with_fp=no ;;
1196
1197   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198   | --no-cr | --no-c | -n)
1199     no_create=yes ;;
1200
1201   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1203     no_recursion=yes ;;
1204
1205   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207   | --oldin | --oldi | --old | --ol | --o)
1208     ac_prev=oldincludedir ;;
1209   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212     oldincludedir=$ac_optarg ;;
1213
1214   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215     ac_prev=prefix ;;
1216   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217     prefix=$ac_optarg ;;
1218
1219   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220   | --program-pre | --program-pr | --program-p)
1221     ac_prev=program_prefix ;;
1222   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224     program_prefix=$ac_optarg ;;
1225
1226   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227   | --program-suf | --program-su | --program-s)
1228     ac_prev=program_suffix ;;
1229   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231     program_suffix=$ac_optarg ;;
1232
1233   -program-transform-name | --program-transform-name \
1234   | --program-transform-nam | --program-transform-na \
1235   | --program-transform-n | --program-transform- \
1236   | --program-transform | --program-transfor \
1237   | --program-transfo | --program-transf \
1238   | --program-trans | --program-tran \
1239   | --progr-tra | --program-tr | --program-t)
1240     ac_prev=program_transform_name ;;
1241   -program-transform-name=* | --program-transform-name=* \
1242   | --program-transform-nam=* | --program-transform-na=* \
1243   | --program-transform-n=* | --program-transform-=* \
1244   | --program-transform=* | --program-transfor=* \
1245   | --program-transfo=* | --program-transf=* \
1246   | --program-trans=* | --program-tran=* \
1247   | --progr-tra=* | --program-tr=* | --program-t=*)
1248     program_transform_name=$ac_optarg ;;
1249
1250   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251     ac_prev=pdfdir ;;
1252   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253     pdfdir=$ac_optarg ;;
1254
1255   -psdir | --psdir | --psdi | --psd | --ps)
1256     ac_prev=psdir ;;
1257   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1258     psdir=$ac_optarg ;;
1259
1260   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261   | -silent | --silent | --silen | --sile | --sil)
1262     silent=yes ;;
1263
1264   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265     ac_prev=sbindir ;;
1266   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267   | --sbi=* | --sb=*)
1268     sbindir=$ac_optarg ;;
1269
1270   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272   | --sharedst | --shareds | --shared | --share | --shar \
1273   | --sha | --sh)
1274     ac_prev=sharedstatedir ;;
1275   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278   | --sha=* | --sh=*)
1279     sharedstatedir=$ac_optarg ;;
1280
1281   -site | --site | --sit)
1282     ac_prev=site ;;
1283   -site=* | --site=* | --sit=*)
1284     site=$ac_optarg ;;
1285
1286   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287     ac_prev=srcdir ;;
1288   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289     srcdir=$ac_optarg ;;
1290
1291   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292   | --syscon | --sysco | --sysc | --sys | --sy)
1293     ac_prev=sysconfdir ;;
1294   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296     sysconfdir=$ac_optarg ;;
1297
1298   -target | --target | --targe | --targ | --tar | --ta | --t)
1299     ac_prev=target_alias ;;
1300   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301     target_alias=$ac_optarg ;;
1302
1303   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304     verbose=yes ;;
1305
1306   -version | --version | --versio | --versi | --vers | -V)
1307     ac_init_version=: ;;
1308
1309   -with-* | --with-*)
1310     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311     # Reject names that are not valid shell variable names.
1312     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313       as_fn_error $? "invalid package name: $ac_useropt"
1314     ac_useropt_orig=$ac_useropt
1315     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316     case $ac_user_opts in
1317       *"
1318 "with_$ac_useropt"
1319 "*) ;;
1320       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321          ac_unrecognized_sep=', ';;
1322     esac
1323     eval with_$ac_useropt=\$ac_optarg ;;
1324
1325   -without-* | --without-*)
1326     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327     # Reject names that are not valid shell variable names.
1328     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329       as_fn_error $? "invalid package name: $ac_useropt"
1330     ac_useropt_orig=$ac_useropt
1331     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332     case $ac_user_opts in
1333       *"
1334 "with_$ac_useropt"
1335 "*) ;;
1336       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337          ac_unrecognized_sep=', ';;
1338     esac
1339     eval with_$ac_useropt=no ;;
1340
1341   --x)
1342     # Obsolete; use --with-x.
1343     with_x=yes ;;
1344
1345   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346   | --x-incl | --x-inc | --x-in | --x-i)
1347     ac_prev=x_includes ;;
1348   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350     x_includes=$ac_optarg ;;
1351
1352   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354     ac_prev=x_libraries ;;
1355   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357     x_libraries=$ac_optarg ;;
1358
1359   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information"
1361     ;;
1362
1363   *=*)
1364     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365     # Reject names that are not valid shell variable names.
1366     case $ac_envvar in #(
1367       '' | [0-9]* | *[!_$as_cr_alnum]* )
1368       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1369     esac
1370     eval $ac_envvar=\$ac_optarg
1371     export $ac_envvar ;;
1372
1373   *)
1374     # FIXME: should be removed in autoconf 3.0.
1375     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1379     ;;
1380
1381   esac
1382 done
1383
1384 if test -n "$ac_prev"; then
1385   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386   as_fn_error $? "missing argument to $ac_option"
1387 fi
1388
1389 if test -n "$ac_unrecognized_opts"; then
1390   case $enable_option_checking in
1391     no) ;;
1392     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1393     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394   esac
1395 fi
1396
1397 # Check all directory arguments for consistency.
1398 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399                 datadir sysconfdir sharedstatedir localstatedir includedir \
1400                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401                 libdir localedir mandir
1402 do
1403   eval ac_val=\$$ac_var
1404   # Remove trailing slashes.
1405   case $ac_val in
1406     */ )
1407       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408       eval $ac_var=\$ac_val;;
1409   esac
1410   # Be sure to have absolute directory names.
1411   case $ac_val in
1412     [\\/$]* | ?:[\\/]* )  continue;;
1413     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414   esac
1415   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1416 done
1417
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1421 build=$build_alias
1422 host=$host_alias
1423 target=$target_alias
1424
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427   if test "x$build_alias" = x; then
1428     cross_compiling=maybe
1429   elif test "x$build_alias" != "x$host_alias"; then
1430     cross_compiling=yes
1431   fi
1432 fi
1433
1434 ac_tool_prefix=
1435 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436
1437 test "$silent" = yes && exec 6>/dev/null
1438
1439
1440 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di=`ls -di .` &&
1442 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443   as_fn_error $? "working directory cannot be determined"
1444 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445   as_fn_error $? "pwd does not report name of working directory"
1446
1447
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450   ac_srcdir_defaulted=yes
1451   # Try the directory containing this script, then the parent directory.
1452   ac_confdir=`$as_dirname -- "$as_myself" ||
1453 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454          X"$as_myself" : 'X\(//\)[^/]' \| \
1455          X"$as_myself" : 'X\(//\)$' \| \
1456          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457 $as_echo X"$as_myself" |
1458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\/\)[^/].*/{
1463             s//\1/
1464             q
1465           }
1466           /^X\(\/\/\)$/{
1467             s//\1/
1468             q
1469           }
1470           /^X\(\/\).*/{
1471             s//\1/
1472             q
1473           }
1474           s/.*/./; q'`
1475   srcdir=$ac_confdir
1476   if test ! -r "$srcdir/$ac_unique_file"; then
1477     srcdir=..
1478   fi
1479 else
1480   ac_srcdir_defaulted=no
1481 fi
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1485 fi
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 ac_abs_confdir=`(
1488         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1489         pwd)`
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492   srcdir=.
1493 fi
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1497 case $srcdir in
1498 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 esac
1500 for ac_var in $ac_precious_vars; do
1501   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502   eval ac_env_${ac_var}_value=\$${ac_var}
1503   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505 done
1506
1507 #
1508 # Report the --help message.
1509 #
1510 if test "$ac_init_help" = "long"; then
1511   # Omit some internal or obsolete options to make the list less imposing.
1512   # This message is too long to be a string in the A/UX 3.1 sh.
1513   cat <<_ACEOF
1514 \`configure' configures cyassl 3.1.0 to adapt to many kinds of systems.
1515
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1517
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE.  See below for descriptions of some of the useful variables.
1520
1521 Defaults for the options are specified in brackets.
1522
1523 Configuration:
1524   -h, --help              display this help and exit
1525       --help=short        display options specific to this package
1526       --help=recursive    display the short help of all the included packages
1527   -V, --version           display version information and exit
1528   -q, --quiet, --silent   do not print \`checking ...' messages
1529       --cache-file=FILE   cache test results in FILE [disabled]
1530   -C, --config-cache      alias for \`--cache-file=config.cache'
1531   -n, --no-create         do not create output files
1532       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1533
1534 Installation directories:
1535   --prefix=PREFIX         install architecture-independent files in PREFIX
1536                           [$ac_default_prefix]
1537   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1538                           [PREFIX]
1539
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1544
1545 For better control, use the options below.
1546
1547 Fine tuning of the installation directories:
1548   --bindir=DIR            user executables [EPREFIX/bin]
1549   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1550   --libexecdir=DIR        program executables [EPREFIX/libexec]
1551   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1552   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1553   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1554   --libdir=DIR            object code libraries [EPREFIX/lib]
1555   --includedir=DIR        C header files [PREFIX/include]
1556   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1557   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1558   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1559   --infodir=DIR           info documentation [DATAROOTDIR/info]
1560   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1561   --mandir=DIR            man documentation [DATAROOTDIR/man]
1562   --docdir=DIR            documentation root [DATAROOTDIR/doc/cyassl]
1563   --htmldir=DIR           html documentation [DOCDIR]
1564   --dvidir=DIR            dvi documentation [DOCDIR]
1565   --pdfdir=DIR            pdf documentation [DOCDIR]
1566   --psdir=DIR             ps documentation [DOCDIR]
1567 _ACEOF
1568
1569   cat <<\_ACEOF
1570
1571 Program names:
1572   --program-prefix=PREFIX            prepend PREFIX to installed program names
1573   --program-suffix=SUFFIX            append SUFFIX to installed program names
1574   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1575
1576 System types:
1577   --build=BUILD     configure for building on BUILD [guessed]
1578   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1579 _ACEOF
1580 fi
1581
1582 if test -n "$ac_init_help"; then
1583   case $ac_init_help in
1584      short | recursive ) echo "Configuration of cyassl 3.1.0:";;
1585    esac
1586   cat <<\_ACEOF
1587
1588 Optional Features:
1589   --disable-option-checking  ignore unrecognized --enable/--with options
1590   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1591   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1592   --enable-silent-rules   less verbose build output (undo: "make V=1")
1593   --disable-silent-rules  verbose build output (undo: "make V=0")
1594   --enable-static[=PKGS]  build static libraries [default=no]
1595   --enable-shared[=PKGS]  build shared libraries [default=yes]
1596   --enable-fast-install[=PKGS]
1597                           optimize for fast installation [default=yes]
1598   --enable-dependency-tracking
1599                           do not reject slow dependency extractors
1600   --disable-dependency-tracking
1601                           speeds up one-time build
1602   --disable-libtool-lock  avoid locking (might break parallel builds)
1603   --enable-debug          Add debug code/turns off optimizations (yes|no)
1604                           [default=no]
1605   --enable-singlethreaded Enable CyaSSL single threaded (default: disabled)
1606   --enable-dtls           Enable CyaSSL DTLS (default: disabled)
1607   --enable-opensslextra   Enable extra OpenSSL API, size+ (default: disabled)
1608   --enable-ipv6           Enable testing of IPV6 (default: disabled)
1609   --enable-fortress       Enable SSL fortress build (default: disabled)
1610   --enable-bump           Enable SSL Bump build (default: disabled)
1611   --enable-leanpsk        Enable Lean PSK build (default: disabled)
1612   --enable-bigcache       Enable big session cache (default: disabled)
1613   --enable-hugecache      Enable huge session cache (default: disabled)
1614   --enable-smallcache     Enable small session cache (default: disabled)
1615   --enable-savesession    Enable persistent session cache (default: disabled)
1616   --enable-savecert       Enable persistent cert cache (default: disabled)
1617   --enable-atomicuser     Enable Atomic User Record Layer (default: disabled)
1618   --enable-pkcallbacks    Enable Public Key Callbacks (default: disabled)
1619   --enable-sniffer        Enable CyaSSL sniffer support (default: disabled)
1620   --enable-aesgcm         Enable CyaSSL AES-GCM support (default: disabled)
1621   --enable-aesccm         Enable CyaSSL AES-CCM support (default: disabled)
1622   --enable-aesni          Enable CyaSSL AES-NI support (default: disabled)
1623   --enable-camellia       Enable CyaSSL Camellia support (default: disabled)
1624   --enable-md2            Enable CyaSSL MD2 support (default: disabled)
1625   --enable-nullcipher     Enable CyaSSL NULL cipher support (default: disabled)
1626   --enable-ripemd         Enable CyaSSL RIPEMD-160 support (default: disabled)
1627   --enable-blake2         Enable CyaSSL BLAKE2 support (default: disabled)
1628   --enable-sha512         Enable CyaSSL SHA-512 support (default: disabled)
1629   --enable-sessioncerts   Enable session cert storing (default: disabled)
1630   --enable-keygen         Enable key generation (default: disabled)
1631   --enable-certgen        Enable cert generation (default: disabled)
1632   --enable-certreq        Enable cert request generation (default: disabled)
1633   --enable-sep            Enable sep extensions (default: disabled)
1634   --enable-hkdf           Enable HKDF (HMAC-KDF) support (default: disabled)
1635   --enable-dsa            Enable DSA (default: disabled)
1636   --enable-ecc            Enable ECC (default: disabled)
1637   --enable-fpecc          Enable Fixed Point cache ECC (default: disabled)
1638   --enable-eccencrypt     Enable ECC encrypt (default: disabled)
1639   --enable-psk            Enable PSK (default: disabled)
1640   --enable-errorstrings   Enable error strings table (default: enabled)
1641   --enable-oldtls         Enable old TLS versions < 1.2 (default: enabled)
1642   --enable-stacksize      Enable stack size info on examples (default: disabled)
1643   --enable-memory         Enable memory callbacks (default: enabled)
1644   --enable-rsa            Enable RSA (default: enabled)
1645   --enable-dh             Enable DH (default: disabled)
1646   --enable-asn            Enable ASN (default: enabled)
1647   --enable-aes            Enable AES (default: enabled)
1648   --enable-coding         Enable Coding base 16/64 (default: enabled)
1649   --enable-des3           Enable DES3 (default: enabled)
1650   --enable-arc4           Enable ARC4 (default: enabled)
1651   --enable-md5            Enable MD5 (default: enabled)
1652   --enable-sha            Enable SHA (default: enabled)
1653   --enable-md4            Enable MD4 (default: disabled)
1654   --enable-webserver      Enable Web Server (default: disabled)
1655   --enable-pwdbased       Enable PWDBASED (default: disabled)
1656   --enable-hc128          Enable HC-128 (default: disabled)
1657   --enable-rabbit         Enable RABBIT (default: disabled)
1658   --enable-fips           Enable FIPS 140-2 (default: disabled)
1659   --enable-hashdrbg       Enable Hash DRBG support (default: disabled)
1660   --enable-filesystem     Enable Filesystem support (default: enabled)
1661   --enable-inline         Enable inline functions (default: enabled)
1662   --enable-ocsp           Enable OCSP (default: disabled)
1663   --enable-crl            Enable CRL (default: disabled)
1664   --enable-crl-monitor    Enable CRL Monitor (default: disabled)
1665   --enable-sni            Enable SNI (default: disabled)
1666   --enable-maxfragment    Enable Maximum Fragment Length (default: disabled)
1667   --enable-truncatedhmac  Enable Truncated HMAC (default: disabled)
1668   --enable-renegotiation-indication  Enable Renegotiation Indication (default: disabled)
1669   --enable-supportedcurves Enable Supported Elliptic Curves (default: disabled)
1670   --enable-tlsx           Enable all TLS Extensions (default: disabled)
1671   --enable-pkcs7          Enable PKCS7 (default: disabled)
1672   --enable-scep           Enable wolfSCEP (default: disabled)
1673   --enable-smallstack     Enable Small Stack Usage (default: disabled)
1674   --enable-valgrind       Enable valgrind for unit tests (default: disabled)
1675   --enable-testcert       Enable Test Cert (default: disabled)
1676   --enable-iopool         Enable I/O Pool example (default: disabled)
1677   --enable-certservice    Enable cert service (default: disabled)
1678   --enable-fastmath       Enable fast math ops (default: enabled on x86_64)
1679   --enable-fasthugemath   Enable fast math + huge code (default: disabled)
1680   --enable-examples       Enable Examples  (default: enabled)
1681   --enable-mcapi          Enable Microchip API (default: disabled)
1682   --enable-jobserver[=no/yes/#] default=yes
1683                         Enable up to # make jobs
1684                         yes: enable one more than CPU count
1685
1686
1687 Optional Packages:
1688   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1689   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1690   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1691                           both]
1692   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1693   --with-sysroot=DIR Search for dependent libraries within DIR
1694                         (or the compiler's sysroot if not specified).
1695   --with-ntru=PATH        Path to NTRU install (default /usr/)
1696   --with-libz=PATH        PATH to libz install (default /usr/)
1697   --with-cavium=PATH      PATH to cavium/software dir
1698
1699 Some influential environment variables:
1700   CC          C compiler command
1701   CFLAGS      C compiler flags
1702   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1703               nonstandard directory <lib dir>
1704   LIBS        libraries to pass to the linker, e.g. -l<library>
1705   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1706               you have headers in a nonstandard directory <include dir>
1707   CPP         C preprocessor
1708   CXX         C++ compiler command
1709   CXXFLAGS    C++ compiler flags
1710   CXXCPP      C++ preprocessor
1711   CCAS        assembler compiler command (defaults to CC)
1712   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1713
1714 Use these variables to override the choices made by `configure' or to help
1715 it to find libraries and programs with nonstandard names/locations.
1716
1717 Report bugs to <https://github.com/cyassl/cyassl/issues>.
1718 cyassl home page: <http://www.wolfssl.com>.
1719 _ACEOF
1720 ac_status=$?
1721 fi
1722
1723 if test "$ac_init_help" = "recursive"; then
1724   # If there are subdirs, report their specific --help.
1725   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726     test -d "$ac_dir" ||
1727       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728       continue
1729     ac_builddir=.
1730
1731 case "$ac_dir" in
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *)
1734   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735   # A ".." for each directory in $ac_dir_suffix.
1736   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737   case $ac_top_builddir_sub in
1738   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740   esac ;;
1741 esac
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1746
1747 case $srcdir in
1748   .)  # We are building in place.
1749     ac_srcdir=.
1750     ac_top_srcdir=$ac_top_builddir_sub
1751     ac_abs_top_srcdir=$ac_pwd ;;
1752   [\\/]* | ?:[\\/]* )  # Absolute name.
1753     ac_srcdir=$srcdir$ac_dir_suffix;
1754     ac_top_srcdir=$srcdir
1755     ac_abs_top_srcdir=$srcdir ;;
1756   *) # Relative name.
1757     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758     ac_top_srcdir=$ac_top_build_prefix$srcdir
1759     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1760 esac
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1762
1763     cd "$ac_dir" || { ac_status=$?; continue; }
1764     # Check for guested configure.
1765     if test -f "$ac_srcdir/configure.gnu"; then
1766       echo &&
1767       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768     elif test -f "$ac_srcdir/configure"; then
1769       echo &&
1770       $SHELL "$ac_srcdir/configure" --help=recursive
1771     else
1772       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773     fi || ac_status=$?
1774     cd "$ac_pwd" || { ac_status=$?; break; }
1775   done
1776 fi
1777
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1780   cat <<\_ACEOF
1781 cyassl configure 3.1.0
1782 generated by GNU Autoconf 2.69
1783
1784 Copyright (C) 2012 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1787 _ACEOF
1788   exit
1789 fi
1790
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1794
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   rm -f conftest.$ac_objext
1802   if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805   *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809   (eval "$ac_compile") 2>conftest.err
1810   ac_status=$?
1811   if test -s conftest.err; then
1812     grep -v '^ *+' conftest.err >conftest.er1
1813     cat conftest.er1 >&5
1814     mv -f conftest.er1 conftest.err
1815   fi
1816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817   test $ac_status = 0; } && {
1818          test -z "$ac_c_werror_flag" ||
1819          test ! -s conftest.err
1820        } && test -s conftest.$ac_objext; then :
1821   ac_retval=0
1822 else
1823   $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826         ac_retval=1
1827 fi
1828   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829   as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_compile
1832
1833 # ac_fn_c_try_link LINENO
1834 # -----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_link ()
1837 {
1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839   rm -f conftest.$ac_objext conftest$ac_exeext
1840   if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843   *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847   (eval "$ac_link") 2>conftest.err
1848   ac_status=$?
1849   if test -s conftest.err; then
1850     grep -v '^ *+' conftest.err >conftest.er1
1851     cat conftest.er1 >&5
1852     mv -f conftest.er1 conftest.err
1853   fi
1854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855   test $ac_status = 0; } && {
1856          test -z "$ac_c_werror_flag" ||
1857          test ! -s conftest.err
1858        } && test -s conftest$ac_exeext && {
1859          test "$cross_compiling" = yes ||
1860          test -x conftest$ac_exeext
1861        }; then :
1862   ac_retval=0
1863 else
1864   $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867         ac_retval=1
1868 fi
1869   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871   # interfere with the next link command; also delete a directory that is
1872   # left behind by Apple's compiler.  We do this before executing the actions.
1873   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875   as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_link
1878
1879 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists and can be compiled using the include files in
1882 # INCLUDES, setting the cache variable VAR accordingly.
1883 ac_fn_c_check_header_compile ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889   $as_echo_n "(cached) " >&6
1890 else
1891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h.  */
1893 $4
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897   eval "$3=yes"
1898 else
1899   eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908 } # ac_fn_c_check_header_compile
1909
1910 # ac_fn_c_try_cpp LINENO
1911 # ----------------------
1912 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_c_try_cpp ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   if { { ac_try="$ac_cpp conftest.$ac_ext"
1917 case "(($ac_try" in
1918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919   *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1924   ac_status=$?
1925   if test -s conftest.err; then
1926     grep -v '^ *+' conftest.err >conftest.er1
1927     cat conftest.er1 >&5
1928     mv -f conftest.er1 conftest.err
1929   fi
1930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931   test $ac_status = 0; } > conftest.i && {
1932          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1933          test ! -s conftest.err
1934        }; then :
1935   ac_retval=0
1936 else
1937   $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940     ac_retval=1
1941 fi
1942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943   as_fn_set_status $ac_retval
1944
1945 } # ac_fn_c_try_cpp
1946
1947 # ac_fn_c_try_run LINENO
1948 # ----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1950 # that executables *can* be run.
1951 ac_fn_c_try_run ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   if { { ac_try="$ac_link"
1955 case "(($ac_try" in
1956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957   *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961   (eval "$ac_link") 2>&5
1962   ac_status=$?
1963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1965   { { case "(($ac_try" in
1966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967   *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971   (eval "$ac_try") 2>&5
1972   ac_status=$?
1973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974   test $ac_status = 0; }; }; then :
1975   ac_retval=0
1976 else
1977   $as_echo "$as_me: program exited with status $ac_status" >&5
1978        $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981        ac_retval=$ac_status
1982 fi
1983   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985   as_fn_set_status $ac_retval
1986
1987 } # ac_fn_c_try_run
1988
1989 # ac_fn_c_check_func LINENO FUNC VAR
1990 # ----------------------------------
1991 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1992 ac_fn_c_check_func ()
1993 {
1994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval \${$3+:} false; then :
1998   $as_echo_n "(cached) " >&6
1999 else
2000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2004 #define $2 innocuous_$2
2005
2006 /* System header to define __stub macros and hopefully few prototypes,
2007     which can conflict with char $2 (); below.
2008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2009     <limits.h> exists even on freestanding compilers.  */
2010
2011 #ifdef __STDC__
2012 # include <limits.h>
2013 #else
2014 # include <assert.h>
2015 #endif
2016
2017 #undef $2
2018
2019 /* Override any GCC internal prototype to avoid an error.
2020    Use char because int might match the return type of a GCC
2021    builtin and then its argument prototype would still apply.  */
2022 #ifdef __cplusplus
2023 extern "C"
2024 #endif
2025 char $2 ();
2026 /* The GNU C library defines this for functions which it implements
2027     to always fail with ENOSYS.  Some functions are actually named
2028     something starting with __ and the normal name is an alias.  */
2029 #if defined __stub_$2 || defined __stub___$2
2030 choke me
2031 #endif
2032
2033 int
2034 main ()
2035 {
2036 return $2 ();
2037   ;
2038   return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_link "$LINENO"; then :
2042   eval "$3=yes"
2043 else
2044   eval "$3=no"
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext \
2047     conftest$ac_exeext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$3
2050                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054 } # ac_fn_c_check_func
2055
2056 # ac_fn_cxx_try_compile LINENO
2057 # ----------------------------
2058 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2059 ac_fn_cxx_try_compile ()
2060 {
2061   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062   rm -f conftest.$ac_objext
2063   if { { ac_try="$ac_compile"
2064 case "(($ac_try" in
2065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066   *) ac_try_echo=$ac_try;;
2067 esac
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070   (eval "$ac_compile") 2>conftest.err
2071   ac_status=$?
2072   if test -s conftest.err; then
2073     grep -v '^ *+' conftest.err >conftest.er1
2074     cat conftest.er1 >&5
2075     mv -f conftest.er1 conftest.err
2076   fi
2077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078   test $ac_status = 0; } && {
2079          test -z "$ac_cxx_werror_flag" ||
2080          test ! -s conftest.err
2081        } && test -s conftest.$ac_objext; then :
2082   ac_retval=0
2083 else
2084   $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2086
2087         ac_retval=1
2088 fi
2089   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090   as_fn_set_status $ac_retval
2091
2092 } # ac_fn_cxx_try_compile
2093
2094 # ac_fn_cxx_try_cpp LINENO
2095 # ------------------------
2096 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2097 ac_fn_cxx_try_cpp ()
2098 {
2099   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100   if { { ac_try="$ac_cpp conftest.$ac_ext"
2101 case "(($ac_try" in
2102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103   *) ac_try_echo=$ac_try;;
2104 esac
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 $as_echo "$ac_try_echo"; } >&5
2107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2108   ac_status=$?
2109   if test -s conftest.err; then
2110     grep -v '^ *+' conftest.err >conftest.er1
2111     cat conftest.er1 >&5
2112     mv -f conftest.er1 conftest.err
2113   fi
2114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2115   test $ac_status = 0; } > conftest.i && {
2116          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2117          test ! -s conftest.err
2118        }; then :
2119   ac_retval=0
2120 else
2121   $as_echo "$as_me: failed program was:" >&5
2122 sed 's/^/| /' conftest.$ac_ext >&5
2123
2124     ac_retval=1
2125 fi
2126   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127   as_fn_set_status $ac_retval
2128
2129 } # ac_fn_cxx_try_cpp
2130
2131 # ac_fn_cxx_try_link LINENO
2132 # -------------------------
2133 # Try to link conftest.$ac_ext, and return whether this succeeded.
2134 ac_fn_cxx_try_link ()
2135 {
2136   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137   rm -f conftest.$ac_objext conftest$ac_exeext
2138   if { { ac_try="$ac_link"
2139 case "(($ac_try" in
2140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141   *) ac_try_echo=$ac_try;;
2142 esac
2143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145   (eval "$ac_link") 2>conftest.err
2146   ac_status=$?
2147   if test -s conftest.err; then
2148     grep -v '^ *+' conftest.err >conftest.er1
2149     cat conftest.er1 >&5
2150     mv -f conftest.er1 conftest.err
2151   fi
2152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153   test $ac_status = 0; } && {
2154          test -z "$ac_cxx_werror_flag" ||
2155          test ! -s conftest.err
2156        } && test -s conftest$ac_exeext && {
2157          test "$cross_compiling" = yes ||
2158          test -x conftest$ac_exeext
2159        }; then :
2160   ac_retval=0
2161 else
2162   $as_echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2164
2165         ac_retval=1
2166 fi
2167   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2168   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2169   # interfere with the next link command; also delete a directory that is
2170   # left behind by Apple's compiler.  We do this before executing the actions.
2171   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2172   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173   as_fn_set_status $ac_retval
2174
2175 } # ac_fn_cxx_try_link
2176
2177 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2178 # -------------------------------------------------------
2179 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2180 # the include files in INCLUDES and setting the cache variable VAR
2181 # accordingly.
2182 ac_fn_c_check_header_mongrel ()
2183 {
2184   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185   if eval \${$3+:} false; then :
2186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189   $as_echo_n "(cached) " >&6
2190 fi
2191 eval ac_res=\$$3
2192                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 else
2195   # Is the header compilable?
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2197 $as_echo_n "checking $2 usability... " >&6; }
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h.  */
2200 $4
2201 #include <$2>
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204   ac_header_compiler=yes
2205 else
2206   ac_header_compiler=no
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2210 $as_echo "$ac_header_compiler" >&6; }
2211
2212 # Is the header present?
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2214 $as_echo_n "checking $2 presence... " >&6; }
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h.  */
2217 #include <$2>
2218 _ACEOF
2219 if ac_fn_c_try_cpp "$LINENO"; then :
2220   ac_header_preproc=yes
2221 else
2222   ac_header_preproc=no
2223 fi
2224 rm -f conftest.err conftest.i conftest.$ac_ext
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2226 $as_echo "$ac_header_preproc" >&6; }
2227
2228 # So?  What about this header?
2229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2230   yes:no: )
2231     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2232 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2233     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2235     ;;
2236   no:yes:* )
2237     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2238 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2239     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2240 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2241     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2242 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2243     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2244 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2245     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2246 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2247 ( $as_echo "## ------------------------------------------------------ ##
2248 ## Report this to https://github.com/cyassl/cyassl/issues ##
2249 ## ------------------------------------------------------ ##"
2250      ) | sed "s/^/$as_me: WARNING:     /" >&2
2251     ;;
2252 esac
2253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if eval \${$3+:} false; then :
2256   $as_echo_n "(cached) " >&6
2257 else
2258   eval "$3=\$ac_header_compiler"
2259 fi
2260 eval ac_res=\$$3
2261                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263 fi
2264   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265
2266 } # ac_fn_c_check_header_mongrel
2267
2268 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2269 # --------------------------------------------
2270 # Tries to find the compile-time value of EXPR in a program that includes
2271 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2272 # computed
2273 ac_fn_c_compute_int ()
2274 {
2275   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276   if test "$cross_compiling" = yes; then
2277     # Depending upon the size, compute the lo and hi bounds.
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h.  */
2280 $4
2281 int
2282 main ()
2283 {
2284 static int test_array [1 - 2 * !(($2) >= 0)];
2285 test_array [0] = 0;
2286 return test_array [0];
2287
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293   ac_lo=0 ac_mid=0
2294   while :; do
2295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h.  */
2297 $4
2298 int
2299 main ()
2300 {
2301 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2302 test_array [0] = 0;
2303 return test_array [0];
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310   ac_hi=$ac_mid; break
2311 else
2312   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2313                         if test $ac_lo -le $ac_mid; then
2314                           ac_lo= ac_hi=
2315                           break
2316                         fi
2317                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2318 fi
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320   done
2321 else
2322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h.  */
2324 $4
2325 int
2326 main ()
2327 {
2328 static int test_array [1 - 2 * !(($2) < 0)];
2329 test_array [0] = 0;
2330 return test_array [0];
2331
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337   ac_hi=-1 ac_mid=-1
2338   while :; do
2339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h.  */
2341 $4
2342 int
2343 main ()
2344 {
2345 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2346 test_array [0] = 0;
2347 return test_array [0];
2348
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354   ac_lo=$ac_mid; break
2355 else
2356   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2357                         if test $ac_mid -le $ac_hi; then
2358                           ac_lo= ac_hi=
2359                           break
2360                         fi
2361                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364   done
2365 else
2366   ac_lo= ac_hi=
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 fi
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 # Binary search between lo and hi bounds.
2372 while test "x$ac_lo" != "x$ac_hi"; do
2373   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h.  */
2376 $4
2377 int
2378 main ()
2379 {
2380 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2381 test_array [0] = 0;
2382 return test_array [0];
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389   ac_hi=$ac_mid
2390 else
2391   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 done
2395 case $ac_lo in #((
2396 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2397 '') ac_retval=1 ;;
2398 esac
2399   else
2400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h.  */
2402 $4
2403 static long int longval () { return $2; }
2404 static unsigned long int ulongval () { return $2; }
2405 #include <stdio.h>
2406 #include <stdlib.h>
2407 int
2408 main ()
2409 {
2410
2411   FILE *f = fopen ("conftest.val", "w");
2412   if (! f)
2413     return 1;
2414   if (($2) < 0)
2415     {
2416       long int i = longval ();
2417       if (i != ($2))
2418         return 1;
2419       fprintf (f, "%ld", i);
2420     }
2421   else
2422     {
2423       unsigned long int i = ulongval ();
2424       if (i != ($2))
2425         return 1;
2426       fprintf (f, "%lu", i);
2427     }
2428   /* Do not output a trailing newline, as this causes \r\n confusion
2429      on some platforms.  */
2430   return ferror (f) || fclose (f) != 0;
2431
2432   ;
2433   return 0;
2434 }
2435 _ACEOF
2436 if ac_fn_c_try_run "$LINENO"; then :
2437   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2438 else
2439   ac_retval=1
2440 fi
2441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2442   conftest.$ac_objext conftest.beam conftest.$ac_ext
2443 rm -f conftest.val
2444
2445   fi
2446   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447   as_fn_set_status $ac_retval
2448
2449 } # ac_fn_c_compute_int
2450
2451 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2452 # -------------------------------------------
2453 # Tests whether TYPE exists after having included INCLUDES, setting cache
2454 # variable VAR accordingly.
2455 ac_fn_c_check_type ()
2456 {
2457   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2459 $as_echo_n "checking for $2... " >&6; }
2460 if eval \${$3+:} false; then :
2461   $as_echo_n "(cached) " >&6
2462 else
2463   eval "$3=no"
2464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h.  */
2466 $4
2467 int
2468 main ()
2469 {
2470 if (sizeof ($2))
2471          return 0;
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 if ac_fn_c_try_compile "$LINENO"; then :
2477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h.  */
2479 $4
2480 int
2481 main ()
2482 {
2483 if (sizeof (($2)))
2484             return 0;
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 if ac_fn_c_try_compile "$LINENO"; then :
2490
2491 else
2492   eval "$3=yes"
2493 fi
2494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 fi
2496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 fi
2498 eval ac_res=\$$3
2499                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 $as_echo "$ac_res" >&6; }
2501   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2502
2503 } # ac_fn_c_check_type
2504
2505 # ac_fn_c_find_uintX_t LINENO BITS VAR
2506 # ------------------------------------
2507 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2508 # accordingly.
2509 ac_fn_c_find_uintX_t ()
2510 {
2511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2513 $as_echo_n "checking for uint$2_t... " >&6; }
2514 if eval \${$3+:} false; then :
2515   $as_echo_n "(cached) " >&6
2516 else
2517   eval "$3=no"
2518      # Order is important - never check a type that is potentially smaller
2519      # than half of the expected target width.
2520      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2521          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2522        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h.  */
2524 $ac_includes_default
2525 int
2526 main ()
2527 {
2528 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2529 test_array [0] = 0;
2530 return test_array [0];
2531
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537   case $ac_type in #(
2538   uint$2_t) :
2539     eval "$3=yes" ;; #(
2540   *) :
2541     eval "$3=\$ac_type" ;;
2542 esac
2543 fi
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545        if eval test \"x\$"$3"\" = x"no"; then :
2546
2547 else
2548   break
2549 fi
2550      done
2551 fi
2552 eval ac_res=\$$3
2553                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556
2557 } # ac_fn_c_find_uintX_t
2558 cat >config.log <<_ACEOF
2559 This file contains any messages produced by compilers while
2560 running configure, to aid debugging if configure makes a mistake.
2561
2562 It was created by cyassl $as_me 3.1.0, which was
2563 generated by GNU Autoconf 2.69.  Invocation command line was
2564
2565   $ $0 $@
2566
2567 _ACEOF
2568 exec 5>>config.log
2569 {
2570 cat <<_ASUNAME
2571 ## --------- ##
2572 ## Platform. ##
2573 ## --------- ##
2574
2575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2580
2581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2582 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2583
2584 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2585 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2587 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2588 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2589 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2590 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2591
2592 _ASUNAME
2593
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599     $as_echo "PATH: $as_dir"
2600   done
2601 IFS=$as_save_IFS
2602
2603 } >&5
2604
2605 cat >&5 <<_ACEOF
2606
2607
2608 ## ----------- ##
2609 ## Core tests. ##
2610 ## ----------- ##
2611
2612 _ACEOF
2613
2614
2615 # Keep a trace of the command line.
2616 # Strip out --no-create and --no-recursion so they do not pile up.
2617 # Strip out --silent because we don't want to record it for future runs.
2618 # Also quote any args containing shell meta-characters.
2619 # Make two passes to allow for proper duplicate-argument suppression.
2620 ac_configure_args=
2621 ac_configure_args0=
2622 ac_configure_args1=
2623 ac_must_keep_next=false
2624 for ac_pass in 1 2
2625 do
2626   for ac_arg
2627   do
2628     case $ac_arg in
2629     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2630     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2631     | -silent | --silent | --silen | --sile | --sil)
2632       continue ;;
2633     *\'*)
2634       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2635     esac
2636     case $ac_pass in
2637     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2638     2)
2639       as_fn_append ac_configure_args1 " '$ac_arg'"
2640       if test $ac_must_keep_next = true; then
2641         ac_must_keep_next=false # Got value, back to normal.
2642       else
2643         case $ac_arg in
2644           *=* | --config-cache | -C | -disable-* | --disable-* \
2645           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2646           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2647           | -with-* | --with-* | -without-* | --without-* | --x)
2648             case "$ac_configure_args0 " in
2649               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2650             esac
2651             ;;
2652           -* ) ac_must_keep_next=true ;;
2653         esac
2654       fi
2655       as_fn_append ac_configure_args " '$ac_arg'"
2656       ;;
2657     esac
2658   done
2659 done
2660 { ac_configure_args0=; unset ac_configure_args0;}
2661 { ac_configure_args1=; unset ac_configure_args1;}
2662
2663 # When interrupted or exit'd, cleanup temporary files, and complete
2664 # config.log.  We remove comments because anyway the quotes in there
2665 # would cause problems or look ugly.
2666 # WARNING: Use '\'' to represent an apostrophe within the trap.
2667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2668 trap 'exit_status=$?
2669   # Save into config.log some information that might help in debugging.
2670   {
2671     echo
2672
2673     $as_echo "## ---------------- ##
2674 ## Cache variables. ##
2675 ## ---------------- ##"
2676     echo
2677     # The following way of writing the cache mishandles newlines in values,
2678 (
2679   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2680     eval ac_val=\$$ac_var
2681     case $ac_val in #(
2682     *${as_nl}*)
2683       case $ac_var in #(
2684       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2686       esac
2687       case $ac_var in #(
2688       _ | IFS | as_nl) ;; #(
2689       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2690       *) { eval $ac_var=; unset $ac_var;} ;;
2691       esac ;;
2692     esac
2693   done
2694   (set) 2>&1 |
2695     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2696     *${as_nl}ac_space=\ *)
2697       sed -n \
2698         "s/'\''/'\''\\\\'\'''\''/g;
2699           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2700       ;; #(
2701     *)
2702       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2703       ;;
2704     esac |
2705     sort
2706 )
2707     echo
2708
2709     $as_echo "## ----------------- ##
2710 ## Output variables. ##
2711 ## ----------------- ##"
2712     echo
2713     for ac_var in $ac_subst_vars
2714     do
2715       eval ac_val=\$$ac_var
2716       case $ac_val in
2717       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2718       esac
2719       $as_echo "$ac_var='\''$ac_val'\''"
2720     done | sort
2721     echo
2722
2723     if test -n "$ac_subst_files"; then
2724       $as_echo "## ------------------- ##
2725 ## File substitutions. ##
2726 ## ------------------- ##"
2727       echo
2728       for ac_var in $ac_subst_files
2729       do
2730         eval ac_val=\$$ac_var
2731         case $ac_val in
2732         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2733         esac
2734         $as_echo "$ac_var='\''$ac_val'\''"
2735       done | sort
2736       echo
2737     fi
2738
2739     if test -s confdefs.h; then
2740       $as_echo "## ----------- ##
2741 ## confdefs.h. ##
2742 ## ----------- ##"
2743       echo
2744       cat confdefs.h
2745       echo
2746     fi
2747     test "$ac_signal" != 0 &&
2748       $as_echo "$as_me: caught signal $ac_signal"
2749     $as_echo "$as_me: exit $exit_status"
2750   } >&5
2751   rm -f core *.core core.conftest.* &&
2752     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2753     exit $exit_status
2754 ' 0
2755 for ac_signal in 1 2 13 15; do
2756   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2757 done
2758 ac_signal=0
2759
2760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2761 rm -f -r conftest* confdefs.h
2762
2763 $as_echo "/* confdefs.h */" > confdefs.h
2764
2765 # Predefined preprocessor variables.
2766
2767 cat >>confdefs.h <<_ACEOF
2768 #define PACKAGE_NAME "$PACKAGE_NAME"
2769 _ACEOF
2770
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2773 _ACEOF
2774
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2777 _ACEOF
2778
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE_STRING "$PACKAGE_STRING"
2781 _ACEOF
2782
2783 cat >>confdefs.h <<_ACEOF
2784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2785 _ACEOF
2786
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE_URL "$PACKAGE_URL"
2789 _ACEOF
2790
2791
2792 # Let the site file select an alternate cache file if it wants to.
2793 # Prefer an explicitly selected file to automatically selected ones.
2794 ac_site_file1=NONE
2795 ac_site_file2=NONE
2796 if test -n "$CONFIG_SITE"; then
2797   # We do not want a PATH search for config.site.
2798   case $CONFIG_SITE in #((
2799     -*)  ac_site_file1=./$CONFIG_SITE;;
2800     */*) ac_site_file1=$CONFIG_SITE;;
2801     *)   ac_site_file1=./$CONFIG_SITE;;
2802   esac
2803 elif test "x$prefix" != xNONE; then
2804   ac_site_file1=$prefix/share/config.site
2805   ac_site_file2=$prefix/etc/config.site
2806 else
2807   ac_site_file1=$ac_default_prefix/share/config.site
2808   ac_site_file2=$ac_default_prefix/etc/config.site
2809 fi
2810 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2811 do
2812   test "x$ac_site_file" = xNONE && continue
2813   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2814     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2815 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2816     sed 's/^/| /' "$ac_site_file" >&5
2817     . "$ac_site_file" \
2818       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 as_fn_error $? "failed to load site script $ac_site_file
2821 See \`config.log' for more details" "$LINENO" 5; }
2822   fi
2823 done
2824
2825 if test -r "$cache_file"; then
2826   # Some versions of bash will fail to source /dev/null (special files
2827   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2828   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2829     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2830 $as_echo "$as_me: loading cache $cache_file" >&6;}
2831     case $cache_file in
2832       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2833       *)                      . "./$cache_file";;
2834     esac
2835   fi
2836 else
2837   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2838 $as_echo "$as_me: creating cache $cache_file" >&6;}
2839   >$cache_file
2840 fi
2841
2842 # Check that the precious variables saved in the cache have kept the same
2843 # value.
2844 ac_cache_corrupted=false
2845 for ac_var in $ac_precious_vars; do
2846   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2847   eval ac_new_set=\$ac_env_${ac_var}_set
2848   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2849   eval ac_new_val=\$ac_env_${ac_var}_value
2850   case $ac_old_set,$ac_new_set in
2851     set,)
2852       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2853 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2854       ac_cache_corrupted=: ;;
2855     ,set)
2856       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2857 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2858       ac_cache_corrupted=: ;;
2859     ,);;
2860     *)
2861       if test "x$ac_old_val" != "x$ac_new_val"; then
2862         # differences in whitespace do not lead to failure.
2863         ac_old_val_w=`echo x $ac_old_val`
2864         ac_new_val_w=`echo x $ac_new_val`
2865         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2866           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2867 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2868           ac_cache_corrupted=:
2869         else
2870           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2871 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2872           eval $ac_var=\$ac_old_val
2873         fi
2874         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2875 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2876         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2877 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2878       fi;;
2879   esac
2880   # Pass precious variables to config.status.
2881   if test "$ac_new_set" = set; then
2882     case $ac_new_val in
2883     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2884     *) ac_arg=$ac_var=$ac_new_val ;;
2885     esac
2886     case " $ac_configure_args " in
2887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2888       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2889     esac
2890   fi
2891 done
2892 if $ac_cache_corrupted; then
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2896 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2897   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2898 fi
2899 ## -------------------- ##
2900 ## Main body of script. ##
2901 ## -------------------- ##
2902
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908
2909
2910
2911 ac_aux_dir=
2912 for ac_dir in build-aux "$srcdir"/build-aux; do
2913   if test -f "$ac_dir/install-sh"; then
2914     ac_aux_dir=$ac_dir
2915     ac_install_sh="$ac_aux_dir/install-sh -c"
2916     break
2917   elif test -f "$ac_dir/install.sh"; then
2918     ac_aux_dir=$ac_dir
2919     ac_install_sh="$ac_aux_dir/install.sh -c"
2920     break
2921   elif test -f "$ac_dir/shtool"; then
2922     ac_aux_dir=$ac_dir
2923     ac_install_sh="$ac_aux_dir/shtool install -c"
2924     break
2925   fi
2926 done
2927 if test -z "$ac_aux_dir"; then
2928   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2929 fi
2930
2931 # These three variables are undocumented and unsupported,
2932 # and are intended to be withdrawn in a future Autoconf release.
2933 # They can cause serious problems if a builder's source tree is in a directory
2934 # whose full name contains unusual characters.
2935 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2936 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2937 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2938
2939
2940
2941 # Make sure we can run config.sub.
2942 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2943   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2944
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2946 $as_echo_n "checking build system type... " >&6; }
2947 if ${ac_cv_build+:} false; then :
2948   $as_echo_n "(cached) " >&6
2949 else
2950   ac_build_alias=$build_alias
2951 test "x$ac_build_alias" = x &&
2952   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2953 test "x$ac_build_alias" = x &&
2954   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2955 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2956   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2957
2958 fi
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2960 $as_echo "$ac_cv_build" >&6; }
2961 case $ac_cv_build in
2962 *-*-*) ;;
2963 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2964 esac
2965 build=$ac_cv_build
2966 ac_save_IFS=$IFS; IFS='-'
2967 set x $ac_cv_build
2968 shift
2969 build_cpu=$1
2970 build_vendor=$2
2971 shift; shift
2972 # Remember, the first character of IFS is used to create $*,
2973 # except with old shells:
2974 build_os=$*
2975 IFS=$ac_save_IFS
2976 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2977
2978
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2980 $as_echo_n "checking host system type... " >&6; }
2981 if ${ac_cv_host+:} false; then :
2982   $as_echo_n "(cached) " >&6
2983 else
2984   if test "x$host_alias" = x; then
2985   ac_cv_host=$ac_cv_build
2986 else
2987   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2988     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2989 fi
2990
2991 fi
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2993 $as_echo "$ac_cv_host" >&6; }
2994 case $ac_cv_host in
2995 *-*-*) ;;
2996 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2997 esac
2998 host=$ac_cv_host
2999 ac_save_IFS=$IFS; IFS='-'
3000 set x $ac_cv_host
3001 shift
3002 host_cpu=$1
3003 host_vendor=$2
3004 shift; shift
3005 # Remember, the first character of IFS is used to create $*,
3006 # except with old shells:
3007 host_os=$*
3008 IFS=$ac_save_IFS
3009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3010
3011
3012
3013
3014 am__api_version='1.14'
3015
3016 # Find a good install program.  We prefer a C program (faster),
3017 # so one script is as good as another.  But avoid the broken or
3018 # incompatible versions:
3019 # SysV /etc/install, /usr/sbin/install
3020 # SunOS /usr/etc/install
3021 # IRIX /sbin/install
3022 # AIX /bin/install
3023 # AmigaOS /C/install, which installs bootblocks on floppy discs
3024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3027 # OS/2's system install, which has a completely different semantic
3028 # ./install, which can be erroneously created by make from ./install.sh.
3029 # Reject install programs that cannot install multiple files.
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3031 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3032 if test -z "$INSTALL"; then
3033 if ${ac_cv_path_install+:} false; then :
3034   $as_echo_n "(cached) " >&6
3035 else
3036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041     # Account for people who put trailing slashes in PATH elements.
3042 case $as_dir/ in #((
3043   ./ | .// | /[cC]/* | \
3044   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3045   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3046   /usr/ucb/* ) ;;
3047   *)
3048     # OSF1 and SCO ODT 3.0 have their own names for install.
3049     # Don't use installbsd from OSF since it installs stuff as root
3050     # by default.
3051     for ac_prog in ginstall scoinst install; do
3052       for ac_exec_ext in '' $ac_executable_extensions; do
3053         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3054           if test $ac_prog = install &&
3055             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3056             # AIX install.  It has an incompatible calling convention.
3057             :
3058           elif test $ac_prog = install &&
3059             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3060             # program-specific install script used by HP pwplus--don't use.
3061             :
3062           else
3063             rm -rf conftest.one conftest.two conftest.dir
3064             echo one > conftest.one
3065             echo two > conftest.two
3066             mkdir conftest.dir
3067             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3068               test -s conftest.one && test -s conftest.two &&
3069               test -s conftest.dir/conftest.one &&
3070               test -s conftest.dir/conftest.two
3071             then
3072               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3073               break 3
3074             fi
3075           fi
3076         fi
3077       done
3078     done
3079     ;;
3080 esac
3081
3082   done
3083 IFS=$as_save_IFS
3084
3085 rm -rf conftest.one conftest.two conftest.dir
3086
3087 fi
3088   if test "${ac_cv_path_install+set}" = set; then
3089     INSTALL=$ac_cv_path_install
3090   else
3091     # As a last resort, use the slow shell script.  Don't cache a
3092     # value for INSTALL within a source directory, because that will
3093     # break other packages using the cache if that directory is
3094     # removed, or if the value is a relative name.
3095     INSTALL=$ac_install_sh
3096   fi
3097 fi
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3099 $as_echo "$INSTALL" >&6; }
3100
3101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3102 # It thinks the first close brace ends the variable substitution.
3103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3104
3105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3106
3107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3110 $as_echo_n "checking whether build environment is sane... " >&6; }
3111 # Reject unsafe characters in $srcdir or the absolute working directory
3112 # name.  Accept space and tab only in the latter.
3113 am_lf='
3114 '
3115 case `pwd` in
3116   *[\\\"\#\$\&\'\`$am_lf]*)
3117     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3118 esac
3119 case $srcdir in
3120   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3121     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3122 esac
3123
3124 # Do 'set' in a subshell so we don't clobber the current shell's
3125 # arguments.  Must try -L first in case configure is actually a
3126 # symlink; some systems play weird games with the mod time of symlinks
3127 # (eg FreeBSD returns the mod time of the symlink's containing
3128 # directory).
3129 if (
3130    am_has_slept=no
3131    for am_try in 1 2; do
3132      echo "timestamp, slept: $am_has_slept" > conftest.file
3133      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3134      if test "$*" = "X"; then
3135         # -L didn't work.
3136         set X `ls -t "$srcdir/configure" conftest.file`
3137      fi
3138      if test "$*" != "X $srcdir/configure conftest.file" \
3139         && test "$*" != "X conftest.file $srcdir/configure"; then
3140
3141         # If neither matched, then we have a broken ls.  This can happen
3142         # if, for instance, CONFIG_SHELL is bash and it inherits a
3143         # broken ls alias from the environment.  This has actually
3144         # happened.  Such a system could not be considered "sane".
3145         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3146   alias in your environment" "$LINENO" 5
3147      fi
3148      if test "$2" = conftest.file || test $am_try -eq 2; then
3149        break
3150      fi
3151      # Just in case.
3152      sleep 1
3153      am_has_slept=yes
3154    done
3155    test "$2" = conftest.file
3156    )
3157 then
3158    # Ok.
3159    :
3160 else
3161    as_fn_error $? "newly created file is older than distributed files!
3162 Check your system clock" "$LINENO" 5
3163 fi
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165 $as_echo "yes" >&6; }
3166 # If we didn't sleep, we still need to ensure time stamps of config.status and
3167 # generated files are strictly newer.
3168 am_sleep_pid=
3169 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3170   ( sleep 1 ) &
3171   am_sleep_pid=$!
3172 fi
3173
3174 rm -f conftest.file
3175
3176 test "$program_prefix" != NONE &&
3177   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3178 # Use a double $ so make ignores it.
3179 test "$program_suffix" != NONE &&
3180   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3181 # Double any \ or $.
3182 # By default was `s,x,x', remove it if useless.
3183 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3184 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3185
3186 # expand $ac_aux_dir to an absolute path
3187 am_aux_dir=`cd $ac_aux_dir && pwd`
3188
3189 if test x"${MISSING+set}" != xset; then
3190   case $am_aux_dir in
3191   *\ * | *\     *)
3192     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3193   *)
3194     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3195   esac
3196 fi
3197 # Use eval to expand $SHELL
3198 if eval "$MISSING --is-lightweight"; then
3199   am_missing_run="$MISSING "
3200 else
3201   am_missing_run=
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3203 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3204 fi
3205
3206 if test x"${install_sh}" != xset; then
3207   case $am_aux_dir in
3208   *\ * | *\     *)
3209     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3210   *)
3211     install_sh="\${SHELL} $am_aux_dir/install-sh"
3212   esac
3213 fi
3214
3215 # Installed binaries are usually stripped using 'strip' when the user
3216 # run "make install-strip".  However 'strip' might not be the right
3217 # tool to use in cross-compilation environments, therefore Automake
3218 # will honor the 'STRIP' environment variable to overrule this program.
3219 if test "$cross_compiling" != no; then
3220   if test -n "$ac_tool_prefix"; then
3221   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3222 set dummy ${ac_tool_prefix}strip; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_STRIP+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   if test -n "$STRIP"; then
3229   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236     for ac_exec_ext in '' $ac_executable_extensions; do
3237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240     break 2
3241   fi
3242 done
3243   done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 STRIP=$ac_cv_prog_STRIP
3249 if test -n "$STRIP"; then
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3251 $as_echo "$STRIP" >&6; }
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258 fi
3259 if test -z "$ac_cv_prog_STRIP"; then
3260   ac_ct_STRIP=$STRIP
3261   # Extract the first word of "strip", so it can be a program name with args.
3262 set dummy strip; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3266   $as_echo_n "(cached) " >&6
3267 else
3268   if test -n "$ac_ct_STRIP"; then
3269   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274   IFS=$as_save_IFS
3275   test -z "$as_dir" && as_dir=.
3276     for ac_exec_ext in '' $ac_executable_extensions; do
3277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278     ac_cv_prog_ac_ct_STRIP="strip"
3279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280     break 2
3281   fi
3282 done
3283   done
3284 IFS=$as_save_IFS
3285
3286 fi
3287 fi
3288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3289 if test -n "$ac_ct_STRIP"; then
3290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3291 $as_echo "$ac_ct_STRIP" >&6; }
3292 else
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 fi
3296
3297   if test "x$ac_ct_STRIP" = x; then
3298     STRIP=":"
3299   else
3300     case $cross_compiling:$ac_tool_warned in
3301 yes:)
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304 ac_tool_warned=yes ;;
3305 esac
3306     STRIP=$ac_ct_STRIP
3307   fi
3308 else
3309   STRIP="$ac_cv_prog_STRIP"
3310 fi
3311
3312 fi
3313 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3314
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3316 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3317 if test -z "$MKDIR_P"; then
3318   if ${ac_cv_path_mkdir+:} false; then :
3319   $as_echo_n "(cached) " >&6
3320 else
3321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326     for ac_prog in mkdir gmkdir; do
3327          for ac_exec_ext in '' $ac_executable_extensions; do
3328            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3329            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3330              'mkdir (GNU coreutils) '* | \
3331              'mkdir (coreutils) '* | \
3332              'mkdir (fileutils) '4.1*)
3333                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3334                break 3;;
3335            esac
3336          done
3337        done
3338   done
3339 IFS=$as_save_IFS
3340
3341 fi
3342
3343   test -d ./--version && rmdir ./--version
3344   if test "${ac_cv_path_mkdir+set}" = set; then
3345     MKDIR_P="$ac_cv_path_mkdir -p"
3346   else
3347     # As a last resort, use the slow shell script.  Don't cache a
3348     # value for MKDIR_P within a source directory, because that will
3349     # break other packages using the cache if that directory is
3350     # removed, or if the value is a relative name.
3351     MKDIR_P="$ac_install_sh -d"
3352   fi
3353 fi
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3355 $as_echo "$MKDIR_P" >&6; }
3356
3357 for ac_prog in gawk mawk nawk awk
3358 do
3359   # Extract the first word of "$ac_prog", so it can be a program name with args.
3360 set dummy $ac_prog; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_AWK+:} false; then :
3364   $as_echo_n "(cached) " >&6
3365 else
3366   if test -n "$AWK"; then
3367   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374     for ac_exec_ext in '' $ac_executable_extensions; do
3375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376     ac_cv_prog_AWK="$ac_prog"
3377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378     break 2
3379   fi
3380 done
3381   done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 AWK=$ac_cv_prog_AWK
3387 if test -n "$AWK"; then
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3389 $as_echo "$AWK" >&6; }
3390 else
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3393 fi
3394
3395
3396   test -n "$AWK" && break
3397 done
3398
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3400 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3401 set x ${MAKE-make}
3402 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3403 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3404   $as_echo_n "(cached) " >&6
3405 else
3406   cat >conftest.make <<\_ACEOF
3407 SHELL = /bin/sh
3408 all:
3409         @echo '@@@%%%=$(MAKE)=@@@%%%'
3410 _ACEOF
3411 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3412 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3413   *@@@%%%=?*=@@@%%%*)
3414     eval ac_cv_prog_make_${ac_make}_set=yes;;
3415   *)
3416     eval ac_cv_prog_make_${ac_make}_set=no;;
3417 esac
3418 rm -f conftest.make
3419 fi
3420 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3422 $as_echo "yes" >&6; }
3423   SET_MAKE=
3424 else
3425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427   SET_MAKE="MAKE=${MAKE-make}"
3428 fi
3429
3430 rm -rf .tst 2>/dev/null
3431 mkdir .tst 2>/dev/null
3432 if test -d .tst; then
3433   am__leading_dot=.
3434 else
3435   am__leading_dot=_
3436 fi
3437 rmdir .tst 2>/dev/null
3438
3439 # Check whether --enable-silent-rules was given.
3440 if test "${enable_silent_rules+set}" = set; then :
3441   enableval=$enable_silent_rules;
3442 fi
3443
3444 case $enable_silent_rules in # (((
3445   yes) AM_DEFAULT_VERBOSITY=0;;
3446    no) AM_DEFAULT_VERBOSITY=1;;
3447     *) AM_DEFAULT_VERBOSITY=1;;
3448 esac
3449 am_make=${MAKE-make}
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3451 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3452 if ${am_cv_make_support_nested_variables+:} false; then :
3453   $as_echo_n "(cached) " >&6
3454 else
3455   if $as_echo 'TRUE=$(BAR$(V))
3456 BAR0=false
3457 BAR1=true
3458 V=1
3459 am__doit:
3460         @$(TRUE)
3461 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3462   am_cv_make_support_nested_variables=yes
3463 else
3464   am_cv_make_support_nested_variables=no
3465 fi
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3468 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3469 if test $am_cv_make_support_nested_variables = yes; then
3470     AM_V='$(V)'
3471   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3472 else
3473   AM_V=$AM_DEFAULT_VERBOSITY
3474   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3475 fi
3476 AM_BACKSLASH='\'
3477
3478 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3479   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3480   # is not polluted with repeated "-I."
3481   am__isrc=' -I$(srcdir)'
3482   # test to see if srcdir already configured
3483   if test -f $srcdir/config.status; then
3484     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3485   fi
3486 fi
3487
3488 # test whether we have cygpath
3489 if test -z "$CYGPATH_W"; then
3490   if (cygpath --version) >/dev/null 2>/dev/null; then
3491     CYGPATH_W='cygpath -w'
3492   else
3493     CYGPATH_W=echo
3494   fi
3495 fi
3496
3497
3498 # Define the identity of the package.
3499  PACKAGE='cyassl'
3500  VERSION='3.1.0'
3501
3502
3503 # Some tools Automake needs.
3504
3505 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3506
3507
3508 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3509
3510
3511 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3512
3513
3514 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3515
3516
3517 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3518
3519 # For better backward compatibility.  To be removed once Automake 1.9.x
3520 # dies out for good.  For more background, see:
3521 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3522 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3523 mkdir_p='$(MKDIR_P)'
3524
3525 # We need awk for the "check" target.  The system "awk" is bad on
3526 # some platforms.
3527 # Always define AMTAR for backward compatibility.  Yes, it's still used
3528 # in the wild :-(  We should find a proper way to deprecate it ...
3529 AMTAR='$${TAR-tar}'
3530
3531
3532 # We'll loop over all known methods to create a tar archive until one works.
3533 _am_tools='gnutar plaintar pax cpio none'
3534
3535 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3536       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3537       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3538       # and bug#13588).
3539       am_max_uid=2097151 # 2^21 - 1
3540       am_max_gid=$am_max_uid
3541       # The $UID and $GID variables are not portable, so we need to resort
3542       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3543       # below are definitely unexpected, so allow the users to see them
3544       # (that is, avoid stderr redirection).
3545       am_uid=`id -u || echo unknown`
3546       am_gid=`id -g || echo unknown`
3547       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3548 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3549       if test $am_uid -le $am_max_uid; then
3550          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3552       else
3553          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555          _am_tools=none
3556       fi
3557       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3558 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3559       if test $am_gid -le $am_max_gid; then
3560          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3561 $as_echo "yes" >&6; }
3562       else
3563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565         _am_tools=none
3566       fi
3567
3568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3569 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3570
3571   # Go ahead even if we have the value already cached.  We do so because we
3572   # need to set the values for the 'am__tar' and 'am__untar' variables.
3573   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3574
3575   for _am_tool in $_am_tools; do
3576     case $_am_tool in
3577     gnutar)
3578       for _am_tar in tar gnutar gtar; do
3579         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3580    ($_am_tar --version) >&5 2>&5
3581    ac_status=$?
3582    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583    (exit $ac_status); } && break
3584       done
3585       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3586       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3587       am__untar="$_am_tar -xf -"
3588       ;;
3589     plaintar)
3590       # Must skip GNU tar: if it does not support --format= it doesn't create
3591       # ustar tarball either.
3592       (tar --version) >/dev/null 2>&1 && continue
3593       am__tar='tar chf - "$$tardir"'
3594       am__tar_='tar chf - "$tardir"'
3595       am__untar='tar xf -'
3596       ;;
3597     pax)
3598       am__tar='pax -L -x ustar -w "$$tardir"'
3599       am__tar_='pax -L -x ustar -w "$tardir"'
3600       am__untar='pax -r'
3601       ;;
3602     cpio)
3603       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3604       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3605       am__untar='cpio -i -H ustar -d'
3606       ;;
3607     none)
3608       am__tar=false
3609       am__tar_=false
3610       am__untar=false
3611       ;;
3612     esac
3613
3614     # If the value was cached, stop now.  We just wanted to have am__tar
3615     # and am__untar set.
3616     test -n "${am_cv_prog_tar_ustar}" && break
3617
3618     # tar/untar a dummy directory, and stop if the command works.
3619     rm -rf conftest.dir
3620     mkdir conftest.dir
3621     echo GrepMe > conftest.dir/file
3622     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3623    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3624    ac_status=$?
3625    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626    (exit $ac_status); }
3627     rm -rf conftest.dir
3628     if test -s conftest.tar; then
3629       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3630    ($am__untar <conftest.tar) >&5 2>&5
3631    ac_status=$?
3632    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633    (exit $ac_status); }
3634       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3635    (cat conftest.dir/file) >&5 2>&5
3636    ac_status=$?
3637    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638    (exit $ac_status); }
3639       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3640     fi
3641   done
3642   rm -rf conftest.dir
3643
3644   if ${am_cv_prog_tar_ustar+:} false; then :
3645   $as_echo_n "(cached) " >&6
3646 else
3647   am_cv_prog_tar_ustar=$_am_tool
3648 fi
3649
3650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3651 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3652
3653
3654
3655
3656
3657
3658 # POSIX will say in a future version that running "rm -f" with no argument
3659 # is OK; and we want to be able to make that assumption in our Makefile
3660 # recipes.  So use an aggressive probe to check that the usage we want is
3661 # actually supported "in the wild" to an acceptable degree.
3662 # See automake bug#10828.
3663 # To make any issue more visible, cause the running configure to be aborted
3664 # by default if the 'rm' program in use doesn't match our expectations; the
3665 # user can still override this though.
3666 if rm -f && rm -fr && rm -rf; then : OK; else
3667   cat >&2 <<'END'
3668 Oops!
3669
3670 Your 'rm' program seems unable to run without file operands specified
3671 on the command line, even when the '-f' option is present.  This is contrary
3672 to the behaviour of most rm programs out there, and not conforming with
3673 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3674
3675 Please tell bug-automake@gnu.org about your system, including the value
3676 of your $PATH and any error possibly output before this message.  This
3677 can help us improve future automake versions.
3678
3679 END
3680   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3681     echo 'Configuration will proceed anyway, since you have set the' >&2
3682     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3683     echo >&2
3684   else
3685     cat >&2 <<'END'
3686 Aborting the configuration process, to ensure you take notice of the issue.
3687
3688 You can download and install GNU coreutils to get an 'rm' implementation
3689 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3690
3691 If you want to complete the configuration process using your problematic
3692 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3693 to "yes", and re-run configure.
3694
3695 END
3696     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3697   fi
3698 fi
3699
3700
3701
3702
3703 #PROTECT_AC_USE_SYSTEM_EXTENSIONS
3704
3705
3706
3707 ac_config_headers="$ac_config_headers config.h:config.in"
3708
3709 #shared library versioning
3710 CYASSL_LIBRARY_VERSION=5:6:0
3711 #                      | | |
3712 #               +------+ | +---+
3713 #               |        |     |
3714 #              current:revision:age
3715 #               |        |     |
3716 #               |        |     +- increment if interfaces have been added
3717 #               |        |        set to zero if interfaces have been removed
3718 #                        |        or changed
3719 #               |        +- increment if source code has changed
3720 #               |           set to zero if current is incremented
3721 #               +- increment if interfaces have been added, removed or changed
3722
3723
3724 # capture user C_EXTRA_FLAGS from ./configure line, CFLAGS may hold -g -O2 even
3725 # if user doesn't override, no way to tell
3726 USER_C_EXTRA_FLAGS="$C_EXTRA_FLAGS"
3727
3728
3729 case `pwd` in
3730   *\ * | *\     *)
3731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3732 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3733 esac
3734
3735
3736
3737 macro_version='2.4.2'
3738 macro_revision='1.3337'
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752 ltmain="$ac_aux_dir/ltmain.sh"
3753
3754 # Backslashify metacharacters that are still active within
3755 # double-quoted strings.
3756 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3757
3758 # Same as above, but do not quote variable references.
3759 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3760
3761 # Sed substitution to delay expansion of an escaped shell variable in a
3762 # double_quote_subst'ed string.
3763 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3764
3765 # Sed substitution to delay expansion of an escaped single quote.
3766 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3767
3768 # Sed substitution to avoid accidental globbing in evaled expressions
3769 no_glob_subst='s/\*/\\\*/g'
3770
3771 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3772 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3773 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3774
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3776 $as_echo_n "checking how to print strings... " >&6; }
3777 # Test print first, because it will be a builtin if present.
3778 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3779    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3780   ECHO='print -r --'
3781 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3782   ECHO='printf %s\n'
3783 else
3784   # Use this function as a fallback that always works.
3785   func_fallback_echo ()
3786   {
3787     eval 'cat <<_LTECHO_EOF
3788 $1
3789 _LTECHO_EOF'
3790   }
3791   ECHO='func_fallback_echo'
3792 fi
3793
3794 # func_echo_all arg...
3795 # Invoke $ECHO with all args, space-separated.
3796 func_echo_all ()
3797 {
3798     $ECHO ""
3799 }
3800
3801 case "$ECHO" in
3802   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3803 $as_echo "printf" >&6; } ;;
3804   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3805 $as_echo "print -r" >&6; } ;;
3806   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3807 $as_echo "cat" >&6; } ;;
3808 esac
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823 DEPDIR="${am__leading_dot}deps"
3824
3825 ac_config_commands="$ac_config_commands depfiles"
3826
3827
3828 am_make=${MAKE-make}
3829 cat > confinc << 'END'
3830 am__doit:
3831         @echo this is the am__doit target
3832 .PHONY: am__doit
3833 END
3834 # If we don't find an include directive, just comment out the code.
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3836 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3837 am__include="#"
3838 am__quote=
3839 _am_result=none
3840 # First try GNU make style include.
3841 echo "include confinc" > confmf
3842 # Ignore all kinds of additional output from 'make'.
3843 case `$am_make -s -f confmf 2> /dev/null` in #(
3844 *the\ am__doit\ target*)
3845   am__include=include
3846   am__quote=
3847   _am_result=GNU
3848   ;;
3849 esac
3850 # Now try BSD make style include.
3851 if test "$am__include" = "#"; then
3852    echo '.include "confinc"' > confmf
3853    case `$am_make -s -f confmf 2> /dev/null` in #(
3854    *the\ am__doit\ target*)
3855      am__include=.include
3856      am__quote="\""
3857      _am_result=BSD
3858      ;;
3859    esac
3860 fi
3861
3862
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3864 $as_echo "$_am_result" >&6; }
3865 rm -f confinc confmf
3866
3867 # Check whether --enable-dependency-tracking was given.
3868 if test "${enable_dependency_tracking+set}" = set; then :
3869   enableval=$enable_dependency_tracking;
3870 fi
3871
3872 if test "x$enable_dependency_tracking" != xno; then
3873   am_depcomp="$ac_aux_dir/depcomp"
3874   AMDEPBACKSLASH='\'
3875   am__nodep='_no'
3876 fi
3877  if test "x$enable_dependency_tracking" != xno; then
3878   AMDEP_TRUE=
3879   AMDEP_FALSE='#'
3880 else
3881   AMDEP_TRUE='#'
3882   AMDEP_FALSE=
3883 fi
3884
3885
3886 ac_ext=c
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 if test -n "$ac_tool_prefix"; then
3892   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false; then :
3897   $as_echo_n "(cached) " >&6
3898 else
3899   if test -n "$CC"; then
3900   ac_cv_prog_CC="$CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907     for ac_exec_ext in '' $ac_executable_extensions; do
3908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911     break 2
3912   fi
3913 done
3914   done
3915 IFS=$as_save_IFS
3916
3917 fi
3918 fi
3919 CC=$ac_cv_prog_CC
3920 if test -n "$CC"; then
3921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3923 else
3924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 fi
3927
3928
3929 fi
3930 if test -z "$ac_cv_prog_CC"; then
3931   ac_ct_CC=$CC
3932   # Extract the first word of "gcc", so it can be a program name with args.
3933 set dummy gcc; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3937   $as_echo_n "(cached) " >&6
3938 else
3939   if test -n "$ac_ct_CC"; then
3940   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3944 do
3945   IFS=$as_save_IFS
3946   test -z "$as_dir" && as_dir=.
3947     for ac_exec_ext in '' $ac_executable_extensions; do
3948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949     ac_cv_prog_ac_ct_CC="gcc"
3950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951     break 2
3952   fi
3953 done
3954   done
3955 IFS=$as_save_IFS
3956
3957 fi
3958 fi
3959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3960 if test -n "$ac_ct_CC"; then
3961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3962 $as_echo "$ac_ct_CC" >&6; }
3963 else
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3966 fi
3967
3968   if test "x$ac_ct_CC" = x; then
3969     CC=""
3970   else
3971     case $cross_compiling:$ac_tool_warned in
3972 yes:)
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975 ac_tool_warned=yes ;;
3976 esac
3977     CC=$ac_ct_CC
3978   fi
3979 else
3980   CC="$ac_cv_prog_CC"
3981 fi
3982
3983 if test -z "$CC"; then
3984           if test -n "$ac_tool_prefix"; then
3985     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}cc; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false; then :
3990   $as_echo_n "(cached) " >&6
3991 else
3992   if test -n "$CC"; then
3993   ac_cv_prog_CC="$CC" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998   IFS=$as_save_IFS
3999   test -z "$as_dir" && as_dir=.
4000     for ac_exec_ext in '' $ac_executable_extensions; do
4001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002     ac_cv_prog_CC="${ac_tool_prefix}cc"
4003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004     break 2
4005   fi
4006 done
4007   done
4008 IFS=$as_save_IFS
4009
4010 fi
4011 fi
4012 CC=$ac_cv_prog_CC
4013 if test -n "$CC"; then
4014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4015 $as_echo "$CC" >&6; }
4016 else
4017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4019 fi
4020
4021
4022   fi
4023 fi
4024 if test -z "$CC"; then
4025   # Extract the first word of "cc", so it can be a program name with args.
4026 set dummy cc; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_CC+:} false; then :
4030   $as_echo_n "(cached) " >&6
4031 else
4032   if test -n "$CC"; then
4033   ac_cv_prog_CC="$CC" # Let the user override the test.
4034 else
4035   ac_prog_rejected=no
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039   IFS=$as_save_IFS
4040   test -z "$as_dir" && as_dir=.
4041     for ac_exec_ext in '' $ac_executable_extensions; do
4042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4044        ac_prog_rejected=yes
4045        continue
4046      fi
4047     ac_cv_prog_CC="cc"
4048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052   done
4053 IFS=$as_save_IFS
4054
4055 if test $ac_prog_rejected = yes; then
4056   # We found a bogon in the path, so make sure we never use it.
4057   set dummy $ac_cv_prog_CC
4058   shift
4059   if test $# != 0; then
4060     # We chose a different compiler from the bogus one.
4061     # However, it has the same basename, so the bogon will be chosen
4062     # first if we set CC to just the basename; use the full file name.
4063     shift
4064     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4065   fi
4066 fi
4067 fi
4068 fi
4069 CC=$ac_cv_prog_CC
4070 if test -n "$CC"; then
4071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072 $as_echo "$CC" >&6; }
4073 else
4074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4076 fi
4077
4078
4079 fi
4080 if test -z "$CC"; then
4081   if test -n "$ac_tool_prefix"; then
4082   for ac_prog in cl.exe
4083   do
4084     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_prog_CC+:} false; then :
4089   $as_echo_n "(cached) " >&6
4090 else
4091   if test -n "$CC"; then
4092   ac_cv_prog_CC="$CC" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097   IFS=$as_save_IFS
4098   test -z "$as_dir" && as_dir=.
4099     for ac_exec_ext in '' $ac_executable_extensions; do
4100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103     break 2
4104   fi
4105 done
4106   done
4107 IFS=$as_save_IFS
4108
4109 fi
4110 fi
4111 CC=$ac_cv_prog_CC
4112 if test -n "$CC"; then
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4115 else
4116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4118 fi
4119
4120
4121     test -n "$CC" && break
4122   done
4123 fi
4124 if test -z "$CC"; then
4125   ac_ct_CC=$CC
4126   for ac_prog in cl.exe
4127 do
4128   # Extract the first word of "$ac_prog", so it can be a program name with args.
4129 set dummy $ac_prog; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4133   $as_echo_n "(cached) " >&6
4134 else
4135   if test -n "$ac_ct_CC"; then
4136   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145     ac_cv_prog_ac_ct_CC="$ac_prog"
4146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152
4153 fi
4154 fi
4155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4156 if test -n "$ac_ct_CC"; then
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4158 $as_echo "$ac_ct_CC" >&6; }
4159 else
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4162 fi
4163
4164
4165   test -n "$ac_ct_CC" && break
4166 done
4167
4168   if test "x$ac_ct_CC" = x; then
4169     CC=""
4170   else
4171     case $cross_compiling:$ac_tool_warned in
4172 yes:)
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4175 ac_tool_warned=yes ;;
4176 esac
4177     CC=$ac_ct_CC
4178   fi
4179 fi
4180
4181 fi
4182
4183
4184 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error $? "no acceptable C compiler found in \$PATH
4187 See \`config.log' for more details" "$LINENO" 5; }
4188
4189 # Provide some information about the compiler.
4190 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4191 set X $ac_compile
4192 ac_compiler=$2
4193 for ac_option in --version -v -V -qversion; do
4194   { { ac_try="$ac_compiler $ac_option >&5"
4195 case "(($ac_try" in
4196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197   *) ac_try_echo=$ac_try;;
4198 esac
4199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4200 $as_echo "$ac_try_echo"; } >&5
4201   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4202   ac_status=$?
4203   if test -s conftest.err; then
4204     sed '10a\
4205 ... rest of stderr output deleted ...
4206          10q' conftest.err >conftest.er1
4207     cat conftest.er1 >&5
4208   fi
4209   rm -f conftest.er1 conftest.err
4210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4211   test $ac_status = 0; }
4212 done
4213
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h.  */
4216
4217 int
4218 main ()
4219 {
4220
4221   ;
4222   return 0;
4223 }
4224 _ACEOF
4225 ac_clean_files_save=$ac_clean_files
4226 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4227 # Try to create an executable without -o first, disregard a.out.
4228 # It will help us diagnose broken compilers, and finding out an intuition
4229 # of exeext.
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4231 $as_echo_n "checking whether the C compiler works... " >&6; }
4232 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4233
4234 # The possible output files:
4235 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4236
4237 ac_rmfiles=
4238 for ac_file in $ac_files
4239 do
4240   case $ac_file in
4241     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4242     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4243   esac
4244 done
4245 rm -f $ac_rmfiles
4246
4247 if { { ac_try="$ac_link_default"
4248 case "(($ac_try" in
4249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250   *) ac_try_echo=$ac_try;;
4251 esac
4252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 $as_echo "$ac_try_echo"; } >&5
4254   (eval "$ac_link_default") 2>&5
4255   ac_status=$?
4256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257   test $ac_status = 0; }; then :
4258   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4259 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4260 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4261 # so that the user can short-circuit this test for compilers unknown to
4262 # Autoconf.
4263 for ac_file in $ac_files ''
4264 do
4265   test -f "$ac_file" || continue
4266   case $ac_file in
4267     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4268         ;;
4269     [ab].out )
4270         # We found the default executable, but exeext='' is most
4271         # certainly right.
4272         break;;
4273     *.* )
4274         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4275         then :; else
4276            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4277         fi
4278         # We set ac_cv_exeext here because the later test for it is not
4279         # safe: cross compilers may not add the suffix if given an `-o'
4280         # argument, so we may need to know it at that point already.
4281         # Even if this section looks crufty: it has the advantage of
4282         # actually working.
4283         break;;
4284     * )
4285         break;;
4286   esac
4287 done
4288 test "$ac_cv_exeext" = no && ac_cv_exeext=
4289
4290 else
4291   ac_file=''
4292 fi
4293 if test -z "$ac_file"; then :
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error 77 "C compiler cannot create executables
4302 See \`config.log' for more details" "$LINENO" 5; }
4303 else
4304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4305 $as_echo "yes" >&6; }
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4308 $as_echo_n "checking for C compiler default output file name... " >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4310 $as_echo "$ac_file" >&6; }
4311 ac_exeext=$ac_cv_exeext
4312
4313 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4314 ac_clean_files=$ac_clean_files_save
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4316 $as_echo_n "checking for suffix of executables... " >&6; }
4317 if { { ac_try="$ac_link"
4318 case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324   (eval "$ac_link") 2>&5
4325   ac_status=$?
4326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327   test $ac_status = 0; }; then :
4328   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4329 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4330 # work properly (i.e., refer to `conftest.exe'), while it won't with
4331 # `rm'.
4332 for ac_file in conftest.exe conftest conftest.*; do
4333   test -f "$ac_file" || continue
4334   case $ac_file in
4335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4336     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4337           break;;
4338     * ) break;;
4339   esac
4340 done
4341 else
4342   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4344 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4345 See \`config.log' for more details" "$LINENO" 5; }
4346 fi
4347 rm -f conftest conftest$ac_cv_exeext
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4349 $as_echo "$ac_cv_exeext" >&6; }
4350
4351 rm -f conftest.$ac_ext
4352 EXEEXT=$ac_cv_exeext
4353 ac_exeext=$EXEEXT
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h.  */
4356 #include <stdio.h>
4357 int
4358 main ()
4359 {
4360 FILE *f = fopen ("conftest.out", "w");
4361  return ferror (f) || fclose (f) != 0;
4362
4363   ;
4364   return 0;
4365 }
4366 _ACEOF
4367 ac_clean_files="$ac_clean_files conftest.out"
4368 # Check that the compiler produces executables we can run.  If not, either
4369 # the compiler is broken, or we cross compile.
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4371 $as_echo_n "checking whether we are cross compiling... " >&6; }
4372 if test "$cross_compiling" != yes; then
4373   { { ac_try="$ac_link"
4374 case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380   (eval "$ac_link") 2>&5
4381   ac_status=$?
4382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383   test $ac_status = 0; }
4384   if { ac_try='./conftest$ac_cv_exeext'
4385   { { case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391   (eval "$ac_try") 2>&5
4392   ac_status=$?
4393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394   test $ac_status = 0; }; }; then
4395     cross_compiling=no
4396   else
4397     if test "$cross_compiling" = maybe; then
4398         cross_compiling=yes
4399     else
4400         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4402 as_fn_error $? "cannot run C compiled programs.
4403 If you meant to cross compile, use \`--host'.
4404 See \`config.log' for more details" "$LINENO" 5; }
4405     fi
4406   fi
4407 fi
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4409 $as_echo "$cross_compiling" >&6; }
4410
4411 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4412 ac_clean_files=$ac_clean_files_save
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4414 $as_echo_n "checking for suffix of object files... " >&6; }
4415 if ${ac_cv_objext+:} false; then :
4416   $as_echo_n "(cached) " >&6
4417 else
4418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h.  */
4420
4421 int
4422 main ()
4423 {
4424
4425   ;
4426   return 0;
4427 }
4428 _ACEOF
4429 rm -f conftest.o conftest.obj
4430 if { { ac_try="$ac_compile"
4431 case "(($ac_try" in
4432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433   *) ac_try_echo=$ac_try;;
4434 esac
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 $as_echo "$ac_try_echo"; } >&5
4437   (eval "$ac_compile") 2>&5
4438   ac_status=$?
4439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440   test $ac_status = 0; }; then :
4441   for ac_file in conftest.o conftest.obj conftest.*; do
4442   test -f "$ac_file" || continue;
4443   case $ac_file in
4444     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4445     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4446        break;;
4447   esac
4448 done
4449 else
4450   $as_echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error $? "cannot compute suffix of object files: cannot compile
4456 See \`config.log' for more details" "$LINENO" 5; }
4457 fi
4458 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4459 fi
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4461 $as_echo "$ac_cv_objext" >&6; }
4462 OBJEXT=$ac_cv_objext
4463 ac_objext=$OBJEXT
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4465 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4466 if ${ac_cv_c_compiler_gnu+:} false; then :
4467   $as_echo_n "(cached) " >&6
4468 else
4469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h.  */
4471
4472 int
4473 main ()
4474 {
4475 #ifndef __GNUC__
4476        choke me
4477 #endif
4478
4479   ;
4480   return 0;
4481 }
4482 _ACEOF
4483 if ac_fn_c_try_compile "$LINENO"; then :
4484   ac_compiler_gnu=yes
4485 else
4486   ac_compiler_gnu=no
4487 fi
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4490
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4493 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4494 if test $ac_compiler_gnu = yes; then
4495   GCC=yes
4496 else
4497   GCC=
4498 fi
4499 ac_test_CFLAGS=${CFLAGS+set}
4500 ac_save_CFLAGS=$CFLAGS
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4502 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4503 if ${ac_cv_prog_cc_g+:} false; then :
4504   $as_echo_n "(cached) " >&6
4505 else
4506   ac_save_c_werror_flag=$ac_c_werror_flag
4507    ac_c_werror_flag=yes
4508    ac_cv_prog_cc_g=no
4509    CFLAGS="-g"
4510    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h.  */
4512
4513 int
4514 main ()
4515 {
4516
4517   ;
4518   return 0;
4519 }
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522   ac_cv_prog_cc_g=yes
4523 else
4524   CFLAGS=""
4525       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h.  */
4527
4528 int
4529 main ()
4530 {
4531
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_c_try_compile "$LINENO"; then :
4537
4538 else
4539   ac_c_werror_flag=$ac_save_c_werror_flag
4540          CFLAGS="-g"
4541          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h.  */
4543
4544 int
4545 main ()
4546 {
4547
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 if ac_fn_c_try_compile "$LINENO"; then :
4553   ac_cv_prog_cc_g=yes
4554 fi
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 fi
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 fi
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560    ac_c_werror_flag=$ac_save_c_werror_flag
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4563 $as_echo "$ac_cv_prog_cc_g" >&6; }
4564 if test "$ac_test_CFLAGS" = set; then
4565   CFLAGS=$ac_save_CFLAGS
4566 elif test $ac_cv_prog_cc_g = yes; then
4567   if test "$GCC" = yes; then
4568     CFLAGS="-g -O2"
4569   else
4570     CFLAGS="-g"
4571   fi
4572 else
4573   if test "$GCC" = yes; then
4574     CFLAGS="-O2"
4575   else
4576     CFLAGS=
4577   fi
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4580 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4581 if ${ac_cv_prog_cc_c89+:} false; then :
4582   $as_echo_n "(cached) " >&6
4583 else
4584   ac_cv_prog_cc_c89=no
4585 ac_save_CC=$CC
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h.  */
4588 #include <stdarg.h>
4589 #include <stdio.h>
4590 struct stat;
4591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4592 struct buf { int x; };
4593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4594 static char *e (p, i)
4595      char **p;
4596      int i;
4597 {
4598   return p[i];
4599 }
4600 static char *f (char * (*g) (char **, int), char **p, ...)
4601 {
4602   char *s;
4603   va_list v;
4604   va_start (v,p);
4605   s = g (p, va_arg (v,int));
4606   va_end (v);
4607   return s;
4608 }
4609
4610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4611    function prototypes and stuff, but not '\xHH' hex character constants.
4612    These don't provoke an error unfortunately, instead are silently treated
4613    as 'x'.  The following induces an error, until -std is added to get
4614    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4615    array size at least.  It's necessary to write '\x00'==0 to get something
4616    that's true only with -std.  */
4617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4618
4619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4620    inside strings and character constants.  */
4621 #define FOO(x) 'x'
4622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4623
4624 int test (int i, double x);
4625 struct s1 {int (*f) (int a);};
4626 struct s2 {int (*f) (double a);};
4627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4628 int argc;
4629 char **argv;
4630 int
4631 main ()
4632 {
4633 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4634   ;
4635   return 0;
4636 }
4637 _ACEOF
4638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4639         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4640 do
4641   CC="$ac_save_CC $ac_arg"
4642   if ac_fn_c_try_compile "$LINENO"; then :
4643   ac_cv_prog_cc_c89=$ac_arg
4644 fi
4645 rm -f core conftest.err conftest.$ac_objext
4646   test "x$ac_cv_prog_cc_c89" != "xno" && break
4647 done
4648 rm -f conftest.$ac_ext
4649 CC=$ac_save_CC
4650
4651 fi
4652 # AC_CACHE_VAL
4653 case "x$ac_cv_prog_cc_c89" in
4654   x)
4655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4656 $as_echo "none needed" >&6; } ;;
4657   xno)
4658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4659 $as_echo "unsupported" >&6; } ;;
4660   *)
4661     CC="$CC $ac_cv_prog_cc_c89"
4662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4663 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4664 esac
4665 if test "x$ac_cv_prog_cc_c89" != xno; then :
4666
4667 fi
4668
4669 ac_ext=c
4670 ac_cpp='$CPP $CPPFLAGS'
4671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4674
4675 ac_ext=c
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4681 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4682 if ${am_cv_prog_cc_c_o+:} false; then :
4683   $as_echo_n "(cached) " >&6
4684 else
4685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h.  */
4687
4688 int
4689 main ()
4690 {
4691
4692   ;
4693   return 0;
4694 }
4695 _ACEOF
4696   # Make sure it works both with $CC and with simple cc.
4697   # Following AC_PROG_CC_C_O, we do the test twice because some
4698   # compilers refuse to overwrite an existing .o file with -o,
4699   # though they will create one.
4700   am_cv_prog_cc_c_o=yes
4701   for am_i in 1 2; do
4702     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4703    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4704    ac_status=$?
4705    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706    (exit $ac_status); } \
4707          && test -f conftest2.$ac_objext; then
4708       : OK
4709     else
4710       am_cv_prog_cc_c_o=no
4711       break
4712     fi
4713   done
4714   rm -f core conftest*
4715   unset am_i
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4718 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4719 if test "$am_cv_prog_cc_c_o" != yes; then
4720    # Losing compiler, so override with the script.
4721    # FIXME: It is wrong to rewrite CC.
4722    # But if we don't then we get into trouble of one sort or another.
4723    # A longer-term fix would be to have automake use am__CC in this case,
4724    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4725    CC="$am_aux_dir/compile $CC"
4726 fi
4727 ac_ext=c
4728 ac_cpp='$CPP $CPPFLAGS'
4729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4732
4733
4734 depcc="$CC"   am_compiler_list=
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4737 $as_echo_n "checking dependency style of $depcc... " >&6; }
4738 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4742   # We make a subdir and do the tests there.  Otherwise we can end up
4743   # making bogus files that we don't know about and never remove.  For
4744   # instance it was reported that on HP-UX the gcc test will end up
4745   # making a dummy file named 'D' -- because '-MD' means "put the output
4746   # in D".
4747   rm -rf conftest.dir
4748   mkdir conftest.dir
4749   # Copy depcomp to subdir because otherwise we won't find it if we're
4750   # using a relative directory.
4751   cp "$am_depcomp" conftest.dir
4752   cd conftest.dir
4753   # We will build objects and dependencies in a subdirectory because
4754   # it helps to detect inapplicable dependency modes.  For instance
4755   # both Tru64's cc and ICC support -MD to output dependencies as a
4756   # side effect of compilation, but ICC will put the dependencies in
4757   # the current directory while Tru64 will put them in the object
4758   # directory.
4759   mkdir sub
4760
4761   am_cv_CC_dependencies_compiler_type=none
4762   if test "$am_compiler_list" = ""; then
4763      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4764   fi
4765   am__universal=false
4766   case " $depcc " in #(
4767      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4768      esac
4769
4770   for depmode in $am_compiler_list; do
4771     # Setup a source with many dependencies, because some compilers
4772     # like to wrap large dependency lists on column 80 (with \), and
4773     # we should not choose a depcomp mode which is confused by this.
4774     #
4775     # We need to recreate these files for each test, as the compiler may
4776     # overwrite some of them when testing with obscure command lines.
4777     # This happens at least with the AIX C compiler.
4778     : > sub/conftest.c
4779     for i in 1 2 3 4 5 6; do
4780       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4781       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4782       # Solaris 10 /bin/sh.
4783       echo '/* dummy */' > sub/conftst$i.h
4784     done
4785     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4786
4787     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4788     # mode.  It turns out that the SunPro C++ compiler does not properly
4789     # handle '-M -o', and we need to detect this.  Also, some Intel
4790     # versions had trouble with output in subdirs.
4791     am__obj=sub/conftest.${OBJEXT-o}
4792     am__minus_obj="-o $am__obj"
4793     case $depmode in
4794     gcc)
4795       # This depmode causes a compiler race in universal mode.
4796       test "$am__universal" = false || continue
4797       ;;
4798     nosideeffect)
4799       # After this tag, mechanisms are not by side-effect, so they'll
4800       # only be used when explicitly requested.
4801       if test "x$enable_dependency_tracking" = xyes; then
4802         continue
4803       else
4804         break
4805       fi
4806       ;;
4807     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4808       # This compiler won't grok '-c -o', but also, the minuso test has
4809       # not run yet.  These depmodes are late enough in the game, and
4810       # so weak that their functioning should not be impacted.
4811       am__obj=conftest.${OBJEXT-o}
4812       am__minus_obj=
4813       ;;
4814     none) break ;;
4815     esac
4816     if depmode=$depmode \
4817        source=sub/conftest.c object=$am__obj \
4818        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4819        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4820          >/dev/null 2>conftest.err &&
4821        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4822        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4823        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4824        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4825       # icc doesn't choke on unknown options, it will just issue warnings
4826       # or remarks (even with -Werror).  So we grep stderr for any message
4827       # that says an option was ignored or not supported.
4828       # When given -MP, icc 7.0 and 7.1 complain thusly:
4829       #   icc: Command line warning: ignoring option '-M'; no argument required
4830       # The diagnosis changed in icc 8.0:
4831       #   icc: Command line remark: option '-MP' not supported
4832       if (grep 'ignoring option' conftest.err ||
4833           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4834         am_cv_CC_dependencies_compiler_type=$depmode
4835         break
4836       fi
4837     fi
4838   done
4839
4840   cd ..
4841   rm -rf conftest.dir
4842 else
4843   am_cv_CC_dependencies_compiler_type=none
4844 fi
4845
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4848 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4849 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4850
4851  if
4852   test "x$enable_dependency_tracking" != xno \
4853   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4854   am__fastdepCC_TRUE=
4855   am__fastdepCC_FALSE='#'
4856 else
4857   am__fastdepCC_TRUE='#'
4858   am__fastdepCC_FALSE=
4859 fi
4860
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4863 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4864 if ${ac_cv_path_SED+:} false; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4868      for ac_i in 1 2 3 4 5 6 7; do
4869        ac_script="$ac_script$as_nl$ac_script"
4870      done
4871      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4872      { ac_script=; unset ac_script;}
4873      if test -z "$SED"; then
4874   ac_path_SED_found=false
4875   # Loop through the user's path and test for each of PROGNAME-LIST
4876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881     for ac_prog in sed gsed; do
4882     for ac_exec_ext in '' $ac_executable_extensions; do
4883       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4884       as_fn_executable_p "$ac_path_SED" || continue
4885 # Check for GNU ac_path_SED and select it if it is found.
4886   # Check for GNU $ac_path_SED
4887 case `"$ac_path_SED" --version 2>&1` in
4888 *GNU*)
4889   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4890 *)
4891   ac_count=0
4892   $as_echo_n 0123456789 >"conftest.in"
4893   while :
4894   do
4895     cat "conftest.in" "conftest.in" >"conftest.tmp"
4896     mv "conftest.tmp" "conftest.in"
4897     cp "conftest.in" "conftest.nl"
4898     $as_echo '' >> "conftest.nl"
4899     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4900     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4901     as_fn_arith $ac_count + 1 && ac_count=$as_val
4902     if test $ac_count -gt ${ac_path_SED_max-0}; then
4903       # Best one so far, save it but keep looking for a better one
4904       ac_cv_path_SED="$ac_path_SED"
4905       ac_path_SED_max=$ac_count
4906     fi
4907     # 10*(2^10) chars as input seems more than enough
4908     test $ac_count -gt 10 && break
4909   done
4910   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4911 esac
4912
4913       $ac_path_SED_found && break 3
4914     done
4915   done
4916   done
4917 IFS=$as_save_IFS
4918   if test -z "$ac_cv_path_SED"; then
4919     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4920   fi
4921 else
4922   ac_cv_path_SED=$SED
4923 fi
4924
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4927 $as_echo "$ac_cv_path_SED" >&6; }
4928  SED="$ac_cv_path_SED"
4929   rm -f conftest.sed
4930
4931 test -z "$SED" && SED=sed
4932 Xsed="$SED -e 1s/^X//"
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4945 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4946 if ${ac_cv_path_GREP+:} false; then :
4947   $as_echo_n "(cached) " >&6
4948 else
4949   if test -z "$GREP"; then
4950   ac_path_GREP_found=false
4951   # Loop through the user's path and test for each of PROGNAME-LIST
4952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4954 do
4955   IFS=$as_save_IFS
4956   test -z "$as_dir" && as_dir=.
4957     for ac_prog in grep ggrep; do
4958     for ac_exec_ext in '' $ac_executable_extensions; do
4959       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4960       as_fn_executable_p "$ac_path_GREP" || continue
4961 # Check for GNU ac_path_GREP and select it if it is found.
4962   # Check for GNU $ac_path_GREP
4963 case `"$ac_path_GREP" --version 2>&1` in
4964 *GNU*)
4965   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4966 *)
4967   ac_count=0
4968   $as_echo_n 0123456789 >"conftest.in"
4969   while :
4970   do
4971     cat "conftest.in" "conftest.in" >"conftest.tmp"
4972     mv "conftest.tmp" "conftest.in"
4973     cp "conftest.in" "conftest.nl"
4974     $as_echo 'GREP' >> "conftest.nl"
4975     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4976     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4977     as_fn_arith $ac_count + 1 && ac_count=$as_val
4978     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4979       # Best one so far, save it but keep looking for a better one
4980       ac_cv_path_GREP="$ac_path_GREP"
4981       ac_path_GREP_max=$ac_count
4982     fi
4983     # 10*(2^10) chars as input seems more than enough
4984     test $ac_count -gt 10 && break
4985   done
4986   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4987 esac
4988
4989       $ac_path_GREP_found && break 3
4990     done
4991   done
4992   done
4993 IFS=$as_save_IFS
4994   if test -z "$ac_cv_path_GREP"; then
4995     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4996   fi
4997 else
4998   ac_cv_path_GREP=$GREP
4999 fi
5000
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5003 $as_echo "$ac_cv_path_GREP" >&6; }
5004  GREP="$ac_cv_path_GREP"
5005
5006
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5008 $as_echo_n "checking for egrep... " >&6; }
5009 if ${ac_cv_path_EGREP+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5013    then ac_cv_path_EGREP="$GREP -E"
5014    else
5015      if test -z "$EGREP"; then
5016   ac_path_EGREP_found=false
5017   # Loop through the user's path and test for each of PROGNAME-LIST
5018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023     for ac_prog in egrep; do
5024     for ac_exec_ext in '' $ac_executable_extensions; do
5025       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5026       as_fn_executable_p "$ac_path_EGREP" || continue
5027 # Check for GNU ac_path_EGREP and select it if it is found.
5028   # Check for GNU $ac_path_EGREP
5029 case `"$ac_path_EGREP" --version 2>&1` in
5030 *GNU*)
5031   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5032 *)
5033   ac_count=0
5034   $as_echo_n 0123456789 >"conftest.in"
5035   while :
5036   do
5037     cat "conftest.in" "conftest.in" >"conftest.tmp"
5038     mv "conftest.tmp" "conftest.in"
5039     cp "conftest.in" "conftest.nl"
5040     $as_echo 'EGREP' >> "conftest.nl"
5041     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5042     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5043     as_fn_arith $ac_count + 1 && ac_count=$as_val
5044     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5045       # Best one so far, save it but keep looking for a better one
5046       ac_cv_path_EGREP="$ac_path_EGREP"
5047       ac_path_EGREP_max=$ac_count
5048     fi
5049     # 10*(2^10) chars as input seems more than enough
5050     test $ac_count -gt 10 && break
5051   done
5052   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5053 esac
5054
5055       $ac_path_EGREP_found && break 3
5056     done
5057   done
5058   done
5059 IFS=$as_save_IFS
5060   if test -z "$ac_cv_path_EGREP"; then
5061     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5062   fi
5063 else
5064   ac_cv_path_EGREP=$EGREP
5065 fi
5066
5067    fi
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5070 $as_echo "$ac_cv_path_EGREP" >&6; }
5071  EGREP="$ac_cv_path_EGREP"
5072
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5075 $as_echo_n "checking for fgrep... " >&6; }
5076 if ${ac_cv_path_FGREP+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5080    then ac_cv_path_FGREP="$GREP -F"
5081    else
5082      if test -z "$FGREP"; then
5083   ac_path_FGREP_found=false
5084   # Loop through the user's path and test for each of PROGNAME-LIST
5085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090     for ac_prog in fgrep; do
5091     for ac_exec_ext in '' $ac_executable_extensions; do
5092       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5093       as_fn_executable_p "$ac_path_FGREP" || continue
5094 # Check for GNU ac_path_FGREP and select it if it is found.
5095   # Check for GNU $ac_path_FGREP
5096 case `"$ac_path_FGREP" --version 2>&1` in
5097 *GNU*)
5098   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5099 *)
5100   ac_count=0
5101   $as_echo_n 0123456789 >"conftest.in"
5102   while :
5103   do
5104     cat "conftest.in" "conftest.in" >"conftest.tmp"
5105     mv "conftest.tmp" "conftest.in"
5106     cp "conftest.in" "conftest.nl"
5107     $as_echo 'FGREP' >> "conftest.nl"
5108     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110     as_fn_arith $ac_count + 1 && ac_count=$as_val
5111     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5112       # Best one so far, save it but keep looking for a better one
5113       ac_cv_path_FGREP="$ac_path_FGREP"
5114       ac_path_FGREP_max=$ac_count
5115     fi
5116     # 10*(2^10) chars as input seems more than enough
5117     test $ac_count -gt 10 && break
5118   done
5119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 esac
5121
5122       $ac_path_FGREP_found && break 3
5123     done
5124   done
5125   done
5126 IFS=$as_save_IFS
5127   if test -z "$ac_cv_path_FGREP"; then
5128     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5129   fi
5130 else
5131   ac_cv_path_FGREP=$FGREP
5132 fi
5133
5134    fi
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5137 $as_echo "$ac_cv_path_FGREP" >&6; }
5138  FGREP="$ac_cv_path_FGREP"
5139
5140
5141 test -z "$GREP" && GREP=grep
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161 # Check whether --with-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then :
5163   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5164 else
5165   with_gnu_ld=no
5166 fi
5167
5168 ac_prog=ld
5169 if test "$GCC" = yes; then
5170   # Check if gcc -print-prog-name=ld gives a path.
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5172 $as_echo_n "checking for ld used by $CC... " >&6; }
5173   case $host in
5174   *-*-mingw*)
5175     # gcc leaves a trailing carriage return which upsets mingw
5176     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5177   *)
5178     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5179   esac
5180   case $ac_prog in
5181     # Accept absolute paths.
5182     [\\/]* | ?:[\\/]*)
5183       re_direlt='/[^/][^/]*/\.\./'
5184       # Canonicalize the pathname of ld
5185       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5186       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5187         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5188       done
5189       test -z "$LD" && LD="$ac_prog"
5190       ;;
5191   "")
5192     # If it fails, then pretend we aren't using GCC.
5193     ac_prog=ld
5194     ;;
5195   *)
5196     # If it is relative, then search for the first ld in PATH.
5197     with_gnu_ld=unknown
5198     ;;
5199   esac
5200 elif test "$with_gnu_ld" = yes; then
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5202 $as_echo_n "checking for GNU ld... " >&6; }
5203 else
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5205 $as_echo_n "checking for non-GNU ld... " >&6; }
5206 fi
5207 if ${lt_cv_path_LD+:} false; then :
5208   $as_echo_n "(cached) " >&6
5209 else
5210   if test -z "$LD"; then
5211   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5212   for ac_dir in $PATH; do
5213     IFS="$lt_save_ifs"
5214     test -z "$ac_dir" && ac_dir=.
5215     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5216       lt_cv_path_LD="$ac_dir/$ac_prog"
5217       # Check to see if the program is GNU ld.  I'd rather use --version,
5218       # but apparently some variants of GNU ld only accept -v.
5219       # Break only if it was the GNU/non-GNU ld that we prefer.
5220       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5221       *GNU* | *'with BFD'*)
5222         test "$with_gnu_ld" != no && break
5223         ;;
5224       *)
5225         test "$with_gnu_ld" != yes && break
5226         ;;
5227       esac
5228     fi
5229   done
5230   IFS="$lt_save_ifs"
5231 else
5232   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5233 fi
5234 fi
5235
5236 LD="$lt_cv_path_LD"
5237 if test -n "$LD"; then
5238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5239 $as_echo "$LD" >&6; }
5240 else
5241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 fi
5244 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5247 if ${lt_cv_prog_gnu_ld+:} false; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5251 case `$LD -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253   lt_cv_prog_gnu_ld=yes
5254   ;;
5255 *)
5256   lt_cv_prog_gnu_ld=no
5257   ;;
5258 esac
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5261 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5262 with_gnu_ld=$lt_cv_prog_gnu_ld
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5273 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5274 if ${lt_cv_path_NM+:} false; then :
5275   $as_echo_n "(cached) " >&6
5276 else
5277   if test -n "$NM"; then
5278   # Let the user override the test.
5279   lt_cv_path_NM="$NM"
5280 else
5281   lt_nm_to_check="${ac_tool_prefix}nm"
5282   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5283     lt_nm_to_check="$lt_nm_to_check nm"
5284   fi
5285   for lt_tmp_nm in $lt_nm_to_check; do
5286     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5287     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5288       IFS="$lt_save_ifs"
5289       test -z "$ac_dir" && ac_dir=.
5290       tmp_nm="$ac_dir/$lt_tmp_nm"
5291       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5292         # Check to see if the nm accepts a BSD-compat flag.
5293         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5294         #   nm: unknown option "B" ignored
5295         # Tru64's nm complains that /dev/null is an invalid object file
5296         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5297         */dev/null* | *'Invalid file or object type'*)
5298           lt_cv_path_NM="$tmp_nm -B"
5299           break
5300           ;;
5301         *)
5302           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5303           */dev/null*)
5304             lt_cv_path_NM="$tmp_nm -p"
5305             break
5306             ;;
5307           *)
5308             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5309             continue # so that we can try to find one that supports BSD flags
5310             ;;
5311           esac
5312           ;;
5313         esac
5314       fi
5315     done
5316     IFS="$lt_save_ifs"
5317   done
5318   : ${lt_cv_path_NM=no}
5319 fi
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5322 $as_echo "$lt_cv_path_NM" >&6; }
5323 if test "$lt_cv_path_NM" != "no"; then
5324   NM="$lt_cv_path_NM"
5325 else
5326   # Didn't find any BSD compatible name lister, look for dumpbin.
5327   if test -n "$DUMPBIN"; then :
5328     # Let the user override the test.
5329   else
5330     if test -n "$ac_tool_prefix"; then
5331   for ac_prog in dumpbin "link -dump"
5332   do
5333     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if ${ac_cv_prog_DUMPBIN+:} false; then :
5338   $as_echo_n "(cached) " >&6
5339 else
5340   if test -n "$DUMPBIN"; then
5341   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348     for ac_exec_ext in '' $ac_executable_extensions; do
5349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355   done
5356 IFS=$as_save_IFS
5357
5358 fi
5359 fi
5360 DUMPBIN=$ac_cv_prog_DUMPBIN
5361 if test -n "$DUMPBIN"; then
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5363 $as_echo "$DUMPBIN" >&6; }
5364 else
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5367 fi
5368
5369
5370     test -n "$DUMPBIN" && break
5371   done
5372 fi
5373 if test -z "$DUMPBIN"; then
5374   ac_ct_DUMPBIN=$DUMPBIN
5375   for ac_prog in dumpbin "link -dump"
5376 do
5377   # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5382   $as_echo_n "(cached) " >&6
5383 else
5384   if test -n "$ac_ct_DUMPBIN"; then
5385   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390   IFS=$as_save_IFS
5391   test -z "$as_dir" && as_dir=.
5392     for ac_exec_ext in '' $ac_executable_extensions; do
5393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396     break 2
5397   fi
5398 done
5399   done
5400 IFS=$as_save_IFS
5401
5402 fi
5403 fi
5404 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5405 if test -n "$ac_ct_DUMPBIN"; then
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5407 $as_echo "$ac_ct_DUMPBIN" >&6; }
5408 else
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5411 fi
5412
5413
5414   test -n "$ac_ct_DUMPBIN" && break
5415 done
5416
5417   if test "x$ac_ct_DUMPBIN" = x; then
5418     DUMPBIN=":"
5419   else
5420     case $cross_compiling:$ac_tool_warned in
5421 yes:)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5425 esac
5426     DUMPBIN=$ac_ct_DUMPBIN
5427   fi
5428 fi
5429
5430     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5431     *COFF*)
5432       DUMPBIN="$DUMPBIN -symbols"
5433       ;;
5434     *)
5435       DUMPBIN=:
5436       ;;
5437     esac
5438   fi
5439
5440   if test "$DUMPBIN" != ":"; then
5441     NM="$DUMPBIN"
5442   fi
5443 fi
5444 test -z "$NM" && NM=nm
5445
5446
5447
5448
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5452 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5453 if ${lt_cv_nm_interface+:} false; then :
5454   $as_echo_n "(cached) " >&6
5455 else
5456   lt_cv_nm_interface="BSD nm"
5457   echo "int some_variable = 0;" > conftest.$ac_ext
5458   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5459   (eval "$ac_compile" 2>conftest.err)
5460   cat conftest.err >&5
5461   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5462   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5463   cat conftest.err >&5
5464   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5465   cat conftest.out >&5
5466   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5467     lt_cv_nm_interface="MS dumpbin"
5468   fi
5469   rm -f conftest*
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5472 $as_echo "$lt_cv_nm_interface" >&6; }
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5475 $as_echo_n "checking whether ln -s works... " >&6; }
5476 LN_S=$as_ln_s
5477 if test "$LN_S" = "ln -s"; then
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5479 $as_echo "yes" >&6; }
5480 else
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5482 $as_echo "no, using $LN_S" >&6; }
5483 fi
5484
5485 # find the maximum length of command line arguments
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5487 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5488 if ${lt_cv_sys_max_cmd_len+:} false; then :
5489   $as_echo_n "(cached) " >&6
5490 else
5491     i=0
5492   teststring="ABCD"
5493
5494   case $build_os in
5495   msdosdjgpp*)
5496     # On DJGPP, this test can blow up pretty badly due to problems in libc
5497     # (any single argument exceeding 2000 bytes causes a buffer overrun
5498     # during glob expansion).  Even if it were fixed, the result of this
5499     # check would be larger than it should be.
5500     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5501     ;;
5502
5503   gnu*)
5504     # Under GNU Hurd, this test is not required because there is
5505     # no limit to the length of command line arguments.
5506     # Libtool will interpret -1 as no limit whatsoever
5507     lt_cv_sys_max_cmd_len=-1;
5508     ;;
5509
5510   cygwin* | mingw* | cegcc*)
5511     # On Win9x/ME, this test blows up -- it succeeds, but takes
5512     # about 5 minutes as the teststring grows exponentially.
5513     # Worse, since 9x/ME are not pre-emptively multitasking,
5514     # you end up with a "frozen" computer, even though with patience
5515     # the test eventually succeeds (with a max line length of 256k).
5516     # Instead, let's just punt: use the minimum linelength reported by
5517     # all of the supported platforms: 8192 (on NT/2K/XP).
5518     lt_cv_sys_max_cmd_len=8192;
5519     ;;
5520
5521   mint*)
5522     # On MiNT this can take a long time and run out of memory.
5523     lt_cv_sys_max_cmd_len=8192;
5524     ;;
5525
5526   amigaos*)
5527     # On AmigaOS with pdksh, this test takes hours, literally.
5528     # So we just punt and use a minimum line length of 8192.
5529     lt_cv_sys_max_cmd_len=8192;
5530     ;;
5531
5532   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5533     # This has been around since 386BSD, at least.  Likely further.
5534     if test -x /sbin/sysctl; then
5535       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5536     elif test -x /usr/sbin/sysctl; then
5537       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5538     else
5539       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5540     fi
5541     # And add a safety zone
5542     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5543     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5544     ;;
5545
5546   interix*)
5547     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5548     lt_cv_sys_max_cmd_len=196608
5549     ;;
5550
5551   os2*)
5552     # The test takes a long time on OS/2.
5553     lt_cv_sys_max_cmd_len=8192
5554     ;;
5555
5556   osf*)
5557     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5558     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5559     # nice to cause kernel panics so lets avoid the loop below.
5560     # First set a reasonable default.
5561     lt_cv_sys_max_cmd_len=16384
5562     #
5563     if test -x /sbin/sysconfig; then
5564       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5565         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5566       esac
5567     fi
5568     ;;
5569   sco3.2v5*)
5570     lt_cv_sys_max_cmd_len=102400
5571     ;;
5572   sysv5* | sco5v6* | sysv4.2uw2*)
5573     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5574     if test -n "$kargmax"; then
5575       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5576     else
5577       lt_cv_sys_max_cmd_len=32768
5578     fi
5579     ;;
5580   *)
5581     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5582     if test -n "$lt_cv_sys_max_cmd_len"; then
5583       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5584       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5585     else
5586       # Make teststring a little bigger before we do anything with it.
5587       # a 1K string should be a reasonable start.
5588       for i in 1 2 3 4 5 6 7 8 ; do
5589         teststring=$teststring$teststring
5590       done
5591       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5592       # If test is not a shell built-in, we'll probably end up computing a
5593       # maximum length that is only half of the actual maximum length, but
5594       # we can't tell.
5595       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5596                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5597               test $i != 17 # 1/2 MB should be enough
5598       do
5599         i=`expr $i + 1`
5600         teststring=$teststring$teststring
5601       done
5602       # Only check the string length outside the loop.
5603       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5604       teststring=
5605       # Add a significant safety factor because C++ compilers can tack on
5606       # massive amounts of additional arguments before passing them to the
5607       # linker.  It appears as though 1/2 is a usable value.
5608       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5609     fi
5610     ;;
5611   esac
5612
5613 fi
5614
5615 if test -n $lt_cv_sys_max_cmd_len ; then
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5617 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5618 else
5619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5620 $as_echo "none" >&6; }
5621 fi
5622 max_cmd_len=$lt_cv_sys_max_cmd_len
5623
5624
5625
5626
5627
5628
5629 : ${CP="cp -f"}
5630 : ${MV="mv -f"}
5631 : ${RM="rm -f"}
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5634 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5635 # Try some XSI features
5636 xsi_shell=no
5637 ( _lt_dummy="a/b/c"
5638   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5639       = c,a/b,b/c, \
5640     && eval 'test $(( 1 + 1 )) -eq 2 \
5641     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5642   && xsi_shell=yes
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5644 $as_echo "$xsi_shell" >&6; }
5645
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5648 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5649 lt_shell_append=no
5650 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5651     >/dev/null 2>&1 \
5652   && lt_shell_append=yes
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5654 $as_echo "$lt_shell_append" >&6; }
5655
5656
5657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5658   lt_unset=unset
5659 else
5660   lt_unset=false
5661 fi
5662
5663
5664
5665
5666
5667 # test EBCDIC or ASCII
5668 case `echo X|tr X '\101'` in
5669  A) # ASCII based system
5670     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5671   lt_SP2NL='tr \040 \012'
5672   lt_NL2SP='tr \015\012 \040\040'
5673   ;;
5674  *) # EBCDIC based system
5675   lt_SP2NL='tr \100 \n'
5676   lt_NL2SP='tr \r\n \100\100'
5677   ;;
5678 esac
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5689 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5690 if ${lt_cv_to_host_file_cmd+:} false; then :
5691   $as_echo_n "(cached) " >&6
5692 else
5693   case $host in
5694   *-*-mingw* )
5695     case $build in
5696       *-*-mingw* ) # actually msys
5697         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5698         ;;
5699       *-*-cygwin* )
5700         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5701         ;;
5702       * ) # otherwise, assume *nix
5703         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5704         ;;
5705     esac
5706     ;;
5707   *-*-cygwin* )
5708     case $build in
5709       *-*-mingw* ) # actually msys
5710         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5711         ;;
5712       *-*-cygwin* )
5713         lt_cv_to_host_file_cmd=func_convert_file_noop
5714         ;;
5715       * ) # otherwise, assume *nix
5716         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5717         ;;
5718     esac
5719     ;;
5720   * ) # unhandled hosts (and "normal" native builds)
5721     lt_cv_to_host_file_cmd=func_convert_file_noop
5722     ;;
5723 esac
5724
5725 fi
5726
5727 to_host_file_cmd=$lt_cv_to_host_file_cmd
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5729 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5730
5731
5732
5733
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5736 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5737 if ${lt_cv_to_tool_file_cmd+:} false; then :
5738   $as_echo_n "(cached) " >&6
5739 else
5740   #assume ordinary cross tools, or native build.
5741 lt_cv_to_tool_file_cmd=func_convert_file_noop
5742 case $host in
5743   *-*-mingw* )
5744     case $build in
5745       *-*-mingw* ) # actually msys
5746         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5747         ;;
5748     esac
5749     ;;
5750 esac
5751
5752 fi
5753
5754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5756 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5757
5758
5759
5760
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5763 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5764 if ${lt_cv_ld_reload_flag+:} false; then :
5765   $as_echo_n "(cached) " >&6
5766 else
5767   lt_cv_ld_reload_flag='-r'
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5770 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5771 reload_flag=$lt_cv_ld_reload_flag
5772 case $reload_flag in
5773 "" | " "*) ;;
5774 *) reload_flag=" $reload_flag" ;;
5775 esac
5776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5777 case $host_os in
5778   cygwin* | mingw* | pw32* | cegcc*)
5779     if test "$GCC" != yes; then
5780       reload_cmds=false
5781     fi
5782     ;;
5783   darwin*)
5784     if test "$GCC" = yes; then
5785       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5786     else
5787       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5788     fi
5789     ;;
5790 esac
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800 if test -n "$ac_tool_prefix"; then
5801   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5802 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_OBJDUMP+:} false; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   if test -n "$OBJDUMP"; then
5809   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816     for ac_exec_ext in '' $ac_executable_extensions; do
5817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823   done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 OBJDUMP=$ac_cv_prog_OBJDUMP
5829 if test -n "$OBJDUMP"; then
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5831 $as_echo "$OBJDUMP" >&6; }
5832 else
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 fi
5836
5837
5838 fi
5839 if test -z "$ac_cv_prog_OBJDUMP"; then
5840   ac_ct_OBJDUMP=$OBJDUMP
5841   # Extract the first word of "objdump", so it can be a program name with args.
5842 set dummy objdump; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5846   $as_echo_n "(cached) " >&6
5847 else
5848   if test -n "$ac_ct_OBJDUMP"; then
5849   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856     for ac_exec_ext in '' $ac_executable_extensions; do
5857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863   done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5869 if test -n "$ac_ct_OBJDUMP"; then
5870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5871 $as_echo "$ac_ct_OBJDUMP" >&6; }
5872 else
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877   if test "x$ac_ct_OBJDUMP" = x; then
5878     OBJDUMP="false"
5879   else
5880     case $cross_compiling:$ac_tool_warned in
5881 yes:)
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884 ac_tool_warned=yes ;;
5885 esac
5886     OBJDUMP=$ac_ct_OBJDUMP
5887   fi
5888 else
5889   OBJDUMP="$ac_cv_prog_OBJDUMP"
5890 fi
5891
5892 test -z "$OBJDUMP" && OBJDUMP=objdump
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5903 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5904 if ${lt_cv_deplibs_check_method+:} false; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907   lt_cv_file_magic_cmd='$MAGIC_CMD'
5908 lt_cv_file_magic_test_file=
5909 lt_cv_deplibs_check_method='unknown'
5910 # Need to set the preceding variable on all platforms that support
5911 # interlibrary dependencies.
5912 # 'none' -- dependencies not supported.
5913 # `unknown' -- same as none, but documents that we really don't know.
5914 # 'pass_all' -- all dependencies passed with no checks.
5915 # 'test_compile' -- check by making test program.
5916 # 'file_magic [[regex]]' -- check by looking for files in library path
5917 # which responds to the $file_magic_cmd with a given extended regex.
5918 # If you have `file' or equivalent on your system and you're not sure
5919 # whether `pass_all' will *always* work, you probably want this one.
5920
5921 case $host_os in
5922 aix[4-9]*)
5923   lt_cv_deplibs_check_method=pass_all
5924   ;;
5925
5926 beos*)
5927   lt_cv_deplibs_check_method=pass_all
5928   ;;
5929
5930 bsdi[45]*)
5931   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5932   lt_cv_file_magic_cmd='/usr/bin/file -L'
5933   lt_cv_file_magic_test_file=/shlib/libc.so
5934   ;;
5935
5936 cygwin*)
5937   # func_win32_libid is a shell function defined in ltmain.sh
5938   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5939   lt_cv_file_magic_cmd='func_win32_libid'
5940   ;;
5941
5942 mingw* | pw32*)
5943   # Base MSYS/MinGW do not provide the 'file' command needed by
5944   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5945   # unless we find 'file', for example because we are cross-compiling.
5946   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5947   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5948     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5949     lt_cv_file_magic_cmd='func_win32_libid'
5950   else
5951     # Keep this pattern in sync with the one in func_win32_libid.
5952     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5953     lt_cv_file_magic_cmd='$OBJDUMP -f'
5954   fi
5955   ;;
5956
5957 cegcc*)
5958   # use the weaker test based on 'objdump'. See mingw*.
5959   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5960   lt_cv_file_magic_cmd='$OBJDUMP -f'
5961   ;;
5962
5963 darwin* | rhapsody*)
5964   lt_cv_deplibs_check_method=pass_all
5965   ;;
5966
5967 freebsd* | dragonfly*)
5968   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5969     case $host_cpu in
5970     i*86 )
5971       # Not sure whether the presence of OpenBSD here was a mistake.
5972       # Let's accept both of them until this is cleared up.
5973       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5974       lt_cv_file_magic_cmd=/usr/bin/file
5975       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5976       ;;
5977     esac
5978   else
5979     lt_cv_deplibs_check_method=pass_all
5980   fi
5981   ;;
5982
5983 gnu*)
5984   lt_cv_deplibs_check_method=pass_all
5985   ;;
5986
5987 haiku*)
5988   lt_cv_deplibs_check_method=pass_all
5989   ;;
5990
5991 hpux10.20* | hpux11*)
5992   lt_cv_file_magic_cmd=/usr/bin/file
5993   case $host_cpu in
5994   ia64*)
5995     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5996     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5997     ;;
5998   hppa*64*)
5999     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]'
6000     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6001     ;;
6002   *)
6003     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6004     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6005     ;;
6006   esac
6007   ;;
6008
6009 interix[3-9]*)
6010   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6011   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6012   ;;
6013
6014 irix5* | irix6* | nonstopux*)
6015   case $LD in
6016   *-32|*"-32 ") libmagic=32-bit;;
6017   *-n32|*"-n32 ") libmagic=N32;;
6018   *-64|*"-64 ") libmagic=64-bit;;
6019   *) libmagic=never-match;;
6020   esac
6021   lt_cv_deplibs_check_method=pass_all
6022   ;;
6023
6024 # This must be glibc/ELF.
6025 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6026   lt_cv_deplibs_check_method=pass_all
6027   ;;
6028
6029 netbsd*)
6030   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6031     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6032   else
6033     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6034   fi
6035   ;;
6036
6037 newos6*)
6038   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6039   lt_cv_file_magic_cmd=/usr/bin/file
6040   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6041   ;;
6042
6043 *nto* | *qnx*)
6044   lt_cv_deplibs_check_method=pass_all
6045   ;;
6046
6047 openbsd*)
6048   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6049     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6050   else
6051     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6052   fi
6053   ;;
6054
6055 osf3* | osf4* | osf5*)
6056   lt_cv_deplibs_check_method=pass_all
6057   ;;
6058
6059 rdos*)
6060   lt_cv_deplibs_check_method=pass_all
6061   ;;
6062
6063 solaris*)
6064   lt_cv_deplibs_check_method=pass_all
6065   ;;
6066
6067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6068   lt_cv_deplibs_check_method=pass_all
6069   ;;
6070
6071 sysv4 | sysv4.3*)
6072   case $host_vendor in
6073   motorola)
6074     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]'
6075     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6076     ;;
6077   ncr)
6078     lt_cv_deplibs_check_method=pass_all
6079     ;;
6080   sequent)
6081     lt_cv_file_magic_cmd='/bin/file'
6082     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6083     ;;
6084   sni)
6085     lt_cv_file_magic_cmd='/bin/file'
6086     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6087     lt_cv_file_magic_test_file=/lib/libc.so
6088     ;;
6089   siemens)
6090     lt_cv_deplibs_check_method=pass_all
6091     ;;
6092   pc)
6093     lt_cv_deplibs_check_method=pass_all
6094     ;;
6095   esac
6096   ;;
6097
6098 tpf*)
6099   lt_cv_deplibs_check_method=pass_all
6100   ;;
6101 esac
6102
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6105 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6106
6107 file_magic_glob=
6108 want_nocaseglob=no
6109 if test "$build" = "$host"; then
6110   case $host_os in
6111   mingw* | pw32*)
6112     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6113       want_nocaseglob=yes
6114     else
6115       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6116     fi
6117     ;;
6118   esac
6119 fi
6120
6121 file_magic_cmd=$lt_cv_file_magic_cmd
6122 deplibs_check_method=$lt_cv_deplibs_check_method
6123 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146 if test -n "$ac_tool_prefix"; then
6147   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_DLLTOOL+:} false; then :
6152   $as_echo_n "(cached) " >&6
6153 else
6154   if test -n "$DLLTOOL"; then
6155   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162     for ac_exec_ext in '' $ac_executable_extensions; do
6163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169   done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 DLLTOOL=$ac_cv_prog_DLLTOOL
6175 if test -n "$DLLTOOL"; then
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6177 $as_echo "$DLLTOOL" >&6; }
6178 else
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6181 fi
6182
6183
6184 fi
6185 if test -z "$ac_cv_prog_DLLTOOL"; then
6186   ac_ct_DLLTOOL=$DLLTOOL
6187   # Extract the first word of "dlltool", so it can be a program name with args.
6188 set dummy dlltool; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6192   $as_echo_n "(cached) " >&6
6193 else
6194   if test -n "$ac_ct_DLLTOOL"; then
6195   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202     for ac_exec_ext in '' $ac_executable_extensions; do
6203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209   done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6215 if test -n "$ac_ct_DLLTOOL"; then
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6217 $as_echo "$ac_ct_DLLTOOL" >&6; }
6218 else
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222
6223   if test "x$ac_ct_DLLTOOL" = x; then
6224     DLLTOOL="false"
6225   else
6226     case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230 ac_tool_warned=yes ;;
6231 esac
6232     DLLTOOL=$ac_ct_DLLTOOL
6233   fi
6234 else
6235   DLLTOOL="$ac_cv_prog_DLLTOOL"
6236 fi
6237
6238 test -z "$DLLTOOL" && DLLTOOL=dlltool
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6250 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6251 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   lt_cv_sharedlib_from_linklib_cmd='unknown'
6255
6256 case $host_os in
6257 cygwin* | mingw* | pw32* | cegcc*)
6258   # two different shell functions defined in ltmain.sh
6259   # decide which to use based on capabilities of $DLLTOOL
6260   case `$DLLTOOL --help 2>&1` in
6261   *--identify-strict*)
6262     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6263     ;;
6264   *)
6265     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6266     ;;
6267   esac
6268   ;;
6269 *)
6270   # fallback: assume linklib IS sharedlib
6271   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6272   ;;
6273 esac
6274
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6277 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6278 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6279 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6280
6281
6282
6283
6284
6285
6286
6287
6288 if test -n "$ac_tool_prefix"; then
6289   for ac_prog in ar
6290   do
6291     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_AR+:} false; then :
6296   $as_echo_n "(cached) " >&6
6297 else
6298   if test -n "$AR"; then
6299   ac_cv_prog_AR="$AR" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306     for ac_exec_ext in '' $ac_executable_extensions; do
6307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313   done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 AR=$ac_cv_prog_AR
6319 if test -n "$AR"; then
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6321 $as_echo "$AR" >&6; }
6322 else
6323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327
6328     test -n "$AR" && break
6329   done
6330 fi
6331 if test -z "$AR"; then
6332   ac_ct_AR=$AR
6333   for ac_prog in ar
6334 do
6335   # Extract the first word of "$ac_prog", so it can be a program name with args.
6336 set dummy $ac_prog; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6340   $as_echo_n "(cached) " >&6
6341 else
6342   if test -n "$ac_ct_AR"; then
6343   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350     for ac_exec_ext in '' $ac_executable_extensions; do
6351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352     ac_cv_prog_ac_ct_AR="$ac_prog"
6353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357   done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6363 if test -n "$ac_ct_AR"; then
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6365 $as_echo "$ac_ct_AR" >&6; }
6366 else
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371
6372   test -n "$ac_ct_AR" && break
6373 done
6374
6375   if test "x$ac_ct_AR" = x; then
6376     AR="false"
6377   else
6378     case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384     AR=$ac_ct_AR
6385   fi
6386 fi
6387
6388 : ${AR=ar}
6389 : ${AR_FLAGS=cru}
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6402 $as_echo_n "checking for archiver @FILE support... " >&6; }
6403 if ${lt_cv_ar_at_file+:} false; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406   lt_cv_ar_at_file=no
6407    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h.  */
6409
6410 int
6411 main ()
6412 {
6413
6414   ;
6415   return 0;
6416 }
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419   echo conftest.$ac_objext > conftest.lst
6420       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6421       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6422   (eval $lt_ar_try) 2>&5
6423   ac_status=$?
6424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425   test $ac_status = 0; }
6426       if test "$ac_status" -eq 0; then
6427         # Ensure the archiver fails upon bogus file names.
6428         rm -f conftest.$ac_objext libconftest.a
6429         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6430   (eval $lt_ar_try) 2>&5
6431   ac_status=$?
6432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433   test $ac_status = 0; }
6434         if test "$ac_status" -ne 0; then
6435           lt_cv_ar_at_file=@
6436         fi
6437       fi
6438       rm -f conftest.* libconftest.a
6439
6440 fi
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442
6443 fi
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6445 $as_echo "$lt_cv_ar_at_file" >&6; }
6446
6447 if test "x$lt_cv_ar_at_file" = xno; then
6448   archiver_list_spec=
6449 else
6450   archiver_list_spec=$lt_cv_ar_at_file
6451 fi
6452
6453
6454
6455
6456
6457
6458
6459 if test -n "$ac_tool_prefix"; then
6460   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}strip; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_STRIP+:} false; then :
6465   $as_echo_n "(cached) " >&6
6466 else
6467   if test -n "$STRIP"; then
6468   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473   IFS=$as_save_IFS
6474   test -z "$as_dir" && as_dir=.
6475     for ac_exec_ext in '' $ac_executable_extensions; do
6476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479     break 2
6480   fi
6481 done
6482   done
6483 IFS=$as_save_IFS
6484
6485 fi
6486 fi
6487 STRIP=$ac_cv_prog_STRIP
6488 if test -n "$STRIP"; then
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6490 $as_echo "$STRIP" >&6; }
6491 else
6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6494 fi
6495
6496
6497 fi
6498 if test -z "$ac_cv_prog_STRIP"; then
6499   ac_ct_STRIP=$STRIP
6500   # Extract the first word of "strip", so it can be a program name with args.
6501 set dummy strip; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6505   $as_echo_n "(cached) " >&6
6506 else
6507   if test -n "$ac_ct_STRIP"; then
6508   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513   IFS=$as_save_IFS
6514   test -z "$as_dir" && as_dir=.
6515     for ac_exec_ext in '' $ac_executable_extensions; do
6516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517     ac_cv_prog_ac_ct_STRIP="strip"
6518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519     break 2
6520   fi
6521 done
6522   done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6528 if test -n "$ac_ct_STRIP"; then
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6530 $as_echo "$ac_ct_STRIP" >&6; }
6531 else
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536   if test "x$ac_ct_STRIP" = x; then
6537     STRIP=":"
6538   else
6539     case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6544 esac
6545     STRIP=$ac_ct_STRIP
6546   fi
6547 else
6548   STRIP="$ac_cv_prog_STRIP"
6549 fi
6550
6551 test -z "$STRIP" && STRIP=:
6552
6553
6554
6555
6556
6557
6558 if test -n "$ac_tool_prefix"; then
6559   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if ${ac_cv_prog_RANLIB+:} false; then :
6564   $as_echo_n "(cached) " >&6
6565 else
6566   if test -n "$RANLIB"; then
6567   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572   IFS=$as_save_IFS
6573   test -z "$as_dir" && as_dir=.
6574     for ac_exec_ext in '' $ac_executable_extensions; do
6575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6576     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578     break 2
6579   fi
6580 done
6581   done
6582 IFS=$as_save_IFS
6583
6584 fi
6585 fi
6586 RANLIB=$ac_cv_prog_RANLIB
6587 if test -n "$RANLIB"; then
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6589 $as_echo "$RANLIB" >&6; }
6590 else
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6593 fi
6594
6595
6596 fi
6597 if test -z "$ac_cv_prog_RANLIB"; then
6598   ac_ct_RANLIB=$RANLIB
6599   # Extract the first word of "ranlib", so it can be a program name with args.
6600 set dummy ranlib; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6604   $as_echo_n "(cached) " >&6
6605 else
6606   if test -n "$ac_ct_RANLIB"; then
6607   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612   IFS=$as_save_IFS
6613   test -z "$as_dir" && as_dir=.
6614     for ac_exec_ext in '' $ac_executable_extensions; do
6615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616     ac_cv_prog_ac_ct_RANLIB="ranlib"
6617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618     break 2
6619   fi
6620 done
6621   done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6627 if test -n "$ac_ct_RANLIB"; then
6628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6629 $as_echo "$ac_ct_RANLIB" >&6; }
6630 else
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635   if test "x$ac_ct_RANLIB" = x; then
6636     RANLIB=":"
6637   else
6638     case $cross_compiling:$ac_tool_warned in
6639 yes:)
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6642 ac_tool_warned=yes ;;
6643 esac
6644     RANLIB=$ac_ct_RANLIB
6645   fi
6646 else
6647   RANLIB="$ac_cv_prog_RANLIB"
6648 fi
6649
6650 test -z "$RANLIB" && RANLIB=:
6651
6652
6653
6654
6655
6656
6657 # Determine commands to create old-style static archives.
6658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6659 old_postinstall_cmds='chmod 644 $oldlib'
6660 old_postuninstall_cmds=
6661
6662 if test -n "$RANLIB"; then
6663   case $host_os in
6664   openbsd*)
6665     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6666     ;;
6667   *)
6668     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6669     ;;
6670   esac
6671   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6672 fi
6673
6674 case $host_os in
6675   darwin*)
6676     lock_old_archive_extraction=yes ;;
6677   *)
6678     lock_old_archive_extraction=no ;;
6679 esac
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719 # If no C compiler was specified, use CC.
6720 LTCC=${LTCC-"$CC"}
6721
6722 # If no C compiler flags were specified, use CFLAGS.
6723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6724
6725 # Allow CC to be a program name with arguments.
6726 compiler=$CC
6727
6728
6729 # Check for command to grab the raw symbol name followed by C symbol from nm.
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6731 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6732 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6733   $as_echo_n "(cached) " >&6
6734 else
6735
6736 # These are sane defaults that work on at least a few old systems.
6737 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6738
6739 # Character class describing NM global symbol codes.
6740 symcode='[BCDEGRST]'
6741
6742 # Regexp to match symbols that can be accessed directly from C.
6743 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6744
6745 # Define system-specific variables.
6746 case $host_os in
6747 aix*)
6748   symcode='[BCDT]'
6749   ;;
6750 cygwin* | mingw* | pw32* | cegcc*)
6751   symcode='[ABCDGISTW]'
6752   ;;
6753 hpux*)
6754   if test "$host_cpu" = ia64; then
6755     symcode='[ABCDEGRST]'
6756   fi
6757   ;;
6758 irix* | nonstopux*)
6759   symcode='[BCDEGRST]'
6760   ;;
6761 osf*)
6762   symcode='[BCDEGQRST]'
6763   ;;
6764 solaris*)
6765   symcode='[BDRT]'
6766   ;;
6767 sco3.2v5*)
6768   symcode='[DT]'
6769   ;;
6770 sysv4.2uw2*)
6771   symcode='[DT]'
6772   ;;
6773 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6774   symcode='[ABDT]'
6775   ;;
6776 sysv4)
6777   symcode='[DFNSTU]'
6778   ;;
6779 esac
6780
6781 # If we're using GNU nm, then use its standard symbol codes.
6782 case `$NM -V 2>&1` in
6783 *GNU* | *'with BFD'*)
6784   symcode='[ABCDGIRSTW]' ;;
6785 esac
6786
6787 # Transform an extracted symbol line into a proper C declaration.
6788 # Some systems (esp. on ia64) link data and code symbols differently,
6789 # so use this general approach.
6790 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6791
6792 # Transform an extracted symbol line into symbol name and symbol address
6793 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6794 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'"
6795
6796 # Handle CRLF in mingw tool chain
6797 opt_cr=
6798 case $build_os in
6799 mingw*)
6800   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6801   ;;
6802 esac
6803
6804 # Try without a prefix underscore, then with it.
6805 for ac_symprfx in "" "_"; do
6806
6807   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6808   symxfrm="\\1 $ac_symprfx\\2 \\2"
6809
6810   # Write the raw and C identifiers.
6811   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6812     # Fake it for dumpbin and say T for any non-static function
6813     # and D for any global variable.
6814     # Also find C++ and __fastcall symbols from MSVC++,
6815     # which start with @ or ?.
6816     lt_cv_sys_global_symbol_pipe="$AWK '"\
6817 "     {last_section=section; section=\$ 3};"\
6818 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6819 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6820 "     \$ 0!~/External *\|/{next};"\
6821 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6822 "     {if(hide[section]) next};"\
6823 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6824 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6825 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6826 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6827 "     ' prfx=^$ac_symprfx"
6828   else
6829     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6830   fi
6831   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6832
6833   # Check to see that the pipe works correctly.
6834   pipe_works=no
6835
6836   rm -f conftest*
6837   cat > conftest.$ac_ext <<_LT_EOF
6838 #ifdef __cplusplus
6839 extern "C" {
6840 #endif
6841 char nm_test_var;
6842 void nm_test_func(void);
6843 void nm_test_func(void){}
6844 #ifdef __cplusplus
6845 }
6846 #endif
6847 int main(){nm_test_var='a';nm_test_func();return(0);}
6848 _LT_EOF
6849
6850   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851   (eval $ac_compile) 2>&5
6852   ac_status=$?
6853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854   test $ac_status = 0; }; then
6855     # Now try to grab the symbols.
6856     nlist=conftest.nm
6857     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6858   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6859   ac_status=$?
6860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861   test $ac_status = 0; } && test -s "$nlist"; then
6862       # Try sorting and uniquifying the output.
6863       if sort "$nlist" | uniq > "$nlist"T; then
6864         mv -f "$nlist"T "$nlist"
6865       else
6866         rm -f "$nlist"T
6867       fi
6868
6869       # Make sure that we snagged all the symbols we need.
6870       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6871         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6872           cat <<_LT_EOF > conftest.$ac_ext
6873 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6874 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6875 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6876    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6877 # define LT_DLSYM_CONST
6878 #elif defined(__osf__)
6879 /* This system does not cope well with relocations in const data.  */
6880 # define LT_DLSYM_CONST
6881 #else
6882 # define LT_DLSYM_CONST const
6883 #endif
6884
6885 #ifdef __cplusplus
6886 extern "C" {
6887 #endif
6888
6889 _LT_EOF
6890           # Now generate the symbol file.
6891           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6892
6893           cat <<_LT_EOF >> conftest.$ac_ext
6894
6895 /* The mapping between symbol names and symbols.  */
6896 LT_DLSYM_CONST struct {
6897   const char *name;
6898   void       *address;
6899 }
6900 lt__PROGRAM__LTX_preloaded_symbols[] =
6901 {
6902   { "@PROGRAM@", (void *) 0 },
6903 _LT_EOF
6904           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6905           cat <<\_LT_EOF >> conftest.$ac_ext
6906   {0, (void *) 0}
6907 };
6908
6909 /* This works around a problem in FreeBSD linker */
6910 #ifdef FREEBSD_WORKAROUND
6911 static const void *lt_preloaded_setup() {
6912   return lt__PROGRAM__LTX_preloaded_symbols;
6913 }
6914 #endif
6915
6916 #ifdef __cplusplus
6917 }
6918 #endif
6919 _LT_EOF
6920           # Now try linking the two files.
6921           mv conftest.$ac_objext conftstm.$ac_objext
6922           lt_globsym_save_LIBS=$LIBS
6923           lt_globsym_save_CFLAGS=$CFLAGS
6924           LIBS="conftstm.$ac_objext"
6925           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6926           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6927   (eval $ac_link) 2>&5
6928   ac_status=$?
6929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6930   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6931             pipe_works=yes
6932           fi
6933           LIBS=$lt_globsym_save_LIBS
6934           CFLAGS=$lt_globsym_save_CFLAGS
6935         else
6936           echo "cannot find nm_test_func in $nlist" >&5
6937         fi
6938       else
6939         echo "cannot find nm_test_var in $nlist" >&5
6940       fi
6941     else
6942       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6943     fi
6944   else
6945     echo "$progname: failed program was:" >&5
6946     cat conftest.$ac_ext >&5
6947   fi
6948   rm -rf conftest* conftst*
6949
6950   # Do not use the global_symbol_pipe unless it works.
6951   if test "$pipe_works" = yes; then
6952     break
6953   else
6954     lt_cv_sys_global_symbol_pipe=
6955   fi
6956 done
6957
6958 fi
6959
6960 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6961   lt_cv_sys_global_symbol_to_cdecl=
6962 fi
6963 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6965 $as_echo "failed" >&6; }
6966 else
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6968 $as_echo "ok" >&6; }
6969 fi
6970
6971 # Response file support.
6972 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6973   nm_file_list_spec='@'
6974 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6975   nm_file_list_spec='@'
6976 fi
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7005 $as_echo_n "checking for sysroot... " >&6; }
7006
7007 # Check whether --with-sysroot was given.
7008 if test "${with_sysroot+set}" = set; then :
7009   withval=$with_sysroot;
7010 else
7011   with_sysroot=no
7012 fi
7013
7014
7015 lt_sysroot=
7016 case ${with_sysroot} in #(
7017  yes)
7018    if test "$GCC" = yes; then
7019      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7020    fi
7021    ;; #(
7022  /*)
7023    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7024    ;; #(
7025  no|'')
7026    ;; #(
7027  *)
7028    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7029 $as_echo "${with_sysroot}" >&6; }
7030    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7031    ;;
7032 esac
7033
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7035 $as_echo "${lt_sysroot:-no}" >&6; }
7036
7037
7038
7039
7040
7041 # Check whether --enable-libtool-lock was given.
7042 if test "${enable_libtool_lock+set}" = set; then :
7043   enableval=$enable_libtool_lock;
7044 fi
7045
7046 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7047
7048 # Some flags need to be propagated to the compiler or linker for good
7049 # libtool support.
7050 case $host in
7051 ia64-*-hpux*)
7052   # Find out which ABI we are using.
7053   echo 'int i;' > conftest.$ac_ext
7054   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7055   (eval $ac_compile) 2>&5
7056   ac_status=$?
7057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058   test $ac_status = 0; }; then
7059     case `/usr/bin/file conftest.$ac_objext` in
7060       *ELF-32*)
7061         HPUX_IA64_MODE="32"
7062         ;;
7063       *ELF-64*)
7064         HPUX_IA64_MODE="64"
7065         ;;
7066     esac
7067   fi
7068   rm -rf conftest*
7069   ;;
7070 *-*-irix6*)
7071   # Find out which ABI we are using.
7072   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7073   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7074   (eval $ac_compile) 2>&5
7075   ac_status=$?
7076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7077   test $ac_status = 0; }; then
7078     if test "$lt_cv_prog_gnu_ld" = yes; then
7079       case `/usr/bin/file conftest.$ac_objext` in
7080         *32-bit*)
7081           LD="${LD-ld} -melf32bsmip"
7082           ;;
7083         *N32*)
7084           LD="${LD-ld} -melf32bmipn32"
7085           ;;
7086         *64-bit*)
7087           LD="${LD-ld} -melf64bmip"
7088         ;;
7089       esac
7090     else
7091       case `/usr/bin/file conftest.$ac_objext` in
7092         *32-bit*)
7093           LD="${LD-ld} -32"
7094           ;;
7095         *N32*)
7096           LD="${LD-ld} -n32"
7097           ;;
7098         *64-bit*)
7099           LD="${LD-ld} -64"
7100           ;;
7101       esac
7102     fi
7103   fi
7104   rm -rf conftest*
7105   ;;
7106
7107 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7108 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7109   # Find out which ABI we are using.
7110   echo 'int i;' > conftest.$ac_ext
7111   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7112   (eval $ac_compile) 2>&5
7113   ac_status=$?
7114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7115   test $ac_status = 0; }; then
7116     case `/usr/bin/file conftest.o` in
7117       *32-bit*)
7118         case $host in
7119           x86_64-*kfreebsd*-gnu)
7120             LD="${LD-ld} -m elf_i386_fbsd"
7121             ;;
7122           x86_64-*linux*)
7123             LD="${LD-ld} -m elf_i386"
7124             ;;
7125           ppc64-*linux*|powerpc64-*linux*)
7126             LD="${LD-ld} -m elf32ppclinux"
7127             ;;
7128           s390x-*linux*)
7129             LD="${LD-ld} -m elf_s390"
7130             ;;
7131           sparc64-*linux*)
7132             LD="${LD-ld} -m elf32_sparc"
7133             ;;
7134         esac
7135         ;;
7136       *64-bit*)
7137         case $host in
7138           x86_64-*kfreebsd*-gnu)
7139             LD="${LD-ld} -m elf_x86_64_fbsd"
7140             ;;
7141           x86_64-*linux*)
7142             LD="${LD-ld} -m elf_x86_64"
7143             ;;
7144           ppc*-*linux*|powerpc*-*linux*)
7145             LD="${LD-ld} -m elf64ppc"
7146             ;;
7147           s390*-*linux*|s390*-*tpf*)
7148             LD="${LD-ld} -m elf64_s390"
7149             ;;
7150           sparc*-*linux*)
7151             LD="${LD-ld} -m elf64_sparc"
7152             ;;
7153         esac
7154         ;;
7155     esac
7156   fi
7157   rm -rf conftest*
7158   ;;
7159
7160 *-*-sco3.2v5*)
7161   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7162   SAVE_CFLAGS="$CFLAGS"
7163   CFLAGS="$CFLAGS -belf"
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7165 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7166 if ${lt_cv_cc_needs_belf+:} false; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   ac_ext=c
7170 ac_cpp='$CPP $CPPFLAGS'
7171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7174
7175      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h.  */
7177
7178 int
7179 main ()
7180 {
7181
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 if ac_fn_c_try_link "$LINENO"; then :
7187   lt_cv_cc_needs_belf=yes
7188 else
7189   lt_cv_cc_needs_belf=no
7190 fi
7191 rm -f core conftest.err conftest.$ac_objext \
7192     conftest$ac_exeext conftest.$ac_ext
7193      ac_ext=c
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7198
7199 fi
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7201 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7202   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7203     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7204     CFLAGS="$SAVE_CFLAGS"
7205   fi
7206   ;;
7207 *-*solaris*)
7208   # Find out which ABI we are using.
7209   echo 'int i;' > conftest.$ac_ext
7210   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7211   (eval $ac_compile) 2>&5
7212   ac_status=$?
7213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7214   test $ac_status = 0; }; then
7215     case `/usr/bin/file conftest.o` in
7216     *64-bit*)
7217       case $lt_cv_prog_gnu_ld in
7218       yes*)
7219         case $host in
7220         i?86-*-solaris*)
7221           LD="${LD-ld} -m elf_x86_64"
7222           ;;
7223         sparc*-*-solaris*)
7224           LD="${LD-ld} -m elf64_sparc"
7225           ;;
7226         esac
7227         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7228         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7229           LD="${LD-ld}_sol2"
7230         fi
7231         ;;
7232       *)
7233         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7234           LD="${LD-ld} -64"
7235         fi
7236         ;;
7237       esac
7238       ;;
7239     esac
7240   fi
7241   rm -rf conftest*
7242   ;;
7243 esac
7244
7245 need_locks="$enable_libtool_lock"
7246
7247 if test -n "$ac_tool_prefix"; then
7248   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7249 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
7253   $as_echo_n "(cached) " >&6
7254 else
7255   if test -n "$MANIFEST_TOOL"; then
7256   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt"
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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7276 if test -n "$MANIFEST_TOOL"; then
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7278 $as_echo "$MANIFEST_TOOL" >&6; }
7279 else
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283
7284
7285 fi
7286 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7287   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7288   # Extract the first word of "mt", so it can be a program name with args.
7289 set dummy mt; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   if test -n "$ac_ct_MANIFEST_TOOL"; then
7296   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303     for ac_exec_ext in '' $ac_executable_extensions; do
7304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310   done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7316 if test -n "$ac_ct_MANIFEST_TOOL"; then
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7318 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7319 else
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7322 fi
7323
7324   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7325     MANIFEST_TOOL=":"
7326   else
7327     case $cross_compiling:$ac_tool_warned in
7328 yes:)
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331 ac_tool_warned=yes ;;
7332 esac
7333     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7334   fi
7335 else
7336   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7337 fi
7338
7339 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7341 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7342 if ${lt_cv_path_mainfest_tool+:} false; then :
7343   $as_echo_n "(cached) " >&6
7344 else
7345   lt_cv_path_mainfest_tool=no
7346   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7347   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7348   cat conftest.err >&5
7349   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7350     lt_cv_path_mainfest_tool=yes
7351   fi
7352   rm -f conftest*
7353 fi
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7355 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7356 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7357   MANIFEST_TOOL=:
7358 fi
7359
7360
7361
7362
7363
7364
7365   case $host_os in
7366     rhapsody* | darwin*)
7367     if test -n "$ac_tool_prefix"; then
7368   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7373   $as_echo_n "(cached) " >&6
7374 else
7375   if test -n "$DSYMUTIL"; then
7376   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383     for ac_exec_ext in '' $ac_executable_extensions; do
7384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390   done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7396 if test -n "$DSYMUTIL"; then
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7398 $as_echo "$DSYMUTIL" >&6; }
7399 else
7400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404
7405 fi
7406 if test -z "$ac_cv_prog_DSYMUTIL"; then
7407   ac_ct_DSYMUTIL=$DSYMUTIL
7408   # Extract the first word of "dsymutil", so it can be a program name with args.
7409 set dummy dsymutil; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7413   $as_echo_n "(cached) " >&6
7414 else
7415   if test -n "$ac_ct_DSYMUTIL"; then
7416   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423     for ac_exec_ext in '' $ac_executable_extensions; do
7424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430   done
7431 IFS=$as_save_IFS
7432
7433 fi
7434 fi
7435 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7436 if test -n "$ac_ct_DSYMUTIL"; then
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7438 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7439 else
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7442 fi
7443
7444   if test "x$ac_ct_DSYMUTIL" = x; then
7445     DSYMUTIL=":"
7446   else
7447     case $cross_compiling:$ac_tool_warned in
7448 yes:)
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7451 ac_tool_warned=yes ;;
7452 esac
7453     DSYMUTIL=$ac_ct_DSYMUTIL
7454   fi
7455 else
7456   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7457 fi
7458
7459     if test -n "$ac_tool_prefix"; then
7460   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7461 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_NMEDIT+:} false; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   if test -n "$NMEDIT"; then
7468   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473   IFS=$as_save_IFS
7474   test -z "$as_dir" && as_dir=.
7475     for ac_exec_ext in '' $ac_executable_extensions; do
7476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479     break 2
7480   fi
7481 done
7482   done
7483 IFS=$as_save_IFS
7484
7485 fi
7486 fi
7487 NMEDIT=$ac_cv_prog_NMEDIT
7488 if test -n "$NMEDIT"; then
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7490 $as_echo "$NMEDIT" >&6; }
7491 else
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496
7497 fi
7498 if test -z "$ac_cv_prog_NMEDIT"; then
7499   ac_ct_NMEDIT=$NMEDIT
7500   # Extract the first word of "nmedit", so it can be a program name with args.
7501 set dummy nmedit; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7505   $as_echo_n "(cached) " >&6
7506 else
7507   if test -n "$ac_ct_NMEDIT"; then
7508   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515     for ac_exec_ext in '' $ac_executable_extensions; do
7516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522   done
7523 IFS=$as_save_IFS
7524
7525 fi
7526 fi
7527 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7528 if test -n "$ac_ct_NMEDIT"; then
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7530 $as_echo "$ac_ct_NMEDIT" >&6; }
7531 else
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535
7536   if test "x$ac_ct_NMEDIT" = x; then
7537     NMEDIT=":"
7538   else
7539     case $cross_compiling:$ac_tool_warned in
7540 yes:)
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7543 ac_tool_warned=yes ;;
7544 esac
7545     NMEDIT=$ac_ct_NMEDIT
7546   fi
7547 else
7548   NMEDIT="$ac_cv_prog_NMEDIT"
7549 fi
7550
7551     if test -n "$ac_tool_prefix"; then
7552   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7553 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_LIPO+:} false; then :
7557   $as_echo_n "(cached) " >&6
7558 else
7559   if test -n "$LIPO"; then
7560   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565   IFS=$as_save_IFS
7566   test -z "$as_dir" && as_dir=.
7567     for ac_exec_ext in '' $ac_executable_extensions; do
7568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571     break 2
7572   fi
7573 done
7574   done
7575 IFS=$as_save_IFS
7576
7577 fi
7578 fi
7579 LIPO=$ac_cv_prog_LIPO
7580 if test -n "$LIPO"; then
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7582 $as_echo "$LIPO" >&6; }
7583 else
7584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 fi
7587
7588
7589 fi
7590 if test -z "$ac_cv_prog_LIPO"; then
7591   ac_ct_LIPO=$LIPO
7592   # Extract the first word of "lipo", so it can be a program name with args.
7593 set dummy lipo; ac_word=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7597   $as_echo_n "(cached) " >&6
7598 else
7599   if test -n "$ac_ct_LIPO"; then
7600   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7601 else
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7604 do
7605   IFS=$as_save_IFS
7606   test -z "$as_dir" && as_dir=.
7607     for ac_exec_ext in '' $ac_executable_extensions; do
7608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609     ac_cv_prog_ac_ct_LIPO="lipo"
7610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611     break 2
7612   fi
7613 done
7614   done
7615 IFS=$as_save_IFS
7616
7617 fi
7618 fi
7619 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7620 if test -n "$ac_ct_LIPO"; then
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7622 $as_echo "$ac_ct_LIPO" >&6; }
7623 else
7624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7626 fi
7627
7628   if test "x$ac_ct_LIPO" = x; then
7629     LIPO=":"
7630   else
7631     case $cross_compiling:$ac_tool_warned in
7632 yes:)
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635 ac_tool_warned=yes ;;
7636 esac
7637     LIPO=$ac_ct_LIPO
7638   fi
7639 else
7640   LIPO="$ac_cv_prog_LIPO"
7641 fi
7642
7643     if test -n "$ac_tool_prefix"; then
7644   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}otool; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_OTOOL+:} false; then :
7649   $as_echo_n "(cached) " >&6
7650 else
7651   if test -n "$OTOOL"; then
7652   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659     for ac_exec_ext in '' $ac_executable_extensions; do
7660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666   done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 OTOOL=$ac_cv_prog_OTOOL
7672 if test -n "$OTOOL"; then
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7674 $as_echo "$OTOOL" >&6; }
7675 else
7676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7678 fi
7679
7680
7681 fi
7682 if test -z "$ac_cv_prog_OTOOL"; then
7683   ac_ct_OTOOL=$OTOOL
7684   # Extract the first word of "otool", so it can be a program name with args.
7685 set dummy otool; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7689   $as_echo_n "(cached) " >&6
7690 else
7691   if test -n "$ac_ct_OTOOL"; then
7692   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697   IFS=$as_save_IFS
7698   test -z "$as_dir" && as_dir=.
7699     for ac_exec_ext in '' $ac_executable_extensions; do
7700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701     ac_cv_prog_ac_ct_OTOOL="otool"
7702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703     break 2
7704   fi
7705 done
7706   done
7707 IFS=$as_save_IFS
7708
7709 fi
7710 fi
7711 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7712 if test -n "$ac_ct_OTOOL"; then
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7714 $as_echo "$ac_ct_OTOOL" >&6; }
7715 else
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7718 fi
7719
7720   if test "x$ac_ct_OTOOL" = x; then
7721     OTOOL=":"
7722   else
7723     case $cross_compiling:$ac_tool_warned in
7724 yes:)
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7727 ac_tool_warned=yes ;;
7728 esac
7729     OTOOL=$ac_ct_OTOOL
7730   fi
7731 else
7732   OTOOL="$ac_cv_prog_OTOOL"
7733 fi
7734
7735     if test -n "$ac_tool_prefix"; then
7736   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7737 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_OTOOL64+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   if test -n "$OTOOL64"; then
7744   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749   IFS=$as_save_IFS
7750   test -z "$as_dir" && as_dir=.
7751     for ac_exec_ext in '' $ac_executable_extensions; do
7752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755     break 2
7756   fi
7757 done
7758   done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 OTOOL64=$ac_cv_prog_OTOOL64
7764 if test -n "$OTOOL64"; then
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7766 $as_echo "$OTOOL64" >&6; }
7767 else
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 fi
7771
7772
7773 fi
7774 if test -z "$ac_cv_prog_OTOOL64"; then
7775   ac_ct_OTOOL64=$OTOOL64
7776   # Extract the first word of "otool64", so it can be a program name with args.
7777 set dummy otool64; ac_word=$2
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7781   $as_echo_n "(cached) " >&6
7782 else
7783   if test -n "$ac_ct_OTOOL64"; then
7784   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7785 else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789   IFS=$as_save_IFS
7790   test -z "$as_dir" && as_dir=.
7791     for ac_exec_ext in '' $ac_executable_extensions; do
7792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793     ac_cv_prog_ac_ct_OTOOL64="otool64"
7794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795     break 2
7796   fi
7797 done
7798   done
7799 IFS=$as_save_IFS
7800
7801 fi
7802 fi
7803 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7804 if test -n "$ac_ct_OTOOL64"; then
7805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7806 $as_echo "$ac_ct_OTOOL64" >&6; }
7807 else
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7810 fi
7811
7812   if test "x$ac_ct_OTOOL64" = x; then
7813     OTOOL64=":"
7814   else
7815     case $cross_compiling:$ac_tool_warned in
7816 yes:)
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7819 ac_tool_warned=yes ;;
7820 esac
7821     OTOOL64=$ac_ct_OTOOL64
7822   fi
7823 else
7824   OTOOL64="$ac_cv_prog_OTOOL64"
7825 fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7854 $as_echo_n "checking for -single_module linker flag... " >&6; }
7855 if ${lt_cv_apple_cc_single_mod+:} false; then :
7856   $as_echo_n "(cached) " >&6
7857 else
7858   lt_cv_apple_cc_single_mod=no
7859       if test -z "${LT_MULTI_MODULE}"; then
7860         # By default we will add the -single_module flag. You can override
7861         # by either setting the environment variable LT_MULTI_MODULE
7862         # non-empty at configure time, or by adding -multi_module to the
7863         # link flags.
7864         rm -rf libconftest.dylib*
7865         echo "int foo(void){return 1;}" > conftest.c
7866         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7867 -dynamiclib -Wl,-single_module conftest.c" >&5
7868         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7869           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7870         _lt_result=$?
7871         # If there is a non-empty error log, and "single_module"
7872         # appears in it, assume the flag caused a linker warning
7873         if test -s conftest.err && $GREP single_module conftest.err; then
7874           cat conftest.err >&5
7875         # Otherwise, if the output was created with a 0 exit code from
7876         # the compiler, it worked.
7877         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7878           lt_cv_apple_cc_single_mod=yes
7879         else
7880           cat conftest.err >&5
7881         fi
7882         rm -rf libconftest.dylib*
7883         rm -f conftest.*
7884       fi
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7887 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7888
7889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7890 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7891 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   lt_cv_ld_exported_symbols_list=no
7895       save_LDFLAGS=$LDFLAGS
7896       echo "_main" > conftest.sym
7897       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7898       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h.  */
7900
7901 int
7902 main ()
7903 {
7904
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"; then :
7910   lt_cv_ld_exported_symbols_list=yes
7911 else
7912   lt_cv_ld_exported_symbols_list=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext \
7915     conftest$ac_exeext conftest.$ac_ext
7916         LDFLAGS="$save_LDFLAGS"
7917
7918 fi
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7920 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7921
7922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7923 $as_echo_n "checking for -force_load linker flag... " >&6; }
7924 if ${lt_cv_ld_force_load+:} false; then :
7925   $as_echo_n "(cached) " >&6
7926 else
7927   lt_cv_ld_force_load=no
7928       cat > conftest.c << _LT_EOF
7929 int forced_loaded() { return 2;}
7930 _LT_EOF
7931       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7932       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7933       echo "$AR cru libconftest.a conftest.o" >&5
7934       $AR cru libconftest.a conftest.o 2>&5
7935       echo "$RANLIB libconftest.a" >&5
7936       $RANLIB libconftest.a 2>&5
7937       cat > conftest.c << _LT_EOF
7938 int main() { return 0;}
7939 _LT_EOF
7940       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7941       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7942       _lt_result=$?
7943       if test -s conftest.err && $GREP force_load conftest.err; then
7944         cat conftest.err >&5
7945       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7946         lt_cv_ld_force_load=yes
7947       else
7948         cat conftest.err >&5
7949       fi
7950         rm -f conftest.err libconftest.a conftest conftest.c
7951         rm -rf conftest.dSYM
7952
7953 fi
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7955 $as_echo "$lt_cv_ld_force_load" >&6; }
7956     case $host_os in
7957     rhapsody* | darwin1.[012])
7958       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7959     darwin1.*)
7960       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7961     darwin*) # darwin 5.x on
7962       # if running on 10.5 or later, the deployment target defaults
7963       # to the OS version, if on x86, and 10.4, the deployment
7964       # target defaults to 10.4. Don't you love it?
7965       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7966         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7967           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7968         10.[012]*)
7969           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7970         10.*)
7971           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7972       esac
7973     ;;
7974   esac
7975     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7976       _lt_dar_single_mod='$single_module'
7977     fi
7978     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7979       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7980     else
7981       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7982     fi
7983     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7984       _lt_dsymutil='~$DSYMUTIL $lib || :'
7985     else
7986       _lt_dsymutil=
7987     fi
7988     ;;
7989   esac
7990
7991 ac_ext=c
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7997 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7998 # On Suns, sometimes $CPP names a directory.
7999 if test -n "$CPP" && test -d "$CPP"; then
8000   CPP=
8001 fi
8002 if test -z "$CPP"; then
8003   if ${ac_cv_prog_CPP+:} false; then :
8004   $as_echo_n "(cached) " >&6
8005 else
8006       # Double quotes because CPP needs to be expanded
8007     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8008     do
8009       ac_preproc_ok=false
8010 for ac_c_preproc_warn_flag in '' yes
8011 do
8012   # Use a header file that comes with gcc, so configuring glibc
8013   # with a fresh cross-compiler works.
8014   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8015   # <limits.h> exists even on freestanding compilers.
8016   # On the NeXT, cc -E runs the code through the compiler's parser,
8017   # not just through cpp. "Syntax error" is here to catch this case.
8018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h.  */
8020 #ifdef __STDC__
8021 # include <limits.h>
8022 #else
8023 # include <assert.h>
8024 #endif
8025                      Syntax error
8026 _ACEOF
8027 if ac_fn_c_try_cpp "$LINENO"; then :
8028
8029 else
8030   # Broken: fails on valid input.
8031 continue
8032 fi
8033 rm -f conftest.err conftest.i conftest.$ac_ext
8034
8035   # OK, works on sane cases.  Now check whether nonexistent headers
8036   # can be detected and how.
8037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h.  */
8039 #include <ac_nonexistent.h>
8040 _ACEOF
8041 if ac_fn_c_try_cpp "$LINENO"; then :
8042   # Broken: success on invalid input.
8043 continue
8044 else
8045   # Passes both tests.
8046 ac_preproc_ok=:
8047 break
8048 fi
8049 rm -f conftest.err conftest.i conftest.$ac_ext
8050
8051 done
8052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8053 rm -f conftest.i conftest.err conftest.$ac_ext
8054 if $ac_preproc_ok; then :
8055   break
8056 fi
8057
8058     done
8059     ac_cv_prog_CPP=$CPP
8060
8061 fi
8062   CPP=$ac_cv_prog_CPP
8063 else
8064   ac_cv_prog_CPP=$CPP
8065 fi
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8067 $as_echo "$CPP" >&6; }
8068 ac_preproc_ok=false
8069 for ac_c_preproc_warn_flag in '' yes
8070 do
8071   # Use a header file that comes with gcc, so configuring glibc
8072   # with a fresh cross-compiler works.
8073   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8074   # <limits.h> exists even on freestanding compilers.
8075   # On the NeXT, cc -E runs the code through the compiler's parser,
8076   # not just through cpp. "Syntax error" is here to catch this case.
8077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h.  */
8079 #ifdef __STDC__
8080 # include <limits.h>
8081 #else
8082 # include <assert.h>
8083 #endif
8084                      Syntax error
8085 _ACEOF
8086 if ac_fn_c_try_cpp "$LINENO"; then :
8087
8088 else
8089   # Broken: fails on valid input.
8090 continue
8091 fi
8092 rm -f conftest.err conftest.i conftest.$ac_ext
8093
8094   # OK, works on sane cases.  Now check whether nonexistent headers
8095   # can be detected and how.
8096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h.  */
8098 #include <ac_nonexistent.h>
8099 _ACEOF
8100 if ac_fn_c_try_cpp "$LINENO"; then :
8101   # Broken: success on invalid input.
8102 continue
8103 else
8104   # Passes both tests.
8105 ac_preproc_ok=:
8106 break
8107 fi
8108 rm -f conftest.err conftest.i conftest.$ac_ext
8109
8110 done
8111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8112 rm -f conftest.i conftest.err conftest.$ac_ext
8113 if $ac_preproc_ok; then :
8114
8115 else
8116   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8118 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8119 See \`config.log' for more details" "$LINENO" 5; }
8120 fi
8121
8122 ac_ext=c
8123 ac_cpp='$CPP $CPPFLAGS'
8124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127
8128
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8130 $as_echo_n "checking for ANSI C header files... " >&6; }
8131 if ${ac_cv_header_stdc+:} false; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h.  */
8136 #include <stdlib.h>
8137 #include <stdarg.h>
8138 #include <string.h>
8139 #include <float.h>
8140
8141 int
8142 main ()
8143 {
8144
8145   ;
8146   return 0;
8147 }
8148 _ACEOF
8149 if ac_fn_c_try_compile "$LINENO"; then :
8150   ac_cv_header_stdc=yes
8151 else
8152   ac_cv_header_stdc=no
8153 fi
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155
8156 if test $ac_cv_header_stdc = yes; then
8157   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h.  */
8160 #include <string.h>
8161
8162 _ACEOF
8163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8164   $EGREP "memchr" >/dev/null 2>&1; then :
8165
8166 else
8167   ac_cv_header_stdc=no
8168 fi
8169 rm -f conftest*
8170
8171 fi
8172
8173 if test $ac_cv_header_stdc = yes; then
8174   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h.  */
8177 #include <stdlib.h>
8178
8179 _ACEOF
8180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8181   $EGREP "free" >/dev/null 2>&1; then :
8182
8183 else
8184   ac_cv_header_stdc=no
8185 fi
8186 rm -f conftest*
8187
8188 fi
8189
8190 if test $ac_cv_header_stdc = yes; then
8191   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8192   if test "$cross_compiling" = yes; then :
8193   :
8194 else
8195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h.  */
8197 #include <ctype.h>
8198 #include <stdlib.h>
8199 #if ((' ' & 0x0FF) == 0x020)
8200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8202 #else
8203 # define ISLOWER(c) \
8204                    (('a' <= (c) && (c) <= 'i') \
8205                      || ('j' <= (c) && (c) <= 'r') \
8206                      || ('s' <= (c) && (c) <= 'z'))
8207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8208 #endif
8209
8210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8211 int
8212 main ()
8213 {
8214   int i;
8215   for (i = 0; i < 256; i++)
8216     if (XOR (islower (i), ISLOWER (i))
8217         || toupper (i) != TOUPPER (i))
8218       return 2;
8219   return 0;
8220 }
8221 _ACEOF
8222 if ac_fn_c_try_run "$LINENO"; then :
8223
8224 else
8225   ac_cv_header_stdc=no
8226 fi
8227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8228   conftest.$ac_objext conftest.beam conftest.$ac_ext
8229 fi
8230
8231 fi
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8234 $as_echo "$ac_cv_header_stdc" >&6; }
8235 if test $ac_cv_header_stdc = yes; then
8236
8237 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8238
8239 fi
8240
8241 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8243                   inttypes.h stdint.h unistd.h
8244 do :
8245   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8246 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8247 "
8248 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8249   cat >>confdefs.h <<_ACEOF
8250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8251 _ACEOF
8252
8253 fi
8254
8255 done
8256
8257
8258 for ac_header in dlfcn.h
8259 do :
8260   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8261 "
8262 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8263   cat >>confdefs.h <<_ACEOF
8264 #define HAVE_DLFCN_H 1
8265 _ACEOF
8266
8267 fi
8268
8269 done
8270
8271
8272
8273
8274
8275 # Set options
8276 # Check whether --enable-static was given.
8277 if test "${enable_static+set}" = set; then :
8278   enableval=$enable_static; p=${PACKAGE-default}
8279     case $enableval in
8280     yes) enable_static=yes ;;
8281     no) enable_static=no ;;
8282     *)
8283      enable_static=no
8284       # Look at the argument we got.  We use all the common list separators.
8285       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8286       for pkg in $enableval; do
8287         IFS="$lt_save_ifs"
8288         if test "X$pkg" = "X$p"; then
8289           enable_static=yes
8290         fi
8291       done
8292       IFS="$lt_save_ifs"
8293       ;;
8294     esac
8295 else
8296   enable_static=no
8297 fi
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308         enable_dlopen=no
8309
8310
8311   enable_win32_dll=no
8312
8313
8314             # Check whether --enable-shared was given.
8315 if test "${enable_shared+set}" = set; then :
8316   enableval=$enable_shared; p=${PACKAGE-default}
8317     case $enableval in
8318     yes) enable_shared=yes ;;
8319     no) enable_shared=no ;;
8320     *)
8321       enable_shared=no
8322       # Look at the argument we got.  We use all the common list separators.
8323       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8324       for pkg in $enableval; do
8325         IFS="$lt_save_ifs"
8326         if test "X$pkg" = "X$p"; then
8327           enable_shared=yes
8328         fi
8329       done
8330       IFS="$lt_save_ifs"
8331       ;;
8332     esac
8333 else
8334   enable_shared=yes
8335 fi
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347 # Check whether --with-pic was given.
8348 if test "${with_pic+set}" = set; then :
8349   withval=$with_pic; lt_p=${PACKAGE-default}
8350     case $withval in
8351     yes|no) pic_mode=$withval ;;
8352     *)
8353       pic_mode=default
8354       # Look at the argument we got.  We use all the common list separators.
8355       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8356       for lt_pkg in $withval; do
8357         IFS="$lt_save_ifs"
8358         if test "X$lt_pkg" = "X$lt_p"; then
8359           pic_mode=yes
8360         fi
8361       done
8362       IFS="$lt_save_ifs"
8363       ;;
8364     esac
8365 else
8366   pic_mode=default
8367 fi
8368
8369
8370 test -z "$pic_mode" && pic_mode=default
8371
8372
8373
8374
8375
8376
8377
8378   # Check whether --enable-fast-install was given.
8379 if test "${enable_fast_install+set}" = set; then :
8380   enableval=$enable_fast_install; p=${PACKAGE-default}
8381     case $enableval in
8382     yes) enable_fast_install=yes ;;
8383     no) enable_fast_install=no ;;
8384     *)
8385       enable_fast_install=no
8386       # Look at the argument we got.  We use all the common list separators.
8387       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8388       for pkg in $enableval; do
8389         IFS="$lt_save_ifs"
8390         if test "X$pkg" = "X$p"; then
8391           enable_fast_install=yes
8392         fi
8393       done
8394       IFS="$lt_save_ifs"
8395       ;;
8396     esac
8397 else
8398   enable_fast_install=yes
8399 fi
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411 # This can be used to rebuild libtool when needed
8412 LIBTOOL_DEPS="$ltmain"
8413
8414 # Always use our own libtool.
8415 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446 test -z "$LN_S" && LN_S="ln -s"
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461 if test -n "${ZSH_VERSION+set}" ; then
8462    setopt NO_GLOB_SUBST
8463 fi
8464
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8466 $as_echo_n "checking for objdir... " >&6; }
8467 if ${lt_cv_objdir+:} false; then :
8468   $as_echo_n "(cached) " >&6
8469 else
8470   rm -f .libs 2>/dev/null
8471 mkdir .libs 2>/dev/null
8472 if test -d .libs; then
8473   lt_cv_objdir=.libs
8474 else
8475   # MS-DOS does not allow filenames that begin with a dot.
8476   lt_cv_objdir=_libs
8477 fi
8478 rmdir .libs 2>/dev/null
8479 fi
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8481 $as_echo "$lt_cv_objdir" >&6; }
8482 objdir=$lt_cv_objdir
8483
8484
8485
8486
8487
8488 cat >>confdefs.h <<_ACEOF
8489 #define LT_OBJDIR "$lt_cv_objdir/"
8490 _ACEOF
8491
8492
8493
8494
8495 case $host_os in
8496 aix3*)
8497   # AIX sometimes has problems with the GCC collect2 program.  For some
8498   # reason, if we set the COLLECT_NAMES environment variable, the problems
8499   # vanish in a puff of smoke.
8500   if test "X${COLLECT_NAMES+set}" != Xset; then
8501     COLLECT_NAMES=
8502     export COLLECT_NAMES
8503   fi
8504   ;;
8505 esac
8506
8507 # Global variables:
8508 ofile=libtool
8509 can_build_shared=yes
8510
8511 # All known linkers require a `.a' archive for static linking (except MSVC,
8512 # which needs '.lib').
8513 libext=a
8514
8515 with_gnu_ld="$lt_cv_prog_gnu_ld"
8516
8517 old_CC="$CC"
8518 old_CFLAGS="$CFLAGS"
8519
8520 # Set sane defaults for various variables
8521 test -z "$CC" && CC=cc
8522 test -z "$LTCC" && LTCC=$CC
8523 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8524 test -z "$LD" && LD=ld
8525 test -z "$ac_objext" && ac_objext=o
8526
8527 for cc_temp in $compiler""; do
8528   case $cc_temp in
8529     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8530     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8531     \-*) ;;
8532     *) break;;
8533   esac
8534 done
8535 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8536
8537
8538 # Only perform the check for file, if the check method requires it
8539 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8540 case $deplibs_check_method in
8541 file_magic*)
8542   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8544 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8545 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   case $MAGIC_CMD in
8549 [\\/*] |  ?:[\\/]*)
8550   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8551   ;;
8552 *)
8553   lt_save_MAGIC_CMD="$MAGIC_CMD"
8554   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8555   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8556   for ac_dir in $ac_dummy; do
8557     IFS="$lt_save_ifs"
8558     test -z "$ac_dir" && ac_dir=.
8559     if test -f $ac_dir/${ac_tool_prefix}file; then
8560       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8561       if test -n "$file_magic_test_file"; then
8562         case $deplibs_check_method in
8563         "file_magic "*)
8564           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8565           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8566           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8567             $EGREP "$file_magic_regex" > /dev/null; then
8568             :
8569           else
8570             cat <<_LT_EOF 1>&2
8571
8572 *** Warning: the command libtool uses to detect shared libraries,
8573 *** $file_magic_cmd, produces output that libtool cannot recognize.
8574 *** The result is that libtool may fail to recognize shared libraries
8575 *** as such.  This will affect the creation of libtool libraries that
8576 *** depend on shared libraries, but programs linked with such libtool
8577 *** libraries will work regardless of this problem.  Nevertheless, you
8578 *** may want to report the problem to your system manager and/or to
8579 *** bug-libtool@gnu.org
8580
8581 _LT_EOF
8582           fi ;;
8583         esac
8584       fi
8585       break
8586     fi
8587   done
8588   IFS="$lt_save_ifs"
8589   MAGIC_CMD="$lt_save_MAGIC_CMD"
8590   ;;
8591 esac
8592 fi
8593
8594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8595 if test -n "$MAGIC_CMD"; then
8596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8597 $as_echo "$MAGIC_CMD" >&6; }
8598 else
8599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600 $as_echo "no" >&6; }
8601 fi
8602
8603
8604
8605
8606
8607 if test -z "$lt_cv_path_MAGIC_CMD"; then
8608   if test -n "$ac_tool_prefix"; then
8609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8610 $as_echo_n "checking for file... " >&6; }
8611 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8612   $as_echo_n "(cached) " >&6
8613 else
8614   case $MAGIC_CMD in
8615 [\\/*] |  ?:[\\/]*)
8616   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8617   ;;
8618 *)
8619   lt_save_MAGIC_CMD="$MAGIC_CMD"
8620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8621   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8622   for ac_dir in $ac_dummy; do
8623     IFS="$lt_save_ifs"
8624     test -z "$ac_dir" && ac_dir=.
8625     if test -f $ac_dir/file; then
8626       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8627       if test -n "$file_magic_test_file"; then
8628         case $deplibs_check_method in
8629         "file_magic "*)
8630           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8631           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8632           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8633             $EGREP "$file_magic_regex" > /dev/null; then
8634             :
8635           else
8636             cat <<_LT_EOF 1>&2
8637
8638 *** Warning: the command libtool uses to detect shared libraries,
8639 *** $file_magic_cmd, produces output that libtool cannot recognize.
8640 *** The result is that libtool may fail to recognize shared libraries
8641 *** as such.  This will affect the creation of libtool libraries that
8642 *** depend on shared libraries, but programs linked with such libtool
8643 *** libraries will work regardless of this problem.  Nevertheless, you
8644 *** may want to report the problem to your system manager and/or to
8645 *** bug-libtool@gnu.org
8646
8647 _LT_EOF
8648           fi ;;
8649         esac
8650       fi
8651       break
8652     fi
8653   done
8654   IFS="$lt_save_ifs"
8655   MAGIC_CMD="$lt_save_MAGIC_CMD"
8656   ;;
8657 esac
8658 fi
8659
8660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8661 if test -n "$MAGIC_CMD"; then
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8663 $as_echo "$MAGIC_CMD" >&6; }
8664 else
8665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8667 fi
8668
8669
8670   else
8671     MAGIC_CMD=:
8672   fi
8673 fi
8674
8675   fi
8676   ;;
8677 esac
8678
8679 # Use C for the default configuration in the libtool script
8680
8681 lt_save_CC="$CC"
8682 ac_ext=c
8683 ac_cpp='$CPP $CPPFLAGS'
8684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8687
8688
8689 # Source file extension for C test sources.
8690 ac_ext=c
8691
8692 # Object file extension for compiled C test sources.
8693 objext=o
8694 objext=$objext
8695
8696 # Code to be used in simple compile tests
8697 lt_simple_compile_test_code="int some_variable = 0;"
8698
8699 # Code to be used in simple link tests
8700 lt_simple_link_test_code='int main(){return(0);}'
8701
8702
8703
8704
8705
8706
8707
8708 # If no C compiler was specified, use CC.
8709 LTCC=${LTCC-"$CC"}
8710
8711 # If no C compiler flags were specified, use CFLAGS.
8712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8713
8714 # Allow CC to be a program name with arguments.
8715 compiler=$CC
8716
8717 # Save the default compiler, since it gets overwritten when the other
8718 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8719 compiler_DEFAULT=$CC
8720
8721 # save warnings/boilerplate of simple test code
8722 ac_outfile=conftest.$ac_objext
8723 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8724 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8725 _lt_compiler_boilerplate=`cat conftest.err`
8726 $RM conftest*
8727
8728 ac_outfile=conftest.$ac_objext
8729 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8730 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8731 _lt_linker_boilerplate=`cat conftest.err`
8732 $RM -r conftest*
8733
8734
8735 ## CAVEAT EMPTOR:
8736 ## There is no encapsulation within the following macros, do not change
8737 ## the running order or otherwise move them around unless you know exactly
8738 ## what you are doing...
8739 if test -n "$compiler"; then
8740
8741 lt_prog_compiler_no_builtin_flag=
8742
8743 if test "$GCC" = yes; then
8744   case $cc_basename in
8745   nvcc*)
8746     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8747   *)
8748     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8749   esac
8750
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8752 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8753 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8754   $as_echo_n "(cached) " >&6
8755 else
8756   lt_cv_prog_compiler_rtti_exceptions=no
8757    ac_outfile=conftest.$ac_objext
8758    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8759    lt_compiler_flag="-fno-rtti -fno-exceptions"
8760    # Insert the option either (1) after the last *FLAGS variable, or
8761    # (2) before a word containing "conftest.", or (3) at the end.
8762    # Note that $ac_compile itself does not contain backslashes and begins
8763    # with a dollar sign (not a hyphen), so the echo should work correctly.
8764    # The option is referenced via a variable to avoid confusing sed.
8765    lt_compile=`echo "$ac_compile" | $SED \
8766    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8767    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8768    -e 's:$: $lt_compiler_flag:'`
8769    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8770    (eval "$lt_compile" 2>conftest.err)
8771    ac_status=$?
8772    cat conftest.err >&5
8773    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774    if (exit $ac_status) && test -s "$ac_outfile"; then
8775      # The compiler can only warn and ignore the option if not recognized
8776      # So say no if there are warnings other than the usual output.
8777      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8778      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8779      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8780        lt_cv_prog_compiler_rtti_exceptions=yes
8781      fi
8782    fi
8783    $RM conftest*
8784
8785 fi
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8787 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8788
8789 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8790     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8791 else
8792     :
8793 fi
8794
8795 fi
8796
8797
8798
8799
8800
8801
8802   lt_prog_compiler_wl=
8803 lt_prog_compiler_pic=
8804 lt_prog_compiler_static=
8805
8806
8807   if test "$GCC" = yes; then
8808     lt_prog_compiler_wl='-Wl,'
8809     lt_prog_compiler_static='-static'
8810
8811     case $host_os in
8812       aix*)
8813       # All AIX code is PIC.
8814       if test "$host_cpu" = ia64; then
8815         # AIX 5 now supports IA64 processor
8816         lt_prog_compiler_static='-Bstatic'
8817       fi
8818       ;;
8819
8820     amigaos*)
8821       case $host_cpu in
8822       powerpc)
8823             # see comment about AmigaOS4 .so support
8824             lt_prog_compiler_pic='-fPIC'
8825         ;;
8826       m68k)
8827             # FIXME: we need at least 68020 code to build shared libraries, but
8828             # adding the `-m68020' flag to GCC prevents building anything better,
8829             # like `-m68040'.
8830             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8831         ;;
8832       esac
8833       ;;
8834
8835     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8836       # PIC is the default for these OSes.
8837       ;;
8838
8839     mingw* | cygwin* | pw32* | os2* | cegcc*)
8840       # This hack is so that the source file can tell whether it is being
8841       # built for inclusion in a dll (and should export symbols for example).
8842       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8843       # (--disable-auto-import) libraries
8844       lt_prog_compiler_pic='-DDLL_EXPORT'
8845       ;;
8846
8847     darwin* | rhapsody*)
8848       # PIC is the default on this platform
8849       # Common symbols not allowed in MH_DYLIB files
8850       lt_prog_compiler_pic='-fno-common'
8851       ;;
8852
8853     haiku*)
8854       # PIC is the default for Haiku.
8855       # The "-static" flag exists, but is broken.
8856       lt_prog_compiler_static=
8857       ;;
8858
8859     hpux*)
8860       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8861       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8862       # sets the default TLS model and affects inlining.
8863       case $host_cpu in
8864       hppa*64*)
8865         # +Z the default
8866         ;;
8867       *)
8868         lt_prog_compiler_pic='-fPIC'
8869         ;;
8870       esac
8871       ;;
8872
8873     interix[3-9]*)
8874       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8875       # Instead, we relocate shared libraries at runtime.
8876       ;;
8877
8878     msdosdjgpp*)
8879       # Just because we use GCC doesn't mean we suddenly get shared libraries
8880       # on systems that don't support them.
8881       lt_prog_compiler_can_build_shared=no
8882       enable_shared=no
8883       ;;
8884
8885     *nto* | *qnx*)
8886       # QNX uses GNU C++, but need to define -shared option too, otherwise
8887       # it will coredump.
8888       lt_prog_compiler_pic='-fPIC -shared'
8889       ;;
8890
8891     sysv4*MP*)
8892       if test -d /usr/nec; then
8893         lt_prog_compiler_pic=-Kconform_pic
8894       fi
8895       ;;
8896
8897     *)
8898       lt_prog_compiler_pic='-fPIC'
8899       ;;
8900     esac
8901
8902     case $cc_basename in
8903     nvcc*) # Cuda Compiler Driver 2.2
8904       lt_prog_compiler_wl='-Xlinker '
8905       if test -n "$lt_prog_compiler_pic"; then
8906         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8907       fi
8908       ;;
8909     esac
8910   else
8911     # PORTME Check for flag to pass linker flags through the system compiler.
8912     case $host_os in
8913     aix*)
8914       lt_prog_compiler_wl='-Wl,'
8915       if test "$host_cpu" = ia64; then
8916         # AIX 5 now supports IA64 processor
8917         lt_prog_compiler_static='-Bstatic'
8918       else
8919         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8920       fi
8921       ;;
8922
8923     mingw* | cygwin* | pw32* | os2* | cegcc*)
8924       # This hack is so that the source file can tell whether it is being
8925       # built for inclusion in a dll (and should export symbols for example).
8926       lt_prog_compiler_pic='-DDLL_EXPORT'
8927       ;;
8928
8929     hpux9* | hpux10* | hpux11*)
8930       lt_prog_compiler_wl='-Wl,'
8931       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8932       # not for PA HP-UX.
8933       case $host_cpu in
8934       hppa*64*|ia64*)
8935         # +Z the default
8936         ;;
8937       *)
8938         lt_prog_compiler_pic='+Z'
8939         ;;
8940       esac
8941       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8942       lt_prog_compiler_static='${wl}-a ${wl}archive'
8943       ;;
8944
8945     irix5* | irix6* | nonstopux*)
8946       lt_prog_compiler_wl='-Wl,'
8947       # PIC (with -KPIC) is the default.
8948       lt_prog_compiler_static='-non_shared'
8949       ;;
8950
8951     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8952       case $cc_basename in
8953       # old Intel for x86_64 which still supported -KPIC.
8954       ecc*)
8955         lt_prog_compiler_wl='-Wl,'
8956         lt_prog_compiler_pic='-KPIC'
8957         lt_prog_compiler_static='-static'
8958         ;;
8959       # icc used to be incompatible with GCC.
8960       # ICC 10 doesn't accept -KPIC any more.
8961       icc* | ifort*)
8962         lt_prog_compiler_wl='-Wl,'
8963         lt_prog_compiler_pic='-fPIC'
8964         lt_prog_compiler_static='-static'
8965         ;;
8966       # Lahey Fortran 8.1.
8967       lf95*)
8968         lt_prog_compiler_wl='-Wl,'
8969         lt_prog_compiler_pic='--shared'
8970         lt_prog_compiler_static='--static'
8971         ;;
8972       nagfor*)
8973         # NAG Fortran compiler
8974         lt_prog_compiler_wl='-Wl,-Wl,,'
8975         lt_prog_compiler_pic='-PIC'
8976         lt_prog_compiler_static='-Bstatic'
8977         ;;
8978       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8979         # Portland Group compilers (*not* the Pentium gcc compiler,
8980         # which looks to be a dead project)
8981         lt_prog_compiler_wl='-Wl,'
8982         lt_prog_compiler_pic='-fpic'
8983         lt_prog_compiler_static='-Bstatic'
8984         ;;
8985       ccc*)
8986         lt_prog_compiler_wl='-Wl,'
8987         # All Alpha code is PIC.
8988         lt_prog_compiler_static='-non_shared'
8989         ;;
8990       xl* | bgxl* | bgf* | mpixl*)
8991         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8992         lt_prog_compiler_wl='-Wl,'
8993         lt_prog_compiler_pic='-qpic'
8994         lt_prog_compiler_static='-qstaticlink'
8995         ;;
8996       *)
8997         case `$CC -V 2>&1 | sed 5q` in
8998         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8999           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9000           lt_prog_compiler_pic='-KPIC'
9001           lt_prog_compiler_static='-Bstatic'
9002           lt_prog_compiler_wl=''
9003           ;;
9004         *Sun\ F* | *Sun*Fortran*)
9005           lt_prog_compiler_pic='-KPIC'
9006           lt_prog_compiler_static='-Bstatic'
9007           lt_prog_compiler_wl='-Qoption ld '
9008           ;;
9009         *Sun\ C*)
9010           # Sun C 5.9
9011           lt_prog_compiler_pic='-KPIC'
9012           lt_prog_compiler_static='-Bstatic'
9013           lt_prog_compiler_wl='-Wl,'
9014           ;;
9015         *Intel*\ [CF]*Compiler*)
9016           lt_prog_compiler_wl='-Wl,'
9017           lt_prog_compiler_pic='-fPIC'
9018           lt_prog_compiler_static='-static'
9019           ;;
9020         *Portland\ Group*)
9021           lt_prog_compiler_wl='-Wl,'
9022           lt_prog_compiler_pic='-fpic'
9023           lt_prog_compiler_static='-Bstatic'
9024           ;;
9025         esac
9026         ;;
9027       esac
9028       ;;
9029
9030     newsos6)
9031       lt_prog_compiler_pic='-KPIC'
9032       lt_prog_compiler_static='-Bstatic'
9033       ;;
9034
9035     *nto* | *qnx*)
9036       # QNX uses GNU C++, but need to define -shared option too, otherwise
9037       # it will coredump.
9038       lt_prog_compiler_pic='-fPIC -shared'
9039       ;;
9040
9041     osf3* | osf4* | osf5*)
9042       lt_prog_compiler_wl='-Wl,'
9043       # All OSF/1 code is PIC.
9044       lt_prog_compiler_static='-non_shared'
9045       ;;
9046
9047     rdos*)
9048       lt_prog_compiler_static='-non_shared'
9049       ;;
9050
9051     solaris*)
9052       lt_prog_compiler_pic='-KPIC'
9053       lt_prog_compiler_static='-Bstatic'
9054       case $cc_basename in
9055       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9056         lt_prog_compiler_wl='-Qoption ld ';;
9057       *)
9058         lt_prog_compiler_wl='-Wl,';;
9059       esac
9060       ;;
9061
9062     sunos4*)
9063       lt_prog_compiler_wl='-Qoption ld '
9064       lt_prog_compiler_pic='-PIC'
9065       lt_prog_compiler_static='-Bstatic'
9066       ;;
9067
9068     sysv4 | sysv4.2uw2* | sysv4.3*)
9069       lt_prog_compiler_wl='-Wl,'
9070       lt_prog_compiler_pic='-KPIC'
9071       lt_prog_compiler_static='-Bstatic'
9072       ;;
9073
9074     sysv4*MP*)
9075       if test -d /usr/nec ;then
9076         lt_prog_compiler_pic='-Kconform_pic'
9077         lt_prog_compiler_static='-Bstatic'
9078       fi
9079       ;;
9080
9081     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9082       lt_prog_compiler_wl='-Wl,'
9083       lt_prog_compiler_pic='-KPIC'
9084       lt_prog_compiler_static='-Bstatic'
9085       ;;
9086
9087     unicos*)
9088       lt_prog_compiler_wl='-Wl,'
9089       lt_prog_compiler_can_build_shared=no
9090       ;;
9091
9092     uts4*)
9093       lt_prog_compiler_pic='-pic'
9094       lt_prog_compiler_static='-Bstatic'
9095       ;;
9096
9097     *)
9098       lt_prog_compiler_can_build_shared=no
9099       ;;
9100     esac
9101   fi
9102
9103 case $host_os in
9104   # For platforms which do not support PIC, -DPIC is meaningless:
9105   *djgpp*)
9106     lt_prog_compiler_pic=
9107     ;;
9108   *)
9109     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9110     ;;
9111 esac
9112
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9114 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9115 if ${lt_cv_prog_compiler_pic+:} false; then :
9116   $as_echo_n "(cached) " >&6
9117 else
9118   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9119 fi
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9121 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9122 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9123
9124 #
9125 # Check to make sure the PIC flag actually works.
9126 #
9127 if test -n "$lt_prog_compiler_pic"; then
9128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9129 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9130 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9131   $as_echo_n "(cached) " >&6
9132 else
9133   lt_cv_prog_compiler_pic_works=no
9134    ac_outfile=conftest.$ac_objext
9135    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9136    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9137    # Insert the option either (1) after the last *FLAGS variable, or
9138    # (2) before a word containing "conftest.", or (3) at the end.
9139    # Note that $ac_compile itself does not contain backslashes and begins
9140    # with a dollar sign (not a hyphen), so the echo should work correctly.
9141    # The option is referenced via a variable to avoid confusing sed.
9142    lt_compile=`echo "$ac_compile" | $SED \
9143    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9145    -e 's:$: $lt_compiler_flag:'`
9146    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9147    (eval "$lt_compile" 2>conftest.err)
9148    ac_status=$?
9149    cat conftest.err >&5
9150    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151    if (exit $ac_status) && test -s "$ac_outfile"; then
9152      # The compiler can only warn and ignore the option if not recognized
9153      # So say no if there are warnings other than the usual output.
9154      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9155      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9156      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9157        lt_cv_prog_compiler_pic_works=yes
9158      fi
9159    fi
9160    $RM conftest*
9161
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9164 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9165
9166 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9167     case $lt_prog_compiler_pic in
9168      "" | " "*) ;;
9169      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9170      esac
9171 else
9172     lt_prog_compiler_pic=
9173      lt_prog_compiler_can_build_shared=no
9174 fi
9175
9176 fi
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188 #
9189 # Check to make sure the static flag actually works.
9190 #
9191 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9193 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9194 if ${lt_cv_prog_compiler_static_works+:} false; then :
9195   $as_echo_n "(cached) " >&6
9196 else
9197   lt_cv_prog_compiler_static_works=no
9198    save_LDFLAGS="$LDFLAGS"
9199    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9200    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9201    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9202      # The linker can only warn and ignore the option if not recognized
9203      # So say no if there are warnings
9204      if test -s conftest.err; then
9205        # Append any errors to the config.log.
9206        cat conftest.err 1>&5
9207        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9208        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9209        if diff conftest.exp conftest.er2 >/dev/null; then
9210          lt_cv_prog_compiler_static_works=yes
9211        fi
9212      else
9213        lt_cv_prog_compiler_static_works=yes
9214      fi
9215    fi
9216    $RM -r conftest*
9217    LDFLAGS="$save_LDFLAGS"
9218
9219 fi
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9221 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9222
9223 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9224     :
9225 else
9226     lt_prog_compiler_static=
9227 fi
9228
9229
9230
9231
9232
9233
9234
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9236 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9237 if ${lt_cv_prog_compiler_c_o+:} false; then :
9238   $as_echo_n "(cached) " >&6
9239 else
9240   lt_cv_prog_compiler_c_o=no
9241    $RM -r conftest 2>/dev/null
9242    mkdir conftest
9243    cd conftest
9244    mkdir out
9245    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9246
9247    lt_compiler_flag="-o out/conftest2.$ac_objext"
9248    # Insert the option either (1) after the last *FLAGS variable, or
9249    # (2) before a word containing "conftest.", or (3) at the end.
9250    # Note that $ac_compile itself does not contain backslashes and begins
9251    # with a dollar sign (not a hyphen), so the echo should work correctly.
9252    lt_compile=`echo "$ac_compile" | $SED \
9253    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9254    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9255    -e 's:$: $lt_compiler_flag:'`
9256    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9257    (eval "$lt_compile" 2>out/conftest.err)
9258    ac_status=$?
9259    cat out/conftest.err >&5
9260    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9262    then
9263      # The compiler can only warn and ignore the option if not recognized
9264      # So say no if there are warnings
9265      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9266      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9267      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9268        lt_cv_prog_compiler_c_o=yes
9269      fi
9270    fi
9271    chmod u+w . 2>&5
9272    $RM conftest*
9273    # SGI C++ compiler will create directory out/ii_files/ for
9274    # template instantiation
9275    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9276    $RM out/* && rmdir out
9277    cd ..
9278    $RM -r conftest
9279    $RM conftest*
9280
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9283 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9284
9285
9286
9287
9288
9289
9290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9292 if ${lt_cv_prog_compiler_c_o+:} false; then :
9293   $as_echo_n "(cached) " >&6
9294 else
9295   lt_cv_prog_compiler_c_o=no
9296    $RM -r conftest 2>/dev/null
9297    mkdir conftest
9298    cd conftest
9299    mkdir out
9300    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9301
9302    lt_compiler_flag="-o out/conftest2.$ac_objext"
9303    # Insert the option either (1) after the last *FLAGS variable, or
9304    # (2) before a word containing "conftest.", or (3) at the end.
9305    # Note that $ac_compile itself does not contain backslashes and begins
9306    # with a dollar sign (not a hyphen), so the echo should work correctly.
9307    lt_compile=`echo "$ac_compile" | $SED \
9308    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9309    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9310    -e 's:$: $lt_compiler_flag:'`
9311    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9312    (eval "$lt_compile" 2>out/conftest.err)
9313    ac_status=$?
9314    cat out/conftest.err >&5
9315    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9317    then
9318      # The compiler can only warn and ignore the option if not recognized
9319      # So say no if there are warnings
9320      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9321      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9322      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9323        lt_cv_prog_compiler_c_o=yes
9324      fi
9325    fi
9326    chmod u+w . 2>&5
9327    $RM conftest*
9328    # SGI C++ compiler will create directory out/ii_files/ for
9329    # template instantiation
9330    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9331    $RM out/* && rmdir out
9332    cd ..
9333    $RM -r conftest
9334    $RM conftest*
9335
9336 fi
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9338 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9339
9340
9341
9342
9343 hard_links="nottested"
9344 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9345   # do not overwrite the value of need_locks provided by the user
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9347 $as_echo_n "checking if we can lock with hard links... " >&6; }
9348   hard_links=yes
9349   $RM conftest*
9350   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9351   touch conftest.a
9352   ln conftest.a conftest.b 2>&5 || hard_links=no
9353   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9355 $as_echo "$hard_links" >&6; }
9356   if test "$hard_links" = no; then
9357     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9358 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9359     need_locks=warn
9360   fi
9361 else
9362   need_locks=no
9363 fi
9364
9365
9366
9367
9368
9369
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9371 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9372
9373   runpath_var=
9374   allow_undefined_flag=
9375   always_export_symbols=no
9376   archive_cmds=
9377   archive_expsym_cmds=
9378   compiler_needs_object=no
9379   enable_shared_with_static_runtimes=no
9380   export_dynamic_flag_spec=
9381   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9382   hardcode_automatic=no
9383   hardcode_direct=no
9384   hardcode_direct_absolute=no
9385   hardcode_libdir_flag_spec=
9386   hardcode_libdir_separator=
9387   hardcode_minus_L=no
9388   hardcode_shlibpath_var=unsupported
9389   inherit_rpath=no
9390   link_all_deplibs=unknown
9391   module_cmds=
9392   module_expsym_cmds=
9393   old_archive_from_new_cmds=
9394   old_archive_from_expsyms_cmds=
9395   thread_safe_flag_spec=
9396   whole_archive_flag_spec=
9397   # include_expsyms should be a list of space-separated symbols to be *always*
9398   # included in the symbol list
9399   include_expsyms=
9400   # exclude_expsyms can be an extended regexp of symbols to exclude
9401   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9402   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9403   # as well as any symbol that contains `d'.
9404   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9405   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9406   # platforms (ab)use it in PIC code, but their linkers get confused if
9407   # the symbol is explicitly referenced.  Since portable code cannot
9408   # rely on this symbol name, it's probably fine to never include it in
9409   # preloaded symbol tables.
9410   # Exclude shared library initialization/finalization symbols.
9411   extract_expsyms_cmds=
9412
9413   case $host_os in
9414   cygwin* | mingw* | pw32* | cegcc*)
9415     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9416     # When not using gcc, we currently assume that we are using
9417     # Microsoft Visual C++.
9418     if test "$GCC" != yes; then
9419       with_gnu_ld=no
9420     fi
9421     ;;
9422   interix*)
9423     # we just hope/assume this is gcc and not c89 (= MSVC++)
9424     with_gnu_ld=yes
9425     ;;
9426   openbsd*)
9427     with_gnu_ld=no
9428     ;;
9429   esac
9430
9431   ld_shlibs=yes
9432
9433   # On some targets, GNU ld is compatible enough with the native linker
9434   # that we're better off using the native interface for both.
9435   lt_use_gnu_ld_interface=no
9436   if test "$with_gnu_ld" = yes; then
9437     case $host_os in
9438       aix*)
9439         # The AIX port of GNU ld has always aspired to compatibility
9440         # with the native linker.  However, as the warning in the GNU ld
9441         # block says, versions before 2.19.5* couldn't really create working
9442         # shared libraries, regardless of the interface used.
9443         case `$LD -v 2>&1` in
9444           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9445           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9446           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9447           *)
9448             lt_use_gnu_ld_interface=yes
9449             ;;
9450         esac
9451         ;;
9452       *)
9453         lt_use_gnu_ld_interface=yes
9454         ;;
9455     esac
9456   fi
9457
9458   if test "$lt_use_gnu_ld_interface" = yes; then
9459     # If archive_cmds runs LD, not CC, wlarc should be empty
9460     wlarc='${wl}'
9461
9462     # Set some defaults for GNU ld with shared library support. These
9463     # are reset later if shared libraries are not supported. Putting them
9464     # here allows them to be overridden if necessary.
9465     runpath_var=LD_RUN_PATH
9466     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9467     export_dynamic_flag_spec='${wl}--export-dynamic'
9468     # ancient GNU ld didn't support --whole-archive et. al.
9469     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9470       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9471     else
9472       whole_archive_flag_spec=
9473     fi
9474     supports_anon_versioning=no
9475     case `$LD -v 2>&1` in
9476       *GNU\ gold*) supports_anon_versioning=yes ;;
9477       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9478       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9479       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9480       *\ 2.11.*) ;; # other 2.11 versions
9481       *) supports_anon_versioning=yes ;;
9482     esac
9483
9484     # See if GNU ld supports shared libraries.
9485     case $host_os in
9486     aix[3-9]*)
9487       # On AIX/PPC, the GNU linker is very broken
9488       if test "$host_cpu" != ia64; then
9489         ld_shlibs=no
9490         cat <<_LT_EOF 1>&2
9491
9492 *** Warning: the GNU linker, at least up to release 2.19, is reported
9493 *** to be unable to reliably create shared libraries on AIX.
9494 *** Therefore, libtool is disabling shared libraries support.  If you
9495 *** really care for shared libraries, you may want to install binutils
9496 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9497 *** You will then need to restart the configuration process.
9498
9499 _LT_EOF
9500       fi
9501       ;;
9502
9503     amigaos*)
9504       case $host_cpu in
9505       powerpc)
9506             # see comment about AmigaOS4 .so support
9507             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508             archive_expsym_cmds=''
9509         ;;
9510       m68k)
9511             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)'
9512             hardcode_libdir_flag_spec='-L$libdir'
9513             hardcode_minus_L=yes
9514         ;;
9515       esac
9516       ;;
9517
9518     beos*)
9519       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9520         allow_undefined_flag=unsupported
9521         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9522         # support --undefined.  This deserves some investigation.  FIXME
9523         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9524       else
9525         ld_shlibs=no
9526       fi
9527       ;;
9528
9529     cygwin* | mingw* | pw32* | cegcc*)
9530       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9531       # as there is no search path for DLLs.
9532       hardcode_libdir_flag_spec='-L$libdir'
9533       export_dynamic_flag_spec='${wl}--export-all-symbols'
9534       allow_undefined_flag=unsupported
9535       always_export_symbols=no
9536       enable_shared_with_static_runtimes=yes
9537       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'
9538       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9539
9540       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9541         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9542         # If the export-symbols file already is a .def file (1st line
9543         # is EXPORTS), use it as is; otherwise, prepend...
9544         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9545           cp $export_symbols $output_objdir/$soname.def;
9546         else
9547           echo EXPORTS > $output_objdir/$soname.def;
9548           cat $export_symbols >> $output_objdir/$soname.def;
9549         fi~
9550         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9551       else
9552         ld_shlibs=no
9553       fi
9554       ;;
9555
9556     haiku*)
9557       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558       link_all_deplibs=yes
9559       ;;
9560
9561     interix[3-9]*)
9562       hardcode_direct=no
9563       hardcode_shlibpath_var=no
9564       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9565       export_dynamic_flag_spec='${wl}-E'
9566       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9567       # Instead, shared libraries are loaded at an image base (0x10000000 by
9568       # default) and relocated if they conflict, which is a slow very memory
9569       # consuming and fragmenting process.  To avoid this, we pick a random,
9570       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9571       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9572       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9573       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'
9574       ;;
9575
9576     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9577       tmp_diet=no
9578       if test "$host_os" = linux-dietlibc; then
9579         case $cc_basename in
9580           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9581         esac
9582       fi
9583       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9584          && test "$tmp_diet" = no
9585       then
9586         tmp_addflag=' $pic_flag'
9587         tmp_sharedflag='-shared'
9588         case $cc_basename,$host_cpu in
9589         pgcc*)                          # Portland Group C compiler
9590           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'
9591           tmp_addflag=' $pic_flag'
9592           ;;
9593         pgf77* | pgf90* | pgf95* | pgfortran*)
9594                                         # Portland Group f77 and f90 compilers
9595           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'
9596           tmp_addflag=' $pic_flag -Mnomain' ;;
9597         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9598           tmp_addflag=' -i_dynamic' ;;
9599         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9600           tmp_addflag=' -i_dynamic -nofor_main' ;;
9601         ifc* | ifort*)                  # Intel Fortran compiler
9602           tmp_addflag=' -nofor_main' ;;
9603         lf95*)                          # Lahey Fortran 8.1
9604           whole_archive_flag_spec=
9605           tmp_sharedflag='--shared' ;;
9606         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9607           tmp_sharedflag='-qmkshrobj'
9608           tmp_addflag= ;;
9609         nvcc*)  # Cuda Compiler Driver 2.2
9610           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'
9611           compiler_needs_object=yes
9612           ;;
9613         esac
9614         case `$CC -V 2>&1 | sed 5q` in
9615         *Sun\ C*)                       # Sun C 5.9
9616           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'
9617           compiler_needs_object=yes
9618           tmp_sharedflag='-G' ;;
9619         *Sun\ F*)                       # Sun Fortran 8.3
9620           tmp_sharedflag='-G' ;;
9621         esac
9622         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623
9624         if test "x$supports_anon_versioning" = xyes; then
9625           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9626             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9627             echo "local: *; };" >> $output_objdir/$libname.ver~
9628             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9629         fi
9630
9631         case $cc_basename in
9632         xlf* | bgf* | bgxlf* | mpixlf*)
9633           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9634           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9635           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9636           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9637           if test "x$supports_anon_versioning" = xyes; then
9638             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9639               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9640               echo "local: *; };" >> $output_objdir/$libname.ver~
9641               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9642           fi
9643           ;;
9644         esac
9645       else
9646         ld_shlibs=no
9647       fi
9648       ;;
9649
9650     netbsd*)
9651       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9652         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9653         wlarc=
9654       else
9655         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9656         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9657       fi
9658       ;;
9659
9660     solaris*)
9661       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9662         ld_shlibs=no
9663         cat <<_LT_EOF 1>&2
9664
9665 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9666 *** create shared libraries on Solaris systems.  Therefore, libtool
9667 *** is disabling shared libraries support.  We urge you to upgrade GNU
9668 *** binutils to release 2.9.1 or newer.  Another option is to modify
9669 *** your PATH or compiler configuration so that the native linker is
9670 *** used, and then restart.
9671
9672 _LT_EOF
9673       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9674         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9675         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9676       else
9677         ld_shlibs=no
9678       fi
9679       ;;
9680
9681     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9682       case `$LD -v 2>&1` in
9683         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9684         ld_shlibs=no
9685         cat <<_LT_EOF 1>&2
9686
9687 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9688 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9689 *** is disabling shared libraries support.  We urge you to upgrade GNU
9690 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9691 *** your PATH or compiler configuration so that the native linker is
9692 *** used, and then restart.
9693
9694 _LT_EOF
9695         ;;
9696         *)
9697           # For security reasons, it is highly recommended that you always
9698           # use absolute paths for naming shared libraries, and exclude the
9699           # DT_RUNPATH tag from executables and libraries.  But doing so
9700           # requires that you compile everything twice, which is a pain.
9701           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9702             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9703             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9704             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9705           else
9706             ld_shlibs=no
9707           fi
9708         ;;
9709       esac
9710       ;;
9711
9712     sunos4*)
9713       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9714       wlarc=
9715       hardcode_direct=yes
9716       hardcode_shlibpath_var=no
9717       ;;
9718
9719     *)
9720       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9721         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9722         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9723       else
9724         ld_shlibs=no
9725       fi
9726       ;;
9727     esac
9728
9729     if test "$ld_shlibs" = no; then
9730       runpath_var=
9731       hardcode_libdir_flag_spec=
9732       export_dynamic_flag_spec=
9733       whole_archive_flag_spec=
9734     fi
9735   else
9736     # PORTME fill in a description of your system's linker (not GNU ld)
9737     case $host_os in
9738     aix3*)
9739       allow_undefined_flag=unsupported
9740       always_export_symbols=yes
9741       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'
9742       # Note: this linker hardcodes the directories in LIBPATH if there
9743       # are no directories specified by -L.
9744       hardcode_minus_L=yes
9745       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9746         # Neither direct hardcoding nor static linking is supported with a
9747         # broken collect2.
9748         hardcode_direct=unsupported
9749       fi
9750       ;;
9751
9752     aix[4-9]*)
9753       if test "$host_cpu" = ia64; then
9754         # On IA64, the linker does run time linking by default, so we don't
9755         # have to do anything special.
9756         aix_use_runtimelinking=no
9757         exp_sym_flag='-Bexport'
9758         no_entry_flag=""
9759       else
9760         # If we're using GNU nm, then we don't want the "-C" option.
9761         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9762         # Also, AIX nm treats weak defined symbols like other global
9763         # defined symbols, whereas GNU nm marks them as "W".
9764         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9765           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'
9766         else
9767           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'
9768         fi
9769         aix_use_runtimelinking=no
9770
9771         # Test if we are trying to use run time linking or normal
9772         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9773         # need to do runtime linking.
9774         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9775           for ld_flag in $LDFLAGS; do
9776           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9777             aix_use_runtimelinking=yes
9778             break
9779           fi
9780           done
9781           ;;
9782         esac
9783
9784         exp_sym_flag='-bexport'
9785         no_entry_flag='-bnoentry'
9786       fi
9787
9788       # When large executables or shared objects are built, AIX ld can
9789       # have problems creating the table of contents.  If linking a library
9790       # or program results in "error TOC overflow" add -mminimal-toc to
9791       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9792       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9793
9794       archive_cmds=''
9795       hardcode_direct=yes
9796       hardcode_direct_absolute=yes
9797       hardcode_libdir_separator=':'
9798       link_all_deplibs=yes
9799       file_list_spec='${wl}-f,'
9800
9801       if test "$GCC" = yes; then
9802         case $host_os in aix4.[012]|aix4.[012].*)
9803         # We only want to do this on AIX 4.2 and lower, the check
9804         # below for broken collect2 doesn't work under 4.3+
9805           collect2name=`${CC} -print-prog-name=collect2`
9806           if test -f "$collect2name" &&
9807            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9808           then
9809           # We have reworked collect2
9810           :
9811           else
9812           # We have old collect2
9813           hardcode_direct=unsupported
9814           # It fails to find uninstalled libraries when the uninstalled
9815           # path is not listed in the libpath.  Setting hardcode_minus_L
9816           # to unsupported forces relinking
9817           hardcode_minus_L=yes
9818           hardcode_libdir_flag_spec='-L$libdir'
9819           hardcode_libdir_separator=
9820           fi
9821           ;;
9822         esac
9823         shared_flag='-shared'
9824         if test "$aix_use_runtimelinking" = yes; then
9825           shared_flag="$shared_flag "'${wl}-G'
9826         fi
9827       else
9828         # not using gcc
9829         if test "$host_cpu" = ia64; then
9830         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9831         # chokes on -Wl,-G. The following line is correct:
9832           shared_flag='-G'
9833         else
9834           if test "$aix_use_runtimelinking" = yes; then
9835             shared_flag='${wl}-G'
9836           else
9837             shared_flag='${wl}-bM:SRE'
9838           fi
9839         fi
9840       fi
9841
9842       export_dynamic_flag_spec='${wl}-bexpall'
9843       # It seems that -bexpall does not export symbols beginning with
9844       # underscore (_), so it is better to generate a list of symbols to export.
9845       always_export_symbols=yes
9846       if test "$aix_use_runtimelinking" = yes; then
9847         # Warning - without using the other runtime loading flags (-brtl),
9848         # -berok will link without error, but may produce a broken library.
9849         allow_undefined_flag='-berok'
9850         # Determine the default libpath from the value encoded in an
9851         # empty executable.
9852         if test "${lt_cv_aix_libpath+set}" = set; then
9853   aix_libpath=$lt_cv_aix_libpath
9854 else
9855   if ${lt_cv_aix_libpath_+:} false; then :
9856   $as_echo_n "(cached) " >&6
9857 else
9858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h.  */
9860
9861 int
9862 main ()
9863 {
9864
9865   ;
9866   return 0;
9867 }
9868 _ACEOF
9869 if ac_fn_c_try_link "$LINENO"; then :
9870
9871   lt_aix_libpath_sed='
9872       /Import File Strings/,/^$/ {
9873           /^0/ {
9874               s/^0  *\([^ ]*\) *$/\1/
9875               p
9876           }
9877       }'
9878   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9879   # Check for a 64-bit object if we didn't find anything.
9880   if test -z "$lt_cv_aix_libpath_"; then
9881     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9882   fi
9883 fi
9884 rm -f core conftest.err conftest.$ac_objext \
9885     conftest$ac_exeext conftest.$ac_ext
9886   if test -z "$lt_cv_aix_libpath_"; then
9887     lt_cv_aix_libpath_="/usr/lib:/lib"
9888   fi
9889
9890 fi
9891
9892   aix_libpath=$lt_cv_aix_libpath_
9893 fi
9894
9895         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9896         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"
9897       else
9898         if test "$host_cpu" = ia64; then
9899           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9900           allow_undefined_flag="-z nodefs"
9901           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"
9902         else
9903          # Determine the default libpath from the value encoded in an
9904          # empty executable.
9905          if test "${lt_cv_aix_libpath+set}" = set; then
9906   aix_libpath=$lt_cv_aix_libpath
9907 else
9908   if ${lt_cv_aix_libpath_+:} false; then :
9909   $as_echo_n "(cached) " >&6
9910 else
9911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h.  */
9913
9914 int
9915 main ()
9916 {
9917
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 if ac_fn_c_try_link "$LINENO"; then :
9923
9924   lt_aix_libpath_sed='
9925       /Import File Strings/,/^$/ {
9926           /^0/ {
9927               s/^0  *\([^ ]*\) *$/\1/
9928               p
9929           }
9930       }'
9931   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9932   # Check for a 64-bit object if we didn't find anything.
9933   if test -z "$lt_cv_aix_libpath_"; then
9934     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9935   fi
9936 fi
9937 rm -f core conftest.err conftest.$ac_objext \
9938     conftest$ac_exeext conftest.$ac_ext
9939   if test -z "$lt_cv_aix_libpath_"; then
9940     lt_cv_aix_libpath_="/usr/lib:/lib"
9941   fi
9942
9943 fi
9944
9945   aix_libpath=$lt_cv_aix_libpath_
9946 fi
9947
9948          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9949           # Warning - without using the other run time loading flags,
9950           # -berok will link without error, but may produce a broken library.
9951           no_undefined_flag=' ${wl}-bernotok'
9952           allow_undefined_flag=' ${wl}-berok'
9953           if test "$with_gnu_ld" = yes; then
9954             # We only use this code for GNU lds that support --whole-archive.
9955             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9956           else
9957             # Exported symbols can be pulled into shared objects from archives
9958             whole_archive_flag_spec='$convenience'
9959           fi
9960           archive_cmds_need_lc=yes
9961           # This is similar to how AIX traditionally builds its shared libraries.
9962           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'
9963         fi
9964       fi
9965       ;;
9966
9967     amigaos*)
9968       case $host_cpu in
9969       powerpc)
9970             # see comment about AmigaOS4 .so support
9971             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972             archive_expsym_cmds=''
9973         ;;
9974       m68k)
9975             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)'
9976             hardcode_libdir_flag_spec='-L$libdir'
9977             hardcode_minus_L=yes
9978         ;;
9979       esac
9980       ;;
9981
9982     bsdi[45]*)
9983       export_dynamic_flag_spec=-rdynamic
9984       ;;
9985
9986     cygwin* | mingw* | pw32* | cegcc*)
9987       # When not using gcc, we currently assume that we are using
9988       # Microsoft Visual C++.
9989       # hardcode_libdir_flag_spec is actually meaningless, as there is
9990       # no search path for DLLs.
9991       case $cc_basename in
9992       cl*)
9993         # Native MSVC
9994         hardcode_libdir_flag_spec=' '
9995         allow_undefined_flag=unsupported
9996         always_export_symbols=yes
9997         file_list_spec='@'
9998         # Tell ltmain to make .lib files, not .a files.
9999         libext=lib
10000         # Tell ltmain to make .dll files, not .so files.
10001         shrext_cmds=".dll"
10002         # FIXME: Setting linknames here is a bad hack.
10003         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10004         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10005             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10006           else
10007             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10008           fi~
10009           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10010           linknames='
10011         # The linker will not automatically build a static lib if we build a DLL.
10012         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10013         enable_shared_with_static_runtimes=yes
10014         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10015         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10016         # Don't use ranlib
10017         old_postinstall_cmds='chmod 644 $oldlib'
10018         postlink_cmds='lt_outputfile="@OUTPUT@"~
10019           lt_tool_outputfile="@TOOL_OUTPUT@"~
10020           case $lt_outputfile in
10021             *.exe|*.EXE) ;;
10022             *)
10023               lt_outputfile="$lt_outputfile.exe"
10024               lt_tool_outputfile="$lt_tool_outputfile.exe"
10025               ;;
10026           esac~
10027           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10028             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10029             $RM "$lt_outputfile.manifest";
10030           fi'
10031         ;;
10032       *)
10033         # Assume MSVC wrapper
10034         hardcode_libdir_flag_spec=' '
10035         allow_undefined_flag=unsupported
10036         # Tell ltmain to make .lib files, not .a files.
10037         libext=lib
10038         # Tell ltmain to make .dll files, not .so files.
10039         shrext_cmds=".dll"
10040         # FIXME: Setting linknames here is a bad hack.
10041         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10042         # The linker will automatically build a .lib file if we build a DLL.
10043         old_archive_from_new_cmds='true'
10044         # FIXME: Should let the user specify the lib program.
10045         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10046         enable_shared_with_static_runtimes=yes
10047         ;;
10048       esac
10049       ;;
10050
10051     darwin* | rhapsody*)
10052
10053
10054   archive_cmds_need_lc=no
10055   hardcode_direct=no
10056   hardcode_automatic=yes
10057   hardcode_shlibpath_var=unsupported
10058   if test "$lt_cv_ld_force_load" = "yes"; then
10059     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\"`'
10060
10061   else
10062     whole_archive_flag_spec=''
10063   fi
10064   link_all_deplibs=yes
10065   allow_undefined_flag="$_lt_dar_allow_undefined"
10066   case $cc_basename in
10067      ifort*) _lt_dar_can_shared=yes ;;
10068      *) _lt_dar_can_shared=$GCC ;;
10069   esac
10070   if test "$_lt_dar_can_shared" = "yes"; then
10071     output_verbose_link_cmd=func_echo_all
10072     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10073     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10074     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}"
10075     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}"
10076
10077   else
10078   ld_shlibs=no
10079   fi
10080
10081       ;;
10082
10083     dgux*)
10084       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085       hardcode_libdir_flag_spec='-L$libdir'
10086       hardcode_shlibpath_var=no
10087       ;;
10088
10089     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10090     # support.  Future versions do this automatically, but an explicit c++rt0.o
10091     # does not break anything, and helps significantly (at the cost of a little
10092     # extra space).
10093     freebsd2.2*)
10094       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10095       hardcode_libdir_flag_spec='-R$libdir'
10096       hardcode_direct=yes
10097       hardcode_shlibpath_var=no
10098       ;;
10099
10100     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10101     freebsd2.*)
10102       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10103       hardcode_direct=yes
10104       hardcode_minus_L=yes
10105       hardcode_shlibpath_var=no
10106       ;;
10107
10108     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10109     freebsd* | dragonfly*)
10110       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10111       hardcode_libdir_flag_spec='-R$libdir'
10112       hardcode_direct=yes
10113       hardcode_shlibpath_var=no
10114       ;;
10115
10116     hpux9*)
10117       if test "$GCC" = yes; then
10118         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'
10119       else
10120         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'
10121       fi
10122       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10123       hardcode_libdir_separator=:
10124       hardcode_direct=yes
10125
10126       # hardcode_minus_L: Not really in the search PATH,
10127       # but as the default location of the library.
10128       hardcode_minus_L=yes
10129       export_dynamic_flag_spec='${wl}-E'
10130       ;;
10131
10132     hpux10*)
10133       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10134         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10135       else
10136         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10137       fi
10138       if test "$with_gnu_ld" = no; then
10139         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10140         hardcode_libdir_separator=:
10141         hardcode_direct=yes
10142         hardcode_direct_absolute=yes
10143         export_dynamic_flag_spec='${wl}-E'
10144         # hardcode_minus_L: Not really in the search PATH,
10145         # but as the default location of the library.
10146         hardcode_minus_L=yes
10147       fi
10148       ;;
10149
10150     hpux11*)
10151       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10152         case $host_cpu in
10153         hppa*64*)
10154           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10155           ;;
10156         ia64*)
10157           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10158           ;;
10159         *)
10160           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10161           ;;
10162         esac
10163       else
10164         case $host_cpu in
10165         hppa*64*)
10166           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10167           ;;
10168         ia64*)
10169           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10170           ;;
10171         *)
10172
10173           # Older versions of the 11.00 compiler do not understand -b yet
10174           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10175           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10176 $as_echo_n "checking if $CC understands -b... " >&6; }
10177 if ${lt_cv_prog_compiler__b+:} false; then :
10178   $as_echo_n "(cached) " >&6
10179 else
10180   lt_cv_prog_compiler__b=no
10181    save_LDFLAGS="$LDFLAGS"
10182    LDFLAGS="$LDFLAGS -b"
10183    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10184    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10185      # The linker can only warn and ignore the option if not recognized
10186      # So say no if there are warnings
10187      if test -s conftest.err; then
10188        # Append any errors to the config.log.
10189        cat conftest.err 1>&5
10190        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10191        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10192        if diff conftest.exp conftest.er2 >/dev/null; then
10193          lt_cv_prog_compiler__b=yes
10194        fi
10195      else
10196        lt_cv_prog_compiler__b=yes
10197      fi
10198    fi
10199    $RM -r conftest*
10200    LDFLAGS="$save_LDFLAGS"
10201
10202 fi
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10204 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10205
10206 if test x"$lt_cv_prog_compiler__b" = xyes; then
10207     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10208 else
10209     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10210 fi
10211
10212           ;;
10213         esac
10214       fi
10215       if test "$with_gnu_ld" = no; then
10216         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10217         hardcode_libdir_separator=:
10218
10219         case $host_cpu in
10220         hppa*64*|ia64*)
10221           hardcode_direct=no
10222           hardcode_shlibpath_var=no
10223           ;;
10224         *)
10225           hardcode_direct=yes
10226           hardcode_direct_absolute=yes
10227           export_dynamic_flag_spec='${wl}-E'
10228
10229           # hardcode_minus_L: Not really in the search PATH,
10230           # but as the default location of the library.
10231           hardcode_minus_L=yes
10232           ;;
10233         esac
10234       fi
10235       ;;
10236
10237     irix5* | irix6* | nonstopux*)
10238       if test "$GCC" = yes; then
10239         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'
10240         # Try to use the -exported_symbol ld option, if it does not
10241         # work, assume that -exports_file does not work either and
10242         # implicitly export all symbols.
10243         # This should be the same for all languages, so no per-tag cache variable.
10244         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10245 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10246 if ${lt_cv_irix_exported_symbol+:} false; then :
10247   $as_echo_n "(cached) " >&6
10248 else
10249   save_LDFLAGS="$LDFLAGS"
10250            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10251            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h.  */
10253 int foo (void) { return 0; }
10254 _ACEOF
10255 if ac_fn_c_try_link "$LINENO"; then :
10256   lt_cv_irix_exported_symbol=yes
10257 else
10258   lt_cv_irix_exported_symbol=no
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext \
10261     conftest$ac_exeext conftest.$ac_ext
10262            LDFLAGS="$save_LDFLAGS"
10263 fi
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10265 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10266         if test "$lt_cv_irix_exported_symbol" = yes; then
10267           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'
10268         fi
10269       else
10270         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'
10271         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'
10272       fi
10273       archive_cmds_need_lc='no'
10274       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10275       hardcode_libdir_separator=:
10276       inherit_rpath=yes
10277       link_all_deplibs=yes
10278       ;;
10279
10280     netbsd*)
10281       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10282         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10283       else
10284         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10285       fi
10286       hardcode_libdir_flag_spec='-R$libdir'
10287       hardcode_direct=yes
10288       hardcode_shlibpath_var=no
10289       ;;
10290
10291     newsos6)
10292       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293       hardcode_direct=yes
10294       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10295       hardcode_libdir_separator=:
10296       hardcode_shlibpath_var=no
10297       ;;
10298
10299     *nto* | *qnx*)
10300       ;;
10301
10302     openbsd*)
10303       if test -f /usr/libexec/ld.so; then
10304         hardcode_direct=yes
10305         hardcode_shlibpath_var=no
10306         hardcode_direct_absolute=yes
10307         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10308           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10309           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10310           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10311           export_dynamic_flag_spec='${wl}-E'
10312         else
10313           case $host_os in
10314            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10315              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10316              hardcode_libdir_flag_spec='-R$libdir'
10317              ;;
10318            *)
10319              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10320              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10321              ;;
10322           esac
10323         fi
10324       else
10325         ld_shlibs=no
10326       fi
10327       ;;
10328
10329     os2*)
10330       hardcode_libdir_flag_spec='-L$libdir'
10331       hardcode_minus_L=yes
10332       allow_undefined_flag=unsupported
10333       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'
10334       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10335       ;;
10336
10337     osf3*)
10338       if test "$GCC" = yes; then
10339         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10340         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'
10341       else
10342         allow_undefined_flag=' -expect_unresolved \*'
10343         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'
10344       fi
10345       archive_cmds_need_lc='no'
10346       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10347       hardcode_libdir_separator=:
10348       ;;
10349
10350     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10351       if test "$GCC" = yes; then
10352         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10353         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'
10354         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10355       else
10356         allow_undefined_flag=' -expect_unresolved \*'
10357         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'
10358         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~
10359         $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'
10360
10361         # Both c and cxx compiler support -rpath directly
10362         hardcode_libdir_flag_spec='-rpath $libdir'
10363       fi
10364       archive_cmds_need_lc='no'
10365       hardcode_libdir_separator=:
10366       ;;
10367
10368     solaris*)
10369       no_undefined_flag=' -z defs'
10370       if test "$GCC" = yes; then
10371         wlarc='${wl}'
10372         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10373         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10374           $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'
10375       else
10376         case `$CC -V 2>&1` in
10377         *"Compilers 5.0"*)
10378           wlarc=''
10379           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10381           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10382           ;;
10383         *)
10384           wlarc='${wl}'
10385           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10386           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10387           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10388           ;;
10389         esac
10390       fi
10391       hardcode_libdir_flag_spec='-R$libdir'
10392       hardcode_shlibpath_var=no
10393       case $host_os in
10394       solaris2.[0-5] | solaris2.[0-5].*) ;;
10395       *)
10396         # The compiler driver will combine and reorder linker options,
10397         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10398         # but is careful enough not to reorder.
10399         # Supported since Solaris 2.6 (maybe 2.5.1?)
10400         if test "$GCC" = yes; then
10401           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10402         else
10403           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10404         fi
10405         ;;
10406       esac
10407       link_all_deplibs=yes
10408       ;;
10409
10410     sunos4*)
10411       if test "x$host_vendor" = xsequent; then
10412         # Use $CC to link under sequent, because it throws in some extra .o
10413         # files that make .init and .fini sections work.
10414         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10415       else
10416         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10417       fi
10418       hardcode_libdir_flag_spec='-L$libdir'
10419       hardcode_direct=yes
10420       hardcode_minus_L=yes
10421       hardcode_shlibpath_var=no
10422       ;;
10423
10424     sysv4)
10425       case $host_vendor in
10426         sni)
10427           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428           hardcode_direct=yes # is this really true???
10429         ;;
10430         siemens)
10431           ## LD is ld it makes a PLAMLIB
10432           ## CC just makes a GrossModule.
10433           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10434           reload_cmds='$CC -r -o $output$reload_objs'
10435           hardcode_direct=no
10436         ;;
10437         motorola)
10438           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10439           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10440         ;;
10441       esac
10442       runpath_var='LD_RUN_PATH'
10443       hardcode_shlibpath_var=no
10444       ;;
10445
10446     sysv4.3*)
10447       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10448       hardcode_shlibpath_var=no
10449       export_dynamic_flag_spec='-Bexport'
10450       ;;
10451
10452     sysv4*MP*)
10453       if test -d /usr/nec; then
10454         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10455         hardcode_shlibpath_var=no
10456         runpath_var=LD_RUN_PATH
10457         hardcode_runpath_var=yes
10458         ld_shlibs=yes
10459       fi
10460       ;;
10461
10462     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10463       no_undefined_flag='${wl}-z,text'
10464       archive_cmds_need_lc=no
10465       hardcode_shlibpath_var=no
10466       runpath_var='LD_RUN_PATH'
10467
10468       if test "$GCC" = yes; then
10469         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10470         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10471       else
10472         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10473         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10474       fi
10475       ;;
10476
10477     sysv5* | sco3.2v5* | sco5v6*)
10478       # Note: We can NOT use -z defs as we might desire, because we do not
10479       # link with -lc, and that would cause any symbols used from libc to
10480       # always be unresolved, which means just about no library would
10481       # ever link correctly.  If we're not using GNU ld we use -z text
10482       # though, which does catch some bad symbols but isn't as heavy-handed
10483       # as -z defs.
10484       no_undefined_flag='${wl}-z,text'
10485       allow_undefined_flag='${wl}-z,nodefs'
10486       archive_cmds_need_lc=no
10487       hardcode_shlibpath_var=no
10488       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10489       hardcode_libdir_separator=':'
10490       link_all_deplibs=yes
10491       export_dynamic_flag_spec='${wl}-Bexport'
10492       runpath_var='LD_RUN_PATH'
10493
10494       if test "$GCC" = yes; then
10495         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10496         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10497       else
10498         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10499         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500       fi
10501       ;;
10502
10503     uts4*)
10504       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10505       hardcode_libdir_flag_spec='-L$libdir'
10506       hardcode_shlibpath_var=no
10507       ;;
10508
10509     *)
10510       ld_shlibs=no
10511       ;;
10512     esac
10513
10514     if test x$host_vendor = xsni; then
10515       case $host in
10516       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10517         export_dynamic_flag_spec='${wl}-Blargedynsym'
10518         ;;
10519       esac
10520     fi
10521   fi
10522
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10524 $as_echo "$ld_shlibs" >&6; }
10525 test "$ld_shlibs" = no && can_build_shared=no
10526
10527 with_gnu_ld=$with_gnu_ld
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543 #
10544 # Do we need to explicitly link libc?
10545 #
10546 case "x$archive_cmds_need_lc" in
10547 x|xyes)
10548   # Assume -lc should be added
10549   archive_cmds_need_lc=yes
10550
10551   if test "$enable_shared" = yes && test "$GCC" = yes; then
10552     case $archive_cmds in
10553     *'~'*)
10554       # FIXME: we may have to deal with multi-command sequences.
10555       ;;
10556     '$CC '*)
10557       # Test whether the compiler implicitly links with -lc since on some
10558       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10559       # to ld, don't add -lc before -lgcc.
10560       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10561 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10562 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10563   $as_echo_n "(cached) " >&6
10564 else
10565   $RM conftest*
10566         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10567
10568         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10569   (eval $ac_compile) 2>&5
10570   ac_status=$?
10571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10572   test $ac_status = 0; } 2>conftest.err; then
10573           soname=conftest
10574           lib=conftest
10575           libobjs=conftest.$ac_objext
10576           deplibs=
10577           wl=$lt_prog_compiler_wl
10578           pic_flag=$lt_prog_compiler_pic
10579           compiler_flags=-v
10580           linker_flags=-v
10581           verstring=
10582           output_objdir=.
10583           libname=conftest
10584           lt_save_allow_undefined_flag=$allow_undefined_flag
10585           allow_undefined_flag=
10586           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10587   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10588   ac_status=$?
10589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10590   test $ac_status = 0; }
10591           then
10592             lt_cv_archive_cmds_need_lc=no
10593           else
10594             lt_cv_archive_cmds_need_lc=yes
10595           fi
10596           allow_undefined_flag=$lt_save_allow_undefined_flag
10597         else
10598           cat conftest.err 1>&5
10599         fi
10600         $RM conftest*
10601
10602 fi
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10604 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10605       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10606       ;;
10607     esac
10608   fi
10609   ;;
10610 esac
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10764 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10765
10766 if test "$GCC" = yes; then
10767   case $host_os in
10768     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10769     *) lt_awk_arg="/^libraries:/" ;;
10770   esac
10771   case $host_os in
10772     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10773     *) lt_sed_strip_eq="s,=/,/,g" ;;
10774   esac
10775   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10776   case $lt_search_path_spec in
10777   *\;*)
10778     # if the path contains ";" then we assume it to be the separator
10779     # otherwise default to the standard path separator (i.e. ":") - it is
10780     # assumed that no part of a normal pathname contains ";" but that should
10781     # okay in the real world where ";" in dirpaths is itself problematic.
10782     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10783     ;;
10784   *)
10785     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10786     ;;
10787   esac
10788   # Ok, now we have the path, separated by spaces, we can step through it
10789   # and add multilib dir if necessary.
10790   lt_tmp_lt_search_path_spec=
10791   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10792   for lt_sys_path in $lt_search_path_spec; do
10793     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10794       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10795     else
10796       test -d "$lt_sys_path" && \
10797         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10798     fi
10799   done
10800   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10801 BEGIN {RS=" "; FS="/|\n";} {
10802   lt_foo="";
10803   lt_count=0;
10804   for (lt_i = NF; lt_i > 0; lt_i--) {
10805     if ($lt_i != "" && $lt_i != ".") {
10806       if ($lt_i == "..") {
10807         lt_count++;
10808       } else {
10809         if (lt_count == 0) {
10810           lt_foo="/" $lt_i lt_foo;
10811         } else {
10812           lt_count--;
10813         }
10814       }
10815     }
10816   }
10817   if (lt_foo != "") { lt_freq[lt_foo]++; }
10818   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10819 }'`
10820   # AWK program above erroneously prepends '/' to C:/dos/paths
10821   # for these hosts.
10822   case $host_os in
10823     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10824       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10825   esac
10826   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10827 else
10828   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10829 fi
10830 library_names_spec=
10831 libname_spec='lib$name'
10832 soname_spec=
10833 shrext_cmds=".so"
10834 postinstall_cmds=
10835 postuninstall_cmds=
10836 finish_cmds=
10837 finish_eval=
10838 shlibpath_var=
10839 shlibpath_overrides_runpath=unknown
10840 version_type=none
10841 dynamic_linker="$host_os ld.so"
10842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10843 need_lib_prefix=unknown
10844 hardcode_into_libs=no
10845
10846 # when you set need_version to no, make sure it does not cause -set_version
10847 # flags to be left without arguments
10848 need_version=unknown
10849
10850 case $host_os in
10851 aix3*)
10852   version_type=linux # correct to gnu/linux during the next big refactor
10853   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10854   shlibpath_var=LIBPATH
10855
10856   # AIX 3 has no versioning support, so we append a major version to the name.
10857   soname_spec='${libname}${release}${shared_ext}$major'
10858   ;;
10859
10860 aix[4-9]*)
10861   version_type=linux # correct to gnu/linux during the next big refactor
10862   need_lib_prefix=no
10863   need_version=no
10864   hardcode_into_libs=yes
10865   if test "$host_cpu" = ia64; then
10866     # AIX 5 supports IA64
10867     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10868     shlibpath_var=LD_LIBRARY_PATH
10869   else
10870     # With GCC up to 2.95.x, collect2 would create an import file
10871     # for dependence libraries.  The import file would start with
10872     # the line `#! .'.  This would cause the generated library to
10873     # depend on `.', always an invalid library.  This was fixed in
10874     # development snapshots of GCC prior to 3.0.
10875     case $host_os in
10876       aix4 | aix4.[01] | aix4.[01].*)
10877       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10878            echo ' yes '
10879            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10880         :
10881       else
10882         can_build_shared=no
10883       fi
10884       ;;
10885     esac
10886     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10887     # soname into executable. Probably we can add versioning support to
10888     # collect2, so additional links can be useful in future.
10889     if test "$aix_use_runtimelinking" = yes; then
10890       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10891       # instead of lib<name>.a to let people know that these are not
10892       # typical AIX shared libraries.
10893       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894     else
10895       # We preserve .a as extension for shared libraries through AIX4.2
10896       # and later when we are not doing run time linking.
10897       library_names_spec='${libname}${release}.a $libname.a'
10898       soname_spec='${libname}${release}${shared_ext}$major'
10899     fi
10900     shlibpath_var=LIBPATH
10901   fi
10902   ;;
10903
10904 amigaos*)
10905   case $host_cpu in
10906   powerpc)
10907     # Since July 2007 AmigaOS4 officially supports .so libraries.
10908     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10910     ;;
10911   m68k)
10912     library_names_spec='$libname.ixlibrary $libname.a'
10913     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10914     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'
10915     ;;
10916   esac
10917   ;;
10918
10919 beos*)
10920   library_names_spec='${libname}${shared_ext}'
10921   dynamic_linker="$host_os ld.so"
10922   shlibpath_var=LIBRARY_PATH
10923   ;;
10924
10925 bsdi[45]*)
10926   version_type=linux # correct to gnu/linux during the next big refactor
10927   need_version=no
10928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929   soname_spec='${libname}${release}${shared_ext}$major'
10930   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10931   shlibpath_var=LD_LIBRARY_PATH
10932   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10933   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10934   # the default ld.so.conf also contains /usr/contrib/lib and
10935   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10936   # libtool to hard-code these into programs
10937   ;;
10938
10939 cygwin* | mingw* | pw32* | cegcc*)
10940   version_type=windows
10941   shrext_cmds=".dll"
10942   need_version=no
10943   need_lib_prefix=no
10944
10945   case $GCC,$cc_basename in
10946   yes,*)
10947     # gcc
10948     library_names_spec='$libname.dll.a'
10949     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10950     postinstall_cmds='base_file=`basename \${file}`~
10951       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10952       dldir=$destdir/`dirname \$dlpath`~
10953       test -d \$dldir || mkdir -p \$dldir~
10954       $install_prog $dir/$dlname \$dldir/$dlname~
10955       chmod a+x \$dldir/$dlname~
10956       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10957         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10958       fi'
10959     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10960       dlpath=$dir/\$dldll~
10961        $RM \$dlpath'
10962     shlibpath_overrides_runpath=yes
10963
10964     case $host_os in
10965     cygwin*)
10966       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10967       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10968
10969       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10970       ;;
10971     mingw* | cegcc*)
10972       # MinGW DLLs use traditional 'lib' prefix
10973       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10974       ;;
10975     pw32*)
10976       # pw32 DLLs use 'pw' prefix rather than 'lib'
10977       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10978       ;;
10979     esac
10980     dynamic_linker='Win32 ld.exe'
10981     ;;
10982
10983   *,cl*)
10984     # Native MSVC
10985     libname_spec='$name'
10986     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10987     library_names_spec='${libname}.dll.lib'
10988
10989     case $build_os in
10990     mingw*)
10991       sys_lib_search_path_spec=
10992       lt_save_ifs=$IFS
10993       IFS=';'
10994       for lt_path in $LIB
10995       do
10996         IFS=$lt_save_ifs
10997         # Let DOS variable expansion print the short 8.3 style file name.
10998         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10999         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11000       done
11001       IFS=$lt_save_ifs
11002       # Convert to MSYS style.
11003       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11004       ;;
11005     cygwin*)
11006       # Convert to unix form, then to dos form, then back to unix form
11007       # but this time dos style (no spaces!) so that the unix form looks
11008       # like /cygdrive/c/PROGRA~1:/cygdr...
11009       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11010       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11011       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11012       ;;
11013     *)
11014       sys_lib_search_path_spec="$LIB"
11015       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11016         # It is most probably a Windows format PATH.
11017         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11018       else
11019         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11020       fi
11021       # FIXME: find the short name or the path components, as spaces are
11022       # common. (e.g. "Program Files" -> "PROGRA~1")
11023       ;;
11024     esac
11025
11026     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11027     postinstall_cmds='base_file=`basename \${file}`~
11028       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11029       dldir=$destdir/`dirname \$dlpath`~
11030       test -d \$dldir || mkdir -p \$dldir~
11031       $install_prog $dir/$dlname \$dldir/$dlname'
11032     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11033       dlpath=$dir/\$dldll~
11034        $RM \$dlpath'
11035     shlibpath_overrides_runpath=yes
11036     dynamic_linker='Win32 link.exe'
11037     ;;
11038
11039   *)
11040     # Assume MSVC wrapper
11041     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11042     dynamic_linker='Win32 ld.exe'
11043     ;;
11044   esac
11045   # FIXME: first we should search . and the directory the executable is in
11046   shlibpath_var=PATH
11047   ;;
11048
11049 darwin* | rhapsody*)
11050   dynamic_linker="$host_os dyld"
11051   version_type=darwin
11052   need_lib_prefix=no
11053   need_version=no
11054   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11055   soname_spec='${libname}${release}${major}$shared_ext'
11056   shlibpath_overrides_runpath=yes
11057   shlibpath_var=DYLD_LIBRARY_PATH
11058   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11059
11060   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11061   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11062   ;;
11063
11064 dgux*)
11065   version_type=linux # correct to gnu/linux during the next big refactor
11066   need_lib_prefix=no
11067   need_version=no
11068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11069   soname_spec='${libname}${release}${shared_ext}$major'
11070   shlibpath_var=LD_LIBRARY_PATH
11071   ;;
11072
11073 freebsd* | dragonfly*)
11074   # DragonFly does not have aout.  When/if they implement a new
11075   # versioning mechanism, adjust this.
11076   if test -x /usr/bin/objformat; then
11077     objformat=`/usr/bin/objformat`
11078   else
11079     case $host_os in
11080     freebsd[23].*) objformat=aout ;;
11081     *) objformat=elf ;;
11082     esac
11083   fi
11084   version_type=freebsd-$objformat
11085   case $version_type in
11086     freebsd-elf*)
11087       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11088       need_version=no
11089       need_lib_prefix=no
11090       ;;
11091     freebsd-*)
11092       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11093       need_version=yes
11094       ;;
11095   esac
11096   shlibpath_var=LD_LIBRARY_PATH
11097   case $host_os in
11098   freebsd2.*)
11099     shlibpath_overrides_runpath=yes
11100     ;;
11101   freebsd3.[01]* | freebsdelf3.[01]*)
11102     shlibpath_overrides_runpath=yes
11103     hardcode_into_libs=yes
11104     ;;
11105   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11106   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11107     shlibpath_overrides_runpath=no
11108     hardcode_into_libs=yes
11109     ;;
11110   *) # from 4.6 on, and DragonFly
11111     shlibpath_overrides_runpath=yes
11112     hardcode_into_libs=yes
11113     ;;
11114   esac
11115   ;;
11116
11117 gnu*)
11118   version_type=linux # correct to gnu/linux during the next big refactor
11119   need_lib_prefix=no
11120   need_version=no
11121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11122   soname_spec='${libname}${release}${shared_ext}$major'
11123   shlibpath_var=LD_LIBRARY_PATH
11124   shlibpath_overrides_runpath=no
11125   hardcode_into_libs=yes
11126   ;;
11127
11128 haiku*)
11129   version_type=linux # correct to gnu/linux during the next big refactor
11130   need_lib_prefix=no
11131   need_version=no
11132   dynamic_linker="$host_os runtime_loader"
11133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11134   soname_spec='${libname}${release}${shared_ext}$major'
11135   shlibpath_var=LIBRARY_PATH
11136   shlibpath_overrides_runpath=yes
11137   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11138   hardcode_into_libs=yes
11139   ;;
11140
11141 hpux9* | hpux10* | hpux11*)
11142   # Give a soname corresponding to the major version so that dld.sl refuses to
11143   # link against other versions.
11144   version_type=sunos
11145   need_lib_prefix=no
11146   need_version=no
11147   case $host_cpu in
11148   ia64*)
11149     shrext_cmds='.so'
11150     hardcode_into_libs=yes
11151     dynamic_linker="$host_os dld.so"
11152     shlibpath_var=LD_LIBRARY_PATH
11153     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155     soname_spec='${libname}${release}${shared_ext}$major'
11156     if test "X$HPUX_IA64_MODE" = X32; then
11157       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11158     else
11159       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11160     fi
11161     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11162     ;;
11163   hppa*64*)
11164     shrext_cmds='.sl'
11165     hardcode_into_libs=yes
11166     dynamic_linker="$host_os dld.sl"
11167     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11168     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170     soname_spec='${libname}${release}${shared_ext}$major'
11171     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11172     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11173     ;;
11174   *)
11175     shrext_cmds='.sl'
11176     dynamic_linker="$host_os dld.sl"
11177     shlibpath_var=SHLIB_PATH
11178     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180     soname_spec='${libname}${release}${shared_ext}$major'
11181     ;;
11182   esac
11183   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11184   postinstall_cmds='chmod 555 $lib'
11185   # or fails outright, so override atomically:
11186   install_override_mode=555
11187   ;;
11188
11189 interix[3-9]*)
11190   version_type=linux # correct to gnu/linux during the next big refactor
11191   need_lib_prefix=no
11192   need_version=no
11193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11194   soname_spec='${libname}${release}${shared_ext}$major'
11195   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11196   shlibpath_var=LD_LIBRARY_PATH
11197   shlibpath_overrides_runpath=no
11198   hardcode_into_libs=yes
11199   ;;
11200
11201 irix5* | irix6* | nonstopux*)
11202   case $host_os in
11203     nonstopux*) version_type=nonstopux ;;
11204     *)
11205         if test "$lt_cv_prog_gnu_ld" = yes; then
11206                 version_type=linux # correct to gnu/linux during the next big refactor
11207         else
11208                 version_type=irix
11209         fi ;;
11210   esac
11211   need_lib_prefix=no
11212   need_version=no
11213   soname_spec='${libname}${release}${shared_ext}$major'
11214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11215   case $host_os in
11216   irix5* | nonstopux*)
11217     libsuff= shlibsuff=
11218     ;;
11219   *)
11220     case $LD in # libtool.m4 will add one of these switches to LD
11221     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11222       libsuff= shlibsuff= libmagic=32-bit;;
11223     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11224       libsuff=32 shlibsuff=N32 libmagic=N32;;
11225     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11226       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11227     *) libsuff= shlibsuff= libmagic=never-match;;
11228     esac
11229     ;;
11230   esac
11231   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11232   shlibpath_overrides_runpath=no
11233   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11234   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11235   hardcode_into_libs=yes
11236   ;;
11237
11238 # No shared lib support for Linux oldld, aout, or coff.
11239 linux*oldld* | linux*aout* | linux*coff*)
11240   dynamic_linker=no
11241   ;;
11242
11243 # This must be glibc/ELF.
11244 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11245   version_type=linux # correct to gnu/linux during the next big refactor
11246   need_lib_prefix=no
11247   need_version=no
11248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249   soname_spec='${libname}${release}${shared_ext}$major'
11250   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11251   shlibpath_var=LD_LIBRARY_PATH
11252   shlibpath_overrides_runpath=no
11253
11254   # Some binutils ld are patched to set DT_RUNPATH
11255   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11256   $as_echo_n "(cached) " >&6
11257 else
11258   lt_cv_shlibpath_overrides_runpath=no
11259     save_LDFLAGS=$LDFLAGS
11260     save_libdir=$libdir
11261     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11262          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11263     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h.  */
11265
11266 int
11267 main ()
11268 {
11269
11270   ;
11271   return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"; then :
11275   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11276   lt_cv_shlibpath_overrides_runpath=yes
11277 fi
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext \
11280     conftest$ac_exeext conftest.$ac_ext
11281     LDFLAGS=$save_LDFLAGS
11282     libdir=$save_libdir
11283
11284 fi
11285
11286   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11287
11288   # This implies no fast_install, which is unacceptable.
11289   # Some rework will be needed to allow for fast_install
11290   # before this can be enabled.
11291   hardcode_into_libs=yes
11292
11293   # Append ld.so.conf contents to the search path
11294   if test -f /etc/ld.so.conf; then
11295     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' ' '`
11296     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11297   fi
11298
11299   # We used to test for /lib/ld.so.1 and disable shared libraries on
11300   # powerpc, because MkLinux only supported shared libraries with the
11301   # GNU dynamic linker.  Since this was broken with cross compilers,
11302   # most powerpc-linux boxes support dynamic linking these days and
11303   # people can always --disable-shared, the test was removed, and we
11304   # assume the GNU/Linux dynamic linker is in use.
11305   dynamic_linker='GNU/Linux ld.so'
11306   ;;
11307
11308 netbsd*)
11309   version_type=sunos
11310   need_lib_prefix=no
11311   need_version=no
11312   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11313     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11314     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11315     dynamic_linker='NetBSD (a.out) ld.so'
11316   else
11317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11318     soname_spec='${libname}${release}${shared_ext}$major'
11319     dynamic_linker='NetBSD ld.elf_so'
11320   fi
11321   shlibpath_var=LD_LIBRARY_PATH
11322   shlibpath_overrides_runpath=yes
11323   hardcode_into_libs=yes
11324   ;;
11325
11326 newsos6)
11327   version_type=linux # correct to gnu/linux during the next big refactor
11328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329   shlibpath_var=LD_LIBRARY_PATH
11330   shlibpath_overrides_runpath=yes
11331   ;;
11332
11333 *nto* | *qnx*)
11334   version_type=qnx
11335   need_lib_prefix=no
11336   need_version=no
11337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338   soname_spec='${libname}${release}${shared_ext}$major'
11339   shlibpath_var=LD_LIBRARY_PATH
11340   shlibpath_overrides_runpath=no
11341   hardcode_into_libs=yes
11342   dynamic_linker='ldqnx.so'
11343   ;;
11344
11345 openbsd*)
11346   version_type=sunos
11347   sys_lib_dlsearch_path_spec="/usr/lib"
11348   need_lib_prefix=no
11349   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11350   case $host_os in
11351     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11352     *)                          need_version=no  ;;
11353   esac
11354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11355   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11356   shlibpath_var=LD_LIBRARY_PATH
11357   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11358     case $host_os in
11359       openbsd2.[89] | openbsd2.[89].*)
11360         shlibpath_overrides_runpath=no
11361         ;;
11362       *)
11363         shlibpath_overrides_runpath=yes
11364         ;;
11365       esac
11366   else
11367     shlibpath_overrides_runpath=yes
11368   fi
11369   ;;
11370
11371 os2*)
11372   libname_spec='$name'
11373   shrext_cmds=".dll"
11374   need_lib_prefix=no
11375   library_names_spec='$libname${shared_ext} $libname.a'
11376   dynamic_linker='OS/2 ld.exe'
11377   shlibpath_var=LIBPATH
11378   ;;
11379
11380 osf3* | osf4* | osf5*)
11381   version_type=osf
11382   need_lib_prefix=no
11383   need_version=no
11384   soname_spec='${libname}${release}${shared_ext}$major'
11385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386   shlibpath_var=LD_LIBRARY_PATH
11387   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11388   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11389   ;;
11390
11391 rdos*)
11392   dynamic_linker=no
11393   ;;
11394
11395 solaris*)
11396   version_type=linux # correct to gnu/linux during the next big refactor
11397   need_lib_prefix=no
11398   need_version=no
11399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11400   soname_spec='${libname}${release}${shared_ext}$major'
11401   shlibpath_var=LD_LIBRARY_PATH
11402   shlibpath_overrides_runpath=yes
11403   hardcode_into_libs=yes
11404   # ldd complains unless libraries are executable
11405   postinstall_cmds='chmod +x $lib'
11406   ;;
11407
11408 sunos4*)
11409   version_type=sunos
11410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11411   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11412   shlibpath_var=LD_LIBRARY_PATH
11413   shlibpath_overrides_runpath=yes
11414   if test "$with_gnu_ld" = yes; then
11415     need_lib_prefix=no
11416   fi
11417   need_version=yes
11418   ;;
11419
11420 sysv4 | sysv4.3*)
11421   version_type=linux # correct to gnu/linux during the next big refactor
11422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423   soname_spec='${libname}${release}${shared_ext}$major'
11424   shlibpath_var=LD_LIBRARY_PATH
11425   case $host_vendor in
11426     sni)
11427       shlibpath_overrides_runpath=no
11428       need_lib_prefix=no
11429       runpath_var=LD_RUN_PATH
11430       ;;
11431     siemens)
11432       need_lib_prefix=no
11433       ;;
11434     motorola)
11435       need_lib_prefix=no
11436       need_version=no
11437       shlibpath_overrides_runpath=no
11438       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11439       ;;
11440   esac
11441   ;;
11442
11443 sysv4*MP*)
11444   if test -d /usr/nec ;then
11445     version_type=linux # correct to gnu/linux during the next big refactor
11446     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11447     soname_spec='$libname${shared_ext}.$major'
11448     shlibpath_var=LD_LIBRARY_PATH
11449   fi
11450   ;;
11451
11452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11453   version_type=freebsd-elf
11454   need_lib_prefix=no
11455   need_version=no
11456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11457   soname_spec='${libname}${release}${shared_ext}$major'
11458   shlibpath_var=LD_LIBRARY_PATH
11459   shlibpath_overrides_runpath=yes
11460   hardcode_into_libs=yes
11461   if test "$with_gnu_ld" = yes; then
11462     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11463   else
11464     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11465     case $host_os in
11466       sco3.2v5*)
11467         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11468         ;;
11469     esac
11470   fi
11471   sys_lib_dlsearch_path_spec='/usr/lib'
11472   ;;
11473
11474 tpf*)
11475   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11476   version_type=linux # correct to gnu/linux during the next big refactor
11477   need_lib_prefix=no
11478   need_version=no
11479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480   shlibpath_var=LD_LIBRARY_PATH
11481   shlibpath_overrides_runpath=no
11482   hardcode_into_libs=yes
11483   ;;
11484
11485 uts4*)
11486   version_type=linux # correct to gnu/linux during the next big refactor
11487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488   soname_spec='${libname}${release}${shared_ext}$major'
11489   shlibpath_var=LD_LIBRARY_PATH
11490   ;;
11491
11492 *)
11493   dynamic_linker=no
11494   ;;
11495 esac
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11497 $as_echo "$dynamic_linker" >&6; }
11498 test "$dynamic_linker" = no && can_build_shared=no
11499
11500 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11501 if test "$GCC" = yes; then
11502   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11503 fi
11504
11505 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11506   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11507 fi
11508 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11509   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11510 fi
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11604 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11605 hardcode_action=
11606 if test -n "$hardcode_libdir_flag_spec" ||
11607    test -n "$runpath_var" ||
11608    test "X$hardcode_automatic" = "Xyes" ; then
11609
11610   # We can hardcode non-existent directories.
11611   if test "$hardcode_direct" != no &&
11612      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11613      # have to relink, otherwise we might link with an installed library
11614      # when we should be linking with a yet-to-be-installed one
11615      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11616      test "$hardcode_minus_L" != no; then
11617     # Linking always hardcodes the temporary library directory.
11618     hardcode_action=relink
11619   else
11620     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11621     hardcode_action=immediate
11622   fi
11623 else
11624   # We cannot hardcode anything, or else we can only hardcode existing
11625   # directories.
11626   hardcode_action=unsupported
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11629 $as_echo "$hardcode_action" >&6; }
11630
11631 if test "$hardcode_action" = relink ||
11632    test "$inherit_rpath" = yes; then
11633   # Fast installation is not supported
11634   enable_fast_install=no
11635 elif test "$shlibpath_overrides_runpath" = yes ||
11636      test "$enable_shared" = no; then
11637   # Fast installation is not necessary
11638   enable_fast_install=needless
11639 fi
11640
11641
11642
11643
11644
11645
11646   if test "x$enable_dlopen" != xyes; then
11647   enable_dlopen=unknown
11648   enable_dlopen_self=unknown
11649   enable_dlopen_self_static=unknown
11650 else
11651   lt_cv_dlopen=no
11652   lt_cv_dlopen_libs=
11653
11654   case $host_os in
11655   beos*)
11656     lt_cv_dlopen="load_add_on"
11657     lt_cv_dlopen_libs=
11658     lt_cv_dlopen_self=yes
11659     ;;
11660
11661   mingw* | pw32* | cegcc*)
11662     lt_cv_dlopen="LoadLibrary"
11663     lt_cv_dlopen_libs=
11664     ;;
11665
11666   cygwin*)
11667     lt_cv_dlopen="dlopen"
11668     lt_cv_dlopen_libs=
11669     ;;
11670
11671   darwin*)
11672   # if libdl is installed we need to link against it
11673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11674 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11675 if ${ac_cv_lib_dl_dlopen+:} false; then :
11676   $as_echo_n "(cached) " >&6
11677 else
11678   ac_check_lib_save_LIBS=$LIBS
11679 LIBS="-ldl  $LIBS"
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h.  */
11682
11683 /* Override any GCC internal prototype to avoid an error.
11684    Use char because int might match the return type of a GCC
11685    builtin and then its argument prototype would still apply.  */
11686 #ifdef __cplusplus
11687 extern "C"
11688 #endif
11689 char dlopen ();
11690 int
11691 main ()
11692 {
11693 return dlopen ();
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 if ac_fn_c_try_link "$LINENO"; then :
11699   ac_cv_lib_dl_dlopen=yes
11700 else
11701   ac_cv_lib_dl_dlopen=no
11702 fi
11703 rm -f core conftest.err conftest.$ac_objext \
11704     conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11706 fi
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11708 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11709 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11710   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11711 else
11712
11713     lt_cv_dlopen="dyld"
11714     lt_cv_dlopen_libs=
11715     lt_cv_dlopen_self=yes
11716
11717 fi
11718
11719     ;;
11720
11721   *)
11722     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11723 if test "x$ac_cv_func_shl_load" = xyes; then :
11724   lt_cv_dlopen="shl_load"
11725 else
11726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11727 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11728 if ${ac_cv_lib_dld_shl_load+:} false; then :
11729   $as_echo_n "(cached) " >&6
11730 else
11731   ac_check_lib_save_LIBS=$LIBS
11732 LIBS="-ldld  $LIBS"
11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h.  */
11735
11736 /* Override any GCC internal prototype to avoid an error.
11737    Use char because int might match the return type of a GCC
11738    builtin and then its argument prototype would still apply.  */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 char shl_load ();
11743 int
11744 main ()
11745 {
11746 return shl_load ();
11747   ;
11748   return 0;
11749 }
11750 _ACEOF
11751 if ac_fn_c_try_link "$LINENO"; then :
11752   ac_cv_lib_dld_shl_load=yes
11753 else
11754   ac_cv_lib_dld_shl_load=no
11755 fi
11756 rm -f core conftest.err conftest.$ac_objext \
11757     conftest$ac_exeext conftest.$ac_ext
11758 LIBS=$ac_check_lib_save_LIBS
11759 fi
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11761 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11762 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11763   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11764 else
11765   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11766 if test "x$ac_cv_func_dlopen" = xyes; then :
11767   lt_cv_dlopen="dlopen"
11768 else
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11770 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11771 if ${ac_cv_lib_dl_dlopen+:} false; then :
11772   $as_echo_n "(cached) " >&6
11773 else
11774   ac_check_lib_save_LIBS=$LIBS
11775 LIBS="-ldl  $LIBS"
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h.  */
11778
11779 /* Override any GCC internal prototype to avoid an error.
11780    Use char because int might match the return type of a GCC
11781    builtin and then its argument prototype would still apply.  */
11782 #ifdef __cplusplus
11783 extern "C"
11784 #endif
11785 char dlopen ();
11786 int
11787 main ()
11788 {
11789 return dlopen ();
11790   ;
11791   return 0;
11792 }
11793 _ACEOF
11794 if ac_fn_c_try_link "$LINENO"; then :
11795   ac_cv_lib_dl_dlopen=yes
11796 else
11797   ac_cv_lib_dl_dlopen=no
11798 fi
11799 rm -f core conftest.err conftest.$ac_objext \
11800     conftest$ac_exeext conftest.$ac_ext
11801 LIBS=$ac_check_lib_save_LIBS
11802 fi
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11804 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11805 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11806   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11807 else
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11809 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11810 if ${ac_cv_lib_svld_dlopen+:} false; then :
11811   $as_echo_n "(cached) " >&6
11812 else
11813   ac_check_lib_save_LIBS=$LIBS
11814 LIBS="-lsvld  $LIBS"
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h.  */
11817
11818 /* Override any GCC internal prototype to avoid an error.
11819    Use char because int might match the return type of a GCC
11820    builtin and then its argument prototype would still apply.  */
11821 #ifdef __cplusplus
11822 extern "C"
11823 #endif
11824 char dlopen ();
11825 int
11826 main ()
11827 {
11828 return dlopen ();
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 if ac_fn_c_try_link "$LINENO"; then :
11834   ac_cv_lib_svld_dlopen=yes
11835 else
11836   ac_cv_lib_svld_dlopen=no
11837 fi
11838 rm -f core conftest.err conftest.$ac_objext \
11839     conftest$ac_exeext conftest.$ac_ext
11840 LIBS=$ac_check_lib_save_LIBS
11841 fi
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11843 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11844 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11845   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11846 else
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11848 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11849 if ${ac_cv_lib_dld_dld_link+:} false; then :
11850   $as_echo_n "(cached) " >&6
11851 else
11852   ac_check_lib_save_LIBS=$LIBS
11853 LIBS="-ldld  $LIBS"
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h.  */
11856
11857 /* Override any GCC internal prototype to avoid an error.
11858    Use char because int might match the return type of a GCC
11859    builtin and then its argument prototype would still apply.  */
11860 #ifdef __cplusplus
11861 extern "C"
11862 #endif
11863 char dld_link ();
11864 int
11865 main ()
11866 {
11867 return dld_link ();
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 if ac_fn_c_try_link "$LINENO"; then :
11873   ac_cv_lib_dld_dld_link=yes
11874 else
11875   ac_cv_lib_dld_dld_link=no
11876 fi
11877 rm -f core conftest.err conftest.$ac_objext \
11878     conftest$ac_exeext conftest.$ac_ext
11879 LIBS=$ac_check_lib_save_LIBS
11880 fi
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11882 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11883 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11884   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11885 fi
11886
11887
11888 fi
11889
11890
11891 fi
11892
11893
11894 fi
11895
11896
11897 fi
11898
11899
11900 fi
11901
11902     ;;
11903   esac
11904
11905   if test "x$lt_cv_dlopen" != xno; then
11906     enable_dlopen=yes
11907   else
11908     enable_dlopen=no
11909   fi
11910
11911   case $lt_cv_dlopen in
11912   dlopen)
11913     save_CPPFLAGS="$CPPFLAGS"
11914     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11915
11916     save_LDFLAGS="$LDFLAGS"
11917     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11918
11919     save_LIBS="$LIBS"
11920     LIBS="$lt_cv_dlopen_libs $LIBS"
11921
11922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11923 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11924 if ${lt_cv_dlopen_self+:} false; then :
11925   $as_echo_n "(cached) " >&6
11926 else
11927           if test "$cross_compiling" = yes; then :
11928   lt_cv_dlopen_self=cross
11929 else
11930   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11931   lt_status=$lt_dlunknown
11932   cat > conftest.$ac_ext <<_LT_EOF
11933 #line $LINENO "configure"
11934 #include "confdefs.h"
11935
11936 #if HAVE_DLFCN_H
11937 #include <dlfcn.h>
11938 #endif
11939
11940 #include <stdio.h>
11941
11942 #ifdef RTLD_GLOBAL
11943 #  define LT_DLGLOBAL           RTLD_GLOBAL
11944 #else
11945 #  ifdef DL_GLOBAL
11946 #    define LT_DLGLOBAL         DL_GLOBAL
11947 #  else
11948 #    define LT_DLGLOBAL         0
11949 #  endif
11950 #endif
11951
11952 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11953    find out it does not work in some platform. */
11954 #ifndef LT_DLLAZY_OR_NOW
11955 #  ifdef RTLD_LAZY
11956 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11957 #  else
11958 #    ifdef DL_LAZY
11959 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11960 #    else
11961 #      ifdef RTLD_NOW
11962 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11963 #      else
11964 #        ifdef DL_NOW
11965 #          define LT_DLLAZY_OR_NOW      DL_NOW
11966 #        else
11967 #          define LT_DLLAZY_OR_NOW      0
11968 #        endif
11969 #      endif
11970 #    endif
11971 #  endif
11972 #endif
11973
11974 /* When -fvisbility=hidden is used, assume the code has been annotated
11975    correspondingly for the symbols needed.  */
11976 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11977 int fnord () __attribute__((visibility("default")));
11978 #endif
11979
11980 int fnord () { return 42; }
11981 int main ()
11982 {
11983   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11984   int status = $lt_dlunknown;
11985
11986   if (self)
11987     {
11988       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11989       else
11990         {
11991           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11992           else puts (dlerror ());
11993         }
11994       /* dlclose (self); */
11995     }
11996   else
11997     puts (dlerror ());
11998
11999   return status;
12000 }
12001 _LT_EOF
12002   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12003   (eval $ac_link) 2>&5
12004   ac_status=$?
12005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12006   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12007     (./conftest; exit; ) >&5 2>/dev/null
12008     lt_status=$?
12009     case x$lt_status in
12010       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12011       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12012       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12013     esac
12014   else :
12015     # compilation failed
12016     lt_cv_dlopen_self=no
12017   fi
12018 fi
12019 rm -fr conftest*
12020
12021
12022 fi
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12024 $as_echo "$lt_cv_dlopen_self" >&6; }
12025
12026     if test "x$lt_cv_dlopen_self" = xyes; then
12027       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12028       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12029 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12030 if ${lt_cv_dlopen_self_static+:} false; then :
12031   $as_echo_n "(cached) " >&6
12032 else
12033           if test "$cross_compiling" = yes; then :
12034   lt_cv_dlopen_self_static=cross
12035 else
12036   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12037   lt_status=$lt_dlunknown
12038   cat > conftest.$ac_ext <<_LT_EOF
12039 #line $LINENO "configure"
12040 #include "confdefs.h"
12041
12042 #if HAVE_DLFCN_H
12043 #include <dlfcn.h>
12044 #endif
12045
12046 #include <stdio.h>
12047
12048 #ifdef RTLD_GLOBAL
12049 #  define LT_DLGLOBAL           RTLD_GLOBAL
12050 #else
12051 #  ifdef DL_GLOBAL
12052 #    define LT_DLGLOBAL         DL_GLOBAL
12053 #  else
12054 #    define LT_DLGLOBAL         0
12055 #  endif
12056 #endif
12057
12058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12059    find out it does not work in some platform. */
12060 #ifndef LT_DLLAZY_OR_NOW
12061 #  ifdef RTLD_LAZY
12062 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12063 #  else
12064 #    ifdef DL_LAZY
12065 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12066 #    else
12067 #      ifdef RTLD_NOW
12068 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12069 #      else
12070 #        ifdef DL_NOW
12071 #          define LT_DLLAZY_OR_NOW      DL_NOW
12072 #        else
12073 #          define LT_DLLAZY_OR_NOW      0
12074 #        endif
12075 #      endif
12076 #    endif
12077 #  endif
12078 #endif
12079
12080 /* When -fvisbility=hidden is used, assume the code has been annotated
12081    correspondingly for the symbols needed.  */
12082 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12083 int fnord () __attribute__((visibility("default")));
12084 #endif
12085
12086 int fnord () { return 42; }
12087 int main ()
12088 {
12089   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12090   int status = $lt_dlunknown;
12091
12092   if (self)
12093     {
12094       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12095       else
12096         {
12097           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12098           else puts (dlerror ());
12099         }
12100       /* dlclose (self); */
12101     }
12102   else
12103     puts (dlerror ());
12104
12105   return status;
12106 }
12107 _LT_EOF
12108   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12109   (eval $ac_link) 2>&5
12110   ac_status=$?
12111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12113     (./conftest; exit; ) >&5 2>/dev/null
12114     lt_status=$?
12115     case x$lt_status in
12116       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12117       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12118       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12119     esac
12120   else :
12121     # compilation failed
12122     lt_cv_dlopen_self_static=no
12123   fi
12124 fi
12125 rm -fr conftest*
12126
12127
12128 fi
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12130 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12131     fi
12132
12133     CPPFLAGS="$save_CPPFLAGS"
12134     LDFLAGS="$save_LDFLAGS"
12135     LIBS="$save_LIBS"
12136     ;;
12137   esac
12138
12139   case $lt_cv_dlopen_self in
12140   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12141   *) enable_dlopen_self=unknown ;;
12142   esac
12143
12144   case $lt_cv_dlopen_self_static in
12145   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12146   *) enable_dlopen_self_static=unknown ;;
12147   esac
12148 fi
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166 striplib=
12167 old_striplib=
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12169 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12170 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12171   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12172   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12174 $as_echo "yes" >&6; }
12175 else
12176 # FIXME - insert some real tests, host_os isn't really good enough
12177   case $host_os in
12178   darwin*)
12179     if test -n "$STRIP" ; then
12180       striplib="$STRIP -x"
12181       old_striplib="$STRIP -S"
12182       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12183 $as_echo "yes" >&6; }
12184     else
12185       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; }
12187     fi
12188     ;;
12189   *)
12190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12192     ;;
12193   esac
12194 fi
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207   # Report which library types will actually be built
12208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12209 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12211 $as_echo "$can_build_shared" >&6; }
12212
12213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12214 $as_echo_n "checking whether to build shared libraries... " >&6; }
12215   test "$can_build_shared" = "no" && enable_shared=no
12216
12217   # On AIX, shared libraries and static libraries use the same namespace, and
12218   # are all built from PIC.
12219   case $host_os in
12220   aix3*)
12221     test "$enable_shared" = yes && enable_static=no
12222     if test -n "$RANLIB"; then
12223       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12224       postinstall_cmds='$RANLIB $lib'
12225     fi
12226     ;;
12227
12228   aix[4-9]*)
12229     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12230       test "$enable_shared" = yes && enable_static=no
12231     fi
12232     ;;
12233   esac
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12235 $as_echo "$enable_shared" >&6; }
12236
12237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12238 $as_echo_n "checking whether to build static libraries... " >&6; }
12239   # Make sure either enable_shared or enable_static is yes.
12240   test "$enable_shared" = yes || enable_static=yes
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12242 $as_echo "$enable_static" >&6; }
12243
12244
12245
12246
12247 fi
12248 ac_ext=c
12249 ac_cpp='$CPP $CPPFLAGS'
12250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12253
12254 CC="$lt_save_CC"
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270         ac_config_commands="$ac_config_commands libtool"
12271
12272
12273
12274
12275 # Only expand once:
12276
12277
12278 ac_ext=cpp
12279 ac_cpp='$CXXCPP $CPPFLAGS'
12280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12283 if test -z "$CXX"; then
12284   if test -n "$CCC"; then
12285     CXX=$CCC
12286   else
12287     if test -n "$ac_tool_prefix"; then
12288   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12289   do
12290     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293 $as_echo_n "checking for $ac_word... " >&6; }
12294 if ${ac_cv_prog_CXX+:} false; then :
12295   $as_echo_n "(cached) " >&6
12296 else
12297   if test -n "$CXX"; then
12298   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12299 else
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $PATH
12302 do
12303   IFS=$as_save_IFS
12304   test -z "$as_dir" && as_dir=.
12305     for ac_exec_ext in '' $ac_executable_extensions; do
12306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12309     break 2
12310   fi
12311 done
12312   done
12313 IFS=$as_save_IFS
12314
12315 fi
12316 fi
12317 CXX=$ac_cv_prog_CXX
12318 if test -n "$CXX"; then
12319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12320 $as_echo "$CXX" >&6; }
12321 else
12322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12324 fi
12325
12326
12327     test -n "$CXX" && break
12328   done
12329 fi
12330 if test -z "$CXX"; then
12331   ac_ct_CXX=$CXX
12332   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12333 do
12334   # Extract the first word of "$ac_prog", so it can be a program name with args.
12335 set dummy $ac_prog; ac_word=$2
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12337 $as_echo_n "checking for $ac_word... " >&6; }
12338 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12339   $as_echo_n "(cached) " >&6
12340 else
12341   if test -n "$ac_ct_CXX"; then
12342   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12343 else
12344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12345 for as_dir in $PATH
12346 do
12347   IFS=$as_save_IFS
12348   test -z "$as_dir" && as_dir=.
12349     for ac_exec_ext in '' $ac_executable_extensions; do
12350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12351     ac_cv_prog_ac_ct_CXX="$ac_prog"
12352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353     break 2
12354   fi
12355 done
12356   done
12357 IFS=$as_save_IFS
12358
12359 fi
12360 fi
12361 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12362 if test -n "$ac_ct_CXX"; then
12363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12364 $as_echo "$ac_ct_CXX" >&6; }
12365 else
12366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367 $as_echo "no" >&6; }
12368 fi
12369
12370
12371   test -n "$ac_ct_CXX" && break
12372 done
12373
12374   if test "x$ac_ct_CXX" = x; then
12375     CXX="g++"
12376   else
12377     case $cross_compiling:$ac_tool_warned in
12378 yes:)
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12381 ac_tool_warned=yes ;;
12382 esac
12383     CXX=$ac_ct_CXX
12384   fi
12385 fi
12386
12387   fi
12388 fi
12389 # Provide some information about the compiler.
12390 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12391 set X $ac_compile
12392 ac_compiler=$2
12393 for ac_option in --version -v -V -qversion; do
12394   { { ac_try="$ac_compiler $ac_option >&5"
12395 case "(($ac_try" in
12396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397   *) ac_try_echo=$ac_try;;
12398 esac
12399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12400 $as_echo "$ac_try_echo"; } >&5
12401   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12402   ac_status=$?
12403   if test -s conftest.err; then
12404     sed '10a\
12405 ... rest of stderr output deleted ...
12406          10q' conftest.err >conftest.er1
12407     cat conftest.er1 >&5
12408   fi
12409   rm -f conftest.er1 conftest.err
12410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12411   test $ac_status = 0; }
12412 done
12413
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12415 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12416 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12417   $as_echo_n "(cached) " >&6
12418 else
12419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h.  */
12421
12422 int
12423 main ()
12424 {
12425 #ifndef __GNUC__
12426        choke me
12427 #endif
12428
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 if ac_fn_cxx_try_compile "$LINENO"; then :
12434   ac_compiler_gnu=yes
12435 else
12436   ac_compiler_gnu=no
12437 fi
12438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12440
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12443 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12444 if test $ac_compiler_gnu = yes; then
12445   GXX=yes
12446 else
12447   GXX=
12448 fi
12449 ac_test_CXXFLAGS=${CXXFLAGS+set}
12450 ac_save_CXXFLAGS=$CXXFLAGS
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12452 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12453 if ${ac_cv_prog_cxx_g+:} false; then :
12454   $as_echo_n "(cached) " >&6
12455 else
12456   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12457    ac_cxx_werror_flag=yes
12458    ac_cv_prog_cxx_g=no
12459    CXXFLAGS="-g"
12460    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h.  */
12462
12463 int
12464 main ()
12465 {
12466
12467   ;
12468   return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_cxx_try_compile "$LINENO"; then :
12472   ac_cv_prog_cxx_g=yes
12473 else
12474   CXXFLAGS=""
12475       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h.  */
12477
12478 int
12479 main ()
12480 {
12481
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 if ac_fn_cxx_try_compile "$LINENO"; then :
12487
12488 else
12489   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12490          CXXFLAGS="-g"
12491          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h.  */
12493
12494 int
12495 main ()
12496 {
12497
12498   ;
12499   return 0;
12500 }
12501 _ACEOF
12502 if ac_fn_cxx_try_compile "$LINENO"; then :
12503   ac_cv_prog_cxx_g=yes
12504 fi
12505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506 fi
12507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12508 fi
12509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12511 fi
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12513 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12514 if test "$ac_test_CXXFLAGS" = set; then
12515   CXXFLAGS=$ac_save_CXXFLAGS
12516 elif test $ac_cv_prog_cxx_g = yes; then
12517   if test "$GXX" = yes; then
12518     CXXFLAGS="-g -O2"
12519   else
12520     CXXFLAGS="-g"
12521   fi
12522 else
12523   if test "$GXX" = yes; then
12524     CXXFLAGS="-O2"
12525   else
12526     CXXFLAGS=
12527   fi
12528 fi
12529 ac_ext=c
12530 ac_cpp='$CPP $CPPFLAGS'
12531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12534
12535 depcc="$CXX"  am_compiler_list=
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12538 $as_echo_n "checking dependency style of $depcc... " >&6; }
12539 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12540   $as_echo_n "(cached) " >&6
12541 else
12542   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12543   # We make a subdir and do the tests there.  Otherwise we can end up
12544   # making bogus files that we don't know about and never remove.  For
12545   # instance it was reported that on HP-UX the gcc test will end up
12546   # making a dummy file named 'D' -- because '-MD' means "put the output
12547   # in D".
12548   rm -rf conftest.dir
12549   mkdir conftest.dir
12550   # Copy depcomp to subdir because otherwise we won't find it if we're
12551   # using a relative directory.
12552   cp "$am_depcomp" conftest.dir
12553   cd conftest.dir
12554   # We will build objects and dependencies in a subdirectory because
12555   # it helps to detect inapplicable dependency modes.  For instance
12556   # both Tru64's cc and ICC support -MD to output dependencies as a
12557   # side effect of compilation, but ICC will put the dependencies in
12558   # the current directory while Tru64 will put them in the object
12559   # directory.
12560   mkdir sub
12561
12562   am_cv_CXX_dependencies_compiler_type=none
12563   if test "$am_compiler_list" = ""; then
12564      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12565   fi
12566   am__universal=false
12567   case " $depcc " in #(
12568      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12569      esac
12570
12571   for depmode in $am_compiler_list; do
12572     # Setup a source with many dependencies, because some compilers
12573     # like to wrap large dependency lists on column 80 (with \), and
12574     # we should not choose a depcomp mode which is confused by this.
12575     #
12576     # We need to recreate these files for each test, as the compiler may
12577     # overwrite some of them when testing with obscure command lines.
12578     # This happens at least with the AIX C compiler.
12579     : > sub/conftest.c
12580     for i in 1 2 3 4 5 6; do
12581       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12582       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12583       # Solaris 10 /bin/sh.
12584       echo '/* dummy */' > sub/conftst$i.h
12585     done
12586     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12587
12588     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12589     # mode.  It turns out that the SunPro C++ compiler does not properly
12590     # handle '-M -o', and we need to detect this.  Also, some Intel
12591     # versions had trouble with output in subdirs.
12592     am__obj=sub/conftest.${OBJEXT-o}
12593     am__minus_obj="-o $am__obj"
12594     case $depmode in
12595     gcc)
12596       # This depmode causes a compiler race in universal mode.
12597       test "$am__universal" = false || continue
12598       ;;
12599     nosideeffect)
12600       # After this tag, mechanisms are not by side-effect, so they'll
12601       # only be used when explicitly requested.
12602       if test "x$enable_dependency_tracking" = xyes; then
12603         continue
12604       else
12605         break
12606       fi
12607       ;;
12608     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12609       # This compiler won't grok '-c -o', but also, the minuso test has
12610       # not run yet.  These depmodes are late enough in the game, and
12611       # so weak that their functioning should not be impacted.
12612       am__obj=conftest.${OBJEXT-o}
12613       am__minus_obj=
12614       ;;
12615     none) break ;;
12616     esac
12617     if depmode=$depmode \
12618        source=sub/conftest.c object=$am__obj \
12619        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12620        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12621          >/dev/null 2>conftest.err &&
12622        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12623        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12624        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12625        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12626       # icc doesn't choke on unknown options, it will just issue warnings
12627       # or remarks (even with -Werror).  So we grep stderr for any message
12628       # that says an option was ignored or not supported.
12629       # When given -MP, icc 7.0 and 7.1 complain thusly:
12630       #   icc: Command line warning: ignoring option '-M'; no argument required
12631       # The diagnosis changed in icc 8.0:
12632       #   icc: Command line remark: option '-MP' not supported
12633       if (grep 'ignoring option' conftest.err ||
12634           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12635         am_cv_CXX_dependencies_compiler_type=$depmode
12636         break
12637       fi
12638     fi
12639   done
12640
12641   cd ..
12642   rm -rf conftest.dir
12643 else
12644   am_cv_CXX_dependencies_compiler_type=none
12645 fi
12646
12647 fi
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12649 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12650 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12651
12652  if
12653   test "x$enable_dependency_tracking" != xno \
12654   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12655   am__fastdepCXX_TRUE=
12656   am__fastdepCXX_FALSE='#'
12657 else
12658   am__fastdepCXX_TRUE='#'
12659   am__fastdepCXX_FALSE=
12660 fi
12661
12662
12663
12664
12665
12666 func_stripname_cnf ()
12667 {
12668   case ${2} in
12669   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12670   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12671   esac
12672 } # func_stripname_cnf
12673
12674       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12675     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12676     (test "X$CXX" != "Xg++"))) ; then
12677   ac_ext=cpp
12678 ac_cpp='$CXXCPP $CPPFLAGS'
12679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12683 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12684 if test -z "$CXXCPP"; then
12685   if ${ac_cv_prog_CXXCPP+:} false; then :
12686   $as_echo_n "(cached) " >&6
12687 else
12688       # Double quotes because CXXCPP needs to be expanded
12689     for CXXCPP in "$CXX -E" "/lib/cpp"
12690     do
12691       ac_preproc_ok=false
12692 for ac_cxx_preproc_warn_flag in '' yes
12693 do
12694   # Use a header file that comes with gcc, so configuring glibc
12695   # with a fresh cross-compiler works.
12696   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12697   # <limits.h> exists even on freestanding compilers.
12698   # On the NeXT, cc -E runs the code through the compiler's parser,
12699   # not just through cpp. "Syntax error" is here to catch this case.
12700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h.  */
12702 #ifdef __STDC__
12703 # include <limits.h>
12704 #else
12705 # include <assert.h>
12706 #endif
12707                      Syntax error
12708 _ACEOF
12709 if ac_fn_cxx_try_cpp "$LINENO"; then :
12710
12711 else
12712   # Broken: fails on valid input.
12713 continue
12714 fi
12715 rm -f conftest.err conftest.i conftest.$ac_ext
12716
12717   # OK, works on sane cases.  Now check whether nonexistent headers
12718   # can be detected and how.
12719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h.  */
12721 #include <ac_nonexistent.h>
12722 _ACEOF
12723 if ac_fn_cxx_try_cpp "$LINENO"; then :
12724   # Broken: success on invalid input.
12725 continue
12726 else
12727   # Passes both tests.
12728 ac_preproc_ok=:
12729 break
12730 fi
12731 rm -f conftest.err conftest.i conftest.$ac_ext
12732
12733 done
12734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12735 rm -f conftest.i conftest.err conftest.$ac_ext
12736 if $ac_preproc_ok; then :
12737   break
12738 fi
12739
12740     done
12741     ac_cv_prog_CXXCPP=$CXXCPP
12742
12743 fi
12744   CXXCPP=$ac_cv_prog_CXXCPP
12745 else
12746   ac_cv_prog_CXXCPP=$CXXCPP
12747 fi
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12749 $as_echo "$CXXCPP" >&6; }
12750 ac_preproc_ok=false
12751 for ac_cxx_preproc_warn_flag in '' yes
12752 do
12753   # Use a header file that comes with gcc, so configuring glibc
12754   # with a fresh cross-compiler works.
12755   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12756   # <limits.h> exists even on freestanding compilers.
12757   # On the NeXT, cc -E runs the code through the compiler's parser,
12758   # not just through cpp. "Syntax error" is here to catch this case.
12759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h.  */
12761 #ifdef __STDC__
12762 # include <limits.h>
12763 #else
12764 # include <assert.h>
12765 #endif
12766                      Syntax error
12767 _ACEOF
12768 if ac_fn_cxx_try_cpp "$LINENO"; then :
12769
12770 else
12771   # Broken: fails on valid input.
12772 continue
12773 fi
12774 rm -f conftest.err conftest.i conftest.$ac_ext
12775
12776   # OK, works on sane cases.  Now check whether nonexistent headers
12777   # can be detected and how.
12778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h.  */
12780 #include <ac_nonexistent.h>
12781 _ACEOF
12782 if ac_fn_cxx_try_cpp "$LINENO"; then :
12783   # Broken: success on invalid input.
12784 continue
12785 else
12786   # Passes both tests.
12787 ac_preproc_ok=:
12788 break
12789 fi
12790 rm -f conftest.err conftest.i conftest.$ac_ext
12791
12792 done
12793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12794 rm -f conftest.i conftest.err conftest.$ac_ext
12795 if $ac_preproc_ok; then :
12796
12797 else
12798   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12800 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12801 See \`config.log' for more details" "$LINENO" 5; }
12802 fi
12803
12804 ac_ext=c
12805 ac_cpp='$CPP $CPPFLAGS'
12806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12809
12810 else
12811   _lt_caught_CXX_error=yes
12812 fi
12813
12814 ac_ext=cpp
12815 ac_cpp='$CXXCPP $CPPFLAGS'
12816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12819
12820 archive_cmds_need_lc_CXX=no
12821 allow_undefined_flag_CXX=
12822 always_export_symbols_CXX=no
12823 archive_expsym_cmds_CXX=
12824 compiler_needs_object_CXX=no
12825 export_dynamic_flag_spec_CXX=
12826 hardcode_direct_CXX=no
12827 hardcode_direct_absolute_CXX=no
12828 hardcode_libdir_flag_spec_CXX=
12829 hardcode_libdir_separator_CXX=
12830 hardcode_minus_L_CXX=no
12831 hardcode_shlibpath_var_CXX=unsupported
12832 hardcode_automatic_CXX=no
12833 inherit_rpath_CXX=no
12834 module_cmds_CXX=
12835 module_expsym_cmds_CXX=
12836 link_all_deplibs_CXX=unknown
12837 old_archive_cmds_CXX=$old_archive_cmds
12838 reload_flag_CXX=$reload_flag
12839 reload_cmds_CXX=$reload_cmds
12840 no_undefined_flag_CXX=
12841 whole_archive_flag_spec_CXX=
12842 enable_shared_with_static_runtimes_CXX=no
12843
12844 # Source file extension for C++ test sources.
12845 ac_ext=cpp
12846
12847 # Object file extension for compiled C++ test sources.
12848 objext=o
12849 objext_CXX=$objext
12850
12851 # No sense in running all these tests if we already determined that
12852 # the CXX compiler isn't working.  Some variables (like enable_shared)
12853 # are currently assumed to apply to all compilers on this platform,
12854 # and will be corrupted by setting them based on a non-working compiler.
12855 if test "$_lt_caught_CXX_error" != yes; then
12856   # Code to be used in simple compile tests
12857   lt_simple_compile_test_code="int some_variable = 0;"
12858
12859   # Code to be used in simple link tests
12860   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12861
12862   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12863
12864
12865
12866
12867
12868
12869 # If no C compiler was specified, use CC.
12870 LTCC=${LTCC-"$CC"}
12871
12872 # If no C compiler flags were specified, use CFLAGS.
12873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12874
12875 # Allow CC to be a program name with arguments.
12876 compiler=$CC
12877
12878
12879   # save warnings/boilerplate of simple test code
12880   ac_outfile=conftest.$ac_objext
12881 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12883 _lt_compiler_boilerplate=`cat conftest.err`
12884 $RM conftest*
12885
12886   ac_outfile=conftest.$ac_objext
12887 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12889 _lt_linker_boilerplate=`cat conftest.err`
12890 $RM -r conftest*
12891
12892
12893   # Allow CC to be a program name with arguments.
12894   lt_save_CC=$CC
12895   lt_save_CFLAGS=$CFLAGS
12896   lt_save_LD=$LD
12897   lt_save_GCC=$GCC
12898   GCC=$GXX
12899   lt_save_with_gnu_ld=$with_gnu_ld
12900   lt_save_path_LD=$lt_cv_path_LD
12901   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12902     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12903   else
12904     $as_unset lt_cv_prog_gnu_ld
12905   fi
12906   if test -n "${lt_cv_path_LDCXX+set}"; then
12907     lt_cv_path_LD=$lt_cv_path_LDCXX
12908   else
12909     $as_unset lt_cv_path_LD
12910   fi
12911   test -z "${LDCXX+set}" || LD=$LDCXX
12912   CC=${CXX-"c++"}
12913   CFLAGS=$CXXFLAGS
12914   compiler=$CC
12915   compiler_CXX=$CC
12916   for cc_temp in $compiler""; do
12917   case $cc_temp in
12918     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12919     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12920     \-*) ;;
12921     *) break;;
12922   esac
12923 done
12924 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12925
12926
12927   if test -n "$compiler"; then
12928     # We don't want -fno-exception when compiling C++ code, so set the
12929     # no_builtin_flag separately
12930     if test "$GXX" = yes; then
12931       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12932     else
12933       lt_prog_compiler_no_builtin_flag_CXX=
12934     fi
12935
12936     if test "$GXX" = yes; then
12937       # Set up default GNU C++ configuration
12938
12939
12940
12941 # Check whether --with-gnu-ld was given.
12942 if test "${with_gnu_ld+set}" = set; then :
12943   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12944 else
12945   with_gnu_ld=no
12946 fi
12947
12948 ac_prog=ld
12949 if test "$GCC" = yes; then
12950   # Check if gcc -print-prog-name=ld gives a path.
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12952 $as_echo_n "checking for ld used by $CC... " >&6; }
12953   case $host in
12954   *-*-mingw*)
12955     # gcc leaves a trailing carriage return which upsets mingw
12956     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12957   *)
12958     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12959   esac
12960   case $ac_prog in
12961     # Accept absolute paths.
12962     [\\/]* | ?:[\\/]*)
12963       re_direlt='/[^/][^/]*/\.\./'
12964       # Canonicalize the pathname of ld
12965       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12966       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12967         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12968       done
12969       test -z "$LD" && LD="$ac_prog"
12970       ;;
12971   "")
12972     # If it fails, then pretend we aren't using GCC.
12973     ac_prog=ld
12974     ;;
12975   *)
12976     # If it is relative, then search for the first ld in PATH.
12977     with_gnu_ld=unknown
12978     ;;
12979   esac
12980 elif test "$with_gnu_ld" = yes; then
12981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12982 $as_echo_n "checking for GNU ld... " >&6; }
12983 else
12984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12985 $as_echo_n "checking for non-GNU ld... " >&6; }
12986 fi
12987 if ${lt_cv_path_LD+:} false; then :
12988   $as_echo_n "(cached) " >&6
12989 else
12990   if test -z "$LD"; then
12991   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12992   for ac_dir in $PATH; do
12993     IFS="$lt_save_ifs"
12994     test -z "$ac_dir" && ac_dir=.
12995     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12996       lt_cv_path_LD="$ac_dir/$ac_prog"
12997       # Check to see if the program is GNU ld.  I'd rather use --version,
12998       # but apparently some variants of GNU ld only accept -v.
12999       # Break only if it was the GNU/non-GNU ld that we prefer.
13000       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13001       *GNU* | *'with BFD'*)
13002         test "$with_gnu_ld" != no && break
13003         ;;
13004       *)
13005         test "$with_gnu_ld" != yes && break
13006         ;;
13007       esac
13008     fi
13009   done
13010   IFS="$lt_save_ifs"
13011 else
13012   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13013 fi
13014 fi
13015
13016 LD="$lt_cv_path_LD"
13017 if test -n "$LD"; then
13018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13019 $as_echo "$LD" >&6; }
13020 else
13021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022 $as_echo "no" >&6; }
13023 fi
13024 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13026 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13027 if ${lt_cv_prog_gnu_ld+:} false; then :
13028   $as_echo_n "(cached) " >&6
13029 else
13030   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13031 case `$LD -v 2>&1 </dev/null` in
13032 *GNU* | *'with BFD'*)
13033   lt_cv_prog_gnu_ld=yes
13034   ;;
13035 *)
13036   lt_cv_prog_gnu_ld=no
13037   ;;
13038 esac
13039 fi
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13041 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13042 with_gnu_ld=$lt_cv_prog_gnu_ld
13043
13044
13045
13046
13047
13048
13049
13050       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13051       # archiving commands below assume that GNU ld is being used.
13052       if test "$with_gnu_ld" = yes; then
13053         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13054         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'
13055
13056         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13057         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13058
13059         # If archive_cmds runs LD, not CC, wlarc should be empty
13060         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13061         #     investigate it a little bit more. (MM)
13062         wlarc='${wl}'
13063
13064         # ancient GNU ld didn't support --whole-archive et. al.
13065         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13066           $GREP 'no-whole-archive' > /dev/null; then
13067           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13068         else
13069           whole_archive_flag_spec_CXX=
13070         fi
13071       else
13072         with_gnu_ld=no
13073         wlarc=
13074
13075         # A generic and very simple default shared library creation
13076         # command for GNU C++ for the case where it uses the native
13077         # linker, instead of GNU ld.  If possible, this setting should
13078         # overridden to take advantage of the native linker features on
13079         # the platform it is being used on.
13080         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13081       fi
13082
13083       # Commands to make compiler produce verbose output that lists
13084       # what "hidden" libraries, object files and flags are used when
13085       # linking a shared library.
13086       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13087
13088     else
13089       GXX=no
13090       with_gnu_ld=no
13091       wlarc=
13092     fi
13093
13094     # PORTME: fill in a description of your system's C++ link characteristics
13095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13097     ld_shlibs_CXX=yes
13098     case $host_os in
13099       aix3*)
13100         # FIXME: insert proper C++ library support
13101         ld_shlibs_CXX=no
13102         ;;
13103       aix[4-9]*)
13104         if test "$host_cpu" = ia64; then
13105           # On IA64, the linker does run time linking by default, so we don't
13106           # have to do anything special.
13107           aix_use_runtimelinking=no
13108           exp_sym_flag='-Bexport'
13109           no_entry_flag=""
13110         else
13111           aix_use_runtimelinking=no
13112
13113           # Test if we are trying to use run time linking or normal
13114           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13115           # need to do runtime linking.
13116           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13117             for ld_flag in $LDFLAGS; do
13118               case $ld_flag in
13119               *-brtl*)
13120                 aix_use_runtimelinking=yes
13121                 break
13122                 ;;
13123               esac
13124             done
13125             ;;
13126           esac
13127
13128           exp_sym_flag='-bexport'
13129           no_entry_flag='-bnoentry'
13130         fi
13131
13132         # When large executables or shared objects are built, AIX ld can
13133         # have problems creating the table of contents.  If linking a library
13134         # or program results in "error TOC overflow" add -mminimal-toc to
13135         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13136         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13137
13138         archive_cmds_CXX=''
13139         hardcode_direct_CXX=yes
13140         hardcode_direct_absolute_CXX=yes
13141         hardcode_libdir_separator_CXX=':'
13142         link_all_deplibs_CXX=yes
13143         file_list_spec_CXX='${wl}-f,'
13144
13145         if test "$GXX" = yes; then
13146           case $host_os in aix4.[012]|aix4.[012].*)
13147           # We only want to do this on AIX 4.2 and lower, the check
13148           # below for broken collect2 doesn't work under 4.3+
13149           collect2name=`${CC} -print-prog-name=collect2`
13150           if test -f "$collect2name" &&
13151              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13152           then
13153             # We have reworked collect2
13154             :
13155           else
13156             # We have old collect2
13157             hardcode_direct_CXX=unsupported
13158             # It fails to find uninstalled libraries when the uninstalled
13159             # path is not listed in the libpath.  Setting hardcode_minus_L
13160             # to unsupported forces relinking
13161             hardcode_minus_L_CXX=yes
13162             hardcode_libdir_flag_spec_CXX='-L$libdir'
13163             hardcode_libdir_separator_CXX=
13164           fi
13165           esac
13166           shared_flag='-shared'
13167           if test "$aix_use_runtimelinking" = yes; then
13168             shared_flag="$shared_flag "'${wl}-G'
13169           fi
13170         else
13171           # not using gcc
13172           if test "$host_cpu" = ia64; then
13173           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13174           # chokes on -Wl,-G. The following line is correct:
13175           shared_flag='-G'
13176           else
13177             if test "$aix_use_runtimelinking" = yes; then
13178               shared_flag='${wl}-G'
13179             else
13180               shared_flag='${wl}-bM:SRE'
13181             fi
13182           fi
13183         fi
13184
13185         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13186         # It seems that -bexpall does not export symbols beginning with
13187         # underscore (_), so it is better to generate a list of symbols to
13188         # export.
13189         always_export_symbols_CXX=yes
13190         if test "$aix_use_runtimelinking" = yes; then
13191           # Warning - without using the other runtime loading flags (-brtl),
13192           # -berok will link without error, but may produce a broken library.
13193           allow_undefined_flag_CXX='-berok'
13194           # Determine the default libpath from the value encoded in an empty
13195           # executable.
13196           if test "${lt_cv_aix_libpath+set}" = set; then
13197   aix_libpath=$lt_cv_aix_libpath
13198 else
13199   if ${lt_cv_aix_libpath__CXX+:} false; then :
13200   $as_echo_n "(cached) " >&6
13201 else
13202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h.  */
13204
13205 int
13206 main ()
13207 {
13208
13209   ;
13210   return 0;
13211 }
13212 _ACEOF
13213 if ac_fn_cxx_try_link "$LINENO"; then :
13214
13215   lt_aix_libpath_sed='
13216       /Import File Strings/,/^$/ {
13217           /^0/ {
13218               s/^0  *\([^ ]*\) *$/\1/
13219               p
13220           }
13221       }'
13222   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13223   # Check for a 64-bit object if we didn't find anything.
13224   if test -z "$lt_cv_aix_libpath__CXX"; then
13225     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13226   fi
13227 fi
13228 rm -f core conftest.err conftest.$ac_objext \
13229     conftest$ac_exeext conftest.$ac_ext
13230   if test -z "$lt_cv_aix_libpath__CXX"; then
13231     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13232   fi
13233
13234 fi
13235
13236   aix_libpath=$lt_cv_aix_libpath__CXX
13237 fi
13238
13239           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13240
13241           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"
13242         else
13243           if test "$host_cpu" = ia64; then
13244             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13245             allow_undefined_flag_CXX="-z nodefs"
13246             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"
13247           else
13248             # Determine the default libpath from the value encoded in an
13249             # empty executable.
13250             if test "${lt_cv_aix_libpath+set}" = set; then
13251   aix_libpath=$lt_cv_aix_libpath
13252 else
13253   if ${lt_cv_aix_libpath__CXX+:} false; then :
13254   $as_echo_n "(cached) " >&6
13255 else
13256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h.  */
13258
13259 int
13260 main ()
13261 {
13262
13263   ;
13264   return 0;
13265 }
13266 _ACEOF
13267 if ac_fn_cxx_try_link "$LINENO"; then :
13268
13269   lt_aix_libpath_sed='
13270       /Import File Strings/,/^$/ {
13271           /^0/ {
13272               s/^0  *\([^ ]*\) *$/\1/
13273               p
13274           }
13275       }'
13276   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13277   # Check for a 64-bit object if we didn't find anything.
13278   if test -z "$lt_cv_aix_libpath__CXX"; then
13279     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13280   fi
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext \
13283     conftest$ac_exeext conftest.$ac_ext
13284   if test -z "$lt_cv_aix_libpath__CXX"; then
13285     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13286   fi
13287
13288 fi
13289
13290   aix_libpath=$lt_cv_aix_libpath__CXX
13291 fi
13292
13293             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13294             # Warning - without using the other run time loading flags,
13295             # -berok will link without error, but may produce a broken library.
13296             no_undefined_flag_CXX=' ${wl}-bernotok'
13297             allow_undefined_flag_CXX=' ${wl}-berok'
13298             if test "$with_gnu_ld" = yes; then
13299               # We only use this code for GNU lds that support --whole-archive.
13300               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13301             else
13302               # Exported symbols can be pulled into shared objects from archives
13303               whole_archive_flag_spec_CXX='$convenience'
13304             fi
13305             archive_cmds_need_lc_CXX=yes
13306             # This is similar to how AIX traditionally builds its shared
13307             # libraries.
13308             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'
13309           fi
13310         fi
13311         ;;
13312
13313       beos*)
13314         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13315           allow_undefined_flag_CXX=unsupported
13316           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13317           # support --undefined.  This deserves some investigation.  FIXME
13318           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13319         else
13320           ld_shlibs_CXX=no
13321         fi
13322         ;;
13323
13324       chorus*)
13325         case $cc_basename in
13326           *)
13327           # FIXME: insert proper C++ library support
13328           ld_shlibs_CXX=no
13329           ;;
13330         esac
13331         ;;
13332
13333       cygwin* | mingw* | pw32* | cegcc*)
13334         case $GXX,$cc_basename in
13335         ,cl* | no,cl*)
13336           # Native MSVC
13337           # hardcode_libdir_flag_spec is actually meaningless, as there is
13338           # no search path for DLLs.
13339           hardcode_libdir_flag_spec_CXX=' '
13340           allow_undefined_flag_CXX=unsupported
13341           always_export_symbols_CXX=yes
13342           file_list_spec_CXX='@'
13343           # Tell ltmain to make .lib files, not .a files.
13344           libext=lib
13345           # Tell ltmain to make .dll files, not .so files.
13346           shrext_cmds=".dll"
13347           # FIXME: Setting linknames here is a bad hack.
13348           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13349           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13350               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13351             else
13352               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13353             fi~
13354             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13355             linknames='
13356           # The linker will not automatically build a static lib if we build a DLL.
13357           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13358           enable_shared_with_static_runtimes_CXX=yes
13359           # Don't use ranlib
13360           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13361           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13362             lt_tool_outputfile="@TOOL_OUTPUT@"~
13363             case $lt_outputfile in
13364               *.exe|*.EXE) ;;
13365               *)
13366                 lt_outputfile="$lt_outputfile.exe"
13367                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13368                 ;;
13369             esac~
13370             func_to_tool_file "$lt_outputfile"~
13371             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13372               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13373               $RM "$lt_outputfile.manifest";
13374             fi'
13375           ;;
13376         *)
13377           # g++
13378           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13379           # as there is no search path for DLLs.
13380           hardcode_libdir_flag_spec_CXX='-L$libdir'
13381           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13382           allow_undefined_flag_CXX=unsupported
13383           always_export_symbols_CXX=no
13384           enable_shared_with_static_runtimes_CXX=yes
13385
13386           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13387             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'
13388             # If the export-symbols file already is a .def file (1st line
13389             # is EXPORTS), use it as is; otherwise, prepend...
13390             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13391               cp $export_symbols $output_objdir/$soname.def;
13392             else
13393               echo EXPORTS > $output_objdir/$soname.def;
13394               cat $export_symbols >> $output_objdir/$soname.def;
13395             fi~
13396             $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'
13397           else
13398             ld_shlibs_CXX=no
13399           fi
13400           ;;
13401         esac
13402         ;;
13403       darwin* | rhapsody*)
13404
13405
13406   archive_cmds_need_lc_CXX=no
13407   hardcode_direct_CXX=no
13408   hardcode_automatic_CXX=yes
13409   hardcode_shlibpath_var_CXX=unsupported
13410   if test "$lt_cv_ld_force_load" = "yes"; then
13411     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\"`'
13412
13413   else
13414     whole_archive_flag_spec_CXX=''
13415   fi
13416   link_all_deplibs_CXX=yes
13417   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13418   case $cc_basename in
13419      ifort*) _lt_dar_can_shared=yes ;;
13420      *) _lt_dar_can_shared=$GCC ;;
13421   esac
13422   if test "$_lt_dar_can_shared" = "yes"; then
13423     output_verbose_link_cmd=func_echo_all
13424     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}"
13425     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13426     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}"
13427     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}"
13428        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13429       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}"
13430       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}"
13431     fi
13432
13433   else
13434   ld_shlibs_CXX=no
13435   fi
13436
13437         ;;
13438
13439       dgux*)
13440         case $cc_basename in
13441           ec++*)
13442             # FIXME: insert proper C++ library support
13443             ld_shlibs_CXX=no
13444             ;;
13445           ghcx*)
13446             # Green Hills C++ Compiler
13447             # FIXME: insert proper C++ library support
13448             ld_shlibs_CXX=no
13449             ;;
13450           *)
13451             # FIXME: insert proper C++ library support
13452             ld_shlibs_CXX=no
13453             ;;
13454         esac
13455         ;;
13456
13457       freebsd2.*)
13458         # C++ shared libraries reported to be fairly broken before
13459         # switch to ELF
13460         ld_shlibs_CXX=no
13461         ;;
13462
13463       freebsd-elf*)
13464         archive_cmds_need_lc_CXX=no
13465         ;;
13466
13467       freebsd* | dragonfly*)
13468         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13469         # conventions
13470         ld_shlibs_CXX=yes
13471         ;;
13472
13473       gnu*)
13474         ;;
13475
13476       haiku*)
13477         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13478         link_all_deplibs_CXX=yes
13479         ;;
13480
13481       hpux9*)
13482         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13483         hardcode_libdir_separator_CXX=:
13484         export_dynamic_flag_spec_CXX='${wl}-E'
13485         hardcode_direct_CXX=yes
13486         hardcode_minus_L_CXX=yes # Not in the search PATH,
13487                                              # but as the default
13488                                              # location of the library.
13489
13490         case $cc_basename in
13491           CC*)
13492             # FIXME: insert proper C++ library support
13493             ld_shlibs_CXX=no
13494             ;;
13495           aCC*)
13496             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'
13497             # Commands to make compiler produce verbose output that lists
13498             # what "hidden" libraries, object files and flags are used when
13499             # linking a shared library.
13500             #
13501             # There doesn't appear to be a way to prevent this compiler from
13502             # explicitly linking system object files so we need to strip them
13503             # from the output so that they don't get included in the library
13504             # dependencies.
13505             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"'
13506             ;;
13507           *)
13508             if test "$GXX" = yes; then
13509               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'
13510             else
13511               # FIXME: insert proper C++ library support
13512               ld_shlibs_CXX=no
13513             fi
13514             ;;
13515         esac
13516         ;;
13517
13518       hpux10*|hpux11*)
13519         if test $with_gnu_ld = no; then
13520           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13521           hardcode_libdir_separator_CXX=:
13522
13523           case $host_cpu in
13524             hppa*64*|ia64*)
13525               ;;
13526             *)
13527               export_dynamic_flag_spec_CXX='${wl}-E'
13528               ;;
13529           esac
13530         fi
13531         case $host_cpu in
13532           hppa*64*|ia64*)
13533             hardcode_direct_CXX=no
13534             hardcode_shlibpath_var_CXX=no
13535             ;;
13536           *)
13537             hardcode_direct_CXX=yes
13538             hardcode_direct_absolute_CXX=yes
13539             hardcode_minus_L_CXX=yes # Not in the search PATH,
13540                                                  # but as the default
13541                                                  # location of the library.
13542             ;;
13543         esac
13544
13545         case $cc_basename in
13546           CC*)
13547             # FIXME: insert proper C++ library support
13548             ld_shlibs_CXX=no
13549             ;;
13550           aCC*)
13551             case $host_cpu in
13552               hppa*64*)
13553                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13554                 ;;
13555               ia64*)
13556                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13557                 ;;
13558               *)
13559                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13560                 ;;
13561             esac
13562             # Commands to make compiler produce verbose output that lists
13563             # what "hidden" libraries, object files and flags are used when
13564             # linking a shared library.
13565             #
13566             # There doesn't appear to be a way to prevent this compiler from
13567             # explicitly linking system object files so we need to strip them
13568             # from the output so that they don't get included in the library
13569             # dependencies.
13570             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"'
13571             ;;
13572           *)
13573             if test "$GXX" = yes; then
13574               if test $with_gnu_ld = no; then
13575                 case $host_cpu in
13576                   hppa*64*)
13577                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13578                     ;;
13579                   ia64*)
13580                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13581                     ;;
13582                   *)
13583                     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'
13584                     ;;
13585                 esac
13586               fi
13587             else
13588               # FIXME: insert proper C++ library support
13589               ld_shlibs_CXX=no
13590             fi
13591             ;;
13592         esac
13593         ;;
13594
13595       interix[3-9]*)
13596         hardcode_direct_CXX=no
13597         hardcode_shlibpath_var_CXX=no
13598         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13599         export_dynamic_flag_spec_CXX='${wl}-E'
13600         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13601         # Instead, shared libraries are loaded at an image base (0x10000000 by
13602         # default) and relocated if they conflict, which is a slow very memory
13603         # consuming and fragmenting process.  To avoid this, we pick a random,
13604         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13605         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13606         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'
13607         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'
13608         ;;
13609       irix5* | irix6*)
13610         case $cc_basename in
13611           CC*)
13612             # SGI C++
13613             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'
13614
13615             # Archives containing C++ object files must be created using
13616             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13617             # necessary to make sure instantiated templates are included
13618             # in the archive.
13619             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13620             ;;
13621           *)
13622             if test "$GXX" = yes; then
13623               if test "$with_gnu_ld" = no; then
13624                 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'
13625               else
13626                 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'
13627               fi
13628             fi
13629             link_all_deplibs_CXX=yes
13630             ;;
13631         esac
13632         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13633         hardcode_libdir_separator_CXX=:
13634         inherit_rpath_CXX=yes
13635         ;;
13636
13637       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13638         case $cc_basename in
13639           KCC*)
13640             # Kuck and Associates, Inc. (KAI) C++ Compiler
13641
13642             # KCC will only create a shared library if the output file
13643             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13644             # to its proper name (with version) after linking.
13645             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'
13646             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'
13647             # Commands to make compiler produce verbose output that lists
13648             # what "hidden" libraries, object files and flags are used when
13649             # linking a shared library.
13650             #
13651             # There doesn't appear to be a way to prevent this compiler from
13652             # explicitly linking system object files so we need to strip them
13653             # from the output so that they don't get included in the library
13654             # dependencies.
13655             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"'
13656
13657             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13658             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13659
13660             # Archives containing C++ object files must be created using
13661             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13662             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13663             ;;
13664           icpc* | ecpc* )
13665             # Intel C++
13666             with_gnu_ld=yes
13667             # version 8.0 and above of icpc choke on multiply defined symbols
13668             # if we add $predep_objects and $postdep_objects, however 7.1 and
13669             # earlier do not add the objects themselves.
13670             case `$CC -V 2>&1` in
13671               *"Version 7."*)
13672                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13673                 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'
13674                 ;;
13675               *)  # Version 8.0 or newer
13676                 tmp_idyn=
13677                 case $host_cpu in
13678                   ia64*) tmp_idyn=' -i_dynamic';;
13679                 esac
13680                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13681                 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'
13682                 ;;
13683             esac
13684             archive_cmds_need_lc_CXX=no
13685             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13686             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13687             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13688             ;;
13689           pgCC* | pgcpp*)
13690             # Portland Group C++ compiler
13691             case `$CC -V` in
13692             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13693               prelink_cmds_CXX='tpldir=Template.dir~
13694                 rm -rf $tpldir~
13695                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13696                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13697               old_archive_cmds_CXX='tpldir=Template.dir~
13698                 rm -rf $tpldir~
13699                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13700                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13701                 $RANLIB $oldlib'
13702               archive_cmds_CXX='tpldir=Template.dir~
13703                 rm -rf $tpldir~
13704                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13705                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13706               archive_expsym_cmds_CXX='tpldir=Template.dir~
13707                 rm -rf $tpldir~
13708                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13709                 $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'
13710               ;;
13711             *) # Version 6 and above use weak symbols
13712               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13713               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'
13714               ;;
13715             esac
13716
13717             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13718             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13719             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'
13720             ;;
13721           cxx*)
13722             # Compaq C++
13723             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13724             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'
13725
13726             runpath_var=LD_RUN_PATH
13727             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13728             hardcode_libdir_separator_CXX=:
13729
13730             # Commands to make compiler produce verbose output that lists
13731             # what "hidden" libraries, object files and flags are used when
13732             # linking a shared library.
13733             #
13734             # There doesn't appear to be a way to prevent this compiler from
13735             # explicitly linking system object files so we need to strip them
13736             # from the output so that they don't get included in the library
13737             # dependencies.
13738             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'
13739             ;;
13740           xl* | mpixl* | bgxl*)
13741             # IBM XL 8.0 on PPC, with GNU ld
13742             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13743             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13744             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13745             if test "x$supports_anon_versioning" = xyes; then
13746               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13747                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13748                 echo "local: *; };" >> $output_objdir/$libname.ver~
13749                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13750             fi
13751             ;;
13752           *)
13753             case `$CC -V 2>&1 | sed 5q` in
13754             *Sun\ C*)
13755               # Sun C++ 5.9
13756               no_undefined_flag_CXX=' -zdefs'
13757               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13758               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'
13759               hardcode_libdir_flag_spec_CXX='-R$libdir'
13760               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'
13761               compiler_needs_object_CXX=yes
13762
13763               # Not sure whether something based on
13764               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13765               # would be better.
13766               output_verbose_link_cmd='func_echo_all'
13767
13768               # Archives containing C++ object files must be created using
13769               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13770               # necessary to make sure instantiated templates are included
13771               # in the archive.
13772               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13773               ;;
13774             esac
13775             ;;
13776         esac
13777         ;;
13778
13779       lynxos*)
13780         # FIXME: insert proper C++ library support
13781         ld_shlibs_CXX=no
13782         ;;
13783
13784       m88k*)
13785         # FIXME: insert proper C++ library support
13786         ld_shlibs_CXX=no
13787         ;;
13788
13789       mvs*)
13790         case $cc_basename in
13791           cxx*)
13792             # FIXME: insert proper C++ library support
13793             ld_shlibs_CXX=no
13794             ;;
13795           *)
13796             # FIXME: insert proper C++ library support
13797             ld_shlibs_CXX=no
13798             ;;
13799         esac
13800         ;;
13801
13802       netbsd*)
13803         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13804           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13805           wlarc=
13806           hardcode_libdir_flag_spec_CXX='-R$libdir'
13807           hardcode_direct_CXX=yes
13808           hardcode_shlibpath_var_CXX=no
13809         fi
13810         # Workaround some broken pre-1.5 toolchains
13811         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13812         ;;
13813
13814       *nto* | *qnx*)
13815         ld_shlibs_CXX=yes
13816         ;;
13817
13818       openbsd2*)
13819         # C++ shared libraries are fairly broken
13820         ld_shlibs_CXX=no
13821         ;;
13822
13823       openbsd*)
13824         if test -f /usr/libexec/ld.so; then
13825           hardcode_direct_CXX=yes
13826           hardcode_shlibpath_var_CXX=no
13827           hardcode_direct_absolute_CXX=yes
13828           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13829           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13830           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13831             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13832             export_dynamic_flag_spec_CXX='${wl}-E'
13833             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13834           fi
13835           output_verbose_link_cmd=func_echo_all
13836         else
13837           ld_shlibs_CXX=no
13838         fi
13839         ;;
13840
13841       osf3* | osf4* | osf5*)
13842         case $cc_basename in
13843           KCC*)
13844             # Kuck and Associates, Inc. (KAI) C++ Compiler
13845
13846             # KCC will only create a shared library if the output file
13847             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13848             # to its proper name (with version) after linking.
13849             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'
13850
13851             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13852             hardcode_libdir_separator_CXX=:
13853
13854             # Archives containing C++ object files must be created using
13855             # the KAI C++ compiler.
13856             case $host in
13857               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13858               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13859             esac
13860             ;;
13861           RCC*)
13862             # Rational C++ 2.4.1
13863             # FIXME: insert proper C++ library support
13864             ld_shlibs_CXX=no
13865             ;;
13866           cxx*)
13867             case $host in
13868               osf3*)
13869                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13870                 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'
13871                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13872                 ;;
13873               *)
13874                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13875                 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'
13876                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13877                   echo "-hidden">> $lib.exp~
13878                   $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~
13879                   $RM $lib.exp'
13880                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13881                 ;;
13882             esac
13883
13884             hardcode_libdir_separator_CXX=:
13885
13886             # Commands to make compiler produce verbose output that lists
13887             # what "hidden" libraries, object files and flags are used when
13888             # linking a shared library.
13889             #
13890             # There doesn't appear to be a way to prevent this compiler from
13891             # explicitly linking system object files so we need to strip them
13892             # from the output so that they don't get included in the library
13893             # dependencies.
13894             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"'
13895             ;;
13896           *)
13897             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13898               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13899               case $host in
13900                 osf3*)
13901                   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'
13902                   ;;
13903                 *)
13904                   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'
13905                   ;;
13906               esac
13907
13908               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13909               hardcode_libdir_separator_CXX=:
13910
13911               # Commands to make compiler produce verbose output that lists
13912               # what "hidden" libraries, object files and flags are used when
13913               # linking a shared library.
13914               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13915
13916             else
13917               # FIXME: insert proper C++ library support
13918               ld_shlibs_CXX=no
13919             fi
13920             ;;
13921         esac
13922         ;;
13923
13924       psos*)
13925         # FIXME: insert proper C++ library support
13926         ld_shlibs_CXX=no
13927         ;;
13928
13929       sunos4*)
13930         case $cc_basename in
13931           CC*)
13932             # Sun C++ 4.x
13933             # FIXME: insert proper C++ library support
13934             ld_shlibs_CXX=no
13935             ;;
13936           lcc*)
13937             # Lucid
13938             # FIXME: insert proper C++ library support
13939             ld_shlibs_CXX=no
13940             ;;
13941           *)
13942             # FIXME: insert proper C++ library support
13943             ld_shlibs_CXX=no
13944             ;;
13945         esac
13946         ;;
13947
13948       solaris*)
13949         case $cc_basename in
13950           CC* | sunCC*)
13951             # Sun C++ 4.2, 5.x and Centerline C++
13952             archive_cmds_need_lc_CXX=yes
13953             no_undefined_flag_CXX=' -zdefs'
13954             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13955             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13956               $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'
13957
13958             hardcode_libdir_flag_spec_CXX='-R$libdir'
13959             hardcode_shlibpath_var_CXX=no
13960             case $host_os in
13961               solaris2.[0-5] | solaris2.[0-5].*) ;;
13962               *)
13963                 # The compiler driver will combine and reorder linker options,
13964                 # but understands `-z linker_flag'.
13965                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13966                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13967                 ;;
13968             esac
13969             link_all_deplibs_CXX=yes
13970
13971             output_verbose_link_cmd='func_echo_all'
13972
13973             # Archives containing C++ object files must be created using
13974             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13975             # necessary to make sure instantiated templates are included
13976             # in the archive.
13977             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13978             ;;
13979           gcx*)
13980             # Green Hills C++ Compiler
13981             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13982
13983             # The C++ compiler must be used to create the archive.
13984             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13985             ;;
13986           *)
13987             # GNU C++ compiler with Solaris linker
13988             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13989               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13990               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13991                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13992                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13993                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13994
13995                 # Commands to make compiler produce verbose output that lists
13996                 # what "hidden" libraries, object files and flags are used when
13997                 # linking a shared library.
13998                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13999               else
14000                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14001                 # platform.
14002                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14003                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14004                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14005
14006                 # Commands to make compiler produce verbose output that lists
14007                 # what "hidden" libraries, object files and flags are used when
14008                 # linking a shared library.
14009                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14010               fi
14011
14012               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14013               case $host_os in
14014                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14015                 *)
14016                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14017                   ;;
14018               esac
14019             fi
14020             ;;
14021         esac
14022         ;;
14023
14024     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14025       no_undefined_flag_CXX='${wl}-z,text'
14026       archive_cmds_need_lc_CXX=no
14027       hardcode_shlibpath_var_CXX=no
14028       runpath_var='LD_RUN_PATH'
14029
14030       case $cc_basename in
14031         CC*)
14032           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14033           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14034           ;;
14035         *)
14036           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14037           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14038           ;;
14039       esac
14040       ;;
14041
14042       sysv5* | sco3.2v5* | sco5v6*)
14043         # Note: We can NOT use -z defs as we might desire, because we do not
14044         # link with -lc, and that would cause any symbols used from libc to
14045         # always be unresolved, which means just about no library would
14046         # ever link correctly.  If we're not using GNU ld we use -z text
14047         # though, which does catch some bad symbols but isn't as heavy-handed
14048         # as -z defs.
14049         no_undefined_flag_CXX='${wl}-z,text'
14050         allow_undefined_flag_CXX='${wl}-z,nodefs'
14051         archive_cmds_need_lc_CXX=no
14052         hardcode_shlibpath_var_CXX=no
14053         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14054         hardcode_libdir_separator_CXX=':'
14055         link_all_deplibs_CXX=yes
14056         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14057         runpath_var='LD_RUN_PATH'
14058
14059         case $cc_basename in
14060           CC*)
14061             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14062             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14063             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14064               '"$old_archive_cmds_CXX"
14065             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14066               '"$reload_cmds_CXX"
14067             ;;
14068           *)
14069             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14070             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14071             ;;
14072         esac
14073       ;;
14074
14075       tandem*)
14076         case $cc_basename in
14077           NCC*)
14078             # NonStop-UX NCC 3.20
14079             # FIXME: insert proper C++ library support
14080             ld_shlibs_CXX=no
14081             ;;
14082           *)
14083             # FIXME: insert proper C++ library support
14084             ld_shlibs_CXX=no
14085             ;;
14086         esac
14087         ;;
14088
14089       vxworks*)
14090         # FIXME: insert proper C++ library support
14091         ld_shlibs_CXX=no
14092         ;;
14093
14094       *)
14095         # FIXME: insert proper C++ library support
14096         ld_shlibs_CXX=no
14097         ;;
14098     esac
14099
14100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14101 $as_echo "$ld_shlibs_CXX" >&6; }
14102     test "$ld_shlibs_CXX" = no && can_build_shared=no
14103
14104     GCC_CXX="$GXX"
14105     LD_CXX="$LD"
14106
14107     ## CAVEAT EMPTOR:
14108     ## There is no encapsulation within the following macros, do not change
14109     ## the running order or otherwise move them around unless you know exactly
14110     ## what you are doing...
14111     # Dependencies to place before and after the object being linked:
14112 predep_objects_CXX=
14113 postdep_objects_CXX=
14114 predeps_CXX=
14115 postdeps_CXX=
14116 compiler_lib_search_path_CXX=
14117
14118 cat > conftest.$ac_ext <<_LT_EOF
14119 class Foo
14120 {
14121 public:
14122   Foo (void) { a = 0; }
14123 private:
14124   int a;
14125 };
14126 _LT_EOF
14127
14128
14129 _lt_libdeps_save_CFLAGS=$CFLAGS
14130 case "$CC $CFLAGS " in #(
14131 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14132 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14133 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14134 esac
14135
14136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14137   (eval $ac_compile) 2>&5
14138   ac_status=$?
14139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14140   test $ac_status = 0; }; then
14141   # Parse the compiler output and extract the necessary
14142   # objects, libraries and library flags.
14143
14144   # Sentinel used to keep track of whether or not we are before
14145   # the conftest object file.
14146   pre_test_object_deps_done=no
14147
14148   for p in `eval "$output_verbose_link_cmd"`; do
14149     case ${prev}${p} in
14150
14151     -L* | -R* | -l*)
14152        # Some compilers place space between "-{L,R}" and the path.
14153        # Remove the space.
14154        if test $p = "-L" ||
14155           test $p = "-R"; then
14156          prev=$p
14157          continue
14158        fi
14159
14160        # Expand the sysroot to ease extracting the directories later.
14161        if test -z "$prev"; then
14162          case $p in
14163          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14164          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14165          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14166          esac
14167        fi
14168        case $p in
14169        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14170        esac
14171        if test "$pre_test_object_deps_done" = no; then
14172          case ${prev} in
14173          -L | -R)
14174            # Internal compiler library paths should come after those
14175            # provided the user.  The postdeps already come after the
14176            # user supplied libs so there is no need to process them.
14177            if test -z "$compiler_lib_search_path_CXX"; then
14178              compiler_lib_search_path_CXX="${prev}${p}"
14179            else
14180              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14181            fi
14182            ;;
14183          # The "-l" case would never come before the object being
14184          # linked, so don't bother handling this case.
14185          esac
14186        else
14187          if test -z "$postdeps_CXX"; then
14188            postdeps_CXX="${prev}${p}"
14189          else
14190            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14191          fi
14192        fi
14193        prev=
14194        ;;
14195
14196     *.lto.$objext) ;; # Ignore GCC LTO objects
14197     *.$objext)
14198        # This assumes that the test object file only shows up
14199        # once in the compiler output.
14200        if test "$p" = "conftest.$objext"; then
14201          pre_test_object_deps_done=yes
14202          continue
14203        fi
14204
14205        if test "$pre_test_object_deps_done" = no; then
14206          if test -z "$predep_objects_CXX"; then
14207            predep_objects_CXX="$p"
14208          else
14209            predep_objects_CXX="$predep_objects_CXX $p"
14210          fi
14211        else
14212          if test -z "$postdep_objects_CXX"; then
14213            postdep_objects_CXX="$p"
14214          else
14215            postdep_objects_CXX="$postdep_objects_CXX $p"
14216          fi
14217        fi
14218        ;;
14219
14220     *) ;; # Ignore the rest.
14221
14222     esac
14223   done
14224
14225   # Clean up.
14226   rm -f a.out a.exe
14227 else
14228   echo "libtool.m4: error: problem compiling CXX test program"
14229 fi
14230
14231 $RM -f confest.$objext
14232 CFLAGS=$_lt_libdeps_save_CFLAGS
14233
14234 # PORTME: override above test on systems where it is broken
14235 case $host_os in
14236 interix[3-9]*)
14237   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14238   # hack all around it, let's just trust "g++" to DTRT.
14239   predep_objects_CXX=
14240   postdep_objects_CXX=
14241   postdeps_CXX=
14242   ;;
14243
14244 linux*)
14245   case `$CC -V 2>&1 | sed 5q` in
14246   *Sun\ C*)
14247     # Sun C++ 5.9
14248
14249     # The more standards-conforming stlport4 library is
14250     # incompatible with the Cstd library. Avoid specifying
14251     # it if it's in CXXFLAGS. Ignore libCrun as
14252     # -library=stlport4 depends on it.
14253     case " $CXX $CXXFLAGS " in
14254     *" -library=stlport4 "*)
14255       solaris_use_stlport4=yes
14256       ;;
14257     esac
14258
14259     if test "$solaris_use_stlport4" != yes; then
14260       postdeps_CXX='-library=Cstd -library=Crun'
14261     fi
14262     ;;
14263   esac
14264   ;;
14265
14266 solaris*)
14267   case $cc_basename in
14268   CC* | sunCC*)
14269     # The more standards-conforming stlport4 library is
14270     # incompatible with the Cstd library. Avoid specifying
14271     # it if it's in CXXFLAGS. Ignore libCrun as
14272     # -library=stlport4 depends on it.
14273     case " $CXX $CXXFLAGS " in
14274     *" -library=stlport4 "*)
14275       solaris_use_stlport4=yes
14276       ;;
14277     esac
14278
14279     # Adding this requires a known-good setup of shared libraries for
14280     # Sun compiler versions before 5.6, else PIC objects from an old
14281     # archive will be linked into the output, leading to subtle bugs.
14282     if test "$solaris_use_stlport4" != yes; then
14283       postdeps_CXX='-library=Cstd -library=Crun'
14284     fi
14285     ;;
14286   esac
14287   ;;
14288 esac
14289
14290
14291 case " $postdeps_CXX " in
14292 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14293 esac
14294  compiler_lib_search_dirs_CXX=
14295 if test -n "${compiler_lib_search_path_CXX}"; then
14296  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14297 fi
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329     lt_prog_compiler_wl_CXX=
14330 lt_prog_compiler_pic_CXX=
14331 lt_prog_compiler_static_CXX=
14332
14333
14334   # C++ specific cases for pic, static, wl, etc.
14335   if test "$GXX" = yes; then
14336     lt_prog_compiler_wl_CXX='-Wl,'
14337     lt_prog_compiler_static_CXX='-static'
14338
14339     case $host_os in
14340     aix*)
14341       # All AIX code is PIC.
14342       if test "$host_cpu" = ia64; then
14343         # AIX 5 now supports IA64 processor
14344         lt_prog_compiler_static_CXX='-Bstatic'
14345       fi
14346       ;;
14347
14348     amigaos*)
14349       case $host_cpu in
14350       powerpc)
14351             # see comment about AmigaOS4 .so support
14352             lt_prog_compiler_pic_CXX='-fPIC'
14353         ;;
14354       m68k)
14355             # FIXME: we need at least 68020 code to build shared libraries, but
14356             # adding the `-m68020' flag to GCC prevents building anything better,
14357             # like `-m68040'.
14358             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14359         ;;
14360       esac
14361       ;;
14362
14363     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14364       # PIC is the default for these OSes.
14365       ;;
14366     mingw* | cygwin* | os2* | pw32* | cegcc*)
14367       # This hack is so that the source file can tell whether it is being
14368       # built for inclusion in a dll (and should export symbols for example).
14369       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14370       # (--disable-auto-import) libraries
14371       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14372       ;;
14373     darwin* | rhapsody*)
14374       # PIC is the default on this platform
14375       # Common symbols not allowed in MH_DYLIB files
14376       lt_prog_compiler_pic_CXX='-fno-common'
14377       ;;
14378     *djgpp*)
14379       # DJGPP does not support shared libraries at all
14380       lt_prog_compiler_pic_CXX=
14381       ;;
14382     haiku*)
14383       # PIC is the default for Haiku.
14384       # The "-static" flag exists, but is broken.
14385       lt_prog_compiler_static_CXX=
14386       ;;
14387     interix[3-9]*)
14388       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14389       # Instead, we relocate shared libraries at runtime.
14390       ;;
14391     sysv4*MP*)
14392       if test -d /usr/nec; then
14393         lt_prog_compiler_pic_CXX=-Kconform_pic
14394       fi
14395       ;;
14396     hpux*)
14397       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14398       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14399       # sets the default TLS model and affects inlining.
14400       case $host_cpu in
14401       hppa*64*)
14402         ;;
14403       *)
14404         lt_prog_compiler_pic_CXX='-fPIC'
14405         ;;
14406       esac
14407       ;;
14408     *qnx* | *nto*)
14409       # QNX uses GNU C++, but need to define -shared option too, otherwise
14410       # it will coredump.
14411       lt_prog_compiler_pic_CXX='-fPIC -shared'
14412       ;;
14413     *)
14414       lt_prog_compiler_pic_CXX='-fPIC'
14415       ;;
14416     esac
14417   else
14418     case $host_os in
14419       aix[4-9]*)
14420         # All AIX code is PIC.
14421         if test "$host_cpu" = ia64; then
14422           # AIX 5 now supports IA64 processor
14423           lt_prog_compiler_static_CXX='-Bstatic'
14424         else
14425           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14426         fi
14427         ;;
14428       chorus*)
14429         case $cc_basename in
14430         cxch68*)
14431           # Green Hills C++ Compiler
14432           # _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"
14433           ;;
14434         esac
14435         ;;
14436       mingw* | cygwin* | os2* | pw32* | cegcc*)
14437         # This hack is so that the source file can tell whether it is being
14438         # built for inclusion in a dll (and should export symbols for example).
14439         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14440         ;;
14441       dgux*)
14442         case $cc_basename in
14443           ec++*)
14444             lt_prog_compiler_pic_CXX='-KPIC'
14445             ;;
14446           ghcx*)
14447             # Green Hills C++ Compiler
14448             lt_prog_compiler_pic_CXX='-pic'
14449             ;;
14450           *)
14451             ;;
14452         esac
14453         ;;
14454       freebsd* | dragonfly*)
14455         # FreeBSD uses GNU C++
14456         ;;
14457       hpux9* | hpux10* | hpux11*)
14458         case $cc_basename in
14459           CC*)
14460             lt_prog_compiler_wl_CXX='-Wl,'
14461             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14462             if test "$host_cpu" != ia64; then
14463               lt_prog_compiler_pic_CXX='+Z'
14464             fi
14465             ;;
14466           aCC*)
14467             lt_prog_compiler_wl_CXX='-Wl,'
14468             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14469             case $host_cpu in
14470             hppa*64*|ia64*)
14471               # +Z the default
14472               ;;
14473             *)
14474               lt_prog_compiler_pic_CXX='+Z'
14475               ;;
14476             esac
14477             ;;
14478           *)
14479             ;;
14480         esac
14481         ;;
14482       interix*)
14483         # This is c89, which is MS Visual C++ (no shared libs)
14484         # Anyone wants to do a port?
14485         ;;
14486       irix5* | irix6* | nonstopux*)
14487         case $cc_basename in
14488           CC*)
14489             lt_prog_compiler_wl_CXX='-Wl,'
14490             lt_prog_compiler_static_CXX='-non_shared'
14491             # CC pic flag -KPIC is the default.
14492             ;;
14493           *)
14494             ;;
14495         esac
14496         ;;
14497       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14498         case $cc_basename in
14499           KCC*)
14500             # KAI C++ Compiler
14501             lt_prog_compiler_wl_CXX='--backend -Wl,'
14502             lt_prog_compiler_pic_CXX='-fPIC'
14503             ;;
14504           ecpc* )
14505             # old Intel C++ for x86_64 which still supported -KPIC.
14506             lt_prog_compiler_wl_CXX='-Wl,'
14507             lt_prog_compiler_pic_CXX='-KPIC'
14508             lt_prog_compiler_static_CXX='-static'
14509             ;;
14510           icpc* )
14511             # Intel C++, used to be incompatible with GCC.
14512             # ICC 10 doesn't accept -KPIC any more.
14513             lt_prog_compiler_wl_CXX='-Wl,'
14514             lt_prog_compiler_pic_CXX='-fPIC'
14515             lt_prog_compiler_static_CXX='-static'
14516             ;;
14517           pgCC* | pgcpp*)
14518             # Portland Group C++ compiler
14519             lt_prog_compiler_wl_CXX='-Wl,'
14520             lt_prog_compiler_pic_CXX='-fpic'
14521             lt_prog_compiler_static_CXX='-Bstatic'
14522             ;;
14523           cxx*)
14524             # Compaq C++
14525             # Make sure the PIC flag is empty.  It appears that all Alpha
14526             # Linux and Compaq Tru64 Unix objects are PIC.
14527             lt_prog_compiler_pic_CXX=
14528             lt_prog_compiler_static_CXX='-non_shared'
14529             ;;
14530           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14531             # IBM XL 8.0, 9.0 on PPC and BlueGene
14532             lt_prog_compiler_wl_CXX='-Wl,'
14533             lt_prog_compiler_pic_CXX='-qpic'
14534             lt_prog_compiler_static_CXX='-qstaticlink'
14535             ;;
14536           *)
14537             case `$CC -V 2>&1 | sed 5q` in
14538             *Sun\ C*)
14539               # Sun C++ 5.9
14540               lt_prog_compiler_pic_CXX='-KPIC'
14541               lt_prog_compiler_static_CXX='-Bstatic'
14542               lt_prog_compiler_wl_CXX='-Qoption ld '
14543               ;;
14544             esac
14545             ;;
14546         esac
14547         ;;
14548       lynxos*)
14549         ;;
14550       m88k*)
14551         ;;
14552       mvs*)
14553         case $cc_basename in
14554           cxx*)
14555             lt_prog_compiler_pic_CXX='-W c,exportall'
14556             ;;
14557           *)
14558             ;;
14559         esac
14560         ;;
14561       netbsd*)
14562         ;;
14563       *qnx* | *nto*)
14564         # QNX uses GNU C++, but need to define -shared option too, otherwise
14565         # it will coredump.
14566         lt_prog_compiler_pic_CXX='-fPIC -shared'
14567         ;;
14568       osf3* | osf4* | osf5*)
14569         case $cc_basename in
14570           KCC*)
14571             lt_prog_compiler_wl_CXX='--backend -Wl,'
14572             ;;
14573           RCC*)
14574             # Rational C++ 2.4.1
14575             lt_prog_compiler_pic_CXX='-pic'
14576             ;;
14577           cxx*)
14578             # Digital/Compaq C++
14579             lt_prog_compiler_wl_CXX='-Wl,'
14580             # Make sure the PIC flag is empty.  It appears that all Alpha
14581             # Linux and Compaq Tru64 Unix objects are PIC.
14582             lt_prog_compiler_pic_CXX=
14583             lt_prog_compiler_static_CXX='-non_shared'
14584             ;;
14585           *)
14586             ;;
14587         esac
14588         ;;
14589       psos*)
14590         ;;
14591       solaris*)
14592         case $cc_basename in
14593           CC* | sunCC*)
14594             # Sun C++ 4.2, 5.x and Centerline C++
14595             lt_prog_compiler_pic_CXX='-KPIC'
14596             lt_prog_compiler_static_CXX='-Bstatic'
14597             lt_prog_compiler_wl_CXX='-Qoption ld '
14598             ;;
14599           gcx*)
14600             # Green Hills C++ Compiler
14601             lt_prog_compiler_pic_CXX='-PIC'
14602             ;;
14603           *)
14604             ;;
14605         esac
14606         ;;
14607       sunos4*)
14608         case $cc_basename in
14609           CC*)
14610             # Sun C++ 4.x
14611             lt_prog_compiler_pic_CXX='-pic'
14612             lt_prog_compiler_static_CXX='-Bstatic'
14613             ;;
14614           lcc*)
14615             # Lucid
14616             lt_prog_compiler_pic_CXX='-pic'
14617             ;;
14618           *)
14619             ;;
14620         esac
14621         ;;
14622       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14623         case $cc_basename in
14624           CC*)
14625             lt_prog_compiler_wl_CXX='-Wl,'
14626             lt_prog_compiler_pic_CXX='-KPIC'
14627             lt_prog_compiler_static_CXX='-Bstatic'
14628             ;;
14629         esac
14630         ;;
14631       tandem*)
14632         case $cc_basename in
14633           NCC*)
14634             # NonStop-UX NCC 3.20
14635             lt_prog_compiler_pic_CXX='-KPIC'
14636             ;;
14637           *)
14638             ;;
14639         esac
14640         ;;
14641       vxworks*)
14642         ;;
14643       *)
14644         lt_prog_compiler_can_build_shared_CXX=no
14645         ;;
14646     esac
14647   fi
14648
14649 case $host_os in
14650   # For platforms which do not support PIC, -DPIC is meaningless:
14651   *djgpp*)
14652     lt_prog_compiler_pic_CXX=
14653     ;;
14654   *)
14655     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14656     ;;
14657 esac
14658
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14660 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14661 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14662   $as_echo_n "(cached) " >&6
14663 else
14664   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14665 fi
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14667 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14668 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14669
14670 #
14671 # Check to make sure the PIC flag actually works.
14672 #
14673 if test -n "$lt_prog_compiler_pic_CXX"; then
14674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14675 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14676 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14677   $as_echo_n "(cached) " >&6
14678 else
14679   lt_cv_prog_compiler_pic_works_CXX=no
14680    ac_outfile=conftest.$ac_objext
14681    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14682    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14683    # Insert the option either (1) after the last *FLAGS variable, or
14684    # (2) before a word containing "conftest.", or (3) at the end.
14685    # Note that $ac_compile itself does not contain backslashes and begins
14686    # with a dollar sign (not a hyphen), so the echo should work correctly.
14687    # The option is referenced via a variable to avoid confusing sed.
14688    lt_compile=`echo "$ac_compile" | $SED \
14689    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14691    -e 's:$: $lt_compiler_flag:'`
14692    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14693    (eval "$lt_compile" 2>conftest.err)
14694    ac_status=$?
14695    cat conftest.err >&5
14696    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697    if (exit $ac_status) && test -s "$ac_outfile"; then
14698      # The compiler can only warn and ignore the option if not recognized
14699      # So say no if there are warnings other than the usual output.
14700      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14701      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14702      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14703        lt_cv_prog_compiler_pic_works_CXX=yes
14704      fi
14705    fi
14706    $RM conftest*
14707
14708 fi
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14710 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14711
14712 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14713     case $lt_prog_compiler_pic_CXX in
14714      "" | " "*) ;;
14715      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14716      esac
14717 else
14718     lt_prog_compiler_pic_CXX=
14719      lt_prog_compiler_can_build_shared_CXX=no
14720 fi
14721
14722 fi
14723
14724
14725
14726
14727
14728 #
14729 # Check to make sure the static flag actually works.
14730 #
14731 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14733 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14734 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14735   $as_echo_n "(cached) " >&6
14736 else
14737   lt_cv_prog_compiler_static_works_CXX=no
14738    save_LDFLAGS="$LDFLAGS"
14739    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14740    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14741    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14742      # The linker can only warn and ignore the option if not recognized
14743      # So say no if there are warnings
14744      if test -s conftest.err; then
14745        # Append any errors to the config.log.
14746        cat conftest.err 1>&5
14747        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14748        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14749        if diff conftest.exp conftest.er2 >/dev/null; then
14750          lt_cv_prog_compiler_static_works_CXX=yes
14751        fi
14752      else
14753        lt_cv_prog_compiler_static_works_CXX=yes
14754      fi
14755    fi
14756    $RM -r conftest*
14757    LDFLAGS="$save_LDFLAGS"
14758
14759 fi
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14761 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14762
14763 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14764     :
14765 else
14766     lt_prog_compiler_static_CXX=
14767 fi
14768
14769
14770
14771
14772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14773 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14774 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14775   $as_echo_n "(cached) " >&6
14776 else
14777   lt_cv_prog_compiler_c_o_CXX=no
14778    $RM -r conftest 2>/dev/null
14779    mkdir conftest
14780    cd conftest
14781    mkdir out
14782    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14783
14784    lt_compiler_flag="-o out/conftest2.$ac_objext"
14785    # Insert the option either (1) after the last *FLAGS variable, or
14786    # (2) before a word containing "conftest.", or (3) at the end.
14787    # Note that $ac_compile itself does not contain backslashes and begins
14788    # with a dollar sign (not a hyphen), so the echo should work correctly.
14789    lt_compile=`echo "$ac_compile" | $SED \
14790    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14791    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14792    -e 's:$: $lt_compiler_flag:'`
14793    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14794    (eval "$lt_compile" 2>out/conftest.err)
14795    ac_status=$?
14796    cat out/conftest.err >&5
14797    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14799    then
14800      # The compiler can only warn and ignore the option if not recognized
14801      # So say no if there are warnings
14802      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14803      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14804      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14805        lt_cv_prog_compiler_c_o_CXX=yes
14806      fi
14807    fi
14808    chmod u+w . 2>&5
14809    $RM conftest*
14810    # SGI C++ compiler will create directory out/ii_files/ for
14811    # template instantiation
14812    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14813    $RM out/* && rmdir out
14814    cd ..
14815    $RM -r conftest
14816    $RM conftest*
14817
14818 fi
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14820 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14821
14822
14823
14824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14825 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14826 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14827   $as_echo_n "(cached) " >&6
14828 else
14829   lt_cv_prog_compiler_c_o_CXX=no
14830    $RM -r conftest 2>/dev/null
14831    mkdir conftest
14832    cd conftest
14833    mkdir out
14834    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14835
14836    lt_compiler_flag="-o out/conftest2.$ac_objext"
14837    # Insert the option either (1) after the last *FLAGS variable, or
14838    # (2) before a word containing "conftest.", or (3) at the end.
14839    # Note that $ac_compile itself does not contain backslashes and begins
14840    # with a dollar sign (not a hyphen), so the echo should work correctly.
14841    lt_compile=`echo "$ac_compile" | $SED \
14842    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14843    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14844    -e 's:$: $lt_compiler_flag:'`
14845    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14846    (eval "$lt_compile" 2>out/conftest.err)
14847    ac_status=$?
14848    cat out/conftest.err >&5
14849    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14851    then
14852      # The compiler can only warn and ignore the option if not recognized
14853      # So say no if there are warnings
14854      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14855      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14856      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14857        lt_cv_prog_compiler_c_o_CXX=yes
14858      fi
14859    fi
14860    chmod u+w . 2>&5
14861    $RM conftest*
14862    # SGI C++ compiler will create directory out/ii_files/ for
14863    # template instantiation
14864    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14865    $RM out/* && rmdir out
14866    cd ..
14867    $RM -r conftest
14868    $RM conftest*
14869
14870 fi
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14872 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14873
14874
14875
14876
14877 hard_links="nottested"
14878 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14879   # do not overwrite the value of need_locks provided by the user
14880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14881 $as_echo_n "checking if we can lock with hard links... " >&6; }
14882   hard_links=yes
14883   $RM conftest*
14884   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14885   touch conftest.a
14886   ln conftest.a conftest.b 2>&5 || hard_links=no
14887   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14889 $as_echo "$hard_links" >&6; }
14890   if test "$hard_links" = no; then
14891     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14892 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14893     need_locks=warn
14894   fi
14895 else
14896   need_locks=no
14897 fi
14898
14899
14900
14901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14902 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14903
14904   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14905   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14906   case $host_os in
14907   aix[4-9]*)
14908     # If we're using GNU nm, then we don't want the "-C" option.
14909     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14910     # Also, AIX nm treats weak defined symbols like other global defined
14911     # symbols, whereas GNU nm marks them as "W".
14912     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14913       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'
14914     else
14915       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'
14916     fi
14917     ;;
14918   pw32*)
14919     export_symbols_cmds_CXX="$ltdll_cmds"
14920     ;;
14921   cygwin* | mingw* | cegcc*)
14922     case $cc_basename in
14923     cl*)
14924       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14925       ;;
14926     *)
14927       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'
14928       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14929       ;;
14930     esac
14931     ;;
14932   *)
14933     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14934     ;;
14935   esac
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14938 $as_echo "$ld_shlibs_CXX" >&6; }
14939 test "$ld_shlibs_CXX" = no && can_build_shared=no
14940
14941 with_gnu_ld_CXX=$with_gnu_ld
14942
14943
14944
14945
14946
14947
14948 #
14949 # Do we need to explicitly link libc?
14950 #
14951 case "x$archive_cmds_need_lc_CXX" in
14952 x|xyes)
14953   # Assume -lc should be added
14954   archive_cmds_need_lc_CXX=yes
14955
14956   if test "$enable_shared" = yes && test "$GCC" = yes; then
14957     case $archive_cmds_CXX in
14958     *'~'*)
14959       # FIXME: we may have to deal with multi-command sequences.
14960       ;;
14961     '$CC '*)
14962       # Test whether the compiler implicitly links with -lc since on some
14963       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14964       # to ld, don't add -lc before -lgcc.
14965       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14966 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14967 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14968   $as_echo_n "(cached) " >&6
14969 else
14970   $RM conftest*
14971         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14972
14973         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14974   (eval $ac_compile) 2>&5
14975   ac_status=$?
14976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14977   test $ac_status = 0; } 2>conftest.err; then
14978           soname=conftest
14979           lib=conftest
14980           libobjs=conftest.$ac_objext
14981           deplibs=
14982           wl=$lt_prog_compiler_wl_CXX
14983           pic_flag=$lt_prog_compiler_pic_CXX
14984           compiler_flags=-v
14985           linker_flags=-v
14986           verstring=
14987           output_objdir=.
14988           libname=conftest
14989           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14990           allow_undefined_flag_CXX=
14991           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14992   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14993   ac_status=$?
14994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14995   test $ac_status = 0; }
14996           then
14997             lt_cv_archive_cmds_need_lc_CXX=no
14998           else
14999             lt_cv_archive_cmds_need_lc_CXX=yes
15000           fi
15001           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15002         else
15003           cat conftest.err 1>&5
15004         fi
15005         $RM conftest*
15006
15007 fi
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15009 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15010       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15011       ;;
15012     esac
15013   fi
15014   ;;
15015 esac
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15079 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15080
15081 library_names_spec=
15082 libname_spec='lib$name'
15083 soname_spec=
15084 shrext_cmds=".so"
15085 postinstall_cmds=
15086 postuninstall_cmds=
15087 finish_cmds=
15088 finish_eval=
15089 shlibpath_var=
15090 shlibpath_overrides_runpath=unknown
15091 version_type=none
15092 dynamic_linker="$host_os ld.so"
15093 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15094 need_lib_prefix=unknown
15095 hardcode_into_libs=no
15096
15097 # when you set need_version to no, make sure it does not cause -set_version
15098 # flags to be left without arguments
15099 need_version=unknown
15100
15101 case $host_os in
15102 aix3*)
15103   version_type=linux # correct to gnu/linux during the next big refactor
15104   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15105   shlibpath_var=LIBPATH
15106
15107   # AIX 3 has no versioning support, so we append a major version to the name.
15108   soname_spec='${libname}${release}${shared_ext}$major'
15109   ;;
15110
15111 aix[4-9]*)
15112   version_type=linux # correct to gnu/linux during the next big refactor
15113   need_lib_prefix=no
15114   need_version=no
15115   hardcode_into_libs=yes
15116   if test "$host_cpu" = ia64; then
15117     # AIX 5 supports IA64
15118     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15119     shlibpath_var=LD_LIBRARY_PATH
15120   else
15121     # With GCC up to 2.95.x, collect2 would create an import file
15122     # for dependence libraries.  The import file would start with
15123     # the line `#! .'.  This would cause the generated library to
15124     # depend on `.', always an invalid library.  This was fixed in
15125     # development snapshots of GCC prior to 3.0.
15126     case $host_os in
15127       aix4 | aix4.[01] | aix4.[01].*)
15128       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15129            echo ' yes '
15130            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15131         :
15132       else
15133         can_build_shared=no
15134       fi
15135       ;;
15136     esac
15137     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15138     # soname into executable. Probably we can add versioning support to
15139     # collect2, so additional links can be useful in future.
15140     if test "$aix_use_runtimelinking" = yes; then
15141       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15142       # instead of lib<name>.a to let people know that these are not
15143       # typical AIX shared libraries.
15144       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15145     else
15146       # We preserve .a as extension for shared libraries through AIX4.2
15147       # and later when we are not doing run time linking.
15148       library_names_spec='${libname}${release}.a $libname.a'
15149       soname_spec='${libname}${release}${shared_ext}$major'
15150     fi
15151     shlibpath_var=LIBPATH
15152   fi
15153   ;;
15154
15155 amigaos*)
15156   case $host_cpu in
15157   powerpc)
15158     # Since July 2007 AmigaOS4 officially supports .so libraries.
15159     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161     ;;
15162   m68k)
15163     library_names_spec='$libname.ixlibrary $libname.a'
15164     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15165     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'
15166     ;;
15167   esac
15168   ;;
15169
15170 beos*)
15171   library_names_spec='${libname}${shared_ext}'
15172   dynamic_linker="$host_os ld.so"
15173   shlibpath_var=LIBRARY_PATH
15174   ;;
15175
15176 bsdi[45]*)
15177   version_type=linux # correct to gnu/linux during the next big refactor
15178   need_version=no
15179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180   soname_spec='${libname}${release}${shared_ext}$major'
15181   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15182   shlibpath_var=LD_LIBRARY_PATH
15183   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15184   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15185   # the default ld.so.conf also contains /usr/contrib/lib and
15186   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15187   # libtool to hard-code these into programs
15188   ;;
15189
15190 cygwin* | mingw* | pw32* | cegcc*)
15191   version_type=windows
15192   shrext_cmds=".dll"
15193   need_version=no
15194   need_lib_prefix=no
15195
15196   case $GCC,$cc_basename in
15197   yes,*)
15198     # gcc
15199     library_names_spec='$libname.dll.a'
15200     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15201     postinstall_cmds='base_file=`basename \${file}`~
15202       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15203       dldir=$destdir/`dirname \$dlpath`~
15204       test -d \$dldir || mkdir -p \$dldir~
15205       $install_prog $dir/$dlname \$dldir/$dlname~
15206       chmod a+x \$dldir/$dlname~
15207       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15208         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15209       fi'
15210     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15211       dlpath=$dir/\$dldll~
15212        $RM \$dlpath'
15213     shlibpath_overrides_runpath=yes
15214
15215     case $host_os in
15216     cygwin*)
15217       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15218       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15219
15220       ;;
15221     mingw* | cegcc*)
15222       # MinGW DLLs use traditional 'lib' prefix
15223       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15224       ;;
15225     pw32*)
15226       # pw32 DLLs use 'pw' prefix rather than 'lib'
15227       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15228       ;;
15229     esac
15230     dynamic_linker='Win32 ld.exe'
15231     ;;
15232
15233   *,cl*)
15234     # Native MSVC
15235     libname_spec='$name'
15236     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15237     library_names_spec='${libname}.dll.lib'
15238
15239     case $build_os in
15240     mingw*)
15241       sys_lib_search_path_spec=
15242       lt_save_ifs=$IFS
15243       IFS=';'
15244       for lt_path in $LIB
15245       do
15246         IFS=$lt_save_ifs
15247         # Let DOS variable expansion print the short 8.3 style file name.
15248         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15249         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15250       done
15251       IFS=$lt_save_ifs
15252       # Convert to MSYS style.
15253       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15254       ;;
15255     cygwin*)
15256       # Convert to unix form, then to dos form, then back to unix form
15257       # but this time dos style (no spaces!) so that the unix form looks
15258       # like /cygdrive/c/PROGRA~1:/cygdr...
15259       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15260       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15261       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15262       ;;
15263     *)
15264       sys_lib_search_path_spec="$LIB"
15265       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15266         # It is most probably a Windows format PATH.
15267         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15268       else
15269         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15270       fi
15271       # FIXME: find the short name or the path components, as spaces are
15272       # common. (e.g. "Program Files" -> "PROGRA~1")
15273       ;;
15274     esac
15275
15276     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15277     postinstall_cmds='base_file=`basename \${file}`~
15278       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15279       dldir=$destdir/`dirname \$dlpath`~
15280       test -d \$dldir || mkdir -p \$dldir~
15281       $install_prog $dir/$dlname \$dldir/$dlname'
15282     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15283       dlpath=$dir/\$dldll~
15284        $RM \$dlpath'
15285     shlibpath_overrides_runpath=yes
15286     dynamic_linker='Win32 link.exe'
15287     ;;
15288
15289   *)
15290     # Assume MSVC wrapper
15291     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15292     dynamic_linker='Win32 ld.exe'
15293     ;;
15294   esac
15295   # FIXME: first we should search . and the directory the executable is in
15296   shlibpath_var=PATH
15297   ;;
15298
15299 darwin* | rhapsody*)
15300   dynamic_linker="$host_os dyld"
15301   version_type=darwin
15302   need_lib_prefix=no
15303   need_version=no
15304   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15305   soname_spec='${libname}${release}${major}$shared_ext'
15306   shlibpath_overrides_runpath=yes
15307   shlibpath_var=DYLD_LIBRARY_PATH
15308   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15309
15310   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15311   ;;
15312
15313 dgux*)
15314   version_type=linux # correct to gnu/linux during the next big refactor
15315   need_lib_prefix=no
15316   need_version=no
15317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15318   soname_spec='${libname}${release}${shared_ext}$major'
15319   shlibpath_var=LD_LIBRARY_PATH
15320   ;;
15321
15322 freebsd* | dragonfly*)
15323   # DragonFly does not have aout.  When/if they implement a new
15324   # versioning mechanism, adjust this.
15325   if test -x /usr/bin/objformat; then
15326     objformat=`/usr/bin/objformat`
15327   else
15328     case $host_os in
15329     freebsd[23].*) objformat=aout ;;
15330     *) objformat=elf ;;
15331     esac
15332   fi
15333   version_type=freebsd-$objformat
15334   case $version_type in
15335     freebsd-elf*)
15336       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15337       need_version=no
15338       need_lib_prefix=no
15339       ;;
15340     freebsd-*)
15341       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15342       need_version=yes
15343       ;;
15344   esac
15345   shlibpath_var=LD_LIBRARY_PATH
15346   case $host_os in
15347   freebsd2.*)
15348     shlibpath_overrides_runpath=yes
15349     ;;
15350   freebsd3.[01]* | freebsdelf3.[01]*)
15351     shlibpath_overrides_runpath=yes
15352     hardcode_into_libs=yes
15353     ;;
15354   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15355   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15356     shlibpath_overrides_runpath=no
15357     hardcode_into_libs=yes
15358     ;;
15359   *) # from 4.6 on, and DragonFly
15360     shlibpath_overrides_runpath=yes
15361     hardcode_into_libs=yes
15362     ;;
15363   esac
15364   ;;
15365
15366 gnu*)
15367   version_type=linux # correct to gnu/linux during the next big refactor
15368   need_lib_prefix=no
15369   need_version=no
15370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15371   soname_spec='${libname}${release}${shared_ext}$major'
15372   shlibpath_var=LD_LIBRARY_PATH
15373   shlibpath_overrides_runpath=no
15374   hardcode_into_libs=yes
15375   ;;
15376
15377 haiku*)
15378   version_type=linux # correct to gnu/linux during the next big refactor
15379   need_lib_prefix=no
15380   need_version=no
15381   dynamic_linker="$host_os runtime_loader"
15382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15383   soname_spec='${libname}${release}${shared_ext}$major'
15384   shlibpath_var=LIBRARY_PATH
15385   shlibpath_overrides_runpath=yes
15386   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15387   hardcode_into_libs=yes
15388   ;;
15389
15390 hpux9* | hpux10* | hpux11*)
15391   # Give a soname corresponding to the major version so that dld.sl refuses to
15392   # link against other versions.
15393   version_type=sunos
15394   need_lib_prefix=no
15395   need_version=no
15396   case $host_cpu in
15397   ia64*)
15398     shrext_cmds='.so'
15399     hardcode_into_libs=yes
15400     dynamic_linker="$host_os dld.so"
15401     shlibpath_var=LD_LIBRARY_PATH
15402     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404     soname_spec='${libname}${release}${shared_ext}$major'
15405     if test "X$HPUX_IA64_MODE" = X32; then
15406       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15407     else
15408       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15409     fi
15410     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15411     ;;
15412   hppa*64*)
15413     shrext_cmds='.sl'
15414     hardcode_into_libs=yes
15415     dynamic_linker="$host_os dld.sl"
15416     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15417     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419     soname_spec='${libname}${release}${shared_ext}$major'
15420     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15421     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15422     ;;
15423   *)
15424     shrext_cmds='.sl'
15425     dynamic_linker="$host_os dld.sl"
15426     shlibpath_var=SHLIB_PATH
15427     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429     soname_spec='${libname}${release}${shared_ext}$major'
15430     ;;
15431   esac
15432   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15433   postinstall_cmds='chmod 555 $lib'
15434   # or fails outright, so override atomically:
15435   install_override_mode=555
15436   ;;
15437
15438 interix[3-9]*)
15439   version_type=linux # correct to gnu/linux during the next big refactor
15440   need_lib_prefix=no
15441   need_version=no
15442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15443   soname_spec='${libname}${release}${shared_ext}$major'
15444   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15445   shlibpath_var=LD_LIBRARY_PATH
15446   shlibpath_overrides_runpath=no
15447   hardcode_into_libs=yes
15448   ;;
15449
15450 irix5* | irix6* | nonstopux*)
15451   case $host_os in
15452     nonstopux*) version_type=nonstopux ;;
15453     *)
15454         if test "$lt_cv_prog_gnu_ld" = yes; then
15455                 version_type=linux # correct to gnu/linux during the next big refactor
15456         else
15457                 version_type=irix
15458         fi ;;
15459   esac
15460   need_lib_prefix=no
15461   need_version=no
15462   soname_spec='${libname}${release}${shared_ext}$major'
15463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15464   case $host_os in
15465   irix5* | nonstopux*)
15466     libsuff= shlibsuff=
15467     ;;
15468   *)
15469     case $LD in # libtool.m4 will add one of these switches to LD
15470     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15471       libsuff= shlibsuff= libmagic=32-bit;;
15472     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15473       libsuff=32 shlibsuff=N32 libmagic=N32;;
15474     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15475       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15476     *) libsuff= shlibsuff= libmagic=never-match;;
15477     esac
15478     ;;
15479   esac
15480   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15481   shlibpath_overrides_runpath=no
15482   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15483   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15484   hardcode_into_libs=yes
15485   ;;
15486
15487 # No shared lib support for Linux oldld, aout, or coff.
15488 linux*oldld* | linux*aout* | linux*coff*)
15489   dynamic_linker=no
15490   ;;
15491
15492 # This must be glibc/ELF.
15493 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15494   version_type=linux # correct to gnu/linux during the next big refactor
15495   need_lib_prefix=no
15496   need_version=no
15497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15498   soname_spec='${libname}${release}${shared_ext}$major'
15499   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15500   shlibpath_var=LD_LIBRARY_PATH
15501   shlibpath_overrides_runpath=no
15502
15503   # Some binutils ld are patched to set DT_RUNPATH
15504   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15505   $as_echo_n "(cached) " >&6
15506 else
15507   lt_cv_shlibpath_overrides_runpath=no
15508     save_LDFLAGS=$LDFLAGS
15509     save_libdir=$libdir
15510     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15511          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h.  */
15514
15515 int
15516 main ()
15517 {
15518
15519   ;
15520   return 0;
15521 }
15522 _ACEOF
15523 if ac_fn_cxx_try_link "$LINENO"; then :
15524   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15525   lt_cv_shlibpath_overrides_runpath=yes
15526 fi
15527 fi
15528 rm -f core conftest.err conftest.$ac_objext \
15529     conftest$ac_exeext conftest.$ac_ext
15530     LDFLAGS=$save_LDFLAGS
15531     libdir=$save_libdir
15532
15533 fi
15534
15535   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15536
15537   # This implies no fast_install, which is unacceptable.
15538   # Some rework will be needed to allow for fast_install
15539   # before this can be enabled.
15540   hardcode_into_libs=yes
15541
15542   # Append ld.so.conf contents to the search path
15543   if test -f /etc/ld.so.conf; then
15544     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' ' '`
15545     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15546   fi
15547
15548   # We used to test for /lib/ld.so.1 and disable shared libraries on
15549   # powerpc, because MkLinux only supported shared libraries with the
15550   # GNU dynamic linker.  Since this was broken with cross compilers,
15551   # most powerpc-linux boxes support dynamic linking these days and
15552   # people can always --disable-shared, the test was removed, and we
15553   # assume the GNU/Linux dynamic linker is in use.
15554   dynamic_linker='GNU/Linux ld.so'
15555   ;;
15556
15557 netbsd*)
15558   version_type=sunos
15559   need_lib_prefix=no
15560   need_version=no
15561   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15563     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15564     dynamic_linker='NetBSD (a.out) ld.so'
15565   else
15566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15567     soname_spec='${libname}${release}${shared_ext}$major'
15568     dynamic_linker='NetBSD ld.elf_so'
15569   fi
15570   shlibpath_var=LD_LIBRARY_PATH
15571   shlibpath_overrides_runpath=yes
15572   hardcode_into_libs=yes
15573   ;;
15574
15575 newsos6)
15576   version_type=linux # correct to gnu/linux during the next big refactor
15577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578   shlibpath_var=LD_LIBRARY_PATH
15579   shlibpath_overrides_runpath=yes
15580   ;;
15581
15582 *nto* | *qnx*)
15583   version_type=qnx
15584   need_lib_prefix=no
15585   need_version=no
15586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587   soname_spec='${libname}${release}${shared_ext}$major'
15588   shlibpath_var=LD_LIBRARY_PATH
15589   shlibpath_overrides_runpath=no
15590   hardcode_into_libs=yes
15591   dynamic_linker='ldqnx.so'
15592   ;;
15593
15594 openbsd*)
15595   version_type=sunos
15596   sys_lib_dlsearch_path_spec="/usr/lib"
15597   need_lib_prefix=no
15598   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15599   case $host_os in
15600     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15601     *)                          need_version=no  ;;
15602   esac
15603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15605   shlibpath_var=LD_LIBRARY_PATH
15606   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15607     case $host_os in
15608       openbsd2.[89] | openbsd2.[89].*)
15609         shlibpath_overrides_runpath=no
15610         ;;
15611       *)
15612         shlibpath_overrides_runpath=yes
15613         ;;
15614       esac
15615   else
15616     shlibpath_overrides_runpath=yes
15617   fi
15618   ;;
15619
15620 os2*)
15621   libname_spec='$name'
15622   shrext_cmds=".dll"
15623   need_lib_prefix=no
15624   library_names_spec='$libname${shared_ext} $libname.a'
15625   dynamic_linker='OS/2 ld.exe'
15626   shlibpath_var=LIBPATH
15627   ;;
15628
15629 osf3* | osf4* | osf5*)
15630   version_type=osf
15631   need_lib_prefix=no
15632   need_version=no
15633   soname_spec='${libname}${release}${shared_ext}$major'
15634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635   shlibpath_var=LD_LIBRARY_PATH
15636   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15637   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15638   ;;
15639
15640 rdos*)
15641   dynamic_linker=no
15642   ;;
15643
15644 solaris*)
15645   version_type=linux # correct to gnu/linux during the next big refactor
15646   need_lib_prefix=no
15647   need_version=no
15648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649   soname_spec='${libname}${release}${shared_ext}$major'
15650   shlibpath_var=LD_LIBRARY_PATH
15651   shlibpath_overrides_runpath=yes
15652   hardcode_into_libs=yes
15653   # ldd complains unless libraries are executable
15654   postinstall_cmds='chmod +x $lib'
15655   ;;
15656
15657 sunos4*)
15658   version_type=sunos
15659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15660   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15661   shlibpath_var=LD_LIBRARY_PATH
15662   shlibpath_overrides_runpath=yes
15663   if test "$with_gnu_ld" = yes; then
15664     need_lib_prefix=no
15665   fi
15666   need_version=yes
15667   ;;
15668
15669 sysv4 | sysv4.3*)
15670   version_type=linux # correct to gnu/linux during the next big refactor
15671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672   soname_spec='${libname}${release}${shared_ext}$major'
15673   shlibpath_var=LD_LIBRARY_PATH
15674   case $host_vendor in
15675     sni)
15676       shlibpath_overrides_runpath=no
15677       need_lib_prefix=no
15678       runpath_var=LD_RUN_PATH
15679       ;;
15680     siemens)
15681       need_lib_prefix=no
15682       ;;
15683     motorola)
15684       need_lib_prefix=no
15685       need_version=no
15686       shlibpath_overrides_runpath=no
15687       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15688       ;;
15689   esac
15690   ;;
15691
15692 sysv4*MP*)
15693   if test -d /usr/nec ;then
15694     version_type=linux # correct to gnu/linux during the next big refactor
15695     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15696     soname_spec='$libname${shared_ext}.$major'
15697     shlibpath_var=LD_LIBRARY_PATH
15698   fi
15699   ;;
15700
15701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15702   version_type=freebsd-elf
15703   need_lib_prefix=no
15704   need_version=no
15705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15706   soname_spec='${libname}${release}${shared_ext}$major'
15707   shlibpath_var=LD_LIBRARY_PATH
15708   shlibpath_overrides_runpath=yes
15709   hardcode_into_libs=yes
15710   if test "$with_gnu_ld" = yes; then
15711     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15712   else
15713     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15714     case $host_os in
15715       sco3.2v5*)
15716         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15717         ;;
15718     esac
15719   fi
15720   sys_lib_dlsearch_path_spec='/usr/lib'
15721   ;;
15722
15723 tpf*)
15724   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15725   version_type=linux # correct to gnu/linux during the next big refactor
15726   need_lib_prefix=no
15727   need_version=no
15728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729   shlibpath_var=LD_LIBRARY_PATH
15730   shlibpath_overrides_runpath=no
15731   hardcode_into_libs=yes
15732   ;;
15733
15734 uts4*)
15735   version_type=linux # correct to gnu/linux during the next big refactor
15736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15737   soname_spec='${libname}${release}${shared_ext}$major'
15738   shlibpath_var=LD_LIBRARY_PATH
15739   ;;
15740
15741 *)
15742   dynamic_linker=no
15743   ;;
15744 esac
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15746 $as_echo "$dynamic_linker" >&6; }
15747 test "$dynamic_linker" = no && can_build_shared=no
15748
15749 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15750 if test "$GCC" = yes; then
15751   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15752 fi
15753
15754 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15755   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15756 fi
15757 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15758   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15759 fi
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
15790
15791
15792
15793
15794
15795
15796
15797
15798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15799 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15800 hardcode_action_CXX=
15801 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15802    test -n "$runpath_var_CXX" ||
15803    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15804
15805   # We can hardcode non-existent directories.
15806   if test "$hardcode_direct_CXX" != no &&
15807      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15808      # have to relink, otherwise we might link with an installed library
15809      # when we should be linking with a yet-to-be-installed one
15810      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15811      test "$hardcode_minus_L_CXX" != no; then
15812     # Linking always hardcodes the temporary library directory.
15813     hardcode_action_CXX=relink
15814   else
15815     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15816     hardcode_action_CXX=immediate
15817   fi
15818 else
15819   # We cannot hardcode anything, or else we can only hardcode existing
15820   # directories.
15821   hardcode_action_CXX=unsupported
15822 fi
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15824 $as_echo "$hardcode_action_CXX" >&6; }
15825
15826 if test "$hardcode_action_CXX" = relink ||
15827    test "$inherit_rpath_CXX" = yes; then
15828   # Fast installation is not supported
15829   enable_fast_install=no
15830 elif test "$shlibpath_overrides_runpath" = yes ||
15831      test "$enable_shared" = no; then
15832   # Fast installation is not necessary
15833   enable_fast_install=needless
15834 fi
15835
15836
15837
15838
15839
15840
15841
15842   fi # test -n "$compiler"
15843
15844   CC=$lt_save_CC
15845   CFLAGS=$lt_save_CFLAGS
15846   LDCXX=$LD
15847   LD=$lt_save_LD
15848   GCC=$lt_save_GCC
15849   with_gnu_ld=$lt_save_with_gnu_ld
15850   lt_cv_path_LDCXX=$lt_cv_path_LD
15851   lt_cv_path_LD=$lt_save_path_LD
15852   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15853   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15854 fi # test "$_lt_caught_CXX_error" != yes
15855
15856 ac_ext=c
15857 ac_cpp='$CPP $CPPFLAGS'
15858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15861
15862
15863
15864
15865
15866
15867   CFLAG_VISIBILITY=
15868   HAVE_VISIBILITY=0
15869   if test -n "$GCC"; then
15870                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15871 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15872     if ${gl_cv_cc_vis_werror+:} false; then :
15873   $as_echo_n "(cached) " >&6
15874 else
15875
15876       gl_save_CFLAGS="$CFLAGS"
15877       CFLAGS="$CFLAGS -Werror"
15878       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h.  */
15880
15881 int
15882 main ()
15883 {
15884
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 if ac_fn_c_try_compile "$LINENO"; then :
15890   gl_cv_cc_vis_werror=yes
15891 else
15892   gl_cv_cc_vis_werror=no
15893 fi
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895       CFLAGS="$gl_save_CFLAGS"
15896 fi
15897
15898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
15899 $as_echo "$gl_cv_cc_vis_werror" >&6; }
15900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15901 $as_echo_n "checking for simple visibility declarations... " >&6; }
15902     if ${gl_cv_cc_visibility+:} false; then :
15903   $as_echo_n "(cached) " >&6
15904 else
15905
15906       gl_save_CFLAGS="$CFLAGS"
15907       CFLAGS="$CFLAGS -fvisibility=hidden"
15908                                     if test $gl_cv_cc_vis_werror = yes; then
15909         CFLAGS="$CFLAGS -Werror"
15910       fi
15911       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h.  */
15913 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15914              extern __attribute__((__visibility__("default"))) int exportedvar;
15915              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15916              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15917              void dummyfunc (void) {}
15918
15919 int
15920 main ()
15921 {
15922
15923   ;
15924   return 0;
15925 }
15926 _ACEOF
15927 if ac_fn_c_try_compile "$LINENO"; then :
15928   gl_cv_cc_visibility=yes
15929 else
15930   gl_cv_cc_visibility=no
15931 fi
15932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933       CFLAGS="$gl_save_CFLAGS"
15934 fi
15935
15936     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15937 $as_echo "$gl_cv_cc_visibility" >&6; }
15938     if test $gl_cv_cc_visibility = yes; then
15939       CFLAG_VISIBILITY="-fvisibility=hidden"
15940       HAVE_VISIBILITY=1
15941     fi
15942   fi
15943
15944
15945
15946 cat >>confdefs.h <<_ACEOF
15947 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15948 _ACEOF
15949
15950
15951 if  test -n "$CFLAG_VISIBILITY" ; then :
15952
15953        AM_CPPFLAGS="$AM_CPPFLAGS $CFLAG_VISIBILITY"
15954        CPPFLAGS="$CPPFLAGS $CFLAG_VISIBILITY"
15955
15956 fi
15957
15958 # Check whether --enable-silent-rules was given.
15959 if test "${enable_silent_rules+set}" = set; then :
15960   enableval=$enable_silent_rules;
15961 fi
15962
15963 case $enable_silent_rules in # (((
15964   yes) AM_DEFAULT_VERBOSITY=0;;
15965    no) AM_DEFAULT_VERBOSITY=1;;
15966     *) AM_DEFAULT_VERBOSITY=0;;
15967 esac
15968 am_make=${MAKE-make}
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
15970 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
15971 if ${am_cv_make_support_nested_variables+:} false; then :
15972   $as_echo_n "(cached) " >&6
15973 else
15974   if $as_echo 'TRUE=$(BAR$(V))
15975 BAR0=false
15976 BAR1=true
15977 V=1
15978 am__doit:
15979         @$(TRUE)
15980 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
15981   am_cv_make_support_nested_variables=yes
15982 else
15983   am_cv_make_support_nested_variables=no
15984 fi
15985 fi
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
15987 $as_echo "$am_cv_make_support_nested_variables" >&6; }
15988 if test $am_cv_make_support_nested_variables = yes; then
15989     AM_V='$(V)'
15990   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15991 else
15992   AM_V=$AM_DEFAULT_VERBOSITY
15993   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15994 fi
15995 AM_BACKSLASH='\'
15996
15997
15998 for ac_func in gethostbyname
15999 do :
16000   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16001 if test "x$ac_cv_func_gethostbyname" = xyes; then :
16002   cat >>confdefs.h <<_ACEOF
16003 #define HAVE_GETHOSTBYNAME 1
16004 _ACEOF
16005
16006 fi
16007 done
16008
16009 for ac_func in getaddrinfo
16010 do :
16011   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
16012 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
16013   cat >>confdefs.h <<_ACEOF
16014 #define HAVE_GETADDRINFO 1
16015 _ACEOF
16016
16017 fi
16018 done
16019
16020 for ac_func in gettimeofday
16021 do :
16022   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16023 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16024   cat >>confdefs.h <<_ACEOF
16025 #define HAVE_GETTIMEOFDAY 1
16026 _ACEOF
16027
16028 fi
16029 done
16030
16031 for ac_func in inet_ntoa
16032 do :
16033   ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
16034 if test "x$ac_cv_func_inet_ntoa" = xyes; then :
16035   cat >>confdefs.h <<_ACEOF
16036 #define HAVE_INET_NTOA 1
16037 _ACEOF
16038
16039 fi
16040 done
16041
16042 for ac_func in memset
16043 do :
16044   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
16045 if test "x$ac_cv_func_memset" = xyes; then :
16046   cat >>confdefs.h <<_ACEOF
16047 #define HAVE_MEMSET 1
16048 _ACEOF
16049
16050 fi
16051 done
16052
16053 for ac_func in socket
16054 do :
16055   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16056 if test "x$ac_cv_func_socket" = xyes; then :
16057   cat >>confdefs.h <<_ACEOF
16058 #define HAVE_SOCKET 1
16059 _ACEOF
16060
16061 fi
16062 done
16063
16064 for ac_header in arpa/inet.h
16065 do :
16066   ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16067 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
16068   cat >>confdefs.h <<_ACEOF
16069 #define HAVE_ARPA_INET_H 1
16070 _ACEOF
16071
16072 fi
16073
16074 done
16075
16076 for ac_header in fcntl.h
16077 do :
16078   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
16079 if test "x$ac_cv_header_fcntl_h" = xyes; then :
16080   cat >>confdefs.h <<_ACEOF
16081 #define HAVE_FCNTL_H 1
16082 _ACEOF
16083
16084 fi
16085
16086 done
16087
16088 for ac_header in limits.h
16089 do :
16090   ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
16091 if test "x$ac_cv_header_limits_h" = xyes; then :
16092   cat >>confdefs.h <<_ACEOF
16093 #define HAVE_LIMITS_H 1
16094 _ACEOF
16095
16096 fi
16097
16098 done
16099
16100 for ac_header in netdb.h
16101 do :
16102   ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
16103 if test "x$ac_cv_header_netdb_h" = xyes; then :
16104   cat >>confdefs.h <<_ACEOF
16105 #define HAVE_NETDB_H 1
16106 _ACEOF
16107
16108 fi
16109
16110 done
16111
16112 for ac_header in netinet/in.h
16113 do :
16114   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16115 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16116   cat >>confdefs.h <<_ACEOF
16117 #define HAVE_NETINET_IN_H 1
16118 _ACEOF
16119
16120 fi
16121
16122 done
16123
16124 for ac_header in stddef.h
16125 do :
16126   ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
16127 if test "x$ac_cv_header_stddef_h" = xyes; then :
16128   cat >>confdefs.h <<_ACEOF
16129 #define HAVE_STDDEF_H 1
16130 _ACEOF
16131
16132 fi
16133
16134 done
16135
16136 for ac_header in sys/ioctl.h
16137 do :
16138   ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
16139 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
16140   cat >>confdefs.h <<_ACEOF
16141 #define HAVE_SYS_IOCTL_H 1
16142 _ACEOF
16143
16144 fi
16145
16146 done
16147
16148 for ac_header in sys/socket.h
16149 do :
16150   ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
16151 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
16152   cat >>confdefs.h <<_ACEOF
16153 #define HAVE_SYS_SOCKET_H 1
16154 _ACEOF
16155
16156 fi
16157
16158 done
16159
16160 for ac_header in sys/time.h
16161 do :
16162   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16163 if test "x$ac_cv_header_sys_time_h" = xyes; then :
16164   cat >>confdefs.h <<_ACEOF
16165 #define HAVE_SYS_TIME_H 1
16166 _ACEOF
16167
16168 fi
16169
16170 done
16171
16172 for ac_header in errno.h
16173 do :
16174   ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
16175 if test "x$ac_cv_header_errno_h" = xyes; then :
16176   cat >>confdefs.h <<_ACEOF
16177 #define HAVE_ERRNO_H 1
16178 _ACEOF
16179
16180 fi
16181
16182 done
16183
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
16185 $as_echo_n "checking for socket in -lnetwork... " >&6; }
16186 if ${ac_cv_lib_network_socket+:} false; then :
16187   $as_echo_n "(cached) " >&6
16188 else
16189   ac_check_lib_save_LIBS=$LIBS
16190 LIBS="-lnetwork  $LIBS"
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h.  */
16193
16194 /* Override any GCC internal prototype to avoid an error.
16195    Use char because int might match the return type of a GCC
16196    builtin and then its argument prototype would still apply.  */
16197 #ifdef __cplusplus
16198 extern "C"
16199 #endif
16200 char socket ();
16201 int
16202 main ()
16203 {
16204 return socket ();
16205   ;
16206   return 0;
16207 }
16208 _ACEOF
16209 if ac_fn_c_try_link "$LINENO"; then :
16210   ac_cv_lib_network_socket=yes
16211 else
16212   ac_cv_lib_network_socket=no
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext \
16215     conftest$ac_exeext conftest.$ac_ext
16216 LIBS=$ac_check_lib_save_LIBS
16217 fi
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
16219 $as_echo "$ac_cv_lib_network_socket" >&6; }
16220 if test "x$ac_cv_lib_network_socket" = xyes; then :
16221   cat >>confdefs.h <<_ACEOF
16222 #define HAVE_LIBNETWORK 1
16223 _ACEOF
16224
16225   LIBS="-lnetwork $LIBS"
16226
16227 fi
16228
16229 # The cast to long int works around a bug in the HP C Compiler
16230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16232 # This bug is HP SR number 8606223364.
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16234 $as_echo_n "checking size of long long... " >&6; }
16235 if ${ac_cv_sizeof_long_long+:} false; then :
16236   $as_echo_n "(cached) " >&6
16237 else
16238   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
16239
16240 else
16241   if test "$ac_cv_type_long_long" = yes; then
16242      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16244 as_fn_error 77 "cannot compute sizeof (long long)
16245 See \`config.log' for more details" "$LINENO" 5; }
16246    else
16247      ac_cv_sizeof_long_long=0
16248    fi
16249 fi
16250
16251 fi
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16253 $as_echo "$ac_cv_sizeof_long_long" >&6; }
16254
16255
16256
16257 cat >>confdefs.h <<_ACEOF
16258 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16259 _ACEOF
16260
16261
16262 # The cast to long int works around a bug in the HP C Compiler
16263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16265 # This bug is HP SR number 8606223364.
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16267 $as_echo_n "checking size of long... " >&6; }
16268 if ${ac_cv_sizeof_long+:} false; then :
16269   $as_echo_n "(cached) " >&6
16270 else
16271   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16272
16273 else
16274   if test "$ac_cv_type_long" = yes; then
16275      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16277 as_fn_error 77 "cannot compute sizeof (long)
16278 See \`config.log' for more details" "$LINENO" 5; }
16279    else
16280      ac_cv_sizeof_long=0
16281    fi
16282 fi
16283
16284 fi
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16286 $as_echo "$ac_cv_sizeof_long" >&6; }
16287
16288
16289
16290 cat >>confdefs.h <<_ACEOF
16291 #define SIZEOF_LONG $ac_cv_sizeof_long
16292 _ACEOF
16293
16294
16295 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
16296 if test "x$ac_cv_type___uint128_t" = xyes; then :
16297
16298 cat >>confdefs.h <<_ACEOF
16299 #define HAVE___UINT128_T 1
16300 _ACEOF
16301
16302
16303 fi
16304
16305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16306 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16307 if ${ac_cv_c_bigendian+:} false; then :
16308   $as_echo_n "(cached) " >&6
16309 else
16310   ac_cv_c_bigendian=unknown
16311     # See if we're dealing with a universal compiler.
16312     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h.  */
16314 #ifndef __APPLE_CC__
16315                not a universal capable compiler
16316              #endif
16317              typedef int dummy;
16318
16319 _ACEOF
16320 if ac_fn_c_try_compile "$LINENO"; then :
16321
16322         # Check for potential -arch flags.  It is not universal unless
16323         # there are at least two -arch flags with different values.
16324         ac_arch=
16325         ac_prev=
16326         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16327          if test -n "$ac_prev"; then
16328            case $ac_word in
16329              i?86 | x86_64 | ppc | ppc64)
16330                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16331                  ac_arch=$ac_word
16332                else
16333                  ac_cv_c_bigendian=universal
16334                  break
16335                fi
16336                ;;
16337            esac
16338            ac_prev=
16339          elif test "x$ac_word" = "x-arch"; then
16340            ac_prev=arch
16341          fi
16342        done
16343 fi
16344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345     if test $ac_cv_c_bigendian = unknown; then
16346       # See if sys/param.h defines the BYTE_ORDER macro.
16347       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16348 /* end confdefs.h.  */
16349 #include <sys/types.h>
16350              #include <sys/param.h>
16351
16352 int
16353 main ()
16354 {
16355 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16356                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16357                      && LITTLE_ENDIAN)
16358               bogus endian macros
16359              #endif
16360
16361   ;
16362   return 0;
16363 }
16364 _ACEOF
16365 if ac_fn_c_try_compile "$LINENO"; then :
16366   # It does; now see whether it defined to BIG_ENDIAN or not.
16367          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h.  */
16369 #include <sys/types.h>
16370                 #include <sys/param.h>
16371
16372 int
16373 main ()
16374 {
16375 #if BYTE_ORDER != BIG_ENDIAN
16376                  not big endian
16377                 #endif
16378
16379   ;
16380   return 0;
16381 }
16382 _ACEOF
16383 if ac_fn_c_try_compile "$LINENO"; then :
16384   ac_cv_c_bigendian=yes
16385 else
16386   ac_cv_c_bigendian=no
16387 fi
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389 fi
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391     fi
16392     if test $ac_cv_c_bigendian = unknown; then
16393       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16394       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h.  */
16396 #include <limits.h>
16397
16398 int
16399 main ()
16400 {
16401 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16402               bogus endian macros
16403              #endif
16404
16405   ;
16406   return 0;
16407 }
16408 _ACEOF
16409 if ac_fn_c_try_compile "$LINENO"; then :
16410   # It does; now see whether it defined to _BIG_ENDIAN or not.
16411          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h.  */
16413 #include <limits.h>
16414
16415 int
16416 main ()
16417 {
16418 #ifndef _BIG_ENDIAN
16419                  not big endian
16420                 #endif
16421
16422   ;
16423   return 0;
16424 }
16425 _ACEOF
16426 if ac_fn_c_try_compile "$LINENO"; then :
16427   ac_cv_c_bigendian=yes
16428 else
16429   ac_cv_c_bigendian=no
16430 fi
16431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 fi
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434     fi
16435     if test $ac_cv_c_bigendian = unknown; then
16436       # Compile a test program.
16437       if test "$cross_compiling" = yes; then :
16438   # Try to guess by grepping values from an object file.
16439          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h.  */
16441 short int ascii_mm[] =
16442                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16443                 short int ascii_ii[] =
16444                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16445                 int use_ascii (int i) {
16446                   return ascii_mm[i] + ascii_ii[i];
16447                 }
16448                 short int ebcdic_ii[] =
16449                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16450                 short int ebcdic_mm[] =
16451                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16452                 int use_ebcdic (int i) {
16453                   return ebcdic_mm[i] + ebcdic_ii[i];
16454                 }
16455                 extern int foo;
16456
16457 int
16458 main ()
16459 {
16460 return use_ascii (foo) == use_ebcdic (foo);
16461   ;
16462   return 0;
16463 }
16464 _ACEOF
16465 if ac_fn_c_try_compile "$LINENO"; then :
16466   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16467               ac_cv_c_bigendian=yes
16468             fi
16469             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16470               if test "$ac_cv_c_bigendian" = unknown; then
16471                 ac_cv_c_bigendian=no
16472               else
16473                 # finding both strings is unlikely to happen, but who knows?
16474                 ac_cv_c_bigendian=unknown
16475               fi
16476             fi
16477 fi
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479 else
16480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481 /* end confdefs.h.  */
16482 $ac_includes_default
16483 int
16484 main ()
16485 {
16486
16487              /* Are we little or big endian?  From Harbison&Steele.  */
16488              union
16489              {
16490                long int l;
16491                char c[sizeof (long int)];
16492              } u;
16493              u.l = 1;
16494              return u.c[sizeof (long int) - 1] == 1;
16495
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 if ac_fn_c_try_run "$LINENO"; then :
16501   ac_cv_c_bigendian=no
16502 else
16503   ac_cv_c_bigendian=yes
16504 fi
16505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16506   conftest.$ac_objext conftest.beam conftest.$ac_ext
16507 fi
16508
16509     fi
16510 fi
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16512 $as_echo "$ac_cv_c_bigendian" >&6; }
16513  case $ac_cv_c_bigendian in #(
16514    yes)
16515      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16516 ;; #(
16517    no)
16518       ;; #(
16519    universal)
16520
16521 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16522
16523      ;; #(
16524    *)
16525      as_fn_error $? "unknown endianness
16526  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16527  esac
16528
16529 # mktime check takes forever on some systems, if time supported it would be
16530 # highly unusual for mktime to be missing
16531 #AC_FUNC_MKTIME
16532
16533 ac_ext=c
16534 ac_cpp='$CPP $CPPFLAGS'
16535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16538 if test -n "$ac_tool_prefix"; then
16539   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16542 $as_echo_n "checking for $ac_word... " >&6; }
16543 if ${ac_cv_prog_CC+:} false; then :
16544   $as_echo_n "(cached) " >&6
16545 else
16546   if test -n "$CC"; then
16547   ac_cv_prog_CC="$CC" # Let the user override the test.
16548 else
16549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550 for as_dir in $PATH
16551 do
16552   IFS=$as_save_IFS
16553   test -z "$as_dir" && as_dir=.
16554     for ac_exec_ext in '' $ac_executable_extensions; do
16555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16556     ac_cv_prog_CC="${ac_tool_prefix}gcc"
16557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16558     break 2
16559   fi
16560 done
16561   done
16562 IFS=$as_save_IFS
16563
16564 fi
16565 fi
16566 CC=$ac_cv_prog_CC
16567 if test -n "$CC"; then
16568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16569 $as_echo "$CC" >&6; }
16570 else
16571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572 $as_echo "no" >&6; }
16573 fi
16574
16575
16576 fi
16577 if test -z "$ac_cv_prog_CC"; then
16578   ac_ct_CC=$CC
16579   # Extract the first word of "gcc", so it can be a program name with args.
16580 set dummy gcc; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16584   $as_echo_n "(cached) " >&6
16585 else
16586   if test -n "$ac_ct_CC"; then
16587   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16588 else
16589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590 for as_dir in $PATH
16591 do
16592   IFS=$as_save_IFS
16593   test -z "$as_dir" && as_dir=.
16594     for ac_exec_ext in '' $ac_executable_extensions; do
16595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16596     ac_cv_prog_ac_ct_CC="gcc"
16597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16598     break 2
16599   fi
16600 done
16601   done
16602 IFS=$as_save_IFS
16603
16604 fi
16605 fi
16606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16607 if test -n "$ac_ct_CC"; then
16608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16609 $as_echo "$ac_ct_CC" >&6; }
16610 else
16611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16613 fi
16614
16615   if test "x$ac_ct_CC" = x; then
16616     CC=""
16617   else
16618     case $cross_compiling:$ac_tool_warned in
16619 yes:)
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16622 ac_tool_warned=yes ;;
16623 esac
16624     CC=$ac_ct_CC
16625   fi
16626 else
16627   CC="$ac_cv_prog_CC"
16628 fi
16629
16630 if test -z "$CC"; then
16631           if test -n "$ac_tool_prefix"; then
16632     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16633 set dummy ${ac_tool_prefix}cc; ac_word=$2
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16635 $as_echo_n "checking for $ac_word... " >&6; }
16636 if ${ac_cv_prog_CC+:} false; then :
16637   $as_echo_n "(cached) " >&6
16638 else
16639   if test -n "$CC"; then
16640   ac_cv_prog_CC="$CC" # Let the user override the test.
16641 else
16642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16643 for as_dir in $PATH
16644 do
16645   IFS=$as_save_IFS
16646   test -z "$as_dir" && as_dir=.
16647     for ac_exec_ext in '' $ac_executable_extensions; do
16648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16649     ac_cv_prog_CC="${ac_tool_prefix}cc"
16650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16651     break 2
16652   fi
16653 done
16654   done
16655 IFS=$as_save_IFS
16656
16657 fi
16658 fi
16659 CC=$ac_cv_prog_CC
16660 if test -n "$CC"; then
16661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16662 $as_echo "$CC" >&6; }
16663 else
16664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665 $as_echo "no" >&6; }
16666 fi
16667
16668
16669   fi
16670 fi
16671 if test -z "$CC"; then
16672   # Extract the first word of "cc", so it can be a program name with args.
16673 set dummy cc; ac_word=$2
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16675 $as_echo_n "checking for $ac_word... " >&6; }
16676 if ${ac_cv_prog_CC+:} false; then :
16677   $as_echo_n "(cached) " >&6
16678 else
16679   if test -n "$CC"; then
16680   ac_cv_prog_CC="$CC" # Let the user override the test.
16681 else
16682   ac_prog_rejected=no
16683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16684 for as_dir in $PATH
16685 do
16686   IFS=$as_save_IFS
16687   test -z "$as_dir" && as_dir=.
16688     for ac_exec_ext in '' $ac_executable_extensions; do
16689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16690     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16691        ac_prog_rejected=yes
16692        continue
16693      fi
16694     ac_cv_prog_CC="cc"
16695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16696     break 2
16697   fi
16698 done
16699   done
16700 IFS=$as_save_IFS
16701
16702 if test $ac_prog_rejected = yes; then
16703   # We found a bogon in the path, so make sure we never use it.
16704   set dummy $ac_cv_prog_CC
16705   shift
16706   if test $# != 0; then
16707     # We chose a different compiler from the bogus one.
16708     # However, it has the same basename, so the bogon will be chosen
16709     # first if we set CC to just the basename; use the full file name.
16710     shift
16711     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16712   fi
16713 fi
16714 fi
16715 fi
16716 CC=$ac_cv_prog_CC
16717 if test -n "$CC"; then
16718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16719 $as_echo "$CC" >&6; }
16720 else
16721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16722 $as_echo "no" >&6; }
16723 fi
16724
16725
16726 fi
16727 if test -z "$CC"; then
16728   if test -n "$ac_tool_prefix"; then
16729   for ac_prog in cl.exe
16730   do
16731     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if ${ac_cv_prog_CC+:} false; then :
16736   $as_echo_n "(cached) " >&6
16737 else
16738   if test -n "$CC"; then
16739   ac_cv_prog_CC="$CC" # Let the user override the test.
16740 else
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16743 do
16744   IFS=$as_save_IFS
16745   test -z "$as_dir" && as_dir=.
16746     for ac_exec_ext in '' $ac_executable_extensions; do
16747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16750     break 2
16751   fi
16752 done
16753   done
16754 IFS=$as_save_IFS
16755
16756 fi
16757 fi
16758 CC=$ac_cv_prog_CC
16759 if test -n "$CC"; then
16760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16761 $as_echo "$CC" >&6; }
16762 else
16763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16765 fi
16766
16767
16768     test -n "$CC" && break
16769   done
16770 fi
16771 if test -z "$CC"; then
16772   ac_ct_CC=$CC
16773   for ac_prog in cl.exe
16774 do
16775   # Extract the first word of "$ac_prog", so it can be a program name with args.
16776 set dummy $ac_prog; ac_word=$2
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16778 $as_echo_n "checking for $ac_word... " >&6; }
16779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16780   $as_echo_n "(cached) " >&6
16781 else
16782   if test -n "$ac_ct_CC"; then
16783   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16784 else
16785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16786 for as_dir in $PATH
16787 do
16788   IFS=$as_save_IFS
16789   test -z "$as_dir" && as_dir=.
16790     for ac_exec_ext in '' $ac_executable_extensions; do
16791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16792     ac_cv_prog_ac_ct_CC="$ac_prog"
16793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16794     break 2
16795   fi
16796 done
16797   done
16798 IFS=$as_save_IFS
16799
16800 fi
16801 fi
16802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16803 if test -n "$ac_ct_CC"; then
16804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16805 $as_echo "$ac_ct_CC" >&6; }
16806 else
16807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16808 $as_echo "no" >&6; }
16809 fi
16810
16811
16812   test -n "$ac_ct_CC" && break
16813 done
16814
16815   if test "x$ac_ct_CC" = x; then
16816     CC=""
16817   else
16818     case $cross_compiling:$ac_tool_warned in
16819 yes:)
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16822 ac_tool_warned=yes ;;
16823 esac
16824     CC=$ac_ct_CC
16825   fi
16826 fi
16827
16828 fi
16829
16830
16831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16833 as_fn_error $? "no acceptable C compiler found in \$PATH
16834 See \`config.log' for more details" "$LINENO" 5; }
16835
16836 # Provide some information about the compiler.
16837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16838 set X $ac_compile
16839 ac_compiler=$2
16840 for ac_option in --version -v -V -qversion; do
16841   { { ac_try="$ac_compiler $ac_option >&5"
16842 case "(($ac_try" in
16843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844   *) ac_try_echo=$ac_try;;
16845 esac
16846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16847 $as_echo "$ac_try_echo"; } >&5
16848   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16849   ac_status=$?
16850   if test -s conftest.err; then
16851     sed '10a\
16852 ... rest of stderr output deleted ...
16853          10q' conftest.err >conftest.er1
16854     cat conftest.er1 >&5
16855   fi
16856   rm -f conftest.er1 conftest.err
16857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16858   test $ac_status = 0; }
16859 done
16860
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16862 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16863 if ${ac_cv_c_compiler_gnu+:} false; then :
16864   $as_echo_n "(cached) " >&6
16865 else
16866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867 /* end confdefs.h.  */
16868
16869 int
16870 main ()
16871 {
16872 #ifndef __GNUC__
16873        choke me
16874 #endif
16875
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 if ac_fn_c_try_compile "$LINENO"; then :
16881   ac_compiler_gnu=yes
16882 else
16883   ac_compiler_gnu=no
16884 fi
16885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16887
16888 fi
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16890 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16891 if test $ac_compiler_gnu = yes; then
16892   GCC=yes
16893 else
16894   GCC=
16895 fi
16896 ac_test_CFLAGS=${CFLAGS+set}
16897 ac_save_CFLAGS=$CFLAGS
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16899 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16900 if ${ac_cv_prog_cc_g+:} false; then :
16901   $as_echo_n "(cached) " >&6
16902 else
16903   ac_save_c_werror_flag=$ac_c_werror_flag
16904    ac_c_werror_flag=yes
16905    ac_cv_prog_cc_g=no
16906    CFLAGS="-g"
16907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908 /* end confdefs.h.  */
16909
16910 int
16911 main ()
16912 {
16913
16914   ;
16915   return 0;
16916 }
16917 _ACEOF
16918 if ac_fn_c_try_compile "$LINENO"; then :
16919   ac_cv_prog_cc_g=yes
16920 else
16921   CFLAGS=""
16922       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923 /* end confdefs.h.  */
16924
16925 int
16926 main ()
16927 {
16928
16929   ;
16930   return 0;
16931 }
16932 _ACEOF
16933 if ac_fn_c_try_compile "$LINENO"; then :
16934
16935 else
16936   ac_c_werror_flag=$ac_save_c_werror_flag
16937          CFLAGS="-g"
16938          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h.  */
16940
16941 int
16942 main ()
16943 {
16944
16945   ;
16946   return 0;
16947 }
16948 _ACEOF
16949 if ac_fn_c_try_compile "$LINENO"; then :
16950   ac_cv_prog_cc_g=yes
16951 fi
16952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953 fi
16954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16955 fi
16956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16957    ac_c_werror_flag=$ac_save_c_werror_flag
16958 fi
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16960 $as_echo "$ac_cv_prog_cc_g" >&6; }
16961 if test "$ac_test_CFLAGS" = set; then
16962   CFLAGS=$ac_save_CFLAGS
16963 elif test $ac_cv_prog_cc_g = yes; then
16964   if test "$GCC" = yes; then
16965     CFLAGS="-g -O2"
16966   else
16967     CFLAGS="-g"
16968   fi
16969 else
16970   if test "$GCC" = yes; then
16971     CFLAGS="-O2"
16972   else
16973     CFLAGS=
16974   fi
16975 fi
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16977 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16978 if ${ac_cv_prog_cc_c89+:} false; then :
16979   $as_echo_n "(cached) " >&6
16980 else
16981   ac_cv_prog_cc_c89=no
16982 ac_save_CC=$CC
16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984 /* end confdefs.h.  */
16985 #include <stdarg.h>
16986 #include <stdio.h>
16987 struct stat;
16988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16989 struct buf { int x; };
16990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16991 static char *e (p, i)
16992      char **p;
16993      int i;
16994 {
16995   return p[i];
16996 }
16997 static char *f (char * (*g) (char **, int), char **p, ...)
16998 {
16999   char *s;
17000   va_list v;
17001   va_start (v,p);
17002   s = g (p, va_arg (v,int));
17003   va_end (v);
17004   return s;
17005 }
17006
17007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
17008    function prototypes and stuff, but not '\xHH' hex character constants.
17009    These don't provoke an error unfortunately, instead are silently treated
17010    as 'x'.  The following induces an error, until -std is added to get
17011    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
17012    array size at least.  It's necessary to write '\x00'==0 to get something
17013    that's true only with -std.  */
17014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17015
17016 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17017    inside strings and character constants.  */
17018 #define FOO(x) 'x'
17019 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17020
17021 int test (int i, double x);
17022 struct s1 {int (*f) (int a);};
17023 struct s2 {int (*f) (double a);};
17024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17025 int argc;
17026 char **argv;
17027 int
17028 main ()
17029 {
17030 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
17031   ;
17032   return 0;
17033 }
17034 _ACEOF
17035 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17036         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17037 do
17038   CC="$ac_save_CC $ac_arg"
17039   if ac_fn_c_try_compile "$LINENO"; then :
17040   ac_cv_prog_cc_c89=$ac_arg
17041 fi
17042 rm -f core conftest.err conftest.$ac_objext
17043   test "x$ac_cv_prog_cc_c89" != "xno" && break
17044 done
17045 rm -f conftest.$ac_ext
17046 CC=$ac_save_CC
17047
17048 fi
17049 # AC_CACHE_VAL
17050 case "x$ac_cv_prog_cc_c89" in
17051   x)
17052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17053 $as_echo "none needed" >&6; } ;;
17054   xno)
17055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17056 $as_echo "unsupported" >&6; } ;;
17057   *)
17058     CC="$CC $ac_cv_prog_cc_c89"
17059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
17060 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
17061 esac
17062 if test "x$ac_cv_prog_cc_c89" != xno; then :
17063
17064 fi
17065
17066 ac_ext=c
17067 ac_cpp='$CPP $CPPFLAGS'
17068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17071
17072 ac_ext=c
17073 ac_cpp='$CPP $CPPFLAGS'
17074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
17078 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
17079 if ${am_cv_prog_cc_c_o+:} false; then :
17080   $as_echo_n "(cached) " >&6
17081 else
17082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h.  */
17084
17085 int
17086 main ()
17087 {
17088
17089   ;
17090   return 0;
17091 }
17092 _ACEOF
17093   # Make sure it works both with $CC and with simple cc.
17094   # Following AC_PROG_CC_C_O, we do the test twice because some
17095   # compilers refuse to overwrite an existing .o file with -o,
17096   # though they will create one.
17097   am_cv_prog_cc_c_o=yes
17098   for am_i in 1 2; do
17099     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
17100    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
17101    ac_status=$?
17102    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103    (exit $ac_status); } \
17104          && test -f conftest2.$ac_objext; then
17105       : OK
17106     else
17107       am_cv_prog_cc_c_o=no
17108       break
17109     fi
17110   done
17111   rm -f core conftest*
17112   unset am_i
17113 fi
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
17115 $as_echo "$am_cv_prog_cc_c_o" >&6; }
17116 if test "$am_cv_prog_cc_c_o" != yes; then
17117    # Losing compiler, so override with the script.
17118    # FIXME: It is wrong to rewrite CC.
17119    # But if we don't then we get into trouble of one sort or another.
17120    # A longer-term fix would be to have automake use am__CC in this case,
17121    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17122    CC="$am_aux_dir/compile $CC"
17123 fi
17124 ac_ext=c
17125 ac_cpp='$CPP $CPPFLAGS'
17126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17129
17130
17131 depcc="$CC"   am_compiler_list=
17132
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17134 $as_echo_n "checking dependency style of $depcc... " >&6; }
17135 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
17136   $as_echo_n "(cached) " >&6
17137 else
17138   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17139   # We make a subdir and do the tests there.  Otherwise we can end up
17140   # making bogus files that we don't know about and never remove.  For
17141   # instance it was reported that on HP-UX the gcc test will end up
17142   # making a dummy file named 'D' -- because '-MD' means "put the output
17143   # in D".
17144   rm -rf conftest.dir
17145   mkdir conftest.dir
17146   # Copy depcomp to subdir because otherwise we won't find it if we're
17147   # using a relative directory.
17148   cp "$am_depcomp" conftest.dir
17149   cd conftest.dir
17150   # We will build objects and dependencies in a subdirectory because
17151   # it helps to detect inapplicable dependency modes.  For instance
17152   # both Tru64's cc and ICC support -MD to output dependencies as a
17153   # side effect of compilation, but ICC will put the dependencies in
17154   # the current directory while Tru64 will put them in the object
17155   # directory.
17156   mkdir sub
17157
17158   am_cv_CC_dependencies_compiler_type=none
17159   if test "$am_compiler_list" = ""; then
17160      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17161   fi
17162   am__universal=false
17163   case " $depcc " in #(
17164      *\ -arch\ *\ -arch\ *) am__universal=true ;;
17165      esac
17166
17167   for depmode in $am_compiler_list; do
17168     # Setup a source with many dependencies, because some compilers
17169     # like to wrap large dependency lists on column 80 (with \), and
17170     # we should not choose a depcomp mode which is confused by this.
17171     #
17172     # We need to recreate these files for each test, as the compiler may
17173     # overwrite some of them when testing with obscure command lines.
17174     # This happens at least with the AIX C compiler.
17175     : > sub/conftest.c
17176     for i in 1 2 3 4 5 6; do
17177       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17178       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17179       # Solaris 10 /bin/sh.
17180       echo '/* dummy */' > sub/conftst$i.h
17181     done
17182     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17183
17184     # We check with '-c' and '-o' for the sake of the "dashmstdout"
17185     # mode.  It turns out that the SunPro C++ compiler does not properly
17186     # handle '-M -o', and we need to detect this.  Also, some Intel
17187     # versions had trouble with output in subdirs.
17188     am__obj=sub/conftest.${OBJEXT-o}
17189     am__minus_obj="-o $am__obj"
17190     case $depmode in
17191     gcc)
17192       # This depmode causes a compiler race in universal mode.
17193       test "$am__universal" = false || continue
17194       ;;
17195     nosideeffect)
17196       # After this tag, mechanisms are not by side-effect, so they'll
17197       # only be used when explicitly requested.
17198       if test "x$enable_dependency_tracking" = xyes; then
17199         continue
17200       else
17201         break
17202       fi
17203       ;;
17204     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17205       # This compiler won't grok '-c -o', but also, the minuso test has
17206       # not run yet.  These depmodes are late enough in the game, and
17207       # so weak that their functioning should not be impacted.
17208       am__obj=conftest.${OBJEXT-o}
17209       am__minus_obj=
17210       ;;
17211     none) break ;;
17212     esac
17213     if depmode=$depmode \
17214        source=sub/conftest.c object=$am__obj \
17215        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17216        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17217          >/dev/null 2>conftest.err &&
17218        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17219        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17220        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17221        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17222       # icc doesn't choke on unknown options, it will just issue warnings
17223       # or remarks (even with -Werror).  So we grep stderr for any message
17224       # that says an option was ignored or not supported.
17225       # When given -MP, icc 7.0 and 7.1 complain thusly:
17226       #   icc: Command line warning: ignoring option '-M'; no argument required
17227       # The diagnosis changed in icc 8.0:
17228       #   icc: Command line remark: option '-MP' not supported
17229       if (grep 'ignoring option' conftest.err ||
17230           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17231         am_cv_CC_dependencies_compiler_type=$depmode
17232         break
17233       fi
17234     fi
17235   done
17236
17237   cd ..
17238   rm -rf conftest.dir
17239 else
17240   am_cv_CC_dependencies_compiler_type=none
17241 fi
17242
17243 fi
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17245 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17246 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17247
17248  if
17249   test "x$enable_dependency_tracking" != xno \
17250   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17251   am__fastdepCC_TRUE=
17252   am__fastdepCC_FALSE='#'
17253 else
17254   am__fastdepCC_TRUE='#'
17255   am__fastdepCC_FALSE=
17256 fi
17257
17258
17259 if test "x$CC" != xcc; then
17260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
17261 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17262 else
17263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
17264 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17265 fi
17266 set dummy $CC; ac_cc=`$as_echo "$2" |
17267                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17268 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
17269   $as_echo_n "(cached) " >&6
17270 else
17271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h.  */
17273
17274 int
17275 main ()
17276 {
17277
17278   ;
17279   return 0;
17280 }
17281 _ACEOF
17282 # Make sure it works both with $CC and with simple cc.
17283 # We do the test twice because some compilers refuse to overwrite an
17284 # existing .o file with -o, though they will create one.
17285 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17286 rm -f conftest2.*
17287 if { { case "(($ac_try" in
17288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289   *) ac_try_echo=$ac_try;;
17290 esac
17291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17292 $as_echo "$ac_try_echo"; } >&5
17293   (eval "$ac_try") 2>&5
17294   ac_status=$?
17295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17296   test $ac_status = 0; } &&
17297    test -f conftest2.$ac_objext && { { case "(($ac_try" in
17298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299   *) ac_try_echo=$ac_try;;
17300 esac
17301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17302 $as_echo "$ac_try_echo"; } >&5
17303   (eval "$ac_try") 2>&5
17304   ac_status=$?
17305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17306   test $ac_status = 0; };
17307 then
17308   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17309   if test "x$CC" != xcc; then
17310     # Test first that cc exists at all.
17311     if { ac_try='cc -c conftest.$ac_ext >&5'
17312   { { case "(($ac_try" in
17313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314   *) ac_try_echo=$ac_try;;
17315 esac
17316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17317 $as_echo "$ac_try_echo"; } >&5
17318   (eval "$ac_try") 2>&5
17319   ac_status=$?
17320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17321   test $ac_status = 0; }; }; then
17322       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17323       rm -f conftest2.*
17324       if { { case "(($ac_try" in
17325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326   *) ac_try_echo=$ac_try;;
17327 esac
17328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17329 $as_echo "$ac_try_echo"; } >&5
17330   (eval "$ac_try") 2>&5
17331   ac_status=$?
17332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17333   test $ac_status = 0; } &&
17334          test -f conftest2.$ac_objext && { { case "(($ac_try" in
17335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336   *) ac_try_echo=$ac_try;;
17337 esac
17338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17339 $as_echo "$ac_try_echo"; } >&5
17340   (eval "$ac_try") 2>&5
17341   ac_status=$?
17342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17343   test $ac_status = 0; };
17344       then
17345         # cc works too.
17346         :
17347       else
17348         # cc exists but doesn't like -o.
17349         eval ac_cv_prog_cc_${ac_cc}_c_o=no
17350       fi
17351     fi
17352   fi
17353 else
17354   eval ac_cv_prog_cc_${ac_cc}_c_o=no
17355 fi
17356 rm -f core conftest*
17357
17358 fi
17359 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17361 $as_echo "yes" >&6; }
17362 else
17363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17364 $as_echo "no" >&6; }
17365
17366 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17367
17368 fi
17369
17370 ac_ext=cpp
17371 ac_cpp='$CXXCPP $CPPFLAGS'
17372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17375 if test -z "$CXX"; then
17376   if test -n "$CCC"; then
17377     CXX=$CCC
17378   else
17379     if test -n "$ac_tool_prefix"; then
17380   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17381   do
17382     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17385 $as_echo_n "checking for $ac_word... " >&6; }
17386 if ${ac_cv_prog_CXX+:} false; then :
17387   $as_echo_n "(cached) " >&6
17388 else
17389   if test -n "$CXX"; then
17390   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17391 else
17392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17393 for as_dir in $PATH
17394 do
17395   IFS=$as_save_IFS
17396   test -z "$as_dir" && as_dir=.
17397     for ac_exec_ext in '' $ac_executable_extensions; do
17398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17399     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17401     break 2
17402   fi
17403 done
17404   done
17405 IFS=$as_save_IFS
17406
17407 fi
17408 fi
17409 CXX=$ac_cv_prog_CXX
17410 if test -n "$CXX"; then
17411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
17412 $as_echo "$CXX" >&6; }
17413 else
17414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17415 $as_echo "no" >&6; }
17416 fi
17417
17418
17419     test -n "$CXX" && break
17420   done
17421 fi
17422 if test -z "$CXX"; then
17423   ac_ct_CXX=$CXX
17424   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17425 do
17426   # Extract the first word of "$ac_prog", so it can be a program name with args.
17427 set dummy $ac_prog; ac_word=$2
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17429 $as_echo_n "checking for $ac_word... " >&6; }
17430 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
17431   $as_echo_n "(cached) " >&6
17432 else
17433   if test -n "$ac_ct_CXX"; then
17434   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17435 else
17436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17437 for as_dir in $PATH
17438 do
17439   IFS=$as_save_IFS
17440   test -z "$as_dir" && as_dir=.
17441     for ac_exec_ext in '' $ac_executable_extensions; do
17442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17443     ac_cv_prog_ac_ct_CXX="$ac_prog"
17444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17445     break 2
17446   fi
17447 done
17448   done
17449 IFS=$as_save_IFS
17450
17451 fi
17452 fi
17453 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17454 if test -n "$ac_ct_CXX"; then
17455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
17456 $as_echo "$ac_ct_CXX" >&6; }
17457 else
17458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17459 $as_echo "no" >&6; }
17460 fi
17461
17462
17463   test -n "$ac_ct_CXX" && break
17464 done
17465
17466   if test "x$ac_ct_CXX" = x; then
17467     CXX="g++"
17468   else
17469     case $cross_compiling:$ac_tool_warned in
17470 yes:)
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17473 ac_tool_warned=yes ;;
17474 esac
17475     CXX=$ac_ct_CXX
17476   fi
17477 fi
17478
17479   fi
17480 fi
17481 # Provide some information about the compiler.
17482 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
17483 set X $ac_compile
17484 ac_compiler=$2
17485 for ac_option in --version -v -V -qversion; do
17486   { { ac_try="$ac_compiler $ac_option >&5"
17487 case "(($ac_try" in
17488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489   *) ac_try_echo=$ac_try;;
17490 esac
17491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17492 $as_echo "$ac_try_echo"; } >&5
17493   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17494   ac_status=$?
17495   if test -s conftest.err; then
17496     sed '10a\
17497 ... rest of stderr output deleted ...
17498          10q' conftest.err >conftest.er1
17499     cat conftest.er1 >&5
17500   fi
17501   rm -f conftest.er1 conftest.err
17502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17503   test $ac_status = 0; }
17504 done
17505
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
17507 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
17508 if ${ac_cv_cxx_compiler_gnu+:} false; then :
17509   $as_echo_n "(cached) " >&6
17510 else
17511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17512 /* end confdefs.h.  */
17513
17514 int
17515 main ()
17516 {
17517 #ifndef __GNUC__
17518        choke me
17519 #endif
17520
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 if ac_fn_cxx_try_compile "$LINENO"; then :
17526   ac_compiler_gnu=yes
17527 else
17528   ac_compiler_gnu=no
17529 fi
17530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17531 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17532
17533 fi
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
17535 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
17536 if test $ac_compiler_gnu = yes; then
17537   GXX=yes
17538 else
17539   GXX=
17540 fi
17541 ac_test_CXXFLAGS=${CXXFLAGS+set}
17542 ac_save_CXXFLAGS=$CXXFLAGS
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
17544 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
17545 if ${ac_cv_prog_cxx_g+:} false; then :
17546   $as_echo_n "(cached) " >&6
17547 else
17548   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17549    ac_cxx_werror_flag=yes
17550    ac_cv_prog_cxx_g=no
17551    CXXFLAGS="-g"
17552    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17553 /* end confdefs.h.  */
17554
17555 int
17556 main ()
17557 {
17558
17559   ;
17560   return 0;
17561 }
17562 _ACEOF
17563 if ac_fn_cxx_try_compile "$LINENO"; then :
17564   ac_cv_prog_cxx_g=yes
17565 else
17566   CXXFLAGS=""
17567       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h.  */
17569
17570 int
17571 main ()
17572 {
17573
17574   ;
17575   return 0;
17576 }
17577 _ACEOF
17578 if ac_fn_cxx_try_compile "$LINENO"; then :
17579
17580 else
17581   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17582          CXXFLAGS="-g"
17583          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h.  */
17585
17586 int
17587 main ()
17588 {
17589
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 if ac_fn_cxx_try_compile "$LINENO"; then :
17595   ac_cv_prog_cxx_g=yes
17596 fi
17597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17598 fi
17599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17600 fi
17601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17603 fi
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
17605 $as_echo "$ac_cv_prog_cxx_g" >&6; }
17606 if test "$ac_test_CXXFLAGS" = set; then
17607   CXXFLAGS=$ac_save_CXXFLAGS
17608 elif test $ac_cv_prog_cxx_g = yes; then
17609   if test "$GXX" = yes; then
17610     CXXFLAGS="-g -O2"
17611   else
17612     CXXFLAGS="-g"
17613   fi
17614 else
17615   if test "$GXX" = yes; then
17616     CXXFLAGS="-O2"
17617   else
17618     CXXFLAGS=
17619   fi
17620 fi
17621 ac_ext=c
17622 ac_cpp='$CPP $CPPFLAGS'
17623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17626
17627 depcc="$CXX"  am_compiler_list=
17628
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17630 $as_echo_n "checking dependency style of $depcc... " >&6; }
17631 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
17632   $as_echo_n "(cached) " >&6
17633 else
17634   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17635   # We make a subdir and do the tests there.  Otherwise we can end up
17636   # making bogus files that we don't know about and never remove.  For
17637   # instance it was reported that on HP-UX the gcc test will end up
17638   # making a dummy file named 'D' -- because '-MD' means "put the output
17639   # in D".
17640   rm -rf conftest.dir
17641   mkdir conftest.dir
17642   # Copy depcomp to subdir because otherwise we won't find it if we're
17643   # using a relative directory.
17644   cp "$am_depcomp" conftest.dir
17645   cd conftest.dir
17646   # We will build objects and dependencies in a subdirectory because
17647   # it helps to detect inapplicable dependency modes.  For instance
17648   # both Tru64's cc and ICC support -MD to output dependencies as a
17649   # side effect of compilation, but ICC will put the dependencies in
17650   # the current directory while Tru64 will put them in the object
17651   # directory.
17652   mkdir sub
17653
17654   am_cv_CXX_dependencies_compiler_type=none
17655   if test "$am_compiler_list" = ""; then
17656      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17657   fi
17658   am__universal=false
17659   case " $depcc " in #(
17660      *\ -arch\ *\ -arch\ *) am__universal=true ;;
17661      esac
17662
17663   for depmode in $am_compiler_list; do
17664     # Setup a source with many dependencies, because some compilers
17665     # like to wrap large dependency lists on column 80 (with \), and
17666     # we should not choose a depcomp mode which is confused by this.
17667     #
17668     # We need to recreate these files for each test, as the compiler may
17669     # overwrite some of them when testing with obscure command lines.
17670     # This happens at least with the AIX C compiler.
17671     : > sub/conftest.c
17672     for i in 1 2 3 4 5 6; do
17673       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17674       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17675       # Solaris 10 /bin/sh.
17676       echo '/* dummy */' > sub/conftst$i.h
17677     done
17678     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17679
17680     # We check with '-c' and '-o' for the sake of the "dashmstdout"
17681     # mode.  It turns out that the SunPro C++ compiler does not properly
17682     # handle '-M -o', and we need to detect this.  Also, some Intel
17683     # versions had trouble with output in subdirs.
17684     am__obj=sub/conftest.${OBJEXT-o}
17685     am__minus_obj="-o $am__obj"
17686     case $depmode in
17687     gcc)
17688       # This depmode causes a compiler race in universal mode.
17689       test "$am__universal" = false || continue
17690       ;;
17691     nosideeffect)
17692       # After this tag, mechanisms are not by side-effect, so they'll
17693       # only be used when explicitly requested.
17694       if test "x$enable_dependency_tracking" = xyes; then
17695         continue
17696       else
17697         break
17698       fi
17699       ;;
17700     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17701       # This compiler won't grok '-c -o', but also, the minuso test has
17702       # not run yet.  These depmodes are late enough in the game, and
17703       # so weak that their functioning should not be impacted.
17704       am__obj=conftest.${OBJEXT-o}
17705       am__minus_obj=
17706       ;;
17707     none) break ;;
17708     esac
17709     if depmode=$depmode \
17710        source=sub/conftest.c object=$am__obj \
17711        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17712        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17713          >/dev/null 2>conftest.err &&
17714        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17715        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17716        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17717        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17718       # icc doesn't choke on unknown options, it will just issue warnings
17719       # or remarks (even with -Werror).  So we grep stderr for any message
17720       # that says an option was ignored or not supported.
17721       # When given -MP, icc 7.0 and 7.1 complain thusly:
17722       #   icc: Command line warning: ignoring option '-M'; no argument required
17723       # The diagnosis changed in icc 8.0:
17724       #   icc: Command line remark: option '-MP' not supported
17725       if (grep 'ignoring option' conftest.err ||
17726           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17727         am_cv_CXX_dependencies_compiler_type=$depmode
17728         break
17729       fi
17730     fi
17731   done
17732
17733   cd ..
17734   rm -rf conftest.dir
17735 else
17736   am_cv_CXX_dependencies_compiler_type=none
17737 fi
17738
17739 fi
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17741 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17742 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17743
17744  if
17745   test "x$enable_dependency_tracking" != xno \
17746   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17747   am__fastdepCXX_TRUE=
17748   am__fastdepCXX_FALSE='#'
17749 else
17750   am__fastdepCXX_TRUE='#'
17751   am__fastdepCXX_FALSE=
17752 fi
17753
17754
17755
17756 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17757 if test "x$ac_cv_type_size_t" = xyes; then :
17758
17759 else
17760
17761 cat >>confdefs.h <<_ACEOF
17762 #define size_t unsigned int
17763 _ACEOF
17764
17765 fi
17766
17767 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17768 case $ac_cv_c_uint8_t in #(
17769   no|yes) ;; #(
17770   *)
17771
17772 $as_echo "#define _UINT8_T 1" >>confdefs.h
17773
17774
17775 cat >>confdefs.h <<_ACEOF
17776 #define uint8_t $ac_cv_c_uint8_t
17777 _ACEOF
17778 ;;
17779   esac
17780
17781 # By default we simply use the C compiler to build assembly code.
17782
17783 test "${CCAS+set}" = set || CCAS=$CC
17784 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
17785
17786
17787
17788 depcc="$CCAS"   am_compiler_list=
17789
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17791 $as_echo_n "checking dependency style of $depcc... " >&6; }
17792 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
17793   $as_echo_n "(cached) " >&6
17794 else
17795   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17796   # We make a subdir and do the tests there.  Otherwise we can end up
17797   # making bogus files that we don't know about and never remove.  For
17798   # instance it was reported that on HP-UX the gcc test will end up
17799   # making a dummy file named 'D' -- because '-MD' means "put the output
17800   # in D".
17801   rm -rf conftest.dir
17802   mkdir conftest.dir
17803   # Copy depcomp to subdir because otherwise we won't find it if we're
17804   # using a relative directory.
17805   cp "$am_depcomp" conftest.dir
17806   cd conftest.dir
17807   # We will build objects and dependencies in a subdirectory because
17808   # it helps to detect inapplicable dependency modes.  For instance
17809   # both Tru64's cc and ICC support -MD to output dependencies as a
17810   # side effect of compilation, but ICC will put the dependencies in
17811   # the current directory while Tru64 will put them in the object
17812   # directory.
17813   mkdir sub
17814
17815   am_cv_CCAS_dependencies_compiler_type=none
17816   if test "$am_compiler_list" = ""; then
17817      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17818   fi
17819   am__universal=false
17820
17821
17822   for depmode in $am_compiler_list; do
17823     # Setup a source with many dependencies, because some compilers
17824     # like to wrap large dependency lists on column 80 (with \), and
17825     # we should not choose a depcomp mode which is confused by this.
17826     #
17827     # We need to recreate these files for each test, as the compiler may
17828     # overwrite some of them when testing with obscure command lines.
17829     # This happens at least with the AIX C compiler.
17830     : > sub/conftest.c
17831     for i in 1 2 3 4 5 6; do
17832       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17833       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17834       # Solaris 10 /bin/sh.
17835       echo '/* dummy */' > sub/conftst$i.h
17836     done
17837     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17838
17839     # We check with '-c' and '-o' for the sake of the "dashmstdout"
17840     # mode.  It turns out that the SunPro C++ compiler does not properly
17841     # handle '-M -o', and we need to detect this.  Also, some Intel
17842     # versions had trouble with output in subdirs.
17843     am__obj=sub/conftest.${OBJEXT-o}
17844     am__minus_obj="-o $am__obj"
17845     case $depmode in
17846     gcc)
17847       # This depmode causes a compiler race in universal mode.
17848       test "$am__universal" = false || continue
17849       ;;
17850     nosideeffect)
17851       # After this tag, mechanisms are not by side-effect, so they'll
17852       # only be used when explicitly requested.
17853       if test "x$enable_dependency_tracking" = xyes; then
17854         continue
17855       else
17856         break
17857       fi
17858       ;;
17859     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17860       # This compiler won't grok '-c -o', but also, the minuso test has
17861       # not run yet.  These depmodes are late enough in the game, and
17862       # so weak that their functioning should not be impacted.
17863       am__obj=conftest.${OBJEXT-o}
17864       am__minus_obj=
17865       ;;
17866     none) break ;;
17867     esac
17868     if depmode=$depmode \
17869        source=sub/conftest.c object=$am__obj \
17870        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17871        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17872          >/dev/null 2>conftest.err &&
17873        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17874        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17875        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17876        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17877       # icc doesn't choke on unknown options, it will just issue warnings
17878       # or remarks (even with -Werror).  So we grep stderr for any message
17879       # that says an option was ignored or not supported.
17880       # When given -MP, icc 7.0 and 7.1 complain thusly:
17881       #   icc: Command line warning: ignoring option '-M'; no argument required
17882       # The diagnosis changed in icc 8.0:
17883       #   icc: Command line remark: option '-MP' not supported
17884       if (grep 'ignoring option' conftest.err ||
17885           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17886         am_cv_CCAS_dependencies_compiler_type=$depmode
17887         break
17888       fi
17889     fi
17890   done
17891
17892   cd ..
17893   rm -rf conftest.dir
17894 else
17895   am_cv_CCAS_dependencies_compiler_type=none
17896 fi
17897
17898 fi
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
17900 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
17901 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
17902
17903  if
17904   test "x$enable_dependency_tracking" != xno \
17905   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
17906   am__fastdepCCAS_TRUE=
17907   am__fastdepCCAS_FALSE='#'
17908 else
17909   am__fastdepCCAS_TRUE='#'
17910   am__fastdepCCAS_FALSE=
17911 fi
17912
17913
17914
17915 LIBM=
17916 case $host in
17917 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
17918   # These system don't have libm, or don't need it
17919   ;;
17920 *-ncr-sysv4.3*)
17921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
17922 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
17923 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
17924   $as_echo_n "(cached) " >&6
17925 else
17926   ac_check_lib_save_LIBS=$LIBS
17927 LIBS="-lmw  $LIBS"
17928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h.  */
17930
17931 /* Override any GCC internal prototype to avoid an error.
17932    Use char because int might match the return type of a GCC
17933    builtin and then its argument prototype would still apply.  */
17934 #ifdef __cplusplus
17935 extern "C"
17936 #endif
17937 char _mwvalidcheckl ();
17938 int
17939 main ()
17940 {
17941 return _mwvalidcheckl ();
17942   ;
17943   return 0;
17944 }
17945 _ACEOF
17946 if ac_fn_c_try_link "$LINENO"; then :
17947   ac_cv_lib_mw__mwvalidcheckl=yes
17948 else
17949   ac_cv_lib_mw__mwvalidcheckl=no
17950 fi
17951 rm -f core conftest.err conftest.$ac_objext \
17952     conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17954 fi
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
17956 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
17957 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
17958   LIBM="-lmw"
17959 fi
17960
17961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
17962 $as_echo_n "checking for cos in -lm... " >&6; }
17963 if ${ac_cv_lib_m_cos+:} false; then :
17964   $as_echo_n "(cached) " >&6
17965 else
17966   ac_check_lib_save_LIBS=$LIBS
17967 LIBS="-lm  $LIBS"
17968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h.  */
17970
17971 /* Override any GCC internal prototype to avoid an error.
17972    Use char because int might match the return type of a GCC
17973    builtin and then its argument prototype would still apply.  */
17974 #ifdef __cplusplus
17975 extern "C"
17976 #endif
17977 char cos ();
17978 int
17979 main ()
17980 {
17981 return cos ();
17982   ;
17983   return 0;
17984 }
17985 _ACEOF
17986 if ac_fn_c_try_link "$LINENO"; then :
17987   ac_cv_lib_m_cos=yes
17988 else
17989   ac_cv_lib_m_cos=no
17990 fi
17991 rm -f core conftest.err conftest.$ac_objext \
17992     conftest$ac_exeext conftest.$ac_ext
17993 LIBS=$ac_check_lib_save_LIBS
17994 fi
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
17996 $as_echo "$ac_cv_lib_m_cos" >&6; }
17997 if test "x$ac_cv_lib_m_cos" = xyes; then :
17998   LIBM="$LIBM -lm"
17999 fi
18000
18001   ;;
18002 *)
18003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
18004 $as_echo_n "checking for cos in -lm... " >&6; }
18005 if ${ac_cv_lib_m_cos+:} false; then :
18006   $as_echo_n "(cached) " >&6
18007 else
18008   ac_check_lib_save_LIBS=$LIBS
18009 LIBS="-lm  $LIBS"
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h.  */
18012
18013 /* Override any GCC internal prototype to avoid an error.
18014    Use char because int might match the return type of a GCC
18015    builtin and then its argument prototype would still apply.  */
18016 #ifdef __cplusplus
18017 extern "C"
18018 #endif
18019 char cos ();
18020 int
18021 main ()
18022 {
18023 return cos ();
18024   ;
18025   return 0;
18026 }
18027 _ACEOF
18028 if ac_fn_c_try_link "$LINENO"; then :
18029   ac_cv_lib_m_cos=yes
18030 else
18031   ac_cv_lib_m_cos=no
18032 fi
18033 rm -f core conftest.err conftest.$ac_objext \
18034     conftest$ac_exeext conftest.$ac_ext
18035 LIBS=$ac_check_lib_save_LIBS
18036 fi
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
18038 $as_echo "$ac_cv_lib_m_cos" >&6; }
18039 if test "x$ac_cv_lib_m_cos" = xyes; then :
18040   LIBM="-lm"
18041 fi
18042
18043   ;;
18044 esac
18045
18046
18047
18048 OPTIMIZE_CFLAGS="-Os -fomit-frame-pointer"
18049 OPTIMIZE_FAST_CFLAGS="-O2 -fomit-frame-pointer"
18050 OPTIMIZE_HUGE_CFLAGS="-funroll-loops -DTFM_SMALL_SET -DTFM_HUGE_SET"
18051 DEBUG_CFLAGS="-g -DDEBUG -DDEBUG_CYASSL"
18052
18053 thread_ls_on=no
18054 # Thread local storage
18055
18056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
18057 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
18058   if ${ac_cv_tls+:} false; then :
18059   $as_echo_n "(cached) " >&6
18060 else
18061
18062     ax_tls_keywords="__thread __declspec(thread) none"
18063     for ax_tls_keyword in $ax_tls_keywords; do
18064        case $ax_tls_keyword in #(
18065   none) :
18066     ac_cv_tls=none ; break ;; #(
18067   *) :
18068     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18069 /* end confdefs.h.  */
18070 #include <stdlib.h>
18071                static void
18072                foo(void) {
18073                static  $ax_tls_keyword  int bar;
18074                exit(1);
18075                }
18076 int
18077 main ()
18078 {
18079
18080   ;
18081   return 0;
18082 }
18083 _ACEOF
18084 if ac_fn_c_try_compile "$LINENO"; then :
18085   ac_cv_tls=$ax_tls_keyword ; break
18086 else
18087   ac_cv_tls=none
18088
18089 fi
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
18091 esac
18092     done
18093
18094 fi
18095
18096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
18097 $as_echo "$ac_cv_tls" >&6; }
18098
18099   if test "$ac_cv_tls" != "none"; then :
18100
18101 cat >>confdefs.h <<_ACEOF
18102 #define TLS $ac_cv_tls
18103 _ACEOF
18104
18105
18106         AM_CFLAGS="$AM_CFLAGS -DHAVE_THREAD_LS"
18107         thread_ls_on=yes
18108
18109 else
18110   :
18111
18112 fi
18113
18114
18115
18116 # DEBUG
18117     # Check whether --enable-debug was given.
18118 if test "${enable_debug+set}" = set; then :
18119   enableval=$enable_debug; ax_enable_debug=$enableval
18120 else
18121   ax_enable_debug=no
18122 fi
18123
18124
18125         if test "x$ax_enable_debug" = xyes; then :
18126
18127 $as_echo "#define DEBUG 1" >>confdefs.h
18128
18129 else
18130
18131
18132 $as_echo "#define DEBUG 0" >>confdefs.h
18133
18134 fi
18135
18136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug" >&5
18137 $as_echo_n "checking for debug... " >&6; }
18138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_debug" >&5
18139 $as_echo "$ax_enable_debug" >&6; }
18140      if test "x${ax_enable_debug}" = xyes; then
18141   DEBUG_TRUE=
18142   DEBUG_FALSE='#'
18143 else
18144   DEBUG_TRUE='#'
18145   DEBUG_FALSE=
18146 fi
18147
18148 if test "$ax_enable_debug" = "yes"; then :
18149   AM_CFLAGS="$DEBUG_CFLAGS $AM_CFLAGS"
18150 else
18151   AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
18152 fi
18153
18154
18155 # SINGLE THREADED
18156 # Check whether --enable-singlethreaded was given.
18157 if test "${enable_singlethreaded+set}" = set; then :
18158   enableval=$enable_singlethreaded;  ENABLED_SINGLETHREADED=$enableval
18159 else
18160    ENABLED_SINGLETHREADED=no
18161 fi
18162
18163
18164
18165             if test x"$CC" = xclang; then
18166                 wolfssl_darwin_clang=yes
18167             elif test x"$CC" = x || test x"$CC" = xgcc; then
18168                 if /usr/bin/gcc -v 2>&1 | grep 'clang' >/dev/null 2>&1; then
18169                     wolfssl_darwin_clang=yes
18170                 fi
18171             fi
18172
18173 if  test "x$ENABLED_SINGLETHREADED" = "xno" ; then :
18174
18175
18176
18177 ac_ext=c
18178 ac_cpp='$CPP $CPPFLAGS'
18179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18182
18183 ax_pthread_ok=no
18184
18185 # We used to check for pthread.h first, but this fails if pthread.h
18186 # requires special compiler flags (e.g. on True64 or Sequent).
18187 # It gets checked for in the link test anyway.
18188
18189 # First of all, check if the user has set any of the PTHREAD_LIBS,
18190 # etcetera environment variables, and if threads linking works using
18191 # them:
18192 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18193         save_CFLAGS="$CFLAGS"
18194         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18195         save_LIBS="$LIBS"
18196         LIBS="$PTHREAD_LIBS $LIBS"
18197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18198 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18199         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h.  */
18201
18202 /* Override any GCC internal prototype to avoid an error.
18203    Use char because int might match the return type of a GCC
18204    builtin and then its argument prototype would still apply.  */
18205 #ifdef __cplusplus
18206 extern "C"
18207 #endif
18208 char pthread_join ();
18209 int
18210 main ()
18211 {
18212 return pthread_join ();
18213   ;
18214   return 0;
18215 }
18216 _ACEOF
18217 if ac_fn_c_try_link "$LINENO"; then :
18218   ax_pthread_ok=yes
18219 fi
18220 rm -f core conftest.err conftest.$ac_objext \
18221     conftest$ac_exeext conftest.$ac_ext
18222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18223 $as_echo "$ax_pthread_ok" >&6; }
18224         if test x"$ax_pthread_ok" = xno; then
18225                 PTHREAD_LIBS=""
18226                 PTHREAD_CFLAGS=""
18227         fi
18228         LIBS="$save_LIBS"
18229         CFLAGS="$save_CFLAGS"
18230 fi
18231
18232 # We must check for the threads library under a number of different
18233 # names; the ordering is very important because some systems
18234 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18235 # libraries is broken (non-POSIX).
18236
18237 # Create a list of thread flags to try.  Items starting with a "-" are
18238 # C compiler flags, and other items are library names, except for "none"
18239 # which indicates that we try without any flags at all, and "pthread-config"
18240 # which is a program returning the flags for the Pth emulation library.
18241
18242 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18243
18244 # The ordering *is* (sometimes) important.  Some notes on the
18245 # individual items follow:
18246
18247 # pthreads: AIX (must check this before -lpthread)
18248 # none: in case threads are in libc; should be tried before -Kthread and
18249 #       other compiler flags to prevent continual compiler warnings
18250 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18251 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18252 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18253 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18254 # -pthreads: Solaris/gcc
18255 # -mthreads: Mingw32/gcc, Lynx/gcc
18256 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18257 #      doesn't hurt to check since this sometimes defines pthreads too;
18258 #      also defines -D_REENTRANT)
18259 #      ... -mt is also the pthreads flag for HP/aCC
18260 # pthread: Linux, etcetera
18261 # --thread-safe: KAI C++
18262 # pthread-config: use pthread-config program (for GNU Pth library)
18263
18264 case ${host_os} in
18265         solaris*)
18266
18267         # On Solaris (at least, for some versions), libc contains stubbed
18268         # (non-functional) versions of the pthreads routines, so link-based
18269         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
18270         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18271         # a function called by this macro, so we could check for that, but
18272         # who knows whether they'll stub that too in a future libc.)  So,
18273         # we'll just look for -pthreads and -lpthread first:
18274
18275         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18276         ;;
18277
18278         darwin*)
18279
18280         if test x"$wolfssl_darwin_clang" = x"yes"; then :
18281   ax_pthread_flags="$ax_pthread_flags"
18282 else
18283   ax_pthread_flags="-pthread $ax_pthread_flags"
18284 fi
18285         ;;
18286 esac
18287
18288 if test x"$ax_pthread_ok" = xno; then
18289 for flag in $ax_pthread_flags; do
18290
18291         case $flag in
18292                 none)
18293                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18294 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18295                 ;;
18296
18297                 -*)
18298                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18299 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18300                 PTHREAD_CFLAGS="$flag"
18301                 ;;
18302
18303                 pthread-config)
18304                 # Extract the first word of "pthread-config", so it can be a program name with args.
18305 set dummy pthread-config; ac_word=$2
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18307 $as_echo_n "checking for $ac_word... " >&6; }
18308 if ${ac_cv_prog_ax_pthread_config+:} false; then :
18309   $as_echo_n "(cached) " >&6
18310 else
18311   if test -n "$ax_pthread_config"; then
18312   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18313 else
18314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18315 for as_dir in $PATH
18316 do
18317   IFS=$as_save_IFS
18318   test -z "$as_dir" && as_dir=.
18319     for ac_exec_ext in '' $ac_executable_extensions; do
18320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18321     ac_cv_prog_ax_pthread_config="yes"
18322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18323     break 2
18324   fi
18325 done
18326   done
18327 IFS=$as_save_IFS
18328
18329   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18330 fi
18331 fi
18332 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18333 if test -n "$ax_pthread_config"; then
18334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18335 $as_echo "$ax_pthread_config" >&6; }
18336 else
18337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18338 $as_echo "no" >&6; }
18339 fi
18340
18341
18342                 if test x"$ax_pthread_config" = xno; then continue; fi
18343                 PTHREAD_CFLAGS="`pthread-config --cflags`"
18344                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18345                 ;;
18346
18347                 *)
18348                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18349 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18350                 PTHREAD_LIBS="-l$flag"
18351                 ;;
18352         esac
18353
18354         save_LIBS="$LIBS"
18355         save_CFLAGS="$CFLAGS"
18356         LIBS="$PTHREAD_LIBS $LIBS"
18357         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18358
18359         # Check for various functions.  We must include pthread.h,
18360         # since some functions may be macros.  (On the Sequent, we
18361         # need a special flag -Kthread to make this header compile.)
18362         # We check for pthread_join because it is in -lpthread on IRIX
18363         # while pthread_create is in libc.  We check for pthread_attr_init
18364         # due to DEC craziness with -lpthreads.  We check for
18365         # pthread_cleanup_push because it is one of the few pthread
18366         # functions on Solaris that doesn't have a non-functional libc stub.
18367         # We try pthread_create on general principles.
18368         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h.  */
18370 #include <pthread.h>
18371                         static void routine(void *a) { a = 0; }
18372                         static void *start_routine(void *a) { return a; }
18373 int
18374 main ()
18375 {
18376 pthread_t th; pthread_attr_t attr;
18377                         pthread_create(&th, 0, start_routine, 0);
18378                         pthread_join(th, 0);
18379                         pthread_attr_init(&attr);
18380                         pthread_cleanup_push(routine, 0);
18381                         pthread_cleanup_pop(0) /* ; */
18382   ;
18383   return 0;
18384 }
18385 _ACEOF
18386 if ac_fn_c_try_link "$LINENO"; then :
18387   ax_pthread_ok=yes
18388 fi
18389 rm -f core conftest.err conftest.$ac_objext \
18390     conftest$ac_exeext conftest.$ac_ext
18391
18392         LIBS="$save_LIBS"
18393         CFLAGS="$save_CFLAGS"
18394
18395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18396 $as_echo "$ax_pthread_ok" >&6; }
18397         if test "x$ax_pthread_ok" = xyes; then
18398                 break;
18399         fi
18400
18401         PTHREAD_LIBS=""
18402         PTHREAD_CFLAGS=""
18403 done
18404 fi
18405
18406 # Various other checks:
18407 if test "x$ax_pthread_ok" = xyes; then
18408         save_LIBS="$LIBS"
18409         LIBS="$PTHREAD_LIBS $LIBS"
18410         save_CFLAGS="$CFLAGS"
18411         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18412
18413         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18414         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18415 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18416         attr_name=unknown
18417         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18418             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h.  */
18420 #include <pthread.h>
18421 int
18422 main ()
18423 {
18424 int attr = $attr; return attr /* ; */
18425   ;
18426   return 0;
18427 }
18428 _ACEOF
18429 if ac_fn_c_try_link "$LINENO"; then :
18430   attr_name=$attr; break
18431 fi
18432 rm -f core conftest.err conftest.$ac_objext \
18433     conftest$ac_exeext conftest.$ac_ext
18434         done
18435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18436 $as_echo "$attr_name" >&6; }
18437         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18438
18439 cat >>confdefs.h <<_ACEOF
18440 #define PTHREAD_CREATE_JOINABLE $attr_name
18441 _ACEOF
18442
18443         fi
18444
18445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18446 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18447         flag=no
18448         case ${host_os} in
18449             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
18450             osf* | hpux*) flag="-D_REENTRANT";;
18451             solaris*)
18452             if test "$GCC" = "yes"; then
18453                 flag="-D_REENTRANT"
18454             else
18455                 flag="-mt -D_REENTRANT"
18456             fi
18457             ;;
18458         esac
18459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18460 $as_echo "${flag}" >&6; }
18461         if test "x$flag" != xno; then
18462             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18463         fi
18464
18465         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18466 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18467 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
18468   $as_echo_n "(cached) " >&6
18469 else
18470
18471                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h.  */
18473
18474                     #include <pthread.h>
18475 int
18476 main ()
18477 {
18478 int i = PTHREAD_PRIO_INHERIT;
18479   ;
18480   return 0;
18481 }
18482 _ACEOF
18483 if ac_fn_c_try_link "$LINENO"; then :
18484   ax_cv_PTHREAD_PRIO_INHERIT=yes
18485 else
18486   ax_cv_PTHREAD_PRIO_INHERIT=no
18487 fi
18488 rm -f core conftest.err conftest.$ac_objext \
18489     conftest$ac_exeext conftest.$ac_ext
18490
18491 fi
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18493 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18494         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
18495
18496 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18497
18498 fi
18499
18500         LIBS="$save_LIBS"
18501         CFLAGS="$save_CFLAGS"
18502
18503         # More AIX lossage: compile with *_r variant
18504         if test "x$GCC" != xyes; then
18505             case $host_os in
18506                 aix*)
18507                 case "x/$CC" in #(
18508   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18509     #handle absolute path differently from PATH based program lookup
18510                    case "x$CC" in #(
18511   x/*) :
18512     if as_fn_executable_p ${CC}_r; then :
18513   PTHREAD_CC="${CC}_r"
18514 fi ;; #(
18515   *) :
18516     for ac_prog in ${CC}_r
18517 do
18518   # Extract the first word of "$ac_prog", so it can be a program name with args.
18519 set dummy $ac_prog; ac_word=$2
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18521 $as_echo_n "checking for $ac_word... " >&6; }
18522 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18523   $as_echo_n "(cached) " >&6
18524 else
18525   if test -n "$PTHREAD_CC"; then
18526   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18527 else
18528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 for as_dir in $PATH
18530 do
18531   IFS=$as_save_IFS
18532   test -z "$as_dir" && as_dir=.
18533     for ac_exec_ext in '' $ac_executable_extensions; do
18534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18535     ac_cv_prog_PTHREAD_CC="$ac_prog"
18536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18537     break 2
18538   fi
18539 done
18540   done
18541 IFS=$as_save_IFS
18542
18543 fi
18544 fi
18545 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18546 if test -n "$PTHREAD_CC"; then
18547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18548 $as_echo "$PTHREAD_CC" >&6; }
18549 else
18550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18551 $as_echo "no" >&6; }
18552 fi
18553
18554
18555   test -n "$PTHREAD_CC" && break
18556 done
18557 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18558  ;;
18559 esac ;; #(
18560   *) :
18561      ;;
18562 esac
18563                 ;;
18564             esac
18565         fi
18566 fi
18567
18568 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18569
18570
18571
18572
18573
18574 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18575 if test x"$ax_pthread_ok" = xyes; then
18576
18577
18578 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18579
18580                    AM_CFLAGS="-D_POSIX_THREADS $AM_CFLAGS $PTHREAD_CFLAGS"
18581                    LIBS="$LIBS $PTHREAD_LIBS"
18582
18583         :
18584 else
18585         ax_pthread_ok=no
18586
18587                       ENABLED_SINGLETHREADED=yes
18588
18589 fi
18590 ac_ext=c
18591 ac_cpp='$CPP $CPPFLAGS'
18592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18595
18596
18597
18598 fi
18599
18600 if  test "x$ENABLED_SINGLETHREADED" = "xyes" ; then :
18601    AM_CFLAGS="-DSINGLE_THREADED $AM_CFLAGS"
18602 fi
18603
18604
18605 # DTLS
18606 # Check whether --enable-dtls was given.
18607 if test "${enable_dtls+set}" = set; then :
18608   enableval=$enable_dtls;  ENABLED_DTLS=$enableval
18609 else
18610    ENABLED_DTLS=no
18611
18612 fi
18613
18614 if test "$ENABLED_DTLS" = "yes"
18615 then
18616   AM_CFLAGS="-DCYASSL_DTLS $AM_CFLAGS"
18617 fi
18618
18619
18620 # OPENSSL Extra Compatibility
18621 # Check whether --enable-opensslextra was given.
18622 if test "${enable_opensslextra+set}" = set; then :
18623   enableval=$enable_opensslextra;  ENABLED_OPENSSLEXTRA=$enableval
18624 else
18625    ENABLED_OPENSSLEXTRA=no
18626
18627 fi
18628
18629 if test "$ENABLED_OPENSSLEXTRA" = "yes"
18630 then
18631   AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
18632 fi
18633
18634 if test "$ENABLED_OPENSSLEXTRA" = "yes" && test "$ENABLED_SMALL" = "yes"
18635 then
18636     as_fn_error $? "cannot enable small and opensslextra, only one or the other." "$LINENO" 5
18637 fi
18638
18639
18640 # IPv6 Test Apps
18641 # Check whether --enable-ipv6 was given.
18642 if test "${enable_ipv6+set}" = set; then :
18643   enableval=$enable_ipv6;  ENABLED_IPV6=$enableval
18644 else
18645    ENABLED_IPV6=no
18646
18647 fi
18648
18649
18650 if test "$ENABLED_IPV6" = "yes"
18651 then
18652     AM_CFLAGS="$AM_CFLAGS -DTEST_IPV6"
18653 fi
18654
18655
18656 # Fortress build
18657 # Check whether --enable-fortress was given.
18658 if test "${enable_fortress+set}" = set; then :
18659   enableval=$enable_fortress;  ENABLED_FORTRESS=$enableval
18660 else
18661    ENABLED_FORTRESS=no
18662
18663 fi
18664
18665
18666 if test "$ENABLED_FORTRESS" = "yes"
18667 then
18668     AM_CFLAGS="$AM_CFLAGS -DFORTRESS -DCYASSL_ALWAYS_VERIFY_CB -DOPENSSL_EXTRA -DCYASSL_DES_ECB -DCYASSL_AES_COUNTER -DCYASSL_AES_DIRECT -DCYASSL_DER_LOAD -DCYASSL_SHA512 -DCYASSL_SHA384 -DCYASSL_KEY_GEN"
18669 fi
18670
18671
18672 # ssl bump build
18673 # Check whether --enable-bump was given.
18674 if test "${enable_bump+set}" = set; then :
18675   enableval=$enable_bump;  ENABLED_BUMP=$enableval
18676 else
18677    ENABLED_BUMP=no
18678
18679 fi
18680
18681
18682 if test "$ENABLED_BUMP" = "yes"
18683 then
18684     AM_CFLAGS="$AM_CFLAGS -DLARGE_STATIC_BUFFERS -DCYASSL_CERT_GEN -DCYASSL_KEY_GEN -DHUGE_SESSION_CACHE -DOPENSSL_EXTRA -DFP_MAX_BITS=8192 -DCYASSL_DER_LOAD -DCYASSL_ALT_NAMES -DCYASSL_TEST_CERT"
18685 fi
18686
18687 ENABLED_SLOWMATH="yes"
18688
18689 # lean psk build
18690 # Check whether --enable-leanpsk was given.
18691 if test "${enable_leanpsk+set}" = set; then :
18692   enableval=$enable_leanpsk;  ENABLED_LEANPSK=$enableval
18693 else
18694    ENABLED_LEANPSK=no
18695
18696 fi
18697
18698
18699 if test "$ENABLED_LEANPSK" = "yes"
18700 then
18701     AM_CFLAGS="$AM_CFLAGS -DCYASSL_LEANPSK -DHAVE_NULL_CIPHER -DSINGLE_THREADED -DNO_AES -DNO_FILESYSTEM -DNO_RABBIT -DNO_RSA -DNO_DSA -DNO_DH -DNO_CERTS -DNO_PWDBASED -DNO_DES3 -DNO_MD4 -DNO_MD5 -DNO_ERROR_STRINGS -DNO_OLD_TLS -DNO_RC4 -DNO_WRITEV -DNO_SESSION_CACHE -DNO_DEV_RANDOM -DCYASSL_USER_IO -DNO_SHA -DUSE_SLOW_SHA"
18702     ENABLED_SLOWMATH="no"
18703     ENABLED_SINGLETHREADED="yes"
18704 fi
18705
18706  if test "x$ENABLED_LEANPSK" = "xyes"; then
18707   BUILD_LEANPSK_TRUE=
18708   BUILD_LEANPSK_FALSE='#'
18709 else
18710   BUILD_LEANPSK_TRUE='#'
18711   BUILD_LEANPSK_FALSE=
18712 fi
18713
18714
18715
18716 # big cache
18717 # Check whether --enable-bigcache was given.
18718 if test "${enable_bigcache+set}" = set; then :
18719   enableval=$enable_bigcache;  ENABLED_BIGCACHE=$enableval
18720 else
18721    ENABLED_BIGCACHE=no
18722
18723 fi
18724
18725
18726 if test "$ENABLED_BIGCACHE" = "yes"
18727 then
18728     AM_CFLAGS="$AM_CFLAGS -DBIG_SESSION_CACHE"
18729 fi
18730
18731
18732 # HUGE cache
18733 # Check whether --enable-hugecache was given.
18734 if test "${enable_hugecache+set}" = set; then :
18735   enableval=$enable_hugecache;  ENABLED_HUGECACHE=$enableval
18736 else
18737    ENABLED_HUGECACHE=no
18738
18739 fi
18740
18741
18742 if test "$ENABLED_HUGECACHE" = "yes"
18743 then
18744     AM_CFLAGS="$AM_CFLAGS -DHUGE_SESSION_CACHE"
18745 fi
18746
18747
18748 # SMALL cache
18749 # Check whether --enable-smallcache was given.
18750 if test "${enable_smallcache+set}" = set; then :
18751   enableval=$enable_smallcache;  ENABLED_SMALLCACHE=$enableval
18752 else
18753    ENABLED_SMALLCACHE=no
18754
18755 fi
18756
18757
18758 if test "$ENABLED_SMALLCACHE" = "yes"
18759 then
18760     AM_CFLAGS="$AM_CFLAGS -DSMALL_SESSION_CACHE"
18761 fi
18762
18763
18764 # Persistent session cache
18765 # Check whether --enable-savesession was given.
18766 if test "${enable_savesession+set}" = set; then :
18767   enableval=$enable_savesession;  ENABLED_SAVESESSION=$enableval
18768 else
18769    ENABLED_SAVESESSION=no
18770
18771 fi
18772
18773
18774 if test "$ENABLED_SAVESESSION" = "yes"
18775 then
18776     AM_CFLAGS="$AM_CFLAGS -DPERSIST_SESSION_CACHE"
18777 fi
18778
18779
18780 # Persistent cert cache
18781 # Check whether --enable-savecert was given.
18782 if test "${enable_savecert+set}" = set; then :
18783   enableval=$enable_savecert;  ENABLED_SAVECERT=$enableval
18784 else
18785    ENABLED_SAVECERT=no
18786
18787 fi
18788
18789
18790 if test "$ENABLED_SAVECERT" = "yes"
18791 then
18792     AM_CFLAGS="$AM_CFLAGS -DPERSIST_CERT_CACHE"
18793 fi
18794
18795
18796 # Atomic User Record Layer
18797 # Check whether --enable-atomicuser was given.
18798 if test "${enable_atomicuser+set}" = set; then :
18799   enableval=$enable_atomicuser;  ENABLED_ATOMICUSER=$enableval
18800 else
18801    ENABLED_ATOMICUSER=no
18802
18803 fi
18804
18805
18806 if test "$ENABLED_ATOMICUSER" = "yes"
18807 then
18808     AM_CFLAGS="$AM_CFLAGS -DATOMIC_USER"
18809 fi
18810
18811
18812 # Public Key Callbacks
18813 # Check whether --enable-pkcallbacks was given.
18814 if test "${enable_pkcallbacks+set}" = set; then :
18815   enableval=$enable_pkcallbacks;  ENABLED_PKCALLBACKS=$enableval
18816 else
18817    ENABLED_PKCALLBACKS=no
18818
18819 fi
18820
18821
18822 if test "$ENABLED_PKCALLBACKS" = "yes"
18823 then
18824     AM_CFLAGS="$AM_CFLAGS -DHAVE_PK_CALLBACKS"
18825 fi
18826
18827
18828 # SNIFFER
18829 ENABLED_SNIFFTEST=no
18830 # Check whether --enable-sniffer was given.
18831 if test "${enable_sniffer+set}" = set; then :
18832   enableval=$enable_sniffer;
18833        ENABLED_SNIFFER=yes
18834        AM_CFLAGS="$AM_CFLAGS -DCYASSL_SNIFFER -DOPENSSL_EXTRA"
18835        if  test "x$enableval" = "xyes" ; then :
18836    for ac_header in pcap/pcap.h
18837 do :
18838   ac_fn_c_check_header_mongrel "$LINENO" "pcap/pcap.h" "ac_cv_header_pcap_pcap_h" "$ac_includes_default"
18839 if test "x$ac_cv_header_pcap_pcap_h" = xyes; then :
18840   cat >>confdefs.h <<_ACEOF
18841 #define HAVE_PCAP_PCAP_H 1
18842 _ACEOF
18843
18844            ENABLED_SNIFFTEST=yes
18845
18846 else
18847    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable sniffer test without having libpcap available." >&5
18848 $as_echo "$as_me: WARNING: cannot enable sniffer test without having libpcap available." >&2;}
18849 fi
18850
18851 done
18852
18853 fi
18854
18855 else
18856
18857        ENABLED_SNIFFER=no
18858
18859 fi
18860
18861
18862  if  test "x$ENABLED_SNIFFER"   = "xyes" ; then
18863   BUILD_SNIFFER_TRUE=
18864   BUILD_SNIFFER_FALSE='#'
18865 else
18866   BUILD_SNIFFER_TRUE='#'
18867   BUILD_SNIFFER_FALSE=
18868 fi
18869
18870  if  test "x$ENABLED_SNIFFTEST" = "xyes" ; then
18871   BUILD_SNIFFTEST_TRUE=
18872   BUILD_SNIFFTEST_FALSE='#'
18873 else
18874   BUILD_SNIFFTEST_TRUE='#'
18875   BUILD_SNIFFTEST_FALSE=
18876 fi
18877
18878
18879 # AES-GCM
18880 # Check whether --enable-aesgcm was given.
18881 if test "${enable_aesgcm+set}" = set; then :
18882   enableval=$enable_aesgcm;  ENABLED_AESGCM=$enableval
18883 else
18884    ENABLED_AESGCM=no
18885
18886 fi
18887
18888
18889 if test "$ENABLED_AESGCM" = "word32"
18890 then
18891     AM_CFLAGS="$AM_CFLAGS -DGCM_WORD32"
18892     ENABLED_AESGCM=yes
18893 fi
18894
18895 if test "$ENABLED_AESGCM" = "small"
18896 then
18897     AM_CFLAGS="$AM_CFLAGS -DGCM_SMALL"
18898     ENABLED_AESGCM=yes
18899 fi
18900
18901 if test "$ENABLED_AESGCM" = "table"
18902 then
18903     AM_CFLAGS="$AM_CFLAGS -DGCM_TABLE"
18904     ENABLED_AESGCM=yes
18905 fi
18906
18907 if test "$ENABLED_AESGCM" = "yes"
18908 then
18909     AM_CFLAGS="$AM_CFLAGS -DHAVE_AESGCM"
18910 fi
18911
18912  if test "x$ENABLED_AESGCM" = "xyes"; then
18913   BUILD_AESGCM_TRUE=
18914   BUILD_AESGCM_FALSE='#'
18915 else
18916   BUILD_AESGCM_TRUE='#'
18917   BUILD_AESGCM_FALSE=
18918 fi
18919
18920
18921
18922 # AES-CCM
18923 # Check whether --enable-aesccm was given.
18924 if test "${enable_aesccm+set}" = set; then :
18925   enableval=$enable_aesccm;  ENABLED_AESCCM=$enableval
18926 else
18927    ENABLED_AESCCM=no
18928
18929 fi
18930
18931
18932 if test "$ENABLED_AESCCM" = "yes"
18933 then
18934     AM_CFLAGS="$AM_CFLAGS -DHAVE_AESCCM"
18935 fi
18936
18937  if test "x$ENABLED_AESCCM" = "xyes"; then
18938   BUILD_AESCCM_TRUE=
18939   BUILD_AESCCM_FALSE='#'
18940 else
18941   BUILD_AESCCM_TRUE='#'
18942   BUILD_AESCCM_FALSE=
18943 fi
18944
18945
18946
18947 # AES-NI
18948 # Check whether --enable-aesni was given.
18949 if test "${enable_aesni+set}" = set; then :
18950   enableval=$enable_aesni;  ENABLED_AESNI=$enableval
18951 else
18952    ENABLED_AESNI=no
18953
18954 fi
18955
18956
18957 if test "$ENABLED_AESNI" = "yes"
18958 then
18959     AM_CFLAGS="$AM_CFLAGS -DCYASSL_AESNI"
18960     if test "$GCC" = "yes"
18961     then
18962         # GCC needs these flags, icc doesn't
18963         # opt levels greater than 2 may cause problems on systems w/o aesni
18964         if test "$CC" != "icc"
18965         then
18966             AM_CFLAGS="$AM_CFLAGS -maes -msse4"
18967         fi
18968     fi
18969 fi
18970
18971  if test "x$ENABLED_AESNI" = "xyes"; then
18972   BUILD_AESNI_TRUE=
18973   BUILD_AESNI_FALSE='#'
18974 else
18975   BUILD_AESNI_TRUE='#'
18976   BUILD_AESNI_FALSE=
18977 fi
18978
18979
18980
18981 # Camellia
18982 # Check whether --enable-camellia was given.
18983 if test "${enable_camellia+set}" = set; then :
18984   enableval=$enable_camellia;  ENABLED_CAMELLIA=$enableval
18985 else
18986    ENABLED_CAMELLIA=no
18987
18988 fi
18989
18990
18991 if test "$ENABLED_CAMELLIA" = "yes"
18992 then
18993     AM_CFLAGS="$AM_CFLAGS -DHAVE_CAMELLIA"
18994 fi
18995
18996  if test "x$ENABLED_CAMELLIA" = "xyes"; then
18997   BUILD_CAMELLIA_TRUE=
18998   BUILD_CAMELLIA_FALSE='#'
18999 else
19000   BUILD_CAMELLIA_TRUE='#'
19001   BUILD_CAMELLIA_FALSE=
19002 fi
19003
19004
19005
19006 # MD2
19007 # Check whether --enable-md2 was given.
19008 if test "${enable_md2+set}" = set; then :
19009   enableval=$enable_md2;  ENABLED_MD2=$enableval
19010 else
19011    ENABLED_MD2=no
19012
19013 fi
19014
19015
19016 if test "$ENABLED_BUMP" = "yes"
19017 then
19018     ENABLED_MD2="yes"
19019 fi
19020
19021 if test "$ENABLED_MD2" = "yes"
19022 then
19023     AM_CFLAGS="$AM_CFLAGS -DCYASSL_MD2"
19024 fi
19025
19026  if test "x$ENABLED_MD2" = "xyes"; then
19027   BUILD_MD2_TRUE=
19028   BUILD_MD2_FALSE='#'
19029 else
19030   BUILD_MD2_TRUE='#'
19031   BUILD_MD2_FALSE=
19032 fi
19033
19034
19035
19036 # NULL CIPHER
19037 # Check whether --enable-nullcipher was given.
19038 if test "${enable_nullcipher+set}" = set; then :
19039   enableval=$enable_nullcipher;  ENABLED_NULL_CIPHER=$enableval
19040 else
19041    ENABLED_NULL_CIPHER=no
19042
19043 fi
19044
19045
19046 if test "$ENABLED_NULL_CIPHER" = "yes"
19047 then
19048     AM_CFLAGS="$AM_CFLAGS -DHAVE_NULL_CIPHER"
19049 fi
19050
19051 # RIPEMD
19052 # Check whether --enable-ripemd was given.
19053 if test "${enable_ripemd+set}" = set; then :
19054   enableval=$enable_ripemd;  ENABLED_RIPEMD=$enableval
19055 else
19056    ENABLED_RIPEMD=no
19057
19058 fi
19059
19060
19061 if test "$ENABLED_RIPEMD" = "yes"
19062 then
19063     AM_CFLAGS="$AM_CFLAGS -DCYASSL_RIPEMD"
19064 fi
19065
19066  if test "x$ENABLED_RIPEMD" = "xyes"; then
19067   BUILD_RIPEMD_TRUE=
19068   BUILD_RIPEMD_FALSE='#'
19069 else
19070   BUILD_RIPEMD_TRUE='#'
19071   BUILD_RIPEMD_FALSE=
19072 fi
19073
19074
19075
19076 # BLAKE2
19077 # Check whether --enable-blake2 was given.
19078 if test "${enable_blake2+set}" = set; then :
19079   enableval=$enable_blake2;  ENABLED_BLAKE2=$enableval
19080 else
19081    ENABLED_BLAKE2=no
19082
19083 fi
19084
19085
19086 if test "$ENABLED_BLAKE2" = "yes"
19087 then
19088     AM_CFLAGS="$AM_CFLAGS -DHAVE_BLAKE2"
19089 fi
19090
19091  if test "x$ENABLED_BLAKE2" = "xyes"; then
19092   BUILD_BLAKE2_TRUE=
19093   BUILD_BLAKE2_FALSE='#'
19094 else
19095   BUILD_BLAKE2_TRUE='#'
19096   BUILD_BLAKE2_FALSE=
19097 fi
19098
19099
19100
19101 # SHA512
19102 # Check whether --enable-sha512 was given.
19103 if test "${enable_sha512+set}" = set; then :
19104   enableval=$enable_sha512;  ENABLED_SHA512=$enableval
19105 else
19106    ENABLED_SHA512=no
19107
19108 fi
19109
19110
19111 if test "$ENABLED_SHA512" = "yes"
19112 then
19113     AM_CFLAGS="$AM_CFLAGS -DCYASSL_SHA512 -DCYASSL_SHA384"
19114 fi
19115
19116 if test "$ENABLED_FORTRESS" = "yes"
19117 then
19118     ENABLED_SHA512="yes"
19119 fi
19120
19121
19122  if test "x$ENABLED_SHA512" = "xyes"; then
19123   BUILD_SHA512_TRUE=
19124   BUILD_SHA512_FALSE='#'
19125 else
19126   BUILD_SHA512_TRUE='#'
19127   BUILD_SHA512_FALSE=
19128 fi
19129
19130
19131
19132 # SESSION CERTS
19133 # Check whether --enable-sessioncerts was given.
19134 if test "${enable_sessioncerts+set}" = set; then :
19135   enableval=$enable_sessioncerts;  ENABLED_SESSIONCERTS=$enableval
19136 else
19137    ENABLED_SESSIONCERTS=no
19138
19139 fi
19140
19141
19142 if test "$ENABLED_SESSIONCERTS" = "yes"
19143 then
19144     AM_CFLAGS="$AM_CFLAGS -DSESSION_CERTS"
19145 fi
19146
19147
19148 # KEY GENERATION
19149 # Check whether --enable-keygen was given.
19150 if test "${enable_keygen+set}" = set; then :
19151   enableval=$enable_keygen;  ENABLED_KEYGEN=$enableval
19152 else
19153    ENABLED_KEYGEN=no
19154
19155 fi
19156
19157
19158 if test "$ENABLED_KEYGEN" = "yes"
19159 then
19160     AM_CFLAGS="$AM_CFLAGS -DCYASSL_KEY_GEN"
19161 fi
19162
19163
19164 # CERT GENERATION
19165 # Check whether --enable-certgen was given.
19166 if test "${enable_certgen+set}" = set; then :
19167   enableval=$enable_certgen;  ENABLED_CERTGEN=$enableval
19168 else
19169    ENABLED_CERTGEN=no
19170
19171 fi
19172
19173
19174 if test "$ENABLED_CERTGEN" = "yes"
19175 then
19176     AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_GEN"
19177 fi
19178
19179
19180 # CERT REQUEST GENERATION
19181 # Check whether --enable-certreq was given.
19182 if test "${enable_certreq+set}" = set; then :
19183   enableval=$enable_certreq;  ENABLED_CERTREQ=$enableval
19184 else
19185    ENABLED_CERTREQ=no
19186
19187 fi
19188
19189
19190 if test "$ENABLED_CERTREQ" = "yes"
19191 then
19192     if test "$ENABLED_CERTGEN" = "no"
19193     then
19194         as_fn_error $? "cannot enable certreq without enabling certgen." "$LINENO" 5
19195     fi
19196     AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_REQ"
19197 fi
19198
19199
19200 # SEP
19201 # Check whether --enable-sep was given.
19202 if test "${enable_sep+set}" = set; then :
19203   enableval=$enable_sep;  ENABLED_SEP=$enableval
19204 else
19205    ENABLED_SEP=no
19206
19207 fi
19208
19209 if test "$ENABLED_SEP" = "yes"
19210 then
19211   AM_CFLAGS="-DCYASSL_SEP -DKEEP_PEER_CERT $AM_CFLAGS"
19212 fi
19213
19214
19215 # HKDF
19216 # Check whether --enable-hkdf was given.
19217 if test "${enable_hkdf+set}" = set; then :
19218   enableval=$enable_hkdf;  ENABLED_HKDF=$enableval
19219 else
19220    ENABLED_HKDF=no
19221
19222 fi
19223
19224 if test "$ENABLED_HKDF" = "yes"
19225 then
19226   AM_CFLAGS="$AM_CFLAGS -DHAVE_HKDF"
19227 fi
19228
19229
19230 # DSA
19231 # Check whether --enable-dsa was given.
19232 if test "${enable_dsa+set}" = set; then :
19233   enableval=$enable_dsa;  ENABLED_DSA=$enableval
19234 else
19235    ENABLED_DSA=no
19236
19237 fi
19238
19239
19240 if test "$ENABLED_DSA" = "no"
19241 then
19242     AM_CFLAGS="$AM_CFLAGS -DNO_DSA"
19243 fi
19244
19245  if test "x$ENABLED_DSA" = "xyes"; then
19246   BUILD_DSA_TRUE=
19247   BUILD_DSA_FALSE='#'
19248 else
19249   BUILD_DSA_TRUE='#'
19250   BUILD_DSA_FALSE=
19251 fi
19252
19253
19254
19255 # ECC
19256 # Check whether --enable-ecc was given.
19257 if test "${enable_ecc+set}" = set; then :
19258   enableval=$enable_ecc;  ENABLED_ECC=$enableval
19259 else
19260    ENABLED_ECC=no
19261
19262 fi
19263
19264
19265 if test "$ENABLED_ECC" = "yes"
19266 then
19267     AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR"
19268 fi
19269
19270  if test "x$ENABLED_ECC" = "xyes"; then
19271   BUILD_ECC_TRUE=
19272   BUILD_ECC_FALSE='#'
19273 else
19274   BUILD_ECC_TRUE='#'
19275   BUILD_ECC_FALSE=
19276 fi
19277
19278
19279
19280 if test "$ENABLED_ECC" = "yes" && test "$ENABLED_SMALL" = "yes"
19281 then
19282     as_fn_error $? "cannot enable ecc and small, ecc requires TLS which small turns off." "$LINENO" 5
19283 fi
19284
19285
19286 # FP ECC, Fixed Point cache ECC
19287 # Check whether --enable-fpecc was given.
19288 if test "${enable_fpecc+set}" = set; then :
19289   enableval=$enable_fpecc;  ENABLED_FPECC=$enableval
19290 else
19291    ENABLED_FPECC=no
19292
19293 fi
19294
19295
19296 if test "$ENABLED_FPECC" = "yes"
19297 then
19298     if test "$ENABLED_ECC" = "no"
19299     then
19300         as_fn_error $? "cannot enable fpecc without enabling ecc." "$LINENO" 5
19301     fi
19302     AM_CFLAGS="$AM_CFLAGS -DFP_ECC"
19303 fi
19304
19305
19306 # ECC encrypt
19307 # Check whether --enable-eccencrypt was given.
19308 if test "${enable_eccencrypt+set}" = set; then :
19309   enableval=$enable_eccencrypt;  ENABLED_ECC_ENCRYPT=$enableval
19310 else
19311    ENABLED_ECC_ENCRYPT=no
19312
19313 fi
19314
19315
19316 if test "$ENABLED_ECC_ENCRYPT" = "yes"
19317 then
19318     if test "$ENABLED_ECC" = "no"
19319     then
19320         as_fn_error $? "cannot enable eccencrypt without enabling ecc." "$LINENO" 5
19321     fi
19322     if test "$ENABLED_HKDF" = "no"
19323     then
19324         as_fn_error $? "cannot enable eccencrypt without enabling hkdf." "$LINENO" 5
19325     fi
19326     AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_ENCRYPT"
19327 fi
19328
19329
19330 # PSK
19331 # Check whether --enable-psk was given.
19332 if test "${enable_psk+set}" = set; then :
19333   enableval=$enable_psk;  ENABLED_PSK=$enableval
19334 else
19335    ENABLED_PSK=no
19336
19337 fi
19338
19339
19340 if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no"
19341 then
19342     AM_CFLAGS="$AM_CFLAGS -DNO_PSK"
19343 fi
19344
19345 if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "yes"
19346 then
19347     ENABLED_PSK=yes
19348 fi
19349
19350
19351 # ERROR STRINGS
19352 # Check whether --enable-errorstrings was given.
19353 if test "${enable_errorstrings+set}" = set; then :
19354   enableval=$enable_errorstrings;  ENABLED_ERROR_STRINGS=$enableval
19355 else
19356    ENABLED_ERROR_STRINGS=yes
19357
19358 fi
19359
19360
19361 if test "$ENABLED_ERROR_STRINGS" = "no"
19362 then
19363     AM_CFLAGS="$AM_CFLAGS -DNO_ERROR_STRINGS"
19364 else
19365     # turn off error strings if leanpsk on
19366     if test "$ENABLED_LEANPSK" = "yes"
19367     then
19368         AM_CFLAGS="$AM_CFLAGS -DNO_ERROR_STRINGS"
19369         ENABLED_ERROR_STRINGS=no
19370     fi
19371 fi
19372
19373
19374 # OLD TLS
19375 # Check whether --enable-oldtls was given.
19376 if test "${enable_oldtls+set}" = set; then :
19377   enableval=$enable_oldtls;  ENABLED_OLD_TLS=$enableval
19378 else
19379    ENABLED_OLD_TLS=yes
19380
19381 fi
19382
19383
19384 if test "$ENABLED_OLD_TLS" = "no"
19385 then
19386     AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
19387 else
19388     # turn off old if leanpsk on
19389     if test "$ENABLED_LEANPSK" = "yes"
19390     then
19391         AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
19392         ENABLED_OLD_TLS=no
19393     fi
19394 fi
19395
19396
19397 # STACK SIZE info for examples
19398 # Check whether --enable-stacksize was given.
19399 if test "${enable_stacksize+set}" = set; then :
19400   enableval=$enable_stacksize;  ENABLED_STACKSIZE=$enableval
19401 else
19402    ENABLED_STACKSIZE=no
19403
19404 fi
19405
19406
19407 if test "$ENABLED_STACKSIZE" = "yes"
19408 then
19409     ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
19410 if test "x$ac_cv_func_posix_memalign" = xyes; then :
19411
19412 else
19413   as_fn_error $? "stacksize needs posix_memalign" "$LINENO" 5
19414 fi
19415
19416     ac_fn_c_check_func "$LINENO" "pthread_attr_setstack" "ac_cv_func_pthread_attr_setstack"
19417 if test "x$ac_cv_func_pthread_attr_setstack" = xyes; then :
19418
19419 else
19420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstack in -lpthread" >&5
19421 $as_echo_n "checking for pthread_attr_setstack in -lpthread... " >&6; }
19422 if ${ac_cv_lib_pthread_pthread_attr_setstack+:} false; then :
19423   $as_echo_n "(cached) " >&6
19424 else
19425   ac_check_lib_save_LIBS=$LIBS
19426 LIBS="-lpthread  $LIBS"
19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h.  */
19429
19430 /* Override any GCC internal prototype to avoid an error.
19431    Use char because int might match the return type of a GCC
19432    builtin and then its argument prototype would still apply.  */
19433 #ifdef __cplusplus
19434 extern "C"
19435 #endif
19436 char pthread_attr_setstack ();
19437 int
19438 main ()
19439 {
19440 return pthread_attr_setstack ();
19441   ;
19442   return 0;
19443 }
19444 _ACEOF
19445 if ac_fn_c_try_link "$LINENO"; then :
19446   ac_cv_lib_pthread_pthread_attr_setstack=yes
19447 else
19448   ac_cv_lib_pthread_pthread_attr_setstack=no
19449 fi
19450 rm -f core conftest.err conftest.$ac_objext \
19451     conftest$ac_exeext conftest.$ac_ext
19452 LIBS=$ac_check_lib_save_LIBS
19453 fi
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_setstack" >&5
19455 $as_echo "$ac_cv_lib_pthread_pthread_attr_setstack" >&6; }
19456 if test "x$ac_cv_lib_pthread_pthread_attr_setstack" = xyes; then :
19457   cat >>confdefs.h <<_ACEOF
19458 #define HAVE_LIBPTHREAD 1
19459 _ACEOF
19460
19461   LIBS="-lpthread $LIBS"
19462
19463 fi
19464
19465 fi
19466
19467     AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE -DCYASSL_LOW_MEMORY"
19468 fi
19469
19470
19471 # MEMORY
19472 # Check whether --enable-memory was given.
19473 if test "${enable_memory+set}" = set; then :
19474   enableval=$enable_memory;  ENABLED_MEMORY=$enableval
19475 else
19476    ENABLED_MEMORY=yes
19477
19478 fi
19479
19480
19481 if test "$ENABLED_MEMORY" = "no"
19482 then
19483     AM_CFLAGS="$AM_CFLAGS -DNO_CYASSL_MEMORY"
19484 else
19485     # turn off memory cb if leanpsk on
19486     if test "$ENABLED_LEANPSK" = "yes"
19487     then
19488         # but don't turn on NO_CYASSL_MEMORY because using own
19489         ENABLED_MEMORY=no
19490     fi
19491 fi
19492
19493  if test "x$ENABLED_MEMORY" = "xyes"; then
19494   BUILD_MEMORY_TRUE=
19495   BUILD_MEMORY_FALSE='#'
19496 else
19497   BUILD_MEMORY_TRUE='#'
19498   BUILD_MEMORY_FALSE=
19499 fi
19500
19501
19502
19503 # RSA
19504 # Check whether --enable-rsa was given.
19505 if test "${enable_rsa+set}" = set; then :
19506   enableval=$enable_rsa;  ENABLED_RSA=$enableval
19507 else
19508    ENABLED_RSA=yes
19509
19510 fi
19511
19512
19513 if test "$ENABLED_RSA" = "no"
19514 then
19515     AM_CFLAGS="$AM_CFLAGS -DNO_RSA"
19516 else
19517     # turn off RSA if leanpsk on
19518     if test "$ENABLED_LEANPSK" = "yes"
19519     then
19520         AM_CFLAGS="$AM_CFLAGS -DNO_RSA"
19521         ENABLED_RSA=no
19522     fi
19523 fi
19524
19525  if test "x$ENABLED_RSA" = "xyes"; then
19526   BUILD_RSA_TRUE=
19527   BUILD_RSA_FALSE='#'
19528 else
19529   BUILD_RSA_TRUE='#'
19530   BUILD_RSA_FALSE=
19531 fi
19532
19533
19534
19535 # DH
19536 # Check whether --enable-dh was given.
19537 if test "${enable_dh+set}" = set; then :
19538   enableval=$enable_dh;  ENABLED_DH=$enableval
19539 else
19540    ENABLED_DH=no
19541
19542 fi
19543
19544
19545 if test "$ENABLED_DH" = "no"
19546 then
19547     AM_CFLAGS="$AM_CFLAGS -DNO_DH"
19548 else
19549     # turn off DH if leanpsk on
19550     if test "$ENABLED_LEANPSK" = "yes"
19551     then
19552         AM_CFLAGS="$AM_CFLAGS -DNO_DH"
19553         ENABLED_DH=no
19554     fi
19555 fi
19556
19557  if test "x$ENABLED_DH" = "xyes"; then
19558   BUILD_DH_TRUE=
19559   BUILD_DH_FALSE='#'
19560 else
19561   BUILD_DH_TRUE='#'
19562   BUILD_DH_FALSE=
19563 fi
19564
19565
19566
19567 # ASN
19568 # turn off asn, which means no certs, no rsa, no dh, no dsa, no ecc,
19569 # and no big int, use this to disable all public key stuff
19570 # Check whether --enable-asn was given.
19571 if test "${enable_asn+set}" = set; then :
19572   enableval=$enable_asn;  ENABLED_ASN=$enableval
19573 else
19574    ENABLED_ASN=yes
19575
19576 fi
19577
19578
19579 if test "$ENABLED_ASN" = "no"
19580 then
19581     AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_CERTS -DNO_BIG_INT"
19582 else
19583     # turn off ASN if leanpsk on
19584     if test "$ENABLED_LEANPSK" = "yes"
19585     then
19586         AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_CERTS -DNO_BIG_INT"
19587         ENABLED_ASN=no
19588     fi
19589 fi
19590
19591 if test "$ENABLED_RSA" = "yes" && test "$ENABLED_ASN" = "no"
19592 then
19593     as_fn_error $? "please disable rsa if disabling asn." "$LINENO" 5
19594 fi
19595
19596 if test "$ENABLED_DSA" = "yes" && test "$ENABLED_ASN" = "no"
19597 then
19598     as_fn_error $? "please disable dsa if disabling asn." "$LINENO" 5
19599 fi
19600
19601 if test "$ENABLED_DH" = "yes" && test "$ENABLED_ASN" = "no"
19602 then
19603     as_fn_error $? "please disable dh if disabling asn." "$LINENO" 5
19604 fi
19605
19606 if test "$ENABLED_ECC" = "yes" && test "$ENABLED_ASN" = "no"
19607 then
19608     as_fn_error $? "please disable ecc if disabling asn." "$LINENO" 5
19609 fi
19610
19611 if test "$ENABLED_PSK" = "no" && test "$ENABLED_ASN" = "no"
19612 then
19613     as_fn_error $? "please enable psk if disabling asn." "$LINENO" 5
19614 fi
19615
19616 if test "$ENABLED_ASN" = "no"
19617 then
19618     ENABLED_FASTMATH=no
19619     ENABLED_SLOWMATH=no
19620 fi
19621
19622  if test "x$ENABLED_ASN" = "xyes"; then
19623   BUILD_ASN_TRUE=
19624   BUILD_ASN_FALSE='#'
19625 else
19626   BUILD_ASN_TRUE='#'
19627   BUILD_ASN_FALSE=
19628 fi
19629
19630
19631
19632 # AES
19633 # Check whether --enable-aes was given.
19634 if test "${enable_aes+set}" = set; then :
19635   enableval=$enable_aes;  ENABLED_AES=$enableval
19636 else
19637    ENABLED_AES=yes
19638
19639 fi
19640
19641
19642 if test "$ENABLED_AES" = "no"
19643 then
19644     AM_CFLAGS="$AM_CFLAGS -DNO_AES"
19645 else
19646     # turn off AES if leanpsk on
19647     if test "$ENABLED_LEANPSK" = "yes"
19648     then
19649         AM_CFLAGS="$AM_CFLAGS -DNO_AES"
19650         ENABLED_AES=no
19651     fi
19652 fi
19653
19654  if test "x$ENABLED_AES" = "xyes"; then
19655   BUILD_AES_TRUE=
19656   BUILD_AES_FALSE='#'
19657 else
19658   BUILD_AES_TRUE='#'
19659   BUILD_AES_FALSE=
19660 fi
19661
19662
19663
19664 # CODING
19665 # Check whether --enable-coding was given.
19666 if test "${enable_coding+set}" = set; then :
19667   enableval=$enable_coding;  ENABLED_CODING=$enableval
19668 else
19669    ENABLED_CODING=yes
19670
19671 fi
19672
19673
19674 if test "$ENABLED_CODING" = "no"
19675 then
19676     AM_CFLAGS="$AM_CFLAGS -DNO_CODING"
19677 else
19678     # turn off CODING if leanpsk on
19679     if test "$ENABLED_LEANPSK" = "yes"
19680     then
19681         AM_CFLAGS="$AM_CFLAGS -DNO_CODING"
19682         ENABLED_CODING=no
19683     fi
19684 fi
19685
19686  if test "x$ENABLED_CODING" = "xyes"; then
19687   BUILD_CODING_TRUE=
19688   BUILD_CODING_FALSE='#'
19689 else
19690   BUILD_CODING_TRUE='#'
19691   BUILD_CODING_FALSE=
19692 fi
19693
19694
19695
19696 # DES3
19697 # Check whether --enable-des3 was given.
19698 if test "${enable_des3+set}" = set; then :
19699   enableval=$enable_des3;  ENABLED_DES3=$enableval
19700 else
19701    ENABLED_DES3=yes
19702
19703 fi
19704
19705
19706 if test "$ENABLED_DES3" = "no"
19707 then
19708     AM_CFLAGS="$AM_CFLAGS -DNO_DES3"
19709 else
19710     # turn off DES3 if leanpsk on
19711     if test "$ENABLED_LEANPSK" = "yes"
19712     then
19713         AM_CFLAGS="$AM_CFLAGS -DNO_DES3"
19714         ENABLED_DES3=no
19715     fi
19716 fi
19717
19718  if test "x$ENABLED_DES3" = "xyes"; then
19719   BUILD_DES3_TRUE=
19720   BUILD_DES3_FALSE='#'
19721 else
19722   BUILD_DES3_TRUE='#'
19723   BUILD_DES3_FALSE=
19724 fi
19725
19726
19727
19728 # ARC4
19729 # Check whether --enable-arc4 was given.
19730 if test "${enable_arc4+set}" = set; then :
19731   enableval=$enable_arc4;  ENABLED_ARC4=$enableval
19732 else
19733    ENABLED_ARC4=yes
19734
19735 fi
19736
19737
19738 if test "$ENABLED_ARC4" = "no"
19739 then
19740     AM_CFLAGS="$AM_CFLAGS -DNO_RC4"
19741 else
19742     # turn off ARC4 if leanpsk on
19743     if test "$ENABLED_LEANPSK" = "yes"
19744     then
19745         AM_CFLAGS="$AM_CFLAGS -DNO_RC4"
19746         ENABLED_ARC4=no
19747     fi
19748 fi
19749
19750  if test "x$ENABLED_ARC4" = "xyes"; then
19751   BUILD_RC4_TRUE=
19752   BUILD_RC4_FALSE='#'
19753 else
19754   BUILD_RC4_TRUE='#'
19755   BUILD_RC4_FALSE=
19756 fi
19757
19758
19759
19760 # MD5
19761 # Check whether --enable-md5 was given.
19762 if test "${enable_md5+set}" = set; then :
19763   enableval=$enable_md5;  ENABLED_MD5=$enableval
19764 else
19765    ENABLED_MD5=yes
19766
19767 fi
19768
19769
19770 if test "$ENABLED_MD5" = "no"
19771 then
19772     AM_CFLAGS="$AM_CFLAGS -DNO_MD5 -DNO_OLD_TLS"
19773 else
19774     # turn off MD5 if leanpsk on
19775     if test "$ENABLED_LEANPSK" = "yes"
19776     then
19777         AM_CFLAGS="$AM_CFLAGS -DNO_MD5 -DNO_OLD_TLS"
19778         ENABLED_MD5=no
19779     fi
19780 fi
19781
19782  if test "x$ENABLED_MD5" = "xyes"; then
19783   BUILD_MD5_TRUE=
19784   BUILD_MD5_FALSE='#'
19785 else
19786   BUILD_MD5_TRUE='#'
19787   BUILD_MD5_FALSE=
19788 fi
19789
19790
19791
19792 # SHA
19793 # Check whether --enable-sha was given.
19794 if test "${enable_sha+set}" = set; then :
19795   enableval=$enable_sha;  ENABLED_SHA=$enableval
19796 else
19797    ENABLED_SHA=yes
19798
19799 fi
19800
19801
19802 if test "$ENABLED_SHA" = "no"
19803 then
19804     AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
19805 else
19806     # turn off SHA if leanpsk on
19807     if test "$ENABLED_LEANPSK" = "yes"
19808     then
19809         AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
19810         ENABLED_SHA=no
19811     fi
19812 fi
19813
19814  if test "x$ENABLED_SHA" = "xyes"; then
19815   BUILD_SHA_TRUE=
19816   BUILD_SHA_FALSE='#'
19817 else
19818   BUILD_SHA_TRUE='#'
19819   BUILD_SHA_FALSE=
19820 fi
19821
19822
19823
19824 # MD4
19825 # Check whether --enable-md4 was given.
19826 if test "${enable_md4+set}" = set; then :
19827   enableval=$enable_md4;  ENABLED_MD4=$enableval
19828 else
19829    ENABLED_MD4=no
19830
19831 fi
19832
19833
19834 if test "$ENABLED_MD4" = "no"
19835 then
19836     AM_CFLAGS="$AM_CFLAGS -DNO_MD4"
19837 fi
19838
19839  if test "x$ENABLED_MD4" = "xyes"; then
19840   BUILD_MD4_TRUE=
19841   BUILD_MD4_FALSE='#'
19842 else
19843   BUILD_MD4_TRUE='#'
19844   BUILD_MD4_FALSE=
19845 fi
19846
19847
19848
19849 # Web Server Build
19850 # Check whether --enable-webserver was given.
19851 if test "${enable_webserver+set}" = set; then :
19852   enableval=$enable_webserver;  ENABLED_WEBSERVER=$enableval
19853 else
19854    ENABLED_WEBSERVER=no
19855
19856 fi
19857
19858
19859 if test "$ENABLED_WEBSERVER" = "yes"
19860 then
19861     AM_CFLAGS="$AM_CFLAGS -DHAVE_WEBSERVER"
19862 fi
19863
19864
19865 # PWDBASED
19866 # Check whether --enable-pwdbased was given.
19867 if test "${enable_pwdbased+set}" = set; then :
19868   enableval=$enable_pwdbased;  ENABLED_PWDBASED=$enableval
19869 else
19870    ENABLED_PWDBASED=no
19871
19872 fi
19873
19874
19875 if test "$ENABLED_PWDBASED" = "no"
19876 then
19877     if test "$ENABLED_OPENSSLEXTRA" = "yes" || test "$ENABLED_WEBSERVER" = "yes"
19878     then
19879         # opensslextra and webserver needs pwdbased
19880         ENABLED_PWDBASED=yes
19881     else
19882         AM_CFLAGS="$AM_CFLAGS -DNO_PWDBASED"
19883     fi
19884 fi
19885
19886  if test "x$ENABLED_PWDBASED" = "xyes"; then
19887   BUILD_PWDBASED_TRUE=
19888   BUILD_PWDBASED_FALSE='#'
19889 else
19890   BUILD_PWDBASED_TRUE='#'
19891   BUILD_PWDBASED_FALSE=
19892 fi
19893
19894
19895
19896 # HC128
19897 # Check whether --enable-hc128 was given.
19898 if test "${enable_hc128+set}" = set; then :
19899   enableval=$enable_hc128;  ENABLED_HC128=$enableval
19900 else
19901    ENABLED_HC128=no
19902
19903 fi
19904
19905
19906 if test "$ENABLED_HC128" = "no"
19907 then
19908     AM_CFLAGS="$AM_CFLAGS -DNO_HC128"
19909 else
19910     AM_CFLAGS="$AM_CFLAGS -DHAVE_HC128"
19911 fi
19912
19913  if test "x$ENABLED_HC128" = "xyes"; then
19914   BUILD_HC128_TRUE=
19915   BUILD_HC128_FALSE='#'
19916 else
19917   BUILD_HC128_TRUE='#'
19918   BUILD_HC128_FALSE=
19919 fi
19920
19921
19922
19923 # RABBIT
19924 # Check whether --enable-rabbit was given.
19925 if test "${enable_rabbit+set}" = set; then :
19926   enableval=$enable_rabbit;  ENABLED_RABBIT=$enableval
19927 else
19928    ENABLED_RABBIT=no
19929
19930 fi
19931
19932
19933 if test "$ENABLED_RABBIT" = "no"
19934 then
19935     AM_CFLAGS="$AM_CFLAGS -DNO_RABBIT"
19936 else
19937     AM_CFLAGS="$AM_CFLAGS -DHAVE_RABBIT"
19938 fi
19939
19940  if test "x$ENABLED_RABBIT" = "xyes"; then
19941   BUILD_RABBIT_TRUE=
19942   BUILD_RABBIT_FALSE='#'
19943 else
19944   BUILD_RABBIT_TRUE='#'
19945   BUILD_RABBIT_FALSE=
19946 fi
19947
19948
19949
19950 # FIPS
19951 # Check whether --enable-fips was given.
19952 if test "${enable_fips+set}" = set; then :
19953   enableval=$enable_fips;  ENABLED_FIPS=$enableval
19954 else
19955    ENABLED_FIPS=no
19956
19957 fi
19958
19959
19960 if test "x$ENABLED_FIPS" = "xyes"
19961 then
19962     # requires thread local storage
19963     if test "$thread_ls_on" = "no"
19964     then
19965         as_fn_error $? "FIPS requires Thread Local Storage" "$LINENO" 5
19966     fi
19967     # requires SHA512
19968     if test "x$ENABLED_SHA512" = "xno"
19969     then
19970         ENABLED_SHA512="yes"
19971         AM_CFLAGS="$AM_CFLAGS -DCYASSL_SHA512 -DCYASSL_SHA384"
19972          if test "x$ENABLED_SHA512" = "xyes"; then
19973   BUILD_SHA512_TRUE=
19974   BUILD_SHA512_FALSE='#'
19975 else
19976   BUILD_SHA512_TRUE='#'
19977   BUILD_SHA512_FALSE=
19978 fi
19979
19980     fi
19981     AM_CFLAGS="$AM_CFLAGS -DHAVE_FIPS"
19982 fi
19983
19984  if test "x$ENABLED_FIPS" = "xyes"; then
19985   BUILD_FIPS_TRUE=
19986   BUILD_FIPS_FALSE='#'
19987 else
19988   BUILD_FIPS_TRUE='#'
19989   BUILD_FIPS_FALSE=
19990 fi
19991
19992
19993
19994 # Hash DRBG
19995 # Check whether --enable-hashdrbg was given.
19996 if test "${enable_hashdrbg+set}" = set; then :
19997   enableval=$enable_hashdrbg;  ENABLED_HASHDRBG=$enableval
19998 else
19999    ENABLED_HASHDRBG=no
20000
20001 fi
20002
20003
20004 if test "x$ENABLED_HASHDRBG" = "xyes"
20005 then
20006     AM_CFLAGS="$AM_CFLAGS -DHAVE_HASHDRBG"
20007 else
20008     # turn on Hash DRBG if FIPS is on or ARC4 is off
20009     if test "x$ENABLED_FIPS" = "xyes" || test "x$ENABLED_ARC4" = "xno"
20010     then
20011         AM_CFLAGS="$AM_CFLAGS -DHAVE_HASHDRBG"
20012         ENABLED_HASHDRBG=yes
20013     fi
20014 fi
20015
20016
20017 # Filesystem Build
20018 # Check whether --enable-filesystem was given.
20019 if test "${enable_filesystem+set}" = set; then :
20020   enableval=$enable_filesystem;  ENABLED_FILESYSTEM=$enableval
20021 else
20022    ENABLED_FILESYSTEM=yes
20023
20024 fi
20025
20026
20027 if test "$ENABLED_FILESYSTEM" = "no"
20028 then
20029     AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
20030 else
20031     # turn off filesystem if leanpsk on
20032     if test "$ENABLED_LEANPSK" = "yes"
20033     then
20034         AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
20035         ENABLED_FILESYSTEM=no
20036     fi
20037 fi
20038
20039
20040 # inline Build
20041 # Check whether --enable-inline was given.
20042 if test "${enable_inline+set}" = set; then :
20043   enableval=$enable_inline;  ENABLED_INLINE=$enableval
20044 else
20045    ENABLED_INLINE=yes
20046
20047 fi
20048
20049
20050 if test "$ENABLED_INLINE" = "no"
20051 then
20052     AM_CFLAGS="$AM_CFLAGS -DNO_INLINE"
20053 fi
20054
20055  if test "x$ENABLED_INLINE" = "xyes"; then
20056   BUILD_INLINE_TRUE=
20057   BUILD_INLINE_FALSE='#'
20058 else
20059   BUILD_INLINE_TRUE='#'
20060   BUILD_INLINE_FALSE=
20061 fi
20062
20063
20064
20065 # OCSP
20066 # Check whether --enable-ocsp was given.
20067 if test "${enable_ocsp+set}" = set; then :
20068   enableval=$enable_ocsp;  ENABLED_OCSP=$enableval
20069 else
20070    ENABLED_OCSP=no
20071 fi
20072
20073
20074 if test "$ENABLED_OCSP" = "yes"
20075 then
20076     AM_CFLAGS="$AM_CFLAGS -DHAVE_OCSP"
20077 fi
20078
20079  if test "x$ENABLED_OCSP" = "xyes"; then
20080   BUILD_OCSP_TRUE=
20081   BUILD_OCSP_FALSE='#'
20082 else
20083   BUILD_OCSP_TRUE='#'
20084   BUILD_OCSP_FALSE=
20085 fi
20086
20087
20088
20089 if test "$ENABLED_OCSP" = "yes"
20090 then
20091     # check openssl command tool for testing ocsp
20092     # Extract the first word of "openssl", so it can be a program name with args.
20093 set dummy openssl; ac_word=$2
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20095 $as_echo_n "checking for $ac_word... " >&6; }
20096 if ${ac_cv_prog_HAVE_OPENSSL_CMD+:} false; then :
20097   $as_echo_n "(cached) " >&6
20098 else
20099   if test -n "$HAVE_OPENSSL_CMD"; then
20100   ac_cv_prog_HAVE_OPENSSL_CMD="$HAVE_OPENSSL_CMD" # Let the user override the test.
20101 else
20102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20103 for as_dir in $PATH
20104 do
20105   IFS=$as_save_IFS
20106   test -z "$as_dir" && as_dir=.
20107     for ac_exec_ext in '' $ac_executable_extensions; do
20108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20109     ac_cv_prog_HAVE_OPENSSL_CMD="yes"
20110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20111     break 2
20112   fi
20113 done
20114   done
20115 IFS=$as_save_IFS
20116
20117   test -z "$ac_cv_prog_HAVE_OPENSSL_CMD" && ac_cv_prog_HAVE_OPENSSL_CMD="no"
20118 fi
20119 fi
20120 HAVE_OPENSSL_CMD=$ac_cv_prog_HAVE_OPENSSL_CMD
20121 if test -n "$HAVE_OPENSSL_CMD"; then
20122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OPENSSL_CMD" >&5
20123 $as_echo "$HAVE_OPENSSL_CMD" >&6; }
20124 else
20125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20126 $as_echo "no" >&6; }
20127 fi
20128
20129
20130
20131     if test "$HAVE_OPENSSL_CMD" = "yes"
20132     then
20133         AM_CFLAGS="$AM_CFLAGS -DHAVE_OPENSSL_CMD"
20134     else
20135         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: openssl command line tool not available for testing ocsp" >&5
20136 $as_echo "$as_me: WARNING: openssl command line tool not available for testing ocsp" >&2;}
20137     fi
20138 fi
20139
20140
20141 # CRL
20142 # Check whether --enable-crl was given.
20143 if test "${enable_crl+set}" = set; then :
20144   enableval=$enable_crl;  ENABLED_CRL=$enableval
20145 else
20146    ENABLED_CRL=no
20147 fi
20148
20149
20150 if test "$ENABLED_CRL" = "yes"
20151 then
20152     AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL"
20153 fi
20154
20155  if test "x$ENABLED_CRL" = "xyes"; then
20156   BUILD_CRL_TRUE=
20157   BUILD_CRL_FALSE='#'
20158 else
20159   BUILD_CRL_TRUE='#'
20160   BUILD_CRL_FALSE=
20161 fi
20162
20163
20164
20165 # CRL Monitor
20166 # Check whether --enable-crl-monitor was given.
20167 if test "${enable_crl_monitor+set}" = set; then :
20168   enableval=$enable_crl_monitor;  ENABLED_CRL_MONITOR=$enableval
20169 else
20170    ENABLED_CRL_MONITOR=no
20171 fi
20172
20173
20174 if test "$ENABLED_CRL_MONITOR" = "yes"
20175 then
20176     case $host_os in
20177     *linux* | *darwin* | *freebsd*)
20178         AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_MONITOR" ;;
20179     *)
20180         as_fn_error $? "crl monitor only allowed on linux, OS X, or freebsd" "$LINENO" 5 ;;
20181     esac
20182 fi
20183
20184  if test "x$ENABLED_CRL_MONITOR" = "xyes"; then
20185   BUILD_CRL_MONITOR_TRUE=
20186   BUILD_CRL_MONITOR_FALSE='#'
20187 else
20188   BUILD_CRL_MONITOR_TRUE='#'
20189   BUILD_CRL_MONITOR_FALSE=
20190 fi
20191
20192
20193
20194 # NTRU
20195 ENABLED_NTRU="no"
20196 tryntrudir=""
20197
20198 # Check whether --with-ntru was given.
20199 if test "${with_ntru+set}" = set; then :
20200   withval=$with_ntru;
20201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTRU" >&5
20202 $as_echo_n "checking for NTRU... " >&6; }
20203         CPPFLAGS="$CPPFLAGS -DHAVE_NTRU"
20204         LIBS="$LIBS -lNTRUEncrypt"
20205
20206         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h.  */
20208 #include <ntru_crypto_drbg.h>
20209 int
20210 main ()
20211 {
20212  ntru_crypto_drbg_instantiate(0, 0, 0, 0, 0);
20213   ;
20214   return 0;
20215 }
20216 _ACEOF
20217 if ac_fn_c_try_link "$LINENO"; then :
20218    ntru_linked=yes
20219 else
20220    ntru_linked=no
20221 fi
20222 rm -f core conftest.err conftest.$ac_objext \
20223     conftest$ac_exeext conftest.$ac_ext
20224
20225         if test "x$ntru_linked" == "xno" ; then
20226             if test "x$withval" != "xno" ; then
20227                 tryntrudir=$withval
20228             fi
20229             if test "x$withval" == "xyes" ; then
20230                 tryntrudir="/usr"
20231             fi
20232
20233             LDFLAGS="$AM_LDFLAGS -L$tryntrudir/lib"
20234             CPPFLAGS="$CPPFLAGS -I$tryntrudir/include"
20235
20236             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h.  */
20238 #include <ntru_crypto_drbg.h>
20239 int
20240 main ()
20241 {
20242  ntru_crypto_drbg_instantiate(0, 0, 0, 0, 0);
20243   ;
20244   return 0;
20245 }
20246 _ACEOF
20247 if ac_fn_c_try_link "$LINENO"; then :
20248    ntru_linked=yes
20249 else
20250    ntru_linked=no
20251 fi
20252 rm -f core conftest.err conftest.$ac_objext \
20253     conftest$ac_exeext conftest.$ac_ext
20254
20255             if test "x$ntru_linked" == "xno" ; then
20256                 as_fn_error $? "NTRU isn't found.
20257                 If it's already installed, specify its path using --with-ntru=/dir/" "$LINENO" 5
20258             fi
20259             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20260 $as_echo "yes" >&6; }
20261             AM_LDFLAGS="$AM_LDFLAGS -L$tryntrudir/lib"
20262         else
20263             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20264 $as_echo "yes" >&6; }
20265         fi
20266
20267         AM_CFLAGS="$AM_CFLAGS -DHAVE_NTRU"
20268         ENABLED_NTRU="yes"
20269
20270
20271 fi
20272
20273
20274  if test "x$ENABLED_NTRU" = "xyes"; then
20275   BUILD_NTRU_TRUE=
20276   BUILD_NTRU_FALSE='#'
20277 else
20278   BUILD_NTRU_TRUE='#'
20279   BUILD_NTRU_FALSE=
20280 fi
20281
20282
20283 if test "$ENABLED_NTRU" = "yes" && test "$ENABLED_SMALL" = "yes"
20284 then
20285     as_fn_error $? "cannot enable ntru and small, ntru requires TLS which small turns off." "$LINENO" 5
20286 fi
20287
20288 # SNI
20289 # Check whether --enable-sni was given.
20290 if test "${enable_sni+set}" = set; then :
20291   enableval=$enable_sni;  ENABLED_SNI=$enableval
20292 else
20293    ENABLED_SNI=no
20294
20295 fi
20296
20297
20298 if test "x$ENABLED_SNI" = "xyes"
20299 then
20300     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SNI"
20301 fi
20302
20303 # Maximum Fragment Length
20304 # Check whether --enable-maxfragment was given.
20305 if test "${enable_maxfragment+set}" = set; then :
20306   enableval=$enable_maxfragment;  ENABLED_MAX_FRAGMENT=$enableval
20307 else
20308    ENABLED_MAX_FRAGMENT=no
20309
20310 fi
20311
20312
20313 if test "x$ENABLED_MAX_FRAGMENT" = "xyes"
20314 then
20315     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_MAX_FRAGMENT"
20316 fi
20317
20318 # Truncated HMAC
20319 # Check whether --enable-truncatedhmac was given.
20320 if test "${enable_truncatedhmac+set}" = set; then :
20321   enableval=$enable_truncatedhmac;  ENABLED_TRUNCATED_HMAC=$enableval
20322 else
20323    ENABLED_TRUNCATED_HMAC=no
20324
20325 fi
20326
20327
20328 if test "x$ENABLED_TRUNCATED_HMAC" = "xyes"
20329 then
20330     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_TRUNCATED_HMAC"
20331 fi
20332
20333 # Renegotiation Indication
20334 # Check whether --enable-renegotiation-indication was given.
20335 if test "${enable_renegotiation_indication+set}" = set; then :
20336   enableval=$enable_renegotiation_indication;  ENABLED_RENEGOTIATION_INDICATION=$enableval
20337 else
20338    ENABLED_RENEGOTIATION_INDICATION=no
20339
20340 fi
20341
20342
20343 if test "x$ENABLED_RENEGOTIATION_INDICATION" = "xyes"
20344 then
20345     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_RENEGOTIATION_INDICATION"
20346 fi
20347
20348 # Supported Elliptic Curves Extensions
20349 # Check whether --enable-supportedcurves was given.
20350 if test "${enable_supportedcurves+set}" = set; then :
20351   enableval=$enable_supportedcurves;  ENABLED_SUPPORTED_CURVES=$enableval
20352 else
20353    ENABLED_SUPPORTED_CURVES=no
20354
20355 fi
20356
20357
20358 if test "x$ENABLED_SUPPORTED_CURVES" = "xyes"
20359 then
20360     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SUPPORTED_CURVES"
20361 fi
20362
20363 # TLS Extensions
20364 # Check whether --enable-tlsx was given.
20365 if test "${enable_tlsx+set}" = set; then :
20366   enableval=$enable_tlsx;  ENABLED_TLSX=$enableval
20367 else
20368    ENABLED_TLSX=no
20369
20370 fi
20371
20372
20373 if test "x$ENABLED_TLSX" = "xyes"
20374 then
20375         ENABLED_SNI=yes
20376         ENABLED_MAX_FRAGMENT=yes
20377         ENABLED_TRUNCATED_HMAC=yes
20378         ENABLED_RENEGOTIATION_INDICATION=yes
20379         ENABLED_SUPPORTED_CURVES=yes
20380     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SNI -DHAVE_MAX_FRAGMENT -DHAVE_TRUNCATED_HMAC -DHAVE_RENEGOTIATION_INDICATION -DHAVE_SUPPORTED_CURVES"
20381 fi
20382
20383 # PKCS7
20384 # Check whether --enable-pkcs7 was given.
20385 if test "${enable_pkcs7+set}" = set; then :
20386   enableval=$enable_pkcs7;  ENABLED_PKCS7=$enableval
20387 else
20388    ENABLED_PKCS7=no
20389 fi
20390
20391
20392 if test "$ENABLED_PKCS7" = "yes"
20393 then
20394     AM_CFLAGS="$AM_CFLAGS -DHAVE_PKCS7"
20395 fi
20396
20397  if test "x$ENABLED_PKCS7" = "xyes"; then
20398   BUILD_PKCS7_TRUE=
20399   BUILD_PKCS7_FALSE='#'
20400 else
20401   BUILD_PKCS7_TRUE='#'
20402   BUILD_PKCS7_FALSE=
20403 fi
20404
20405
20406
20407 # Simple Certificate Enrollment Protocol (SCEP)
20408 # Check whether --enable-scep was given.
20409 if test "${enable_scep+set}" = set; then :
20410   enableval=$enable_scep;  ENABLED_WOLFSCEP=$enableval
20411 else
20412    ENABLED_WOLFSCEP=no
20413
20414 fi
20415
20416 if test "$ENABLED_WOLFSCEP" = "yes"
20417 then
20418     # Enable prereqs if not already enabled
20419     if test "x$ENABLED_KEYGEN" = "xno"
20420     then
20421         ENABLED_KEYGEN="yes"
20422         AM_CFLAGS="$AM_CFLAGS -DCYASSL_KEY_GEN"
20423     fi
20424     if test "x$ENABLED_CERTGEN" = "xno"
20425     then
20426         ENABLED_CERTGEN="yes"
20427         AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_GEN"
20428     fi
20429     if test "x$ENABLED_CERTREQ" = "xno"
20430     then
20431         ENABLED_CERTREQ="yes"
20432         AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_REQ"
20433     fi
20434     if test "x$ENABLED_PKCS7" = "xno"
20435     then
20436         ENABLED_PKCS7="yes"
20437         AM_CFLAGS="$AM_CFLAGS -DHAVE_PKCS7"
20438          if test "x$ENABLED_PKCS7" = "xyes"; then
20439   BUILD_PKCS7_TRUE=
20440   BUILD_PKCS7_FALSE='#'
20441 else
20442   BUILD_PKCS7_TRUE='#'
20443   BUILD_PKCS7_FALSE=
20444 fi
20445
20446     fi
20447     AM_CFLAGS="$AM_CFLAGS -DCYASSL_HAVE_WOLFSCEP"
20448 fi
20449
20450
20451 # Small Stack
20452 # Check whether --enable-smallstack was given.
20453 if test "${enable_smallstack+set}" = set; then :
20454   enableval=$enable_smallstack;  ENABLED_SMALL_STACK=$enableval
20455 else
20456    ENABLED_SMALL_STACK=no
20457
20458 fi
20459
20460
20461 if test "x$ENABLED_SMALL_STACK" = "xyes"
20462 then
20463     AM_CFLAGS="$AM_CFLAGS -DCYASSL_SMALL_STACK"
20464 fi
20465
20466
20467 #valgrind
20468 # Check whether --enable-valgrind was given.
20469 if test "${enable_valgrind+set}" = set; then :
20470   enableval=$enable_valgrind;  ENABLED_VALGRIND=$enableval
20471 else
20472    ENABLED_VALGRIND=no
20473
20474 fi
20475
20476
20477 if test "$ENABLED_VALGRIND" = "yes"
20478 then
20479     # Extract the first word of "valgrind", so it can be a program name with args.
20480 set dummy valgrind; ac_word=$2
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20482 $as_echo_n "checking for $ac_word... " >&6; }
20483 if ${ac_cv_prog_HAVE_VALGRIND+:} false; then :
20484   $as_echo_n "(cached) " >&6
20485 else
20486   if test -n "$HAVE_VALGRIND"; then
20487   ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test.
20488 else
20489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20490 for as_dir in $PATH
20491 do
20492   IFS=$as_save_IFS
20493   test -z "$as_dir" && as_dir=.
20494     for ac_exec_ext in '' $ac_executable_extensions; do
20495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20496     ac_cv_prog_HAVE_VALGRIND="yes"
20497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20498     break 2
20499   fi
20500 done
20501   done
20502 IFS=$as_save_IFS
20503
20504   test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no"
20505 fi
20506 fi
20507 HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND
20508 if test -n "$HAVE_VALGRIND"; then
20509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_VALGRIND" >&5
20510 $as_echo "$HAVE_VALGRIND" >&6; }
20511 else
20512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20513 $as_echo "no" >&6; }
20514 fi
20515
20516
20517
20518     if test "$HAVE_VALGRIND" = "no"
20519     then
20520         as_fn_error $? "Valgrind not found." "$LINENO" 5
20521     fi
20522     enable_shared=no
20523     enable_static=yes
20524     AM_CFLAGS="$AM_CFLAGS -DHAVE_VALGRIND"
20525 fi
20526
20527  if test "x$ENABLED_VALGRIND" = "xyes"; then
20528   USE_VALGRIND_TRUE=
20529   USE_VALGRIND_FALSE='#'
20530 else
20531   USE_VALGRIND_TRUE='#'
20532   USE_VALGRIND_FALSE=
20533 fi
20534
20535
20536
20537 # Test certs, use internal cert functions for extra testing
20538 # Check whether --enable-testcert was given.
20539 if test "${enable_testcert+set}" = set; then :
20540   enableval=$enable_testcert;  ENABLED_TESTCERT=$enableval
20541 else
20542    ENABLED_TESTCERT=no
20543
20544 fi
20545
20546
20547 if test "$ENABLED_TESTCERT" = "yes"
20548 then
20549     AM_CFLAGS="$AM_CFLAGS -DCYASSL_TEST_CERT"
20550 fi
20551
20552
20553 # I/O Pool, an example to show user how to override memory handler and use
20554 # a pool for the input/output buffer requests
20555 # Check whether --enable-iopool was given.
20556 if test "${enable_iopool+set}" = set; then :
20557   enableval=$enable_iopool;  ENABLED_IOPOOL=$enableval
20558 else
20559    ENABLED_IOPOOL=no
20560
20561 fi
20562
20563
20564 if test "$ENABLED_IOPOOL" = "yes"
20565 then
20566     if test "$thread_ls_on" = "no"
20567     then
20568         as_fn_error $? "I/O Pool example requires Thread Local Storage" "$LINENO" 5
20569     fi
20570     AM_CFLAGS="$AM_CFLAGS -DHAVE_IO_POOL -DXMALLOC_USER"
20571 fi
20572
20573
20574 # Certificate Service Support
20575 # Check whether --enable-certservice was given.
20576 if test "${enable_certservice+set}" = set; then :
20577   enableval=$enable_certservice;  ENABLED_CERT_SERVICE=$enableval
20578 else
20579    ENABLED_CERT_SERVICE=no
20580
20581 fi
20582
20583 if test "$ENABLED_CERT_SERVICE" = "yes"
20584 then
20585     # Requires ecc,certgen, and opensslextra make sure on
20586     if test "x$ENABLED_CERTGEN" = "xno"
20587     then
20588         ENABLED_CERTGEN="yes"
20589         AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_GEN"
20590     fi
20591     if test "x$ENABLED_ECC" = "xno"
20592     then
20593         ENABLED_ECC="yes"
20594         AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR"
20595          if test "x$ENABLED_ECC" = "xyes"; then
20596   BUILD_ECC_TRUE=
20597   BUILD_ECC_FALSE='#'
20598 else
20599   BUILD_ECC_TRUE='#'
20600   BUILD_ECC_FALSE=
20601 fi
20602
20603     fi
20604     if test "x$ENABLED_OPENSSLEXTRA" = "xno"
20605     then
20606         ENABLED_OPENSSLEXTRA="yes"
20607         AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
20608     fi
20609     AM_CFLAGS="$AM_CFLAGS -DCYASSL_HAVE_CERT_SERVICE"
20610 fi
20611
20612
20613 # set fastmath default
20614 FASTMATH_DEFAULT=no
20615
20616 if test "$host_cpu" = "x86_64"
20617 then
20618 FASTMATH_DEFAULT=yes
20619 fi
20620
20621 # fastmath
20622 # Check whether --enable-fastmath was given.
20623 if test "${enable_fastmath+set}" = set; then :
20624   enableval=$enable_fastmath;  ENABLED_FASTMATH=$enableval
20625 else
20626    ENABLED_FASTMATH=$FASTMATH_DEFAULT
20627
20628 fi
20629
20630
20631 if test "x$ENABLED_FASTMATH" = "xyes"
20632 then
20633     # turn off fastmth if leanpsk on or asn off
20634     if test "$ENABLED_LEANPSK" = "yes" || test "$ENABLED_ASN" = "no"
20635     then
20636         ENABLED_FASTMATH=no
20637     else
20638         AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
20639         ENABLED_SLOWMATH="no"
20640     fi
20641 fi
20642
20643
20644 # fast HUGE math
20645 # Check whether --enable-fasthugemath was given.
20646 if test "${enable_fasthugemath+set}" = set; then :
20647   enableval=$enable_fasthugemath;  ENABLED_FASTHUGEMATH=$enableval
20648 else
20649    ENABLED_FASTHUGEMATH=no
20650
20651 fi
20652
20653
20654 if test "$ENABLED_BUMP" = "yes"
20655 then
20656     ENABLED_FASTHUGEMATH="yes"
20657 fi
20658
20659 if test "$ENABLED_FASTHUGEMATH" = "yes"
20660 then
20661     ENABLED_FASTMATH="yes"
20662     AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
20663     ENABLED_SLOWMATH="no"
20664 fi
20665
20666  if test "x$ENABLED_FASTMATH" = "xyes"; then
20667   BUILD_FASTMATH_TRUE=
20668   BUILD_FASTMATH_FALSE='#'
20669 else
20670   BUILD_FASTMATH_TRUE='#'
20671   BUILD_FASTMATH_FALSE=
20672 fi
20673
20674  if test "x$ENABLED_SLOWMATH" = "xyes"; then
20675   BUILD_SLOWMATH_TRUE=
20676   BUILD_SLOWMATH_FALSE='#'
20677 else
20678   BUILD_SLOWMATH_TRUE='#'
20679   BUILD_SLOWMATH_FALSE=
20680 fi
20681
20682
20683
20684 # Enable Examples, used to disable examples
20685 # Check whether --enable-examples was given.
20686 if test "${enable_examples+set}" = set; then :
20687   enableval=$enable_examples;  ENABLED_EXAMPLES=$enableval
20688 else
20689    ENABLED_EXAMPLES=yes
20690
20691 fi
20692
20693
20694 if test "x$ENABLED_FILESYSTEM" = "xno"; then :
20695   ENABLED_EXAMPLES="no"
20696 fi
20697 if test "x$ENABLED_INLINE" = "xno"; then :
20698   ENABLED_EXAMPLES="no"
20699 fi
20700 # certs still have sha signatures for now
20701 if test "x$ENABLED_SHA" = "xno"; then :
20702   ENABLED_EXAMPLES="no"
20703 fi
20704  if test "x$ENABLED_EXAMPLES" = "xyes"; then
20705   BUILD_EXAMPLES_TRUE=
20706   BUILD_EXAMPLES_FALSE='#'
20707 else
20708   BUILD_EXAMPLES_TRUE='#'
20709   BUILD_EXAMPLES_FALSE=
20710 fi
20711
20712
20713
20714 # LIBZ
20715 ENABLED_LIBZ="no"
20716 trylibzdir=""
20717
20718 # Check whether --with-libz was given.
20719 if test "${with_libz+set}" = set; then :
20720   withval=$with_libz;
20721         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
20722 $as_echo_n "checking for libz... " >&6; }
20723         CPPFLAGS="$CPPFLAGS -DHAVE_LIBZ"
20724         LIBS="$LIBS -lz"
20725
20726         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20727 /* end confdefs.h.  */
20728 #include <zlib.h>
20729 int
20730 main ()
20731 {
20732  deflateInit(0, 8);
20733   ;
20734   return 0;
20735 }
20736 _ACEOF
20737 if ac_fn_c_try_link "$LINENO"; then :
20738    libz_linked=yes
20739 else
20740    libz_linked=no
20741 fi
20742 rm -f core conftest.err conftest.$ac_objext \
20743     conftest$ac_exeext conftest.$ac_ext
20744
20745         if test "x$libz_linked" == "xno" ; then
20746             if test "x$withval" != "xno" ; then
20747                 trylibzdir=$withval
20748             fi
20749             if test "x$withval" == "xyes" ; then
20750                 trylibzdir="/usr"
20751             fi
20752
20753             AM_LDFLAGS="$AM_LDFLAGS -L$trylibzdir/lib"
20754             CPPFLAGS="$CPPFLAGS -I$trylibzdir/include"
20755
20756             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20757 /* end confdefs.h.  */
20758 #include <zlib.h>
20759 int
20760 main ()
20761 {
20762  deflateInit(0, 8);
20763   ;
20764   return 0;
20765 }
20766 _ACEOF
20767 if ac_fn_c_try_link "$LINENO"; then :
20768    libz_linked=yes
20769 else
20770    libz_linked=no
20771 fi
20772 rm -f core conftest.err conftest.$ac_objext \
20773     conftest$ac_exeext conftest.$ac_ext
20774
20775             if test "x$libz_linked" == "xno" ; then
20776                 as_fn_error $? "libz isn't found.
20777                 If it's already installed, specify its path using --with-libz=/dir/" "$LINENO" 5
20778             fi
20779             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20780 $as_echo "yes" >&6; }
20781         else
20782             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20783 $as_echo "yes" >&6; }
20784         fi
20785         ENABLED_LIBZ="yes"
20786
20787
20788 fi
20789
20790  if test "x$ENABLED_LIBZ" = "xyes"; then
20791   BUILD_LIBZ_TRUE=
20792   BUILD_LIBZ_FALSE='#'
20793 else
20794   BUILD_LIBZ_TRUE='#'
20795   BUILD_LIBZ_FALSE=
20796 fi
20797
20798
20799
20800 # cavium
20801 trycaviumdir=""
20802
20803 # Check whether --with-cavium was given.
20804 if test "${with_cavium+set}" = set; then :
20805   withval=$with_cavium;
20806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cavium" >&5
20807 $as_echo_n "checking for cavium... " >&6; }
20808         CPPFLAGS="$CPPFLAGS -DHAVE_CAVIUM"
20809
20810             if test "x$withval" == "xyes" ; then
20811                 as_fn_error $? "need a PATH for --with-cavium" "$LINENO" 5
20812             fi
20813             if test "x$withval" != "xno" ; then
20814                 trycaviumdir=$withval
20815             fi
20816
20817             LDFLAGS="$AM_LDFLAGS $trycaviumdir/api/cavium_common.o"
20818             CPPFLAGS="$CPPFLAGS -I$trycaviumdir/include"
20819
20820             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h.  */
20822 #include "cavium_common.h"
20823 int
20824 main ()
20825 {
20826  CspShutdown(CAVIUM_DEV_ID);
20827   ;
20828   return 0;
20829 }
20830 _ACEOF
20831 if ac_fn_c_try_link "$LINENO"; then :
20832    cavium_linked=yes
20833 else
20834    cavium_linked=no
20835 fi
20836 rm -f core conftest.err conftest.$ac_objext \
20837     conftest$ac_exeext conftest.$ac_ext
20838
20839             if test "x$cavium_linked" == "xno" ; then
20840                 as_fn_error $? "cavium isn't found.
20841                 If it's already installed, specify its path using --with-cavium=/dir/" "$LINENO" 5
20842             fi
20843             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20844 $as_echo "yes" >&6; }
20845             enable_shared=no
20846             enable_static=yes
20847
20848
20849 fi
20850
20851
20852
20853 # microchip api
20854 # Check whether --enable-mcapi was given.
20855 if test "${enable_mcapi+set}" = set; then :
20856   enableval=$enable_mcapi;  ENABLED_MCAPI=$enableval
20857 else
20858    ENABLED_MCAPI=no
20859
20860 fi
20861
20862
20863 if test "$ENABLED_MCAPI" = "yes"
20864 then
20865     AM_CFLAGS="$AM_CFLAGS -DHAVE_MCAPI -DCYASSL_AES_COUNTER -DCYASSL_AES_DIRECT"
20866 fi
20867
20868 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_SHA512" = "no"
20869 then
20870     as_fn_error $? "please enable sha512 if enabling mcapi." "$LINENO" 5
20871 fi
20872
20873 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_ECC" = "no"
20874 then
20875     as_fn_error $? "please enable ecc if enabling mcapi." "$LINENO" 5
20876 fi
20877
20878 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_LIBZ" = "no"
20879 then
20880     as_fn_error $? "please use --with-libz if enabling mcapi." "$LINENO" 5
20881 fi
20882
20883  if test "x$ENABLED_MCAPI" = "xyes"; then
20884   BUILD_MCAPI_TRUE=
20885   BUILD_MCAPI_FALSE='#'
20886 else
20887   BUILD_MCAPI_TRUE='#'
20888   BUILD_MCAPI_FALSE=
20889 fi
20890
20891
20892
20893
20894 # OPTIMIZE FLAGS
20895 if test "$GCC" = "yes"
20896 then
20897     AM_CFLAGS="$AM_CFLAGS -Wall -Wno-unused"
20898     if test "$ax_enable_debug" = "no"
20899     then
20900         if test "$ENABLED_FASTMATH" = "yes"
20901         then
20902             AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_FAST_CFLAGS"
20903             if test "$ENABLED_FASTHUGEMATH" = "yes"
20904             then
20905                 AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_HUGE_CFLAGS"
20906             fi
20907         else
20908             AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_CFLAGS"
20909         fi
20910     fi
20911 fi
20912
20913 # ICC command line warning for non supported warning flags
20914 if test "$CC" = "icc"
20915 then
20916     AM_CFLAGS="$AM_CFLAGS -wd10006"
20917 fi
20918
20919
20920
20921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20922 $as_echo_n "checking for library containing gethostbyname... " >&6; }
20923 if ${ac_cv_search_gethostbyname+:} false; then :
20924   $as_echo_n "(cached) " >&6
20925 else
20926   ac_func_search_save_LIBS=$LIBS
20927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20928 /* end confdefs.h.  */
20929
20930 /* Override any GCC internal prototype to avoid an error.
20931    Use char because int might match the return type of a GCC
20932    builtin and then its argument prototype would still apply.  */
20933 #ifdef __cplusplus
20934 extern "C"
20935 #endif
20936 char gethostbyname ();
20937 int
20938 main ()
20939 {
20940 return gethostbyname ();
20941   ;
20942   return 0;
20943 }
20944 _ACEOF
20945 for ac_lib in '' nsl; do
20946   if test -z "$ac_lib"; then
20947     ac_res="none required"
20948   else
20949     ac_res=-l$ac_lib
20950     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20951   fi
20952   if ac_fn_c_try_link "$LINENO"; then :
20953   ac_cv_search_gethostbyname=$ac_res
20954 fi
20955 rm -f core conftest.err conftest.$ac_objext \
20956     conftest$ac_exeext
20957   if ${ac_cv_search_gethostbyname+:} false; then :
20958   break
20959 fi
20960 done
20961 if ${ac_cv_search_gethostbyname+:} false; then :
20962
20963 else
20964   ac_cv_search_gethostbyname=no
20965 fi
20966 rm conftest.$ac_ext
20967 LIBS=$ac_func_search_save_LIBS
20968 fi
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20970 $as_echo "$ac_cv_search_gethostbyname" >&6; }
20971 ac_res=$ac_cv_search_gethostbyname
20972 if test "$ac_res" != no; then :
20973   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20974
20975 fi
20976
20977         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20978 $as_echo_n "checking for library containing socket... " >&6; }
20979 if ${ac_cv_search_socket+:} false; then :
20980   $as_echo_n "(cached) " >&6
20981 else
20982   ac_func_search_save_LIBS=$LIBS
20983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20984 /* end confdefs.h.  */
20985
20986 /* Override any GCC internal prototype to avoid an error.
20987    Use char because int might match the return type of a GCC
20988    builtin and then its argument prototype would still apply.  */
20989 #ifdef __cplusplus
20990 extern "C"
20991 #endif
20992 char socket ();
20993 int
20994 main ()
20995 {
20996 return socket ();
20997   ;
20998   return 0;
20999 }
21000 _ACEOF
21001 for ac_lib in '' socket; do
21002   if test -z "$ac_lib"; then
21003     ac_res="none required"
21004   else
21005     ac_res=-l$ac_lib
21006     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21007   fi
21008   if ac_fn_c_try_link "$LINENO"; then :
21009   ac_cv_search_socket=$ac_res
21010 fi
21011 rm -f core conftest.err conftest.$ac_objext \
21012     conftest$ac_exeext
21013   if ${ac_cv_search_socket+:} false; then :
21014   break
21015 fi
21016 done
21017 if ${ac_cv_search_socket+:} false; then :
21018
21019 else
21020   ac_cv_search_socket=no
21021 fi
21022 rm conftest.$ac_ext
21023 LIBS=$ac_func_search_save_LIBS
21024 fi
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21026 $as_echo "$ac_cv_search_socket" >&6; }
21027 ac_res=$ac_cv_search_socket
21028 if test "$ac_res" != no; then :
21029   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21030
21031 else
21032
21033                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21034 $as_echo_n "checking for socket in -lsocket... " >&6; }
21035 if ${ac_cv_lib_socket_socket+:} false; then :
21036   $as_echo_n "(cached) " >&6
21037 else
21038   ac_check_lib_save_LIBS=$LIBS
21039 LIBS="-lsocket -lnsl $LIBS"
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h.  */
21042
21043 /* Override any GCC internal prototype to avoid an error.
21044    Use char because int might match the return type of a GCC
21045    builtin and then its argument prototype would still apply.  */
21046 #ifdef __cplusplus
21047 extern "C"
21048 #endif
21049 char socket ();
21050 int
21051 main ()
21052 {
21053 return socket ();
21054   ;
21055   return 0;
21056 }
21057 _ACEOF
21058 if ac_fn_c_try_link "$LINENO"; then :
21059   ac_cv_lib_socket_socket=yes
21060 else
21061   ac_cv_lib_socket_socket=no
21062 fi
21063 rm -f core conftest.err conftest.$ac_objext \
21064     conftest$ac_exeext conftest.$ac_ext
21065 LIBS=$ac_check_lib_save_LIBS
21066 fi
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21068 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21069 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21070   LIBS="-lsocket -lnsl $LIBS"
21071 fi
21072
21073 fi
21074
21075
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
21077 $as_echo_n "checking whether C compiler accepts ... " >&6; }
21078 if ${ax_cv_check_cflags__+:} false; then :
21079   $as_echo_n "(cached) " >&6
21080 else
21081
21082   ax_check_save_flags=$CFLAGS
21083   CFLAGS="$CFLAGS  "
21084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21085 /* end confdefs.h.  */
21086
21087 int
21088 main ()
21089 {
21090
21091   ;
21092   return 0;
21093 }
21094 _ACEOF
21095 if ac_fn_c_try_compile "$LINENO"; then :
21096   ax_cv_check_cflags__=yes
21097 else
21098   ax_cv_check_cflags__=no
21099 fi
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101   CFLAGS=$ax_check_save_flags
21102 fi
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
21104 $as_echo "$ax_cv_check_cflags__" >&6; }
21105 if test x"$ax_cv_check_cflags__" = xyes; then :
21106   :
21107 else
21108   :
21109 fi
21110
21111 if ${CFLAGS+:} false; then :
21112   case " $CFLAGS " in
21113     *"  "*)
21114       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
21115   (: CFLAGS already contains ) 2>&5
21116   ac_status=$?
21117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21118   test $ac_status = 0; }
21119       ;;
21120     *)
21121       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
21122   (: CFLAGS="$CFLAGS ") 2>&5
21123   ac_status=$?
21124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21125   test $ac_status = 0; }
21126       CFLAGS="$CFLAGS "
21127       ;;
21128    esac
21129 else
21130   CFLAGS=""
21131 fi
21132
21133
21134
21135 for flag in ; do
21136   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21138 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21139 if eval \${$as_CACHEVAR+:} false; then :
21140   $as_echo_n "(cached) " >&6
21141 else
21142
21143   ax_check_save_flags=$CFLAGS
21144   CFLAGS="$CFLAGS  $flag"
21145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21146 /* end confdefs.h.  */
21147
21148 int
21149 main ()
21150 {
21151
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 if ac_fn_c_try_compile "$LINENO"; then :
21157   eval "$as_CACHEVAR=yes"
21158 else
21159   eval "$as_CACHEVAR=no"
21160 fi
21161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162   CFLAGS=$ax_check_save_flags
21163 fi
21164 eval ac_res=\$$as_CACHEVAR
21165                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21166 $as_echo "$ac_res" >&6; }
21167 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21168   if ${CFLAGS+:} false; then :
21169   case " $CFLAGS " in
21170     *" $flag "*)
21171       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21172   (: CFLAGS already contains $flag) 2>&5
21173   ac_status=$?
21174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21175   test $ac_status = 0; }
21176       ;;
21177     *)
21178       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21179   (: CFLAGS="$CFLAGS $flag") 2>&5
21180   ac_status=$?
21181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21182   test $ac_status = 0; }
21183       CFLAGS="$CFLAGS $flag"
21184       ;;
21185    esac
21186 else
21187   CFLAGS="$flag"
21188 fi
21189
21190 else
21191   :
21192 fi
21193
21194 done
21195
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts " >&5
21197 $as_echo_n "checking whether the linker accepts ... " >&6; }
21198 if ${ax_cv_check_ldflags__+:} false; then :
21199   $as_echo_n "(cached) " >&6
21200 else
21201
21202   ax_check_save_flags=$LDFLAGS
21203   LDFLAGS="$LDFLAGS  "
21204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h.  */
21206
21207 int
21208 main ()
21209 {
21210
21211   ;
21212   return 0;
21213 }
21214 _ACEOF
21215 if ac_fn_c_try_link "$LINENO"; then :
21216   ax_cv_check_ldflags__=yes
21217 else
21218   ax_cv_check_ldflags__=no
21219 fi
21220 rm -f core conftest.err conftest.$ac_objext \
21221     conftest$ac_exeext conftest.$ac_ext
21222   LDFLAGS=$ax_check_save_flags
21223 fi
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__" >&5
21225 $as_echo "$ax_cv_check_ldflags__" >&6; }
21226 if test x"$ax_cv_check_ldflags__" = xyes; then :
21227   :
21228 else
21229   :
21230 fi
21231
21232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vcs system" >&5
21233 $as_echo_n "checking for vcs system... " >&6; }
21234 if ${ac_cv_vcs_system+:} false; then :
21235   $as_echo_n "(cached) " >&6
21236 else
21237   ac_cv_vcs_system="none"
21238       if test -d ".bzr"; then :
21239   ac_cv_vcs_system="bazaar"
21240 fi
21241       if test -d ".svn"; then :
21242   ac_cv_vcs_system="svn"
21243 fi
21244       if test -d ".hg"; then :
21245   ac_cv_vcs_system="mercurial"
21246 fi
21247       if test -d ".git"; then :
21248   ac_cv_vcs_system="git"
21249 fi
21250
21251 fi
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vcs_system" >&5
21253 $as_echo "$ac_cv_vcs_system" >&6; }
21254
21255 cat >>confdefs.h <<_ACEOF
21256 #define VCS_SYSTEM "$ac_cv_vcs_system"
21257 _ACEOF
21258
21259
21260
21261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vcs checkout" >&5
21262 $as_echo_n "checking for vcs checkout... " >&6; }
21263 if ${ac_cv_vcs_checkout+:} false; then :
21264   $as_echo_n "(cached) " >&6
21265 else
21266   if test "x$ac_cv_vcs_system" != "xnone"; then :
21267   ac_cv_vcs_checkout=yes
21268 else
21269   ac_cv_vcs_checkout=no
21270 fi
21271
21272 fi
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vcs_checkout" >&5
21274 $as_echo "$ac_cv_vcs_checkout" >&6; }
21275
21276      if test "x$ac_cv_vcs_checkout" = "xyes"; then
21277   IS_VCS_CHECKOUT_TRUE=
21278   IS_VCS_CHECKOUT_FALSE='#'
21279 else
21280   IS_VCS_CHECKOUT_TRUE='#'
21281   IS_VCS_CHECKOUT_FALSE=
21282 fi
21283
21284     if test "x$ac_cv_vcs_checkout" = "xyes"; then :
21285
21286 $as_echo "#define VCS_CHECKOUT 1" >>confdefs.h
21287
21288 else
21289
21290 $as_echo "#define VCS_CHECKOUT 0" >>confdefs.h
21291
21292 fi
21293
21294
21295
21296
21297
21298
21299             AX_HARDEN_LIB=
21300       ax_append_compile_link_flags_extra=
21301       if test "x$ac_cv_vcs_checkout" = "xyes"; then :
21302
21303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Werror" >&5
21304 $as_echo_n "checking whether the linker accepts -Werror... " >&6; }
21305 if ${ax_cv_check_ldflags___Werror+:} false; then :
21306   $as_echo_n "(cached) " >&6
21307 else
21308
21309   ax_check_save_flags=$LDFLAGS
21310   LDFLAGS="$LDFLAGS  -Werror"
21311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21312 /* end confdefs.h.  */
21313
21314 int
21315 main ()
21316 {
21317
21318   ;
21319   return 0;
21320 }
21321 _ACEOF
21322 if ac_fn_c_try_link "$LINENO"; then :
21323   ax_cv_check_ldflags___Werror=yes
21324 else
21325   ax_cv_check_ldflags___Werror=no
21326 fi
21327 rm -f core conftest.err conftest.$ac_objext \
21328     conftest$ac_exeext conftest.$ac_ext
21329   LDFLAGS=$ax_check_save_flags
21330 fi
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Werror" >&5
21332 $as_echo "$ax_cv_check_ldflags___Werror" >&6; }
21333 if test x"$ax_cv_check_ldflags___Werror" = xyes; then :
21334
21335           AX_HARDEN_LIB="-Werror $AX_HARDEN_LIB"
21336
21337 else
21338   :
21339 fi
21340
21341
21342 else
21343
21344         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Werror" >&5
21345 $as_echo_n "checking whether the linker accepts -Werror... " >&6; }
21346 if ${ax_cv_check_ldflags___Werror+:} false; then :
21347   $as_echo_n "(cached) " >&6
21348 else
21349
21350   ax_check_save_flags=$LDFLAGS
21351   LDFLAGS="$LDFLAGS  -Werror"
21352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353 /* end confdefs.h.  */
21354
21355 int
21356 main ()
21357 {
21358
21359   ;
21360   return 0;
21361 }
21362 _ACEOF
21363 if ac_fn_c_try_link "$LINENO"; then :
21364   ax_cv_check_ldflags___Werror=yes
21365 else
21366   ax_cv_check_ldflags___Werror=no
21367 fi
21368 rm -f core conftest.err conftest.$ac_objext \
21369     conftest$ac_exeext conftest.$ac_ext
21370   LDFLAGS=$ax_check_save_flags
21371 fi
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Werror" >&5
21373 $as_echo "$ax_cv_check_ldflags___Werror" >&6; }
21374 if test x"$ax_cv_check_ldflags___Werror" = xyes; then :
21375
21376           ax_append_compile_link_flags_extra='-Werror'
21377
21378 else
21379   :
21380 fi
21381
21382
21383 fi
21384
21385       as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_append_compile_link_flags_extra_-z relro -z now" | $as_tr_sh`
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -z relro -z now" >&5
21387 $as_echo_n "checking whether the linker accepts -z relro -z now... " >&6; }
21388 if eval \${$as_CACHEVAR+:} false; then :
21389   $as_echo_n "(cached) " >&6
21390 else
21391
21392   ax_check_save_flags=$LDFLAGS
21393   LDFLAGS="$LDFLAGS $ax_append_compile_link_flags_extra -z relro -z now"
21394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h.  */
21396
21397 int
21398 main ()
21399 {
21400
21401   ;
21402   return 0;
21403 }
21404 _ACEOF
21405 if ac_fn_c_try_link "$LINENO"; then :
21406   eval "$as_CACHEVAR=yes"
21407 else
21408   eval "$as_CACHEVAR=no"
21409 fi
21410 rm -f core conftest.err conftest.$ac_objext \
21411     conftest$ac_exeext conftest.$ac_ext
21412   LDFLAGS=$ax_check_save_flags
21413 fi
21414 eval ac_res=\$$as_CACHEVAR
21415                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21416 $as_echo "$ac_res" >&6; }
21417 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21418
21419         AX_HARDEN_LIB="-z relro -z now $AX_HARDEN_LIB"
21420
21421 else
21422   :
21423 fi
21424
21425
21426       as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_append_compile_link_flags_extra_-pie" | $as_tr_sh`
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
21428 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
21429 if eval \${$as_CACHEVAR+:} false; then :
21430   $as_echo_n "(cached) " >&6
21431 else
21432
21433   ax_check_save_flags=$LDFLAGS
21434   LDFLAGS="$LDFLAGS $ax_append_compile_link_flags_extra -pie"
21435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h.  */
21437
21438 int
21439 main ()
21440 {
21441
21442   ;
21443   return 0;
21444 }
21445 _ACEOF
21446 if ac_fn_c_try_link "$LINENO"; then :
21447   eval "$as_CACHEVAR=yes"
21448 else
21449   eval "$as_CACHEVAR=no"
21450 fi
21451 rm -f core conftest.err conftest.$ac_objext \
21452     conftest$ac_exeext conftest.$ac_ext
21453   LDFLAGS=$ax_check_save_flags
21454 fi
21455 eval ac_res=\$$as_CACHEVAR
21456                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21457 $as_echo "$ac_res" >&6; }
21458 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21459
21460           AX_HARDEN_LIB="-pie $AX_HARDEN_LIB"
21461
21462 else
21463   :
21464 fi
21465
21466
21467       LIB="$LIB $AX_HARDEN_LIB"
21468
21469
21470
21471
21472
21473       ac_ext=c
21474 ac_cpp='$CPP $CPPFLAGS'
21475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21478
21479
21480       CFLAGS=
21481       ac_cv_warnings_as_errors=no
21482       ax_append_compile_cflags_extra=
21483       if test "$ac_cv_vcs_checkout" = "yes"; then :
21484
21485
21486
21487 for flag in -Werror; do
21488   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21490 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21491 if eval \${$as_CACHEVAR+:} false; then :
21492   $as_echo_n "(cached) " >&6
21493 else
21494
21495   ax_check_save_flags=$CFLAGS
21496   CFLAGS="$CFLAGS  $flag"
21497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h.  */
21499
21500 int
21501 main ()
21502 {
21503
21504   ;
21505   return 0;
21506 }
21507 _ACEOF
21508 if ac_fn_c_try_compile "$LINENO"; then :
21509   eval "$as_CACHEVAR=yes"
21510 else
21511   eval "$as_CACHEVAR=no"
21512 fi
21513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21514   CFLAGS=$ax_check_save_flags
21515 fi
21516 eval ac_res=\$$as_CACHEVAR
21517                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21518 $as_echo "$ac_res" >&6; }
21519 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21520   if ${CFLAGS+:} false; then :
21521   case " $CFLAGS " in
21522     *" $flag "*)
21523       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21524   (: CFLAGS already contains $flag) 2>&5
21525   ac_status=$?
21526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21527   test $ac_status = 0; }
21528       ;;
21529     *)
21530       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21531   (: CFLAGS="$CFLAGS $flag") 2>&5
21532   ac_status=$?
21533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21534   test $ac_status = 0; }
21535       CFLAGS="$CFLAGS $flag"
21536       ;;
21537    esac
21538 else
21539   CFLAGS="$flag"
21540 fi
21541
21542 else
21543   :
21544 fi
21545
21546 done
21547
21548         ac_cv_warnings_as_errors=yes
21549
21550 else
21551
21552
21553
21554 for flag in -Werror; do
21555   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21557 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21558 if eval \${$as_CACHEVAR+:} false; then :
21559   $as_echo_n "(cached) " >&6
21560 else
21561
21562   ax_check_save_flags=$CFLAGS
21563   CFLAGS="$CFLAGS  $flag"
21564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21565 /* end confdefs.h.  */
21566
21567 int
21568 main ()
21569 {
21570
21571   ;
21572   return 0;
21573 }
21574 _ACEOF
21575 if ac_fn_c_try_compile "$LINENO"; then :
21576   eval "$as_CACHEVAR=yes"
21577 else
21578   eval "$as_CACHEVAR=no"
21579 fi
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581   CFLAGS=$ax_check_save_flags
21582 fi
21583 eval ac_res=\$$as_CACHEVAR
21584                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21585 $as_echo "$ac_res" >&6; }
21586 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21587   if ${ax_append_compile_cflags_extra+:} false; then :
21588   case " $ax_append_compile_cflags_extra " in
21589     *" $flag "*)
21590       { { $as_echo "$as_me:${as_lineno-$LINENO}: : ax_append_compile_cflags_extra already contains \$flag"; } >&5
21591   (: ax_append_compile_cflags_extra already contains $flag) 2>&5
21592   ac_status=$?
21593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21594   test $ac_status = 0; }
21595       ;;
21596     *)
21597       { { $as_echo "$as_me:${as_lineno-$LINENO}: : ax_append_compile_cflags_extra=\"\$ax_append_compile_cflags_extra \$flag\""; } >&5
21598   (: ax_append_compile_cflags_extra="$ax_append_compile_cflags_extra $flag") 2>&5
21599   ac_status=$?
21600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21601   test $ac_status = 0; }
21602       ax_append_compile_cflags_extra="$ax_append_compile_cflags_extra $flag"
21603       ;;
21604    esac
21605 else
21606   ax_append_compile_cflags_extra="$flag"
21607 fi
21608
21609 else
21610   :
21611 fi
21612
21613 done
21614
21615
21616 fi
21617
21618       if test "$ax_enable_debug" = "yes"; then :
21619
21620
21621
21622 for flag in -g; do
21623   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21625 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21626 if eval \${$as_CACHEVAR+:} false; then :
21627   $as_echo_n "(cached) " >&6
21628 else
21629
21630   ax_check_save_flags=$CFLAGS
21631   CFLAGS="$CFLAGS  $flag"
21632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21633 /* end confdefs.h.  */
21634
21635 int
21636 main ()
21637 {
21638
21639   ;
21640   return 0;
21641 }
21642 _ACEOF
21643 if ac_fn_c_try_compile "$LINENO"; then :
21644   eval "$as_CACHEVAR=yes"
21645 else
21646   eval "$as_CACHEVAR=no"
21647 fi
21648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649   CFLAGS=$ax_check_save_flags
21650 fi
21651 eval ac_res=\$$as_CACHEVAR
21652                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21653 $as_echo "$ac_res" >&6; }
21654 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21655   if ${CFLAGS+:} false; then :
21656   case " $CFLAGS " in
21657     *" $flag "*)
21658       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21659   (: CFLAGS already contains $flag) 2>&5
21660   ac_status=$?
21661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21662   test $ac_status = 0; }
21663       ;;
21664     *)
21665       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21666   (: CFLAGS="$CFLAGS $flag") 2>&5
21667   ac_status=$?
21668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21669   test $ac_status = 0; }
21670       CFLAGS="$CFLAGS $flag"
21671       ;;
21672    esac
21673 else
21674   CFLAGS="$flag"
21675 fi
21676
21677 else
21678   :
21679 fi
21680
21681 done
21682
21683
21684
21685 for flag in -ggdb; do
21686   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21688 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21689 if eval \${$as_CACHEVAR+:} false; then :
21690   $as_echo_n "(cached) " >&6
21691 else
21692
21693   ax_check_save_flags=$CFLAGS
21694   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
21695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h.  */
21697
21698 int
21699 main ()
21700 {
21701
21702   ;
21703   return 0;
21704 }
21705 _ACEOF
21706 if ac_fn_c_try_compile "$LINENO"; then :
21707   eval "$as_CACHEVAR=yes"
21708 else
21709   eval "$as_CACHEVAR=no"
21710 fi
21711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21712   CFLAGS=$ax_check_save_flags
21713 fi
21714 eval ac_res=\$$as_CACHEVAR
21715                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21716 $as_echo "$ac_res" >&6; }
21717 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21718   if ${CFLAGS+:} false; then :
21719   case " $CFLAGS " in
21720     *" $flag "*)
21721       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21722   (: CFLAGS already contains $flag) 2>&5
21723   ac_status=$?
21724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21725   test $ac_status = 0; }
21726       ;;
21727     *)
21728       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21729   (: CFLAGS="$CFLAGS $flag") 2>&5
21730   ac_status=$?
21731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21732   test $ac_status = 0; }
21733       CFLAGS="$CFLAGS $flag"
21734       ;;
21735    esac
21736 else
21737   CFLAGS="$flag"
21738 fi
21739
21740 else
21741   :
21742 fi
21743
21744 done
21745
21746
21747
21748 for flag in -O0; do
21749   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21751 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21752 if eval \${$as_CACHEVAR+:} false; then :
21753   $as_echo_n "(cached) " >&6
21754 else
21755
21756   ax_check_save_flags=$CFLAGS
21757   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
21758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21759 /* end confdefs.h.  */
21760
21761 int
21762 main ()
21763 {
21764
21765   ;
21766   return 0;
21767 }
21768 _ACEOF
21769 if ac_fn_c_try_compile "$LINENO"; then :
21770   eval "$as_CACHEVAR=yes"
21771 else
21772   eval "$as_CACHEVAR=no"
21773 fi
21774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21775   CFLAGS=$ax_check_save_flags
21776 fi
21777 eval ac_res=\$$as_CACHEVAR
21778                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21779 $as_echo "$ac_res" >&6; }
21780 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21781   if ${CFLAGS+:} false; then :
21782   case " $CFLAGS " in
21783     *" $flag "*)
21784       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21785   (: CFLAGS already contains $flag) 2>&5
21786   ac_status=$?
21787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21788   test $ac_status = 0; }
21789       ;;
21790     *)
21791       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21792   (: CFLAGS="$CFLAGS $flag") 2>&5
21793   ac_status=$?
21794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21795   test $ac_status = 0; }
21796       CFLAGS="$CFLAGS $flag"
21797       ;;
21798    esac
21799 else
21800   CFLAGS="$flag"
21801 fi
21802
21803 else
21804   :
21805 fi
21806
21807 done
21808
21809
21810 fi
21811
21812
21813
21814 for flag in -Wno-pragmas; do
21815   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21817 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21818 if eval \${$as_CACHEVAR+:} false; then :
21819   $as_echo_n "(cached) " >&6
21820 else
21821
21822   ax_check_save_flags=$CFLAGS
21823   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
21824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21825 /* end confdefs.h.  */
21826
21827 int
21828 main ()
21829 {
21830
21831   ;
21832   return 0;
21833 }
21834 _ACEOF
21835 if ac_fn_c_try_compile "$LINENO"; then :
21836   eval "$as_CACHEVAR=yes"
21837 else
21838   eval "$as_CACHEVAR=no"
21839 fi
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21841   CFLAGS=$ax_check_save_flags
21842 fi
21843 eval ac_res=\$$as_CACHEVAR
21844                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21845 $as_echo "$ac_res" >&6; }
21846 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21847   if ${CFLAGS+:} false; then :
21848   case " $CFLAGS " in
21849     *" $flag "*)
21850       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21851   (: CFLAGS already contains $flag) 2>&5
21852   ac_status=$?
21853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21854   test $ac_status = 0; }
21855       ;;
21856     *)
21857       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21858   (: CFLAGS="$CFLAGS $flag") 2>&5
21859   ac_status=$?
21860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21861   test $ac_status = 0; }
21862       CFLAGS="$CFLAGS $flag"
21863       ;;
21864    esac
21865 else
21866   CFLAGS="$flag"
21867 fi
21868
21869 else
21870   :
21871 fi
21872
21873 done
21874
21875
21876
21877
21878 for flag in -Wall; do
21879   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21881 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21882 if eval \${$as_CACHEVAR+:} false; then :
21883   $as_echo_n "(cached) " >&6
21884 else
21885
21886   ax_check_save_flags=$CFLAGS
21887   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
21888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h.  */
21890
21891 int
21892 main ()
21893 {
21894
21895   ;
21896   return 0;
21897 }
21898 _ACEOF
21899 if ac_fn_c_try_compile "$LINENO"; then :
21900   eval "$as_CACHEVAR=yes"
21901 else
21902   eval "$as_CACHEVAR=no"
21903 fi
21904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21905   CFLAGS=$ax_check_save_flags
21906 fi
21907 eval ac_res=\$$as_CACHEVAR
21908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21909 $as_echo "$ac_res" >&6; }
21910 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21911   if ${CFLAGS+:} false; then :
21912   case " $CFLAGS " in
21913     *" $flag "*)
21914       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21915   (: CFLAGS already contains $flag) 2>&5
21916   ac_status=$?
21917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21918   test $ac_status = 0; }
21919       ;;
21920     *)
21921       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21922   (: CFLAGS="$CFLAGS $flag") 2>&5
21923   ac_status=$?
21924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21925   test $ac_status = 0; }
21926       CFLAGS="$CFLAGS $flag"
21927       ;;
21928    esac
21929 else
21930   CFLAGS="$flag"
21931 fi
21932
21933 else
21934   :
21935 fi
21936
21937 done
21938
21939
21940
21941 for flag in -Wno-strict-aliasing; do
21942   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21944 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21945 if eval \${$as_CACHEVAR+:} false; then :
21946   $as_echo_n "(cached) " >&6
21947 else
21948
21949   ax_check_save_flags=$CFLAGS
21950   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
21951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h.  */
21953
21954 int
21955 main ()
21956 {
21957
21958   ;
21959   return 0;
21960 }
21961 _ACEOF
21962 if ac_fn_c_try_compile "$LINENO"; then :
21963   eval "$as_CACHEVAR=yes"
21964 else
21965   eval "$as_CACHEVAR=no"
21966 fi
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968   CFLAGS=$ax_check_save_flags
21969 fi
21970 eval ac_res=\$$as_CACHEVAR
21971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21972 $as_echo "$ac_res" >&6; }
21973 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21974   if ${CFLAGS+:} false; then :
21975   case " $CFLAGS " in
21976     *" $flag "*)
21977       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21978   (: CFLAGS already contains $flag) 2>&5
21979   ac_status=$?
21980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21981   test $ac_status = 0; }
21982       ;;
21983     *)
21984       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21985   (: CFLAGS="$CFLAGS $flag") 2>&5
21986   ac_status=$?
21987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21988   test $ac_status = 0; }
21989       CFLAGS="$CFLAGS $flag"
21990       ;;
21991    esac
21992 else
21993   CFLAGS="$flag"
21994 fi
21995
21996 else
21997   :
21998 fi
21999
22000 done
22001
22002
22003
22004 for flag in -Wextra; do
22005   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22007 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22008 if eval \${$as_CACHEVAR+:} false; then :
22009   $as_echo_n "(cached) " >&6
22010 else
22011
22012   ax_check_save_flags=$CFLAGS
22013   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h.  */
22016
22017 int
22018 main ()
22019 {
22020
22021   ;
22022   return 0;
22023 }
22024 _ACEOF
22025 if ac_fn_c_try_compile "$LINENO"; then :
22026   eval "$as_CACHEVAR=yes"
22027 else
22028   eval "$as_CACHEVAR=no"
22029 fi
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031   CFLAGS=$ax_check_save_flags
22032 fi
22033 eval ac_res=\$$as_CACHEVAR
22034                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22035 $as_echo "$ac_res" >&6; }
22036 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22037   if ${CFLAGS+:} false; then :
22038   case " $CFLAGS " in
22039     *" $flag "*)
22040       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22041   (: CFLAGS already contains $flag) 2>&5
22042   ac_status=$?
22043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22044   test $ac_status = 0; }
22045       ;;
22046     *)
22047       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22048   (: CFLAGS="$CFLAGS $flag") 2>&5
22049   ac_status=$?
22050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22051   test $ac_status = 0; }
22052       CFLAGS="$CFLAGS $flag"
22053       ;;
22054    esac
22055 else
22056   CFLAGS="$flag"
22057 fi
22058
22059 else
22060   :
22061 fi
22062
22063 done
22064
22065
22066
22067 for flag in -Wunknown-pragmas; do
22068   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22070 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22071 if eval \${$as_CACHEVAR+:} false; then :
22072   $as_echo_n "(cached) " >&6
22073 else
22074
22075   ax_check_save_flags=$CFLAGS
22076   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h.  */
22079
22080 int
22081 main ()
22082 {
22083
22084   ;
22085   return 0;
22086 }
22087 _ACEOF
22088 if ac_fn_c_try_compile "$LINENO"; then :
22089   eval "$as_CACHEVAR=yes"
22090 else
22091   eval "$as_CACHEVAR=no"
22092 fi
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22094   CFLAGS=$ax_check_save_flags
22095 fi
22096 eval ac_res=\$$as_CACHEVAR
22097                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22098 $as_echo "$ac_res" >&6; }
22099 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22100   if ${CFLAGS+:} false; then :
22101   case " $CFLAGS " in
22102     *" $flag "*)
22103       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22104   (: CFLAGS already contains $flag) 2>&5
22105   ac_status=$?
22106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22107   test $ac_status = 0; }
22108       ;;
22109     *)
22110       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22111   (: CFLAGS="$CFLAGS $flag") 2>&5
22112   ac_status=$?
22113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22114   test $ac_status = 0; }
22115       CFLAGS="$CFLAGS $flag"
22116       ;;
22117    esac
22118 else
22119   CFLAGS="$flag"
22120 fi
22121
22122 else
22123   :
22124 fi
22125
22126 done
22127
22128
22129
22130 for flag in -Wthis-test-should-fail; do
22131   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22133 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22134 if eval \${$as_CACHEVAR+:} false; then :
22135   $as_echo_n "(cached) " >&6
22136 else
22137
22138   ax_check_save_flags=$CFLAGS
22139   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22141 /* end confdefs.h.  */
22142
22143 int
22144 main ()
22145 {
22146
22147   ;
22148   return 0;
22149 }
22150 _ACEOF
22151 if ac_fn_c_try_compile "$LINENO"; then :
22152   eval "$as_CACHEVAR=yes"
22153 else
22154   eval "$as_CACHEVAR=no"
22155 fi
22156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157   CFLAGS=$ax_check_save_flags
22158 fi
22159 eval ac_res=\$$as_CACHEVAR
22160                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22161 $as_echo "$ac_res" >&6; }
22162 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22163   if ${CFLAGS+:} false; then :
22164   case " $CFLAGS " in
22165     *" $flag "*)
22166       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22167   (: CFLAGS already contains $flag) 2>&5
22168   ac_status=$?
22169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22170   test $ac_status = 0; }
22171       ;;
22172     *)
22173       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22174   (: CFLAGS="$CFLAGS $flag") 2>&5
22175   ac_status=$?
22176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22177   test $ac_status = 0; }
22178       CFLAGS="$CFLAGS $flag"
22179       ;;
22180    esac
22181 else
22182   CFLAGS="$flag"
22183 fi
22184
22185 else
22186   :
22187 fi
22188
22189 done
22190
22191             if test "$CC" = "clang"; then :
22192
22193 else
22194
22195
22196
22197 for flag in --param=ssp-buffer-size=1; do
22198   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22200 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22201 if eval \${$as_CACHEVAR+:} false; then :
22202   $as_echo_n "(cached) " >&6
22203 else
22204
22205   ax_check_save_flags=$CFLAGS
22206   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h.  */
22209
22210 int
22211 main ()
22212 {
22213
22214   ;
22215   return 0;
22216 }
22217 _ACEOF
22218 if ac_fn_c_try_compile "$LINENO"; then :
22219   eval "$as_CACHEVAR=yes"
22220 else
22221   eval "$as_CACHEVAR=no"
22222 fi
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224   CFLAGS=$ax_check_save_flags
22225 fi
22226 eval ac_res=\$$as_CACHEVAR
22227                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22228 $as_echo "$ac_res" >&6; }
22229 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22230   if ${CFLAGS+:} false; then :
22231   case " $CFLAGS " in
22232     *" $flag "*)
22233       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22234   (: CFLAGS already contains $flag) 2>&5
22235   ac_status=$?
22236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22237   test $ac_status = 0; }
22238       ;;
22239     *)
22240       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22241   (: CFLAGS="$CFLAGS $flag") 2>&5
22242   ac_status=$?
22243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22244   test $ac_status = 0; }
22245       CFLAGS="$CFLAGS $flag"
22246       ;;
22247    esac
22248 else
22249   CFLAGS="$flag"
22250 fi
22251
22252 else
22253   :
22254 fi
22255
22256 done
22257
22258
22259 fi
22260
22261
22262 for flag in -Waddress; do
22263   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22265 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22266 if eval \${$as_CACHEVAR+:} false; then :
22267   $as_echo_n "(cached) " >&6
22268 else
22269
22270   ax_check_save_flags=$CFLAGS
22271   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22273 /* end confdefs.h.  */
22274
22275 int
22276 main ()
22277 {
22278
22279   ;
22280   return 0;
22281 }
22282 _ACEOF
22283 if ac_fn_c_try_compile "$LINENO"; then :
22284   eval "$as_CACHEVAR=yes"
22285 else
22286   eval "$as_CACHEVAR=no"
22287 fi
22288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22289   CFLAGS=$ax_check_save_flags
22290 fi
22291 eval ac_res=\$$as_CACHEVAR
22292                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22293 $as_echo "$ac_res" >&6; }
22294 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22295   if ${CFLAGS+:} false; then :
22296   case " $CFLAGS " in
22297     *" $flag "*)
22298       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22299   (: CFLAGS already contains $flag) 2>&5
22300   ac_status=$?
22301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22302   test $ac_status = 0; }
22303       ;;
22304     *)
22305       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22306   (: CFLAGS="$CFLAGS $flag") 2>&5
22307   ac_status=$?
22308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22309   test $ac_status = 0; }
22310       CFLAGS="$CFLAGS $flag"
22311       ;;
22312    esac
22313 else
22314   CFLAGS="$flag"
22315 fi
22316
22317 else
22318   :
22319 fi
22320
22321 done
22322
22323
22324
22325 for flag in -Warray-bounds; do
22326   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22328 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22329 if eval \${$as_CACHEVAR+:} false; then :
22330   $as_echo_n "(cached) " >&6
22331 else
22332
22333   ax_check_save_flags=$CFLAGS
22334   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h.  */
22337
22338 int
22339 main ()
22340 {
22341
22342   ;
22343   return 0;
22344 }
22345 _ACEOF
22346 if ac_fn_c_try_compile "$LINENO"; then :
22347   eval "$as_CACHEVAR=yes"
22348 else
22349   eval "$as_CACHEVAR=no"
22350 fi
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352   CFLAGS=$ax_check_save_flags
22353 fi
22354 eval ac_res=\$$as_CACHEVAR
22355                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22356 $as_echo "$ac_res" >&6; }
22357 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22358   if ${CFLAGS+:} false; then :
22359   case " $CFLAGS " in
22360     *" $flag "*)
22361       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22362   (: CFLAGS already contains $flag) 2>&5
22363   ac_status=$?
22364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22365   test $ac_status = 0; }
22366       ;;
22367     *)
22368       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22369   (: CFLAGS="$CFLAGS $flag") 2>&5
22370   ac_status=$?
22371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22372   test $ac_status = 0; }
22373       CFLAGS="$CFLAGS $flag"
22374       ;;
22375    esac
22376 else
22377   CFLAGS="$flag"
22378 fi
22379
22380 else
22381   :
22382 fi
22383
22384 done
22385
22386
22387
22388 for flag in -Wbad-function-cast; do
22389   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22391 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22392 if eval \${$as_CACHEVAR+:} false; then :
22393   $as_echo_n "(cached) " >&6
22394 else
22395
22396   ax_check_save_flags=$CFLAGS
22397   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22399 /* end confdefs.h.  */
22400
22401 int
22402 main ()
22403 {
22404
22405   ;
22406   return 0;
22407 }
22408 _ACEOF
22409 if ac_fn_c_try_compile "$LINENO"; then :
22410   eval "$as_CACHEVAR=yes"
22411 else
22412   eval "$as_CACHEVAR=no"
22413 fi
22414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415   CFLAGS=$ax_check_save_flags
22416 fi
22417 eval ac_res=\$$as_CACHEVAR
22418                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22419 $as_echo "$ac_res" >&6; }
22420 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22421   if ${CFLAGS+:} false; then :
22422   case " $CFLAGS " in
22423     *" $flag "*)
22424       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22425   (: CFLAGS already contains $flag) 2>&5
22426   ac_status=$?
22427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22428   test $ac_status = 0; }
22429       ;;
22430     *)
22431       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22432   (: CFLAGS="$CFLAGS $flag") 2>&5
22433   ac_status=$?
22434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22435   test $ac_status = 0; }
22436       CFLAGS="$CFLAGS $flag"
22437       ;;
22438    esac
22439 else
22440   CFLAGS="$flag"
22441 fi
22442
22443 else
22444   :
22445 fi
22446
22447 done
22448
22449
22450
22451 for flag in -Wchar-subscripts; do
22452   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22454 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22455 if eval \${$as_CACHEVAR+:} false; then :
22456   $as_echo_n "(cached) " >&6
22457 else
22458
22459   ax_check_save_flags=$CFLAGS
22460   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22462 /* end confdefs.h.  */
22463
22464 int
22465 main ()
22466 {
22467
22468   ;
22469   return 0;
22470 }
22471 _ACEOF
22472 if ac_fn_c_try_compile "$LINENO"; then :
22473   eval "$as_CACHEVAR=yes"
22474 else
22475   eval "$as_CACHEVAR=no"
22476 fi
22477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478   CFLAGS=$ax_check_save_flags
22479 fi
22480 eval ac_res=\$$as_CACHEVAR
22481                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22482 $as_echo "$ac_res" >&6; }
22483 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22484   if ${CFLAGS+:} false; then :
22485   case " $CFLAGS " in
22486     *" $flag "*)
22487       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22488   (: CFLAGS already contains $flag) 2>&5
22489   ac_status=$?
22490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22491   test $ac_status = 0; }
22492       ;;
22493     *)
22494       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22495   (: CFLAGS="$CFLAGS $flag") 2>&5
22496   ac_status=$?
22497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22498   test $ac_status = 0; }
22499       CFLAGS="$CFLAGS $flag"
22500       ;;
22501    esac
22502 else
22503   CFLAGS="$flag"
22504 fi
22505
22506 else
22507   :
22508 fi
22509
22510 done
22511
22512
22513
22514 for flag in -Wcomment; do
22515   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22517 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22518 if eval \${$as_CACHEVAR+:} false; then :
22519   $as_echo_n "(cached) " >&6
22520 else
22521
22522   ax_check_save_flags=$CFLAGS
22523   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22525 /* end confdefs.h.  */
22526
22527 int
22528 main ()
22529 {
22530
22531   ;
22532   return 0;
22533 }
22534 _ACEOF
22535 if ac_fn_c_try_compile "$LINENO"; then :
22536   eval "$as_CACHEVAR=yes"
22537 else
22538   eval "$as_CACHEVAR=no"
22539 fi
22540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541   CFLAGS=$ax_check_save_flags
22542 fi
22543 eval ac_res=\$$as_CACHEVAR
22544                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22545 $as_echo "$ac_res" >&6; }
22546 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22547   if ${CFLAGS+:} false; then :
22548   case " $CFLAGS " in
22549     *" $flag "*)
22550       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22551   (: CFLAGS already contains $flag) 2>&5
22552   ac_status=$?
22553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22554   test $ac_status = 0; }
22555       ;;
22556     *)
22557       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22558   (: CFLAGS="$CFLAGS $flag") 2>&5
22559   ac_status=$?
22560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22561   test $ac_status = 0; }
22562       CFLAGS="$CFLAGS $flag"
22563       ;;
22564    esac
22565 else
22566   CFLAGS="$flag"
22567 fi
22568
22569 else
22570   :
22571 fi
22572
22573 done
22574
22575
22576
22577 for flag in -Wfloat-equal; do
22578   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22580 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22581 if eval \${$as_CACHEVAR+:} false; then :
22582   $as_echo_n "(cached) " >&6
22583 else
22584
22585   ax_check_save_flags=$CFLAGS
22586   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h.  */
22589
22590 int
22591 main ()
22592 {
22593
22594   ;
22595   return 0;
22596 }
22597 _ACEOF
22598 if ac_fn_c_try_compile "$LINENO"; then :
22599   eval "$as_CACHEVAR=yes"
22600 else
22601   eval "$as_CACHEVAR=no"
22602 fi
22603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22604   CFLAGS=$ax_check_save_flags
22605 fi
22606 eval ac_res=\$$as_CACHEVAR
22607                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22608 $as_echo "$ac_res" >&6; }
22609 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22610   if ${CFLAGS+:} false; then :
22611   case " $CFLAGS " in
22612     *" $flag "*)
22613       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22614   (: CFLAGS already contains $flag) 2>&5
22615   ac_status=$?
22616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22617   test $ac_status = 0; }
22618       ;;
22619     *)
22620       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22621   (: CFLAGS="$CFLAGS $flag") 2>&5
22622   ac_status=$?
22623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22624   test $ac_status = 0; }
22625       CFLAGS="$CFLAGS $flag"
22626       ;;
22627    esac
22628 else
22629   CFLAGS="$flag"
22630 fi
22631
22632 else
22633   :
22634 fi
22635
22636 done
22637
22638
22639
22640 for flag in -Wformat-security; do
22641   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22643 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22644 if eval \${$as_CACHEVAR+:} false; then :
22645   $as_echo_n "(cached) " >&6
22646 else
22647
22648   ax_check_save_flags=$CFLAGS
22649   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22651 /* end confdefs.h.  */
22652
22653 int
22654 main ()
22655 {
22656
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 if ac_fn_c_try_compile "$LINENO"; then :
22662   eval "$as_CACHEVAR=yes"
22663 else
22664   eval "$as_CACHEVAR=no"
22665 fi
22666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667   CFLAGS=$ax_check_save_flags
22668 fi
22669 eval ac_res=\$$as_CACHEVAR
22670                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22671 $as_echo "$ac_res" >&6; }
22672 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22673   if ${CFLAGS+:} false; then :
22674   case " $CFLAGS " in
22675     *" $flag "*)
22676       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22677   (: CFLAGS already contains $flag) 2>&5
22678   ac_status=$?
22679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22680   test $ac_status = 0; }
22681       ;;
22682     *)
22683       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22684   (: CFLAGS="$CFLAGS $flag") 2>&5
22685   ac_status=$?
22686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22687   test $ac_status = 0; }
22688       CFLAGS="$CFLAGS $flag"
22689       ;;
22690    esac
22691 else
22692   CFLAGS="$flag"
22693 fi
22694
22695 else
22696   :
22697 fi
22698
22699 done
22700
22701
22702
22703 for flag in -Wformat=2; do
22704   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22706 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22707 if eval \${$as_CACHEVAR+:} false; then :
22708   $as_echo_n "(cached) " >&6
22709 else
22710
22711   ax_check_save_flags=$CFLAGS
22712   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22714 /* end confdefs.h.  */
22715
22716 int
22717 main ()
22718 {
22719
22720   ;
22721   return 0;
22722 }
22723 _ACEOF
22724 if ac_fn_c_try_compile "$LINENO"; then :
22725   eval "$as_CACHEVAR=yes"
22726 else
22727   eval "$as_CACHEVAR=no"
22728 fi
22729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22730   CFLAGS=$ax_check_save_flags
22731 fi
22732 eval ac_res=\$$as_CACHEVAR
22733                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22734 $as_echo "$ac_res" >&6; }
22735 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22736   if ${CFLAGS+:} false; then :
22737   case " $CFLAGS " in
22738     *" $flag "*)
22739       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22740   (: CFLAGS already contains $flag) 2>&5
22741   ac_status=$?
22742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22743   test $ac_status = 0; }
22744       ;;
22745     *)
22746       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22747   (: CFLAGS="$CFLAGS $flag") 2>&5
22748   ac_status=$?
22749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22750   test $ac_status = 0; }
22751       CFLAGS="$CFLAGS $flag"
22752       ;;
22753    esac
22754 else
22755   CFLAGS="$flag"
22756 fi
22757
22758 else
22759   :
22760 fi
22761
22762 done
22763
22764
22765
22766 for flag in -Wmaybe-uninitialized; do
22767   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22769 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22770 if eval \${$as_CACHEVAR+:} false; then :
22771   $as_echo_n "(cached) " >&6
22772 else
22773
22774   ax_check_save_flags=$CFLAGS
22775   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777 /* end confdefs.h.  */
22778
22779 int
22780 main ()
22781 {
22782
22783   ;
22784   return 0;
22785 }
22786 _ACEOF
22787 if ac_fn_c_try_compile "$LINENO"; then :
22788   eval "$as_CACHEVAR=yes"
22789 else
22790   eval "$as_CACHEVAR=no"
22791 fi
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793   CFLAGS=$ax_check_save_flags
22794 fi
22795 eval ac_res=\$$as_CACHEVAR
22796                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22797 $as_echo "$ac_res" >&6; }
22798 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22799   if ${CFLAGS+:} false; then :
22800   case " $CFLAGS " in
22801     *" $flag "*)
22802       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22803   (: CFLAGS already contains $flag) 2>&5
22804   ac_status=$?
22805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22806   test $ac_status = 0; }
22807       ;;
22808     *)
22809       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22810   (: CFLAGS="$CFLAGS $flag") 2>&5
22811   ac_status=$?
22812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22813   test $ac_status = 0; }
22814       CFLAGS="$CFLAGS $flag"
22815       ;;
22816    esac
22817 else
22818   CFLAGS="$flag"
22819 fi
22820
22821 else
22822   :
22823 fi
22824
22825 done
22826
22827
22828
22829 for flag in -Wmissing-field-initializers; do
22830   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22832 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22833 if eval \${$as_CACHEVAR+:} false; then :
22834   $as_echo_n "(cached) " >&6
22835 else
22836
22837   ax_check_save_flags=$CFLAGS
22838   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22840 /* end confdefs.h.  */
22841
22842 int
22843 main ()
22844 {
22845
22846   ;
22847   return 0;
22848 }
22849 _ACEOF
22850 if ac_fn_c_try_compile "$LINENO"; then :
22851   eval "$as_CACHEVAR=yes"
22852 else
22853   eval "$as_CACHEVAR=no"
22854 fi
22855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856   CFLAGS=$ax_check_save_flags
22857 fi
22858 eval ac_res=\$$as_CACHEVAR
22859                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22860 $as_echo "$ac_res" >&6; }
22861 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22862   if ${CFLAGS+:} false; then :
22863   case " $CFLAGS " in
22864     *" $flag "*)
22865       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22866   (: CFLAGS already contains $flag) 2>&5
22867   ac_status=$?
22868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22869   test $ac_status = 0; }
22870       ;;
22871     *)
22872       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22873   (: CFLAGS="$CFLAGS $flag") 2>&5
22874   ac_status=$?
22875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22876   test $ac_status = 0; }
22877       CFLAGS="$CFLAGS $flag"
22878       ;;
22879    esac
22880 else
22881   CFLAGS="$flag"
22882 fi
22883
22884 else
22885   :
22886 fi
22887
22888 done
22889
22890
22891
22892 for flag in -Wmissing-noreturn; do
22893   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22895 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22896 if eval \${$as_CACHEVAR+:} false; then :
22897   $as_echo_n "(cached) " >&6
22898 else
22899
22900   ax_check_save_flags=$CFLAGS
22901   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22903 /* end confdefs.h.  */
22904
22905 int
22906 main ()
22907 {
22908
22909   ;
22910   return 0;
22911 }
22912 _ACEOF
22913 if ac_fn_c_try_compile "$LINENO"; then :
22914   eval "$as_CACHEVAR=yes"
22915 else
22916   eval "$as_CACHEVAR=no"
22917 fi
22918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919   CFLAGS=$ax_check_save_flags
22920 fi
22921 eval ac_res=\$$as_CACHEVAR
22922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22923 $as_echo "$ac_res" >&6; }
22924 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22925   if ${CFLAGS+:} false; then :
22926   case " $CFLAGS " in
22927     *" $flag "*)
22928       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22929   (: CFLAGS already contains $flag) 2>&5
22930   ac_status=$?
22931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932   test $ac_status = 0; }
22933       ;;
22934     *)
22935       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22936   (: CFLAGS="$CFLAGS $flag") 2>&5
22937   ac_status=$?
22938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939   test $ac_status = 0; }
22940       CFLAGS="$CFLAGS $flag"
22941       ;;
22942    esac
22943 else
22944   CFLAGS="$flag"
22945 fi
22946
22947 else
22948   :
22949 fi
22950
22951 done
22952
22953
22954
22955 for flag in -Wmissing-prototypes; do
22956   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22958 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22959 if eval \${$as_CACHEVAR+:} false; then :
22960   $as_echo_n "(cached) " >&6
22961 else
22962
22963   ax_check_save_flags=$CFLAGS
22964   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22966 /* end confdefs.h.  */
22967
22968 int
22969 main ()
22970 {
22971
22972   ;
22973   return 0;
22974 }
22975 _ACEOF
22976 if ac_fn_c_try_compile "$LINENO"; then :
22977   eval "$as_CACHEVAR=yes"
22978 else
22979   eval "$as_CACHEVAR=no"
22980 fi
22981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22982   CFLAGS=$ax_check_save_flags
22983 fi
22984 eval ac_res=\$$as_CACHEVAR
22985                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22986 $as_echo "$ac_res" >&6; }
22987 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22988   if ${CFLAGS+:} false; then :
22989   case " $CFLAGS " in
22990     *" $flag "*)
22991       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22992   (: CFLAGS already contains $flag) 2>&5
22993   ac_status=$?
22994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22995   test $ac_status = 0; }
22996       ;;
22997     *)
22998       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22999   (: CFLAGS="$CFLAGS $flag") 2>&5
23000   ac_status=$?
23001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23002   test $ac_status = 0; }
23003       CFLAGS="$CFLAGS $flag"
23004       ;;
23005    esac
23006 else
23007   CFLAGS="$flag"
23008 fi
23009
23010 else
23011   :
23012 fi
23013
23014 done
23015
23016
23017
23018 for flag in -Wnested-externs; do
23019   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23021 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23022 if eval \${$as_CACHEVAR+:} false; then :
23023   $as_echo_n "(cached) " >&6
23024 else
23025
23026   ax_check_save_flags=$CFLAGS
23027   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h.  */
23030
23031 int
23032 main ()
23033 {
23034
23035   ;
23036   return 0;
23037 }
23038 _ACEOF
23039 if ac_fn_c_try_compile "$LINENO"; then :
23040   eval "$as_CACHEVAR=yes"
23041 else
23042   eval "$as_CACHEVAR=no"
23043 fi
23044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23045   CFLAGS=$ax_check_save_flags
23046 fi
23047 eval ac_res=\$$as_CACHEVAR
23048                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23049 $as_echo "$ac_res" >&6; }
23050 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23051   if ${CFLAGS+:} false; then :
23052   case " $CFLAGS " in
23053     *" $flag "*)
23054       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23055   (: CFLAGS already contains $flag) 2>&5
23056   ac_status=$?
23057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23058   test $ac_status = 0; }
23059       ;;
23060     *)
23061       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23062   (: CFLAGS="$CFLAGS $flag") 2>&5
23063   ac_status=$?
23064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23065   test $ac_status = 0; }
23066       CFLAGS="$CFLAGS $flag"
23067       ;;
23068    esac
23069 else
23070   CFLAGS="$flag"
23071 fi
23072
23073 else
23074   :
23075 fi
23076
23077 done
23078
23079
23080
23081 for flag in -Wnormalized=id; do
23082   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23084 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23085 if eval \${$as_CACHEVAR+:} false; then :
23086   $as_echo_n "(cached) " >&6
23087 else
23088
23089   ax_check_save_flags=$CFLAGS
23090   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23092 /* end confdefs.h.  */
23093
23094 int
23095 main ()
23096 {
23097
23098   ;
23099   return 0;
23100 }
23101 _ACEOF
23102 if ac_fn_c_try_compile "$LINENO"; then :
23103   eval "$as_CACHEVAR=yes"
23104 else
23105   eval "$as_CACHEVAR=no"
23106 fi
23107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23108   CFLAGS=$ax_check_save_flags
23109 fi
23110 eval ac_res=\$$as_CACHEVAR
23111                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23112 $as_echo "$ac_res" >&6; }
23113 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23114   if ${CFLAGS+:} false; then :
23115   case " $CFLAGS " in
23116     *" $flag "*)
23117       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23118   (: CFLAGS already contains $flag) 2>&5
23119   ac_status=$?
23120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23121   test $ac_status = 0; }
23122       ;;
23123     *)
23124       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23125   (: CFLAGS="$CFLAGS $flag") 2>&5
23126   ac_status=$?
23127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23128   test $ac_status = 0; }
23129       CFLAGS="$CFLAGS $flag"
23130       ;;
23131    esac
23132 else
23133   CFLAGS="$flag"
23134 fi
23135
23136 else
23137   :
23138 fi
23139
23140 done
23141
23142
23143
23144 for flag in -Woverride-init; do
23145   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23147 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23148 if eval \${$as_CACHEVAR+:} false; then :
23149   $as_echo_n "(cached) " >&6
23150 else
23151
23152   ax_check_save_flags=$CFLAGS
23153   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23155 /* end confdefs.h.  */
23156
23157 int
23158 main ()
23159 {
23160
23161   ;
23162   return 0;
23163 }
23164 _ACEOF
23165 if ac_fn_c_try_compile "$LINENO"; then :
23166   eval "$as_CACHEVAR=yes"
23167 else
23168   eval "$as_CACHEVAR=no"
23169 fi
23170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23171   CFLAGS=$ax_check_save_flags
23172 fi
23173 eval ac_res=\$$as_CACHEVAR
23174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23175 $as_echo "$ac_res" >&6; }
23176 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23177   if ${CFLAGS+:} false; then :
23178   case " $CFLAGS " in
23179     *" $flag "*)
23180       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23181   (: CFLAGS already contains $flag) 2>&5
23182   ac_status=$?
23183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23184   test $ac_status = 0; }
23185       ;;
23186     *)
23187       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23188   (: CFLAGS="$CFLAGS $flag") 2>&5
23189   ac_status=$?
23190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23191   test $ac_status = 0; }
23192       CFLAGS="$CFLAGS $flag"
23193       ;;
23194    esac
23195 else
23196   CFLAGS="$flag"
23197 fi
23198
23199 else
23200   :
23201 fi
23202
23203 done
23204
23205
23206
23207 for flag in -Wpointer-arith; do
23208   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23210 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23211 if eval \${$as_CACHEVAR+:} false; then :
23212   $as_echo_n "(cached) " >&6
23213 else
23214
23215   ax_check_save_flags=$CFLAGS
23216   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23218 /* end confdefs.h.  */
23219
23220 int
23221 main ()
23222 {
23223
23224   ;
23225   return 0;
23226 }
23227 _ACEOF
23228 if ac_fn_c_try_compile "$LINENO"; then :
23229   eval "$as_CACHEVAR=yes"
23230 else
23231   eval "$as_CACHEVAR=no"
23232 fi
23233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23234   CFLAGS=$ax_check_save_flags
23235 fi
23236 eval ac_res=\$$as_CACHEVAR
23237                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23238 $as_echo "$ac_res" >&6; }
23239 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23240   if ${CFLAGS+:} false; then :
23241   case " $CFLAGS " in
23242     *" $flag "*)
23243       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23244   (: CFLAGS already contains $flag) 2>&5
23245   ac_status=$?
23246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23247   test $ac_status = 0; }
23248       ;;
23249     *)
23250       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23251   (: CFLAGS="$CFLAGS $flag") 2>&5
23252   ac_status=$?
23253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23254   test $ac_status = 0; }
23255       CFLAGS="$CFLAGS $flag"
23256       ;;
23257    esac
23258 else
23259   CFLAGS="$flag"
23260 fi
23261
23262 else
23263   :
23264 fi
23265
23266 done
23267
23268
23269
23270 for flag in -Wpointer-sign; do
23271   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23273 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23274 if eval \${$as_CACHEVAR+:} false; then :
23275   $as_echo_n "(cached) " >&6
23276 else
23277
23278   ax_check_save_flags=$CFLAGS
23279   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23281 /* end confdefs.h.  */
23282
23283 int
23284 main ()
23285 {
23286
23287   ;
23288   return 0;
23289 }
23290 _ACEOF
23291 if ac_fn_c_try_compile "$LINENO"; then :
23292   eval "$as_CACHEVAR=yes"
23293 else
23294   eval "$as_CACHEVAR=no"
23295 fi
23296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297   CFLAGS=$ax_check_save_flags
23298 fi
23299 eval ac_res=\$$as_CACHEVAR
23300                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23301 $as_echo "$ac_res" >&6; }
23302 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23303   if ${CFLAGS+:} false; then :
23304   case " $CFLAGS " in
23305     *" $flag "*)
23306       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23307   (: CFLAGS already contains $flag) 2>&5
23308   ac_status=$?
23309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23310   test $ac_status = 0; }
23311       ;;
23312     *)
23313       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23314   (: CFLAGS="$CFLAGS $flag") 2>&5
23315   ac_status=$?
23316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23317   test $ac_status = 0; }
23318       CFLAGS="$CFLAGS $flag"
23319       ;;
23320    esac
23321 else
23322   CFLAGS="$flag"
23323 fi
23324
23325 else
23326   :
23327 fi
23328
23329 done
23330
23331
23332
23333 for flag in -Wredundant-decls; do
23334   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23336 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23337 if eval \${$as_CACHEVAR+:} false; then :
23338   $as_echo_n "(cached) " >&6
23339 else
23340
23341   ax_check_save_flags=$CFLAGS
23342   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23344 /* end confdefs.h.  */
23345
23346 int
23347 main ()
23348 {
23349
23350   ;
23351   return 0;
23352 }
23353 _ACEOF
23354 if ac_fn_c_try_compile "$LINENO"; then :
23355   eval "$as_CACHEVAR=yes"
23356 else
23357   eval "$as_CACHEVAR=no"
23358 fi
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360   CFLAGS=$ax_check_save_flags
23361 fi
23362 eval ac_res=\$$as_CACHEVAR
23363                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23364 $as_echo "$ac_res" >&6; }
23365 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23366   if ${CFLAGS+:} false; then :
23367   case " $CFLAGS " in
23368     *" $flag "*)
23369       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23370   (: CFLAGS already contains $flag) 2>&5
23371   ac_status=$?
23372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23373   test $ac_status = 0; }
23374       ;;
23375     *)
23376       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23377   (: CFLAGS="$CFLAGS $flag") 2>&5
23378   ac_status=$?
23379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23380   test $ac_status = 0; }
23381       CFLAGS="$CFLAGS $flag"
23382       ;;
23383    esac
23384 else
23385   CFLAGS="$flag"
23386 fi
23387
23388 else
23389   :
23390 fi
23391
23392 done
23393
23394
23395
23396 for flag in -Wshadow; do
23397   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23399 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23400 if eval \${$as_CACHEVAR+:} false; then :
23401   $as_echo_n "(cached) " >&6
23402 else
23403
23404   ax_check_save_flags=$CFLAGS
23405   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23407 /* end confdefs.h.  */
23408
23409 int
23410 main ()
23411 {
23412
23413   ;
23414   return 0;
23415 }
23416 _ACEOF
23417 if ac_fn_c_try_compile "$LINENO"; then :
23418   eval "$as_CACHEVAR=yes"
23419 else
23420   eval "$as_CACHEVAR=no"
23421 fi
23422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23423   CFLAGS=$ax_check_save_flags
23424 fi
23425 eval ac_res=\$$as_CACHEVAR
23426                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23427 $as_echo "$ac_res" >&6; }
23428 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23429   if ${CFLAGS+:} false; then :
23430   case " $CFLAGS " in
23431     *" $flag "*)
23432       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23433   (: CFLAGS already contains $flag) 2>&5
23434   ac_status=$?
23435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23436   test $ac_status = 0; }
23437       ;;
23438     *)
23439       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23440   (: CFLAGS="$CFLAGS $flag") 2>&5
23441   ac_status=$?
23442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23443   test $ac_status = 0; }
23444       CFLAGS="$CFLAGS $flag"
23445       ;;
23446    esac
23447 else
23448   CFLAGS="$flag"
23449 fi
23450
23451 else
23452   :
23453 fi
23454
23455 done
23456
23457
23458
23459 for flag in -Wshorten-64-to-32; do
23460   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23462 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23463 if eval \${$as_CACHEVAR+:} false; then :
23464   $as_echo_n "(cached) " >&6
23465 else
23466
23467   ax_check_save_flags=$CFLAGS
23468   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23470 /* end confdefs.h.  */
23471
23472 int
23473 main ()
23474 {
23475
23476   ;
23477   return 0;
23478 }
23479 _ACEOF
23480 if ac_fn_c_try_compile "$LINENO"; then :
23481   eval "$as_CACHEVAR=yes"
23482 else
23483   eval "$as_CACHEVAR=no"
23484 fi
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23486   CFLAGS=$ax_check_save_flags
23487 fi
23488 eval ac_res=\$$as_CACHEVAR
23489                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23490 $as_echo "$ac_res" >&6; }
23491 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23492   if ${CFLAGS+:} false; then :
23493   case " $CFLAGS " in
23494     *" $flag "*)
23495       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23496   (: CFLAGS already contains $flag) 2>&5
23497   ac_status=$?
23498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23499   test $ac_status = 0; }
23500       ;;
23501     *)
23502       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23503   (: CFLAGS="$CFLAGS $flag") 2>&5
23504   ac_status=$?
23505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23506   test $ac_status = 0; }
23507       CFLAGS="$CFLAGS $flag"
23508       ;;
23509    esac
23510 else
23511   CFLAGS="$flag"
23512 fi
23513
23514 else
23515   :
23516 fi
23517
23518 done
23519
23520
23521
23522 for flag in -Wsign-compare; do
23523   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23525 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23526 if eval \${$as_CACHEVAR+:} false; then :
23527   $as_echo_n "(cached) " >&6
23528 else
23529
23530   ax_check_save_flags=$CFLAGS
23531   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h.  */
23534
23535 int
23536 main ()
23537 {
23538
23539   ;
23540   return 0;
23541 }
23542 _ACEOF
23543 if ac_fn_c_try_compile "$LINENO"; then :
23544   eval "$as_CACHEVAR=yes"
23545 else
23546   eval "$as_CACHEVAR=no"
23547 fi
23548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23549   CFLAGS=$ax_check_save_flags
23550 fi
23551 eval ac_res=\$$as_CACHEVAR
23552                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23553 $as_echo "$ac_res" >&6; }
23554 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23555   if ${CFLAGS+:} false; then :
23556   case " $CFLAGS " in
23557     *" $flag "*)
23558       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23559   (: CFLAGS already contains $flag) 2>&5
23560   ac_status=$?
23561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23562   test $ac_status = 0; }
23563       ;;
23564     *)
23565       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23566   (: CFLAGS="$CFLAGS $flag") 2>&5
23567   ac_status=$?
23568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23569   test $ac_status = 0; }
23570       CFLAGS="$CFLAGS $flag"
23571       ;;
23572    esac
23573 else
23574   CFLAGS="$flag"
23575 fi
23576
23577 else
23578   :
23579 fi
23580
23581 done
23582
23583
23584
23585 for flag in -Wstrict-overflow=1; do
23586   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23588 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23589 if eval \${$as_CACHEVAR+:} false; then :
23590   $as_echo_n "(cached) " >&6
23591 else
23592
23593   ax_check_save_flags=$CFLAGS
23594   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23596 /* end confdefs.h.  */
23597
23598 int
23599 main ()
23600 {
23601
23602   ;
23603   return 0;
23604 }
23605 _ACEOF
23606 if ac_fn_c_try_compile "$LINENO"; then :
23607   eval "$as_CACHEVAR=yes"
23608 else
23609   eval "$as_CACHEVAR=no"
23610 fi
23611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612   CFLAGS=$ax_check_save_flags
23613 fi
23614 eval ac_res=\$$as_CACHEVAR
23615                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23616 $as_echo "$ac_res" >&6; }
23617 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23618   if ${CFLAGS+:} false; then :
23619   case " $CFLAGS " in
23620     *" $flag "*)
23621       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23622   (: CFLAGS already contains $flag) 2>&5
23623   ac_status=$?
23624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23625   test $ac_status = 0; }
23626       ;;
23627     *)
23628       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23629   (: CFLAGS="$CFLAGS $flag") 2>&5
23630   ac_status=$?
23631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23632   test $ac_status = 0; }
23633       CFLAGS="$CFLAGS $flag"
23634       ;;
23635    esac
23636 else
23637   CFLAGS="$flag"
23638 fi
23639
23640 else
23641   :
23642 fi
23643
23644 done
23645
23646
23647
23648 for flag in -Wstrict-prototypes; do
23649   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23651 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23652 if eval \${$as_CACHEVAR+:} false; then :
23653   $as_echo_n "(cached) " >&6
23654 else
23655
23656   ax_check_save_flags=$CFLAGS
23657   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23659 /* end confdefs.h.  */
23660
23661 int
23662 main ()
23663 {
23664
23665   ;
23666   return 0;
23667 }
23668 _ACEOF
23669 if ac_fn_c_try_compile "$LINENO"; then :
23670   eval "$as_CACHEVAR=yes"
23671 else
23672   eval "$as_CACHEVAR=no"
23673 fi
23674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675   CFLAGS=$ax_check_save_flags
23676 fi
23677 eval ac_res=\$$as_CACHEVAR
23678                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23679 $as_echo "$ac_res" >&6; }
23680 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23681   if ${CFLAGS+:} false; then :
23682   case " $CFLAGS " in
23683     *" $flag "*)
23684       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23685   (: CFLAGS already contains $flag) 2>&5
23686   ac_status=$?
23687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23688   test $ac_status = 0; }
23689       ;;
23690     *)
23691       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23692   (: CFLAGS="$CFLAGS $flag") 2>&5
23693   ac_status=$?
23694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23695   test $ac_status = 0; }
23696       CFLAGS="$CFLAGS $flag"
23697       ;;
23698    esac
23699 else
23700   CFLAGS="$flag"
23701 fi
23702
23703 else
23704   :
23705 fi
23706
23707 done
23708
23709
23710
23711 for flag in -Wswitch-enum; do
23712   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23714 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23715 if eval \${$as_CACHEVAR+:} false; then :
23716   $as_echo_n "(cached) " >&6
23717 else
23718
23719   ax_check_save_flags=$CFLAGS
23720   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23722 /* end confdefs.h.  */
23723
23724 int
23725 main ()
23726 {
23727
23728   ;
23729   return 0;
23730 }
23731 _ACEOF
23732 if ac_fn_c_try_compile "$LINENO"; then :
23733   eval "$as_CACHEVAR=yes"
23734 else
23735   eval "$as_CACHEVAR=no"
23736 fi
23737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23738   CFLAGS=$ax_check_save_flags
23739 fi
23740 eval ac_res=\$$as_CACHEVAR
23741                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23742 $as_echo "$ac_res" >&6; }
23743 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23744   if ${CFLAGS+:} false; then :
23745   case " $CFLAGS " in
23746     *" $flag "*)
23747       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23748   (: CFLAGS already contains $flag) 2>&5
23749   ac_status=$?
23750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23751   test $ac_status = 0; }
23752       ;;
23753     *)
23754       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23755   (: CFLAGS="$CFLAGS $flag") 2>&5
23756   ac_status=$?
23757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23758   test $ac_status = 0; }
23759       CFLAGS="$CFLAGS $flag"
23760       ;;
23761    esac
23762 else
23763   CFLAGS="$flag"
23764 fi
23765
23766 else
23767   :
23768 fi
23769
23770 done
23771
23772
23773
23774 for flag in -Wundef; do
23775   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23777 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23778 if eval \${$as_CACHEVAR+:} false; then :
23779   $as_echo_n "(cached) " >&6
23780 else
23781
23782   ax_check_save_flags=$CFLAGS
23783   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785 /* end confdefs.h.  */
23786
23787 int
23788 main ()
23789 {
23790
23791   ;
23792   return 0;
23793 }
23794 _ACEOF
23795 if ac_fn_c_try_compile "$LINENO"; then :
23796   eval "$as_CACHEVAR=yes"
23797 else
23798   eval "$as_CACHEVAR=no"
23799 fi
23800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23801   CFLAGS=$ax_check_save_flags
23802 fi
23803 eval ac_res=\$$as_CACHEVAR
23804                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23805 $as_echo "$ac_res" >&6; }
23806 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23807   if ${CFLAGS+:} false; then :
23808   case " $CFLAGS " in
23809     *" $flag "*)
23810       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23811   (: CFLAGS already contains $flag) 2>&5
23812   ac_status=$?
23813   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23814   test $ac_status = 0; }
23815       ;;
23816     *)
23817       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23818   (: CFLAGS="$CFLAGS $flag") 2>&5
23819   ac_status=$?
23820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23821   test $ac_status = 0; }
23822       CFLAGS="$CFLAGS $flag"
23823       ;;
23824    esac
23825 else
23826   CFLAGS="$flag"
23827 fi
23828
23829 else
23830   :
23831 fi
23832
23833 done
23834
23835
23836
23837 for flag in -Wunused; do
23838   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23840 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23841 if eval \${$as_CACHEVAR+:} false; then :
23842   $as_echo_n "(cached) " >&6
23843 else
23844
23845   ax_check_save_flags=$CFLAGS
23846   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848 /* end confdefs.h.  */
23849
23850 int
23851 main ()
23852 {
23853
23854   ;
23855   return 0;
23856 }
23857 _ACEOF
23858 if ac_fn_c_try_compile "$LINENO"; then :
23859   eval "$as_CACHEVAR=yes"
23860 else
23861   eval "$as_CACHEVAR=no"
23862 fi
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864   CFLAGS=$ax_check_save_flags
23865 fi
23866 eval ac_res=\$$as_CACHEVAR
23867                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23868 $as_echo "$ac_res" >&6; }
23869 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23870   if ${CFLAGS+:} false; then :
23871   case " $CFLAGS " in
23872     *" $flag "*)
23873       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23874   (: CFLAGS already contains $flag) 2>&5
23875   ac_status=$?
23876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23877   test $ac_status = 0; }
23878       ;;
23879     *)
23880       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23881   (: CFLAGS="$CFLAGS $flag") 2>&5
23882   ac_status=$?
23883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23884   test $ac_status = 0; }
23885       CFLAGS="$CFLAGS $flag"
23886       ;;
23887    esac
23888 else
23889   CFLAGS="$flag"
23890 fi
23891
23892 else
23893   :
23894 fi
23895
23896 done
23897
23898
23899
23900 for flag in -Wunused-result; do
23901   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23903 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23904 if eval \${$as_CACHEVAR+:} false; then :
23905   $as_echo_n "(cached) " >&6
23906 else
23907
23908   ax_check_save_flags=$CFLAGS
23909   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23911 /* end confdefs.h.  */
23912
23913 int
23914 main ()
23915 {
23916
23917   ;
23918   return 0;
23919 }
23920 _ACEOF
23921 if ac_fn_c_try_compile "$LINENO"; then :
23922   eval "$as_CACHEVAR=yes"
23923 else
23924   eval "$as_CACHEVAR=no"
23925 fi
23926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927   CFLAGS=$ax_check_save_flags
23928 fi
23929 eval ac_res=\$$as_CACHEVAR
23930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23931 $as_echo "$ac_res" >&6; }
23932 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23933   if ${CFLAGS+:} false; then :
23934   case " $CFLAGS " in
23935     *" $flag "*)
23936       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23937   (: CFLAGS already contains $flag) 2>&5
23938   ac_status=$?
23939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23940   test $ac_status = 0; }
23941       ;;
23942     *)
23943       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23944   (: CFLAGS="$CFLAGS $flag") 2>&5
23945   ac_status=$?
23946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23947   test $ac_status = 0; }
23948       CFLAGS="$CFLAGS $flag"
23949       ;;
23950    esac
23951 else
23952   CFLAGS="$flag"
23953 fi
23954
23955 else
23956   :
23957 fi
23958
23959 done
23960
23961
23962
23963 for flag in -Wunused-variable; do
23964   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23966 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23967 if eval \${$as_CACHEVAR+:} false; then :
23968   $as_echo_n "(cached) " >&6
23969 else
23970
23971   ax_check_save_flags=$CFLAGS
23972   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23974 /* end confdefs.h.  */
23975
23976 int
23977 main ()
23978 {
23979
23980   ;
23981   return 0;
23982 }
23983 _ACEOF
23984 if ac_fn_c_try_compile "$LINENO"; then :
23985   eval "$as_CACHEVAR=yes"
23986 else
23987   eval "$as_CACHEVAR=no"
23988 fi
23989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23990   CFLAGS=$ax_check_save_flags
23991 fi
23992 eval ac_res=\$$as_CACHEVAR
23993                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23994 $as_echo "$ac_res" >&6; }
23995 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23996   if ${CFLAGS+:} false; then :
23997   case " $CFLAGS " in
23998     *" $flag "*)
23999       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24000   (: CFLAGS already contains $flag) 2>&5
24001   ac_status=$?
24002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24003   test $ac_status = 0; }
24004       ;;
24005     *)
24006       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24007   (: CFLAGS="$CFLAGS $flag") 2>&5
24008   ac_status=$?
24009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24010   test $ac_status = 0; }
24011       CFLAGS="$CFLAGS $flag"
24012       ;;
24013    esac
24014 else
24015   CFLAGS="$flag"
24016 fi
24017
24018 else
24019   :
24020 fi
24021
24022 done
24023
24024
24025
24026 for flag in -Wwrite-strings; do
24027   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24029 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24030 if eval \${$as_CACHEVAR+:} false; then :
24031   $as_echo_n "(cached) " >&6
24032 else
24033
24034   ax_check_save_flags=$CFLAGS
24035   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24037 /* end confdefs.h.  */
24038
24039 int
24040 main ()
24041 {
24042
24043   ;
24044   return 0;
24045 }
24046 _ACEOF
24047 if ac_fn_c_try_compile "$LINENO"; then :
24048   eval "$as_CACHEVAR=yes"
24049 else
24050   eval "$as_CACHEVAR=no"
24051 fi
24052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24053   CFLAGS=$ax_check_save_flags
24054 fi
24055 eval ac_res=\$$as_CACHEVAR
24056                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24057 $as_echo "$ac_res" >&6; }
24058 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24059   if ${CFLAGS+:} false; then :
24060   case " $CFLAGS " in
24061     *" $flag "*)
24062       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24063   (: CFLAGS already contains $flag) 2>&5
24064   ac_status=$?
24065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24066   test $ac_status = 0; }
24067       ;;
24068     *)
24069       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24070   (: CFLAGS="$CFLAGS $flag") 2>&5
24071   ac_status=$?
24072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24073   test $ac_status = 0; }
24074       CFLAGS="$CFLAGS $flag"
24075       ;;
24076    esac
24077 else
24078   CFLAGS="$flag"
24079 fi
24080
24081 else
24082   :
24083 fi
24084
24085 done
24086
24087
24088
24089 for flag in -fwrapv; do
24090   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24092 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24093 if eval \${$as_CACHEVAR+:} false; then :
24094   $as_echo_n "(cached) " >&6
24095 else
24096
24097   ax_check_save_flags=$CFLAGS
24098   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24100 /* end confdefs.h.  */
24101
24102 int
24103 main ()
24104 {
24105
24106   ;
24107   return 0;
24108 }
24109 _ACEOF
24110 if ac_fn_c_try_compile "$LINENO"; then :
24111   eval "$as_CACHEVAR=yes"
24112 else
24113   eval "$as_CACHEVAR=no"
24114 fi
24115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24116   CFLAGS=$ax_check_save_flags
24117 fi
24118 eval ac_res=\$$as_CACHEVAR
24119                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24120 $as_echo "$ac_res" >&6; }
24121 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24122   if ${CFLAGS+:} false; then :
24123   case " $CFLAGS " in
24124     *" $flag "*)
24125       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24126   (: CFLAGS already contains $flag) 2>&5
24127   ac_status=$?
24128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129   test $ac_status = 0; }
24130       ;;
24131     *)
24132       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24133   (: CFLAGS="$CFLAGS $flag") 2>&5
24134   ac_status=$?
24135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24136   test $ac_status = 0; }
24137       CFLAGS="$CFLAGS $flag"
24138       ;;
24139    esac
24140 else
24141   CFLAGS="$flag"
24142 fi
24143
24144 else
24145   :
24146 fi
24147
24148 done
24149
24150
24151
24152 for flag in -fPIE; do
24153   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24155 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24156 if eval \${$as_CACHEVAR+:} false; then :
24157   $as_echo_n "(cached) " >&6
24158 else
24159
24160   ax_check_save_flags=$CFLAGS
24161   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24163 /* end confdefs.h.  */
24164
24165 int
24166 main ()
24167 {
24168
24169   ;
24170   return 0;
24171 }
24172 _ACEOF
24173 if ac_fn_c_try_compile "$LINENO"; then :
24174   eval "$as_CACHEVAR=yes"
24175 else
24176   eval "$as_CACHEVAR=no"
24177 fi
24178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24179   CFLAGS=$ax_check_save_flags
24180 fi
24181 eval ac_res=\$$as_CACHEVAR
24182                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24183 $as_echo "$ac_res" >&6; }
24184 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24185   if ${CFLAGS+:} false; then :
24186   case " $CFLAGS " in
24187     *" $flag "*)
24188       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24189   (: CFLAGS already contains $flag) 2>&5
24190   ac_status=$?
24191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24192   test $ac_status = 0; }
24193       ;;
24194     *)
24195       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24196   (: CFLAGS="$CFLAGS $flag") 2>&5
24197   ac_status=$?
24198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24199   test $ac_status = 0; }
24200       CFLAGS="$CFLAGS $flag"
24201       ;;
24202    esac
24203 else
24204   CFLAGS="$flag"
24205 fi
24206
24207 else
24208   :
24209 fi
24210
24211 done
24212
24213       ac_ext=c
24214 ac_cpp='$CPP $CPPFLAGS'
24215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24218
24219
24220
24221 # link to ws2_32 if on mingw
24222 case $host_os in
24223     *mingw32)
24224         LDFLAGS="$LDFLAGS -lws2_32" ;;
24225 esac
24226
24227 # add user C_EXTRA_FLAGS back
24228 CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
24229 OPTION_FLAGS="$USER_C_EXTRA_FLAGS $AM_CFLAGS"
24230
24231
24232
24233   HEX_VERSION=`echo $VERSION | sed 's|\-a-z0-9*$||' | \
24234     awk -F. '{printf "0x%0.2d%0.3d%0.3d", $1, $2, $3}'`
24235
24236
24237
24238
24239
24240
24241 # FINAL
24242 ac_config_files="$ac_config_files stamp-h"
24243
24244 ac_config_files="$ac_config_files Makefile"
24245
24246 ac_config_files="$ac_config_files cyassl/version.h"
24247
24248 ac_config_files="$ac_config_files cyassl/options.h"
24249
24250 ac_config_files="$ac_config_files support/cyassl.pc"
24251
24252 ac_config_files="$ac_config_files rpm/spec"
24253
24254
24255 # create a generic PACKAGE-config file
24256 L=`echo $PACKAGE $LIBS`
24257 P=`echo $L | sed -e 's/ -.*//'`
24258 P=`echo $P`
24259 V=`echo $VERSION`
24260 F=`echo $P-config`
24261 L=`echo -l$L | sed -e 's/^-llib/-l/'`
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $F - generic $V for $L" >&5
24263 $as_echo "creating $F - generic $V for $L" >&6; }
24264 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24266 echo '#! /bin/sh' >$F
24267 echo ' ' >>$F
24268 echo 'package="'$P'"' >>$F
24269 echo 'version="'$V'"' >>$F
24270 echo 'libs="'$L'"' >>$F
24271 echo ' ' >>$F
24272 # in the order of occurence a standard automake Makefile
24273 echo 'prefix="'$prefix'"' >>$F
24274 echo 'exec_prefix="'$exec_prefix'"' >>$F
24275 echo 'bindir="'$bindir'"' >>$F
24276 echo 'sbindir="'$sbindir'"' >>$F
24277 echo 'libexecdir="'$libexecdir'"' >>$F
24278 echo 'datadir="'$datadir'"' >>$F
24279 echo 'sysconfdir="'$sysconfdir'"' >>$F
24280 echo 'sharedstatedir="'$sharedstatedir'"' >>$F
24281 echo 'localstatedir="'$localstatedir'"' >>$F
24282 echo 'libdir="'$libdir'"' >>$F
24283 echo 'infodir="'$infodir'"' >>$F
24284 echo 'mandir="'$mandir'"' >>$F
24285 echo 'includedir="'$includedir'"' >>$F
24286 echo 'target="'$target'"' >>$F
24287 echo 'host="'$host'"' >>$F
24288 echo 'build="'$build'"' >>$F
24289 echo ' ' >>$F
24290 echo 'if test "'"\$""#"'" -eq 0; then' >>$F
24291 echo '   cat <<EOF' >>$F
24292 echo 'Usage: $package-config OPTIONS' >>$F
24293 echo 'Options:' >>$F
24294 echo '  --prefix=DIR) : \$prefix' >>$F
24295 echo '  --package) : \$package' >>$F
24296 echo '  --version) : \$version' >>$F
24297 echo '  --cflags) : -I\$includedir' >>$F
24298 echo '  --libs) : -L\$libdir -l\$package' >>$F
24299 echo '  --help) print all the options (not just these)' >>$F
24300 echo 'EOF' >>$F
24301 echo 'fi' >>$F
24302 echo ' ' >>$F
24303 echo 'o=""' >>$F
24304 echo 'h=""' >>$F
24305 echo 'for i in "$@"; do' >>$F
24306 echo '  case $i in' >>$F
24307 echo '  --prefix=*) prefix=`echo $i | sed -e "s/--prefix=//"` ;;' >>$F
24308 echo '  --prefix)    o="$o $prefix" ;;' >>$F
24309 echo '  --package)   o="$o $package" ;;' >>$F
24310 echo '  --version)   o="$o $version" ;;' >>$F
24311 echo '  --cflags) if test "_$includedir" != "_/usr/include"' >>$F
24312 echo '          then o="$o -I$includedir" ; fi' >>$F
24313 echo '  ;;' >>$F
24314 echo '  --libs)      o="$o -L$libdir $libs" ;;' >>$F
24315 echo '  --exec_prefix|--eprefix) o="$o $exec_prefix" ;;' >>$F
24316 echo '  --bindir)                o="$o $bindir" ;;' >>$F
24317 echo '  --sbindir)               o="$o $sbindir" ;;' >>$F
24318 echo '  --libexecdir)            o="$o $libexecdir" ;;' >>$F
24319 echo '  --datadir)               o="$o $datadir" ;;' >>$F
24320 echo '  --datainc)               o="$o -I$datadir" ;;' >>$F
24321 echo '  --datalib)               o="$o -L$datadir" ;;' >>$F
24322 echo '  --sysconfdir)            o="$o $sysconfdir" ;;' >>$F
24323 echo '  --sharedstatedir)        o="$o $sharedstatedir" ;;' >>$F
24324 echo '  --localstatedir)         o="$o $localstatedir" ;;' >>$F
24325 echo '  --libdir)                o="$o $libdir" ;;' >>$F
24326 echo '  --libadd)                o="$o -L$libdir" ;;' >>$F
24327 echo '  --infodir)               o="$o $infodir" ;;' >>$F
24328 echo '  --mandir)                o="$o $mandir" ;;' >>$F
24329 echo '  --target)                o="$o $target" ;;' >>$F
24330 echo '  --host)                  o="$o $host" ;;' >>$F
24331 echo '  --build)                 o="$o $build" ;;' >>$F
24332 echo '  --data)                  o="$o -I$datadir/$package" ;;' >>$F
24333 echo '  --pkgdatadir)            o="$o $datadir/$package" ;;' >>$F
24334 echo '  --pkgdatainc)            o="$o -I$datadir/$package" ;;' >>$F
24335 echo '  --pkgdatalib)            o="$o -L$datadir/$package" ;;' >>$F
24336 echo '  --pkglibdir)             o="$o $libdir/$package" ;;' >>$F
24337 echo '  --pkglibinc)             o="$o -I$libinc/$package" ;;' >>$F
24338 echo '  --pkglibadd)             o="$o -L$libadd/$package" ;;' >>$F
24339 echo '  --pkgincludedir)         o="$o $includedir/$package" ;;' >>$F
24340 echo '  --help) h="1" ;;' >>$F
24341 echo '  -?//*|-?/*//*|-?./*//*|//*|/*//*|./*//*) ' >>$F
24342 echo '       v=`echo $i | sed -e s://:\$:g`' >>$F
24343 echo '       v=`eval "echo $v"` ' >>$F
24344 echo '       o="$o $v" ;; ' >>$F
24345 echo '  esac' >>$F
24346 echo 'done' >>$F
24347 echo ' ' >>$F
24348 echo 'o=`eval "echo $o"`' >>$F
24349 echo 'o=`eval "echo $o"`' >>$F
24350 echo 'eval "echo $o"' >>$F
24351 echo ' ' >>$F
24352 echo 'if test ! -z "$h" ; then ' >>$F
24353 echo 'cat <<EOF' >>$F
24354 echo '  --prefix=xxx)      (what is that for anyway?)' >>$F
24355 echo '  --prefix)         \$prefix        $prefix' >>$F
24356 echo '  --package)        \$package       $package' >>$F
24357 echo '  --version)        \$version       $version' >>$F
24358 echo '  --cflags)         -I\$includedir    unless it is /usr/include' >>$F
24359 echo '  --libs)           -L\$libdir -l\$PACKAGE \$LIBS' >>$F
24360 echo '  --exec_prefix) or... ' >>$F
24361 echo '  --eprefix)        \$exec_prefix   $exec_prefix' >>$F
24362 echo '  --bindir)         \$bindir        $bindir' >>$F
24363 echo '  --sbindir)        \$sbindir       $sbindir' >>$F
24364 echo '  --libexecdir)     \$libexecdir    $libexecdir' >>$F
24365 echo '  --datadir)        \$datadir       $datadir' >>$F
24366 echo '  --sysconfdir)     \$sysconfdir    $sysconfdir' >>$F
24367 echo '  --sharedstatedir) \$sharedstatedir$sharedstatedir' >>$F
24368 echo '  --localstatedir)  \$localstatedir $localstatedir' >>$F
24369 echo '  --libdir)         \$libdir        $libdir' >>$F
24370 echo '  --infodir)        \$infodir       $infodir' >>$F
24371 echo '  --mandir)         \$mandir        $mandir' >>$F
24372 echo '  --target)         \$target        $target' >>$F
24373 echo '  --host)           \$host          $host' >>$F
24374 echo '  --build)          \$build         $build' >>$F
24375 echo '  --data)           -I\$datadir/\$package' >>$F
24376 echo '  --pkgdatadir)     \$datadir/\$package' >>$F
24377 echo '  --pkglibdir)      \$libdir/\$package' >>$F
24378 echo '  --pkgincludedir)  \$includedir/\$package' >>$F
24379 echo '  --help)           generated by ax_create_generic_config.m4' >>$F
24380 echo '  -I//varname and other inc-targets like --pkgdatainc supported' >>$F
24381 echo '  -L//varname and other lib-targets, e.g. --pkgdatalib or --libadd' >>$F
24382 echo 'EOF' >>$F
24383 echo 'fi' >>$F
24384 GENERIC_CONFIG="$F"
24385
24386
24387
24388
24389
24390       { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
24391 $as_echo_n "checking the number of available CPUs... " >&6; }
24392       CPU_COUNT="0"
24393
24394       case $host_os in #(
24395
24396         *darwin*) :
24397
24398         if test -x /usr/sbin/sysctl; then :
24399
24400           sysctl_a=`/usr/sbin/sysctl -a 2>/dev/null| grep -c hw.cpu`
24401           if test sysctl_a; then :
24402
24403             CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
24404
24405 fi
24406
24407 fi ;; #(
24408
24409         *linux*) :
24410
24411         if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
24412
24413           if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
24414
24415             CPU_COUNT=`$EGREP -c '^processor' /proc/cpuinfo`
24416
24417 fi
24418
24419 fi
24420          ;; #(
24421   *) :
24422      ;;
24423 esac
24424
24425       if test "x$CPU_COUNT" = "x0"; then :
24426
24427         CPU_COUNT="1"
24428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1) " >&5
24429 $as_echo "unable to detect (assuming 1) " >&6; }
24430
24431 else
24432
24433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT " >&5
24434 $as_echo "$CPU_COUNT " >&6; }
24435
24436 fi
24437
24438
24439 AX_DOLLAR="\$"
24440 AX_SRB="\\135"
24441 AX_SLB="\\133"
24442 AX_BS="\\\\"
24443 AX_DQ="\""
24444
24445
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: adding automake macro support" >&5
24447 $as_echo "$as_me: adding automake macro support" >&6;}
24448 AMINCLUDE="aminclude.am"
24449
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $AMINCLUDE" >&5
24451 $as_echo "$as_me: creating $AMINCLUDE" >&6;}
24452 AMINCLUDE_TIME=`date`
24453
24454
24455 printf "
24456 # generated automatically by configure from AX_AUTOMAKE_MACROS
24457 # on $AMINCLUDE_TIME
24458
24459 " > "$AMINCLUDE"
24460
24461
24462 INC_AMINCLUDE="include \$(top_builddir)/$AMINCLUDE"
24463
24464
24465
24466
24467
24468     # Check whether --enable-jobserver was given.
24469 if test "${enable_jobserver+set}" = set; then :
24470   enableval=$enable_jobserver;
24471 else
24472   enable_jobserver=yes
24473 fi
24474
24475     if test "x$enable_jobserver" = "xyes"; then
24476         enable_jobserver=$CPU_COUNT
24477         ((enable_jobserver++))
24478     fi
24479
24480     if test "x$enable_jobserver" != "xno"; then
24481         { $as_echo "$as_me:${as_lineno-$LINENO}: added jobserver support to make for $enable_jobserver jobs" >&5
24482 $as_echo "$as_me: added jobserver support to make for $enable_jobserver jobs" >&6;}
24483
24484
24485
24486
24487 printf "AM_MAKEFLAGS += -j$enable_jobserver \n" >> "$AMINCLUDE"
24488
24489
24490     fi
24491
24492
24493 cat >confcache <<\_ACEOF
24494 # This file is a shell script that caches the results of configure
24495 # tests run on this system so they can be shared between configure
24496 # scripts and configure runs, see configure's option --config-cache.
24497 # It is not useful on other systems.  If it contains results you don't
24498 # want to keep, you may remove or edit it.
24499 #
24500 # config.status only pays attention to the cache file if you give it
24501 # the --recheck option to rerun configure.
24502 #
24503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24505 # following values.
24506
24507 _ACEOF
24508
24509 # The following way of writing the cache mishandles newlines in values,
24510 # but we know of no workaround that is simple, portable, and efficient.
24511 # So, we kill variables containing newlines.
24512 # Ultrix sh set writes to stderr and can't be redirected directly,
24513 # and sets the high bit in the cache file unless we assign to the vars.
24514 (
24515   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24516     eval ac_val=\$$ac_var
24517     case $ac_val in #(
24518     *${as_nl}*)
24519       case $ac_var in #(
24520       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24521 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24522       esac
24523       case $ac_var in #(
24524       _ | IFS | as_nl) ;; #(
24525       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24526       *) { eval $ac_var=; unset $ac_var;} ;;
24527       esac ;;
24528     esac
24529   done
24530
24531   (set) 2>&1 |
24532     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24533     *${as_nl}ac_space=\ *)
24534       # `set' does not quote correctly, so add quotes: double-quote
24535       # substitution turns \\\\ into \\, and sed turns \\ into \.
24536       sed -n \
24537         "s/'/'\\\\''/g;
24538           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24539       ;; #(
24540     *)
24541       # `set' quotes correctly as required by POSIX, so do not add quotes.
24542       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24543       ;;
24544     esac |
24545     sort
24546 ) |
24547   sed '
24548      /^ac_cv_env_/b end
24549      t clear
24550      :clear
24551      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24552      t end
24553      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24554      :end' >>confcache
24555 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24556   if test -w "$cache_file"; then
24557     if test "x$cache_file" != "x/dev/null"; then
24558       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24559 $as_echo "$as_me: updating cache $cache_file" >&6;}
24560       if test ! -f "$cache_file" || test -h "$cache_file"; then
24561         cat confcache >"$cache_file"
24562       else
24563         case $cache_file in #(
24564         */* | ?:*)
24565           mv -f confcache "$cache_file"$$ &&
24566           mv -f "$cache_file"$$ "$cache_file" ;; #(
24567         *)
24568           mv -f confcache "$cache_file" ;;
24569         esac
24570       fi
24571     fi
24572   else
24573     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24574 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24575   fi
24576 fi
24577 rm -f confcache
24578
24579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24580 # Let make expand exec_prefix.
24581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24582
24583 DEFS=-DHAVE_CONFIG_H
24584
24585 ac_libobjs=
24586 ac_ltlibobjs=
24587 U=
24588 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24589   # 1. Remove the extension, and $U if already installed.
24590   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24591   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24592   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24593   #    will be set to the directory where LIBOBJS objects are built.
24594   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24595   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24596 done
24597 LIBOBJS=$ac_libobjs
24598
24599 LTLIBOBJS=$ac_ltlibobjs
24600
24601
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24603 $as_echo_n "checking that generated files are newer than configure... " >&6; }
24604    if test -n "$am_sleep_pid"; then
24605      # Hide warnings about reused PIDs.
24606      wait $am_sleep_pid 2>/dev/null
24607    fi
24608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24609 $as_echo "done" >&6; }
24610  if test -n "$EXEEXT"; then
24611   am__EXEEXT_TRUE=
24612   am__EXEEXT_FALSE='#'
24613 else
24614   am__EXEEXT_TRUE='#'
24615   am__EXEEXT_FALSE=
24616 fi
24617
24618 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24619   as_fn_error $? "conditional \"AMDEP\" was never defined.
24620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24621 fi
24622 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24623   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24625 fi
24626 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24627   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24629 fi
24630
24631 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24632   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24634 fi
24635 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24636   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24638 fi
24639 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
24640   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
24641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24642 fi
24643 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
24644   as_fn_error $? "conditional \"DEBUG\" was never defined.
24645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24646 fi
24647 if test -z "${BUILD_LEANPSK_TRUE}" && test -z "${BUILD_LEANPSK_FALSE}"; then
24648   as_fn_error $? "conditional \"BUILD_LEANPSK\" was never defined.
24649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24650 fi
24651 if test -z "${BUILD_SNIFFER_TRUE}" && test -z "${BUILD_SNIFFER_FALSE}"; then
24652   as_fn_error $? "conditional \"BUILD_SNIFFER\" was never defined.
24653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24654 fi
24655 if test -z "${BUILD_SNIFFTEST_TRUE}" && test -z "${BUILD_SNIFFTEST_FALSE}"; then
24656   as_fn_error $? "conditional \"BUILD_SNIFFTEST\" was never defined.
24657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24658 fi
24659 if test -z "${BUILD_AESGCM_TRUE}" && test -z "${BUILD_AESGCM_FALSE}"; then
24660   as_fn_error $? "conditional \"BUILD_AESGCM\" was never defined.
24661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24662 fi
24663 if test -z "${BUILD_AESCCM_TRUE}" && test -z "${BUILD_AESCCM_FALSE}"; then
24664   as_fn_error $? "conditional \"BUILD_AESCCM\" was never defined.
24665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24666 fi
24667 if test -z "${BUILD_AESNI_TRUE}" && test -z "${BUILD_AESNI_FALSE}"; then
24668   as_fn_error $? "conditional \"BUILD_AESNI\" was never defined.
24669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24670 fi
24671 if test -z "${BUILD_CAMELLIA_TRUE}" && test -z "${BUILD_CAMELLIA_FALSE}"; then
24672   as_fn_error $? "conditional \"BUILD_CAMELLIA\" was never defined.
24673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24674 fi
24675 if test -z "${BUILD_MD2_TRUE}" && test -z "${BUILD_MD2_FALSE}"; then
24676   as_fn_error $? "conditional \"BUILD_MD2\" was never defined.
24677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24678 fi
24679 if test -z "${BUILD_RIPEMD_TRUE}" && test -z "${BUILD_RIPEMD_FALSE}"; then
24680   as_fn_error $? "conditional \"BUILD_RIPEMD\" was never defined.
24681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24682 fi
24683 if test -z "${BUILD_BLAKE2_TRUE}" && test -z "${BUILD_BLAKE2_FALSE}"; then
24684   as_fn_error $? "conditional \"BUILD_BLAKE2\" was never defined.
24685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24686 fi
24687 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
24688   as_fn_error $? "conditional \"BUILD_SHA512\" was never defined.
24689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24690 fi
24691 if test -z "${BUILD_DSA_TRUE}" && test -z "${BUILD_DSA_FALSE}"; then
24692   as_fn_error $? "conditional \"BUILD_DSA\" was never defined.
24693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24694 fi
24695 if test -z "${BUILD_ECC_TRUE}" && test -z "${BUILD_ECC_FALSE}"; then
24696   as_fn_error $? "conditional \"BUILD_ECC\" was never defined.
24697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24698 fi
24699 if test -z "${BUILD_MEMORY_TRUE}" && test -z "${BUILD_MEMORY_FALSE}"; then
24700   as_fn_error $? "conditional \"BUILD_MEMORY\" was never defined.
24701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24702 fi
24703 if test -z "${BUILD_RSA_TRUE}" && test -z "${BUILD_RSA_FALSE}"; then
24704   as_fn_error $? "conditional \"BUILD_RSA\" was never defined.
24705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24706 fi
24707 if test -z "${BUILD_DH_TRUE}" && test -z "${BUILD_DH_FALSE}"; then
24708   as_fn_error $? "conditional \"BUILD_DH\" was never defined.
24709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24710 fi
24711 if test -z "${BUILD_ASN_TRUE}" && test -z "${BUILD_ASN_FALSE}"; then
24712   as_fn_error $? "conditional \"BUILD_ASN\" was never defined.
24713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24714 fi
24715 if test -z "${BUILD_AES_TRUE}" && test -z "${BUILD_AES_FALSE}"; then
24716   as_fn_error $? "conditional \"BUILD_AES\" was never defined.
24717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24718 fi
24719 if test -z "${BUILD_CODING_TRUE}" && test -z "${BUILD_CODING_FALSE}"; then
24720   as_fn_error $? "conditional \"BUILD_CODING\" was never defined.
24721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24722 fi
24723 if test -z "${BUILD_DES3_TRUE}" && test -z "${BUILD_DES3_FALSE}"; then
24724   as_fn_error $? "conditional \"BUILD_DES3\" was never defined.
24725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24726 fi
24727 if test -z "${BUILD_RC4_TRUE}" && test -z "${BUILD_RC4_FALSE}"; then
24728   as_fn_error $? "conditional \"BUILD_RC4\" was never defined.
24729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24730 fi
24731 if test -z "${BUILD_MD5_TRUE}" && test -z "${BUILD_MD5_FALSE}"; then
24732   as_fn_error $? "conditional \"BUILD_MD5\" was never defined.
24733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24734 fi
24735 if test -z "${BUILD_SHA_TRUE}" && test -z "${BUILD_SHA_FALSE}"; then
24736   as_fn_error $? "conditional \"BUILD_SHA\" was never defined.
24737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24738 fi
24739 if test -z "${BUILD_MD4_TRUE}" && test -z "${BUILD_MD4_FALSE}"; then
24740   as_fn_error $? "conditional \"BUILD_MD4\" was never defined.
24741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24742 fi
24743 if test -z "${BUILD_PWDBASED_TRUE}" && test -z "${BUILD_PWDBASED_FALSE}"; then
24744   as_fn_error $? "conditional \"BUILD_PWDBASED\" was never defined.
24745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24746 fi
24747 if test -z "${BUILD_HC128_TRUE}" && test -z "${BUILD_HC128_FALSE}"; then
24748   as_fn_error $? "conditional \"BUILD_HC128\" was never defined.
24749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24750 fi
24751 if test -z "${BUILD_RABBIT_TRUE}" && test -z "${BUILD_RABBIT_FALSE}"; then
24752   as_fn_error $? "conditional \"BUILD_RABBIT\" was never defined.
24753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24754 fi
24755 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
24756   as_fn_error $? "conditional \"BUILD_SHA512\" was never defined.
24757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24758 fi
24759 if test -z "${BUILD_FIPS_TRUE}" && test -z "${BUILD_FIPS_FALSE}"; then
24760   as_fn_error $? "conditional \"BUILD_FIPS\" was never defined.
24761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24762 fi
24763 if test -z "${BUILD_INLINE_TRUE}" && test -z "${BUILD_INLINE_FALSE}"; then
24764   as_fn_error $? "conditional \"BUILD_INLINE\" was never defined.
24765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24766 fi
24767 if test -z "${BUILD_OCSP_TRUE}" && test -z "${BUILD_OCSP_FALSE}"; then
24768   as_fn_error $? "conditional \"BUILD_OCSP\" was never defined.
24769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24770 fi
24771 if test -z "${BUILD_CRL_TRUE}" && test -z "${BUILD_CRL_FALSE}"; then
24772   as_fn_error $? "conditional \"BUILD_CRL\" was never defined.
24773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24774 fi
24775 if test -z "${BUILD_CRL_MONITOR_TRUE}" && test -z "${BUILD_CRL_MONITOR_FALSE}"; then
24776   as_fn_error $? "conditional \"BUILD_CRL_MONITOR\" was never defined.
24777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24778 fi
24779 if test -z "${BUILD_NTRU_TRUE}" && test -z "${BUILD_NTRU_FALSE}"; then
24780   as_fn_error $? "conditional \"BUILD_NTRU\" was never defined.
24781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24782 fi
24783 if test -z "${BUILD_PKCS7_TRUE}" && test -z "${BUILD_PKCS7_FALSE}"; then
24784   as_fn_error $? "conditional \"BUILD_PKCS7\" was never defined.
24785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24786 fi
24787 if test -z "${BUILD_PKCS7_TRUE}" && test -z "${BUILD_PKCS7_FALSE}"; then
24788   as_fn_error $? "conditional \"BUILD_PKCS7\" was never defined.
24789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24790 fi
24791 if test -z "${USE_VALGRIND_TRUE}" && test -z "${USE_VALGRIND_FALSE}"; then
24792   as_fn_error $? "conditional \"USE_VALGRIND\" was never defined.
24793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24794 fi
24795 if test -z "${BUILD_ECC_TRUE}" && test -z "${BUILD_ECC_FALSE}"; then
24796   as_fn_error $? "conditional \"BUILD_ECC\" was never defined.
24797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24798 fi
24799 if test -z "${BUILD_FASTMATH_TRUE}" && test -z "${BUILD_FASTMATH_FALSE}"; then
24800   as_fn_error $? "conditional \"BUILD_FASTMATH\" was never defined.
24801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24802 fi
24803 if test -z "${BUILD_SLOWMATH_TRUE}" && test -z "${BUILD_SLOWMATH_FALSE}"; then
24804   as_fn_error $? "conditional \"BUILD_SLOWMATH\" was never defined.
24805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24806 fi
24807 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
24808   as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
24809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24810 fi
24811 if test -z "${BUILD_LIBZ_TRUE}" && test -z "${BUILD_LIBZ_FALSE}"; then
24812   as_fn_error $? "conditional \"BUILD_LIBZ\" was never defined.
24813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24814 fi
24815 if test -z "${BUILD_MCAPI_TRUE}" && test -z "${BUILD_MCAPI_FALSE}"; then
24816   as_fn_error $? "conditional \"BUILD_MCAPI\" was never defined.
24817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24818 fi
24819 if test -z "${IS_VCS_CHECKOUT_TRUE}" && test -z "${IS_VCS_CHECKOUT_FALSE}"; then
24820   as_fn_error $? "conditional \"IS_VCS_CHECKOUT\" was never defined.
24821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24822 fi
24823
24824 : "${CONFIG_STATUS=./config.status}"
24825 ac_write_fail=0
24826 ac_clean_files_save=$ac_clean_files
24827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24829 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24830 as_write_fail=0
24831 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24832 #! $SHELL
24833 # Generated by $as_me.
24834 # Run this file to recreate the current configuration.
24835 # Compiler output produced by configure, useful for debugging
24836 # configure, is in config.log if it exists.
24837
24838 debug=false
24839 ac_cs_recheck=false
24840 ac_cs_silent=false
24841
24842 SHELL=\${CONFIG_SHELL-$SHELL}
24843 export SHELL
24844 _ASEOF
24845 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24846 ## -------------------- ##
24847 ## M4sh Initialization. ##
24848 ## -------------------- ##
24849
24850 # Be more Bourne compatible
24851 DUALCASE=1; export DUALCASE # for MKS sh
24852 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24853   emulate sh
24854   NULLCMD=:
24855   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24856   # is contrary to our usage.  Disable this feature.
24857   alias -g '${1+"$@"}'='"$@"'
24858   setopt NO_GLOB_SUBST
24859 else
24860   case `(set -o) 2>/dev/null` in #(
24861   *posix*) :
24862     set -o posix ;; #(
24863   *) :
24864      ;;
24865 esac
24866 fi
24867
24868
24869 as_nl='
24870 '
24871 export as_nl
24872 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24873 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24874 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24876 # Prefer a ksh shell builtin over an external printf program on Solaris,
24877 # but without wasting forks for bash or zsh.
24878 if test -z "$BASH_VERSION$ZSH_VERSION" \
24879     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24880   as_echo='print -r --'
24881   as_echo_n='print -rn --'
24882 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24883   as_echo='printf %s\n'
24884   as_echo_n='printf %s'
24885 else
24886   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24887     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24888     as_echo_n='/usr/ucb/echo -n'
24889   else
24890     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24891     as_echo_n_body='eval
24892       arg=$1;
24893       case $arg in #(
24894       *"$as_nl"*)
24895         expr "X$arg" : "X\\(.*\\)$as_nl";
24896         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24897       esac;
24898       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24899     '
24900     export as_echo_n_body
24901     as_echo_n='sh -c $as_echo_n_body as_echo'
24902   fi
24903   export as_echo_body
24904   as_echo='sh -c $as_echo_body as_echo'
24905 fi
24906
24907 # The user is always right.
24908 if test "${PATH_SEPARATOR+set}" != set; then
24909   PATH_SEPARATOR=:
24910   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24911     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24912       PATH_SEPARATOR=';'
24913   }
24914 fi
24915
24916
24917 # IFS
24918 # We need space, tab and new line, in precisely that order.  Quoting is
24919 # there to prevent editors from complaining about space-tab.
24920 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24921 # splitting by setting IFS to empty value.)
24922 IFS=" ""        $as_nl"
24923
24924 # Find who we are.  Look in the path if we contain no directory separator.
24925 as_myself=
24926 case $0 in #((
24927   *[\\/]* ) as_myself=$0 ;;
24928   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24929 for as_dir in $PATH
24930 do
24931   IFS=$as_save_IFS
24932   test -z "$as_dir" && as_dir=.
24933     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24934   done
24935 IFS=$as_save_IFS
24936
24937      ;;
24938 esac
24939 # We did not find ourselves, most probably we were run as `sh COMMAND'
24940 # in which case we are not to be found in the path.
24941 if test "x$as_myself" = x; then
24942   as_myself=$0
24943 fi
24944 if test ! -f "$as_myself"; then
24945   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24946   exit 1
24947 fi
24948
24949 # Unset variables that we do not need and which cause bugs (e.g. in
24950 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24951 # suppresses any "Segmentation fault" message there.  '((' could
24952 # trigger a bug in pdksh 5.2.14.
24953 for as_var in BASH_ENV ENV MAIL MAILPATH
24954 do eval test x\${$as_var+set} = xset \
24955   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24956 done
24957 PS1='$ '
24958 PS2='> '
24959 PS4='+ '
24960
24961 # NLS nuisances.
24962 LC_ALL=C
24963 export LC_ALL
24964 LANGUAGE=C
24965 export LANGUAGE
24966
24967 # CDPATH.
24968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24969
24970
24971 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24972 # ----------------------------------------
24973 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24974 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24975 # script with STATUS, using 1 if that was 0.
24976 as_fn_error ()
24977 {
24978   as_status=$1; test $as_status -eq 0 && as_status=1
24979   if test "$4"; then
24980     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24981     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24982   fi
24983   $as_echo "$as_me: error: $2" >&2
24984   as_fn_exit $as_status
24985 } # as_fn_error
24986
24987
24988 # as_fn_set_status STATUS
24989 # -----------------------
24990 # Set $? to STATUS, without forking.
24991 as_fn_set_status ()
24992 {
24993   return $1
24994 } # as_fn_set_status
24995
24996 # as_fn_exit STATUS
24997 # -----------------
24998 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24999 as_fn_exit ()
25000 {
25001   set +e
25002   as_fn_set_status $1
25003   exit $1
25004 } # as_fn_exit
25005
25006 # as_fn_unset VAR
25007 # ---------------
25008 # Portably unset VAR.
25009 as_fn_unset ()
25010 {
25011   { eval $1=; unset $1;}
25012 }
25013 as_unset=as_fn_unset
25014 # as_fn_append VAR VALUE
25015 # ----------------------
25016 # Append the text in VALUE to the end of the definition contained in VAR. Take
25017 # advantage of any shell optimizations that allow amortized linear growth over
25018 # repeated appends, instead of the typical quadratic growth present in naive
25019 # implementations.
25020 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25021   eval 'as_fn_append ()
25022   {
25023     eval $1+=\$2
25024   }'
25025 else
25026   as_fn_append ()
25027   {
25028     eval $1=\$$1\$2
25029   }
25030 fi # as_fn_append
25031
25032 # as_fn_arith ARG...
25033 # ------------------
25034 # Perform arithmetic evaluation on the ARGs, and store the result in the
25035 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25036 # must be portable across $(()) and expr.
25037 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25038   eval 'as_fn_arith ()
25039   {
25040     as_val=$(( $* ))
25041   }'
25042 else
25043   as_fn_arith ()
25044   {
25045     as_val=`expr "$@" || test $? -eq 1`
25046   }
25047 fi # as_fn_arith
25048
25049
25050 if expr a : '\(a\)' >/dev/null 2>&1 &&
25051    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25052   as_expr=expr
25053 else
25054   as_expr=false
25055 fi
25056
25057 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25058   as_basename=basename
25059 else
25060   as_basename=false
25061 fi
25062
25063 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25064   as_dirname=dirname
25065 else
25066   as_dirname=false
25067 fi
25068
25069 as_me=`$as_basename -- "$0" ||
25070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25071          X"$0" : 'X\(//\)$' \| \
25072          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25073 $as_echo X/"$0" |
25074     sed '/^.*\/\([^/][^/]*\)\/*$/{
25075             s//\1/
25076             q
25077           }
25078           /^X\/\(\/\/\)$/{
25079             s//\1/
25080             q
25081           }
25082           /^X\/\(\/\).*/{
25083             s//\1/
25084             q
25085           }
25086           s/.*/./; q'`
25087
25088 # Avoid depending upon Character Ranges.
25089 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25090 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25091 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25092 as_cr_digits='0123456789'
25093 as_cr_alnum=$as_cr_Letters$as_cr_digits
25094
25095 ECHO_C= ECHO_N= ECHO_T=
25096 case `echo -n x` in #(((((
25097 -n*)
25098   case `echo 'xy\c'` in
25099   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25100   xy)  ECHO_C='\c';;
25101   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25102        ECHO_T=' ';;
25103   esac;;
25104 *)
25105   ECHO_N='-n';;
25106 esac
25107
25108 rm -f conf$$ conf$$.exe conf$$.file
25109 if test -d conf$$.dir; then
25110   rm -f conf$$.dir/conf$$.file
25111 else
25112   rm -f conf$$.dir
25113   mkdir conf$$.dir 2>/dev/null
25114 fi
25115 if (echo >conf$$.file) 2>/dev/null; then
25116   if ln -s conf$$.file conf$$ 2>/dev/null; then
25117     as_ln_s='ln -s'
25118     # ... but there are two gotchas:
25119     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25120     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25121     # In both cases, we have to default to `cp -pR'.
25122     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25123       as_ln_s='cp -pR'
25124   elif ln conf$$.file conf$$ 2>/dev/null; then
25125     as_ln_s=ln
25126   else
25127     as_ln_s='cp -pR'
25128   fi
25129 else
25130   as_ln_s='cp -pR'
25131 fi
25132 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25133 rmdir conf$$.dir 2>/dev/null
25134
25135
25136 # as_fn_mkdir_p
25137 # -------------
25138 # Create "$as_dir" as a directory, including parents if necessary.
25139 as_fn_mkdir_p ()
25140 {
25141
25142   case $as_dir in #(
25143   -*) as_dir=./$as_dir;;
25144   esac
25145   test -d "$as_dir" || eval $as_mkdir_p || {
25146     as_dirs=
25147     while :; do
25148       case $as_dir in #(
25149       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25150       *) as_qdir=$as_dir;;
25151       esac
25152       as_dirs="'$as_qdir' $as_dirs"
25153       as_dir=`$as_dirname -- "$as_dir" ||
25154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25155          X"$as_dir" : 'X\(//\)[^/]' \| \
25156          X"$as_dir" : 'X\(//\)$' \| \
25157          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25158 $as_echo X"$as_dir" |
25159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25160             s//\1/
25161             q
25162           }
25163           /^X\(\/\/\)[^/].*/{
25164             s//\1/
25165             q
25166           }
25167           /^X\(\/\/\)$/{
25168             s//\1/
25169             q
25170           }
25171           /^X\(\/\).*/{
25172             s//\1/
25173             q
25174           }
25175           s/.*/./; q'`
25176       test -d "$as_dir" && break
25177     done
25178     test -z "$as_dirs" || eval "mkdir $as_dirs"
25179   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25180
25181
25182 } # as_fn_mkdir_p
25183 if mkdir -p . 2>/dev/null; then
25184   as_mkdir_p='mkdir -p "$as_dir"'
25185 else
25186   test -d ./-p && rmdir ./-p
25187   as_mkdir_p=false
25188 fi
25189
25190
25191 # as_fn_executable_p FILE
25192 # -----------------------
25193 # Test if FILE is an executable regular file.
25194 as_fn_executable_p ()
25195 {
25196   test -f "$1" && test -x "$1"
25197 } # as_fn_executable_p
25198 as_test_x='test -x'
25199 as_executable_p=as_fn_executable_p
25200
25201 # Sed expression to map a string onto a valid CPP name.
25202 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25203
25204 # Sed expression to map a string onto a valid variable name.
25205 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25206
25207
25208 exec 6>&1
25209 ## ----------------------------------- ##
25210 ## Main body of $CONFIG_STATUS script. ##
25211 ## ----------------------------------- ##
25212 _ASEOF
25213 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25214
25215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25216 # Save the log message, to keep $0 and so on meaningful, and to
25217 # report actual input values of CONFIG_FILES etc. instead of their
25218 # values after options handling.
25219 ac_log="
25220 This file was extended by cyassl $as_me 3.1.0, which was
25221 generated by GNU Autoconf 2.69.  Invocation command line was
25222
25223   CONFIG_FILES    = $CONFIG_FILES
25224   CONFIG_HEADERS  = $CONFIG_HEADERS
25225   CONFIG_LINKS    = $CONFIG_LINKS
25226   CONFIG_COMMANDS = $CONFIG_COMMANDS
25227   $ $0 $@
25228
25229 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25230 "
25231
25232 _ACEOF
25233
25234 case $ac_config_files in *"
25235 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25236 esac
25237
25238 case $ac_config_headers in *"
25239 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25240 esac
25241
25242
25243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25244 # Files that config.status was made for.
25245 config_files="$ac_config_files"
25246 config_headers="$ac_config_headers"
25247 config_commands="$ac_config_commands"
25248
25249 _ACEOF
25250
25251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25252 ac_cs_usage="\
25253 \`$as_me' instantiates files and other configuration actions
25254 from templates according to the current configuration.  Unless the files
25255 and actions are specified as TAGs, all are instantiated by default.
25256
25257 Usage: $0 [OPTION]... [TAG]...
25258
25259   -h, --help       print this help, then exit
25260   -V, --version    print version number and configuration settings, then exit
25261       --config     print configuration, then exit
25262   -q, --quiet, --silent
25263                    do not print progress messages
25264   -d, --debug      don't remove temporary files
25265       --recheck    update $as_me by reconfiguring in the same conditions
25266       --file=FILE[:TEMPLATE]
25267                    instantiate the configuration file FILE
25268       --header=FILE[:TEMPLATE]
25269                    instantiate the configuration header FILE
25270
25271 Configuration files:
25272 $config_files
25273
25274 Configuration headers:
25275 $config_headers
25276
25277 Configuration commands:
25278 $config_commands
25279
25280 Report bugs to <https://github.com/cyassl/cyassl/issues>.
25281 cyassl home page: <http://www.wolfssl.com>."
25282
25283 _ACEOF
25284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25285 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25286 ac_cs_version="\\
25287 cyassl config.status 3.1.0
25288 configured by $0, generated by GNU Autoconf 2.69,
25289   with options \\"\$ac_cs_config\\"
25290
25291 Copyright (C) 2012 Free Software Foundation, Inc.
25292 This config.status script is free software; the Free Software Foundation
25293 gives unlimited permission to copy, distribute and modify it."
25294
25295 ac_pwd='$ac_pwd'
25296 srcdir='$srcdir'
25297 INSTALL='$INSTALL'
25298 MKDIR_P='$MKDIR_P'
25299 AWK='$AWK'
25300 test -n "\$AWK" || AWK=awk
25301 _ACEOF
25302
25303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25304 # The default lists apply if the user does not specify any file.
25305 ac_need_defaults=:
25306 while test $# != 0
25307 do
25308   case $1 in
25309   --*=?*)
25310     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25311     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25312     ac_shift=:
25313     ;;
25314   --*=)
25315     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25316     ac_optarg=
25317     ac_shift=:
25318     ;;
25319   *)
25320     ac_option=$1
25321     ac_optarg=$2
25322     ac_shift=shift
25323     ;;
25324   esac
25325
25326   case $ac_option in
25327   # Handling of the options.
25328   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25329     ac_cs_recheck=: ;;
25330   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25331     $as_echo "$ac_cs_version"; exit ;;
25332   --config | --confi | --conf | --con | --co | --c )
25333     $as_echo "$ac_cs_config"; exit ;;
25334   --debug | --debu | --deb | --de | --d | -d )
25335     debug=: ;;
25336   --file | --fil | --fi | --f )
25337     $ac_shift
25338     case $ac_optarg in
25339     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25340     '') as_fn_error $? "missing file argument" ;;
25341     esac
25342     as_fn_append CONFIG_FILES " '$ac_optarg'"
25343     ac_need_defaults=false;;
25344   --header | --heade | --head | --hea )
25345     $ac_shift
25346     case $ac_optarg in
25347     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25348     esac
25349     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25350     ac_need_defaults=false;;
25351   --he | --h)
25352     # Conflict between --help and --header
25353     as_fn_error $? "ambiguous option: \`$1'
25354 Try \`$0 --help' for more information.";;
25355   --help | --hel | -h )
25356     $as_echo "$ac_cs_usage"; exit ;;
25357   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25358   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25359     ac_cs_silent=: ;;
25360
25361   # This is an error.
25362   -*) as_fn_error $? "unrecognized option: \`$1'
25363 Try \`$0 --help' for more information." ;;
25364
25365   *) as_fn_append ac_config_targets " $1"
25366      ac_need_defaults=false ;;
25367
25368   esac
25369   shift
25370 done
25371
25372 ac_configure_extra_args=
25373
25374 if $ac_cs_silent; then
25375   exec 6>/dev/null
25376   ac_configure_extra_args="$ac_configure_extra_args --silent"
25377 fi
25378
25379 _ACEOF
25380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25381 if \$ac_cs_recheck; then
25382   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25383   shift
25384   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25385   CONFIG_SHELL='$SHELL'
25386   export CONFIG_SHELL
25387   exec "\$@"
25388 fi
25389
25390 _ACEOF
25391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25392 exec 5>>config.log
25393 {
25394   echo
25395   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25396 ## Running $as_me. ##
25397 _ASBOX
25398   $as_echo "$ac_log"
25399 } >&5
25400
25401 _ACEOF
25402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25403 #
25404 # INIT-COMMANDS
25405 #
25406 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25407
25408
25409 # The HP-UX ksh and POSIX shell print the target directory to stdout
25410 # if CDPATH is set.
25411 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25412
25413 sed_quote_subst='$sed_quote_subst'
25414 double_quote_subst='$double_quote_subst'
25415 delay_variable_subst='$delay_variable_subst'
25416 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25417 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25418 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25419 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25420 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25421 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25422 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25423 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25424 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25425 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25426 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25427 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25428 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25429 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25430 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25431 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25432 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25433 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25434 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25435 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25436 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25437 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25438 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25439 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25440 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25441 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25442 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25443 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25444 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25445 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25446 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25447 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25448 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25449 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25450 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25451 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25452 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25453 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25454 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25455 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25456 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25457 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25458 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25459 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25460 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25461 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25462 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25463 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25464 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25465 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25466 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25467 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25468 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25469 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25470 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25471 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25472 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"`'
25473 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25474 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25475 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25476 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25477 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25478 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25479 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25480 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25481 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25482 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25483 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25484 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25485 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25486 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25487 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25488 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25489 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25490 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25491 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25492 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25493 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25494 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25495 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25496 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25497 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25498 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25499 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25500 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25501 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25502 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25503 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25504 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25505 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25506 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25507 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25508 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25509 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25510 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25511 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25512 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25513 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25514 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25515 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25516 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25517 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25518 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25519 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25520 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25521 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25522 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25523 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25524 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25525 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25526 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25527 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25528 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25529 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25530 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25531 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25532 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25533 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25534 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25535 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25536 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25537 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25538 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25539 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25540 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25541 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25542 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25543 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25544 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25545 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25546 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25547 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25548 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25549 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25550 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25551 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25552 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25553 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25554 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25555 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25556 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25557 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25558 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25559 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25560 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25561 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25562 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25563 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25564 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25565 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25566 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25567 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25568 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25569 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25570 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25571 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25572 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25573 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25574 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25575 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25576 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25577 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25578 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25579 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25580 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25581 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25582 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25583 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25584 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25585 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25586 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25587 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25588 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25589 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25590 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25591 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25592 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25593 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25594 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25595 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25596 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25597 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25598 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25599 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25600
25601 LTCC='$LTCC'
25602 LTCFLAGS='$LTCFLAGS'
25603 compiler='$compiler_DEFAULT'
25604
25605 # A function that is used when there is no print builtin or printf.
25606 func_fallback_echo ()
25607 {
25608   eval 'cat <<_LTECHO_EOF
25609 \$1
25610 _LTECHO_EOF'
25611 }
25612
25613 # Quote evaled strings.
25614 for var in SHELL \
25615 ECHO \
25616 PATH_SEPARATOR \
25617 SED \
25618 GREP \
25619 EGREP \
25620 FGREP \
25621 LD \
25622 NM \
25623 LN_S \
25624 lt_SP2NL \
25625 lt_NL2SP \
25626 reload_flag \
25627 OBJDUMP \
25628 deplibs_check_method \
25629 file_magic_cmd \
25630 file_magic_glob \
25631 want_nocaseglob \
25632 DLLTOOL \
25633 sharedlib_from_linklib_cmd \
25634 AR \
25635 AR_FLAGS \
25636 archiver_list_spec \
25637 STRIP \
25638 RANLIB \
25639 CC \
25640 CFLAGS \
25641 compiler \
25642 lt_cv_sys_global_symbol_pipe \
25643 lt_cv_sys_global_symbol_to_cdecl \
25644 lt_cv_sys_global_symbol_to_c_name_address \
25645 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25646 nm_file_list_spec \
25647 lt_prog_compiler_no_builtin_flag \
25648 lt_prog_compiler_pic \
25649 lt_prog_compiler_wl \
25650 lt_prog_compiler_static \
25651 lt_cv_prog_compiler_c_o \
25652 need_locks \
25653 MANIFEST_TOOL \
25654 DSYMUTIL \
25655 NMEDIT \
25656 LIPO \
25657 OTOOL \
25658 OTOOL64 \
25659 shrext_cmds \
25660 export_dynamic_flag_spec \
25661 whole_archive_flag_spec \
25662 compiler_needs_object \
25663 with_gnu_ld \
25664 allow_undefined_flag \
25665 no_undefined_flag \
25666 hardcode_libdir_flag_spec \
25667 hardcode_libdir_separator \
25668 exclude_expsyms \
25669 include_expsyms \
25670 file_list_spec \
25671 variables_saved_for_relink \
25672 libname_spec \
25673 library_names_spec \
25674 soname_spec \
25675 install_override_mode \
25676 finish_eval \
25677 old_striplib \
25678 striplib \
25679 compiler_lib_search_dirs \
25680 predep_objects \
25681 postdep_objects \
25682 predeps \
25683 postdeps \
25684 compiler_lib_search_path \
25685 LD_CXX \
25686 reload_flag_CXX \
25687 compiler_CXX \
25688 lt_prog_compiler_no_builtin_flag_CXX \
25689 lt_prog_compiler_pic_CXX \
25690 lt_prog_compiler_wl_CXX \
25691 lt_prog_compiler_static_CXX \
25692 lt_cv_prog_compiler_c_o_CXX \
25693 export_dynamic_flag_spec_CXX \
25694 whole_archive_flag_spec_CXX \
25695 compiler_needs_object_CXX \
25696 with_gnu_ld_CXX \
25697 allow_undefined_flag_CXX \
25698 no_undefined_flag_CXX \
25699 hardcode_libdir_flag_spec_CXX \
25700 hardcode_libdir_separator_CXX \
25701 exclude_expsyms_CXX \
25702 include_expsyms_CXX \
25703 file_list_spec_CXX \
25704 compiler_lib_search_dirs_CXX \
25705 predep_objects_CXX \
25706 postdep_objects_CXX \
25707 predeps_CXX \
25708 postdeps_CXX \
25709 compiler_lib_search_path_CXX; do
25710     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25711     *[\\\\\\\`\\"\\\$]*)
25712       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25713       ;;
25714     *)
25715       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25716       ;;
25717     esac
25718 done
25719
25720 # Double-quote double-evaled strings.
25721 for var in reload_cmds \
25722 old_postinstall_cmds \
25723 old_postuninstall_cmds \
25724 old_archive_cmds \
25725 extract_expsyms_cmds \
25726 old_archive_from_new_cmds \
25727 old_archive_from_expsyms_cmds \
25728 archive_cmds \
25729 archive_expsym_cmds \
25730 module_cmds \
25731 module_expsym_cmds \
25732 export_symbols_cmds \
25733 prelink_cmds \
25734 postlink_cmds \
25735 postinstall_cmds \
25736 postuninstall_cmds \
25737 finish_cmds \
25738 sys_lib_search_path_spec \
25739 sys_lib_dlsearch_path_spec \
25740 reload_cmds_CXX \
25741 old_archive_cmds_CXX \
25742 old_archive_from_new_cmds_CXX \
25743 old_archive_from_expsyms_cmds_CXX \
25744 archive_cmds_CXX \
25745 archive_expsym_cmds_CXX \
25746 module_cmds_CXX \
25747 module_expsym_cmds_CXX \
25748 export_symbols_cmds_CXX \
25749 prelink_cmds_CXX \
25750 postlink_cmds_CXX; do
25751     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25752     *[\\\\\\\`\\"\\\$]*)
25753       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25754       ;;
25755     *)
25756       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25757       ;;
25758     esac
25759 done
25760
25761 ac_aux_dir='$ac_aux_dir'
25762 xsi_shell='$xsi_shell'
25763 lt_shell_append='$lt_shell_append'
25764
25765 # See if we are running on zsh, and set the options which allow our
25766 # commands through without removal of \ escapes INIT.
25767 if test -n "\${ZSH_VERSION+set}" ; then
25768    setopt NO_GLOB_SUBST
25769 fi
25770
25771
25772     PACKAGE='$PACKAGE'
25773     VERSION='$VERSION'
25774     TIMESTAMP='$TIMESTAMP'
25775     RM='$RM'
25776     ofile='$ofile'
25777
25778
25779
25780
25781
25782
25783 _ACEOF
25784
25785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25786
25787 # Handling of arguments.
25788 for ac_config_target in $ac_config_targets
25789 do
25790   case $ac_config_target in
25791     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
25792     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25793     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25794     "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
25795     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25796     "cyassl/version.h") CONFIG_FILES="$CONFIG_FILES cyassl/version.h" ;;
25797     "cyassl/options.h") CONFIG_FILES="$CONFIG_FILES cyassl/options.h" ;;
25798     "support/cyassl.pc") CONFIG_FILES="$CONFIG_FILES support/cyassl.pc" ;;
25799     "rpm/spec") CONFIG_FILES="$CONFIG_FILES rpm/spec" ;;
25800
25801   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25802   esac
25803 done
25804
25805
25806 # If the user did not use the arguments to specify the items to instantiate,
25807 # then the envvar interface is used.  Set only those that are not.
25808 # We use the long form for the default assignment because of an extremely
25809 # bizarre bug on SunOS 4.1.3.
25810 if $ac_need_defaults; then
25811   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25812   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25813   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25814 fi
25815
25816 # Have a temporary directory for convenience.  Make it in the build tree
25817 # simply because there is no reason against having it here, and in addition,
25818 # creating and moving files from /tmp can sometimes cause problems.
25819 # Hook for its removal unless debugging.
25820 # Note that there is a small window in which the directory will not be cleaned:
25821 # after its creation but before its name has been assigned to `$tmp'.
25822 $debug ||
25823 {
25824   tmp= ac_tmp=
25825   trap 'exit_status=$?
25826   : "${ac_tmp:=$tmp}"
25827   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25828 ' 0
25829   trap 'as_fn_exit 1' 1 2 13 15
25830 }
25831 # Create a (secure) tmp directory for tmp files.
25832
25833 {
25834   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25835   test -d "$tmp"
25836 }  ||
25837 {
25838   tmp=./conf$$-$RANDOM
25839   (umask 077 && mkdir "$tmp")
25840 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25841 ac_tmp=$tmp
25842
25843 # Set up the scripts for CONFIG_FILES section.
25844 # No need to generate them if there are no CONFIG_FILES.
25845 # This happens for instance with `./config.status config.h'.
25846 if test -n "$CONFIG_FILES"; then
25847
25848
25849 ac_cr=`echo X | tr X '\015'`
25850 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25851 # But we know of no other shell where ac_cr would be empty at this
25852 # point, so we can use a bashism as a fallback.
25853 if test "x$ac_cr" = x; then
25854   eval ac_cr=\$\'\\r\'
25855 fi
25856 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25857 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25858   ac_cs_awk_cr='\\r'
25859 else
25860   ac_cs_awk_cr=$ac_cr
25861 fi
25862
25863 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25864 _ACEOF
25865
25866
25867 {
25868   echo "cat >conf$$subs.awk <<_ACEOF" &&
25869   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25870   echo "_ACEOF"
25871 } >conf$$subs.sh ||
25872   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25873 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25874 ac_delim='%!_!# '
25875 for ac_last_try in false false false false false :; do
25876   . ./conf$$subs.sh ||
25877     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25878
25879   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25880   if test $ac_delim_n = $ac_delim_num; then
25881     break
25882   elif $ac_last_try; then
25883     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25884   else
25885     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25886   fi
25887 done
25888 rm -f conf$$subs.sh
25889
25890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25891 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25892 _ACEOF
25893 sed -n '
25894 h
25895 s/^/S["/; s/!.*/"]=/
25896 p
25897 g
25898 s/^[^!]*!//
25899 :repl
25900 t repl
25901 s/'"$ac_delim"'$//
25902 t delim
25903 :nl
25904 h
25905 s/\(.\{148\}\)..*/\1/
25906 t more1
25907 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25908 p
25909 n
25910 b repl
25911 :more1
25912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25913 p
25914 g
25915 s/.\{148\}//
25916 t nl
25917 :delim
25918 h
25919 s/\(.\{148\}\)..*/\1/
25920 t more2
25921 s/["\\]/\\&/g; s/^/"/; s/$/"/
25922 p
25923 b
25924 :more2
25925 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25926 p
25927 g
25928 s/.\{148\}//
25929 t delim
25930 ' <conf$$subs.awk | sed '
25931 /^[^""]/{
25932   N
25933   s/\n//
25934 }
25935 ' >>$CONFIG_STATUS || ac_write_fail=1
25936 rm -f conf$$subs.awk
25937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25938 _ACAWK
25939 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25940   for (key in S) S_is_set[key] = 1
25941   FS = "\a"
25942
25943 }
25944 {
25945   line = $ 0
25946   nfields = split(line, field, "@")
25947   substed = 0
25948   len = length(field[1])
25949   for (i = 2; i < nfields; i++) {
25950     key = field[i]
25951     keylen = length(key)
25952     if (S_is_set[key]) {
25953       value = S[key]
25954       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25955       len += length(value) + length(field[++i])
25956       substed = 1
25957     } else
25958       len += 1 + keylen
25959   }
25960
25961   print line
25962 }
25963
25964 _ACAWK
25965 _ACEOF
25966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25967 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25968   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25969 else
25970   cat
25971 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25972   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25973 _ACEOF
25974
25975 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25976 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25977 # trailing colons and then remove the whole line if VPATH becomes empty
25978 # (actually we leave an empty line to preserve line numbers).
25979 if test "x$srcdir" = x.; then
25980   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
25981 h
25982 s///
25983 s/^/:/
25984 s/[      ]*$/:/
25985 s/:\$(srcdir):/:/g
25986 s/:\${srcdir}:/:/g
25987 s/:@srcdir@:/:/g
25988 s/^:*//
25989 s/:*$//
25990 x
25991 s/\(=[   ]*\).*/\1/
25992 G
25993 s/\n//
25994 s/^[^=]*=[       ]*$//
25995 }'
25996 fi
25997
25998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25999 fi # test -n "$CONFIG_FILES"
26000
26001 # Set up the scripts for CONFIG_HEADERS section.
26002 # No need to generate them if there are no CONFIG_HEADERS.
26003 # This happens for instance with `./config.status Makefile'.
26004 if test -n "$CONFIG_HEADERS"; then
26005 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26006 BEGIN {
26007 _ACEOF
26008
26009 # Transform confdefs.h into an awk script `defines.awk', embedded as
26010 # here-document in config.status, that substitutes the proper values into
26011 # config.h.in to produce config.h.
26012
26013 # Create a delimiter string that does not exist in confdefs.h, to ease
26014 # handling of long lines.
26015 ac_delim='%!_!# '
26016 for ac_last_try in false false :; do
26017   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26018   if test -z "$ac_tt"; then
26019     break
26020   elif $ac_last_try; then
26021     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26022   else
26023     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26024   fi
26025 done
26026
26027 # For the awk script, D is an array of macro values keyed by name,
26028 # likewise P contains macro parameters if any.  Preserve backslash
26029 # newline sequences.
26030
26031 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26032 sed -n '
26033 s/.\{148\}/&'"$ac_delim"'/g
26034 t rset
26035 :rset
26036 s/^[     ]*#[    ]*define[       ][      ]*/ /
26037 t def
26038 d
26039 :def
26040 s/\\$//
26041 t bsnl
26042 s/["\\]/\\&/g
26043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26044 D["\1"]=" \3"/p
26045 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26046 d
26047 :bsnl
26048 s/["\\]/\\&/g
26049 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26050 D["\1"]=" \3\\\\\\n"\\/p
26051 t cont
26052 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26053 t cont
26054 d
26055 :cont
26056 n
26057 s/.\{148\}/&'"$ac_delim"'/g
26058 t clear
26059 :clear
26060 s/\\$//
26061 t bsnlc
26062 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26063 d
26064 :bsnlc
26065 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26066 b cont
26067 ' <confdefs.h | sed '
26068 s/'"$ac_delim"'/"\\\
26069 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26070
26071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26072   for (key in D) D_is_set[key] = 1
26073   FS = "\a"
26074 }
26075 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26076   line = \$ 0
26077   split(line, arg, " ")
26078   if (arg[1] == "#") {
26079     defundef = arg[2]
26080     mac1 = arg[3]
26081   } else {
26082     defundef = substr(arg[1], 2)
26083     mac1 = arg[2]
26084   }
26085   split(mac1, mac2, "(") #)
26086   macro = mac2[1]
26087   prefix = substr(line, 1, index(line, defundef) - 1)
26088   if (D_is_set[macro]) {
26089     # Preserve the white space surrounding the "#".
26090     print prefix "define", macro P[macro] D[macro]
26091     next
26092   } else {
26093     # Replace #undef with comments.  This is necessary, for example,
26094     # in the case of _POSIX_SOURCE, which is predefined and required
26095     # on some systems where configure will not decide to define it.
26096     if (defundef == "undef") {
26097       print "/*", prefix defundef, macro, "*/"
26098       next
26099     }
26100   }
26101 }
26102 { print }
26103 _ACAWK
26104 _ACEOF
26105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26106   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26107 fi # test -n "$CONFIG_HEADERS"
26108
26109
26110 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26111 shift
26112 for ac_tag
26113 do
26114   case $ac_tag in
26115   :[FHLC]) ac_mode=$ac_tag; continue;;
26116   esac
26117   case $ac_mode$ac_tag in
26118   :[FHL]*:*);;
26119   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26120   :[FH]-) ac_tag=-:-;;
26121   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26122   esac
26123   ac_save_IFS=$IFS
26124   IFS=:
26125   set x $ac_tag
26126   IFS=$ac_save_IFS
26127   shift
26128   ac_file=$1
26129   shift
26130
26131   case $ac_mode in
26132   :L) ac_source=$1;;
26133   :[FH])
26134     ac_file_inputs=
26135     for ac_f
26136     do
26137       case $ac_f in
26138       -) ac_f="$ac_tmp/stdin";;
26139       *) # Look for the file first in the build tree, then in the source tree
26140          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26141          # because $ac_f cannot contain `:'.
26142          test -f "$ac_f" ||
26143            case $ac_f in
26144            [\\/$]*) false;;
26145            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26146            esac ||
26147            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26148       esac
26149       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26150       as_fn_append ac_file_inputs " '$ac_f'"
26151     done
26152
26153     # Let's still pretend it is `configure' which instantiates (i.e., don't
26154     # use $as_me), people would be surprised to read:
26155     #    /* config.h.  Generated by config.status.  */
26156     configure_input='Generated from '`
26157           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26158         `' by configure.'
26159     if test x"$ac_file" != x-; then
26160       configure_input="$ac_file.  $configure_input"
26161       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26162 $as_echo "$as_me: creating $ac_file" >&6;}
26163     fi
26164     # Neutralize special characters interpreted by sed in replacement strings.
26165     case $configure_input in #(
26166     *\&* | *\|* | *\\* )
26167        ac_sed_conf_input=`$as_echo "$configure_input" |
26168        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26169     *) ac_sed_conf_input=$configure_input;;
26170     esac
26171
26172     case $ac_tag in
26173     *:-:* | *:-) cat >"$ac_tmp/stdin" \
26174       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26175     esac
26176     ;;
26177   esac
26178
26179   ac_dir=`$as_dirname -- "$ac_file" ||
26180 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26181          X"$ac_file" : 'X\(//\)[^/]' \| \
26182          X"$ac_file" : 'X\(//\)$' \| \
26183          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26184 $as_echo X"$ac_file" |
26185     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26186             s//\1/
26187             q
26188           }
26189           /^X\(\/\/\)[^/].*/{
26190             s//\1/
26191             q
26192           }
26193           /^X\(\/\/\)$/{
26194             s//\1/
26195             q
26196           }
26197           /^X\(\/\).*/{
26198             s//\1/
26199             q
26200           }
26201           s/.*/./; q'`
26202   as_dir="$ac_dir"; as_fn_mkdir_p
26203   ac_builddir=.
26204
26205 case "$ac_dir" in
26206 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26207 *)
26208   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26209   # A ".." for each directory in $ac_dir_suffix.
26210   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26211   case $ac_top_builddir_sub in
26212   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26213   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26214   esac ;;
26215 esac
26216 ac_abs_top_builddir=$ac_pwd
26217 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26218 # for backward compatibility:
26219 ac_top_builddir=$ac_top_build_prefix
26220
26221 case $srcdir in
26222   .)  # We are building in place.
26223     ac_srcdir=.
26224     ac_top_srcdir=$ac_top_builddir_sub
26225     ac_abs_top_srcdir=$ac_pwd ;;
26226   [\\/]* | ?:[\\/]* )  # Absolute name.
26227     ac_srcdir=$srcdir$ac_dir_suffix;
26228     ac_top_srcdir=$srcdir
26229     ac_abs_top_srcdir=$srcdir ;;
26230   *) # Relative name.
26231     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26232     ac_top_srcdir=$ac_top_build_prefix$srcdir
26233     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26234 esac
26235 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26236
26237
26238   case $ac_mode in
26239   :F)
26240   #
26241   # CONFIG_FILE
26242   #
26243
26244   case $INSTALL in
26245   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26246   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26247   esac
26248   ac_MKDIR_P=$MKDIR_P
26249   case $MKDIR_P in
26250   [\\/$]* | ?:[\\/]* ) ;;
26251   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26252   esac
26253 _ACEOF
26254
26255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26256 # If the template does not know about datarootdir, expand it.
26257 # FIXME: This hack should be removed a few years after 2.60.
26258 ac_datarootdir_hack=; ac_datarootdir_seen=
26259 ac_sed_dataroot='
26260 /datarootdir/ {
26261   p
26262   q
26263 }
26264 /@datadir@/p
26265 /@docdir@/p
26266 /@infodir@/p
26267 /@localedir@/p
26268 /@mandir@/p'
26269 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26270 *datarootdir*) ac_datarootdir_seen=yes;;
26271 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26272   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26273 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26274 _ACEOF
26275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26276   ac_datarootdir_hack='
26277   s&@datadir@&$datadir&g
26278   s&@docdir@&$docdir&g
26279   s&@infodir@&$infodir&g
26280   s&@localedir@&$localedir&g
26281   s&@mandir@&$mandir&g
26282   s&\\\${datarootdir}&$datarootdir&g' ;;
26283 esac
26284 _ACEOF
26285
26286 # Neutralize VPATH when `$srcdir' = `.'.
26287 # Shell code in configure.ac might set extrasub.
26288 # FIXME: do we really want to maintain this feature?
26289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26290 ac_sed_extra="$ac_vpsub
26291 $extrasub
26292 _ACEOF
26293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26294 :t
26295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26296 s|@configure_input@|$ac_sed_conf_input|;t t
26297 s&@top_builddir@&$ac_top_builddir_sub&;t t
26298 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26299 s&@srcdir@&$ac_srcdir&;t t
26300 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26301 s&@top_srcdir@&$ac_top_srcdir&;t t
26302 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26303 s&@builddir@&$ac_builddir&;t t
26304 s&@abs_builddir@&$ac_abs_builddir&;t t
26305 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26306 s&@INSTALL@&$ac_INSTALL&;t t
26307 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26308 $ac_datarootdir_hack
26309 "
26310 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26311   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26312
26313 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26314   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26315   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
26316       "$ac_tmp/out"`; test -z "$ac_out"; } &&
26317   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26318 which seems to be undefined.  Please make sure it is defined" >&5
26319 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26320 which seems to be undefined.  Please make sure it is defined" >&2;}
26321
26322   rm -f "$ac_tmp/stdin"
26323   case $ac_file in
26324   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26325   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26326   esac \
26327   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26328  ;;
26329   :H)
26330   #
26331   # CONFIG_HEADER
26332   #
26333   if test x"$ac_file" != x-; then
26334     {
26335       $as_echo "/* $configure_input  */" \
26336       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26337     } >"$ac_tmp/config.h" \
26338       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26339     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26340       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26341 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26342     else
26343       rm -f "$ac_file"
26344       mv "$ac_tmp/config.h" "$ac_file" \
26345         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26346     fi
26347   else
26348     $as_echo "/* $configure_input  */" \
26349       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26350       || as_fn_error $? "could not create -" "$LINENO" 5
26351   fi
26352 # Compute "$ac_file"'s index in $config_headers.
26353 _am_arg="$ac_file"
26354 _am_stamp_count=1
26355 for _am_header in $config_headers :; do
26356   case $_am_header in
26357     $_am_arg | $_am_arg:* )
26358       break ;;
26359     * )
26360       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26361   esac
26362 done
26363 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26364 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26365          X"$_am_arg" : 'X\(//\)[^/]' \| \
26366          X"$_am_arg" : 'X\(//\)$' \| \
26367          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26368 $as_echo X"$_am_arg" |
26369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26370             s//\1/
26371             q
26372           }
26373           /^X\(\/\/\)[^/].*/{
26374             s//\1/
26375             q
26376           }
26377           /^X\(\/\/\)$/{
26378             s//\1/
26379             q
26380           }
26381           /^X\(\/\).*/{
26382             s//\1/
26383             q
26384           }
26385           s/.*/./; q'`/stamp-h$_am_stamp_count
26386  ;;
26387
26388   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26389 $as_echo "$as_me: executing $ac_file commands" >&6;}
26390  ;;
26391   esac
26392
26393
26394   case $ac_file$ac_mode in
26395     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26396   # Older Autoconf quotes --file arguments for eval, but not when files
26397   # are listed without --file.  Let's play safe and only enable the eval
26398   # if we detect the quoting.
26399   case $CONFIG_FILES in
26400   *\'*) eval set x "$CONFIG_FILES" ;;
26401   *)   set x $CONFIG_FILES ;;
26402   esac
26403   shift
26404   for mf
26405   do
26406     # Strip MF so we end up with the name of the file.
26407     mf=`echo "$mf" | sed -e 's/:.*$//'`
26408     # Check whether this is an Automake generated Makefile or not.
26409     # We used to match only the files named 'Makefile.in', but
26410     # some people rename them; so instead we look at the file content.
26411     # Grep'ing the first line is not enough: some people post-process
26412     # each Makefile.in and add a new line on top of each file to say so.
26413     # Grep'ing the whole file is not good either: AIX grep has a line
26414     # limit of 2048, but all sed's we know have understand at least 4000.
26415     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26416       dirpart=`$as_dirname -- "$mf" ||
26417 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26418          X"$mf" : 'X\(//\)[^/]' \| \
26419          X"$mf" : 'X\(//\)$' \| \
26420          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26421 $as_echo X"$mf" |
26422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26423             s//\1/
26424             q
26425           }
26426           /^X\(\/\/\)[^/].*/{
26427             s//\1/
26428             q
26429           }
26430           /^X\(\/\/\)$/{
26431             s//\1/
26432             q
26433           }
26434           /^X\(\/\).*/{
26435             s//\1/
26436             q
26437           }
26438           s/.*/./; q'`
26439     else
26440       continue
26441     fi
26442     # Extract the definition of DEPDIR, am__include, and am__quote
26443     # from the Makefile without running 'make'.
26444     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26445     test -z "$DEPDIR" && continue
26446     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26447     test -z "$am__include" && continue
26448     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26449     # Find all dependency output files, they are included files with
26450     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26451     # simplest approach to changing $(DEPDIR) to its actual value in the
26452     # expansion.
26453     for file in `sed -n "
26454       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26455          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
26456       # Make sure the directory exists.
26457       test -f "$dirpart/$file" && continue
26458       fdir=`$as_dirname -- "$file" ||
26459 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26460          X"$file" : 'X\(//\)[^/]' \| \
26461          X"$file" : 'X\(//\)$' \| \
26462          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26463 $as_echo X"$file" |
26464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26465             s//\1/
26466             q
26467           }
26468           /^X\(\/\/\)[^/].*/{
26469             s//\1/
26470             q
26471           }
26472           /^X\(\/\/\)$/{
26473             s//\1/
26474             q
26475           }
26476           /^X\(\/\).*/{
26477             s//\1/
26478             q
26479           }
26480           s/.*/./; q'`
26481       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26482       # echo "creating $dirpart/$file"
26483       echo '# dummy' > "$dirpart/$file"
26484     done
26485   done
26486 }
26487  ;;
26488     "libtool":C)
26489
26490     # See if we are running on zsh, and set the options which allow our
26491     # commands through without removal of \ escapes.
26492     if test -n "${ZSH_VERSION+set}" ; then
26493       setopt NO_GLOB_SUBST
26494     fi
26495
26496     cfgfile="${ofile}T"
26497     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26498     $RM "$cfgfile"
26499
26500     cat <<_LT_EOF >> "$cfgfile"
26501 #! $SHELL
26502
26503 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26504 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26506 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26507 #
26508 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26509 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26510 #                 Foundation, Inc.
26511 #   Written by Gordon Matzigkeit, 1996
26512 #
26513 #   This file is part of GNU Libtool.
26514 #
26515 # GNU Libtool is free software; you can redistribute it and/or
26516 # modify it under the terms of the GNU General Public License as
26517 # published by the Free Software Foundation; either version 2 of
26518 # the License, or (at your option) any later version.
26519 #
26520 # As a special exception to the GNU General Public License,
26521 # if you distribute this file as part of a program or library that
26522 # is built using GNU Libtool, you may include this file under the
26523 # same distribution terms that you use for the rest of that program.
26524 #
26525 # GNU Libtool is distributed in the hope that it will be useful,
26526 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26527 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26528 # GNU General Public License for more details.
26529 #
26530 # You should have received a copy of the GNU General Public License
26531 # along with GNU Libtool; see the file COPYING.  If not, a copy
26532 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26533 # obtained by writing to the Free Software Foundation, Inc.,
26534 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26535
26536
26537 # The names of the tagged configurations supported by this script.
26538 available_tags="CXX "
26539
26540 # ### BEGIN LIBTOOL CONFIG
26541
26542 # Which release of libtool.m4 was used?
26543 macro_version=$macro_version
26544 macro_revision=$macro_revision
26545
26546 # Whether or not to build static libraries.
26547 build_old_libs=$enable_static
26548
26549 # Whether or not to build shared libraries.
26550 build_libtool_libs=$enable_shared
26551
26552 # What type of objects to build.
26553 pic_mode=$pic_mode
26554
26555 # Whether or not to optimize for fast installation.
26556 fast_install=$enable_fast_install
26557
26558 # Shell to use when invoking shell scripts.
26559 SHELL=$lt_SHELL
26560
26561 # An echo program that protects backslashes.
26562 ECHO=$lt_ECHO
26563
26564 # The PATH separator for the build system.
26565 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26566
26567 # The host system.
26568 host_alias=$host_alias
26569 host=$host
26570 host_os=$host_os
26571
26572 # The build system.
26573 build_alias=$build_alias
26574 build=$build
26575 build_os=$build_os
26576
26577 # A sed program that does not truncate output.
26578 SED=$lt_SED
26579
26580 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26581 Xsed="\$SED -e 1s/^X//"
26582
26583 # A grep program that handles long lines.
26584 GREP=$lt_GREP
26585
26586 # An ERE matcher.
26587 EGREP=$lt_EGREP
26588
26589 # A literal string matcher.
26590 FGREP=$lt_FGREP
26591
26592 # A BSD- or MS-compatible name lister.
26593 NM=$lt_NM
26594
26595 # Whether we need soft or hard links.
26596 LN_S=$lt_LN_S
26597
26598 # What is the maximum length of a command?
26599 max_cmd_len=$max_cmd_len
26600
26601 # Object file suffix (normally "o").
26602 objext=$ac_objext
26603
26604 # Executable file suffix (normally "").
26605 exeext=$exeext
26606
26607 # whether the shell understands "unset".
26608 lt_unset=$lt_unset
26609
26610 # turn spaces into newlines.
26611 SP2NL=$lt_lt_SP2NL
26612
26613 # turn newlines into spaces.
26614 NL2SP=$lt_lt_NL2SP
26615
26616 # convert \$build file names to \$host format.
26617 to_host_file_cmd=$lt_cv_to_host_file_cmd
26618
26619 # convert \$build files to toolchain format.
26620 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26621
26622 # An object symbol dumper.
26623 OBJDUMP=$lt_OBJDUMP
26624
26625 # Method to check whether dependent libraries are shared objects.
26626 deplibs_check_method=$lt_deplibs_check_method
26627
26628 # Command to use when deplibs_check_method = "file_magic".
26629 file_magic_cmd=$lt_file_magic_cmd
26630
26631 # How to find potential files when deplibs_check_method = "file_magic".
26632 file_magic_glob=$lt_file_magic_glob
26633
26634 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26635 want_nocaseglob=$lt_want_nocaseglob
26636
26637 # DLL creation program.
26638 DLLTOOL=$lt_DLLTOOL
26639
26640 # Command to associate shared and link libraries.
26641 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26642
26643 # The archiver.
26644 AR=$lt_AR
26645
26646 # Flags to create an archive.
26647 AR_FLAGS=$lt_AR_FLAGS
26648
26649 # How to feed a file listing to the archiver.
26650 archiver_list_spec=$lt_archiver_list_spec
26651
26652 # A symbol stripping program.
26653 STRIP=$lt_STRIP
26654
26655 # Commands used to install an old-style archive.
26656 RANLIB=$lt_RANLIB
26657 old_postinstall_cmds=$lt_old_postinstall_cmds
26658 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26659
26660 # Whether to use a lock for old archive extraction.
26661 lock_old_archive_extraction=$lock_old_archive_extraction
26662
26663 # A C compiler.
26664 LTCC=$lt_CC
26665
26666 # LTCC compiler flags.
26667 LTCFLAGS=$lt_CFLAGS
26668
26669 # Take the output of nm and produce a listing of raw symbols and C names.
26670 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26671
26672 # Transform the output of nm in a proper C declaration.
26673 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26674
26675 # Transform the output of nm in a C name address pair.
26676 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26677
26678 # Transform the output of nm in a C name address pair when lib prefix is needed.
26679 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26680
26681 # Specify filename containing input files for \$NM.
26682 nm_file_list_spec=$lt_nm_file_list_spec
26683
26684 # The root where to search for dependent libraries,and in which our libraries should be installed.
26685 lt_sysroot=$lt_sysroot
26686
26687 # The name of the directory that contains temporary libtool files.
26688 objdir=$objdir
26689
26690 # Used to examine libraries when file_magic_cmd begins with "file".
26691 MAGIC_CMD=$MAGIC_CMD
26692
26693 # Must we lock files when doing compilation?
26694 need_locks=$lt_need_locks
26695
26696 # Manifest tool.
26697 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26698
26699 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26700 DSYMUTIL=$lt_DSYMUTIL
26701
26702 # Tool to change global to local symbols on Mac OS X.
26703 NMEDIT=$lt_NMEDIT
26704
26705 # Tool to manipulate fat objects and archives on Mac OS X.
26706 LIPO=$lt_LIPO
26707
26708 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26709 OTOOL=$lt_OTOOL
26710
26711 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26712 OTOOL64=$lt_OTOOL64
26713
26714 # Old archive suffix (normally "a").
26715 libext=$libext
26716
26717 # Shared library suffix (normally ".so").
26718 shrext_cmds=$lt_shrext_cmds
26719
26720 # The commands to extract the exported symbol list from a shared archive.
26721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26722
26723 # Variables whose values should be saved in libtool wrapper scripts and
26724 # restored at link time.
26725 variables_saved_for_relink=$lt_variables_saved_for_relink
26726
26727 # Do we need the "lib" prefix for modules?
26728 need_lib_prefix=$need_lib_prefix
26729
26730 # Do we need a version for libraries?
26731 need_version=$need_version
26732
26733 # Library versioning type.
26734 version_type=$version_type
26735
26736 # Shared library runtime path variable.
26737 runpath_var=$runpath_var
26738
26739 # Shared library path variable.
26740 shlibpath_var=$shlibpath_var
26741
26742 # Is shlibpath searched before the hard-coded library search path?
26743 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26744
26745 # Format of library name prefix.
26746 libname_spec=$lt_libname_spec
26747
26748 # List of archive names.  First name is the real one, the rest are links.
26749 # The last name is the one that the linker finds with -lNAME
26750 library_names_spec=$lt_library_names_spec
26751
26752 # The coded name of the library, if different from the real name.
26753 soname_spec=$lt_soname_spec
26754
26755 # Permission mode override for installation of shared libraries.
26756 install_override_mode=$lt_install_override_mode
26757
26758 # Command to use after installation of a shared archive.
26759 postinstall_cmds=$lt_postinstall_cmds
26760
26761 # Command to use after uninstallation of a shared archive.
26762 postuninstall_cmds=$lt_postuninstall_cmds
26763
26764 # Commands used to finish a libtool library installation in a directory.
26765 finish_cmds=$lt_finish_cmds
26766
26767 # As "finish_cmds", except a single script fragment to be evaled but
26768 # not shown.
26769 finish_eval=$lt_finish_eval
26770
26771 # Whether we should hardcode library paths into libraries.
26772 hardcode_into_libs=$hardcode_into_libs
26773
26774 # Compile-time system search path for libraries.
26775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26776
26777 # Run-time system search path for libraries.
26778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26779
26780 # Whether dlopen is supported.
26781 dlopen_support=$enable_dlopen
26782
26783 # Whether dlopen of programs is supported.
26784 dlopen_self=$enable_dlopen_self
26785
26786 # Whether dlopen of statically linked programs is supported.
26787 dlopen_self_static=$enable_dlopen_self_static
26788
26789 # Commands to strip libraries.
26790 old_striplib=$lt_old_striplib
26791 striplib=$lt_striplib
26792
26793
26794 # The linker used to build libraries.
26795 LD=$lt_LD
26796
26797 # How to create reloadable object files.
26798 reload_flag=$lt_reload_flag
26799 reload_cmds=$lt_reload_cmds
26800
26801 # Commands used to build an old-style archive.
26802 old_archive_cmds=$lt_old_archive_cmds
26803
26804 # A language specific compiler.
26805 CC=$lt_compiler
26806
26807 # Is the compiler the GNU compiler?
26808 with_gcc=$GCC
26809
26810 # Compiler flag to turn off builtin functions.
26811 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26812
26813 # Additional compiler flags for building library objects.
26814 pic_flag=$lt_lt_prog_compiler_pic
26815
26816 # How to pass a linker flag through the compiler.
26817 wl=$lt_lt_prog_compiler_wl
26818
26819 # Compiler flag to prevent dynamic linking.
26820 link_static_flag=$lt_lt_prog_compiler_static
26821
26822 # Does compiler simultaneously support -c and -o options?
26823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26824
26825 # Whether or not to add -lc for building shared libraries.
26826 build_libtool_need_lc=$archive_cmds_need_lc
26827
26828 # Whether or not to disallow shared libs when runtime libs are static.
26829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26830
26831 # Compiler flag to allow reflexive dlopens.
26832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26833
26834 # Compiler flag to generate shared objects directly from archives.
26835 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26836
26837 # Whether the compiler copes with passing no objects directly.
26838 compiler_needs_object=$lt_compiler_needs_object
26839
26840 # Create an old-style archive from a shared archive.
26841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26842
26843 # Create a temporary old-style archive to link instead of a shared archive.
26844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26845
26846 # Commands used to build a shared archive.
26847 archive_cmds=$lt_archive_cmds
26848 archive_expsym_cmds=$lt_archive_expsym_cmds
26849
26850 # Commands used to build a loadable module if different from building
26851 # a shared archive.
26852 module_cmds=$lt_module_cmds
26853 module_expsym_cmds=$lt_module_expsym_cmds
26854
26855 # Whether we are building with GNU ld or not.
26856 with_gnu_ld=$lt_with_gnu_ld
26857
26858 # Flag that allows shared libraries with undefined symbols to be built.
26859 allow_undefined_flag=$lt_allow_undefined_flag
26860
26861 # Flag that enforces no undefined symbols.
26862 no_undefined_flag=$lt_no_undefined_flag
26863
26864 # Flag to hardcode \$libdir into a binary during linking.
26865 # This must work even if \$libdir does not exist
26866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26867
26868 # Whether we need a single "-rpath" flag with a separated argument.
26869 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26870
26871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26872 # DIR into the resulting binary.
26873 hardcode_direct=$hardcode_direct
26874
26875 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26876 # DIR into the resulting binary and the resulting library dependency is
26877 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26878 # library is relocated.
26879 hardcode_direct_absolute=$hardcode_direct_absolute
26880
26881 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26882 # into the resulting binary.
26883 hardcode_minus_L=$hardcode_minus_L
26884
26885 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26886 # into the resulting binary.
26887 hardcode_shlibpath_var=$hardcode_shlibpath_var
26888
26889 # Set to "yes" if building a shared library automatically hardcodes DIR
26890 # into the library and all subsequent libraries and executables linked
26891 # against it.
26892 hardcode_automatic=$hardcode_automatic
26893
26894 # Set to yes if linker adds runtime paths of dependent libraries
26895 # to runtime path list.
26896 inherit_rpath=$inherit_rpath
26897
26898 # Whether libtool must link a program against all its dependency libraries.
26899 link_all_deplibs=$link_all_deplibs
26900
26901 # Set to "yes" if exported symbols are required.
26902 always_export_symbols=$always_export_symbols
26903
26904 # The commands to list exported symbols.
26905 export_symbols_cmds=$lt_export_symbols_cmds
26906
26907 # Symbols that should not be listed in the preloaded symbols.
26908 exclude_expsyms=$lt_exclude_expsyms
26909
26910 # Symbols that must always be exported.
26911 include_expsyms=$lt_include_expsyms
26912
26913 # Commands necessary for linking programs (against libraries) with templates.
26914 prelink_cmds=$lt_prelink_cmds
26915
26916 # Commands necessary for finishing linking programs.
26917 postlink_cmds=$lt_postlink_cmds
26918
26919 # Specify filename containing input files.
26920 file_list_spec=$lt_file_list_spec
26921
26922 # How to hardcode a shared library path into an executable.
26923 hardcode_action=$hardcode_action
26924
26925 # The directories searched by this compiler when creating a shared library.
26926 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26927
26928 # Dependencies to place before and after the objects being linked to
26929 # create a shared library.
26930 predep_objects=$lt_predep_objects
26931 postdep_objects=$lt_postdep_objects
26932 predeps=$lt_predeps
26933 postdeps=$lt_postdeps
26934
26935 # The library search path used internally by the compiler when linking
26936 # a shared library.
26937 compiler_lib_search_path=$lt_compiler_lib_search_path
26938
26939 # ### END LIBTOOL CONFIG
26940
26941 _LT_EOF
26942
26943   case $host_os in
26944   aix3*)
26945     cat <<\_LT_EOF >> "$cfgfile"
26946 # AIX sometimes has problems with the GCC collect2 program.  For some
26947 # reason, if we set the COLLECT_NAMES environment variable, the problems
26948 # vanish in a puff of smoke.
26949 if test "X${COLLECT_NAMES+set}" != Xset; then
26950   COLLECT_NAMES=
26951   export COLLECT_NAMES
26952 fi
26953 _LT_EOF
26954     ;;
26955   esac
26956
26957
26958 ltmain="$ac_aux_dir/ltmain.sh"
26959
26960
26961   # We use sed instead of cat because bash on DJGPP gets confused if
26962   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26963   # text mode, it properly converts lines to CR/LF.  This bash problem
26964   # is reportedly fixed, but why not run on old versions too?
26965   sed '$q' "$ltmain" >> "$cfgfile" \
26966      || (rm -f "$cfgfile"; exit 1)
26967
26968   if test x"$xsi_shell" = xyes; then
26969   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
26970 func_dirname ()\
26971 {\
26972 \    case ${1} in\
26973 \      */*) func_dirname_result="${1%/*}${2}" ;;\
26974 \      *  ) func_dirname_result="${3}" ;;\
26975 \    esac\
26976 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
26977   && mv -f "$cfgfile.tmp" "$cfgfile" \
26978     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26979 test 0 -eq $? || _lt_function_replace_fail=:
26980
26981
26982   sed -e '/^func_basename ()$/,/^} # func_basename /c\
26983 func_basename ()\
26984 {\
26985 \    func_basename_result="${1##*/}"\
26986 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
26987   && mv -f "$cfgfile.tmp" "$cfgfile" \
26988     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
26989 test 0 -eq $? || _lt_function_replace_fail=:
26990
26991
26992   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
26993 func_dirname_and_basename ()\
26994 {\
26995 \    case ${1} in\
26996 \      */*) func_dirname_result="${1%/*}${2}" ;;\
26997 \      *  ) func_dirname_result="${3}" ;;\
26998 \    esac\
26999 \    func_basename_result="${1##*/}"\
27000 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27001   && mv -f "$cfgfile.tmp" "$cfgfile" \
27002     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27003 test 0 -eq $? || _lt_function_replace_fail=:
27004
27005
27006   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27007 func_stripname ()\
27008 {\
27009 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27010 \    # positional parameters, so assign one to ordinary parameter first.\
27011 \    func_stripname_result=${3}\
27012 \    func_stripname_result=${func_stripname_result#"${1}"}\
27013 \    func_stripname_result=${func_stripname_result%"${2}"}\
27014 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27015   && mv -f "$cfgfile.tmp" "$cfgfile" \
27016     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27017 test 0 -eq $? || _lt_function_replace_fail=:
27018
27019
27020   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27021 func_split_long_opt ()\
27022 {\
27023 \    func_split_long_opt_name=${1%%=*}\
27024 \    func_split_long_opt_arg=${1#*=}\
27025 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27026   && mv -f "$cfgfile.tmp" "$cfgfile" \
27027     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27028 test 0 -eq $? || _lt_function_replace_fail=:
27029
27030
27031   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27032 func_split_short_opt ()\
27033 {\
27034 \    func_split_short_opt_arg=${1#??}\
27035 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27036 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27037   && mv -f "$cfgfile.tmp" "$cfgfile" \
27038     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27039 test 0 -eq $? || _lt_function_replace_fail=:
27040
27041
27042   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27043 func_lo2o ()\
27044 {\
27045 \    case ${1} in\
27046 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27047 \      *)    func_lo2o_result=${1} ;;\
27048 \    esac\
27049 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27050   && mv -f "$cfgfile.tmp" "$cfgfile" \
27051     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27052 test 0 -eq $? || _lt_function_replace_fail=:
27053
27054
27055   sed -e '/^func_xform ()$/,/^} # func_xform /c\
27056 func_xform ()\
27057 {\
27058     func_xform_result=${1%.*}.lo\
27059 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27060   && mv -f "$cfgfile.tmp" "$cfgfile" \
27061     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27062 test 0 -eq $? || _lt_function_replace_fail=:
27063
27064
27065   sed -e '/^func_arith ()$/,/^} # func_arith /c\
27066 func_arith ()\
27067 {\
27068     func_arith_result=$(( $* ))\
27069 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27070   && mv -f "$cfgfile.tmp" "$cfgfile" \
27071     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27072 test 0 -eq $? || _lt_function_replace_fail=:
27073
27074
27075   sed -e '/^func_len ()$/,/^} # func_len /c\
27076 func_len ()\
27077 {\
27078     func_len_result=${#1}\
27079 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27080   && mv -f "$cfgfile.tmp" "$cfgfile" \
27081     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27082 test 0 -eq $? || _lt_function_replace_fail=:
27083
27084 fi
27085
27086 if test x"$lt_shell_append" = xyes; then
27087   sed -e '/^func_append ()$/,/^} # func_append /c\
27088 func_append ()\
27089 {\
27090     eval "${1}+=\\${2}"\
27091 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27092   && mv -f "$cfgfile.tmp" "$cfgfile" \
27093     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27094 test 0 -eq $? || _lt_function_replace_fail=:
27095
27096
27097   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27098 func_append_quoted ()\
27099 {\
27100 \    func_quote_for_eval "${2}"\
27101 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27102 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27103   && mv -f "$cfgfile.tmp" "$cfgfile" \
27104     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27105 test 0 -eq $? || _lt_function_replace_fail=:
27106
27107
27108   # Save a `func_append' function call where possible by direct use of '+='
27109   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27110     && mv -f "$cfgfile.tmp" "$cfgfile" \
27111       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27112   test 0 -eq $? || _lt_function_replace_fail=:
27113 else
27114   # Save a `func_append' function call even when '+=' is not available
27115   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27116     && mv -f "$cfgfile.tmp" "$cfgfile" \
27117       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27118   test 0 -eq $? || _lt_function_replace_fail=:
27119 fi
27120
27121 if test x"$_lt_function_replace_fail" = x":"; then
27122   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27123 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27124 fi
27125
27126
27127    mv -f "$cfgfile" "$ofile" ||
27128     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27129   chmod +x "$ofile"
27130
27131
27132     cat <<_LT_EOF >> "$ofile"
27133
27134 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27135
27136 # The linker used to build libraries.
27137 LD=$lt_LD_CXX
27138
27139 # How to create reloadable object files.
27140 reload_flag=$lt_reload_flag_CXX
27141 reload_cmds=$lt_reload_cmds_CXX
27142
27143 # Commands used to build an old-style archive.
27144 old_archive_cmds=$lt_old_archive_cmds_CXX
27145
27146 # A language specific compiler.
27147 CC=$lt_compiler_CXX
27148
27149 # Is the compiler the GNU compiler?
27150 with_gcc=$GCC_CXX
27151
27152 # Compiler flag to turn off builtin functions.
27153 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27154
27155 # Additional compiler flags for building library objects.
27156 pic_flag=$lt_lt_prog_compiler_pic_CXX
27157
27158 # How to pass a linker flag through the compiler.
27159 wl=$lt_lt_prog_compiler_wl_CXX
27160
27161 # Compiler flag to prevent dynamic linking.
27162 link_static_flag=$lt_lt_prog_compiler_static_CXX
27163
27164 # Does compiler simultaneously support -c and -o options?
27165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27166
27167 # Whether or not to add -lc for building shared libraries.
27168 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27169
27170 # Whether or not to disallow shared libs when runtime libs are static.
27171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27172
27173 # Compiler flag to allow reflexive dlopens.
27174 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27175
27176 # Compiler flag to generate shared objects directly from archives.
27177 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27178
27179 # Whether the compiler copes with passing no objects directly.
27180 compiler_needs_object=$lt_compiler_needs_object_CXX
27181
27182 # Create an old-style archive from a shared archive.
27183 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27184
27185 # Create a temporary old-style archive to link instead of a shared archive.
27186 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27187
27188 # Commands used to build a shared archive.
27189 archive_cmds=$lt_archive_cmds_CXX
27190 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27191
27192 # Commands used to build a loadable module if different from building
27193 # a shared archive.
27194 module_cmds=$lt_module_cmds_CXX
27195 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27196
27197 # Whether we are building with GNU ld or not.
27198 with_gnu_ld=$lt_with_gnu_ld_CXX
27199
27200 # Flag that allows shared libraries with undefined symbols to be built.
27201 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27202
27203 # Flag that enforces no undefined symbols.
27204 no_undefined_flag=$lt_no_undefined_flag_CXX
27205
27206 # Flag to hardcode \$libdir into a binary during linking.
27207 # This must work even if \$libdir does not exist
27208 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27209
27210 # Whether we need a single "-rpath" flag with a separated argument.
27211 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27212
27213 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27214 # DIR into the resulting binary.
27215 hardcode_direct=$hardcode_direct_CXX
27216
27217 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27218 # DIR into the resulting binary and the resulting library dependency is
27219 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27220 # library is relocated.
27221 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27222
27223 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27224 # into the resulting binary.
27225 hardcode_minus_L=$hardcode_minus_L_CXX
27226
27227 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27228 # into the resulting binary.
27229 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27230
27231 # Set to "yes" if building a shared library automatically hardcodes DIR
27232 # into the library and all subsequent libraries and executables linked
27233 # against it.
27234 hardcode_automatic=$hardcode_automatic_CXX
27235
27236 # Set to yes if linker adds runtime paths of dependent libraries
27237 # to runtime path list.
27238 inherit_rpath=$inherit_rpath_CXX
27239
27240 # Whether libtool must link a program against all its dependency libraries.
27241 link_all_deplibs=$link_all_deplibs_CXX
27242
27243 # Set to "yes" if exported symbols are required.
27244 always_export_symbols=$always_export_symbols_CXX
27245
27246 # The commands to list exported symbols.
27247 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27248
27249 # Symbols that should not be listed in the preloaded symbols.
27250 exclude_expsyms=$lt_exclude_expsyms_CXX
27251
27252 # Symbols that must always be exported.
27253 include_expsyms=$lt_include_expsyms_CXX
27254
27255 # Commands necessary for linking programs (against libraries) with templates.
27256 prelink_cmds=$lt_prelink_cmds_CXX
27257
27258 # Commands necessary for finishing linking programs.
27259 postlink_cmds=$lt_postlink_cmds_CXX
27260
27261 # Specify filename containing input files.
27262 file_list_spec=$lt_file_list_spec_CXX
27263
27264 # How to hardcode a shared library path into an executable.
27265 hardcode_action=$hardcode_action_CXX
27266
27267 # The directories searched by this compiler when creating a shared library.
27268 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27269
27270 # Dependencies to place before and after the objects being linked to
27271 # create a shared library.
27272 predep_objects=$lt_predep_objects_CXX
27273 postdep_objects=$lt_postdep_objects_CXX
27274 predeps=$lt_predeps_CXX
27275 postdeps=$lt_postdeps_CXX
27276
27277 # The library search path used internally by the compiler when linking
27278 # a shared library.
27279 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27280
27281 # ### END LIBTOOL TAG CONFIG: CXX
27282 _LT_EOF
27283
27284  ;;
27285     "stamp-h":F) echo timestamp > stamp-h ;;
27286
27287   esac
27288 done # for ac_tag
27289
27290
27291 as_fn_exit 0
27292 _ACEOF
27293 ac_clean_files=$ac_clean_files_save
27294
27295 test $ac_write_fail = 0 ||
27296   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27297
27298
27299 # configure is writing to config.log, and then calls config.status.
27300 # config.status does its own redirection, appending to config.log.
27301 # Unfortunately, on DOS this fails, as config.log is still kept open
27302 # by configure, so config.status won't be able to write to it; its
27303 # output is simply discarded.  So we exec the FD to /dev/null,
27304 # effectively closing config.log, so it can be properly (re)opened and
27305 # appended to by config.status.  When coming back to configure, we
27306 # need to make the FD available again.
27307 if test "$no_create" != yes; then
27308   ac_cs_success=:
27309   ac_config_status_args=
27310   test "$silent" = yes &&
27311     ac_config_status_args="$ac_config_status_args --quiet"
27312   exec 5>/dev/null
27313   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27314   exec 5>>config.log
27315   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27316   # would make configure fail if this is the last instruction.
27317   $ac_cs_success || as_fn_exit 1
27318 fi
27319 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27320   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27321 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27322 fi
27323
27324
27325
27326 # force make clean
27327 echo "---"
27328 echo "Running make clean..."
27329 make clean >/dev/null 2>&1
27330 # Touch files that may not be in repository
27331 echo "Touching File..."
27332 touch ctaocrypt/src/fips.c
27333 touch ctaocrypt/src/fips_test.c
27334 echo
27335
27336 # generate user options header
27337 echo "---"
27338 echo "Generating user options header..."
27339 OPTION_FILE="cyassl/options.h"
27340 rm -f $OPTION_FILE
27341
27342 echo "/* cyassl options.h" > $OPTION_FILE
27343 echo " * generated from configure options" >> $OPTION_FILE
27344 echo " *" >> $OPTION_FILE
27345 echo " * Copyright (C) 2006-2014 wolfSSL Inc." >> $OPTION_FILE
27346 echo " *" >> $OPTION_FILE
27347 echo " * This file is part of CyaSSL." >> $OPTION_FILE
27348 echo " *" >> $OPTION_FILE
27349 echo " */" >> $OPTION_FILE
27350
27351 echo "" >> $OPTION_FILE
27352 echo "#pragma once" >> $OPTION_FILE
27353 echo "" >> $OPTION_FILE
27354 echo "#ifdef __cplusplus" >> $OPTION_FILE
27355 echo "extern \"C\" {" >> $OPTION_FILE
27356 echo "#endif" >> $OPTION_FILE
27357 echo "" >> $OPTION_FILE
27358
27359 for option in $OPTION_FLAGS; do
27360     defonly=`echo $option | sed 's/-D//'`
27361     if test "$defonly" != "$option"
27362     then
27363         noequalsign=`echo $defonly | sed 's/=/ /'`
27364         echo "#undef  $noequalsign" >> $OPTION_FILE
27365         echo "#define $noequalsign" >> $OPTION_FILE
27366         echo "" >> $OPTION_FILE
27367     else
27368         echo "option w/o begin -D is $option, not saving to $OPTION_FILE"
27369     fi
27370 done
27371
27372 echo "" >> $OPTION_FILE
27373 echo "#ifdef __cplusplus" >> $OPTION_FILE
27374 echo "}" >> $OPTION_FILE
27375 echo "#endif" >> $OPTION_FILE
27376 echo "" >> $OPTION_FILE
27377 echo
27378
27379 # output config summary
27380 echo "---"
27381 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
27382 echo ""
27383 echo "   * Installation prefix:       $prefix"
27384 echo "   * System type:               $host_vendor-$host_os"
27385 echo "   * Host CPU:                  $host_cpu"
27386 echo "   * C Compiler:                $CC"
27387 echo "   * C Flags:                   $CFLAGS"
27388 echo "   * C++ Compiler:              $CXX"
27389 echo "   * C++ Flags:                 $CXXFLAGS"
27390 echo "   * CPP Flags:                 $CPPFLAGS"
27391 echo "   * LIB Flags:                 $LIB"
27392 echo "   * Debug enabled:             $ax_enable_debug"
27393 echo "   * Warnings as failure:       $ac_cv_warnings_as_errors"
27394 echo "   * make -j:                   $enable_jobserver"
27395 echo "   * VCS checkout:              $ac_cv_vcs_checkout"
27396 echo
27397 echo "   Features "
27398 echo "   * Single threaded:           $ENABLED_SINGLETHREADED"
27399 echo "   * Filesystem:                $ENABLED_FILESYSTEM"
27400 echo "   * OpenSSL Extra API:         $ENABLED_OPENSSLEXTRA"
27401 echo "   * fastmath:                  $ENABLED_FASTMATH"
27402 echo "   * sniffer:                   $ENABLED_SNIFFER"
27403 echo "   * snifftest:                 $ENABLED_SNIFFTEST"
27404 echo "   * ARC4:                      $ENABLED_ARC4"
27405 echo "   * AES:                       $ENABLED_AES"
27406 echo "   * AES-NI:                    $ENABLED_AESNI"
27407 echo "   * AES-GCM:                   $ENABLED_AESGCM"
27408 echo "   * AES-CCM:                   $ENABLED_AESCCM"
27409 echo "   * DES3:                      $ENABLED_DES3"
27410 echo "   * Camellia:                  $ENABLED_CAMELLIA"
27411 echo "   * NULL Cipher:               $ENABLED_NULL_CIPHER"
27412 echo "   * MD5:                       $ENABLED_MD5"
27413 echo "   * RIPEMD:                    $ENABLED_RIPEMD"
27414 echo "   * SHA:                       $ENABLED_SHA"
27415 echo "   * SHA-512:                   $ENABLED_SHA512"
27416 echo "   * BLAKE2:                    $ENABLED_BLAKE2"
27417 echo "   * keygen:                    $ENABLED_KEYGEN"
27418 echo "   * certgen:                   $ENABLED_CERTGEN"
27419 echo "   * certreq:                   $ENABLED_CERTREQ"
27420 echo "   * HC-128:                    $ENABLED_HC128"
27421 echo "   * RABBIT:                    $ENABLED_RABBIT"
27422 echo "   * Hash DRBG:                 $ENABLED_HASHDRBG"
27423 echo "   * PWDBASED:                  $ENABLED_PWDBASED"
27424 echo "   * HKDF:                      $ENABLED_HKDF"
27425 echo "   * MD4:                       $ENABLED_MD4"
27426 echo "   * PSK:                       $ENABLED_PSK"
27427 echo "   * LEANPSK:                   $ENABLED_LEANPSK"
27428 echo "   * RSA:                       $ENABLED_RSA"
27429 echo "   * DSA:                       $ENABLED_DSA"
27430 echo "   * DH:                        $ENABLED_DH"
27431 echo "   * ECC:                       $ENABLED_ECC"
27432 echo "   * FPECC:                     $ENABLED_FPECC"
27433 echo "   * ECC_ENCRYPT:               $ENABLED_ECC_ENCRYPT"
27434 echo "   * ASN:                       $ENABLED_ASN"
27435 echo "   * CODING:                    $ENABLED_CODING"
27436 echo "   * MEMORY:                    $ENABLED_MEMORY"
27437 echo "   * I/O POOL:                  $ENABLED_IOPOOL"
27438 echo "   * ERROR_STRINGS:             $ENABLED_ERROR_STRINGS"
27439 echo "   * DTLS:                      $ENABLED_DTLS"
27440 echo "   * Old TLS Versions:          $ENABLED_OLD_TLS"
27441 echo "   * OCSP:                      $ENABLED_OCSP"
27442 echo "   * CRL:                       $ENABLED_CRL"
27443 echo "   * CRL-MONITOR:               $ENABLED_CRL_MONITOR"
27444 echo "   * Persistent session cache:  $ENABLED_SAVESESSION"
27445 echo "   * Persistent cert    cache:  $ENABLED_SAVECERT"
27446 echo "   * Atomic User Record Layer:  $ENABLED_ATOMICUSER"
27447 echo "   * Public Key Callbacks:      $ENABLED_PKCALLBACKS"
27448 echo "   * NTRU:                      $ENABLED_NTRU"
27449 echo "   * SNI:                       $ENABLED_SNI"
27450 echo "   * Maximum Fragment Length:   $ENABLED_MAX_FRAGMENT"
27451 echo "   * Truncated HMAC:            $ENABLED_TRUNCATED_HMAC"
27452 echo "   * Renegotiation Indication:  $ENABLED_RENEGOTIATION_INDICATION"
27453 echo "   * Supported Elliptic Curves: $ENABLED_SUPPORTED_CURVES"
27454 echo "   * All TLS Extensions:        $ENABLED_TLSX"
27455 echo "   * PKCS#7                     $ENABLED_PKCS7"
27456 echo "   * wolfSCEP                   $ENABLED_WOLFSCEP"
27457 echo "   * Small Stack:               $ENABLED_SMALL_STACK"
27458 echo "   * valgrind unit tests:       $ENABLED_VALGRIND"
27459 echo "   * LIBZ:                      $ENABLED_LIBZ"
27460 echo "   * Examples:                  $ENABLED_EXAMPLES"
27461 echo ""
27462 echo "---"
27463