]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/WolfSSL/configure
Update WolfSSL library to the latest version.
[freertos] / FreeRTOS-Plus / Source / WolfSSL / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for wolfssl 3.6.0.
4 #
5 # Report bugs to <https://github.com/wolfssl/wolfssl/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/wolfssl/wolfssl/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='wolfssl'
592 PACKAGE_TARNAME='wolfssl'
593 PACKAGE_VERSION='3.6.0'
594 PACKAGE_STRING='wolfssl 3.6.0'
595 PACKAGE_BUGREPORT='https://github.com/wolfssl/wolfssl/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 BUILD_PWDBASED_FALSE
658 BUILD_PWDBASED_TRUE
659 USE_VALGRIND_FALSE
660 USE_VALGRIND_TRUE
661 HAVE_VALGRIND
662 BUILD_PKCS7_FALSE
663 BUILD_PKCS7_TRUE
664 BUILD_NTRU_FALSE
665 BUILD_NTRU_TRUE
666 BUILD_CRL_MONITOR_FALSE
667 BUILD_CRL_MONITOR_TRUE
668 BUILD_CRL_FALSE
669 BUILD_CRL_TRUE
670 HAVE_OPENSSL_CMD
671 BUILD_OCSP_FALSE
672 BUILD_OCSP_TRUE
673 BUILD_INLINE_FALSE
674 BUILD_INLINE_TRUE
675 BUILD_CHACHA_FALSE
676 BUILD_CHACHA_TRUE
677 BUILD_POLY1305_FALSE
678 BUILD_POLY1305_TRUE
679 BUILD_FIPS_FALSE
680 BUILD_FIPS_TRUE
681 BUILD_RABBIT_FALSE
682 BUILD_RABBIT_TRUE
683 BUILD_HC128_FALSE
684 BUILD_HC128_TRUE
685 BUILD_MD4_FALSE
686 BUILD_MD4_TRUE
687 BUILD_SHA_FALSE
688 BUILD_SHA_TRUE
689 BUILD_MD5_FALSE
690 BUILD_MD5_TRUE
691 BUILD_RC4_FALSE
692 BUILD_RC4_TRUE
693 BUILD_DES3_FALSE
694 BUILD_DES3_TRUE
695 BUILD_CODING_FALSE
696 BUILD_CODING_TRUE
697 BUILD_AES_FALSE
698 BUILD_AES_TRUE
699 BUILD_ASN_FALSE
700 BUILD_ASN_TRUE
701 BUILD_DH_FALSE
702 BUILD_DH_TRUE
703 BUILD_RSA_FALSE
704 BUILD_RSA_TRUE
705 BUILD_MEMORY_FALSE
706 BUILD_MEMORY_TRUE
707 BUILD_GEMATH_FALSE
708 BUILD_GEMATH_TRUE
709 BUILD_FEMATH_FALSE
710 BUILD_FEMATH_TRUE
711 BUILD_CURVED25519_SMALL_FALSE
712 BUILD_CURVED25519_SMALL_TRUE
713 BUILD_ED25519_FALSE
714 BUILD_ED25519_TRUE
715 BUILD_CURVE25519_FALSE
716 BUILD_CURVE25519_TRUE
717 BUILD_ECC_FALSE
718 BUILD_ECC_TRUE
719 BUILD_DSA_FALSE
720 BUILD_DSA_TRUE
721 BUILD_SHA512_FALSE
722 BUILD_SHA512_TRUE
723 BUILD_BLAKE2_FALSE
724 BUILD_BLAKE2_TRUE
725 BUILD_RIPEMD_FALSE
726 BUILD_RIPEMD_TRUE
727 BUILD_MD2_FALSE
728 BUILD_MD2_TRUE
729 BUILD_CAMELLIA_FALSE
730 BUILD_CAMELLIA_TRUE
731 BUILD_AESNI_FALSE
732 BUILD_AESNI_TRUE
733 BUILD_AESCCM_FALSE
734 BUILD_AESCCM_TRUE
735 BUILD_AESGCM_FALSE
736 BUILD_AESGCM_TRUE
737 BUILD_SNIFFTEST_FALSE
738 BUILD_SNIFFTEST_TRUE
739 BUILD_SNIFFER_FALSE
740 BUILD_SNIFFER_TRUE
741 BUILD_LEANPSK_FALSE
742 BUILD_LEANPSK_TRUE
743 BUILD_IPV6_FALSE
744 BUILD_IPV6_TRUE
745 PTHREAD_CFLAGS
746 PTHREAD_LIBS
747 PTHREAD_CC
748 ax_pthread_config
749 DEBUG_FALSE
750 DEBUG_TRUE
751 MCHECK
752 LIBM
753 am__fastdepCCAS_FALSE
754 am__fastdepCCAS_TRUE
755 CCASDEPMODE
756 CCASFLAGS
757 CCAS
758 HAVE_VISIBILITY
759 CFLAG_VISIBILITY
760 CXXCPP
761 am__fastdepCXX_FALSE
762 am__fastdepCXX_TRUE
763 CXXDEPMODE
764 ac_ct_CXX
765 CXXFLAGS
766 CXX
767 CPP
768 OTOOL64
769 OTOOL
770 LIPO
771 NMEDIT
772 DSYMUTIL
773 MANIFEST_TOOL
774 RANLIB
775 ac_ct_AR
776 AR
777 DLLTOOL
778 OBJDUMP
779 LN_S
780 NM
781 ac_ct_DUMPBIN
782 DUMPBIN
783 LD
784 FGREP
785 EGREP
786 GREP
787 SED
788 am__fastdepCC_FALSE
789 am__fastdepCC_TRUE
790 CCDEPMODE
791 am__nodep
792 AMDEPBACKSLASH
793 AMDEP_FALSE
794 AMDEP_TRUE
795 am__quote
796 am__include
797 DEPDIR
798 OBJEXT
799 EXEEXT
800 ac_ct_CC
801 CPPFLAGS
802 LDFLAGS
803 CFLAGS
804 CC
805 LIBTOOL
806 WOLFSSL_LIBRARY_VERSION
807 AM_BACKSLASH
808 AM_DEFAULT_VERBOSITY
809 AM_DEFAULT_V
810 AM_V
811 am__untar
812 am__tar
813 AMTAR
814 am__leading_dot
815 SET_MAKE
816 AWK
817 mkdir_p
818 MKDIR_P
819 INSTALL_STRIP_PROGRAM
820 STRIP
821 install_sh
822 MAKEINFO
823 AUTOHEADER
824 AUTOMAKE
825 AUTOCONF
826 ACLOCAL
827 VERSION
828 PACKAGE
829 CYGPATH_W
830 am__isrc
831 INSTALL_DATA
832 INSTALL_SCRIPT
833 INSTALL_PROGRAM
834 host_os
835 host_vendor
836 host_cpu
837 host
838 build_os
839 build_vendor
840 build_cpu
841 build
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 localstatedir
862 sharedstatedir
863 sysconfdir
864 datadir
865 datarootdir
866 libexecdir
867 sbindir
868 bindir
869 program_transform_name
870 prefix
871 exec_prefix
872 PACKAGE_URL
873 PACKAGE_BUGREPORT
874 PACKAGE_STRING
875 PACKAGE_VERSION
876 PACKAGE_TARNAME
877 PACKAGE_NAME
878 PATH_SEPARATOR
879 SHELL'
880 ac_subst_files=''
881 ac_user_opts='
882 enable_option_checking
883 enable_silent_rules
884 enable_static
885 enable_shared
886 with_pic
887 enable_fast_install
888 enable_dependency_tracking
889 with_gnu_ld
890 with_sysroot
891 enable_libtool_lock
892 enable_debug
893 enable_singlethreaded
894 enable_dtls
895 enable_opensslextra
896 enable_maxstrength
897 enable_ipv6
898 enable_fortress
899 enable_bump
900 enable_leanpsk
901 enable_bigcache
902 enable_hugecache
903 enable_smallcache
904 enable_savesession
905 enable_savecert
906 enable_atomicuser
907 enable_pkcallbacks
908 enable_sniffer
909 enable_aesgcm
910 enable_aesccm
911 enable_aesni
912 enable_intelasm
913 enable_camellia
914 enable_md2
915 enable_nullcipher
916 enable_ripemd
917 enable_blake2
918 enable_sha512
919 enable_sessioncerts
920 enable_keygen
921 enable_certgen
922 enable_certreq
923 enable_sep
924 enable_hkdf
925 enable_dsa
926 enable_ecc
927 enable_curve25519
928 enable_ed25519
929 enable_fpecc
930 enable_eccencrypt
931 enable_psk
932 enable_errorstrings
933 enable_oldtls
934 enable_stacksize
935 enable_memory
936 enable_rsa
937 enable_dh
938 enable_anon
939 enable_asn
940 enable_aes
941 enable_coding
942 enable_des3
943 enable_arc4
944 enable_md5
945 enable_sha
946 enable_md4
947 enable_webserver
948 enable_hc128
949 enable_rabbit
950 enable_fips
951 enable_poly1305
952 enable_chacha
953 enable_hashdrbg
954 enable_filesystem
955 enable_inline
956 enable_ocsp
957 enable_crl
958 enable_crl_monitor
959 with_ntru
960 enable_sni
961 enable_maxfragment
962 enable_truncatedhmac
963 enable_renegotiation_indication
964 enable_secure_renegotiation
965 enable_supportedcurves
966 enable_session_ticket
967 enable_tlsx
968 enable_pkcs7
969 enable_scep
970 enable_smallstack
971 enable_valgrind
972 enable_testcert
973 enable_iopool
974 enable_certservice
975 enable_pwdbased
976 enable_fastmath
977 enable_fasthugemath
978 enable_examples
979 with_libz
980 with_cavium
981 enable_mcapi
982 enable_jni
983 enable_jobserver
984 '
985       ac_precious_vars='build_alias
986 host_alias
987 target_alias
988 CC
989 CFLAGS
990 LDFLAGS
991 LIBS
992 CPPFLAGS
993 CPP
994 CXX
995 CXXFLAGS
996 CCC
997 CXXCPP
998 CCAS
999 CCASFLAGS'
1000
1001
1002 # Initialize some variables set by options.
1003 ac_init_help=
1004 ac_init_version=false
1005 ac_unrecognized_opts=
1006 ac_unrecognized_sep=
1007 # The variables have the same names as the options, with
1008 # dashes changed to underlines.
1009 cache_file=/dev/null
1010 exec_prefix=NONE
1011 no_create=
1012 no_recursion=
1013 prefix=NONE
1014 program_prefix=NONE
1015 program_suffix=NONE
1016 program_transform_name=s,x,x,
1017 silent=
1018 site=
1019 srcdir=
1020 verbose=
1021 x_includes=NONE
1022 x_libraries=NONE
1023
1024 # Installation directory options.
1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
1026 # and all the variables that are supposed to be based on exec_prefix
1027 # by default will actually change.
1028 # Use braces instead of parens because sh, perl, etc. also accept them.
1029 # (The list follows the same order as the GNU Coding Standards.)
1030 bindir='${exec_prefix}/bin'
1031 sbindir='${exec_prefix}/sbin'
1032 libexecdir='${exec_prefix}/libexec'
1033 datarootdir='${prefix}/share'
1034 datadir='${datarootdir}'
1035 sysconfdir='${prefix}/etc'
1036 sharedstatedir='${prefix}/com'
1037 localstatedir='${prefix}/var'
1038 includedir='${prefix}/include'
1039 oldincludedir='/usr/include'
1040 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1041 infodir='${datarootdir}/info'
1042 htmldir='${docdir}'
1043 dvidir='${docdir}'
1044 pdfdir='${docdir}'
1045 psdir='${docdir}'
1046 libdir='${exec_prefix}/lib'
1047 localedir='${datarootdir}/locale'
1048 mandir='${datarootdir}/man'
1049
1050 ac_prev=
1051 ac_dashdash=
1052 for ac_option
1053 do
1054   # If the previous option needs an argument, assign it.
1055   if test -n "$ac_prev"; then
1056     eval $ac_prev=\$ac_option
1057     ac_prev=
1058     continue
1059   fi
1060
1061   case $ac_option in
1062   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063   *=)   ac_optarg= ;;
1064   *)    ac_optarg=yes ;;
1065   esac
1066
1067   # Accept the important Cygnus configure options, so we can diagnose typos.
1068
1069   case $ac_dashdash$ac_option in
1070   --)
1071     ac_dashdash=yes ;;
1072
1073   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1074     ac_prev=bindir ;;
1075   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076     bindir=$ac_optarg ;;
1077
1078   -build | --build | --buil | --bui | --bu)
1079     ac_prev=build_alias ;;
1080   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081     build_alias=$ac_optarg ;;
1082
1083   -cache-file | --cache-file | --cache-fil | --cache-fi \
1084   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085     ac_prev=cache_file ;;
1086   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088     cache_file=$ac_optarg ;;
1089
1090   --config-cache | -C)
1091     cache_file=config.cache ;;
1092
1093   -datadir | --datadir | --datadi | --datad)
1094     ac_prev=datadir ;;
1095   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096     datadir=$ac_optarg ;;
1097
1098   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099   | --dataroo | --dataro | --datar)
1100     ac_prev=datarootdir ;;
1101   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103     datarootdir=$ac_optarg ;;
1104
1105   -disable-* | --disable-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval enable_$ac_useropt=no ;;
1120
1121   -docdir | --docdir | --docdi | --doc | --do)
1122     ac_prev=docdir ;;
1123   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1124     docdir=$ac_optarg ;;
1125
1126   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1127     ac_prev=dvidir ;;
1128   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1129     dvidir=$ac_optarg ;;
1130
1131   -enable-* | --enable-*)
1132     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135       as_fn_error $? "invalid feature name: $ac_useropt"
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "enable_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval enable_$ac_useropt=\$ac_optarg ;;
1146
1147   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1148   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1149   | --exec | --exe | --ex)
1150     ac_prev=exec_prefix ;;
1151   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1152   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1153   | --exec=* | --exe=* | --ex=*)
1154     exec_prefix=$ac_optarg ;;
1155
1156   -gas | --gas | --ga | --g)
1157     # Obsolete; use --with-gas.
1158     with_gas=yes ;;
1159
1160   -help | --help | --hel | --he | -h)
1161     ac_init_help=long ;;
1162   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1163     ac_init_help=recursive ;;
1164   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1165     ac_init_help=short ;;
1166
1167   -host | --host | --hos | --ho)
1168     ac_prev=host_alias ;;
1169   -host=* | --host=* | --hos=* | --ho=*)
1170     host_alias=$ac_optarg ;;
1171
1172   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1173     ac_prev=htmldir ;;
1174   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1175   | --ht=*)
1176     htmldir=$ac_optarg ;;
1177
1178   -includedir | --includedir | --includedi | --included | --include \
1179   | --includ | --inclu | --incl | --inc)
1180     ac_prev=includedir ;;
1181   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1182   | --includ=* | --inclu=* | --incl=* | --inc=*)
1183     includedir=$ac_optarg ;;
1184
1185   -infodir | --infodir | --infodi | --infod | --info | --inf)
1186     ac_prev=infodir ;;
1187   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1188     infodir=$ac_optarg ;;
1189
1190   -libdir | --libdir | --libdi | --libd)
1191     ac_prev=libdir ;;
1192   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1193     libdir=$ac_optarg ;;
1194
1195   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1196   | --libexe | --libex | --libe)
1197     ac_prev=libexecdir ;;
1198   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1199   | --libexe=* | --libex=* | --libe=*)
1200     libexecdir=$ac_optarg ;;
1201
1202   -localedir | --localedir | --localedi | --localed | --locale)
1203     ac_prev=localedir ;;
1204   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1205     localedir=$ac_optarg ;;
1206
1207   -localstatedir | --localstatedir | --localstatedi | --localstated \
1208   | --localstate | --localstat | --localsta | --localst | --locals)
1209     ac_prev=localstatedir ;;
1210   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1211   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1212     localstatedir=$ac_optarg ;;
1213
1214   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1215     ac_prev=mandir ;;
1216   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1217     mandir=$ac_optarg ;;
1218
1219   -nfp | --nfp | --nf)
1220     # Obsolete; use --without-fp.
1221     with_fp=no ;;
1222
1223   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1224   | --no-cr | --no-c | -n)
1225     no_create=yes ;;
1226
1227   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1228   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1229     no_recursion=yes ;;
1230
1231   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1232   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1233   | --oldin | --oldi | --old | --ol | --o)
1234     ac_prev=oldincludedir ;;
1235   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1236   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1237   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1238     oldincludedir=$ac_optarg ;;
1239
1240   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1241     ac_prev=prefix ;;
1242   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1243     prefix=$ac_optarg ;;
1244
1245   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1246   | --program-pre | --program-pr | --program-p)
1247     ac_prev=program_prefix ;;
1248   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1249   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1250     program_prefix=$ac_optarg ;;
1251
1252   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1253   | --program-suf | --program-su | --program-s)
1254     ac_prev=program_suffix ;;
1255   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1256   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1257     program_suffix=$ac_optarg ;;
1258
1259   -program-transform-name | --program-transform-name \
1260   | --program-transform-nam | --program-transform-na \
1261   | --program-transform-n | --program-transform- \
1262   | --program-transform | --program-transfor \
1263   | --program-transfo | --program-transf \
1264   | --program-trans | --program-tran \
1265   | --progr-tra | --program-tr | --program-t)
1266     ac_prev=program_transform_name ;;
1267   -program-transform-name=* | --program-transform-name=* \
1268   | --program-transform-nam=* | --program-transform-na=* \
1269   | --program-transform-n=* | --program-transform-=* \
1270   | --program-transform=* | --program-transfor=* \
1271   | --program-transfo=* | --program-transf=* \
1272   | --program-trans=* | --program-tran=* \
1273   | --progr-tra=* | --program-tr=* | --program-t=*)
1274     program_transform_name=$ac_optarg ;;
1275
1276   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1277     ac_prev=pdfdir ;;
1278   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1279     pdfdir=$ac_optarg ;;
1280
1281   -psdir | --psdir | --psdi | --psd | --ps)
1282     ac_prev=psdir ;;
1283   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1284     psdir=$ac_optarg ;;
1285
1286   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287   | -silent | --silent | --silen | --sile | --sil)
1288     silent=yes ;;
1289
1290   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291     ac_prev=sbindir ;;
1292   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293   | --sbi=* | --sb=*)
1294     sbindir=$ac_optarg ;;
1295
1296   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298   | --sharedst | --shareds | --shared | --share | --shar \
1299   | --sha | --sh)
1300     ac_prev=sharedstatedir ;;
1301   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304   | --sha=* | --sh=*)
1305     sharedstatedir=$ac_optarg ;;
1306
1307   -site | --site | --sit)
1308     ac_prev=site ;;
1309   -site=* | --site=* | --sit=*)
1310     site=$ac_optarg ;;
1311
1312   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313     ac_prev=srcdir ;;
1314   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315     srcdir=$ac_optarg ;;
1316
1317   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318   | --syscon | --sysco | --sysc | --sys | --sy)
1319     ac_prev=sysconfdir ;;
1320   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322     sysconfdir=$ac_optarg ;;
1323
1324   -target | --target | --targe | --targ | --tar | --ta | --t)
1325     ac_prev=target_alias ;;
1326   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327     target_alias=$ac_optarg ;;
1328
1329   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330     verbose=yes ;;
1331
1332   -version | --version | --versio | --versi | --vers | -V)
1333     ac_init_version=: ;;
1334
1335   -with-* | --with-*)
1336     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337     # Reject names that are not valid shell variable names.
1338     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339       as_fn_error $? "invalid package name: $ac_useropt"
1340     ac_useropt_orig=$ac_useropt
1341     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342     case $ac_user_opts in
1343       *"
1344 "with_$ac_useropt"
1345 "*) ;;
1346       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347          ac_unrecognized_sep=', ';;
1348     esac
1349     eval with_$ac_useropt=\$ac_optarg ;;
1350
1351   -without-* | --without-*)
1352     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353     # Reject names that are not valid shell variable names.
1354     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355       as_fn_error $? "invalid package name: $ac_useropt"
1356     ac_useropt_orig=$ac_useropt
1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358     case $ac_user_opts in
1359       *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363          ac_unrecognized_sep=', ';;
1364     esac
1365     eval with_$ac_useropt=no ;;
1366
1367   --x)
1368     # Obsolete; use --with-x.
1369     with_x=yes ;;
1370
1371   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372   | --x-incl | --x-inc | --x-in | --x-i)
1373     ac_prev=x_includes ;;
1374   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376     x_includes=$ac_optarg ;;
1377
1378   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380     ac_prev=x_libraries ;;
1381   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383     x_libraries=$ac_optarg ;;
1384
1385   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1387     ;;
1388
1389   *=*)
1390     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391     # Reject names that are not valid shell variable names.
1392     case $ac_envvar in #(
1393       '' | [0-9]* | *[!_$as_cr_alnum]* )
1394       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1395     esac
1396     eval $ac_envvar=\$ac_optarg
1397     export $ac_envvar ;;
1398
1399   *)
1400     # FIXME: should be removed in autoconf 3.0.
1401     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1405     ;;
1406
1407   esac
1408 done
1409
1410 if test -n "$ac_prev"; then
1411   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412   as_fn_error $? "missing argument to $ac_option"
1413 fi
1414
1415 if test -n "$ac_unrecognized_opts"; then
1416   case $enable_option_checking in
1417     no) ;;
1418     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420   esac
1421 fi
1422
1423 # Check all directory arguments for consistency.
1424 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425                 datadir sysconfdir sharedstatedir localstatedir includedir \
1426                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427                 libdir localedir mandir
1428 do
1429   eval ac_val=\$$ac_var
1430   # Remove trailing slashes.
1431   case $ac_val in
1432     */ )
1433       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434       eval $ac_var=\$ac_val;;
1435   esac
1436   # Be sure to have absolute directory names.
1437   case $ac_val in
1438     [\\/$]* | ?:[\\/]* )  continue;;
1439     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1440   esac
1441   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1442 done
1443
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1447 build=$build_alias
1448 host=$host_alias
1449 target=$target_alias
1450
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453   if test "x$build_alias" = x; then
1454     cross_compiling=maybe
1455   elif test "x$build_alias" != "x$host_alias"; then
1456     cross_compiling=yes
1457   fi
1458 fi
1459
1460 ac_tool_prefix=
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462
1463 test "$silent" = yes && exec 6>/dev/null
1464
1465
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469   as_fn_error $? "working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471   as_fn_error $? "pwd does not report name of working directory"
1472
1473
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476   ac_srcdir_defaulted=yes
1477   # Try the directory containing this script, then the parent directory.
1478   ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480          X"$as_myself" : 'X\(//\)[^/]' \| \
1481          X"$as_myself" : 'X\(//\)$' \| \
1482          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485             s//\1/
1486             q
1487           }
1488           /^X\(\/\/\)[^/].*/{
1489             s//\1/
1490             q
1491           }
1492           /^X\(\/\/\)$/{
1493             s//\1/
1494             q
1495           }
1496           /^X\(\/\).*/{
1497             s//\1/
1498             q
1499           }
1500           s/.*/./; q'`
1501   srcdir=$ac_confdir
1502   if test ! -r "$srcdir/$ac_unique_file"; then
1503     srcdir=..
1504   fi
1505 else
1506   ac_srcdir_defaulted=no
1507 fi
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1511 fi
1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 ac_abs_confdir=`(
1514         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1515         pwd)`
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518   srcdir=.
1519 fi
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1523 case $srcdir in
1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 esac
1526 for ac_var in $ac_precious_vars; do
1527   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528   eval ac_env_${ac_var}_value=\$${ac_var}
1529   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1531 done
1532
1533 #
1534 # Report the --help message.
1535 #
1536 if test "$ac_init_help" = "long"; then
1537   # Omit some internal or obsolete options to make the list less imposing.
1538   # This message is too long to be a string in the A/UX 3.1 sh.
1539   cat <<_ACEOF
1540 \`configure' configures wolfssl 3.6.0 to adapt to many kinds of systems.
1541
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1543
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE.  See below for descriptions of some of the useful variables.
1546
1547 Defaults for the options are specified in brackets.
1548
1549 Configuration:
1550   -h, --help              display this help and exit
1551       --help=short        display options specific to this package
1552       --help=recursive    display the short help of all the included packages
1553   -V, --version           display version information and exit
1554   -q, --quiet, --silent   do not print \`checking ...' messages
1555       --cache-file=FILE   cache test results in FILE [disabled]
1556   -C, --config-cache      alias for \`--cache-file=config.cache'
1557   -n, --no-create         do not create output files
1558       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1559
1560 Installation directories:
1561   --prefix=PREFIX         install architecture-independent files in PREFIX
1562                           [$ac_default_prefix]
1563   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1564                           [PREFIX]
1565
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1570
1571 For better control, use the options below.
1572
1573 Fine tuning of the installation directories:
1574   --bindir=DIR            user executables [EPREFIX/bin]
1575   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1576   --libexecdir=DIR        program executables [EPREFIX/libexec]
1577   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1578   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1579   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1580   --libdir=DIR            object code libraries [EPREFIX/lib]
1581   --includedir=DIR        C header files [PREFIX/include]
1582   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1583   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1584   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1585   --infodir=DIR           info documentation [DATAROOTDIR/info]
1586   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1587   --mandir=DIR            man documentation [DATAROOTDIR/man]
1588   --docdir=DIR            documentation root [DATAROOTDIR/doc/wolfssl]
1589   --htmldir=DIR           html documentation [DOCDIR]
1590   --dvidir=DIR            dvi documentation [DOCDIR]
1591   --pdfdir=DIR            pdf documentation [DOCDIR]
1592   --psdir=DIR             ps documentation [DOCDIR]
1593 _ACEOF
1594
1595   cat <<\_ACEOF
1596
1597 Program names:
1598   --program-prefix=PREFIX            prepend PREFIX to installed program names
1599   --program-suffix=SUFFIX            append SUFFIX to installed program names
1600   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1601
1602 System types:
1603   --build=BUILD     configure for building on BUILD [guessed]
1604   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1605 _ACEOF
1606 fi
1607
1608 if test -n "$ac_init_help"; then
1609   case $ac_init_help in
1610      short | recursive ) echo "Configuration of wolfssl 3.6.0:";;
1611    esac
1612   cat <<\_ACEOF
1613
1614 Optional Features:
1615   --disable-option-checking  ignore unrecognized --enable/--with options
1616   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1617   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1618   --enable-silent-rules   less verbose build output (undo: "make V=1")
1619   --disable-silent-rules  verbose build output (undo: "make V=0")
1620   --enable-static[=PKGS]  build static libraries [default=no]
1621   --enable-shared[=PKGS]  build shared libraries [default=yes]
1622   --enable-fast-install[=PKGS]
1623                           optimize for fast installation [default=yes]
1624   --enable-dependency-tracking
1625                           do not reject slow dependency extractors
1626   --disable-dependency-tracking
1627                           speeds up one-time build
1628   --disable-libtool-lock  avoid locking (might break parallel builds)
1629   --enable-debug          Add debug code/turns off optimizations (yes|no)
1630                           [default=no]
1631   --enable-singlethreaded Enable wolfSSL single threaded (default: disabled)
1632   --enable-dtls           Enable wolfSSL DTLS (default: disabled)
1633   --enable-opensslextra   Enable extra OpenSSL API, size+ (default: disabled)
1634   --enable-maxstrength    Enable Max Strengh build, allows TLSv1.2-AEAD-PFS
1635                           ciphers only (default: disabled)
1636   --enable-ipv6           Enable testing of IPV6 (default: disabled)
1637   --enable-fortress       Enable SSL fortress build (default: disabled)
1638   --enable-bump           Enable SSL Bump build (default: disabled)
1639   --enable-leanpsk        Enable Lean PSK build (default: disabled)
1640   --enable-bigcache       Enable big session cache (default: disabled)
1641   --enable-hugecache      Enable huge session cache (default: disabled)
1642   --enable-smallcache     Enable small session cache (default: disabled)
1643   --enable-savesession    Enable persistent session cache (default: disabled)
1644   --enable-savecert       Enable persistent cert cache (default: disabled)
1645   --enable-atomicuser     Enable Atomic User Record Layer (default: disabled)
1646   --enable-pkcallbacks    Enable Public Key Callbacks (default: disabled)
1647   --enable-sniffer        Enable wolfSSL sniffer support (default: disabled)
1648   --enable-aesgcm         Enable wolfSSL AES-GCM support (default: enabled)
1649   --enable-aesccm         Enable wolfSSL AES-CCM support (default: disabled)
1650   --enable-aesni          Enable wolfSSL AES-NI support (default: disabled)
1651   --enable-intelasm       Enable All Intel ASM speedups (default: disabled)
1652   --enable-camellia       Enable wolfSSL Camellia support (default: disabled)
1653   --enable-md2            Enable wolfSSL MD2 support (default: disabled)
1654   --enable-nullcipher     Enable wolfSSL NULL cipher support (default: disabled)
1655   --enable-ripemd         Enable wolfSSL RIPEMD-160 support (default: disabled)
1656   --enable-blake2         Enable wolfSSL BLAKE2 support (default: disabled)
1657   --enable-sha512         Enable wolfSSL SHA-512 support (default: enabled on
1658                           x86_64)
1659   --enable-sessioncerts   Enable session cert storing (default: disabled)
1660   --enable-keygen         Enable key generation (default: disabled)
1661   --enable-certgen        Enable cert generation (default: disabled)
1662   --enable-certreq        Enable cert request generation (default: disabled)
1663   --enable-sep            Enable sep extensions (default: disabled)
1664   --enable-hkdf           Enable HKDF (HMAC-KDF) support (default: disabled)
1665   --enable-dsa            Enable DSA (default: disabled)
1666   --enable-ecc            Enable ECC (default: enabled on x86_64)
1667   --enable-curve25519     Enable Curve25519 (default: disabled)
1668   --enable-ed25519        Enable ED25519 (default: disabled)
1669   --enable-fpecc          Enable Fixed Point cache ECC (default: disabled)
1670   --enable-eccencrypt     Enable ECC encrypt (default: disabled)
1671   --enable-psk            Enable PSK (default: disabled)
1672   --enable-errorstrings   Enable error strings table (default: enabled)
1673   --enable-oldtls         Enable old TLS versions < 1.2 (default: enabled)
1674   --enable-stacksize      Enable stack size info on examples (default: disabled)
1675   --enable-memory         Enable memory callbacks (default: enabled)
1676   --enable-rsa            Enable RSA (default: enabled)
1677   --enable-dh             Enable DH (default: enabled)
1678   --enable-anon           Enable Anonymous (default: disabled)
1679   --enable-asn            Enable ASN (default: enabled)
1680   --enable-aes            Enable AES (default: enabled)
1681   --enable-coding         Enable Coding base 16/64 (default: enabled)
1682   --enable-des3           Enable DES3 (default: enabled)
1683   --enable-arc4           Enable ARC4 (default: disabled)
1684   --enable-md5            Enable MD5 (default: enabled)
1685   --enable-sha            Enable SHA (default: enabled)
1686   --enable-md4            Enable MD4 (default: disabled)
1687   --enable-webserver      Enable Web Server (default: disabled)
1688   --enable-hc128          Enable HC-128 (default: disabled)
1689   --enable-rabbit         Enable RABBIT (default: disabled)
1690   --enable-fips           Enable FIPS 140-2, Will NOT work w/o FIPS license
1691                           (default: disabled)
1692   --enable-poly1305       Enable wolfSSL POLY1305 support (default: enabled)
1693   --enable-chacha         Enable CHACHA (default: enabled)
1694   --enable-hashdrbg       Enable Hash DRBG support (default: enabled)
1695   --enable-filesystem     Enable Filesystem support (default: enabled)
1696   --enable-inline         Enable inline functions (default: enabled)
1697   --enable-ocsp           Enable OCSP (default: disabled)
1698   --enable-crl            Enable CRL (default: disabled)
1699   --enable-crl-monitor    Enable CRL Monitor (default: disabled)
1700   --enable-sni            Enable SNI (default: disabled)
1701   --enable-maxfragment    Enable Maximum Fragment Length (default: disabled)
1702   --enable-truncatedhmac  Enable Truncated HMAC (default: disabled)
1703   --enable-renegotiation-indication
1704                           Enable Renegotiation Indication (default: disabled)
1705   --enable-secure-renegotiation
1706                           Enable Secure Renegotiation (default: disabled)
1707   --enable-supportedcurves
1708                           Enable Supported Elliptic Curves (default: disabled)
1709   --enable-session-ticket Enable Session Ticket (default: disabled)
1710   --enable-tlsx           Enable all TLS Extensions (default: disabled)
1711   --enable-pkcs7          Enable PKCS7 (default: disabled)
1712   --enable-scep           Enable wolfSCEP (default: disabled)
1713   --enable-smallstack     Enable Small Stack Usage (default: disabled)
1714   --enable-valgrind       Enable valgrind for unit tests (default: disabled)
1715   --enable-testcert       Enable Test Cert (default: disabled)
1716   --enable-iopool         Enable I/O Pool example (default: disabled)
1717   --enable-certservice    Enable cert service (default: disabled)
1718   --enable-pwdbased       Enable PWDBASED (default: disabled)
1719   --enable-fastmath       Enable fast math ops (default: enabled on x86_64)
1720   --enable-fasthugemath   Enable fast math + huge code (default: disabled)
1721   --enable-examples       Enable Examples  (default: enabled)
1722   --enable-mcapi          Enable Microchip API (default: disabled)
1723   --enable-jni            Enable wolfSSL JNI (default: disabled)
1724   --enable-jobserver[=no/yes/#] default=yes
1725                         Enable up to # make jobs
1726                         yes: enable one more than CPU count
1727
1728
1729 Optional Packages:
1730   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1731   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1732   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1733                           both]
1734   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1735   --with-sysroot=DIR Search for dependent libraries within DIR
1736                         (or the compiler's sysroot if not specified).
1737   --with-ntru=PATH        Path to NTRU install (default /usr/)
1738   --with-libz=PATH        PATH to libz install (default /usr/)
1739   --with-cavium=PATH      PATH to cavium/software dir
1740
1741 Some influential environment variables:
1742   CC          C compiler command
1743   CFLAGS      C compiler flags
1744   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1745               nonstandard directory <lib dir>
1746   LIBS        libraries to pass to the linker, e.g. -l<library>
1747   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1748               you have headers in a nonstandard directory <include dir>
1749   CPP         C preprocessor
1750   CXX         C++ compiler command
1751   CXXFLAGS    C++ compiler flags
1752   CXXCPP      C++ preprocessor
1753   CCAS        assembler compiler command (defaults to CC)
1754   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1755
1756 Use these variables to override the choices made by `configure' or to help
1757 it to find libraries and programs with nonstandard names/locations.
1758
1759 Report bugs to <https://github.com/wolfssl/wolfssl/issues>.
1760 wolfssl home page: <http://www.wolfssl.com>.
1761 _ACEOF
1762 ac_status=$?
1763 fi
1764
1765 if test "$ac_init_help" = "recursive"; then
1766   # If there are subdirs, report their specific --help.
1767   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1768     test -d "$ac_dir" ||
1769       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1770       continue
1771     ac_builddir=.
1772
1773 case "$ac_dir" in
1774 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1775 *)
1776   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1777   # A ".." for each directory in $ac_dir_suffix.
1778   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1779   case $ac_top_builddir_sub in
1780   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1782   esac ;;
1783 esac
1784 ac_abs_top_builddir=$ac_pwd
1785 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1786 # for backward compatibility:
1787 ac_top_builddir=$ac_top_build_prefix
1788
1789 case $srcdir in
1790   .)  # We are building in place.
1791     ac_srcdir=.
1792     ac_top_srcdir=$ac_top_builddir_sub
1793     ac_abs_top_srcdir=$ac_pwd ;;
1794   [\\/]* | ?:[\\/]* )  # Absolute name.
1795     ac_srcdir=$srcdir$ac_dir_suffix;
1796     ac_top_srcdir=$srcdir
1797     ac_abs_top_srcdir=$srcdir ;;
1798   *) # Relative name.
1799     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1800     ac_top_srcdir=$ac_top_build_prefix$srcdir
1801     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1802 esac
1803 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1804
1805     cd "$ac_dir" || { ac_status=$?; continue; }
1806     # Check for guested configure.
1807     if test -f "$ac_srcdir/configure.gnu"; then
1808       echo &&
1809       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1810     elif test -f "$ac_srcdir/configure"; then
1811       echo &&
1812       $SHELL "$ac_srcdir/configure" --help=recursive
1813     else
1814       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1815     fi || ac_status=$?
1816     cd "$ac_pwd" || { ac_status=$?; break; }
1817   done
1818 fi
1819
1820 test -n "$ac_init_help" && exit $ac_status
1821 if $ac_init_version; then
1822   cat <<\_ACEOF
1823 wolfssl configure 3.6.0
1824 generated by GNU Autoconf 2.69
1825
1826 Copyright (C) 2012 Free Software Foundation, Inc.
1827 This configure script is free software; the Free Software Foundation
1828 gives unlimited permission to copy, distribute and modify it.
1829 _ACEOF
1830   exit
1831 fi
1832
1833 ## ------------------------ ##
1834 ## Autoconf initialization. ##
1835 ## ------------------------ ##
1836
1837 # ac_fn_c_try_compile LINENO
1838 # --------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_compile ()
1841 {
1842   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843   rm -f conftest.$ac_objext
1844   if { { ac_try="$ac_compile"
1845 case "(($ac_try" in
1846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847   *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851   (eval "$ac_compile") 2>conftest.err
1852   ac_status=$?
1853   if test -s conftest.err; then
1854     grep -v '^ *+' conftest.err >conftest.er1
1855     cat conftest.er1 >&5
1856     mv -f conftest.er1 conftest.err
1857   fi
1858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859   test $ac_status = 0; } && {
1860          test -z "$ac_c_werror_flag" ||
1861          test ! -s conftest.err
1862        } && test -s conftest.$ac_objext; then :
1863   ac_retval=0
1864 else
1865   $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868         ac_retval=1
1869 fi
1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871   as_fn_set_status $ac_retval
1872
1873 } # ac_fn_c_try_compile
1874
1875 # ac_fn_c_try_link LINENO
1876 # -----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_link ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   rm -f conftest.$ac_objext conftest$ac_exeext
1882   if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885   *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889   (eval "$ac_link") 2>conftest.err
1890   ac_status=$?
1891   if test -s conftest.err; then
1892     grep -v '^ *+' conftest.err >conftest.er1
1893     cat conftest.er1 >&5
1894     mv -f conftest.er1 conftest.err
1895   fi
1896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897   test $ac_status = 0; } && {
1898          test -z "$ac_c_werror_flag" ||
1899          test ! -s conftest.err
1900        } && test -s conftest$ac_exeext && {
1901          test "$cross_compiling" = yes ||
1902          test -x conftest$ac_exeext
1903        }; then :
1904   ac_retval=0
1905 else
1906   $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909         ac_retval=1
1910 fi
1911   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913   # interfere with the next link command; also delete a directory that is
1914   # left behind by Apple's compiler.  We do this before executing the actions.
1915   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917   as_fn_set_status $ac_retval
1918
1919 } # ac_fn_c_try_link
1920
1921 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1922 # -------------------------------------------------------
1923 # Tests whether HEADER exists and can be compiled using the include files in
1924 # INCLUDES, setting the cache variable VAR accordingly.
1925 ac_fn_c_check_header_compile ()
1926 {
1927   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931   $as_echo_n "(cached) " >&6
1932 else
1933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h.  */
1935 $4
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939   eval "$3=yes"
1940 else
1941   eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_header_compile
1951
1952 # ac_fn_c_try_cpp LINENO
1953 # ----------------------
1954 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_c_try_cpp ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   if { { ac_try="$ac_cpp conftest.$ac_ext"
1959 case "(($ac_try" in
1960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961   *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1966   ac_status=$?
1967   if test -s conftest.err; then
1968     grep -v '^ *+' conftest.err >conftest.er1
1969     cat conftest.er1 >&5
1970     mv -f conftest.er1 conftest.err
1971   fi
1972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973   test $ac_status = 0; } > conftest.i && {
1974          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1975          test ! -s conftest.err
1976        }; then :
1977   ac_retval=0
1978 else
1979   $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982     ac_retval=1
1983 fi
1984   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985   as_fn_set_status $ac_retval
1986
1987 } # ac_fn_c_try_cpp
1988
1989 # ac_fn_c_try_run LINENO
1990 # ----------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1992 # that executables *can* be run.
1993 ac_fn_c_try_run ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   if { { ac_try="$ac_link"
1997 case "(($ac_try" in
1998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999   *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003   (eval "$ac_link") 2>&5
2004   ac_status=$?
2005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2007   { { case "(($ac_try" in
2008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009   *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013   (eval "$ac_try") 2>&5
2014   ac_status=$?
2015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016   test $ac_status = 0; }; }; then :
2017   ac_retval=0
2018 else
2019   $as_echo "$as_me: program exited with status $ac_status" >&5
2020        $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023        ac_retval=$ac_status
2024 fi
2025   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027   as_fn_set_status $ac_retval
2028
2029 } # ac_fn_c_try_run
2030
2031 # ac_fn_c_check_func LINENO FUNC VAR
2032 # ----------------------------------
2033 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2034 ac_fn_c_check_func ()
2035 {
2036   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040   $as_echo_n "(cached) " >&6
2041 else
2042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h.  */
2044 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2046 #define $2 innocuous_$2
2047
2048 /* System header to define __stub macros and hopefully few prototypes,
2049     which can conflict with char $2 (); below.
2050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2051     <limits.h> exists even on freestanding compilers.  */
2052
2053 #ifdef __STDC__
2054 # include <limits.h>
2055 #else
2056 # include <assert.h>
2057 #endif
2058
2059 #undef $2
2060
2061 /* Override any GCC internal prototype to avoid an error.
2062    Use char because int might match the return type of a GCC
2063    builtin and then its argument prototype would still apply.  */
2064 #ifdef __cplusplus
2065 extern "C"
2066 #endif
2067 char $2 ();
2068 /* The GNU C library defines this for functions which it implements
2069     to always fail with ENOSYS.  Some functions are actually named
2070     something starting with __ and the normal name is an alias.  */
2071 #if defined __stub_$2 || defined __stub___$2
2072 choke me
2073 #endif
2074
2075 int
2076 main ()
2077 {
2078 return $2 ();
2079   ;
2080   return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_link "$LINENO"; then :
2084   eval "$3=yes"
2085 else
2086   eval "$3=no"
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext \
2089     conftest$ac_exeext conftest.$ac_ext
2090 fi
2091 eval ac_res=\$$3
2092                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2094   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095
2096 } # ac_fn_c_check_func
2097
2098 # ac_fn_cxx_try_compile LINENO
2099 # ----------------------------
2100 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_cxx_try_compile ()
2102 {
2103   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104   rm -f conftest.$ac_objext
2105   if { { ac_try="$ac_compile"
2106 case "(($ac_try" in
2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108   *) ac_try_echo=$ac_try;;
2109 esac
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112   (eval "$ac_compile") 2>conftest.err
2113   ac_status=$?
2114   if test -s conftest.err; then
2115     grep -v '^ *+' conftest.err >conftest.er1
2116     cat conftest.er1 >&5
2117     mv -f conftest.er1 conftest.err
2118   fi
2119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120   test $ac_status = 0; } && {
2121          test -z "$ac_cxx_werror_flag" ||
2122          test ! -s conftest.err
2123        } && test -s conftest.$ac_objext; then :
2124   ac_retval=0
2125 else
2126   $as_echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129         ac_retval=1
2130 fi
2131   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132   as_fn_set_status $ac_retval
2133
2134 } # ac_fn_cxx_try_compile
2135
2136 # ac_fn_cxx_try_cpp LINENO
2137 # ------------------------
2138 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2139 ac_fn_cxx_try_cpp ()
2140 {
2141   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142   if { { ac_try="$ac_cpp conftest.$ac_ext"
2143 case "(($ac_try" in
2144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145   *) ac_try_echo=$ac_try;;
2146 esac
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2150   ac_status=$?
2151   if test -s conftest.err; then
2152     grep -v '^ *+' conftest.err >conftest.er1
2153     cat conftest.er1 >&5
2154     mv -f conftest.er1 conftest.err
2155   fi
2156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157   test $ac_status = 0; } > conftest.i && {
2158          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2159          test ! -s conftest.err
2160        }; then :
2161   ac_retval=0
2162 else
2163   $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166     ac_retval=1
2167 fi
2168   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169   as_fn_set_status $ac_retval
2170
2171 } # ac_fn_cxx_try_cpp
2172
2173 # ac_fn_cxx_try_link LINENO
2174 # -------------------------
2175 # Try to link conftest.$ac_ext, and return whether this succeeded.
2176 ac_fn_cxx_try_link ()
2177 {
2178   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179   rm -f conftest.$ac_objext conftest$ac_exeext
2180   if { { ac_try="$ac_link"
2181 case "(($ac_try" in
2182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183   *) ac_try_echo=$ac_try;;
2184 esac
2185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 $as_echo "$ac_try_echo"; } >&5
2187   (eval "$ac_link") 2>conftest.err
2188   ac_status=$?
2189   if test -s conftest.err; then
2190     grep -v '^ *+' conftest.err >conftest.er1
2191     cat conftest.er1 >&5
2192     mv -f conftest.er1 conftest.err
2193   fi
2194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195   test $ac_status = 0; } && {
2196          test -z "$ac_cxx_werror_flag" ||
2197          test ! -s conftest.err
2198        } && test -s conftest$ac_exeext && {
2199          test "$cross_compiling" = yes ||
2200          test -x conftest$ac_exeext
2201        }; then :
2202   ac_retval=0
2203 else
2204   $as_echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2206
2207         ac_retval=1
2208 fi
2209   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2210   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2211   # interfere with the next link command; also delete a directory that is
2212   # left behind by Apple's compiler.  We do this before executing the actions.
2213   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2214   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215   as_fn_set_status $ac_retval
2216
2217 } # ac_fn_cxx_try_link
2218
2219 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2220 # -------------------------------------------------------
2221 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2222 # the include files in INCLUDES and setting the cache variable VAR
2223 # accordingly.
2224 ac_fn_c_check_header_mongrel ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   if eval \${$3+:} false; then :
2228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229 $as_echo_n "checking for $2... " >&6; }
2230 if eval \${$3+:} false; then :
2231   $as_echo_n "(cached) " >&6
2232 fi
2233 eval ac_res=\$$3
2234                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 else
2237   # Is the header compilable?
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2239 $as_echo_n "checking $2 usability... " >&6; }
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h.  */
2242 $4
2243 #include <$2>
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246   ac_header_compiler=yes
2247 else
2248   ac_header_compiler=no
2249 fi
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2252 $as_echo "$ac_header_compiler" >&6; }
2253
2254 # Is the header present?
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2256 $as_echo_n "checking $2 presence... " >&6; }
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 #include <$2>
2260 _ACEOF
2261 if ac_fn_c_try_cpp "$LINENO"; then :
2262   ac_header_preproc=yes
2263 else
2264   ac_header_preproc=no
2265 fi
2266 rm -f conftest.err conftest.i conftest.$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2268 $as_echo "$ac_header_preproc" >&6; }
2269
2270 # So?  What about this header?
2271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2272   yes:no: )
2273     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2274 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2275     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2276 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2277     ;;
2278   no:yes:* )
2279     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2280 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2281     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2282 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2283     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2284 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2285     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2286 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2287     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2289 ( $as_echo "## -------------------------------------------------------- ##
2290 ## Report this to https://github.com/wolfssl/wolfssl/issues ##
2291 ## -------------------------------------------------------- ##"
2292      ) | sed "s/^/$as_me: WARNING:     /" >&2
2293     ;;
2294 esac
2295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if eval \${$3+:} false; then :
2298   $as_echo_n "(cached) " >&6
2299 else
2300   eval "$3=\$ac_header_compiler"
2301 fi
2302 eval ac_res=\$$3
2303                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 fi
2306   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307
2308 } # ac_fn_c_check_header_mongrel
2309
2310 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2311 # --------------------------------------------
2312 # Tries to find the compile-time value of EXPR in a program that includes
2313 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2314 # computed
2315 ac_fn_c_compute_int ()
2316 {
2317   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318   if test "$cross_compiling" = yes; then
2319     # Depending upon the size, compute the lo and hi bounds.
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h.  */
2322 $4
2323 int
2324 main ()
2325 {
2326 static int test_array [1 - 2 * !(($2) >= 0)];
2327 test_array [0] = 0;
2328 return test_array [0];
2329
2330   ;
2331   return 0;
2332 }
2333 _ACEOF
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335   ac_lo=0 ac_mid=0
2336   while :; do
2337     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h.  */
2339 $4
2340 int
2341 main ()
2342 {
2343 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2344 test_array [0] = 0;
2345 return test_array [0];
2346
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 if ac_fn_c_try_compile "$LINENO"; then :
2352   ac_hi=$ac_mid; break
2353 else
2354   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2355                         if test $ac_lo -le $ac_mid; then
2356                           ac_lo= ac_hi=
2357                           break
2358                         fi
2359                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362   done
2363 else
2364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h.  */
2366 $4
2367 int
2368 main ()
2369 {
2370 static int test_array [1 - 2 * !(($2) < 0)];
2371 test_array [0] = 0;
2372 return test_array [0];
2373
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379   ac_hi=-1 ac_mid=-1
2380   while :; do
2381     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h.  */
2383 $4
2384 int
2385 main ()
2386 {
2387 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2388 test_array [0] = 0;
2389 return test_array [0];
2390
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396   ac_lo=$ac_mid; break
2397 else
2398   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2399                         if test $ac_mid -le $ac_hi; then
2400                           ac_lo= ac_hi=
2401                           break
2402                         fi
2403                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2404 fi
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406   done
2407 else
2408   ac_lo= ac_hi=
2409 fi
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 # Binary search between lo and hi bounds.
2414 while test "x$ac_lo" != "x$ac_hi"; do
2415   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h.  */
2418 $4
2419 int
2420 main ()
2421 {
2422 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2423 test_array [0] = 0;
2424 return test_array [0];
2425
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431   ac_hi=$ac_mid
2432 else
2433   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2434 fi
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 done
2437 case $ac_lo in #((
2438 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2439 '') ac_retval=1 ;;
2440 esac
2441   else
2442     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h.  */
2444 $4
2445 static long int longval () { return $2; }
2446 static unsigned long int ulongval () { return $2; }
2447 #include <stdio.h>
2448 #include <stdlib.h>
2449 int
2450 main ()
2451 {
2452
2453   FILE *f = fopen ("conftest.val", "w");
2454   if (! f)
2455     return 1;
2456   if (($2) < 0)
2457     {
2458       long int i = longval ();
2459       if (i != ($2))
2460         return 1;
2461       fprintf (f, "%ld", i);
2462     }
2463   else
2464     {
2465       unsigned long int i = ulongval ();
2466       if (i != ($2))
2467         return 1;
2468       fprintf (f, "%lu", i);
2469     }
2470   /* Do not output a trailing newline, as this causes \r\n confusion
2471      on some platforms.  */
2472   return ferror (f) || fclose (f) != 0;
2473
2474   ;
2475   return 0;
2476 }
2477 _ACEOF
2478 if ac_fn_c_try_run "$LINENO"; then :
2479   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2480 else
2481   ac_retval=1
2482 fi
2483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2484   conftest.$ac_objext conftest.beam conftest.$ac_ext
2485 rm -f conftest.val
2486
2487   fi
2488   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2489   as_fn_set_status $ac_retval
2490
2491 } # ac_fn_c_compute_int
2492
2493 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2494 # -------------------------------------------
2495 # Tests whether TYPE exists after having included INCLUDES, setting cache
2496 # variable VAR accordingly.
2497 ac_fn_c_check_type ()
2498 {
2499   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if eval \${$3+:} false; then :
2503   $as_echo_n "(cached) " >&6
2504 else
2505   eval "$3=no"
2506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h.  */
2508 $4
2509 int
2510 main ()
2511 {
2512 if (sizeof ($2))
2513          return 0;
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 if ac_fn_c_try_compile "$LINENO"; then :
2519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h.  */
2521 $4
2522 int
2523 main ()
2524 {
2525 if (sizeof (($2)))
2526             return 0;
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 if ac_fn_c_try_compile "$LINENO"; then :
2532
2533 else
2534   eval "$3=yes"
2535 fi
2536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537 fi
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 fi
2540 eval ac_res=\$$3
2541                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2544
2545 } # ac_fn_c_check_type
2546
2547 # ac_fn_c_find_uintX_t LINENO BITS VAR
2548 # ------------------------------------
2549 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2550 # accordingly.
2551 ac_fn_c_find_uintX_t ()
2552 {
2553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2555 $as_echo_n "checking for uint$2_t... " >&6; }
2556 if eval \${$3+:} false; then :
2557   $as_echo_n "(cached) " >&6
2558 else
2559   eval "$3=no"
2560      # Order is important - never check a type that is potentially smaller
2561      # than half of the expected target width.
2562      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2563          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2564        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h.  */
2566 $ac_includes_default
2567 int
2568 main ()
2569 {
2570 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2571 test_array [0] = 0;
2572 return test_array [0];
2573
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579   case $ac_type in #(
2580   uint$2_t) :
2581     eval "$3=yes" ;; #(
2582   *) :
2583     eval "$3=\$ac_type" ;;
2584 esac
2585 fi
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587        if eval test \"x\$"$3"\" = x"no"; then :
2588
2589 else
2590   break
2591 fi
2592      done
2593 fi
2594 eval ac_res=\$$3
2595                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596 $as_echo "$ac_res" >&6; }
2597   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598
2599 } # ac_fn_c_find_uintX_t
2600 cat >config.log <<_ACEOF
2601 This file contains any messages produced by compilers while
2602 running configure, to aid debugging if configure makes a mistake.
2603
2604 It was created by wolfssl $as_me 3.6.0, which was
2605 generated by GNU Autoconf 2.69.  Invocation command line was
2606
2607   $ $0 $@
2608
2609 _ACEOF
2610 exec 5>>config.log
2611 {
2612 cat <<_ASUNAME
2613 ## --------- ##
2614 ## Platform. ##
2615 ## --------- ##
2616
2617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2622
2623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2624 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2625
2626 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2627 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2629 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2630 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2631 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2632 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2633
2634 _ASUNAME
2635
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641     $as_echo "PATH: $as_dir"
2642   done
2643 IFS=$as_save_IFS
2644
2645 } >&5
2646
2647 cat >&5 <<_ACEOF
2648
2649
2650 ## ----------- ##
2651 ## Core tests. ##
2652 ## ----------- ##
2653
2654 _ACEOF
2655
2656
2657 # Keep a trace of the command line.
2658 # Strip out --no-create and --no-recursion so they do not pile up.
2659 # Strip out --silent because we don't want to record it for future runs.
2660 # Also quote any args containing shell meta-characters.
2661 # Make two passes to allow for proper duplicate-argument suppression.
2662 ac_configure_args=
2663 ac_configure_args0=
2664 ac_configure_args1=
2665 ac_must_keep_next=false
2666 for ac_pass in 1 2
2667 do
2668   for ac_arg
2669   do
2670     case $ac_arg in
2671     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2672     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2673     | -silent | --silent | --silen | --sile | --sil)
2674       continue ;;
2675     *\'*)
2676       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2677     esac
2678     case $ac_pass in
2679     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2680     2)
2681       as_fn_append ac_configure_args1 " '$ac_arg'"
2682       if test $ac_must_keep_next = true; then
2683         ac_must_keep_next=false # Got value, back to normal.
2684       else
2685         case $ac_arg in
2686           *=* | --config-cache | -C | -disable-* | --disable-* \
2687           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2688           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2689           | -with-* | --with-* | -without-* | --without-* | --x)
2690             case "$ac_configure_args0 " in
2691               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2692             esac
2693             ;;
2694           -* ) ac_must_keep_next=true ;;
2695         esac
2696       fi
2697       as_fn_append ac_configure_args " '$ac_arg'"
2698       ;;
2699     esac
2700   done
2701 done
2702 { ac_configure_args0=; unset ac_configure_args0;}
2703 { ac_configure_args1=; unset ac_configure_args1;}
2704
2705 # When interrupted or exit'd, cleanup temporary files, and complete
2706 # config.log.  We remove comments because anyway the quotes in there
2707 # would cause problems or look ugly.
2708 # WARNING: Use '\'' to represent an apostrophe within the trap.
2709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2710 trap 'exit_status=$?
2711   # Save into config.log some information that might help in debugging.
2712   {
2713     echo
2714
2715     $as_echo "## ---------------- ##
2716 ## Cache variables. ##
2717 ## ---------------- ##"
2718     echo
2719     # The following way of writing the cache mishandles newlines in values,
2720 (
2721   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2722     eval ac_val=\$$ac_var
2723     case $ac_val in #(
2724     *${as_nl}*)
2725       case $ac_var in #(
2726       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2727 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2728       esac
2729       case $ac_var in #(
2730       _ | IFS | as_nl) ;; #(
2731       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2732       *) { eval $ac_var=; unset $ac_var;} ;;
2733       esac ;;
2734     esac
2735   done
2736   (set) 2>&1 |
2737     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2738     *${as_nl}ac_space=\ *)
2739       sed -n \
2740         "s/'\''/'\''\\\\'\'''\''/g;
2741           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2742       ;; #(
2743     *)
2744       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2745       ;;
2746     esac |
2747     sort
2748 )
2749     echo
2750
2751     $as_echo "## ----------------- ##
2752 ## Output variables. ##
2753 ## ----------------- ##"
2754     echo
2755     for ac_var in $ac_subst_vars
2756     do
2757       eval ac_val=\$$ac_var
2758       case $ac_val in
2759       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2760       esac
2761       $as_echo "$ac_var='\''$ac_val'\''"
2762     done | sort
2763     echo
2764
2765     if test -n "$ac_subst_files"; then
2766       $as_echo "## ------------------- ##
2767 ## File substitutions. ##
2768 ## ------------------- ##"
2769       echo
2770       for ac_var in $ac_subst_files
2771       do
2772         eval ac_val=\$$ac_var
2773         case $ac_val in
2774         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2775         esac
2776         $as_echo "$ac_var='\''$ac_val'\''"
2777       done | sort
2778       echo
2779     fi
2780
2781     if test -s confdefs.h; then
2782       $as_echo "## ----------- ##
2783 ## confdefs.h. ##
2784 ## ----------- ##"
2785       echo
2786       cat confdefs.h
2787       echo
2788     fi
2789     test "$ac_signal" != 0 &&
2790       $as_echo "$as_me: caught signal $ac_signal"
2791     $as_echo "$as_me: exit $exit_status"
2792   } >&5
2793   rm -f core *.core core.conftest.* &&
2794     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2795     exit $exit_status
2796 ' 0
2797 for ac_signal in 1 2 13 15; do
2798   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2799 done
2800 ac_signal=0
2801
2802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2803 rm -f -r conftest* confdefs.h
2804
2805 $as_echo "/* confdefs.h */" > confdefs.h
2806
2807 # Predefined preprocessor variables.
2808
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_NAME "$PACKAGE_NAME"
2811 _ACEOF
2812
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2815 _ACEOF
2816
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2819 _ACEOF
2820
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_STRING "$PACKAGE_STRING"
2823 _ACEOF
2824
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2827 _ACEOF
2828
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_URL "$PACKAGE_URL"
2831 _ACEOF
2832
2833
2834 # Let the site file select an alternate cache file if it wants to.
2835 # Prefer an explicitly selected file to automatically selected ones.
2836 ac_site_file1=NONE
2837 ac_site_file2=NONE
2838 if test -n "$CONFIG_SITE"; then
2839   # We do not want a PATH search for config.site.
2840   case $CONFIG_SITE in #((
2841     -*)  ac_site_file1=./$CONFIG_SITE;;
2842     */*) ac_site_file1=$CONFIG_SITE;;
2843     *)   ac_site_file1=./$CONFIG_SITE;;
2844   esac
2845 elif test "x$prefix" != xNONE; then
2846   ac_site_file1=$prefix/share/config.site
2847   ac_site_file2=$prefix/etc/config.site
2848 else
2849   ac_site_file1=$ac_default_prefix/share/config.site
2850   ac_site_file2=$ac_default_prefix/etc/config.site
2851 fi
2852 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2853 do
2854   test "x$ac_site_file" = xNONE && continue
2855   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2856     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2857 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2858     sed 's/^/| /' "$ac_site_file" >&5
2859     . "$ac_site_file" \
2860       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862 as_fn_error $? "failed to load site script $ac_site_file
2863 See \`config.log' for more details" "$LINENO" 5; }
2864   fi
2865 done
2866
2867 if test -r "$cache_file"; then
2868   # Some versions of bash will fail to source /dev/null (special files
2869   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2870   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2871     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2872 $as_echo "$as_me: loading cache $cache_file" >&6;}
2873     case $cache_file in
2874       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2875       *)                      . "./$cache_file";;
2876     esac
2877   fi
2878 else
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2880 $as_echo "$as_me: creating cache $cache_file" >&6;}
2881   >$cache_file
2882 fi
2883
2884 # Check that the precious variables saved in the cache have kept the same
2885 # value.
2886 ac_cache_corrupted=false
2887 for ac_var in $ac_precious_vars; do
2888   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2889   eval ac_new_set=\$ac_env_${ac_var}_set
2890   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2891   eval ac_new_val=\$ac_env_${ac_var}_value
2892   case $ac_old_set,$ac_new_set in
2893     set,)
2894       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2895 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2896       ac_cache_corrupted=: ;;
2897     ,set)
2898       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2899 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2900       ac_cache_corrupted=: ;;
2901     ,);;
2902     *)
2903       if test "x$ac_old_val" != "x$ac_new_val"; then
2904         # differences in whitespace do not lead to failure.
2905         ac_old_val_w=`echo x $ac_old_val`
2906         ac_new_val_w=`echo x $ac_new_val`
2907         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2908           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2909 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2910           ac_cache_corrupted=:
2911         else
2912           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2913 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2914           eval $ac_var=\$ac_old_val
2915         fi
2916         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2917 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2918         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2919 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2920       fi;;
2921   esac
2922   # Pass precious variables to config.status.
2923   if test "$ac_new_set" = set; then
2924     case $ac_new_val in
2925     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2926     *) ac_arg=$ac_var=$ac_new_val ;;
2927     esac
2928     case " $ac_configure_args " in
2929       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2930       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2931     esac
2932   fi
2933 done
2934 if $ac_cache_corrupted; then
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2938 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2939   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2940 fi
2941 ## -------------------- ##
2942 ## Main body of script. ##
2943 ## -------------------- ##
2944
2945 ac_ext=c
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950
2951
2952
2953 ac_aux_dir=
2954 for ac_dir in build-aux "$srcdir"/build-aux; do
2955   if test -f "$ac_dir/install-sh"; then
2956     ac_aux_dir=$ac_dir
2957     ac_install_sh="$ac_aux_dir/install-sh -c"
2958     break
2959   elif test -f "$ac_dir/install.sh"; then
2960     ac_aux_dir=$ac_dir
2961     ac_install_sh="$ac_aux_dir/install.sh -c"
2962     break
2963   elif test -f "$ac_dir/shtool"; then
2964     ac_aux_dir=$ac_dir
2965     ac_install_sh="$ac_aux_dir/shtool install -c"
2966     break
2967   fi
2968 done
2969 if test -z "$ac_aux_dir"; then
2970   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2971 fi
2972
2973 # These three variables are undocumented and unsupported,
2974 # and are intended to be withdrawn in a future Autoconf release.
2975 # They can cause serious problems if a builder's source tree is in a directory
2976 # whose full name contains unusual characters.
2977 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2978 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2979 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2980
2981
2982
2983 # Make sure we can run config.sub.
2984 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2985   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2986
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2988 $as_echo_n "checking build system type... " >&6; }
2989 if ${ac_cv_build+:} false; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   ac_build_alias=$build_alias
2993 test "x$ac_build_alias" = x &&
2994   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2995 test "x$ac_build_alias" = x &&
2996   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2998   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2999
3000 fi
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3002 $as_echo "$ac_cv_build" >&6; }
3003 case $ac_cv_build in
3004 *-*-*) ;;
3005 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3006 esac
3007 build=$ac_cv_build
3008 ac_save_IFS=$IFS; IFS='-'
3009 set x $ac_cv_build
3010 shift
3011 build_cpu=$1
3012 build_vendor=$2
3013 shift; shift
3014 # Remember, the first character of IFS is used to create $*,
3015 # except with old shells:
3016 build_os=$*
3017 IFS=$ac_save_IFS
3018 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3019
3020
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3022 $as_echo_n "checking host system type... " >&6; }
3023 if ${ac_cv_host+:} false; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   if test "x$host_alias" = x; then
3027   ac_cv_host=$ac_cv_build
3028 else
3029   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3030     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3031 fi
3032
3033 fi
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3035 $as_echo "$ac_cv_host" >&6; }
3036 case $ac_cv_host in
3037 *-*-*) ;;
3038 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3039 esac
3040 host=$ac_cv_host
3041 ac_save_IFS=$IFS; IFS='-'
3042 set x $ac_cv_host
3043 shift
3044 host_cpu=$1
3045 host_vendor=$2
3046 shift; shift
3047 # Remember, the first character of IFS is used to create $*,
3048 # except with old shells:
3049 host_os=$*
3050 IFS=$ac_save_IFS
3051 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3052
3053
3054
3055
3056 am__api_version='1.14'
3057
3058 # Find a good install program.  We prefer a C program (faster),
3059 # so one script is as good as another.  But avoid the broken or
3060 # incompatible versions:
3061 # SysV /etc/install, /usr/sbin/install
3062 # SunOS /usr/etc/install
3063 # IRIX /sbin/install
3064 # AIX /bin/install
3065 # AmigaOS /C/install, which installs bootblocks on floppy discs
3066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3069 # OS/2's system install, which has a completely different semantic
3070 # ./install, which can be erroneously created by make from ./install.sh.
3071 # Reject install programs that cannot install multiple files.
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3073 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3074 if test -z "$INSTALL"; then
3075 if ${ac_cv_path_install+:} false; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081   IFS=$as_save_IFS
3082   test -z "$as_dir" && as_dir=.
3083     # Account for people who put trailing slashes in PATH elements.
3084 case $as_dir/ in #((
3085   ./ | .// | /[cC]/* | \
3086   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3087   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3088   /usr/ucb/* ) ;;
3089   *)
3090     # OSF1 and SCO ODT 3.0 have their own names for install.
3091     # Don't use installbsd from OSF since it installs stuff as root
3092     # by default.
3093     for ac_prog in ginstall scoinst install; do
3094       for ac_exec_ext in '' $ac_executable_extensions; do
3095         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3096           if test $ac_prog = install &&
3097             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # AIX install.  It has an incompatible calling convention.
3099             :
3100           elif test $ac_prog = install &&
3101             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3102             # program-specific install script used by HP pwplus--don't use.
3103             :
3104           else
3105             rm -rf conftest.one conftest.two conftest.dir
3106             echo one > conftest.one
3107             echo two > conftest.two
3108             mkdir conftest.dir
3109             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3110               test -s conftest.one && test -s conftest.two &&
3111               test -s conftest.dir/conftest.one &&
3112               test -s conftest.dir/conftest.two
3113             then
3114               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3115               break 3
3116             fi
3117           fi
3118         fi
3119       done
3120     done
3121     ;;
3122 esac
3123
3124   done
3125 IFS=$as_save_IFS
3126
3127 rm -rf conftest.one conftest.two conftest.dir
3128
3129 fi
3130   if test "${ac_cv_path_install+set}" = set; then
3131     INSTALL=$ac_cv_path_install
3132   else
3133     # As a last resort, use the slow shell script.  Don't cache a
3134     # value for INSTALL within a source directory, because that will
3135     # break other packages using the cache if that directory is
3136     # removed, or if the value is a relative name.
3137     INSTALL=$ac_install_sh
3138   fi
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3141 $as_echo "$INSTALL" >&6; }
3142
3143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3144 # It thinks the first close brace ends the variable substitution.
3145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3146
3147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3148
3149 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3150
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3152 $as_echo_n "checking whether build environment is sane... " >&6; }
3153 # Reject unsafe characters in $srcdir or the absolute working directory
3154 # name.  Accept space and tab only in the latter.
3155 am_lf='
3156 '
3157 case `pwd` in
3158   *[\\\"\#\$\&\'\`$am_lf]*)
3159     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3160 esac
3161 case $srcdir in
3162   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3163     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3164 esac
3165
3166 # Do 'set' in a subshell so we don't clobber the current shell's
3167 # arguments.  Must try -L first in case configure is actually a
3168 # symlink; some systems play weird games with the mod time of symlinks
3169 # (eg FreeBSD returns the mod time of the symlink's containing
3170 # directory).
3171 if (
3172    am_has_slept=no
3173    for am_try in 1 2; do
3174      echo "timestamp, slept: $am_has_slept" > conftest.file
3175      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3176      if test "$*" = "X"; then
3177         # -L didn't work.
3178         set X `ls -t "$srcdir/configure" conftest.file`
3179      fi
3180      if test "$*" != "X $srcdir/configure conftest.file" \
3181         && test "$*" != "X conftest.file $srcdir/configure"; then
3182
3183         # If neither matched, then we have a broken ls.  This can happen
3184         # if, for instance, CONFIG_SHELL is bash and it inherits a
3185         # broken ls alias from the environment.  This has actually
3186         # happened.  Such a system could not be considered "sane".
3187         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3188   alias in your environment" "$LINENO" 5
3189      fi
3190      if test "$2" = conftest.file || test $am_try -eq 2; then
3191        break
3192      fi
3193      # Just in case.
3194      sleep 1
3195      am_has_slept=yes
3196    done
3197    test "$2" = conftest.file
3198    )
3199 then
3200    # Ok.
3201    :
3202 else
3203    as_fn_error $? "newly created file is older than distributed files!
3204 Check your system clock" "$LINENO" 5
3205 fi
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3208 # If we didn't sleep, we still need to ensure time stamps of config.status and
3209 # generated files are strictly newer.
3210 am_sleep_pid=
3211 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3212   ( sleep 1 ) &
3213   am_sleep_pid=$!
3214 fi
3215
3216 rm -f conftest.file
3217
3218 test "$program_prefix" != NONE &&
3219   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3220 # Use a double $ so make ignores it.
3221 test "$program_suffix" != NONE &&
3222   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3223 # Double any \ or $.
3224 # By default was `s,x,x', remove it if useless.
3225 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3226 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3227
3228 # expand $ac_aux_dir to an absolute path
3229 am_aux_dir=`cd $ac_aux_dir && pwd`
3230
3231 if test x"${MISSING+set}" != xset; then
3232   case $am_aux_dir in
3233   *\ * | *\     *)
3234     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3235   *)
3236     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3237   esac
3238 fi
3239 # Use eval to expand $SHELL
3240 if eval "$MISSING --is-lightweight"; then
3241   am_missing_run="$MISSING "
3242 else
3243   am_missing_run=
3244   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3245 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3246 fi
3247
3248 if test x"${install_sh}" != xset; then
3249   case $am_aux_dir in
3250   *\ * | *\     *)
3251     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3252   *)
3253     install_sh="\${SHELL} $am_aux_dir/install-sh"
3254   esac
3255 fi
3256
3257 # Installed binaries are usually stripped using 'strip' when the user
3258 # run "make install-strip".  However 'strip' might not be the right
3259 # tool to use in cross-compilation environments, therefore Automake
3260 # will honor the 'STRIP' environment variable to overrule this program.
3261 if test "$cross_compiling" != no; then
3262   if test -n "$ac_tool_prefix"; then
3263   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}strip; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_STRIP+:} false; then :
3268   $as_echo_n "(cached) " >&6
3269 else
3270   if test -n "$STRIP"; then
3271   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276   IFS=$as_save_IFS
3277   test -z "$as_dir" && as_dir=.
3278     for ac_exec_ext in '' $ac_executable_extensions; do
3279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282     break 2
3283   fi
3284 done
3285   done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 STRIP=$ac_cv_prog_STRIP
3291 if test -n "$STRIP"; then
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3293 $as_echo "$STRIP" >&6; }
3294 else
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300 fi
3301 if test -z "$ac_cv_prog_STRIP"; then
3302   ac_ct_STRIP=$STRIP
3303   # Extract the first word of "strip", so it can be a program name with args.
3304 set dummy strip; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3308   $as_echo_n "(cached) " >&6
3309 else
3310   if test -n "$ac_ct_STRIP"; then
3311   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318     for ac_exec_ext in '' $ac_executable_extensions; do
3319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320     ac_cv_prog_ac_ct_STRIP="strip"
3321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322     break 2
3323   fi
3324 done
3325   done
3326 IFS=$as_save_IFS
3327
3328 fi
3329 fi
3330 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3331 if test -n "$ac_ct_STRIP"; then
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3333 $as_echo "$ac_ct_STRIP" >&6; }
3334 else
3335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 fi
3338
3339   if test "x$ac_ct_STRIP" = x; then
3340     STRIP=":"
3341   else
3342     case $cross_compiling:$ac_tool_warned in
3343 yes:)
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned=yes ;;
3347 esac
3348     STRIP=$ac_ct_STRIP
3349   fi
3350 else
3351   STRIP="$ac_cv_prog_STRIP"
3352 fi
3353
3354 fi
3355 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3356
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3358 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3359 if test -z "$MKDIR_P"; then
3360   if ${ac_cv_path_mkdir+:} false; then :
3361   $as_echo_n "(cached) " >&6
3362 else
3363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368     for ac_prog in mkdir gmkdir; do
3369          for ac_exec_ext in '' $ac_executable_extensions; do
3370            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3371            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3372              'mkdir (GNU coreutils) '* | \
3373              'mkdir (coreutils) '* | \
3374              'mkdir (fileutils) '4.1*)
3375                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3376                break 3;;
3377            esac
3378          done
3379        done
3380   done
3381 IFS=$as_save_IFS
3382
3383 fi
3384
3385   test -d ./--version && rmdir ./--version
3386   if test "${ac_cv_path_mkdir+set}" = set; then
3387     MKDIR_P="$ac_cv_path_mkdir -p"
3388   else
3389     # As a last resort, use the slow shell script.  Don't cache a
3390     # value for MKDIR_P within a source directory, because that will
3391     # break other packages using the cache if that directory is
3392     # removed, or if the value is a relative name.
3393     MKDIR_P="$ac_install_sh -d"
3394   fi
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3397 $as_echo "$MKDIR_P" >&6; }
3398
3399 for ac_prog in gawk mawk nawk awk
3400 do
3401   # Extract the first word of "$ac_prog", so it can be a program name with args.
3402 set dummy $ac_prog; ac_word=$2
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 $as_echo_n "checking for $ac_word... " >&6; }
3405 if ${ac_cv_prog_AWK+:} false; then :
3406   $as_echo_n "(cached) " >&6
3407 else
3408   if test -n "$AWK"; then
3409   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3410 else
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH
3413 do
3414   IFS=$as_save_IFS
3415   test -z "$as_dir" && as_dir=.
3416     for ac_exec_ext in '' $ac_executable_extensions; do
3417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418     ac_cv_prog_AWK="$ac_prog"
3419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420     break 2
3421   fi
3422 done
3423   done
3424 IFS=$as_save_IFS
3425
3426 fi
3427 fi
3428 AWK=$ac_cv_prog_AWK
3429 if test -n "$AWK"; then
3430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3431 $as_echo "$AWK" >&6; }
3432 else
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3435 fi
3436
3437
3438   test -n "$AWK" && break
3439 done
3440
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3442 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3443 set x ${MAKE-make}
3444 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3445 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3446   $as_echo_n "(cached) " >&6
3447 else
3448   cat >conftest.make <<\_ACEOF
3449 SHELL = /bin/sh
3450 all:
3451         @echo '@@@%%%=$(MAKE)=@@@%%%'
3452 _ACEOF
3453 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3454 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3455   *@@@%%%=?*=@@@%%%*)
3456     eval ac_cv_prog_make_${ac_make}_set=yes;;
3457   *)
3458     eval ac_cv_prog_make_${ac_make}_set=no;;
3459 esac
3460 rm -f conftest.make
3461 fi
3462 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3464 $as_echo "yes" >&6; }
3465   SET_MAKE=
3466 else
3467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469   SET_MAKE="MAKE=${MAKE-make}"
3470 fi
3471
3472 rm -rf .tst 2>/dev/null
3473 mkdir .tst 2>/dev/null
3474 if test -d .tst; then
3475   am__leading_dot=.
3476 else
3477   am__leading_dot=_
3478 fi
3479 rmdir .tst 2>/dev/null
3480
3481 # Check whether --enable-silent-rules was given.
3482 if test "${enable_silent_rules+set}" = set; then :
3483   enableval=$enable_silent_rules;
3484 fi
3485
3486 case $enable_silent_rules in # (((
3487   yes) AM_DEFAULT_VERBOSITY=0;;
3488    no) AM_DEFAULT_VERBOSITY=1;;
3489     *) AM_DEFAULT_VERBOSITY=1;;
3490 esac
3491 am_make=${MAKE-make}
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3493 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3494 if ${am_cv_make_support_nested_variables+:} false; then :
3495   $as_echo_n "(cached) " >&6
3496 else
3497   if $as_echo 'TRUE=$(BAR$(V))
3498 BAR0=false
3499 BAR1=true
3500 V=1
3501 am__doit:
3502         @$(TRUE)
3503 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3504   am_cv_make_support_nested_variables=yes
3505 else
3506   am_cv_make_support_nested_variables=no
3507 fi
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3510 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3511 if test $am_cv_make_support_nested_variables = yes; then
3512     AM_V='$(V)'
3513   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3514 else
3515   AM_V=$AM_DEFAULT_VERBOSITY
3516   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3517 fi
3518 AM_BACKSLASH='\'
3519
3520 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3521   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3522   # is not polluted with repeated "-I."
3523   am__isrc=' -I$(srcdir)'
3524   # test to see if srcdir already configured
3525   if test -f $srcdir/config.status; then
3526     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3527   fi
3528 fi
3529
3530 # test whether we have cygpath
3531 if test -z "$CYGPATH_W"; then
3532   if (cygpath --version) >/dev/null 2>/dev/null; then
3533     CYGPATH_W='cygpath -w'
3534   else
3535     CYGPATH_W=echo
3536   fi
3537 fi
3538
3539
3540 # Define the identity of the package.
3541  PACKAGE='wolfssl'
3542  VERSION='3.6.0'
3543
3544
3545 # Some tools Automake needs.
3546
3547 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3548
3549
3550 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3551
3552
3553 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3554
3555
3556 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3557
3558
3559 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3560
3561 # For better backward compatibility.  To be removed once Automake 1.9.x
3562 # dies out for good.  For more background, see:
3563 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3564 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3565 mkdir_p='$(MKDIR_P)'
3566
3567 # We need awk for the "check" target.  The system "awk" is bad on
3568 # some platforms.
3569 # Always define AMTAR for backward compatibility.  Yes, it's still used
3570 # in the wild :-(  We should find a proper way to deprecate it ...
3571 AMTAR='$${TAR-tar}'
3572
3573
3574 # We'll loop over all known methods to create a tar archive until one works.
3575 _am_tools='gnutar plaintar pax cpio none'
3576
3577 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3578       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3579       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3580       # and bug#13588).
3581       am_max_uid=2097151 # 2^21 - 1
3582       am_max_gid=$am_max_uid
3583       # The $UID and $GID variables are not portable, so we need to resort
3584       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3585       # below are definitely unexpected, so allow the users to see them
3586       # (that is, avoid stderr redirection).
3587       am_uid=`id -u || echo unknown`
3588       am_gid=`id -g || echo unknown`
3589       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3590 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3591       if test $am_uid -le $am_max_uid; then
3592          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593 $as_echo "yes" >&6; }
3594       else
3595          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597          _am_tools=none
3598       fi
3599       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3600 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3601       if test $am_gid -le $am_max_gid; then
3602          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3603 $as_echo "yes" >&6; }
3604       else
3605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3607         _am_tools=none
3608       fi
3609
3610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3611 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3612
3613   # Go ahead even if we have the value already cached.  We do so because we
3614   # need to set the values for the 'am__tar' and 'am__untar' variables.
3615   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3616
3617   for _am_tool in $_am_tools; do
3618     case $_am_tool in
3619     gnutar)
3620       for _am_tar in tar gnutar gtar; do
3621         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3622    ($_am_tar --version) >&5 2>&5
3623    ac_status=$?
3624    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625    (exit $ac_status); } && break
3626       done
3627       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3628       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3629       am__untar="$_am_tar -xf -"
3630       ;;
3631     plaintar)
3632       # Must skip GNU tar: if it does not support --format= it doesn't create
3633       # ustar tarball either.
3634       (tar --version) >/dev/null 2>&1 && continue
3635       am__tar='tar chf - "$$tardir"'
3636       am__tar_='tar chf - "$tardir"'
3637       am__untar='tar xf -'
3638       ;;
3639     pax)
3640       am__tar='pax -L -x ustar -w "$$tardir"'
3641       am__tar_='pax -L -x ustar -w "$tardir"'
3642       am__untar='pax -r'
3643       ;;
3644     cpio)
3645       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3646       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3647       am__untar='cpio -i -H ustar -d'
3648       ;;
3649     none)
3650       am__tar=false
3651       am__tar_=false
3652       am__untar=false
3653       ;;
3654     esac
3655
3656     # If the value was cached, stop now.  We just wanted to have am__tar
3657     # and am__untar set.
3658     test -n "${am_cv_prog_tar_ustar}" && break
3659
3660     # tar/untar a dummy directory, and stop if the command works.
3661     rm -rf conftest.dir
3662     mkdir conftest.dir
3663     echo GrepMe > conftest.dir/file
3664     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3665    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3666    ac_status=$?
3667    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668    (exit $ac_status); }
3669     rm -rf conftest.dir
3670     if test -s conftest.tar; then
3671       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3672    ($am__untar <conftest.tar) >&5 2>&5
3673    ac_status=$?
3674    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675    (exit $ac_status); }
3676       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3677    (cat conftest.dir/file) >&5 2>&5
3678    ac_status=$?
3679    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680    (exit $ac_status); }
3681       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3682     fi
3683   done
3684   rm -rf conftest.dir
3685
3686   if ${am_cv_prog_tar_ustar+:} false; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   am_cv_prog_tar_ustar=$_am_tool
3690 fi
3691
3692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3693 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3694
3695
3696
3697
3698
3699
3700 # POSIX will say in a future version that running "rm -f" with no argument
3701 # is OK; and we want to be able to make that assumption in our Makefile
3702 # recipes.  So use an aggressive probe to check that the usage we want is
3703 # actually supported "in the wild" to an acceptable degree.
3704 # See automake bug#10828.
3705 # To make any issue more visible, cause the running configure to be aborted
3706 # by default if the 'rm' program in use doesn't match our expectations; the
3707 # user can still override this though.
3708 if rm -f && rm -fr && rm -rf; then : OK; else
3709   cat >&2 <<'END'
3710 Oops!
3711
3712 Your 'rm' program seems unable to run without file operands specified
3713 on the command line, even when the '-f' option is present.  This is contrary
3714 to the behaviour of most rm programs out there, and not conforming with
3715 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3716
3717 Please tell bug-automake@gnu.org about your system, including the value
3718 of your $PATH and any error possibly output before this message.  This
3719 can help us improve future automake versions.
3720
3721 END
3722   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3723     echo 'Configuration will proceed anyway, since you have set the' >&2
3724     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3725     echo >&2
3726   else
3727     cat >&2 <<'END'
3728 Aborting the configuration process, to ensure you take notice of the issue.
3729
3730 You can download and install GNU coreutils to get an 'rm' implementation
3731 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3732
3733 If you want to complete the configuration process using your problematic
3734 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3735 to "yes", and re-run configure.
3736
3737 END
3738     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3739   fi
3740 fi
3741
3742
3743
3744
3745 #PROTECT_AC_USE_SYSTEM_EXTENSIONS
3746
3747
3748
3749 ac_config_headers="$ac_config_headers config.h:config.in"
3750
3751 #shared library versioning
3752 WOLFSSL_LIBRARY_VERSION=0:2:0
3753 #                       | | |
3754 #                +------+ | +---+
3755 #                |        |     |
3756 #               current:revision:age
3757 #                |        |     |
3758 #                |        |     +- increment if interfaces have been added
3759 #                |        |        set to zero if interfaces have been removed
3760 #                |        |        or changed
3761 #                |        +- increment if source code has changed
3762 #                |           set to zero if current is incremented
3763 #                +- increment if interfaces have been added, removed or changed
3764
3765
3766 # capture user C_EXTRA_FLAGS from ./configure line, CFLAGS may hold -g -O2 even
3767 # if user doesn't override, no way to tell
3768 USER_C_EXTRA_FLAGS="$C_EXTRA_FLAGS"
3769
3770
3771 case `pwd` in
3772   *\ * | *\     *)
3773     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3774 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3775 esac
3776
3777
3778
3779 macro_version='2.4.2'
3780 macro_revision='1.3337'
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794 ltmain="$ac_aux_dir/ltmain.sh"
3795
3796 # Backslashify metacharacters that are still active within
3797 # double-quoted strings.
3798 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3799
3800 # Same as above, but do not quote variable references.
3801 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3802
3803 # Sed substitution to delay expansion of an escaped shell variable in a
3804 # double_quote_subst'ed string.
3805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3806
3807 # Sed substitution to delay expansion of an escaped single quote.
3808 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3809
3810 # Sed substitution to avoid accidental globbing in evaled expressions
3811 no_glob_subst='s/\*/\\\*/g'
3812
3813 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3814 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3815 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3816
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3818 $as_echo_n "checking how to print strings... " >&6; }
3819 # Test print first, because it will be a builtin if present.
3820 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3821    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3822   ECHO='print -r --'
3823 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3824   ECHO='printf %s\n'
3825 else
3826   # Use this function as a fallback that always works.
3827   func_fallback_echo ()
3828   {
3829     eval 'cat <<_LTECHO_EOF
3830 $1
3831 _LTECHO_EOF'
3832   }
3833   ECHO='func_fallback_echo'
3834 fi
3835
3836 # func_echo_all arg...
3837 # Invoke $ECHO with all args, space-separated.
3838 func_echo_all ()
3839 {
3840     $ECHO ""
3841 }
3842
3843 case "$ECHO" in
3844   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3845 $as_echo "printf" >&6; } ;;
3846   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3847 $as_echo "print -r" >&6; } ;;
3848   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3849 $as_echo "cat" >&6; } ;;
3850 esac
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865 DEPDIR="${am__leading_dot}deps"
3866
3867 ac_config_commands="$ac_config_commands depfiles"
3868
3869
3870 am_make=${MAKE-make}
3871 cat > confinc << 'END'
3872 am__doit:
3873         @echo this is the am__doit target
3874 .PHONY: am__doit
3875 END
3876 # If we don't find an include directive, just comment out the code.
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3878 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3879 am__include="#"
3880 am__quote=
3881 _am_result=none
3882 # First try GNU make style include.
3883 echo "include confinc" > confmf
3884 # Ignore all kinds of additional output from 'make'.
3885 case `$am_make -s -f confmf 2> /dev/null` in #(
3886 *the\ am__doit\ target*)
3887   am__include=include
3888   am__quote=
3889   _am_result=GNU
3890   ;;
3891 esac
3892 # Now try BSD make style include.
3893 if test "$am__include" = "#"; then
3894    echo '.include "confinc"' > confmf
3895    case `$am_make -s -f confmf 2> /dev/null` in #(
3896    *the\ am__doit\ target*)
3897      am__include=.include
3898      am__quote="\""
3899      _am_result=BSD
3900      ;;
3901    esac
3902 fi
3903
3904
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3906 $as_echo "$_am_result" >&6; }
3907 rm -f confinc confmf
3908
3909 # Check whether --enable-dependency-tracking was given.
3910 if test "${enable_dependency_tracking+set}" = set; then :
3911   enableval=$enable_dependency_tracking;
3912 fi
3913
3914 if test "x$enable_dependency_tracking" != xno; then
3915   am_depcomp="$ac_aux_dir/depcomp"
3916   AMDEPBACKSLASH='\'
3917   am__nodep='_no'
3918 fi
3919  if test "x$enable_dependency_tracking" != xno; then
3920   AMDEP_TRUE=
3921   AMDEP_FALSE='#'
3922 else
3923   AMDEP_TRUE='#'
3924   AMDEP_FALSE=
3925 fi
3926
3927
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933 if test -n "$ac_tool_prefix"; then
3934   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if ${ac_cv_prog_CC+:} false; then :
3939   $as_echo_n "(cached) " >&6
3940 else
3941   if test -n "$CC"; then
3942   ac_cv_prog_CC="$CC" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947   IFS=$as_save_IFS
3948   test -z "$as_dir" && as_dir=.
3949     for ac_exec_ext in '' $ac_executable_extensions; do
3950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953     break 2
3954   fi
3955 done
3956   done
3957 IFS=$as_save_IFS
3958
3959 fi
3960 fi
3961 CC=$ac_cv_prog_CC
3962 if test -n "$CC"; then
3963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3964 $as_echo "$CC" >&6; }
3965 else
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3968 fi
3969
3970
3971 fi
3972 if test -z "$ac_cv_prog_CC"; then
3973   ac_ct_CC=$CC
3974   # Extract the first word of "gcc", so it can be a program name with args.
3975 set dummy gcc; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3979   $as_echo_n "(cached) " >&6
3980 else
3981   if test -n "$ac_ct_CC"; then
3982   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987   IFS=$as_save_IFS
3988   test -z "$as_dir" && as_dir=.
3989     for ac_exec_ext in '' $ac_executable_extensions; do
3990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991     ac_cv_prog_ac_ct_CC="gcc"
3992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993     break 2
3994   fi
3995 done
3996   done
3997 IFS=$as_save_IFS
3998
3999 fi
4000 fi
4001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4002 if test -n "$ac_ct_CC"; then
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4004 $as_echo "$ac_ct_CC" >&6; }
4005 else
4006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4008 fi
4009
4010   if test "x$ac_ct_CC" = x; then
4011     CC=""
4012   else
4013     case $cross_compiling:$ac_tool_warned in
4014 yes:)
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4017 ac_tool_warned=yes ;;
4018 esac
4019     CC=$ac_ct_CC
4020   fi
4021 else
4022   CC="$ac_cv_prog_CC"
4023 fi
4024
4025 if test -z "$CC"; then
4026           if test -n "$ac_tool_prefix"; then
4027     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4028 set dummy ${ac_tool_prefix}cc; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_prog_CC+:} false; then :
4032   $as_echo_n "(cached) " >&6
4033 else
4034   if test -n "$CC"; then
4035   ac_cv_prog_CC="$CC" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040   IFS=$as_save_IFS
4041   test -z "$as_dir" && as_dir=.
4042     for ac_exec_ext in '' $ac_executable_extensions; do
4043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044     ac_cv_prog_CC="${ac_tool_prefix}cc"
4045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046     break 2
4047   fi
4048 done
4049   done
4050 IFS=$as_save_IFS
4051
4052 fi
4053 fi
4054 CC=$ac_cv_prog_CC
4055 if test -n "$CC"; then
4056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4057 $as_echo "$CC" >&6; }
4058 else
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061 fi
4062
4063
4064   fi
4065 fi
4066 if test -z "$CC"; then
4067   # Extract the first word of "cc", so it can be a program name with args.
4068 set dummy cc; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if ${ac_cv_prog_CC+:} false; then :
4072   $as_echo_n "(cached) " >&6
4073 else
4074   if test -n "$CC"; then
4075   ac_cv_prog_CC="$CC" # Let the user override the test.
4076 else
4077   ac_prog_rejected=no
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4080 do
4081   IFS=$as_save_IFS
4082   test -z "$as_dir" && as_dir=.
4083     for ac_exec_ext in '' $ac_executable_extensions; do
4084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4085     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4086        ac_prog_rejected=yes
4087        continue
4088      fi
4089     ac_cv_prog_CC="cc"
4090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091     break 2
4092   fi
4093 done
4094   done
4095 IFS=$as_save_IFS
4096
4097 if test $ac_prog_rejected = yes; then
4098   # We found a bogon in the path, so make sure we never use it.
4099   set dummy $ac_cv_prog_CC
4100   shift
4101   if test $# != 0; then
4102     # We chose a different compiler from the bogus one.
4103     # However, it has the same basename, so the bogon will be chosen
4104     # first if we set CC to just the basename; use the full file name.
4105     shift
4106     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4107   fi
4108 fi
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 fi
4122 if test -z "$CC"; then
4123   if test -n "$ac_tool_prefix"; then
4124   for ac_prog in cl.exe
4125   do
4126     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_CC+:} false; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133   if test -n "$CC"; then
4134   ac_cv_prog_CC="$CC" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139   IFS=$as_save_IFS
4140   test -z "$as_dir" && as_dir=.
4141     for ac_exec_ext in '' $ac_executable_extensions; do
4142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145     break 2
4146   fi
4147 done
4148   done
4149 IFS=$as_save_IFS
4150
4151 fi
4152 fi
4153 CC=$ac_cv_prog_CC
4154 if test -n "$CC"; then
4155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4156 $as_echo "$CC" >&6; }
4157 else
4158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4160 fi
4161
4162
4163     test -n "$CC" && break
4164   done
4165 fi
4166 if test -z "$CC"; then
4167   ac_ct_CC=$CC
4168   for ac_prog in cl.exe
4169 do
4170   # Extract the first word of "$ac_prog", so it can be a program name with args.
4171 set dummy $ac_prog; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   if test -n "$ac_ct_CC"; then
4178   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185     for ac_exec_ext in '' $ac_executable_extensions; do
4186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187     ac_cv_prog_ac_ct_CC="$ac_prog"
4188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189     break 2
4190   fi
4191 done
4192   done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4200 $as_echo "$ac_ct_CC" >&6; }
4201 else
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206
4207   test -n "$ac_ct_CC" && break
4208 done
4209
4210   if test "x$ac_ct_CC" = x; then
4211     CC=""
4212   else
4213     case $cross_compiling:$ac_tool_warned in
4214 yes:)
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4217 ac_tool_warned=yes ;;
4218 esac
4219     CC=$ac_ct_CC
4220   fi
4221 fi
4222
4223 fi
4224
4225
4226 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error $? "no acceptable C compiler found in \$PATH
4229 See \`config.log' for more details" "$LINENO" 5; }
4230
4231 # Provide some information about the compiler.
4232 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4233 set X $ac_compile
4234 ac_compiler=$2
4235 for ac_option in --version -v -V -qversion; do
4236   { { ac_try="$ac_compiler $ac_option >&5"
4237 case "(($ac_try" in
4238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239   *) ac_try_echo=$ac_try;;
4240 esac
4241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242 $as_echo "$ac_try_echo"; } >&5
4243   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4244   ac_status=$?
4245   if test -s conftest.err; then
4246     sed '10a\
4247 ... rest of stderr output deleted ...
4248          10q' conftest.err >conftest.er1
4249     cat conftest.er1 >&5
4250   fi
4251   rm -f conftest.er1 conftest.err
4252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4253   test $ac_status = 0; }
4254 done
4255
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h.  */
4258
4259 int
4260 main ()
4261 {
4262
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 ac_clean_files_save=$ac_clean_files
4268 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4269 # Try to create an executable without -o first, disregard a.out.
4270 # It will help us diagnose broken compilers, and finding out an intuition
4271 # of exeext.
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4273 $as_echo_n "checking whether the C compiler works... " >&6; }
4274 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4275
4276 # The possible output files:
4277 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4278
4279 ac_rmfiles=
4280 for ac_file in $ac_files
4281 do
4282   case $ac_file in
4283     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4284     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4285   esac
4286 done
4287 rm -f $ac_rmfiles
4288
4289 if { { ac_try="$ac_link_default"
4290 case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296   (eval "$ac_link_default") 2>&5
4297   ac_status=$?
4298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299   test $ac_status = 0; }; then :
4300   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4301 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4302 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4303 # so that the user can short-circuit this test for compilers unknown to
4304 # Autoconf.
4305 for ac_file in $ac_files ''
4306 do
4307   test -f "$ac_file" || continue
4308   case $ac_file in
4309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4310         ;;
4311     [ab].out )
4312         # We found the default executable, but exeext='' is most
4313         # certainly right.
4314         break;;
4315     *.* )
4316         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4317         then :; else
4318            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4319         fi
4320         # We set ac_cv_exeext here because the later test for it is not
4321         # safe: cross compilers may not add the suffix if given an `-o'
4322         # argument, so we may need to know it at that point already.
4323         # Even if this section looks crufty: it has the advantage of
4324         # actually working.
4325         break;;
4326     * )
4327         break;;
4328   esac
4329 done
4330 test "$ac_cv_exeext" = no && ac_cv_exeext=
4331
4332 else
4333   ac_file=''
4334 fi
4335 if test -z "$ac_file"; then :
4336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4338 $as_echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4343 as_fn_error 77 "C compiler cannot create executables
4344 See \`config.log' for more details" "$LINENO" 5; }
4345 else
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4347 $as_echo "yes" >&6; }
4348 fi
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4350 $as_echo_n "checking for C compiler default output file name... " >&6; }
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4352 $as_echo "$ac_file" >&6; }
4353 ac_exeext=$ac_cv_exeext
4354
4355 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4356 ac_clean_files=$ac_clean_files_save
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4358 $as_echo_n "checking for suffix of executables... " >&6; }
4359 if { { ac_try="$ac_link"
4360 case "(($ac_try" in
4361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362   *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366   (eval "$ac_link") 2>&5
4367   ac_status=$?
4368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369   test $ac_status = 0; }; then :
4370   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4371 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4372 # work properly (i.e., refer to `conftest.exe'), while it won't with
4373 # `rm'.
4374 for ac_file in conftest.exe conftest conftest.*; do
4375   test -f "$ac_file" || continue
4376   case $ac_file in
4377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4378     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4379           break;;
4380     * ) break;;
4381   esac
4382 done
4383 else
4384   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4386 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4387 See \`config.log' for more details" "$LINENO" 5; }
4388 fi
4389 rm -f conftest conftest$ac_cv_exeext
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4391 $as_echo "$ac_cv_exeext" >&6; }
4392
4393 rm -f conftest.$ac_ext
4394 EXEEXT=$ac_cv_exeext
4395 ac_exeext=$EXEEXT
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h.  */
4398 #include <stdio.h>
4399 int
4400 main ()
4401 {
4402 FILE *f = fopen ("conftest.out", "w");
4403  return ferror (f) || fclose (f) != 0;
4404
4405   ;
4406   return 0;
4407 }
4408 _ACEOF
4409 ac_clean_files="$ac_clean_files conftest.out"
4410 # Check that the compiler produces executables we can run.  If not, either
4411 # the compiler is broken, or we cross compile.
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4413 $as_echo_n "checking whether we are cross compiling... " >&6; }
4414 if test "$cross_compiling" != yes; then
4415   { { ac_try="$ac_link"
4416 case "(($ac_try" in
4417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418   *) ac_try_echo=$ac_try;;
4419 esac
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422   (eval "$ac_link") 2>&5
4423   ac_status=$?
4424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425   test $ac_status = 0; }
4426   if { ac_try='./conftest$ac_cv_exeext'
4427   { { case "(($ac_try" in
4428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429   *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433   (eval "$ac_try") 2>&5
4434   ac_status=$?
4435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436   test $ac_status = 0; }; }; then
4437     cross_compiling=no
4438   else
4439     if test "$cross_compiling" = maybe; then
4440         cross_compiling=yes
4441     else
4442         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444 as_fn_error $? "cannot run C compiled programs.
4445 If you meant to cross compile, use \`--host'.
4446 See \`config.log' for more details" "$LINENO" 5; }
4447     fi
4448   fi
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4451 $as_echo "$cross_compiling" >&6; }
4452
4453 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4454 ac_clean_files=$ac_clean_files_save
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4456 $as_echo_n "checking for suffix of object files... " >&6; }
4457 if ${ac_cv_objext+:} false; then :
4458   $as_echo_n "(cached) " >&6
4459 else
4460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h.  */
4462
4463 int
4464 main ()
4465 {
4466
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.o conftest.obj
4472 if { { ac_try="$ac_compile"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479   (eval "$ac_compile") 2>&5
4480   ac_status=$?
4481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482   test $ac_status = 0; }; then :
4483   for ac_file in conftest.o conftest.obj conftest.*; do
4484   test -f "$ac_file" || continue;
4485   case $ac_file in
4486     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4487     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4488        break;;
4489   esac
4490 done
4491 else
4492   $as_echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4497 as_fn_error $? "cannot compute suffix of object files: cannot compile
4498 See \`config.log' for more details" "$LINENO" 5; }
4499 fi
4500 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4503 $as_echo "$ac_cv_objext" >&6; }
4504 OBJEXT=$ac_cv_objext
4505 ac_objext=$OBJEXT
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4507 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4508 if ${ac_cv_c_compiler_gnu+:} false; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h.  */
4513
4514 int
4515 main ()
4516 {
4517 #ifndef __GNUC__
4518        choke me
4519 #endif
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526   ac_compiler_gnu=yes
4527 else
4528   ac_compiler_gnu=no
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4532
4533 fi
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4535 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4536 if test $ac_compiler_gnu = yes; then
4537   GCC=yes
4538 else
4539   GCC=
4540 fi
4541 ac_test_CFLAGS=${CFLAGS+set}
4542 ac_save_CFLAGS=$CFLAGS
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4544 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4545 if ${ac_cv_prog_cc_g+:} false; then :
4546   $as_echo_n "(cached) " >&6
4547 else
4548   ac_save_c_werror_flag=$ac_c_werror_flag
4549    ac_c_werror_flag=yes
4550    ac_cv_prog_cc_g=no
4551    CFLAGS="-g"
4552    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h.  */
4554
4555 int
4556 main ()
4557 {
4558
4559   ;
4560   return 0;
4561 }
4562 _ACEOF
4563 if ac_fn_c_try_compile "$LINENO"; then :
4564   ac_cv_prog_cc_g=yes
4565 else
4566   CFLAGS=""
4567       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h.  */
4569
4570 int
4571 main ()
4572 {
4573
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 if ac_fn_c_try_compile "$LINENO"; then :
4579
4580 else
4581   ac_c_werror_flag=$ac_save_c_werror_flag
4582          CFLAGS="-g"
4583          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h.  */
4585
4586 int
4587 main ()
4588 {
4589
4590   ;
4591   return 0;
4592 }
4593 _ACEOF
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595   ac_cv_prog_cc_g=yes
4596 fi
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 fi
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 fi
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602    ac_c_werror_flag=$ac_save_c_werror_flag
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4605 $as_echo "$ac_cv_prog_cc_g" >&6; }
4606 if test "$ac_test_CFLAGS" = set; then
4607   CFLAGS=$ac_save_CFLAGS
4608 elif test $ac_cv_prog_cc_g = yes; then
4609   if test "$GCC" = yes; then
4610     CFLAGS="-g -O2"
4611   else
4612     CFLAGS="-g"
4613   fi
4614 else
4615   if test "$GCC" = yes; then
4616     CFLAGS="-O2"
4617   else
4618     CFLAGS=
4619   fi
4620 fi
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4622 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4623 if ${ac_cv_prog_cc_c89+:} false; then :
4624   $as_echo_n "(cached) " >&6
4625 else
4626   ac_cv_prog_cc_c89=no
4627 ac_save_CC=$CC
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h.  */
4630 #include <stdarg.h>
4631 #include <stdio.h>
4632 struct stat;
4633 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4634 struct buf { int x; };
4635 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4636 static char *e (p, i)
4637      char **p;
4638      int i;
4639 {
4640   return p[i];
4641 }
4642 static char *f (char * (*g) (char **, int), char **p, ...)
4643 {
4644   char *s;
4645   va_list v;
4646   va_start (v,p);
4647   s = g (p, va_arg (v,int));
4648   va_end (v);
4649   return s;
4650 }
4651
4652 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4653    function prototypes and stuff, but not '\xHH' hex character constants.
4654    These don't provoke an error unfortunately, instead are silently treated
4655    as 'x'.  The following induces an error, until -std is added to get
4656    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4657    array size at least.  It's necessary to write '\x00'==0 to get something
4658    that's true only with -std.  */
4659 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4660
4661 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4662    inside strings and character constants.  */
4663 #define FOO(x) 'x'
4664 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4665
4666 int test (int i, double x);
4667 struct s1 {int (*f) (int a);};
4668 struct s2 {int (*f) (double a);};
4669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4670 int argc;
4671 char **argv;
4672 int
4673 main ()
4674 {
4675 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
4680 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4681         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4682 do
4683   CC="$ac_save_CC $ac_arg"
4684   if ac_fn_c_try_compile "$LINENO"; then :
4685   ac_cv_prog_cc_c89=$ac_arg
4686 fi
4687 rm -f core conftest.err conftest.$ac_objext
4688   test "x$ac_cv_prog_cc_c89" != "xno" && break
4689 done
4690 rm -f conftest.$ac_ext
4691 CC=$ac_save_CC
4692
4693 fi
4694 # AC_CACHE_VAL
4695 case "x$ac_cv_prog_cc_c89" in
4696   x)
4697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4698 $as_echo "none needed" >&6; } ;;
4699   xno)
4700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4701 $as_echo "unsupported" >&6; } ;;
4702   *)
4703     CC="$CC $ac_cv_prog_cc_c89"
4704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4705 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4706 esac
4707 if test "x$ac_cv_prog_cc_c89" != xno; then :
4708
4709 fi
4710
4711 ac_ext=c
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716
4717 ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4723 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4724 if ${am_cv_prog_cc_c_o+:} false; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729
4730 int
4731 main ()
4732 {
4733
4734   ;
4735   return 0;
4736 }
4737 _ACEOF
4738   # Make sure it works both with $CC and with simple cc.
4739   # Following AC_PROG_CC_C_O, we do the test twice because some
4740   # compilers refuse to overwrite an existing .o file with -o,
4741   # though they will create one.
4742   am_cv_prog_cc_c_o=yes
4743   for am_i in 1 2; do
4744     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4745    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4746    ac_status=$?
4747    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748    (exit $ac_status); } \
4749          && test -f conftest2.$ac_objext; then
4750       : OK
4751     else
4752       am_cv_prog_cc_c_o=no
4753       break
4754     fi
4755   done
4756   rm -f core conftest*
4757   unset am_i
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4760 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4761 if test "$am_cv_prog_cc_c_o" != yes; then
4762    # Losing compiler, so override with the script.
4763    # FIXME: It is wrong to rewrite CC.
4764    # But if we don't then we get into trouble of one sort or another.
4765    # A longer-term fix would be to have automake use am__CC in this case,
4766    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4767    CC="$am_aux_dir/compile $CC"
4768 fi
4769 ac_ext=c
4770 ac_cpp='$CPP $CPPFLAGS'
4771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774
4775
4776 depcc="$CC"   am_compiler_list=
4777
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4779 $as_echo_n "checking dependency style of $depcc... " >&6; }
4780 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4781   $as_echo_n "(cached) " >&6
4782 else
4783   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4784   # We make a subdir and do the tests there.  Otherwise we can end up
4785   # making bogus files that we don't know about and never remove.  For
4786   # instance it was reported that on HP-UX the gcc test will end up
4787   # making a dummy file named 'D' -- because '-MD' means "put the output
4788   # in D".
4789   rm -rf conftest.dir
4790   mkdir conftest.dir
4791   # Copy depcomp to subdir because otherwise we won't find it if we're
4792   # using a relative directory.
4793   cp "$am_depcomp" conftest.dir
4794   cd conftest.dir
4795   # We will build objects and dependencies in a subdirectory because
4796   # it helps to detect inapplicable dependency modes.  For instance
4797   # both Tru64's cc and ICC support -MD to output dependencies as a
4798   # side effect of compilation, but ICC will put the dependencies in
4799   # the current directory while Tru64 will put them in the object
4800   # directory.
4801   mkdir sub
4802
4803   am_cv_CC_dependencies_compiler_type=none
4804   if test "$am_compiler_list" = ""; then
4805      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4806   fi
4807   am__universal=false
4808   case " $depcc " in #(
4809      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4810      esac
4811
4812   for depmode in $am_compiler_list; do
4813     # Setup a source with many dependencies, because some compilers
4814     # like to wrap large dependency lists on column 80 (with \), and
4815     # we should not choose a depcomp mode which is confused by this.
4816     #
4817     # We need to recreate these files for each test, as the compiler may
4818     # overwrite some of them when testing with obscure command lines.
4819     # This happens at least with the AIX C compiler.
4820     : > sub/conftest.c
4821     for i in 1 2 3 4 5 6; do
4822       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4823       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4824       # Solaris 10 /bin/sh.
4825       echo '/* dummy */' > sub/conftst$i.h
4826     done
4827     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4828
4829     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4830     # mode.  It turns out that the SunPro C++ compiler does not properly
4831     # handle '-M -o', and we need to detect this.  Also, some Intel
4832     # versions had trouble with output in subdirs.
4833     am__obj=sub/conftest.${OBJEXT-o}
4834     am__minus_obj="-o $am__obj"
4835     case $depmode in
4836     gcc)
4837       # This depmode causes a compiler race in universal mode.
4838       test "$am__universal" = false || continue
4839       ;;
4840     nosideeffect)
4841       # After this tag, mechanisms are not by side-effect, so they'll
4842       # only be used when explicitly requested.
4843       if test "x$enable_dependency_tracking" = xyes; then
4844         continue
4845       else
4846         break
4847       fi
4848       ;;
4849     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4850       # This compiler won't grok '-c -o', but also, the minuso test has
4851       # not run yet.  These depmodes are late enough in the game, and
4852       # so weak that their functioning should not be impacted.
4853       am__obj=conftest.${OBJEXT-o}
4854       am__minus_obj=
4855       ;;
4856     none) break ;;
4857     esac
4858     if depmode=$depmode \
4859        source=sub/conftest.c object=$am__obj \
4860        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4861        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4862          >/dev/null 2>conftest.err &&
4863        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4864        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4865        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4866        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4867       # icc doesn't choke on unknown options, it will just issue warnings
4868       # or remarks (even with -Werror).  So we grep stderr for any message
4869       # that says an option was ignored or not supported.
4870       # When given -MP, icc 7.0 and 7.1 complain thusly:
4871       #   icc: Command line warning: ignoring option '-M'; no argument required
4872       # The diagnosis changed in icc 8.0:
4873       #   icc: Command line remark: option '-MP' not supported
4874       if (grep 'ignoring option' conftest.err ||
4875           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4876         am_cv_CC_dependencies_compiler_type=$depmode
4877         break
4878       fi
4879     fi
4880   done
4881
4882   cd ..
4883   rm -rf conftest.dir
4884 else
4885   am_cv_CC_dependencies_compiler_type=none
4886 fi
4887
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4890 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4891 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4892
4893  if
4894   test "x$enable_dependency_tracking" != xno \
4895   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4896   am__fastdepCC_TRUE=
4897   am__fastdepCC_FALSE='#'
4898 else
4899   am__fastdepCC_TRUE='#'
4900   am__fastdepCC_FALSE=
4901 fi
4902
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4905 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4906 if ${ac_cv_path_SED+:} false; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4910      for ac_i in 1 2 3 4 5 6 7; do
4911        ac_script="$ac_script$as_nl$ac_script"
4912      done
4913      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4914      { ac_script=; unset ac_script;}
4915      if test -z "$SED"; then
4916   ac_path_SED_found=false
4917   # Loop through the user's path and test for each of PROGNAME-LIST
4918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921   IFS=$as_save_IFS
4922   test -z "$as_dir" && as_dir=.
4923     for ac_prog in sed gsed; do
4924     for ac_exec_ext in '' $ac_executable_extensions; do
4925       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4926       as_fn_executable_p "$ac_path_SED" || continue
4927 # Check for GNU ac_path_SED and select it if it is found.
4928   # Check for GNU $ac_path_SED
4929 case `"$ac_path_SED" --version 2>&1` in
4930 *GNU*)
4931   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4932 *)
4933   ac_count=0
4934   $as_echo_n 0123456789 >"conftest.in"
4935   while :
4936   do
4937     cat "conftest.in" "conftest.in" >"conftest.tmp"
4938     mv "conftest.tmp" "conftest.in"
4939     cp "conftest.in" "conftest.nl"
4940     $as_echo '' >> "conftest.nl"
4941     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4942     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4943     as_fn_arith $ac_count + 1 && ac_count=$as_val
4944     if test $ac_count -gt ${ac_path_SED_max-0}; then
4945       # Best one so far, save it but keep looking for a better one
4946       ac_cv_path_SED="$ac_path_SED"
4947       ac_path_SED_max=$ac_count
4948     fi
4949     # 10*(2^10) chars as input seems more than enough
4950     test $ac_count -gt 10 && break
4951   done
4952   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4953 esac
4954
4955       $ac_path_SED_found && break 3
4956     done
4957   done
4958   done
4959 IFS=$as_save_IFS
4960   if test -z "$ac_cv_path_SED"; then
4961     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4962   fi
4963 else
4964   ac_cv_path_SED=$SED
4965 fi
4966
4967 fi
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4969 $as_echo "$ac_cv_path_SED" >&6; }
4970  SED="$ac_cv_path_SED"
4971   rm -f conftest.sed
4972
4973 test -z "$SED" && SED=sed
4974 Xsed="$SED -e 1s/^X//"
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4987 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4988 if ${ac_cv_path_GREP+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   if test -z "$GREP"; then
4992   ac_path_GREP_found=false
4993   # Loop through the user's path and test for each of PROGNAME-LIST
4994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999     for ac_prog in grep ggrep; do
5000     for ac_exec_ext in '' $ac_executable_extensions; do
5001       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5002       as_fn_executable_p "$ac_path_GREP" || continue
5003 # Check for GNU ac_path_GREP and select it if it is found.
5004   # Check for GNU $ac_path_GREP
5005 case `"$ac_path_GREP" --version 2>&1` in
5006 *GNU*)
5007   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5008 *)
5009   ac_count=0
5010   $as_echo_n 0123456789 >"conftest.in"
5011   while :
5012   do
5013     cat "conftest.in" "conftest.in" >"conftest.tmp"
5014     mv "conftest.tmp" "conftest.in"
5015     cp "conftest.in" "conftest.nl"
5016     $as_echo 'GREP' >> "conftest.nl"
5017     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5018     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5019     as_fn_arith $ac_count + 1 && ac_count=$as_val
5020     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5021       # Best one so far, save it but keep looking for a better one
5022       ac_cv_path_GREP="$ac_path_GREP"
5023       ac_path_GREP_max=$ac_count
5024     fi
5025     # 10*(2^10) chars as input seems more than enough
5026     test $ac_count -gt 10 && break
5027   done
5028   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5029 esac
5030
5031       $ac_path_GREP_found && break 3
5032     done
5033   done
5034   done
5035 IFS=$as_save_IFS
5036   if test -z "$ac_cv_path_GREP"; then
5037     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5038   fi
5039 else
5040   ac_cv_path_GREP=$GREP
5041 fi
5042
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5045 $as_echo "$ac_cv_path_GREP" >&6; }
5046  GREP="$ac_cv_path_GREP"
5047
5048
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5050 $as_echo_n "checking for egrep... " >&6; }
5051 if ${ac_cv_path_EGREP+:} false; then :
5052   $as_echo_n "(cached) " >&6
5053 else
5054   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5055    then ac_cv_path_EGREP="$GREP -E"
5056    else
5057      if test -z "$EGREP"; then
5058   ac_path_EGREP_found=false
5059   # Loop through the user's path and test for each of PROGNAME-LIST
5060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065     for ac_prog in egrep; do
5066     for ac_exec_ext in '' $ac_executable_extensions; do
5067       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5068       as_fn_executable_p "$ac_path_EGREP" || continue
5069 # Check for GNU ac_path_EGREP and select it if it is found.
5070   # Check for GNU $ac_path_EGREP
5071 case `"$ac_path_EGREP" --version 2>&1` in
5072 *GNU*)
5073   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5074 *)
5075   ac_count=0
5076   $as_echo_n 0123456789 >"conftest.in"
5077   while :
5078   do
5079     cat "conftest.in" "conftest.in" >"conftest.tmp"
5080     mv "conftest.tmp" "conftest.in"
5081     cp "conftest.in" "conftest.nl"
5082     $as_echo 'EGREP' >> "conftest.nl"
5083     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5084     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5085     as_fn_arith $ac_count + 1 && ac_count=$as_val
5086     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5087       # Best one so far, save it but keep looking for a better one
5088       ac_cv_path_EGREP="$ac_path_EGREP"
5089       ac_path_EGREP_max=$ac_count
5090     fi
5091     # 10*(2^10) chars as input seems more than enough
5092     test $ac_count -gt 10 && break
5093   done
5094   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5095 esac
5096
5097       $ac_path_EGREP_found && break 3
5098     done
5099   done
5100   done
5101 IFS=$as_save_IFS
5102   if test -z "$ac_cv_path_EGREP"; then
5103     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5104   fi
5105 else
5106   ac_cv_path_EGREP=$EGREP
5107 fi
5108
5109    fi
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5112 $as_echo "$ac_cv_path_EGREP" >&6; }
5113  EGREP="$ac_cv_path_EGREP"
5114
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5117 $as_echo_n "checking for fgrep... " >&6; }
5118 if ${ac_cv_path_FGREP+:} false; then :
5119   $as_echo_n "(cached) " >&6
5120 else
5121   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5122    then ac_cv_path_FGREP="$GREP -F"
5123    else
5124      if test -z "$FGREP"; then
5125   ac_path_FGREP_found=false
5126   # Loop through the user's path and test for each of PROGNAME-LIST
5127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132     for ac_prog in fgrep; do
5133     for ac_exec_ext in '' $ac_executable_extensions; do
5134       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5135       as_fn_executable_p "$ac_path_FGREP" || continue
5136 # Check for GNU ac_path_FGREP and select it if it is found.
5137   # Check for GNU $ac_path_FGREP
5138 case `"$ac_path_FGREP" --version 2>&1` in
5139 *GNU*)
5140   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5141 *)
5142   ac_count=0
5143   $as_echo_n 0123456789 >"conftest.in"
5144   while :
5145   do
5146     cat "conftest.in" "conftest.in" >"conftest.tmp"
5147     mv "conftest.tmp" "conftest.in"
5148     cp "conftest.in" "conftest.nl"
5149     $as_echo 'FGREP' >> "conftest.nl"
5150     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5151     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5152     as_fn_arith $ac_count + 1 && ac_count=$as_val
5153     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5154       # Best one so far, save it but keep looking for a better one
5155       ac_cv_path_FGREP="$ac_path_FGREP"
5156       ac_path_FGREP_max=$ac_count
5157     fi
5158     # 10*(2^10) chars as input seems more than enough
5159     test $ac_count -gt 10 && break
5160   done
5161   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5162 esac
5163
5164       $ac_path_FGREP_found && break 3
5165     done
5166   done
5167   done
5168 IFS=$as_save_IFS
5169   if test -z "$ac_cv_path_FGREP"; then
5170     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5171   fi
5172 else
5173   ac_cv_path_FGREP=$FGREP
5174 fi
5175
5176    fi
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5179 $as_echo "$ac_cv_path_FGREP" >&6; }
5180  FGREP="$ac_cv_path_FGREP"
5181
5182
5183 test -z "$GREP" && GREP=grep
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203 # Check whether --with-gnu-ld was given.
5204 if test "${with_gnu_ld+set}" = set; then :
5205   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5206 else
5207   with_gnu_ld=no
5208 fi
5209
5210 ac_prog=ld
5211 if test "$GCC" = yes; then
5212   # Check if gcc -print-prog-name=ld gives a path.
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5214 $as_echo_n "checking for ld used by $CC... " >&6; }
5215   case $host in
5216   *-*-mingw*)
5217     # gcc leaves a trailing carriage return which upsets mingw
5218     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5219   *)
5220     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5221   esac
5222   case $ac_prog in
5223     # Accept absolute paths.
5224     [\\/]* | ?:[\\/]*)
5225       re_direlt='/[^/][^/]*/\.\./'
5226       # Canonicalize the pathname of ld
5227       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5228       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5229         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5230       done
5231       test -z "$LD" && LD="$ac_prog"
5232       ;;
5233   "")
5234     # If it fails, then pretend we aren't using GCC.
5235     ac_prog=ld
5236     ;;
5237   *)
5238     # If it is relative, then search for the first ld in PATH.
5239     with_gnu_ld=unknown
5240     ;;
5241   esac
5242 elif test "$with_gnu_ld" = yes; then
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5244 $as_echo_n "checking for GNU ld... " >&6; }
5245 else
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5247 $as_echo_n "checking for non-GNU ld... " >&6; }
5248 fi
5249 if ${lt_cv_path_LD+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   if test -z "$LD"; then
5253   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5254   for ac_dir in $PATH; do
5255     IFS="$lt_save_ifs"
5256     test -z "$ac_dir" && ac_dir=.
5257     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5258       lt_cv_path_LD="$ac_dir/$ac_prog"
5259       # Check to see if the program is GNU ld.  I'd rather use --version,
5260       # but apparently some variants of GNU ld only accept -v.
5261       # Break only if it was the GNU/non-GNU ld that we prefer.
5262       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5263       *GNU* | *'with BFD'*)
5264         test "$with_gnu_ld" != no && break
5265         ;;
5266       *)
5267         test "$with_gnu_ld" != yes && break
5268         ;;
5269       esac
5270     fi
5271   done
5272   IFS="$lt_save_ifs"
5273 else
5274   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5275 fi
5276 fi
5277
5278 LD="$lt_cv_path_LD"
5279 if test -n "$LD"; then
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5281 $as_echo "$LD" >&6; }
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 fi
5286 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5288 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5289 if ${lt_cv_prog_gnu_ld+:} false; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5293 case `$LD -v 2>&1 </dev/null` in
5294 *GNU* | *'with BFD'*)
5295   lt_cv_prog_gnu_ld=yes
5296   ;;
5297 *)
5298   lt_cv_prog_gnu_ld=no
5299   ;;
5300 esac
5301 fi
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5303 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5304 with_gnu_ld=$lt_cv_prog_gnu_ld
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5315 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5316 if ${lt_cv_path_NM+:} false; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   if test -n "$NM"; then
5320   # Let the user override the test.
5321   lt_cv_path_NM="$NM"
5322 else
5323   lt_nm_to_check="${ac_tool_prefix}nm"
5324   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5325     lt_nm_to_check="$lt_nm_to_check nm"
5326   fi
5327   for lt_tmp_nm in $lt_nm_to_check; do
5328     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5329     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5330       IFS="$lt_save_ifs"
5331       test -z "$ac_dir" && ac_dir=.
5332       tmp_nm="$ac_dir/$lt_tmp_nm"
5333       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5334         # Check to see if the nm accepts a BSD-compat flag.
5335         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5336         #   nm: unknown option "B" ignored
5337         # Tru64's nm complains that /dev/null is an invalid object file
5338         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5339         */dev/null* | *'Invalid file or object type'*)
5340           lt_cv_path_NM="$tmp_nm -B"
5341           break
5342           ;;
5343         *)
5344           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5345           */dev/null*)
5346             lt_cv_path_NM="$tmp_nm -p"
5347             break
5348             ;;
5349           *)
5350             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5351             continue # so that we can try to find one that supports BSD flags
5352             ;;
5353           esac
5354           ;;
5355         esac
5356       fi
5357     done
5358     IFS="$lt_save_ifs"
5359   done
5360   : ${lt_cv_path_NM=no}
5361 fi
5362 fi
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5364 $as_echo "$lt_cv_path_NM" >&6; }
5365 if test "$lt_cv_path_NM" != "no"; then
5366   NM="$lt_cv_path_NM"
5367 else
5368   # Didn't find any BSD compatible name lister, look for dumpbin.
5369   if test -n "$DUMPBIN"; then :
5370     # Let the user override the test.
5371   else
5372     if test -n "$ac_tool_prefix"; then
5373   for ac_prog in dumpbin "link -dump"
5374   do
5375     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_DUMPBIN+:} false; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   if test -n "$DUMPBIN"; then
5383   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388   IFS=$as_save_IFS
5389   test -z "$as_dir" && as_dir=.
5390     for ac_exec_ext in '' $ac_executable_extensions; do
5391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394     break 2
5395   fi
5396 done
5397   done
5398 IFS=$as_save_IFS
5399
5400 fi
5401 fi
5402 DUMPBIN=$ac_cv_prog_DUMPBIN
5403 if test -n "$DUMPBIN"; then
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5405 $as_echo "$DUMPBIN" >&6; }
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410
5411
5412     test -n "$DUMPBIN" && break
5413   done
5414 fi
5415 if test -z "$DUMPBIN"; then
5416   ac_ct_DUMPBIN=$DUMPBIN
5417   for ac_prog in dumpbin "link -dump"
5418 do
5419   # Extract the first word of "$ac_prog", so it can be a program name with args.
5420 set dummy $ac_prog; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   if test -n "$ac_ct_DUMPBIN"; then
5427   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441   done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5447 if test -n "$ac_ct_DUMPBIN"; then
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5449 $as_echo "$ac_ct_DUMPBIN" >&6; }
5450 else
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455
5456   test -n "$ac_ct_DUMPBIN" && break
5457 done
5458
5459   if test "x$ac_ct_DUMPBIN" = x; then
5460     DUMPBIN=":"
5461   else
5462     case $cross_compiling:$ac_tool_warned in
5463 yes:)
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5467 esac
5468     DUMPBIN=$ac_ct_DUMPBIN
5469   fi
5470 fi
5471
5472     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5473     *COFF*)
5474       DUMPBIN="$DUMPBIN -symbols"
5475       ;;
5476     *)
5477       DUMPBIN=:
5478       ;;
5479     esac
5480   fi
5481
5482   if test "$DUMPBIN" != ":"; then
5483     NM="$DUMPBIN"
5484   fi
5485 fi
5486 test -z "$NM" && NM=nm
5487
5488
5489
5490
5491
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5494 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5495 if ${lt_cv_nm_interface+:} false; then :
5496   $as_echo_n "(cached) " >&6
5497 else
5498   lt_cv_nm_interface="BSD nm"
5499   echo "int some_variable = 0;" > conftest.$ac_ext
5500   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5501   (eval "$ac_compile" 2>conftest.err)
5502   cat conftest.err >&5
5503   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5504   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5505   cat conftest.err >&5
5506   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5507   cat conftest.out >&5
5508   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5509     lt_cv_nm_interface="MS dumpbin"
5510   fi
5511   rm -f conftest*
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5514 $as_echo "$lt_cv_nm_interface" >&6; }
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5517 $as_echo_n "checking whether ln -s works... " >&6; }
5518 LN_S=$as_ln_s
5519 if test "$LN_S" = "ln -s"; then
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5522 else
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5524 $as_echo "no, using $LN_S" >&6; }
5525 fi
5526
5527 # find the maximum length of command line arguments
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5529 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5530 if ${lt_cv_sys_max_cmd_len+:} false; then :
5531   $as_echo_n "(cached) " >&6
5532 else
5533     i=0
5534   teststring="ABCD"
5535
5536   case $build_os in
5537   msdosdjgpp*)
5538     # On DJGPP, this test can blow up pretty badly due to problems in libc
5539     # (any single argument exceeding 2000 bytes causes a buffer overrun
5540     # during glob expansion).  Even if it were fixed, the result of this
5541     # check would be larger than it should be.
5542     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5543     ;;
5544
5545   gnu*)
5546     # Under GNU Hurd, this test is not required because there is
5547     # no limit to the length of command line arguments.
5548     # Libtool will interpret -1 as no limit whatsoever
5549     lt_cv_sys_max_cmd_len=-1;
5550     ;;
5551
5552   cygwin* | mingw* | cegcc*)
5553     # On Win9x/ME, this test blows up -- it succeeds, but takes
5554     # about 5 minutes as the teststring grows exponentially.
5555     # Worse, since 9x/ME are not pre-emptively multitasking,
5556     # you end up with a "frozen" computer, even though with patience
5557     # the test eventually succeeds (with a max line length of 256k).
5558     # Instead, let's just punt: use the minimum linelength reported by
5559     # all of the supported platforms: 8192 (on NT/2K/XP).
5560     lt_cv_sys_max_cmd_len=8192;
5561     ;;
5562
5563   mint*)
5564     # On MiNT this can take a long time and run out of memory.
5565     lt_cv_sys_max_cmd_len=8192;
5566     ;;
5567
5568   amigaos*)
5569     # On AmigaOS with pdksh, this test takes hours, literally.
5570     # So we just punt and use a minimum line length of 8192.
5571     lt_cv_sys_max_cmd_len=8192;
5572     ;;
5573
5574   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5575     # This has been around since 386BSD, at least.  Likely further.
5576     if test -x /sbin/sysctl; then
5577       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5578     elif test -x /usr/sbin/sysctl; then
5579       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5580     else
5581       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5582     fi
5583     # And add a safety zone
5584     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5586     ;;
5587
5588   interix*)
5589     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5590     lt_cv_sys_max_cmd_len=196608
5591     ;;
5592
5593   os2*)
5594     # The test takes a long time on OS/2.
5595     lt_cv_sys_max_cmd_len=8192
5596     ;;
5597
5598   osf*)
5599     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5600     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5601     # nice to cause kernel panics so lets avoid the loop below.
5602     # First set a reasonable default.
5603     lt_cv_sys_max_cmd_len=16384
5604     #
5605     if test -x /sbin/sysconfig; then
5606       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5607         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5608       esac
5609     fi
5610     ;;
5611   sco3.2v5*)
5612     lt_cv_sys_max_cmd_len=102400
5613     ;;
5614   sysv5* | sco5v6* | sysv4.2uw2*)
5615     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5616     if test -n "$kargmax"; then
5617       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5618     else
5619       lt_cv_sys_max_cmd_len=32768
5620     fi
5621     ;;
5622   *)
5623     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5624     if test -n "$lt_cv_sys_max_cmd_len"; then
5625       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5626       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5627     else
5628       # Make teststring a little bigger before we do anything with it.
5629       # a 1K string should be a reasonable start.
5630       for i in 1 2 3 4 5 6 7 8 ; do
5631         teststring=$teststring$teststring
5632       done
5633       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5634       # If test is not a shell built-in, we'll probably end up computing a
5635       # maximum length that is only half of the actual maximum length, but
5636       # we can't tell.
5637       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5638                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5639               test $i != 17 # 1/2 MB should be enough
5640       do
5641         i=`expr $i + 1`
5642         teststring=$teststring$teststring
5643       done
5644       # Only check the string length outside the loop.
5645       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5646       teststring=
5647       # Add a significant safety factor because C++ compilers can tack on
5648       # massive amounts of additional arguments before passing them to the
5649       # linker.  It appears as though 1/2 is a usable value.
5650       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5651     fi
5652     ;;
5653   esac
5654
5655 fi
5656
5657 if test -n $lt_cv_sys_max_cmd_len ; then
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5659 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5660 else
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5662 $as_echo "none" >&6; }
5663 fi
5664 max_cmd_len=$lt_cv_sys_max_cmd_len
5665
5666
5667
5668
5669
5670
5671 : ${CP="cp -f"}
5672 : ${MV="mv -f"}
5673 : ${RM="rm -f"}
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5676 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5677 # Try some XSI features
5678 xsi_shell=no
5679 ( _lt_dummy="a/b/c"
5680   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5681       = c,a/b,b/c, \
5682     && eval 'test $(( 1 + 1 )) -eq 2 \
5683     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5684   && xsi_shell=yes
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5686 $as_echo "$xsi_shell" >&6; }
5687
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5690 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5691 lt_shell_append=no
5692 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5693     >/dev/null 2>&1 \
5694   && lt_shell_append=yes
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5696 $as_echo "$lt_shell_append" >&6; }
5697
5698
5699 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5700   lt_unset=unset
5701 else
5702   lt_unset=false
5703 fi
5704
5705
5706
5707
5708
5709 # test EBCDIC or ASCII
5710 case `echo X|tr X '\101'` in
5711  A) # ASCII based system
5712     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5713   lt_SP2NL='tr \040 \012'
5714   lt_NL2SP='tr \015\012 \040\040'
5715   ;;
5716  *) # EBCDIC based system
5717   lt_SP2NL='tr \100 \n'
5718   lt_NL2SP='tr \r\n \100\100'
5719   ;;
5720 esac
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5731 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5732 if ${lt_cv_to_host_file_cmd+:} false; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735   case $host in
5736   *-*-mingw* )
5737     case $build in
5738       *-*-mingw* ) # actually msys
5739         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5740         ;;
5741       *-*-cygwin* )
5742         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5743         ;;
5744       * ) # otherwise, assume *nix
5745         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5746         ;;
5747     esac
5748     ;;
5749   *-*-cygwin* )
5750     case $build in
5751       *-*-mingw* ) # actually msys
5752         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5753         ;;
5754       *-*-cygwin* )
5755         lt_cv_to_host_file_cmd=func_convert_file_noop
5756         ;;
5757       * ) # otherwise, assume *nix
5758         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5759         ;;
5760     esac
5761     ;;
5762   * ) # unhandled hosts (and "normal" native builds)
5763     lt_cv_to_host_file_cmd=func_convert_file_noop
5764     ;;
5765 esac
5766
5767 fi
5768
5769 to_host_file_cmd=$lt_cv_to_host_file_cmd
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5771 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5772
5773
5774
5775
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5778 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5779 if ${lt_cv_to_tool_file_cmd+:} false; then :
5780   $as_echo_n "(cached) " >&6
5781 else
5782   #assume ordinary cross tools, or native build.
5783 lt_cv_to_tool_file_cmd=func_convert_file_noop
5784 case $host in
5785   *-*-mingw* )
5786     case $build in
5787       *-*-mingw* ) # actually msys
5788         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5789         ;;
5790     esac
5791     ;;
5792 esac
5793
5794 fi
5795
5796 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5798 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5799
5800
5801
5802
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5805 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5806 if ${lt_cv_ld_reload_flag+:} false; then :
5807   $as_echo_n "(cached) " >&6
5808 else
5809   lt_cv_ld_reload_flag='-r'
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5812 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5813 reload_flag=$lt_cv_ld_reload_flag
5814 case $reload_flag in
5815 "" | " "*) ;;
5816 *) reload_flag=" $reload_flag" ;;
5817 esac
5818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5819 case $host_os in
5820   cygwin* | mingw* | pw32* | cegcc*)
5821     if test "$GCC" != yes; then
5822       reload_cmds=false
5823     fi
5824     ;;
5825   darwin*)
5826     if test "$GCC" = yes; then
5827       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5828     else
5829       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5830     fi
5831     ;;
5832 esac
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842 if test -n "$ac_tool_prefix"; then
5843   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5844 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846 $as_echo_n "checking for $ac_word... " >&6; }
5847 if ${ac_cv_prog_OBJDUMP+:} false; then :
5848   $as_echo_n "(cached) " >&6
5849 else
5850   if test -n "$OBJDUMP"; then
5851   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5852 else
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858     for ac_exec_ext in '' $ac_executable_extensions; do
5859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865   done
5866 IFS=$as_save_IFS
5867
5868 fi
5869 fi
5870 OBJDUMP=$ac_cv_prog_OBJDUMP
5871 if test -n "$OBJDUMP"; then
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5873 $as_echo "$OBJDUMP" >&6; }
5874 else
5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878
5879
5880 fi
5881 if test -z "$ac_cv_prog_OBJDUMP"; then
5882   ac_ct_OBJDUMP=$OBJDUMP
5883   # Extract the first word of "objdump", so it can be a program name with args.
5884 set dummy objdump; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890   if test -n "$ac_ct_OBJDUMP"; then
5891   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898     for ac_exec_ext in '' $ac_executable_extensions; do
5899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905   done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5911 if test -n "$ac_ct_OBJDUMP"; then
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5913 $as_echo "$ac_ct_OBJDUMP" >&6; }
5914 else
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919   if test "x$ac_ct_OBJDUMP" = x; then
5920     OBJDUMP="false"
5921   else
5922     case $cross_compiling:$ac_tool_warned in
5923 yes:)
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926 ac_tool_warned=yes ;;
5927 esac
5928     OBJDUMP=$ac_ct_OBJDUMP
5929   fi
5930 else
5931   OBJDUMP="$ac_cv_prog_OBJDUMP"
5932 fi
5933
5934 test -z "$OBJDUMP" && OBJDUMP=objdump
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5945 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5946 if ${lt_cv_deplibs_check_method+:} false; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   lt_cv_file_magic_cmd='$MAGIC_CMD'
5950 lt_cv_file_magic_test_file=
5951 lt_cv_deplibs_check_method='unknown'
5952 # Need to set the preceding variable on all platforms that support
5953 # interlibrary dependencies.
5954 # 'none' -- dependencies not supported.
5955 # `unknown' -- same as none, but documents that we really don't know.
5956 # 'pass_all' -- all dependencies passed with no checks.
5957 # 'test_compile' -- check by making test program.
5958 # 'file_magic [[regex]]' -- check by looking for files in library path
5959 # which responds to the $file_magic_cmd with a given extended regex.
5960 # If you have `file' or equivalent on your system and you're not sure
5961 # whether `pass_all' will *always* work, you probably want this one.
5962
5963 case $host_os in
5964 aix[4-9]*)
5965   lt_cv_deplibs_check_method=pass_all
5966   ;;
5967
5968 beos*)
5969   lt_cv_deplibs_check_method=pass_all
5970   ;;
5971
5972 bsdi[45]*)
5973   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5974   lt_cv_file_magic_cmd='/usr/bin/file -L'
5975   lt_cv_file_magic_test_file=/shlib/libc.so
5976   ;;
5977
5978 cygwin*)
5979   # func_win32_libid is a shell function defined in ltmain.sh
5980   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5981   lt_cv_file_magic_cmd='func_win32_libid'
5982   ;;
5983
5984 mingw* | pw32*)
5985   # Base MSYS/MinGW do not provide the 'file' command needed by
5986   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5987   # unless we find 'file', for example because we are cross-compiling.
5988   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5989   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5990     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5991     lt_cv_file_magic_cmd='func_win32_libid'
5992   else
5993     # Keep this pattern in sync with the one in func_win32_libid.
5994     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5995     lt_cv_file_magic_cmd='$OBJDUMP -f'
5996   fi
5997   ;;
5998
5999 cegcc*)
6000   # use the weaker test based on 'objdump'. See mingw*.
6001   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6002   lt_cv_file_magic_cmd='$OBJDUMP -f'
6003   ;;
6004
6005 darwin* | rhapsody*)
6006   lt_cv_deplibs_check_method=pass_all
6007   ;;
6008
6009 freebsd* | dragonfly*)
6010   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6011     case $host_cpu in
6012     i*86 )
6013       # Not sure whether the presence of OpenBSD here was a mistake.
6014       # Let's accept both of them until this is cleared up.
6015       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6016       lt_cv_file_magic_cmd=/usr/bin/file
6017       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6018       ;;
6019     esac
6020   else
6021     lt_cv_deplibs_check_method=pass_all
6022   fi
6023   ;;
6024
6025 gnu*)
6026   lt_cv_deplibs_check_method=pass_all
6027   ;;
6028
6029 haiku*)
6030   lt_cv_deplibs_check_method=pass_all
6031   ;;
6032
6033 hpux10.20* | hpux11*)
6034   lt_cv_file_magic_cmd=/usr/bin/file
6035   case $host_cpu in
6036   ia64*)
6037     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6038     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6039     ;;
6040   hppa*64*)
6041     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]'
6042     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6043     ;;
6044   *)
6045     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6046     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6047     ;;
6048   esac
6049   ;;
6050
6051 interix[3-9]*)
6052   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6053   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6054   ;;
6055
6056 irix5* | irix6* | nonstopux*)
6057   case $LD in
6058   *-32|*"-32 ") libmagic=32-bit;;
6059   *-n32|*"-n32 ") libmagic=N32;;
6060   *-64|*"-64 ") libmagic=64-bit;;
6061   *) libmagic=never-match;;
6062   esac
6063   lt_cv_deplibs_check_method=pass_all
6064   ;;
6065
6066 # This must be glibc/ELF.
6067 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6068   lt_cv_deplibs_check_method=pass_all
6069   ;;
6070
6071 netbsd*)
6072   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6073     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6074   else
6075     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6076   fi
6077   ;;
6078
6079 newos6*)
6080   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6081   lt_cv_file_magic_cmd=/usr/bin/file
6082   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6083   ;;
6084
6085 *nto* | *qnx*)
6086   lt_cv_deplibs_check_method=pass_all
6087   ;;
6088
6089 openbsd*)
6090   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6091     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6092   else
6093     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6094   fi
6095   ;;
6096
6097 osf3* | osf4* | osf5*)
6098   lt_cv_deplibs_check_method=pass_all
6099   ;;
6100
6101 rdos*)
6102   lt_cv_deplibs_check_method=pass_all
6103   ;;
6104
6105 solaris*)
6106   lt_cv_deplibs_check_method=pass_all
6107   ;;
6108
6109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6110   lt_cv_deplibs_check_method=pass_all
6111   ;;
6112
6113 sysv4 | sysv4.3*)
6114   case $host_vendor in
6115   motorola)
6116     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]'
6117     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6118     ;;
6119   ncr)
6120     lt_cv_deplibs_check_method=pass_all
6121     ;;
6122   sequent)
6123     lt_cv_file_magic_cmd='/bin/file'
6124     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6125     ;;
6126   sni)
6127     lt_cv_file_magic_cmd='/bin/file'
6128     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6129     lt_cv_file_magic_test_file=/lib/libc.so
6130     ;;
6131   siemens)
6132     lt_cv_deplibs_check_method=pass_all
6133     ;;
6134   pc)
6135     lt_cv_deplibs_check_method=pass_all
6136     ;;
6137   esac
6138   ;;
6139
6140 tpf*)
6141   lt_cv_deplibs_check_method=pass_all
6142   ;;
6143 esac
6144
6145 fi
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6147 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6148
6149 file_magic_glob=
6150 want_nocaseglob=no
6151 if test "$build" = "$host"; then
6152   case $host_os in
6153   mingw* | pw32*)
6154     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6155       want_nocaseglob=yes
6156     else
6157       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6158     fi
6159     ;;
6160   esac
6161 fi
6162
6163 file_magic_cmd=$lt_cv_file_magic_cmd
6164 deplibs_check_method=$lt_cv_deplibs_check_method
6165 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188 if test -n "$ac_tool_prefix"; then
6189   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6190 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_prog_DLLTOOL+:} false; then :
6194   $as_echo_n "(cached) " >&6
6195 else
6196   if test -n "$DLLTOOL"; then
6197   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204     for ac_exec_ext in '' $ac_executable_extensions; do
6205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211   done
6212 IFS=$as_save_IFS
6213
6214 fi
6215 fi
6216 DLLTOOL=$ac_cv_prog_DLLTOOL
6217 if test -n "$DLLTOOL"; then
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6219 $as_echo "$DLLTOOL" >&6; }
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6223 fi
6224
6225
6226 fi
6227 if test -z "$ac_cv_prog_DLLTOOL"; then
6228   ac_ct_DLLTOOL=$DLLTOOL
6229   # Extract the first word of "dlltool", so it can be a program name with args.
6230 set dummy dlltool; ac_word=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6234   $as_echo_n "(cached) " >&6
6235 else
6236   if test -n "$ac_ct_DLLTOOL"; then
6237   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242   IFS=$as_save_IFS
6243   test -z "$as_dir" && as_dir=.
6244     for ac_exec_ext in '' $ac_executable_extensions; do
6245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6246     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248     break 2
6249   fi
6250 done
6251   done
6252 IFS=$as_save_IFS
6253
6254 fi
6255 fi
6256 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6257 if test -n "$ac_ct_DLLTOOL"; then
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6259 $as_echo "$ac_ct_DLLTOOL" >&6; }
6260 else
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6263 fi
6264
6265   if test "x$ac_ct_DLLTOOL" = x; then
6266     DLLTOOL="false"
6267   else
6268     case $cross_compiling:$ac_tool_warned in
6269 yes:)
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272 ac_tool_warned=yes ;;
6273 esac
6274     DLLTOOL=$ac_ct_DLLTOOL
6275   fi
6276 else
6277   DLLTOOL="$ac_cv_prog_DLLTOOL"
6278 fi
6279
6280 test -z "$DLLTOOL" && DLLTOOL=dlltool
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6292 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6293 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   lt_cv_sharedlib_from_linklib_cmd='unknown'
6297
6298 case $host_os in
6299 cygwin* | mingw* | pw32* | cegcc*)
6300   # two different shell functions defined in ltmain.sh
6301   # decide which to use based on capabilities of $DLLTOOL
6302   case `$DLLTOOL --help 2>&1` in
6303   *--identify-strict*)
6304     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6305     ;;
6306   *)
6307     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6308     ;;
6309   esac
6310   ;;
6311 *)
6312   # fallback: assume linklib IS sharedlib
6313   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6314   ;;
6315 esac
6316
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6319 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6320 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6321 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6322
6323
6324
6325
6326
6327
6328
6329
6330 if test -n "$ac_tool_prefix"; then
6331   for ac_prog in ar
6332   do
6333     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_prog_AR+:} false; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   if test -n "$AR"; then
6341   ac_cv_prog_AR="$AR" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346   IFS=$as_save_IFS
6347   test -z "$as_dir" && as_dir=.
6348     for ac_exec_ext in '' $ac_executable_extensions; do
6349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352     break 2
6353   fi
6354 done
6355   done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 AR=$ac_cv_prog_AR
6361 if test -n "$AR"; then
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6363 $as_echo "$AR" >&6; }
6364 else
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6367 fi
6368
6369
6370     test -n "$AR" && break
6371   done
6372 fi
6373 if test -z "$AR"; then
6374   ac_ct_AR=$AR
6375   for ac_prog in ar
6376 do
6377   # Extract the first word of "$ac_prog", so it can be a program name with args.
6378 set dummy $ac_prog; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384   if test -n "$ac_ct_AR"; then
6385   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390   IFS=$as_save_IFS
6391   test -z "$as_dir" && as_dir=.
6392     for ac_exec_ext in '' $ac_executable_extensions; do
6393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394     ac_cv_prog_ac_ct_AR="$ac_prog"
6395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396     break 2
6397   fi
6398 done
6399   done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6405 if test -n "$ac_ct_AR"; then
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6407 $as_echo "$ac_ct_AR" >&6; }
6408 else
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414   test -n "$ac_ct_AR" && break
6415 done
6416
6417   if test "x$ac_ct_AR" = x; then
6418     AR="false"
6419   else
6420     case $cross_compiling:$ac_tool_warned in
6421 yes:)
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424 ac_tool_warned=yes ;;
6425 esac
6426     AR=$ac_ct_AR
6427   fi
6428 fi
6429
6430 : ${AR=ar}
6431 : ${AR_FLAGS=cru}
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6444 $as_echo_n "checking for archiver @FILE support... " >&6; }
6445 if ${lt_cv_ar_at_file+:} false; then :
6446   $as_echo_n "(cached) " >&6
6447 else
6448   lt_cv_ar_at_file=no
6449    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h.  */
6451
6452 int
6453 main ()
6454 {
6455
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 if ac_fn_c_try_compile "$LINENO"; then :
6461   echo conftest.$ac_objext > conftest.lst
6462       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6463       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6464   (eval $lt_ar_try) 2>&5
6465   ac_status=$?
6466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467   test $ac_status = 0; }
6468       if test "$ac_status" -eq 0; then
6469         # Ensure the archiver fails upon bogus file names.
6470         rm -f conftest.$ac_objext libconftest.a
6471         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6472   (eval $lt_ar_try) 2>&5
6473   ac_status=$?
6474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475   test $ac_status = 0; }
6476         if test "$ac_status" -ne 0; then
6477           lt_cv_ar_at_file=@
6478         fi
6479       fi
6480       rm -f conftest.* libconftest.a
6481
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484
6485 fi
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6487 $as_echo "$lt_cv_ar_at_file" >&6; }
6488
6489 if test "x$lt_cv_ar_at_file" = xno; then
6490   archiver_list_spec=
6491 else
6492   archiver_list_spec=$lt_cv_ar_at_file
6493 fi
6494
6495
6496
6497
6498
6499
6500
6501 if test -n "$ac_tool_prefix"; then
6502   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}strip; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_STRIP+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   if test -n "$STRIP"; then
6510   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517     for ac_exec_ext in '' $ac_executable_extensions; do
6518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524   done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 STRIP=$ac_cv_prog_STRIP
6530 if test -n "$STRIP"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6532 $as_echo "$STRIP" >&6; }
6533 else
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538
6539 fi
6540 if test -z "$ac_cv_prog_STRIP"; then
6541   ac_ct_STRIP=$STRIP
6542   # Extract the first word of "strip", so it can be a program name with args.
6543 set dummy strip; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   if test -n "$ac_ct_STRIP"; then
6550   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557     for ac_exec_ext in '' $ac_executable_extensions; do
6558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559     ac_cv_prog_ac_ct_STRIP="strip"
6560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564   done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6570 if test -n "$ac_ct_STRIP"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6572 $as_echo "$ac_ct_STRIP" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578   if test "x$ac_ct_STRIP" = x; then
6579     STRIP=":"
6580   else
6581     case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587     STRIP=$ac_ct_STRIP
6588   fi
6589 else
6590   STRIP="$ac_cv_prog_STRIP"
6591 fi
6592
6593 test -z "$STRIP" && STRIP=:
6594
6595
6596
6597
6598
6599
6600 if test -n "$ac_tool_prefix"; then
6601   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_RANLIB+:} false; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608   if test -n "$RANLIB"; then
6609   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616     for ac_exec_ext in '' $ac_executable_extensions; do
6617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623   done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 RANLIB=$ac_cv_prog_RANLIB
6629 if test -n "$RANLIB"; then
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6631 $as_echo "$RANLIB" >&6; }
6632 else
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637
6638 fi
6639 if test -z "$ac_cv_prog_RANLIB"; then
6640   ac_ct_RANLIB=$RANLIB
6641   # Extract the first word of "ranlib", so it can be a program name with args.
6642 set dummy ranlib; ac_word=$2
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6646   $as_echo_n "(cached) " >&6
6647 else
6648   if test -n "$ac_ct_RANLIB"; then
6649   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656     for ac_exec_ext in '' $ac_executable_extensions; do
6657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658     ac_cv_prog_ac_ct_RANLIB="ranlib"
6659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663   done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6669 if test -n "$ac_ct_RANLIB"; then
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6671 $as_echo "$ac_ct_RANLIB" >&6; }
6672 else
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6675 fi
6676
6677   if test "x$ac_ct_RANLIB" = x; then
6678     RANLIB=":"
6679   else
6680     case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6685 esac
6686     RANLIB=$ac_ct_RANLIB
6687   fi
6688 else
6689   RANLIB="$ac_cv_prog_RANLIB"
6690 fi
6691
6692 test -z "$RANLIB" && RANLIB=:
6693
6694
6695
6696
6697
6698
6699 # Determine commands to create old-style static archives.
6700 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6701 old_postinstall_cmds='chmod 644 $oldlib'
6702 old_postuninstall_cmds=
6703
6704 if test -n "$RANLIB"; then
6705   case $host_os in
6706   openbsd*)
6707     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6708     ;;
6709   *)
6710     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6711     ;;
6712   esac
6713   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6714 fi
6715
6716 case $host_os in
6717   darwin*)
6718     lock_old_archive_extraction=yes ;;
6719   *)
6720     lock_old_archive_extraction=no ;;
6721 esac
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761 # If no C compiler was specified, use CC.
6762 LTCC=${LTCC-"$CC"}
6763
6764 # If no C compiler flags were specified, use CFLAGS.
6765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6766
6767 # Allow CC to be a program name with arguments.
6768 compiler=$CC
6769
6770
6771 # Check for command to grab the raw symbol name followed by C symbol from nm.
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6773 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6774 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6775   $as_echo_n "(cached) " >&6
6776 else
6777
6778 # These are sane defaults that work on at least a few old systems.
6779 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6780
6781 # Character class describing NM global symbol codes.
6782 symcode='[BCDEGRST]'
6783
6784 # Regexp to match symbols that can be accessed directly from C.
6785 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6786
6787 # Define system-specific variables.
6788 case $host_os in
6789 aix*)
6790   symcode='[BCDT]'
6791   ;;
6792 cygwin* | mingw* | pw32* | cegcc*)
6793   symcode='[ABCDGISTW]'
6794   ;;
6795 hpux*)
6796   if test "$host_cpu" = ia64; then
6797     symcode='[ABCDEGRST]'
6798   fi
6799   ;;
6800 irix* | nonstopux*)
6801   symcode='[BCDEGRST]'
6802   ;;
6803 osf*)
6804   symcode='[BCDEGQRST]'
6805   ;;
6806 solaris*)
6807   symcode='[BDRT]'
6808   ;;
6809 sco3.2v5*)
6810   symcode='[DT]'
6811   ;;
6812 sysv4.2uw2*)
6813   symcode='[DT]'
6814   ;;
6815 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6816   symcode='[ABDT]'
6817   ;;
6818 sysv4)
6819   symcode='[DFNSTU]'
6820   ;;
6821 esac
6822
6823 # If we're using GNU nm, then use its standard symbol codes.
6824 case `$NM -V 2>&1` in
6825 *GNU* | *'with BFD'*)
6826   symcode='[ABCDGIRSTW]' ;;
6827 esac
6828
6829 # Transform an extracted symbol line into a proper C declaration.
6830 # Some systems (esp. on ia64) link data and code symbols differently,
6831 # so use this general approach.
6832 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6833
6834 # Transform an extracted symbol line into symbol name and symbol address
6835 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6836 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'"
6837
6838 # Handle CRLF in mingw tool chain
6839 opt_cr=
6840 case $build_os in
6841 mingw*)
6842   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6843   ;;
6844 esac
6845
6846 # Try without a prefix underscore, then with it.
6847 for ac_symprfx in "" "_"; do
6848
6849   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6850   symxfrm="\\1 $ac_symprfx\\2 \\2"
6851
6852   # Write the raw and C identifiers.
6853   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6854     # Fake it for dumpbin and say T for any non-static function
6855     # and D for any global variable.
6856     # Also find C++ and __fastcall symbols from MSVC++,
6857     # which start with @ or ?.
6858     lt_cv_sys_global_symbol_pipe="$AWK '"\
6859 "     {last_section=section; section=\$ 3};"\
6860 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6861 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6862 "     \$ 0!~/External *\|/{next};"\
6863 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6864 "     {if(hide[section]) next};"\
6865 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6866 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6867 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6868 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6869 "     ' prfx=^$ac_symprfx"
6870   else
6871     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6872   fi
6873   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6874
6875   # Check to see that the pipe works correctly.
6876   pipe_works=no
6877
6878   rm -f conftest*
6879   cat > conftest.$ac_ext <<_LT_EOF
6880 #ifdef __cplusplus
6881 extern "C" {
6882 #endif
6883 char nm_test_var;
6884 void nm_test_func(void);
6885 void nm_test_func(void){}
6886 #ifdef __cplusplus
6887 }
6888 #endif
6889 int main(){nm_test_var='a';nm_test_func();return(0);}
6890 _LT_EOF
6891
6892   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6893   (eval $ac_compile) 2>&5
6894   ac_status=$?
6895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6896   test $ac_status = 0; }; then
6897     # Now try to grab the symbols.
6898     nlist=conftest.nm
6899     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6900   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6901   ac_status=$?
6902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903   test $ac_status = 0; } && test -s "$nlist"; then
6904       # Try sorting and uniquifying the output.
6905       if sort "$nlist" | uniq > "$nlist"T; then
6906         mv -f "$nlist"T "$nlist"
6907       else
6908         rm -f "$nlist"T
6909       fi
6910
6911       # Make sure that we snagged all the symbols we need.
6912       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6913         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6914           cat <<_LT_EOF > conftest.$ac_ext
6915 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6916 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6917 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6918    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6919 # define LT_DLSYM_CONST
6920 #elif defined(__osf__)
6921 /* This system does not cope well with relocations in const data.  */
6922 # define LT_DLSYM_CONST
6923 #else
6924 # define LT_DLSYM_CONST const
6925 #endif
6926
6927 #ifdef __cplusplus
6928 extern "C" {
6929 #endif
6930
6931 _LT_EOF
6932           # Now generate the symbol file.
6933           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6934
6935           cat <<_LT_EOF >> conftest.$ac_ext
6936
6937 /* The mapping between symbol names and symbols.  */
6938 LT_DLSYM_CONST struct {
6939   const char *name;
6940   void       *address;
6941 }
6942 lt__PROGRAM__LTX_preloaded_symbols[] =
6943 {
6944   { "@PROGRAM@", (void *) 0 },
6945 _LT_EOF
6946           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6947           cat <<\_LT_EOF >> conftest.$ac_ext
6948   {0, (void *) 0}
6949 };
6950
6951 /* This works around a problem in FreeBSD linker */
6952 #ifdef FREEBSD_WORKAROUND
6953 static const void *lt_preloaded_setup() {
6954   return lt__PROGRAM__LTX_preloaded_symbols;
6955 }
6956 #endif
6957
6958 #ifdef __cplusplus
6959 }
6960 #endif
6961 _LT_EOF
6962           # Now try linking the two files.
6963           mv conftest.$ac_objext conftstm.$ac_objext
6964           lt_globsym_save_LIBS=$LIBS
6965           lt_globsym_save_CFLAGS=$CFLAGS
6966           LIBS="conftstm.$ac_objext"
6967           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6968           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6969   (eval $ac_link) 2>&5
6970   ac_status=$?
6971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6973             pipe_works=yes
6974           fi
6975           LIBS=$lt_globsym_save_LIBS
6976           CFLAGS=$lt_globsym_save_CFLAGS
6977         else
6978           echo "cannot find nm_test_func in $nlist" >&5
6979         fi
6980       else
6981         echo "cannot find nm_test_var in $nlist" >&5
6982       fi
6983     else
6984       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6985     fi
6986   else
6987     echo "$progname: failed program was:" >&5
6988     cat conftest.$ac_ext >&5
6989   fi
6990   rm -rf conftest* conftst*
6991
6992   # Do not use the global_symbol_pipe unless it works.
6993   if test "$pipe_works" = yes; then
6994     break
6995   else
6996     lt_cv_sys_global_symbol_pipe=
6997   fi
6998 done
6999
7000 fi
7001
7002 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7003   lt_cv_sys_global_symbol_to_cdecl=
7004 fi
7005 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7007 $as_echo "failed" >&6; }
7008 else
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7010 $as_echo "ok" >&6; }
7011 fi
7012
7013 # Response file support.
7014 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7015   nm_file_list_spec='@'
7016 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7017   nm_file_list_spec='@'
7018 fi
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7047 $as_echo_n "checking for sysroot... " >&6; }
7048
7049 # Check whether --with-sysroot was given.
7050 if test "${with_sysroot+set}" = set; then :
7051   withval=$with_sysroot;
7052 else
7053   with_sysroot=no
7054 fi
7055
7056
7057 lt_sysroot=
7058 case ${with_sysroot} in #(
7059  yes)
7060    if test "$GCC" = yes; then
7061      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7062    fi
7063    ;; #(
7064  /*)
7065    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7066    ;; #(
7067  no|'')
7068    ;; #(
7069  *)
7070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7071 $as_echo "${with_sysroot}" >&6; }
7072    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7073    ;;
7074 esac
7075
7076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7077 $as_echo "${lt_sysroot:-no}" >&6; }
7078
7079
7080
7081
7082
7083 # Check whether --enable-libtool-lock was given.
7084 if test "${enable_libtool_lock+set}" = set; then :
7085   enableval=$enable_libtool_lock;
7086 fi
7087
7088 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7089
7090 # Some flags need to be propagated to the compiler or linker for good
7091 # libtool support.
7092 case $host in
7093 ia64-*-hpux*)
7094   # Find out which ABI we are using.
7095   echo 'int i;' > conftest.$ac_ext
7096   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7097   (eval $ac_compile) 2>&5
7098   ac_status=$?
7099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7100   test $ac_status = 0; }; then
7101     case `/usr/bin/file conftest.$ac_objext` in
7102       *ELF-32*)
7103         HPUX_IA64_MODE="32"
7104         ;;
7105       *ELF-64*)
7106         HPUX_IA64_MODE="64"
7107         ;;
7108     esac
7109   fi
7110   rm -rf conftest*
7111   ;;
7112 *-*-irix6*)
7113   # Find out which ABI we are using.
7114   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7115   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7116   (eval $ac_compile) 2>&5
7117   ac_status=$?
7118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7119   test $ac_status = 0; }; then
7120     if test "$lt_cv_prog_gnu_ld" = yes; then
7121       case `/usr/bin/file conftest.$ac_objext` in
7122         *32-bit*)
7123           LD="${LD-ld} -melf32bsmip"
7124           ;;
7125         *N32*)
7126           LD="${LD-ld} -melf32bmipn32"
7127           ;;
7128         *64-bit*)
7129           LD="${LD-ld} -melf64bmip"
7130         ;;
7131       esac
7132     else
7133       case `/usr/bin/file conftest.$ac_objext` in
7134         *32-bit*)
7135           LD="${LD-ld} -32"
7136           ;;
7137         *N32*)
7138           LD="${LD-ld} -n32"
7139           ;;
7140         *64-bit*)
7141           LD="${LD-ld} -64"
7142           ;;
7143       esac
7144     fi
7145   fi
7146   rm -rf conftest*
7147   ;;
7148
7149 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7150 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7151   # Find out which ABI we are using.
7152   echo 'int i;' > conftest.$ac_ext
7153   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7154   (eval $ac_compile) 2>&5
7155   ac_status=$?
7156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157   test $ac_status = 0; }; then
7158     case `/usr/bin/file conftest.o` in
7159       *32-bit*)
7160         case $host in
7161           x86_64-*kfreebsd*-gnu)
7162             LD="${LD-ld} -m elf_i386_fbsd"
7163             ;;
7164           x86_64-*linux*)
7165             LD="${LD-ld} -m elf_i386"
7166             ;;
7167           ppc64-*linux*|powerpc64-*linux*)
7168             LD="${LD-ld} -m elf32ppclinux"
7169             ;;
7170           s390x-*linux*)
7171             LD="${LD-ld} -m elf_s390"
7172             ;;
7173           sparc64-*linux*)
7174             LD="${LD-ld} -m elf32_sparc"
7175             ;;
7176         esac
7177         ;;
7178       *64-bit*)
7179         case $host in
7180           x86_64-*kfreebsd*-gnu)
7181             LD="${LD-ld} -m elf_x86_64_fbsd"
7182             ;;
7183           x86_64-*linux*)
7184             LD="${LD-ld} -m elf_x86_64"
7185             ;;
7186           ppc*-*linux*|powerpc*-*linux*)
7187             LD="${LD-ld} -m elf64ppc"
7188             ;;
7189           s390*-*linux*|s390*-*tpf*)
7190             LD="${LD-ld} -m elf64_s390"
7191             ;;
7192           sparc*-*linux*)
7193             LD="${LD-ld} -m elf64_sparc"
7194             ;;
7195         esac
7196         ;;
7197     esac
7198   fi
7199   rm -rf conftest*
7200   ;;
7201
7202 *-*-sco3.2v5*)
7203   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7204   SAVE_CFLAGS="$CFLAGS"
7205   CFLAGS="$CFLAGS -belf"
7206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7207 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7208 if ${lt_cv_cc_needs_belf+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   ac_ext=c
7212 ac_cpp='$CPP $CPPFLAGS'
7213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7216
7217      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h.  */
7219
7220 int
7221 main ()
7222 {
7223
7224   ;
7225   return 0;
7226 }
7227 _ACEOF
7228 if ac_fn_c_try_link "$LINENO"; then :
7229   lt_cv_cc_needs_belf=yes
7230 else
7231   lt_cv_cc_needs_belf=no
7232 fi
7233 rm -f core conftest.err conftest.$ac_objext \
7234     conftest$ac_exeext conftest.$ac_ext
7235      ac_ext=c
7236 ac_cpp='$CPP $CPPFLAGS'
7237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7240
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7243 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7244   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7245     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7246     CFLAGS="$SAVE_CFLAGS"
7247   fi
7248   ;;
7249 *-*solaris*)
7250   # Find out which ABI we are using.
7251   echo 'int i;' > conftest.$ac_ext
7252   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7253   (eval $ac_compile) 2>&5
7254   ac_status=$?
7255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256   test $ac_status = 0; }; then
7257     case `/usr/bin/file conftest.o` in
7258     *64-bit*)
7259       case $lt_cv_prog_gnu_ld in
7260       yes*)
7261         case $host in
7262         i?86-*-solaris*)
7263           LD="${LD-ld} -m elf_x86_64"
7264           ;;
7265         sparc*-*-solaris*)
7266           LD="${LD-ld} -m elf64_sparc"
7267           ;;
7268         esac
7269         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7270         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7271           LD="${LD-ld}_sol2"
7272         fi
7273         ;;
7274       *)
7275         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7276           LD="${LD-ld} -64"
7277         fi
7278         ;;
7279       esac
7280       ;;
7281     esac
7282   fi
7283   rm -rf conftest*
7284   ;;
7285 esac
7286
7287 need_locks="$enable_libtool_lock"
7288
7289 if test -n "$ac_tool_prefix"; then
7290   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}mt; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7295   $as_echo_n "(cached) " >&6
7296 else
7297   if test -n "$MANIFEST_TOOL"; then
7298   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303   IFS=$as_save_IFS
7304   test -z "$as_dir" && as_dir=.
7305     for ac_exec_ext in '' $ac_executable_extensions; do
7306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309     break 2
7310   fi
7311 done
7312   done
7313 IFS=$as_save_IFS
7314
7315 fi
7316 fi
7317 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7318 if test -n "$MANIFEST_TOOL"; then
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7320 $as_echo "$MANIFEST_TOOL" >&6; }
7321 else
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7324 fi
7325
7326
7327 fi
7328 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7329   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7330   # Extract the first word of "mt", so it can be a program name with args.
7331 set dummy mt; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   if test -n "$ac_ct_MANIFEST_TOOL"; then
7338   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345     for ac_exec_ext in '' $ac_executable_extensions; do
7346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352   done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7358 if test -n "$ac_ct_MANIFEST_TOOL"; then
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7360 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7361 else
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7367     MANIFEST_TOOL=":"
7368   else
7369     case $cross_compiling:$ac_tool_warned in
7370 yes:)
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned=yes ;;
7374 esac
7375     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7376   fi
7377 else
7378   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7379 fi
7380
7381 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7383 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7384 if ${lt_cv_path_mainfest_tool+:} false; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   lt_cv_path_mainfest_tool=no
7388   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7389   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7390   cat conftest.err >&5
7391   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7392     lt_cv_path_mainfest_tool=yes
7393   fi
7394   rm -f conftest*
7395 fi
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7397 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7398 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7399   MANIFEST_TOOL=:
7400 fi
7401
7402
7403
7404
7405
7406
7407   case $host_os in
7408     rhapsody* | darwin*)
7409     if test -n "$ac_tool_prefix"; then
7410   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7411 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7415   $as_echo_n "(cached) " >&6
7416 else
7417   if test -n "$DSYMUTIL"; then
7418   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425     for ac_exec_ext in '' $ac_executable_extensions; do
7426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432   done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7438 if test -n "$DSYMUTIL"; then
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7440 $as_echo "$DSYMUTIL" >&6; }
7441 else
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445
7446
7447 fi
7448 if test -z "$ac_cv_prog_DSYMUTIL"; then
7449   ac_ct_DSYMUTIL=$DSYMUTIL
7450   # Extract the first word of "dsymutil", so it can be a program name with args.
7451 set dummy dsymutil; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7455   $as_echo_n "(cached) " >&6
7456 else
7457   if test -n "$ac_ct_DSYMUTIL"; then
7458   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465     for ac_exec_ext in '' $ac_executable_extensions; do
7466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472   done
7473 IFS=$as_save_IFS
7474
7475 fi
7476 fi
7477 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7478 if test -n "$ac_ct_DSYMUTIL"; then
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7480 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7481 else
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485
7486   if test "x$ac_ct_DSYMUTIL" = x; then
7487     DSYMUTIL=":"
7488   else
7489     case $cross_compiling:$ac_tool_warned in
7490 yes:)
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493 ac_tool_warned=yes ;;
7494 esac
7495     DSYMUTIL=$ac_ct_DSYMUTIL
7496   fi
7497 else
7498   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7499 fi
7500
7501     if test -n "$ac_tool_prefix"; then
7502   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7503 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if ${ac_cv_prog_NMEDIT+:} false; then :
7507   $as_echo_n "(cached) " >&6
7508 else
7509   if test -n "$NMEDIT"; then
7510   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515   IFS=$as_save_IFS
7516   test -z "$as_dir" && as_dir=.
7517     for ac_exec_ext in '' $ac_executable_extensions; do
7518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521     break 2
7522   fi
7523 done
7524   done
7525 IFS=$as_save_IFS
7526
7527 fi
7528 fi
7529 NMEDIT=$ac_cv_prog_NMEDIT
7530 if test -n "$NMEDIT"; then
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7532 $as_echo "$NMEDIT" >&6; }
7533 else
7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7536 fi
7537
7538
7539 fi
7540 if test -z "$ac_cv_prog_NMEDIT"; then
7541   ac_ct_NMEDIT=$NMEDIT
7542   # Extract the first word of "nmedit", so it can be a program name with args.
7543 set dummy nmedit; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7547   $as_echo_n "(cached) " >&6
7548 else
7549   if test -n "$ac_ct_NMEDIT"; then
7550   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557     for ac_exec_ext in '' $ac_executable_extensions; do
7558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564   done
7565 IFS=$as_save_IFS
7566
7567 fi
7568 fi
7569 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7570 if test -n "$ac_ct_NMEDIT"; then
7571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7572 $as_echo "$ac_ct_NMEDIT" >&6; }
7573 else
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7576 fi
7577
7578   if test "x$ac_ct_NMEDIT" = x; then
7579     NMEDIT=":"
7580   else
7581     case $cross_compiling:$ac_tool_warned in
7582 yes:)
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585 ac_tool_warned=yes ;;
7586 esac
7587     NMEDIT=$ac_ct_NMEDIT
7588   fi
7589 else
7590   NMEDIT="$ac_cv_prog_NMEDIT"
7591 fi
7592
7593     if test -n "$ac_tool_prefix"; then
7594   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7595 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if ${ac_cv_prog_LIPO+:} false; then :
7599   $as_echo_n "(cached) " >&6
7600 else
7601   if test -n "$LIPO"; then
7602   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607   IFS=$as_save_IFS
7608   test -z "$as_dir" && as_dir=.
7609     for ac_exec_ext in '' $ac_executable_extensions; do
7610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7611     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613     break 2
7614   fi
7615 done
7616   done
7617 IFS=$as_save_IFS
7618
7619 fi
7620 fi
7621 LIPO=$ac_cv_prog_LIPO
7622 if test -n "$LIPO"; then
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7624 $as_echo "$LIPO" >&6; }
7625 else
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7628 fi
7629
7630
7631 fi
7632 if test -z "$ac_cv_prog_LIPO"; then
7633   ac_ct_LIPO=$LIPO
7634   # Extract the first word of "lipo", so it can be a program name with args.
7635 set dummy lipo; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7639   $as_echo_n "(cached) " >&6
7640 else
7641   if test -n "$ac_ct_LIPO"; then
7642   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7643 else
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649     for ac_exec_ext in '' $ac_executable_extensions; do
7650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651     ac_cv_prog_ac_ct_LIPO="lipo"
7652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656   done
7657 IFS=$as_save_IFS
7658
7659 fi
7660 fi
7661 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7662 if test -n "$ac_ct_LIPO"; then
7663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7664 $as_echo "$ac_ct_LIPO" >&6; }
7665 else
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7668 fi
7669
7670   if test "x$ac_ct_LIPO" = x; then
7671     LIPO=":"
7672   else
7673     case $cross_compiling:$ac_tool_warned in
7674 yes:)
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7677 ac_tool_warned=yes ;;
7678 esac
7679     LIPO=$ac_ct_LIPO
7680   fi
7681 else
7682   LIPO="$ac_cv_prog_LIPO"
7683 fi
7684
7685     if test -n "$ac_tool_prefix"; then
7686   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7687 set dummy ${ac_tool_prefix}otool; ac_word=$2
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689 $as_echo_n "checking for $ac_word... " >&6; }
7690 if ${ac_cv_prog_OTOOL+:} false; then :
7691   $as_echo_n "(cached) " >&6
7692 else
7693   if test -n "$OTOOL"; then
7694   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7695 else
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699   IFS=$as_save_IFS
7700   test -z "$as_dir" && as_dir=.
7701     for ac_exec_ext in '' $ac_executable_extensions; do
7702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705     break 2
7706   fi
7707 done
7708   done
7709 IFS=$as_save_IFS
7710
7711 fi
7712 fi
7713 OTOOL=$ac_cv_prog_OTOOL
7714 if test -n "$OTOOL"; then
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7716 $as_echo "$OTOOL" >&6; }
7717 else
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 $as_echo "no" >&6; }
7720 fi
7721
7722
7723 fi
7724 if test -z "$ac_cv_prog_OTOOL"; then
7725   ac_ct_OTOOL=$OTOOL
7726   # Extract the first word of "otool", so it can be a program name with args.
7727 set dummy otool; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   if test -n "$ac_ct_OTOOL"; then
7734   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741     for ac_exec_ext in '' $ac_executable_extensions; do
7742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743     ac_cv_prog_ac_ct_OTOOL="otool"
7744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748   done
7749 IFS=$as_save_IFS
7750
7751 fi
7752 fi
7753 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7754 if test -n "$ac_ct_OTOOL"; then
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7756 $as_echo "$ac_ct_OTOOL" >&6; }
7757 else
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762   if test "x$ac_ct_OTOOL" = x; then
7763     OTOOL=":"
7764   else
7765     case $cross_compiling:$ac_tool_warned in
7766 yes:)
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7769 ac_tool_warned=yes ;;
7770 esac
7771     OTOOL=$ac_ct_OTOOL
7772   fi
7773 else
7774   OTOOL="$ac_cv_prog_OTOOL"
7775 fi
7776
7777     if test -n "$ac_tool_prefix"; then
7778   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7779 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if ${ac_cv_prog_OTOOL64+:} false; then :
7783   $as_echo_n "(cached) " >&6
7784 else
7785   if test -n "$OTOOL64"; then
7786   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791   IFS=$as_save_IFS
7792   test -z "$as_dir" && as_dir=.
7793     for ac_exec_ext in '' $ac_executable_extensions; do
7794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7795     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797     break 2
7798   fi
7799 done
7800   done
7801 IFS=$as_save_IFS
7802
7803 fi
7804 fi
7805 OTOOL64=$ac_cv_prog_OTOOL64
7806 if test -n "$OTOOL64"; then
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7808 $as_echo "$OTOOL64" >&6; }
7809 else
7810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 fi
7813
7814
7815 fi
7816 if test -z "$ac_cv_prog_OTOOL64"; then
7817   ac_ct_OTOOL64=$OTOOL64
7818   # Extract the first word of "otool64", so it can be a program name with args.
7819 set dummy otool64; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825   if test -n "$ac_ct_OTOOL64"; then
7826   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831   IFS=$as_save_IFS
7832   test -z "$as_dir" && as_dir=.
7833     for ac_exec_ext in '' $ac_executable_extensions; do
7834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835     ac_cv_prog_ac_ct_OTOOL64="otool64"
7836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837     break 2
7838   fi
7839 done
7840   done
7841 IFS=$as_save_IFS
7842
7843 fi
7844 fi
7845 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7846 if test -n "$ac_ct_OTOOL64"; then
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7848 $as_echo "$ac_ct_OTOOL64" >&6; }
7849 else
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853
7854   if test "x$ac_ct_OTOOL64" = x; then
7855     OTOOL64=":"
7856   else
7857     case $cross_compiling:$ac_tool_warned in
7858 yes:)
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7861 ac_tool_warned=yes ;;
7862 esac
7863     OTOOL64=$ac_ct_OTOOL64
7864   fi
7865 else
7866   OTOOL64="$ac_cv_prog_OTOOL64"
7867 fi
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7896 $as_echo_n "checking for -single_module linker flag... " >&6; }
7897 if ${lt_cv_apple_cc_single_mod+:} false; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   lt_cv_apple_cc_single_mod=no
7901       if test -z "${LT_MULTI_MODULE}"; then
7902         # By default we will add the -single_module flag. You can override
7903         # by either setting the environment variable LT_MULTI_MODULE
7904         # non-empty at configure time, or by adding -multi_module to the
7905         # link flags.
7906         rm -rf libconftest.dylib*
7907         echo "int foo(void){return 1;}" > conftest.c
7908         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7909 -dynamiclib -Wl,-single_module conftest.c" >&5
7910         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7911           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7912         _lt_result=$?
7913         # If there is a non-empty error log, and "single_module"
7914         # appears in it, assume the flag caused a linker warning
7915         if test -s conftest.err && $GREP single_module conftest.err; then
7916           cat conftest.err >&5
7917         # Otherwise, if the output was created with a 0 exit code from
7918         # the compiler, it worked.
7919         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7920           lt_cv_apple_cc_single_mod=yes
7921         else
7922           cat conftest.err >&5
7923         fi
7924         rm -rf libconftest.dylib*
7925         rm -f conftest.*
7926       fi
7927 fi
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7929 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7930
7931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7932 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7933 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   lt_cv_ld_exported_symbols_list=no
7937       save_LDFLAGS=$LDFLAGS
7938       echo "_main" > conftest.sym
7939       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7940       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h.  */
7942
7943 int
7944 main ()
7945 {
7946
7947   ;
7948   return 0;
7949 }
7950 _ACEOF
7951 if ac_fn_c_try_link "$LINENO"; then :
7952   lt_cv_ld_exported_symbols_list=yes
7953 else
7954   lt_cv_ld_exported_symbols_list=no
7955 fi
7956 rm -f core conftest.err conftest.$ac_objext \
7957     conftest$ac_exeext conftest.$ac_ext
7958         LDFLAGS="$save_LDFLAGS"
7959
7960 fi
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7962 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7963
7964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7965 $as_echo_n "checking for -force_load linker flag... " >&6; }
7966 if ${lt_cv_ld_force_load+:} false; then :
7967   $as_echo_n "(cached) " >&6
7968 else
7969   lt_cv_ld_force_load=no
7970       cat > conftest.c << _LT_EOF
7971 int forced_loaded() { return 2;}
7972 _LT_EOF
7973       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7974       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7975       echo "$AR cru libconftest.a conftest.o" >&5
7976       $AR cru libconftest.a conftest.o 2>&5
7977       echo "$RANLIB libconftest.a" >&5
7978       $RANLIB libconftest.a 2>&5
7979       cat > conftest.c << _LT_EOF
7980 int main() { return 0;}
7981 _LT_EOF
7982       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7983       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7984       _lt_result=$?
7985       if test -s conftest.err && $GREP force_load conftest.err; then
7986         cat conftest.err >&5
7987       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7988         lt_cv_ld_force_load=yes
7989       else
7990         cat conftest.err >&5
7991       fi
7992         rm -f conftest.err libconftest.a conftest conftest.c
7993         rm -rf conftest.dSYM
7994
7995 fi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7997 $as_echo "$lt_cv_ld_force_load" >&6; }
7998     case $host_os in
7999     rhapsody* | darwin1.[012])
8000       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8001     darwin1.*)
8002       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8003     darwin*) # darwin 5.x on
8004       # if running on 10.5 or later, the deployment target defaults
8005       # to the OS version, if on x86, and 10.4, the deployment
8006       # target defaults to 10.4. Don't you love it?
8007       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8008         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8009           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8010         10.[012][,.]*)
8011           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8012         10.*)
8013           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8014       esac
8015     ;;
8016   esac
8017     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8018       _lt_dar_single_mod='$single_module'
8019     fi
8020     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8021       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8022     else
8023       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8024     fi
8025     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8026       _lt_dsymutil='~$DSYMUTIL $lib || :'
8027     else
8028       _lt_dsymutil=
8029     fi
8030     ;;
8031   esac
8032
8033 ac_ext=c
8034 ac_cpp='$CPP $CPPFLAGS'
8035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8040 # On Suns, sometimes $CPP names a directory.
8041 if test -n "$CPP" && test -d "$CPP"; then
8042   CPP=
8043 fi
8044 if test -z "$CPP"; then
8045   if ${ac_cv_prog_CPP+:} false; then :
8046   $as_echo_n "(cached) " >&6
8047 else
8048       # Double quotes because CPP needs to be expanded
8049     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8050     do
8051       ac_preproc_ok=false
8052 for ac_c_preproc_warn_flag in '' yes
8053 do
8054   # Use a header file that comes with gcc, so configuring glibc
8055   # with a fresh cross-compiler works.
8056   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8057   # <limits.h> exists even on freestanding compilers.
8058   # On the NeXT, cc -E runs the code through the compiler's parser,
8059   # not just through cpp. "Syntax error" is here to catch this case.
8060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h.  */
8062 #ifdef __STDC__
8063 # include <limits.h>
8064 #else
8065 # include <assert.h>
8066 #endif
8067                      Syntax error
8068 _ACEOF
8069 if ac_fn_c_try_cpp "$LINENO"; then :
8070
8071 else
8072   # Broken: fails on valid input.
8073 continue
8074 fi
8075 rm -f conftest.err conftest.i conftest.$ac_ext
8076
8077   # OK, works on sane cases.  Now check whether nonexistent headers
8078   # can be detected and how.
8079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h.  */
8081 #include <ac_nonexistent.h>
8082 _ACEOF
8083 if ac_fn_c_try_cpp "$LINENO"; then :
8084   # Broken: success on invalid input.
8085 continue
8086 else
8087   # Passes both tests.
8088 ac_preproc_ok=:
8089 break
8090 fi
8091 rm -f conftest.err conftest.i conftest.$ac_ext
8092
8093 done
8094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8095 rm -f conftest.i conftest.err conftest.$ac_ext
8096 if $ac_preproc_ok; then :
8097   break
8098 fi
8099
8100     done
8101     ac_cv_prog_CPP=$CPP
8102
8103 fi
8104   CPP=$ac_cv_prog_CPP
8105 else
8106   ac_cv_prog_CPP=$CPP
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8109 $as_echo "$CPP" >&6; }
8110 ac_preproc_ok=false
8111 for ac_c_preproc_warn_flag in '' yes
8112 do
8113   # Use a header file that comes with gcc, so configuring glibc
8114   # with a fresh cross-compiler works.
8115   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8116   # <limits.h> exists even on freestanding compilers.
8117   # On the NeXT, cc -E runs the code through the compiler's parser,
8118   # not just through cpp. "Syntax error" is here to catch this case.
8119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h.  */
8121 #ifdef __STDC__
8122 # include <limits.h>
8123 #else
8124 # include <assert.h>
8125 #endif
8126                      Syntax error
8127 _ACEOF
8128 if ac_fn_c_try_cpp "$LINENO"; then :
8129
8130 else
8131   # Broken: fails on valid input.
8132 continue
8133 fi
8134 rm -f conftest.err conftest.i conftest.$ac_ext
8135
8136   # OK, works on sane cases.  Now check whether nonexistent headers
8137   # can be detected and how.
8138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h.  */
8140 #include <ac_nonexistent.h>
8141 _ACEOF
8142 if ac_fn_c_try_cpp "$LINENO"; then :
8143   # Broken: success on invalid input.
8144 continue
8145 else
8146   # Passes both tests.
8147 ac_preproc_ok=:
8148 break
8149 fi
8150 rm -f conftest.err conftest.i conftest.$ac_ext
8151
8152 done
8153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8154 rm -f conftest.i conftest.err conftest.$ac_ext
8155 if $ac_preproc_ok; then :
8156
8157 else
8158   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8160 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8161 See \`config.log' for more details" "$LINENO" 5; }
8162 fi
8163
8164 ac_ext=c
8165 ac_cpp='$CPP $CPPFLAGS'
8166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8169
8170
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8172 $as_echo_n "checking for ANSI C header files... " >&6; }
8173 if ${ac_cv_header_stdc+:} false; then :
8174   $as_echo_n "(cached) " >&6
8175 else
8176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h.  */
8178 #include <stdlib.h>
8179 #include <stdarg.h>
8180 #include <string.h>
8181 #include <float.h>
8182
8183 int
8184 main ()
8185 {
8186
8187   ;
8188   return 0;
8189 }
8190 _ACEOF
8191 if ac_fn_c_try_compile "$LINENO"; then :
8192   ac_cv_header_stdc=yes
8193 else
8194   ac_cv_header_stdc=no
8195 fi
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197
8198 if test $ac_cv_header_stdc = yes; then
8199   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h.  */
8202 #include <string.h>
8203
8204 _ACEOF
8205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8206   $EGREP "memchr" >/dev/null 2>&1; then :
8207
8208 else
8209   ac_cv_header_stdc=no
8210 fi
8211 rm -f conftest*
8212
8213 fi
8214
8215 if test $ac_cv_header_stdc = yes; then
8216   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h.  */
8219 #include <stdlib.h>
8220
8221 _ACEOF
8222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8223   $EGREP "free" >/dev/null 2>&1; then :
8224
8225 else
8226   ac_cv_header_stdc=no
8227 fi
8228 rm -f conftest*
8229
8230 fi
8231
8232 if test $ac_cv_header_stdc = yes; then
8233   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8234   if test "$cross_compiling" = yes; then :
8235   :
8236 else
8237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h.  */
8239 #include <ctype.h>
8240 #include <stdlib.h>
8241 #if ((' ' & 0x0FF) == 0x020)
8242 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8243 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8244 #else
8245 # define ISLOWER(c) \
8246                    (('a' <= (c) && (c) <= 'i') \
8247                      || ('j' <= (c) && (c) <= 'r') \
8248                      || ('s' <= (c) && (c) <= 'z'))
8249 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8250 #endif
8251
8252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8253 int
8254 main ()
8255 {
8256   int i;
8257   for (i = 0; i < 256; i++)
8258     if (XOR (islower (i), ISLOWER (i))
8259         || toupper (i) != TOUPPER (i))
8260       return 2;
8261   return 0;
8262 }
8263 _ACEOF
8264 if ac_fn_c_try_run "$LINENO"; then :
8265
8266 else
8267   ac_cv_header_stdc=no
8268 fi
8269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8270   conftest.$ac_objext conftest.beam conftest.$ac_ext
8271 fi
8272
8273 fi
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8276 $as_echo "$ac_cv_header_stdc" >&6; }
8277 if test $ac_cv_header_stdc = yes; then
8278
8279 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8280
8281 fi
8282
8283 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8285                   inttypes.h stdint.h unistd.h
8286 do :
8287   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8289 "
8290 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8291   cat >>confdefs.h <<_ACEOF
8292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8293 _ACEOF
8294
8295 fi
8296
8297 done
8298
8299
8300 for ac_header in dlfcn.h
8301 do :
8302   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8303 "
8304 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8305   cat >>confdefs.h <<_ACEOF
8306 #define HAVE_DLFCN_H 1
8307 _ACEOF
8308
8309 fi
8310
8311 done
8312
8313
8314
8315
8316
8317 # Set options
8318 # Check whether --enable-static was given.
8319 if test "${enable_static+set}" = set; then :
8320   enableval=$enable_static; p=${PACKAGE-default}
8321     case $enableval in
8322     yes) enable_static=yes ;;
8323     no) enable_static=no ;;
8324     *)
8325      enable_static=no
8326       # Look at the argument we got.  We use all the common list separators.
8327       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8328       for pkg in $enableval; do
8329         IFS="$lt_save_ifs"
8330         if test "X$pkg" = "X$p"; then
8331           enable_static=yes
8332         fi
8333       done
8334       IFS="$lt_save_ifs"
8335       ;;
8336     esac
8337 else
8338   enable_static=no
8339 fi
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350         enable_dlopen=no
8351
8352
8353   enable_win32_dll=no
8354
8355
8356             # Check whether --enable-shared was given.
8357 if test "${enable_shared+set}" = set; then :
8358   enableval=$enable_shared; p=${PACKAGE-default}
8359     case $enableval in
8360     yes) enable_shared=yes ;;
8361     no) enable_shared=no ;;
8362     *)
8363       enable_shared=no
8364       # Look at the argument we got.  We use all the common list separators.
8365       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8366       for pkg in $enableval; do
8367         IFS="$lt_save_ifs"
8368         if test "X$pkg" = "X$p"; then
8369           enable_shared=yes
8370         fi
8371       done
8372       IFS="$lt_save_ifs"
8373       ;;
8374     esac
8375 else
8376   enable_shared=yes
8377 fi
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389 # Check whether --with-pic was given.
8390 if test "${with_pic+set}" = set; then :
8391   withval=$with_pic; lt_p=${PACKAGE-default}
8392     case $withval in
8393     yes|no) pic_mode=$withval ;;
8394     *)
8395       pic_mode=default
8396       # Look at the argument we got.  We use all the common list separators.
8397       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8398       for lt_pkg in $withval; do
8399         IFS="$lt_save_ifs"
8400         if test "X$lt_pkg" = "X$lt_p"; then
8401           pic_mode=yes
8402         fi
8403       done
8404       IFS="$lt_save_ifs"
8405       ;;
8406     esac
8407 else
8408   pic_mode=default
8409 fi
8410
8411
8412 test -z "$pic_mode" && pic_mode=default
8413
8414
8415
8416
8417
8418
8419
8420   # Check whether --enable-fast-install was given.
8421 if test "${enable_fast_install+set}" = set; then :
8422   enableval=$enable_fast_install; p=${PACKAGE-default}
8423     case $enableval in
8424     yes) enable_fast_install=yes ;;
8425     no) enable_fast_install=no ;;
8426     *)
8427       enable_fast_install=no
8428       # Look at the argument we got.  We use all the common list separators.
8429       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8430       for pkg in $enableval; do
8431         IFS="$lt_save_ifs"
8432         if test "X$pkg" = "X$p"; then
8433           enable_fast_install=yes
8434         fi
8435       done
8436       IFS="$lt_save_ifs"
8437       ;;
8438     esac
8439 else
8440   enable_fast_install=yes
8441 fi
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453 # This can be used to rebuild libtool when needed
8454 LIBTOOL_DEPS="$ltmain"
8455
8456 # Always use our own libtool.
8457 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488 test -z "$LN_S" && LN_S="ln -s"
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 if test -n "${ZSH_VERSION+set}" ; then
8504    setopt NO_GLOB_SUBST
8505 fi
8506
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8508 $as_echo_n "checking for objdir... " >&6; }
8509 if ${lt_cv_objdir+:} false; then :
8510   $as_echo_n "(cached) " >&6
8511 else
8512   rm -f .libs 2>/dev/null
8513 mkdir .libs 2>/dev/null
8514 if test -d .libs; then
8515   lt_cv_objdir=.libs
8516 else
8517   # MS-DOS does not allow filenames that begin with a dot.
8518   lt_cv_objdir=_libs
8519 fi
8520 rmdir .libs 2>/dev/null
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8523 $as_echo "$lt_cv_objdir" >&6; }
8524 objdir=$lt_cv_objdir
8525
8526
8527
8528
8529
8530 cat >>confdefs.h <<_ACEOF
8531 #define LT_OBJDIR "$lt_cv_objdir/"
8532 _ACEOF
8533
8534
8535
8536
8537 case $host_os in
8538 aix3*)
8539   # AIX sometimes has problems with the GCC collect2 program.  For some
8540   # reason, if we set the COLLECT_NAMES environment variable, the problems
8541   # vanish in a puff of smoke.
8542   if test "X${COLLECT_NAMES+set}" != Xset; then
8543     COLLECT_NAMES=
8544     export COLLECT_NAMES
8545   fi
8546   ;;
8547 esac
8548
8549 # Global variables:
8550 ofile=libtool
8551 can_build_shared=yes
8552
8553 # All known linkers require a `.a' archive for static linking (except MSVC,
8554 # which needs '.lib').
8555 libext=a
8556
8557 with_gnu_ld="$lt_cv_prog_gnu_ld"
8558
8559 old_CC="$CC"
8560 old_CFLAGS="$CFLAGS"
8561
8562 # Set sane defaults for various variables
8563 test -z "$CC" && CC=cc
8564 test -z "$LTCC" && LTCC=$CC
8565 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8566 test -z "$LD" && LD=ld
8567 test -z "$ac_objext" && ac_objext=o
8568
8569 for cc_temp in $compiler""; do
8570   case $cc_temp in
8571     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8572     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8573     \-*) ;;
8574     *) break;;
8575   esac
8576 done
8577 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8578
8579
8580 # Only perform the check for file, if the check method requires it
8581 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8582 case $deplibs_check_method in
8583 file_magic*)
8584   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8586 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8587 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8588   $as_echo_n "(cached) " >&6
8589 else
8590   case $MAGIC_CMD in
8591 [\\/*] |  ?:[\\/]*)
8592   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8593   ;;
8594 *)
8595   lt_save_MAGIC_CMD="$MAGIC_CMD"
8596   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8597   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8598   for ac_dir in $ac_dummy; do
8599     IFS="$lt_save_ifs"
8600     test -z "$ac_dir" && ac_dir=.
8601     if test -f $ac_dir/${ac_tool_prefix}file; then
8602       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8603       if test -n "$file_magic_test_file"; then
8604         case $deplibs_check_method in
8605         "file_magic "*)
8606           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8607           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8608           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8609             $EGREP "$file_magic_regex" > /dev/null; then
8610             :
8611           else
8612             cat <<_LT_EOF 1>&2
8613
8614 *** Warning: the command libtool uses to detect shared libraries,
8615 *** $file_magic_cmd, produces output that libtool cannot recognize.
8616 *** The result is that libtool may fail to recognize shared libraries
8617 *** as such.  This will affect the creation of libtool libraries that
8618 *** depend on shared libraries, but programs linked with such libtool
8619 *** libraries will work regardless of this problem.  Nevertheless, you
8620 *** may want to report the problem to your system manager and/or to
8621 *** bug-libtool@gnu.org
8622
8623 _LT_EOF
8624           fi ;;
8625         esac
8626       fi
8627       break
8628     fi
8629   done
8630   IFS="$lt_save_ifs"
8631   MAGIC_CMD="$lt_save_MAGIC_CMD"
8632   ;;
8633 esac
8634 fi
8635
8636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8637 if test -n "$MAGIC_CMD"; then
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8639 $as_echo "$MAGIC_CMD" >&6; }
8640 else
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8643 fi
8644
8645
8646
8647
8648
8649 if test -z "$lt_cv_path_MAGIC_CMD"; then
8650   if test -n "$ac_tool_prefix"; then
8651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8652 $as_echo_n "checking for file... " >&6; }
8653 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8654   $as_echo_n "(cached) " >&6
8655 else
8656   case $MAGIC_CMD in
8657 [\\/*] |  ?:[\\/]*)
8658   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8659   ;;
8660 *)
8661   lt_save_MAGIC_CMD="$MAGIC_CMD"
8662   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8663   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8664   for ac_dir in $ac_dummy; do
8665     IFS="$lt_save_ifs"
8666     test -z "$ac_dir" && ac_dir=.
8667     if test -f $ac_dir/file; then
8668       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8669       if test -n "$file_magic_test_file"; then
8670         case $deplibs_check_method in
8671         "file_magic "*)
8672           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8673           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8674           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8675             $EGREP "$file_magic_regex" > /dev/null; then
8676             :
8677           else
8678             cat <<_LT_EOF 1>&2
8679
8680 *** Warning: the command libtool uses to detect shared libraries,
8681 *** $file_magic_cmd, produces output that libtool cannot recognize.
8682 *** The result is that libtool may fail to recognize shared libraries
8683 *** as such.  This will affect the creation of libtool libraries that
8684 *** depend on shared libraries, but programs linked with such libtool
8685 *** libraries will work regardless of this problem.  Nevertheless, you
8686 *** may want to report the problem to your system manager and/or to
8687 *** bug-libtool@gnu.org
8688
8689 _LT_EOF
8690           fi ;;
8691         esac
8692       fi
8693       break
8694     fi
8695   done
8696   IFS="$lt_save_ifs"
8697   MAGIC_CMD="$lt_save_MAGIC_CMD"
8698   ;;
8699 esac
8700 fi
8701
8702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8703 if test -n "$MAGIC_CMD"; then
8704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8705 $as_echo "$MAGIC_CMD" >&6; }
8706 else
8707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8709 fi
8710
8711
8712   else
8713     MAGIC_CMD=:
8714   fi
8715 fi
8716
8717   fi
8718   ;;
8719 esac
8720
8721 # Use C for the default configuration in the libtool script
8722
8723 lt_save_CC="$CC"
8724 ac_ext=c
8725 ac_cpp='$CPP $CPPFLAGS'
8726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8729
8730
8731 # Source file extension for C test sources.
8732 ac_ext=c
8733
8734 # Object file extension for compiled C test sources.
8735 objext=o
8736 objext=$objext
8737
8738 # Code to be used in simple compile tests
8739 lt_simple_compile_test_code="int some_variable = 0;"
8740
8741 # Code to be used in simple link tests
8742 lt_simple_link_test_code='int main(){return(0);}'
8743
8744
8745
8746
8747
8748
8749
8750 # If no C compiler was specified, use CC.
8751 LTCC=${LTCC-"$CC"}
8752
8753 # If no C compiler flags were specified, use CFLAGS.
8754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8755
8756 # Allow CC to be a program name with arguments.
8757 compiler=$CC
8758
8759 # Save the default compiler, since it gets overwritten when the other
8760 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8761 compiler_DEFAULT=$CC
8762
8763 # save warnings/boilerplate of simple test code
8764 ac_outfile=conftest.$ac_objext
8765 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8766 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8767 _lt_compiler_boilerplate=`cat conftest.err`
8768 $RM conftest*
8769
8770 ac_outfile=conftest.$ac_objext
8771 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8772 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8773 _lt_linker_boilerplate=`cat conftest.err`
8774 $RM -r conftest*
8775
8776
8777 ## CAVEAT EMPTOR:
8778 ## There is no encapsulation within the following macros, do not change
8779 ## the running order or otherwise move them around unless you know exactly
8780 ## what you are doing...
8781 if test -n "$compiler"; then
8782
8783 lt_prog_compiler_no_builtin_flag=
8784
8785 if test "$GCC" = yes; then
8786   case $cc_basename in
8787   nvcc*)
8788     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8789   *)
8790     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8791   esac
8792
8793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8794 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8795 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8796   $as_echo_n "(cached) " >&6
8797 else
8798   lt_cv_prog_compiler_rtti_exceptions=no
8799    ac_outfile=conftest.$ac_objext
8800    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8801    lt_compiler_flag="-fno-rtti -fno-exceptions"
8802    # Insert the option either (1) after the last *FLAGS variable, or
8803    # (2) before a word containing "conftest.", or (3) at the end.
8804    # Note that $ac_compile itself does not contain backslashes and begins
8805    # with a dollar sign (not a hyphen), so the echo should work correctly.
8806    # The option is referenced via a variable to avoid confusing sed.
8807    lt_compile=`echo "$ac_compile" | $SED \
8808    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8810    -e 's:$: $lt_compiler_flag:'`
8811    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8812    (eval "$lt_compile" 2>conftest.err)
8813    ac_status=$?
8814    cat conftest.err >&5
8815    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816    if (exit $ac_status) && test -s "$ac_outfile"; then
8817      # The compiler can only warn and ignore the option if not recognized
8818      # So say no if there are warnings other than the usual output.
8819      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8820      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8821      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8822        lt_cv_prog_compiler_rtti_exceptions=yes
8823      fi
8824    fi
8825    $RM conftest*
8826
8827 fi
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8829 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8830
8831 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8832     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8833 else
8834     :
8835 fi
8836
8837 fi
8838
8839
8840
8841
8842
8843
8844   lt_prog_compiler_wl=
8845 lt_prog_compiler_pic=
8846 lt_prog_compiler_static=
8847
8848
8849   if test "$GCC" = yes; then
8850     lt_prog_compiler_wl='-Wl,'
8851     lt_prog_compiler_static='-static'
8852
8853     case $host_os in
8854       aix*)
8855       # All AIX code is PIC.
8856       if test "$host_cpu" = ia64; then
8857         # AIX 5 now supports IA64 processor
8858         lt_prog_compiler_static='-Bstatic'
8859       fi
8860       ;;
8861
8862     amigaos*)
8863       case $host_cpu in
8864       powerpc)
8865             # see comment about AmigaOS4 .so support
8866             lt_prog_compiler_pic='-fPIC'
8867         ;;
8868       m68k)
8869             # FIXME: we need at least 68020 code to build shared libraries, but
8870             # adding the `-m68020' flag to GCC prevents building anything better,
8871             # like `-m68040'.
8872             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8873         ;;
8874       esac
8875       ;;
8876
8877     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8878       # PIC is the default for these OSes.
8879       ;;
8880
8881     mingw* | cygwin* | pw32* | os2* | cegcc*)
8882       # This hack is so that the source file can tell whether it is being
8883       # built for inclusion in a dll (and should export symbols for example).
8884       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8885       # (--disable-auto-import) libraries
8886       lt_prog_compiler_pic='-DDLL_EXPORT'
8887       ;;
8888
8889     darwin* | rhapsody*)
8890       # PIC is the default on this platform
8891       # Common symbols not allowed in MH_DYLIB files
8892       lt_prog_compiler_pic='-fno-common'
8893       ;;
8894
8895     haiku*)
8896       # PIC is the default for Haiku.
8897       # The "-static" flag exists, but is broken.
8898       lt_prog_compiler_static=
8899       ;;
8900
8901     hpux*)
8902       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8903       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8904       # sets the default TLS model and affects inlining.
8905       case $host_cpu in
8906       hppa*64*)
8907         # +Z the default
8908         ;;
8909       *)
8910         lt_prog_compiler_pic='-fPIC'
8911         ;;
8912       esac
8913       ;;
8914
8915     interix[3-9]*)
8916       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8917       # Instead, we relocate shared libraries at runtime.
8918       ;;
8919
8920     msdosdjgpp*)
8921       # Just because we use GCC doesn't mean we suddenly get shared libraries
8922       # on systems that don't support them.
8923       lt_prog_compiler_can_build_shared=no
8924       enable_shared=no
8925       ;;
8926
8927     *nto* | *qnx*)
8928       # QNX uses GNU C++, but need to define -shared option too, otherwise
8929       # it will coredump.
8930       lt_prog_compiler_pic='-fPIC -shared'
8931       ;;
8932
8933     sysv4*MP*)
8934       if test -d /usr/nec; then
8935         lt_prog_compiler_pic=-Kconform_pic
8936       fi
8937       ;;
8938
8939     *)
8940       lt_prog_compiler_pic='-fPIC'
8941       ;;
8942     esac
8943
8944     case $cc_basename in
8945     nvcc*) # Cuda Compiler Driver 2.2
8946       lt_prog_compiler_wl='-Xlinker '
8947       if test -n "$lt_prog_compiler_pic"; then
8948         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8949       fi
8950       ;;
8951     esac
8952   else
8953     # PORTME Check for flag to pass linker flags through the system compiler.
8954     case $host_os in
8955     aix*)
8956       lt_prog_compiler_wl='-Wl,'
8957       if test "$host_cpu" = ia64; then
8958         # AIX 5 now supports IA64 processor
8959         lt_prog_compiler_static='-Bstatic'
8960       else
8961         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8962       fi
8963       ;;
8964
8965     mingw* | cygwin* | pw32* | os2* | cegcc*)
8966       # This hack is so that the source file can tell whether it is being
8967       # built for inclusion in a dll (and should export symbols for example).
8968       lt_prog_compiler_pic='-DDLL_EXPORT'
8969       ;;
8970
8971     hpux9* | hpux10* | hpux11*)
8972       lt_prog_compiler_wl='-Wl,'
8973       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8974       # not for PA HP-UX.
8975       case $host_cpu in
8976       hppa*64*|ia64*)
8977         # +Z the default
8978         ;;
8979       *)
8980         lt_prog_compiler_pic='+Z'
8981         ;;
8982       esac
8983       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8984       lt_prog_compiler_static='${wl}-a ${wl}archive'
8985       ;;
8986
8987     irix5* | irix6* | nonstopux*)
8988       lt_prog_compiler_wl='-Wl,'
8989       # PIC (with -KPIC) is the default.
8990       lt_prog_compiler_static='-non_shared'
8991       ;;
8992
8993     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8994       case $cc_basename in
8995       # old Intel for x86_64 which still supported -KPIC.
8996       ecc*)
8997         lt_prog_compiler_wl='-Wl,'
8998         lt_prog_compiler_pic='-KPIC'
8999         lt_prog_compiler_static='-static'
9000         ;;
9001       # icc used to be incompatible with GCC.
9002       # ICC 10 doesn't accept -KPIC any more.
9003       icc* | ifort*)
9004         lt_prog_compiler_wl='-Wl,'
9005         lt_prog_compiler_pic='-fPIC'
9006         lt_prog_compiler_static='-static'
9007         ;;
9008       # Lahey Fortran 8.1.
9009       lf95*)
9010         lt_prog_compiler_wl='-Wl,'
9011         lt_prog_compiler_pic='--shared'
9012         lt_prog_compiler_static='--static'
9013         ;;
9014       nagfor*)
9015         # NAG Fortran compiler
9016         lt_prog_compiler_wl='-Wl,-Wl,,'
9017         lt_prog_compiler_pic='-PIC'
9018         lt_prog_compiler_static='-Bstatic'
9019         ;;
9020       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9021         # Portland Group compilers (*not* the Pentium gcc compiler,
9022         # which looks to be a dead project)
9023         lt_prog_compiler_wl='-Wl,'
9024         lt_prog_compiler_pic='-fpic'
9025         lt_prog_compiler_static='-Bstatic'
9026         ;;
9027       ccc*)
9028         lt_prog_compiler_wl='-Wl,'
9029         # All Alpha code is PIC.
9030         lt_prog_compiler_static='-non_shared'
9031         ;;
9032       xl* | bgxl* | bgf* | mpixl*)
9033         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9034         lt_prog_compiler_wl='-Wl,'
9035         lt_prog_compiler_pic='-qpic'
9036         lt_prog_compiler_static='-qstaticlink'
9037         ;;
9038       *)
9039         case `$CC -V 2>&1 | sed 5q` in
9040         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9041           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9042           lt_prog_compiler_pic='-KPIC'
9043           lt_prog_compiler_static='-Bstatic'
9044           lt_prog_compiler_wl=''
9045           ;;
9046         *Sun\ F* | *Sun*Fortran*)
9047           lt_prog_compiler_pic='-KPIC'
9048           lt_prog_compiler_static='-Bstatic'
9049           lt_prog_compiler_wl='-Qoption ld '
9050           ;;
9051         *Sun\ C*)
9052           # Sun C 5.9
9053           lt_prog_compiler_pic='-KPIC'
9054           lt_prog_compiler_static='-Bstatic'
9055           lt_prog_compiler_wl='-Wl,'
9056           ;;
9057         *Intel*\ [CF]*Compiler*)
9058           lt_prog_compiler_wl='-Wl,'
9059           lt_prog_compiler_pic='-fPIC'
9060           lt_prog_compiler_static='-static'
9061           ;;
9062         *Portland\ Group*)
9063           lt_prog_compiler_wl='-Wl,'
9064           lt_prog_compiler_pic='-fpic'
9065           lt_prog_compiler_static='-Bstatic'
9066           ;;
9067         esac
9068         ;;
9069       esac
9070       ;;
9071
9072     newsos6)
9073       lt_prog_compiler_pic='-KPIC'
9074       lt_prog_compiler_static='-Bstatic'
9075       ;;
9076
9077     *nto* | *qnx*)
9078       # QNX uses GNU C++, but need to define -shared option too, otherwise
9079       # it will coredump.
9080       lt_prog_compiler_pic='-fPIC -shared'
9081       ;;
9082
9083     osf3* | osf4* | osf5*)
9084       lt_prog_compiler_wl='-Wl,'
9085       # All OSF/1 code is PIC.
9086       lt_prog_compiler_static='-non_shared'
9087       ;;
9088
9089     rdos*)
9090       lt_prog_compiler_static='-non_shared'
9091       ;;
9092
9093     solaris*)
9094       lt_prog_compiler_pic='-KPIC'
9095       lt_prog_compiler_static='-Bstatic'
9096       case $cc_basename in
9097       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9098         lt_prog_compiler_wl='-Qoption ld ';;
9099       *)
9100         lt_prog_compiler_wl='-Wl,';;
9101       esac
9102       ;;
9103
9104     sunos4*)
9105       lt_prog_compiler_wl='-Qoption ld '
9106       lt_prog_compiler_pic='-PIC'
9107       lt_prog_compiler_static='-Bstatic'
9108       ;;
9109
9110     sysv4 | sysv4.2uw2* | sysv4.3*)
9111       lt_prog_compiler_wl='-Wl,'
9112       lt_prog_compiler_pic='-KPIC'
9113       lt_prog_compiler_static='-Bstatic'
9114       ;;
9115
9116     sysv4*MP*)
9117       if test -d /usr/nec ;then
9118         lt_prog_compiler_pic='-Kconform_pic'
9119         lt_prog_compiler_static='-Bstatic'
9120       fi
9121       ;;
9122
9123     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9124       lt_prog_compiler_wl='-Wl,'
9125       lt_prog_compiler_pic='-KPIC'
9126       lt_prog_compiler_static='-Bstatic'
9127       ;;
9128
9129     unicos*)
9130       lt_prog_compiler_wl='-Wl,'
9131       lt_prog_compiler_can_build_shared=no
9132       ;;
9133
9134     uts4*)
9135       lt_prog_compiler_pic='-pic'
9136       lt_prog_compiler_static='-Bstatic'
9137       ;;
9138
9139     *)
9140       lt_prog_compiler_can_build_shared=no
9141       ;;
9142     esac
9143   fi
9144
9145 case $host_os in
9146   # For platforms which do not support PIC, -DPIC is meaningless:
9147   *djgpp*)
9148     lt_prog_compiler_pic=
9149     ;;
9150   *)
9151     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9152     ;;
9153 esac
9154
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9156 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9157 if ${lt_cv_prog_compiler_pic+:} false; then :
9158   $as_echo_n "(cached) " >&6
9159 else
9160   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9163 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9164 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9165
9166 #
9167 # Check to make sure the PIC flag actually works.
9168 #
9169 if test -n "$lt_prog_compiler_pic"; then
9170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9171 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9172 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9173   $as_echo_n "(cached) " >&6
9174 else
9175   lt_cv_prog_compiler_pic_works=no
9176    ac_outfile=conftest.$ac_objext
9177    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9178    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9179    # Insert the option either (1) after the last *FLAGS variable, or
9180    # (2) before a word containing "conftest.", or (3) at the end.
9181    # Note that $ac_compile itself does not contain backslashes and begins
9182    # with a dollar sign (not a hyphen), so the echo should work correctly.
9183    # The option is referenced via a variable to avoid confusing sed.
9184    lt_compile=`echo "$ac_compile" | $SED \
9185    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9186    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9187    -e 's:$: $lt_compiler_flag:'`
9188    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9189    (eval "$lt_compile" 2>conftest.err)
9190    ac_status=$?
9191    cat conftest.err >&5
9192    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193    if (exit $ac_status) && test -s "$ac_outfile"; then
9194      # The compiler can only warn and ignore the option if not recognized
9195      # So say no if there are warnings other than the usual output.
9196      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9197      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9198      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9199        lt_cv_prog_compiler_pic_works=yes
9200      fi
9201    fi
9202    $RM conftest*
9203
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9206 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9207
9208 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9209     case $lt_prog_compiler_pic in
9210      "" | " "*) ;;
9211      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9212      esac
9213 else
9214     lt_prog_compiler_pic=
9215      lt_prog_compiler_can_build_shared=no
9216 fi
9217
9218 fi
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230 #
9231 # Check to make sure the static flag actually works.
9232 #
9233 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9235 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9236 if ${lt_cv_prog_compiler_static_works+:} false; then :
9237   $as_echo_n "(cached) " >&6
9238 else
9239   lt_cv_prog_compiler_static_works=no
9240    save_LDFLAGS="$LDFLAGS"
9241    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9242    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9243    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9244      # The linker can only warn and ignore the option if not recognized
9245      # So say no if there are warnings
9246      if test -s conftest.err; then
9247        # Append any errors to the config.log.
9248        cat conftest.err 1>&5
9249        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9250        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9251        if diff conftest.exp conftest.er2 >/dev/null; then
9252          lt_cv_prog_compiler_static_works=yes
9253        fi
9254      else
9255        lt_cv_prog_compiler_static_works=yes
9256      fi
9257    fi
9258    $RM -r conftest*
9259    LDFLAGS="$save_LDFLAGS"
9260
9261 fi
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9263 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9264
9265 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9266     :
9267 else
9268     lt_prog_compiler_static=
9269 fi
9270
9271
9272
9273
9274
9275
9276
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9278 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9279 if ${lt_cv_prog_compiler_c_o+:} false; then :
9280   $as_echo_n "(cached) " >&6
9281 else
9282   lt_cv_prog_compiler_c_o=no
9283    $RM -r conftest 2>/dev/null
9284    mkdir conftest
9285    cd conftest
9286    mkdir out
9287    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9288
9289    lt_compiler_flag="-o out/conftest2.$ac_objext"
9290    # Insert the option either (1) after the last *FLAGS variable, or
9291    # (2) before a word containing "conftest.", or (3) at the end.
9292    # Note that $ac_compile itself does not contain backslashes and begins
9293    # with a dollar sign (not a hyphen), so the echo should work correctly.
9294    lt_compile=`echo "$ac_compile" | $SED \
9295    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9296    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9297    -e 's:$: $lt_compiler_flag:'`
9298    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9299    (eval "$lt_compile" 2>out/conftest.err)
9300    ac_status=$?
9301    cat out/conftest.err >&5
9302    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9304    then
9305      # The compiler can only warn and ignore the option if not recognized
9306      # So say no if there are warnings
9307      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9308      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9309      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9310        lt_cv_prog_compiler_c_o=yes
9311      fi
9312    fi
9313    chmod u+w . 2>&5
9314    $RM conftest*
9315    # SGI C++ compiler will create directory out/ii_files/ for
9316    # template instantiation
9317    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9318    $RM out/* && rmdir out
9319    cd ..
9320    $RM -r conftest
9321    $RM conftest*
9322
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9325 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9326
9327
9328
9329
9330
9331
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9333 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9334 if ${lt_cv_prog_compiler_c_o+:} false; then :
9335   $as_echo_n "(cached) " >&6
9336 else
9337   lt_cv_prog_compiler_c_o=no
9338    $RM -r conftest 2>/dev/null
9339    mkdir conftest
9340    cd conftest
9341    mkdir out
9342    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9343
9344    lt_compiler_flag="-o out/conftest2.$ac_objext"
9345    # Insert the option either (1) after the last *FLAGS variable, or
9346    # (2) before a word containing "conftest.", or (3) at the end.
9347    # Note that $ac_compile itself does not contain backslashes and begins
9348    # with a dollar sign (not a hyphen), so the echo should work correctly.
9349    lt_compile=`echo "$ac_compile" | $SED \
9350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9352    -e 's:$: $lt_compiler_flag:'`
9353    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9354    (eval "$lt_compile" 2>out/conftest.err)
9355    ac_status=$?
9356    cat out/conftest.err >&5
9357    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9359    then
9360      # The compiler can only warn and ignore the option if not recognized
9361      # So say no if there are warnings
9362      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9363      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9364      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9365        lt_cv_prog_compiler_c_o=yes
9366      fi
9367    fi
9368    chmod u+w . 2>&5
9369    $RM conftest*
9370    # SGI C++ compiler will create directory out/ii_files/ for
9371    # template instantiation
9372    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9373    $RM out/* && rmdir out
9374    cd ..
9375    $RM -r conftest
9376    $RM conftest*
9377
9378 fi
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9380 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9381
9382
9383
9384
9385 hard_links="nottested"
9386 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9387   # do not overwrite the value of need_locks provided by the user
9388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9389 $as_echo_n "checking if we can lock with hard links... " >&6; }
9390   hard_links=yes
9391   $RM conftest*
9392   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9393   touch conftest.a
9394   ln conftest.a conftest.b 2>&5 || hard_links=no
9395   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9397 $as_echo "$hard_links" >&6; }
9398   if test "$hard_links" = no; then
9399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9400 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9401     need_locks=warn
9402   fi
9403 else
9404   need_locks=no
9405 fi
9406
9407
9408
9409
9410
9411
9412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9413 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9414
9415   runpath_var=
9416   allow_undefined_flag=
9417   always_export_symbols=no
9418   archive_cmds=
9419   archive_expsym_cmds=
9420   compiler_needs_object=no
9421   enable_shared_with_static_runtimes=no
9422   export_dynamic_flag_spec=
9423   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9424   hardcode_automatic=no
9425   hardcode_direct=no
9426   hardcode_direct_absolute=no
9427   hardcode_libdir_flag_spec=
9428   hardcode_libdir_separator=
9429   hardcode_minus_L=no
9430   hardcode_shlibpath_var=unsupported
9431   inherit_rpath=no
9432   link_all_deplibs=unknown
9433   module_cmds=
9434   module_expsym_cmds=
9435   old_archive_from_new_cmds=
9436   old_archive_from_expsyms_cmds=
9437   thread_safe_flag_spec=
9438   whole_archive_flag_spec=
9439   # include_expsyms should be a list of space-separated symbols to be *always*
9440   # included in the symbol list
9441   include_expsyms=
9442   # exclude_expsyms can be an extended regexp of symbols to exclude
9443   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9444   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9445   # as well as any symbol that contains `d'.
9446   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9447   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9448   # platforms (ab)use it in PIC code, but their linkers get confused if
9449   # the symbol is explicitly referenced.  Since portable code cannot
9450   # rely on this symbol name, it's probably fine to never include it in
9451   # preloaded symbol tables.
9452   # Exclude shared library initialization/finalization symbols.
9453   extract_expsyms_cmds=
9454
9455   case $host_os in
9456   cygwin* | mingw* | pw32* | cegcc*)
9457     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9458     # When not using gcc, we currently assume that we are using
9459     # Microsoft Visual C++.
9460     if test "$GCC" != yes; then
9461       with_gnu_ld=no
9462     fi
9463     ;;
9464   interix*)
9465     # we just hope/assume this is gcc and not c89 (= MSVC++)
9466     with_gnu_ld=yes
9467     ;;
9468   openbsd*)
9469     with_gnu_ld=no
9470     ;;
9471   esac
9472
9473   ld_shlibs=yes
9474
9475   # On some targets, GNU ld is compatible enough with the native linker
9476   # that we're better off using the native interface for both.
9477   lt_use_gnu_ld_interface=no
9478   if test "$with_gnu_ld" = yes; then
9479     case $host_os in
9480       aix*)
9481         # The AIX port of GNU ld has always aspired to compatibility
9482         # with the native linker.  However, as the warning in the GNU ld
9483         # block says, versions before 2.19.5* couldn't really create working
9484         # shared libraries, regardless of the interface used.
9485         case `$LD -v 2>&1` in
9486           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9487           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9488           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9489           *)
9490             lt_use_gnu_ld_interface=yes
9491             ;;
9492         esac
9493         ;;
9494       *)
9495         lt_use_gnu_ld_interface=yes
9496         ;;
9497     esac
9498   fi
9499
9500   if test "$lt_use_gnu_ld_interface" = yes; then
9501     # If archive_cmds runs LD, not CC, wlarc should be empty
9502     wlarc='${wl}'
9503
9504     # Set some defaults for GNU ld with shared library support. These
9505     # are reset later if shared libraries are not supported. Putting them
9506     # here allows them to be overridden if necessary.
9507     runpath_var=LD_RUN_PATH
9508     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9509     export_dynamic_flag_spec='${wl}--export-dynamic'
9510     # ancient GNU ld didn't support --whole-archive et. al.
9511     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9512       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9513     else
9514       whole_archive_flag_spec=
9515     fi
9516     supports_anon_versioning=no
9517     case `$LD -v 2>&1` in
9518       *GNU\ gold*) supports_anon_versioning=yes ;;
9519       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9520       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9521       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9522       *\ 2.11.*) ;; # other 2.11 versions
9523       *) supports_anon_versioning=yes ;;
9524     esac
9525
9526     # See if GNU ld supports shared libraries.
9527     case $host_os in
9528     aix[3-9]*)
9529       # On AIX/PPC, the GNU linker is very broken
9530       if test "$host_cpu" != ia64; then
9531         ld_shlibs=no
9532         cat <<_LT_EOF 1>&2
9533
9534 *** Warning: the GNU linker, at least up to release 2.19, is reported
9535 *** to be unable to reliably create shared libraries on AIX.
9536 *** Therefore, libtool is disabling shared libraries support.  If you
9537 *** really care for shared libraries, you may want to install binutils
9538 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9539 *** You will then need to restart the configuration process.
9540
9541 _LT_EOF
9542       fi
9543       ;;
9544
9545     amigaos*)
9546       case $host_cpu in
9547       powerpc)
9548             # see comment about AmigaOS4 .so support
9549             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550             archive_expsym_cmds=''
9551         ;;
9552       m68k)
9553             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)'
9554             hardcode_libdir_flag_spec='-L$libdir'
9555             hardcode_minus_L=yes
9556         ;;
9557       esac
9558       ;;
9559
9560     beos*)
9561       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9562         allow_undefined_flag=unsupported
9563         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9564         # support --undefined.  This deserves some investigation.  FIXME
9565         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9566       else
9567         ld_shlibs=no
9568       fi
9569       ;;
9570
9571     cygwin* | mingw* | pw32* | cegcc*)
9572       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9573       # as there is no search path for DLLs.
9574       hardcode_libdir_flag_spec='-L$libdir'
9575       export_dynamic_flag_spec='${wl}--export-all-symbols'
9576       allow_undefined_flag=unsupported
9577       always_export_symbols=no
9578       enable_shared_with_static_runtimes=yes
9579       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'
9580       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9581
9582       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9583         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9584         # If the export-symbols file already is a .def file (1st line
9585         # is EXPORTS), use it as is; otherwise, prepend...
9586         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9587           cp $export_symbols $output_objdir/$soname.def;
9588         else
9589           echo EXPORTS > $output_objdir/$soname.def;
9590           cat $export_symbols >> $output_objdir/$soname.def;
9591         fi~
9592         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9593       else
9594         ld_shlibs=no
9595       fi
9596       ;;
9597
9598     haiku*)
9599       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600       link_all_deplibs=yes
9601       ;;
9602
9603     interix[3-9]*)
9604       hardcode_direct=no
9605       hardcode_shlibpath_var=no
9606       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9607       export_dynamic_flag_spec='${wl}-E'
9608       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9609       # Instead, shared libraries are loaded at an image base (0x10000000 by
9610       # default) and relocated if they conflict, which is a slow very memory
9611       # consuming and fragmenting process.  To avoid this, we pick a random,
9612       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9613       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9614       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9615       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'
9616       ;;
9617
9618     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9619       tmp_diet=no
9620       if test "$host_os" = linux-dietlibc; then
9621         case $cc_basename in
9622           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9623         esac
9624       fi
9625       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9626          && test "$tmp_diet" = no
9627       then
9628         tmp_addflag=' $pic_flag'
9629         tmp_sharedflag='-shared'
9630         case $cc_basename,$host_cpu in
9631         pgcc*)                          # Portland Group C compiler
9632           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'
9633           tmp_addflag=' $pic_flag'
9634           ;;
9635         pgf77* | pgf90* | pgf95* | pgfortran*)
9636                                         # Portland Group f77 and f90 compilers
9637           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'
9638           tmp_addflag=' $pic_flag -Mnomain' ;;
9639         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9640           tmp_addflag=' -i_dynamic' ;;
9641         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9642           tmp_addflag=' -i_dynamic -nofor_main' ;;
9643         ifc* | ifort*)                  # Intel Fortran compiler
9644           tmp_addflag=' -nofor_main' ;;
9645         lf95*)                          # Lahey Fortran 8.1
9646           whole_archive_flag_spec=
9647           tmp_sharedflag='--shared' ;;
9648         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9649           tmp_sharedflag='-qmkshrobj'
9650           tmp_addflag= ;;
9651         nvcc*)  # Cuda Compiler Driver 2.2
9652           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'
9653           compiler_needs_object=yes
9654           ;;
9655         esac
9656         case `$CC -V 2>&1 | sed 5q` in
9657         *Sun\ C*)                       # Sun C 5.9
9658           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'
9659           compiler_needs_object=yes
9660           tmp_sharedflag='-G' ;;
9661         *Sun\ F*)                       # Sun Fortran 8.3
9662           tmp_sharedflag='-G' ;;
9663         esac
9664         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9665
9666         if test "x$supports_anon_versioning" = xyes; then
9667           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9668             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9669             echo "local: *; };" >> $output_objdir/$libname.ver~
9670             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9671         fi
9672
9673         case $cc_basename in
9674         xlf* | bgf* | bgxlf* | mpixlf*)
9675           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9676           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9677           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9679           if test "x$supports_anon_versioning" = xyes; then
9680             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9681               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9682               echo "local: *; };" >> $output_objdir/$libname.ver~
9683               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9684           fi
9685           ;;
9686         esac
9687       else
9688         ld_shlibs=no
9689       fi
9690       ;;
9691
9692     netbsd*)
9693       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9694         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9695         wlarc=
9696       else
9697         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9698         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9699       fi
9700       ;;
9701
9702     solaris*)
9703       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9704         ld_shlibs=no
9705         cat <<_LT_EOF 1>&2
9706
9707 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9708 *** create shared libraries on Solaris systems.  Therefore, libtool
9709 *** is disabling shared libraries support.  We urge you to upgrade GNU
9710 *** binutils to release 2.9.1 or newer.  Another option is to modify
9711 *** your PATH or compiler configuration so that the native linker is
9712 *** used, and then restart.
9713
9714 _LT_EOF
9715       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9716         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9717         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9718       else
9719         ld_shlibs=no
9720       fi
9721       ;;
9722
9723     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9724       case `$LD -v 2>&1` in
9725         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9726         ld_shlibs=no
9727         cat <<_LT_EOF 1>&2
9728
9729 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9730 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9731 *** is disabling shared libraries support.  We urge you to upgrade GNU
9732 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9733 *** your PATH or compiler configuration so that the native linker is
9734 *** used, and then restart.
9735
9736 _LT_EOF
9737         ;;
9738         *)
9739           # For security reasons, it is highly recommended that you always
9740           # use absolute paths for naming shared libraries, and exclude the
9741           # DT_RUNPATH tag from executables and libraries.  But doing so
9742           # requires that you compile everything twice, which is a pain.
9743           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9744             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9746             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9747           else
9748             ld_shlibs=no
9749           fi
9750         ;;
9751       esac
9752       ;;
9753
9754     sunos4*)
9755       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9756       wlarc=
9757       hardcode_direct=yes
9758       hardcode_shlibpath_var=no
9759       ;;
9760
9761     *)
9762       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9763         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9765       else
9766         ld_shlibs=no
9767       fi
9768       ;;
9769     esac
9770
9771     if test "$ld_shlibs" = no; then
9772       runpath_var=
9773       hardcode_libdir_flag_spec=
9774       export_dynamic_flag_spec=
9775       whole_archive_flag_spec=
9776     fi
9777   else
9778     # PORTME fill in a description of your system's linker (not GNU ld)
9779     case $host_os in
9780     aix3*)
9781       allow_undefined_flag=unsupported
9782       always_export_symbols=yes
9783       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'
9784       # Note: this linker hardcodes the directories in LIBPATH if there
9785       # are no directories specified by -L.
9786       hardcode_minus_L=yes
9787       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9788         # Neither direct hardcoding nor static linking is supported with a
9789         # broken collect2.
9790         hardcode_direct=unsupported
9791       fi
9792       ;;
9793
9794     aix[4-9]*)
9795       if test "$host_cpu" = ia64; then
9796         # On IA64, the linker does run time linking by default, so we don't
9797         # have to do anything special.
9798         aix_use_runtimelinking=no
9799         exp_sym_flag='-Bexport'
9800         no_entry_flag=""
9801       else
9802         # If we're using GNU nm, then we don't want the "-C" option.
9803         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9804         # Also, AIX nm treats weak defined symbols like other global
9805         # defined symbols, whereas GNU nm marks them as "W".
9806         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9807           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'
9808         else
9809           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'
9810         fi
9811         aix_use_runtimelinking=no
9812
9813         # Test if we are trying to use run time linking or normal
9814         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9815         # need to do runtime linking.
9816         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9817           for ld_flag in $LDFLAGS; do
9818           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9819             aix_use_runtimelinking=yes
9820             break
9821           fi
9822           done
9823           ;;
9824         esac
9825
9826         exp_sym_flag='-bexport'
9827         no_entry_flag='-bnoentry'
9828       fi
9829
9830       # When large executables or shared objects are built, AIX ld can
9831       # have problems creating the table of contents.  If linking a library
9832       # or program results in "error TOC overflow" add -mminimal-toc to
9833       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9834       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9835
9836       archive_cmds=''
9837       hardcode_direct=yes
9838       hardcode_direct_absolute=yes
9839       hardcode_libdir_separator=':'
9840       link_all_deplibs=yes
9841       file_list_spec='${wl}-f,'
9842
9843       if test "$GCC" = yes; then
9844         case $host_os in aix4.[012]|aix4.[012].*)
9845         # We only want to do this on AIX 4.2 and lower, the check
9846         # below for broken collect2 doesn't work under 4.3+
9847           collect2name=`${CC} -print-prog-name=collect2`
9848           if test -f "$collect2name" &&
9849            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9850           then
9851           # We have reworked collect2
9852           :
9853           else
9854           # We have old collect2
9855           hardcode_direct=unsupported
9856           # It fails to find uninstalled libraries when the uninstalled
9857           # path is not listed in the libpath.  Setting hardcode_minus_L
9858           # to unsupported forces relinking
9859           hardcode_minus_L=yes
9860           hardcode_libdir_flag_spec='-L$libdir'
9861           hardcode_libdir_separator=
9862           fi
9863           ;;
9864         esac
9865         shared_flag='-shared'
9866         if test "$aix_use_runtimelinking" = yes; then
9867           shared_flag="$shared_flag "'${wl}-G'
9868         fi
9869       else
9870         # not using gcc
9871         if test "$host_cpu" = ia64; then
9872         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9873         # chokes on -Wl,-G. The following line is correct:
9874           shared_flag='-G'
9875         else
9876           if test "$aix_use_runtimelinking" = yes; then
9877             shared_flag='${wl}-G'
9878           else
9879             shared_flag='${wl}-bM:SRE'
9880           fi
9881         fi
9882       fi
9883
9884       export_dynamic_flag_spec='${wl}-bexpall'
9885       # It seems that -bexpall does not export symbols beginning with
9886       # underscore (_), so it is better to generate a list of symbols to export.
9887       always_export_symbols=yes
9888       if test "$aix_use_runtimelinking" = yes; then
9889         # Warning - without using the other runtime loading flags (-brtl),
9890         # -berok will link without error, but may produce a broken library.
9891         allow_undefined_flag='-berok'
9892         # Determine the default libpath from the value encoded in an
9893         # empty executable.
9894         if test "${lt_cv_aix_libpath+set}" = set; then
9895   aix_libpath=$lt_cv_aix_libpath
9896 else
9897   if ${lt_cv_aix_libpath_+:} false; then :
9898   $as_echo_n "(cached) " >&6
9899 else
9900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h.  */
9902
9903 int
9904 main ()
9905 {
9906
9907   ;
9908   return 0;
9909 }
9910 _ACEOF
9911 if ac_fn_c_try_link "$LINENO"; then :
9912
9913   lt_aix_libpath_sed='
9914       /Import File Strings/,/^$/ {
9915           /^0/ {
9916               s/^0  *\([^ ]*\) *$/\1/
9917               p
9918           }
9919       }'
9920   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9921   # Check for a 64-bit object if we didn't find anything.
9922   if test -z "$lt_cv_aix_libpath_"; then
9923     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9924   fi
9925 fi
9926 rm -f core conftest.err conftest.$ac_objext \
9927     conftest$ac_exeext conftest.$ac_ext
9928   if test -z "$lt_cv_aix_libpath_"; then
9929     lt_cv_aix_libpath_="/usr/lib:/lib"
9930   fi
9931
9932 fi
9933
9934   aix_libpath=$lt_cv_aix_libpath_
9935 fi
9936
9937         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9938         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"
9939       else
9940         if test "$host_cpu" = ia64; then
9941           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9942           allow_undefined_flag="-z nodefs"
9943           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"
9944         else
9945          # Determine the default libpath from the value encoded in an
9946          # empty executable.
9947          if test "${lt_cv_aix_libpath+set}" = set; then
9948   aix_libpath=$lt_cv_aix_libpath
9949 else
9950   if ${lt_cv_aix_libpath_+:} false; then :
9951   $as_echo_n "(cached) " >&6
9952 else
9953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h.  */
9955
9956 int
9957 main ()
9958 {
9959
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 if ac_fn_c_try_link "$LINENO"; then :
9965
9966   lt_aix_libpath_sed='
9967       /Import File Strings/,/^$/ {
9968           /^0/ {
9969               s/^0  *\([^ ]*\) *$/\1/
9970               p
9971           }
9972       }'
9973   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9974   # Check for a 64-bit object if we didn't find anything.
9975   if test -z "$lt_cv_aix_libpath_"; then
9976     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9977   fi
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext \
9980     conftest$ac_exeext conftest.$ac_ext
9981   if test -z "$lt_cv_aix_libpath_"; then
9982     lt_cv_aix_libpath_="/usr/lib:/lib"
9983   fi
9984
9985 fi
9986
9987   aix_libpath=$lt_cv_aix_libpath_
9988 fi
9989
9990          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9991           # Warning - without using the other run time loading flags,
9992           # -berok will link without error, but may produce a broken library.
9993           no_undefined_flag=' ${wl}-bernotok'
9994           allow_undefined_flag=' ${wl}-berok'
9995           if test "$with_gnu_ld" = yes; then
9996             # We only use this code for GNU lds that support --whole-archive.
9997             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9998           else
9999             # Exported symbols can be pulled into shared objects from archives
10000             whole_archive_flag_spec='$convenience'
10001           fi
10002           archive_cmds_need_lc=yes
10003           # This is similar to how AIX traditionally builds its shared libraries.
10004           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'
10005         fi
10006       fi
10007       ;;
10008
10009     amigaos*)
10010       case $host_cpu in
10011       powerpc)
10012             # see comment about AmigaOS4 .so support
10013             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10014             archive_expsym_cmds=''
10015         ;;
10016       m68k)
10017             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)'
10018             hardcode_libdir_flag_spec='-L$libdir'
10019             hardcode_minus_L=yes
10020         ;;
10021       esac
10022       ;;
10023
10024     bsdi[45]*)
10025       export_dynamic_flag_spec=-rdynamic
10026       ;;
10027
10028     cygwin* | mingw* | pw32* | cegcc*)
10029       # When not using gcc, we currently assume that we are using
10030       # Microsoft Visual C++.
10031       # hardcode_libdir_flag_spec is actually meaningless, as there is
10032       # no search path for DLLs.
10033       case $cc_basename in
10034       cl*)
10035         # Native MSVC
10036         hardcode_libdir_flag_spec=' '
10037         allow_undefined_flag=unsupported
10038         always_export_symbols=yes
10039         file_list_spec='@'
10040         # Tell ltmain to make .lib files, not .a files.
10041         libext=lib
10042         # Tell ltmain to make .dll files, not .so files.
10043         shrext_cmds=".dll"
10044         # FIXME: Setting linknames here is a bad hack.
10045         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10046         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10047             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10048           else
10049             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10050           fi~
10051           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10052           linknames='
10053         # The linker will not automatically build a static lib if we build a DLL.
10054         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10055         enable_shared_with_static_runtimes=yes
10056         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10057         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10058         # Don't use ranlib
10059         old_postinstall_cmds='chmod 644 $oldlib'
10060         postlink_cmds='lt_outputfile="@OUTPUT@"~
10061           lt_tool_outputfile="@TOOL_OUTPUT@"~
10062           case $lt_outputfile in
10063             *.exe|*.EXE) ;;
10064             *)
10065               lt_outputfile="$lt_outputfile.exe"
10066               lt_tool_outputfile="$lt_tool_outputfile.exe"
10067               ;;
10068           esac~
10069           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10070             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10071             $RM "$lt_outputfile.manifest";
10072           fi'
10073         ;;
10074       *)
10075         # Assume MSVC wrapper
10076         hardcode_libdir_flag_spec=' '
10077         allow_undefined_flag=unsupported
10078         # Tell ltmain to make .lib files, not .a files.
10079         libext=lib
10080         # Tell ltmain to make .dll files, not .so files.
10081         shrext_cmds=".dll"
10082         # FIXME: Setting linknames here is a bad hack.
10083         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10084         # The linker will automatically build a .lib file if we build a DLL.
10085         old_archive_from_new_cmds='true'
10086         # FIXME: Should let the user specify the lib program.
10087         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10088         enable_shared_with_static_runtimes=yes
10089         ;;
10090       esac
10091       ;;
10092
10093     darwin* | rhapsody*)
10094
10095
10096   archive_cmds_need_lc=no
10097   hardcode_direct=no
10098   hardcode_automatic=yes
10099   hardcode_shlibpath_var=unsupported
10100   if test "$lt_cv_ld_force_load" = "yes"; then
10101     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\"`'
10102
10103   else
10104     whole_archive_flag_spec=''
10105   fi
10106   link_all_deplibs=yes
10107   allow_undefined_flag="$_lt_dar_allow_undefined"
10108   case $cc_basename in
10109      ifort*) _lt_dar_can_shared=yes ;;
10110      *) _lt_dar_can_shared=$GCC ;;
10111   esac
10112   if test "$_lt_dar_can_shared" = "yes"; then
10113     output_verbose_link_cmd=func_echo_all
10114     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10115     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10116     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}"
10117     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}"
10118
10119   else
10120   ld_shlibs=no
10121   fi
10122
10123       ;;
10124
10125     dgux*)
10126       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127       hardcode_libdir_flag_spec='-L$libdir'
10128       hardcode_shlibpath_var=no
10129       ;;
10130
10131     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10132     # support.  Future versions do this automatically, but an explicit c++rt0.o
10133     # does not break anything, and helps significantly (at the cost of a little
10134     # extra space).
10135     freebsd2.2*)
10136       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10137       hardcode_libdir_flag_spec='-R$libdir'
10138       hardcode_direct=yes
10139       hardcode_shlibpath_var=no
10140       ;;
10141
10142     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10143     freebsd2.*)
10144       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10145       hardcode_direct=yes
10146       hardcode_minus_L=yes
10147       hardcode_shlibpath_var=no
10148       ;;
10149
10150     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10151     freebsd* | dragonfly*)
10152       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10153       hardcode_libdir_flag_spec='-R$libdir'
10154       hardcode_direct=yes
10155       hardcode_shlibpath_var=no
10156       ;;
10157
10158     hpux9*)
10159       if test "$GCC" = yes; then
10160         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'
10161       else
10162         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'
10163       fi
10164       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10165       hardcode_libdir_separator=:
10166       hardcode_direct=yes
10167
10168       # hardcode_minus_L: Not really in the search PATH,
10169       # but as the default location of the library.
10170       hardcode_minus_L=yes
10171       export_dynamic_flag_spec='${wl}-E'
10172       ;;
10173
10174     hpux10*)
10175       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10176         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10177       else
10178         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10179       fi
10180       if test "$with_gnu_ld" = no; then
10181         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10182         hardcode_libdir_separator=:
10183         hardcode_direct=yes
10184         hardcode_direct_absolute=yes
10185         export_dynamic_flag_spec='${wl}-E'
10186         # hardcode_minus_L: Not really in the search PATH,
10187         # but as the default location of the library.
10188         hardcode_minus_L=yes
10189       fi
10190       ;;
10191
10192     hpux11*)
10193       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10194         case $host_cpu in
10195         hppa*64*)
10196           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10197           ;;
10198         ia64*)
10199           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10200           ;;
10201         *)
10202           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10203           ;;
10204         esac
10205       else
10206         case $host_cpu in
10207         hppa*64*)
10208           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10209           ;;
10210         ia64*)
10211           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10212           ;;
10213         *)
10214
10215           # Older versions of the 11.00 compiler do not understand -b yet
10216           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10217           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10218 $as_echo_n "checking if $CC understands -b... " >&6; }
10219 if ${lt_cv_prog_compiler__b+:} false; then :
10220   $as_echo_n "(cached) " >&6
10221 else
10222   lt_cv_prog_compiler__b=no
10223    save_LDFLAGS="$LDFLAGS"
10224    LDFLAGS="$LDFLAGS -b"
10225    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10226    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10227      # The linker can only warn and ignore the option if not recognized
10228      # So say no if there are warnings
10229      if test -s conftest.err; then
10230        # Append any errors to the config.log.
10231        cat conftest.err 1>&5
10232        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10233        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10234        if diff conftest.exp conftest.er2 >/dev/null; then
10235          lt_cv_prog_compiler__b=yes
10236        fi
10237      else
10238        lt_cv_prog_compiler__b=yes
10239      fi
10240    fi
10241    $RM -r conftest*
10242    LDFLAGS="$save_LDFLAGS"
10243
10244 fi
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10246 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10247
10248 if test x"$lt_cv_prog_compiler__b" = xyes; then
10249     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10250 else
10251     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10252 fi
10253
10254           ;;
10255         esac
10256       fi
10257       if test "$with_gnu_ld" = no; then
10258         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10259         hardcode_libdir_separator=:
10260
10261         case $host_cpu in
10262         hppa*64*|ia64*)
10263           hardcode_direct=no
10264           hardcode_shlibpath_var=no
10265           ;;
10266         *)
10267           hardcode_direct=yes
10268           hardcode_direct_absolute=yes
10269           export_dynamic_flag_spec='${wl}-E'
10270
10271           # hardcode_minus_L: Not really in the search PATH,
10272           # but as the default location of the library.
10273           hardcode_minus_L=yes
10274           ;;
10275         esac
10276       fi
10277       ;;
10278
10279     irix5* | irix6* | nonstopux*)
10280       if test "$GCC" = yes; then
10281         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'
10282         # Try to use the -exported_symbol ld option, if it does not
10283         # work, assume that -exports_file does not work either and
10284         # implicitly export all symbols.
10285         # This should be the same for all languages, so no per-tag cache variable.
10286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10287 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10288 if ${lt_cv_irix_exported_symbol+:} false; then :
10289   $as_echo_n "(cached) " >&6
10290 else
10291   save_LDFLAGS="$LDFLAGS"
10292            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10293            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h.  */
10295 int foo (void) { return 0; }
10296 _ACEOF
10297 if ac_fn_c_try_link "$LINENO"; then :
10298   lt_cv_irix_exported_symbol=yes
10299 else
10300   lt_cv_irix_exported_symbol=no
10301 fi
10302 rm -f core conftest.err conftest.$ac_objext \
10303     conftest$ac_exeext conftest.$ac_ext
10304            LDFLAGS="$save_LDFLAGS"
10305 fi
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10307 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10308         if test "$lt_cv_irix_exported_symbol" = yes; then
10309           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'
10310         fi
10311       else
10312         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'
10313         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'
10314       fi
10315       archive_cmds_need_lc='no'
10316       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10317       hardcode_libdir_separator=:
10318       inherit_rpath=yes
10319       link_all_deplibs=yes
10320       ;;
10321
10322     netbsd*)
10323       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10324         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10325       else
10326         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10327       fi
10328       hardcode_libdir_flag_spec='-R$libdir'
10329       hardcode_direct=yes
10330       hardcode_shlibpath_var=no
10331       ;;
10332
10333     newsos6)
10334       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335       hardcode_direct=yes
10336       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10337       hardcode_libdir_separator=:
10338       hardcode_shlibpath_var=no
10339       ;;
10340
10341     *nto* | *qnx*)
10342       ;;
10343
10344     openbsd*)
10345       if test -f /usr/libexec/ld.so; then
10346         hardcode_direct=yes
10347         hardcode_shlibpath_var=no
10348         hardcode_direct_absolute=yes
10349         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10350           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10351           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10352           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10353           export_dynamic_flag_spec='${wl}-E'
10354         else
10355           case $host_os in
10356            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10357              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10358              hardcode_libdir_flag_spec='-R$libdir'
10359              ;;
10360            *)
10361              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10362              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10363              ;;
10364           esac
10365         fi
10366       else
10367         ld_shlibs=no
10368       fi
10369       ;;
10370
10371     os2*)
10372       hardcode_libdir_flag_spec='-L$libdir'
10373       hardcode_minus_L=yes
10374       allow_undefined_flag=unsupported
10375       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'
10376       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10377       ;;
10378
10379     osf3*)
10380       if test "$GCC" = yes; then
10381         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10382         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'
10383       else
10384         allow_undefined_flag=' -expect_unresolved \*'
10385         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'
10386       fi
10387       archive_cmds_need_lc='no'
10388       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10389       hardcode_libdir_separator=:
10390       ;;
10391
10392     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10393       if test "$GCC" = yes; then
10394         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10395         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'
10396         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10397       else
10398         allow_undefined_flag=' -expect_unresolved \*'
10399         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'
10400         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~
10401         $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'
10402
10403         # Both c and cxx compiler support -rpath directly
10404         hardcode_libdir_flag_spec='-rpath $libdir'
10405       fi
10406       archive_cmds_need_lc='no'
10407       hardcode_libdir_separator=:
10408       ;;
10409
10410     solaris*)
10411       no_undefined_flag=' -z defs'
10412       if test "$GCC" = yes; then
10413         wlarc='${wl}'
10414         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10415         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10416           $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'
10417       else
10418         case `$CC -V 2>&1` in
10419         *"Compilers 5.0"*)
10420           wlarc=''
10421           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10422           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10423           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10424           ;;
10425         *)
10426           wlarc='${wl}'
10427           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10428           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10429           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10430           ;;
10431         esac
10432       fi
10433       hardcode_libdir_flag_spec='-R$libdir'
10434       hardcode_shlibpath_var=no
10435       case $host_os in
10436       solaris2.[0-5] | solaris2.[0-5].*) ;;
10437       *)
10438         # The compiler driver will combine and reorder linker options,
10439         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10440         # but is careful enough not to reorder.
10441         # Supported since Solaris 2.6 (maybe 2.5.1?)
10442         if test "$GCC" = yes; then
10443           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10444         else
10445           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10446         fi
10447         ;;
10448       esac
10449       link_all_deplibs=yes
10450       ;;
10451
10452     sunos4*)
10453       if test "x$host_vendor" = xsequent; then
10454         # Use $CC to link under sequent, because it throws in some extra .o
10455         # files that make .init and .fini sections work.
10456         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10457       else
10458         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10459       fi
10460       hardcode_libdir_flag_spec='-L$libdir'
10461       hardcode_direct=yes
10462       hardcode_minus_L=yes
10463       hardcode_shlibpath_var=no
10464       ;;
10465
10466     sysv4)
10467       case $host_vendor in
10468         sni)
10469           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10470           hardcode_direct=yes # is this really true???
10471         ;;
10472         siemens)
10473           ## LD is ld it makes a PLAMLIB
10474           ## CC just makes a GrossModule.
10475           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10476           reload_cmds='$CC -r -o $output$reload_objs'
10477           hardcode_direct=no
10478         ;;
10479         motorola)
10480           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10481           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10482         ;;
10483       esac
10484       runpath_var='LD_RUN_PATH'
10485       hardcode_shlibpath_var=no
10486       ;;
10487
10488     sysv4.3*)
10489       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10490       hardcode_shlibpath_var=no
10491       export_dynamic_flag_spec='-Bexport'
10492       ;;
10493
10494     sysv4*MP*)
10495       if test -d /usr/nec; then
10496         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10497         hardcode_shlibpath_var=no
10498         runpath_var=LD_RUN_PATH
10499         hardcode_runpath_var=yes
10500         ld_shlibs=yes
10501       fi
10502       ;;
10503
10504     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10505       no_undefined_flag='${wl}-z,text'
10506       archive_cmds_need_lc=no
10507       hardcode_shlibpath_var=no
10508       runpath_var='LD_RUN_PATH'
10509
10510       if test "$GCC" = yes; then
10511         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10512         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10513       else
10514         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10515         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10516       fi
10517       ;;
10518
10519     sysv5* | sco3.2v5* | sco5v6*)
10520       # Note: We can NOT use -z defs as we might desire, because we do not
10521       # link with -lc, and that would cause any symbols used from libc to
10522       # always be unresolved, which means just about no library would
10523       # ever link correctly.  If we're not using GNU ld we use -z text
10524       # though, which does catch some bad symbols but isn't as heavy-handed
10525       # as -z defs.
10526       no_undefined_flag='${wl}-z,text'
10527       allow_undefined_flag='${wl}-z,nodefs'
10528       archive_cmds_need_lc=no
10529       hardcode_shlibpath_var=no
10530       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10531       hardcode_libdir_separator=':'
10532       link_all_deplibs=yes
10533       export_dynamic_flag_spec='${wl}-Bexport'
10534       runpath_var='LD_RUN_PATH'
10535
10536       if test "$GCC" = yes; then
10537         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10538         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10539       else
10540         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10541         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10542       fi
10543       ;;
10544
10545     uts4*)
10546       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10547       hardcode_libdir_flag_spec='-L$libdir'
10548       hardcode_shlibpath_var=no
10549       ;;
10550
10551     *)
10552       ld_shlibs=no
10553       ;;
10554     esac
10555
10556     if test x$host_vendor = xsni; then
10557       case $host in
10558       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10559         export_dynamic_flag_spec='${wl}-Blargedynsym'
10560         ;;
10561       esac
10562     fi
10563   fi
10564
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10566 $as_echo "$ld_shlibs" >&6; }
10567 test "$ld_shlibs" = no && can_build_shared=no
10568
10569 with_gnu_ld=$with_gnu_ld
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585 #
10586 # Do we need to explicitly link libc?
10587 #
10588 case "x$archive_cmds_need_lc" in
10589 x|xyes)
10590   # Assume -lc should be added
10591   archive_cmds_need_lc=yes
10592
10593   if test "$enable_shared" = yes && test "$GCC" = yes; then
10594     case $archive_cmds in
10595     *'~'*)
10596       # FIXME: we may have to deal with multi-command sequences.
10597       ;;
10598     '$CC '*)
10599       # Test whether the compiler implicitly links with -lc since on some
10600       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10601       # to ld, don't add -lc before -lgcc.
10602       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10603 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10604 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10605   $as_echo_n "(cached) " >&6
10606 else
10607   $RM conftest*
10608         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10609
10610         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10611   (eval $ac_compile) 2>&5
10612   ac_status=$?
10613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10614   test $ac_status = 0; } 2>conftest.err; then
10615           soname=conftest
10616           lib=conftest
10617           libobjs=conftest.$ac_objext
10618           deplibs=
10619           wl=$lt_prog_compiler_wl
10620           pic_flag=$lt_prog_compiler_pic
10621           compiler_flags=-v
10622           linker_flags=-v
10623           verstring=
10624           output_objdir=.
10625           libname=conftest
10626           lt_save_allow_undefined_flag=$allow_undefined_flag
10627           allow_undefined_flag=
10628           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10629   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10630   ac_status=$?
10631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10632   test $ac_status = 0; }
10633           then
10634             lt_cv_archive_cmds_need_lc=no
10635           else
10636             lt_cv_archive_cmds_need_lc=yes
10637           fi
10638           allow_undefined_flag=$lt_save_allow_undefined_flag
10639         else
10640           cat conftest.err 1>&5
10641         fi
10642         $RM conftest*
10643
10644 fi
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10646 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10647       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10648       ;;
10649     esac
10650   fi
10651   ;;
10652 esac
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
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10806 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10807
10808 if test "$GCC" = yes; then
10809   case $host_os in
10810     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10811     *) lt_awk_arg="/^libraries:/" ;;
10812   esac
10813   case $host_os in
10814     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10815     *) lt_sed_strip_eq="s,=/,/,g" ;;
10816   esac
10817   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10818   case $lt_search_path_spec in
10819   *\;*)
10820     # if the path contains ";" then we assume it to be the separator
10821     # otherwise default to the standard path separator (i.e. ":") - it is
10822     # assumed that no part of a normal pathname contains ";" but that should
10823     # okay in the real world where ";" in dirpaths is itself problematic.
10824     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10825     ;;
10826   *)
10827     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10828     ;;
10829   esac
10830   # Ok, now we have the path, separated by spaces, we can step through it
10831   # and add multilib dir if necessary.
10832   lt_tmp_lt_search_path_spec=
10833   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10834   for lt_sys_path in $lt_search_path_spec; do
10835     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10836       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10837     else
10838       test -d "$lt_sys_path" && \
10839         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10840     fi
10841   done
10842   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10843 BEGIN {RS=" "; FS="/|\n";} {
10844   lt_foo="";
10845   lt_count=0;
10846   for (lt_i = NF; lt_i > 0; lt_i--) {
10847     if ($lt_i != "" && $lt_i != ".") {
10848       if ($lt_i == "..") {
10849         lt_count++;
10850       } else {
10851         if (lt_count == 0) {
10852           lt_foo="/" $lt_i lt_foo;
10853         } else {
10854           lt_count--;
10855         }
10856       }
10857     }
10858   }
10859   if (lt_foo != "") { lt_freq[lt_foo]++; }
10860   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10861 }'`
10862   # AWK program above erroneously prepends '/' to C:/dos/paths
10863   # for these hosts.
10864   case $host_os in
10865     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10866       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10867   esac
10868   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10869 else
10870   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10871 fi
10872 library_names_spec=
10873 libname_spec='lib$name'
10874 soname_spec=
10875 shrext_cmds=".so"
10876 postinstall_cmds=
10877 postuninstall_cmds=
10878 finish_cmds=
10879 finish_eval=
10880 shlibpath_var=
10881 shlibpath_overrides_runpath=unknown
10882 version_type=none
10883 dynamic_linker="$host_os ld.so"
10884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10885 need_lib_prefix=unknown
10886 hardcode_into_libs=no
10887
10888 # when you set need_version to no, make sure it does not cause -set_version
10889 # flags to be left without arguments
10890 need_version=unknown
10891
10892 case $host_os in
10893 aix3*)
10894   version_type=linux # correct to gnu/linux during the next big refactor
10895   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10896   shlibpath_var=LIBPATH
10897
10898   # AIX 3 has no versioning support, so we append a major version to the name.
10899   soname_spec='${libname}${release}${shared_ext}$major'
10900   ;;
10901
10902 aix[4-9]*)
10903   version_type=linux # correct to gnu/linux during the next big refactor
10904   need_lib_prefix=no
10905   need_version=no
10906   hardcode_into_libs=yes
10907   if test "$host_cpu" = ia64; then
10908     # AIX 5 supports IA64
10909     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10910     shlibpath_var=LD_LIBRARY_PATH
10911   else
10912     # With GCC up to 2.95.x, collect2 would create an import file
10913     # for dependence libraries.  The import file would start with
10914     # the line `#! .'.  This would cause the generated library to
10915     # depend on `.', always an invalid library.  This was fixed in
10916     # development snapshots of GCC prior to 3.0.
10917     case $host_os in
10918       aix4 | aix4.[01] | aix4.[01].*)
10919       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10920            echo ' yes '
10921            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10922         :
10923       else
10924         can_build_shared=no
10925       fi
10926       ;;
10927     esac
10928     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10929     # soname into executable. Probably we can add versioning support to
10930     # collect2, so additional links can be useful in future.
10931     if test "$aix_use_runtimelinking" = yes; then
10932       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10933       # instead of lib<name>.a to let people know that these are not
10934       # typical AIX shared libraries.
10935       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936     else
10937       # We preserve .a as extension for shared libraries through AIX4.2
10938       # and later when we are not doing run time linking.
10939       library_names_spec='${libname}${release}.a $libname.a'
10940       soname_spec='${libname}${release}${shared_ext}$major'
10941     fi
10942     shlibpath_var=LIBPATH
10943   fi
10944   ;;
10945
10946 amigaos*)
10947   case $host_cpu in
10948   powerpc)
10949     # Since July 2007 AmigaOS4 officially supports .so libraries.
10950     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952     ;;
10953   m68k)
10954     library_names_spec='$libname.ixlibrary $libname.a'
10955     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10956     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'
10957     ;;
10958   esac
10959   ;;
10960
10961 beos*)
10962   library_names_spec='${libname}${shared_ext}'
10963   dynamic_linker="$host_os ld.so"
10964   shlibpath_var=LIBRARY_PATH
10965   ;;
10966
10967 bsdi[45]*)
10968   version_type=linux # correct to gnu/linux during the next big refactor
10969   need_version=no
10970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971   soname_spec='${libname}${release}${shared_ext}$major'
10972   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10973   shlibpath_var=LD_LIBRARY_PATH
10974   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10975   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10976   # the default ld.so.conf also contains /usr/contrib/lib and
10977   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10978   # libtool to hard-code these into programs
10979   ;;
10980
10981 cygwin* | mingw* | pw32* | cegcc*)
10982   version_type=windows
10983   shrext_cmds=".dll"
10984   need_version=no
10985   need_lib_prefix=no
10986
10987   case $GCC,$cc_basename in
10988   yes,*)
10989     # gcc
10990     library_names_spec='$libname.dll.a'
10991     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10992     postinstall_cmds='base_file=`basename \${file}`~
10993       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10994       dldir=$destdir/`dirname \$dlpath`~
10995       test -d \$dldir || mkdir -p \$dldir~
10996       $install_prog $dir/$dlname \$dldir/$dlname~
10997       chmod a+x \$dldir/$dlname~
10998       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10999         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11000       fi'
11001     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11002       dlpath=$dir/\$dldll~
11003        $RM \$dlpath'
11004     shlibpath_overrides_runpath=yes
11005
11006     case $host_os in
11007     cygwin*)
11008       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11009       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11010
11011       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11012       ;;
11013     mingw* | cegcc*)
11014       # MinGW DLLs use traditional 'lib' prefix
11015       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11016       ;;
11017     pw32*)
11018       # pw32 DLLs use 'pw' prefix rather than 'lib'
11019       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11020       ;;
11021     esac
11022     dynamic_linker='Win32 ld.exe'
11023     ;;
11024
11025   *,cl*)
11026     # Native MSVC
11027     libname_spec='$name'
11028     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11029     library_names_spec='${libname}.dll.lib'
11030
11031     case $build_os in
11032     mingw*)
11033       sys_lib_search_path_spec=
11034       lt_save_ifs=$IFS
11035       IFS=';'
11036       for lt_path in $LIB
11037       do
11038         IFS=$lt_save_ifs
11039         # Let DOS variable expansion print the short 8.3 style file name.
11040         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11041         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11042       done
11043       IFS=$lt_save_ifs
11044       # Convert to MSYS style.
11045       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11046       ;;
11047     cygwin*)
11048       # Convert to unix form, then to dos form, then back to unix form
11049       # but this time dos style (no spaces!) so that the unix form looks
11050       # like /cygdrive/c/PROGRA~1:/cygdr...
11051       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11052       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11053       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11054       ;;
11055     *)
11056       sys_lib_search_path_spec="$LIB"
11057       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11058         # It is most probably a Windows format PATH.
11059         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11060       else
11061         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11062       fi
11063       # FIXME: find the short name or the path components, as spaces are
11064       # common. (e.g. "Program Files" -> "PROGRA~1")
11065       ;;
11066     esac
11067
11068     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11069     postinstall_cmds='base_file=`basename \${file}`~
11070       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11071       dldir=$destdir/`dirname \$dlpath`~
11072       test -d \$dldir || mkdir -p \$dldir~
11073       $install_prog $dir/$dlname \$dldir/$dlname'
11074     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11075       dlpath=$dir/\$dldll~
11076        $RM \$dlpath'
11077     shlibpath_overrides_runpath=yes
11078     dynamic_linker='Win32 link.exe'
11079     ;;
11080
11081   *)
11082     # Assume MSVC wrapper
11083     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11084     dynamic_linker='Win32 ld.exe'
11085     ;;
11086   esac
11087   # FIXME: first we should search . and the directory the executable is in
11088   shlibpath_var=PATH
11089   ;;
11090
11091 darwin* | rhapsody*)
11092   dynamic_linker="$host_os dyld"
11093   version_type=darwin
11094   need_lib_prefix=no
11095   need_version=no
11096   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11097   soname_spec='${libname}${release}${major}$shared_ext'
11098   shlibpath_overrides_runpath=yes
11099   shlibpath_var=DYLD_LIBRARY_PATH
11100   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11101
11102   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11103   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11104   ;;
11105
11106 dgux*)
11107   version_type=linux # correct to gnu/linux during the next big refactor
11108   need_lib_prefix=no
11109   need_version=no
11110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11111   soname_spec='${libname}${release}${shared_ext}$major'
11112   shlibpath_var=LD_LIBRARY_PATH
11113   ;;
11114
11115 freebsd* | dragonfly*)
11116   # DragonFly does not have aout.  When/if they implement a new
11117   # versioning mechanism, adjust this.
11118   if test -x /usr/bin/objformat; then
11119     objformat=`/usr/bin/objformat`
11120   else
11121     case $host_os in
11122     freebsd[23].*) objformat=aout ;;
11123     *) objformat=elf ;;
11124     esac
11125   fi
11126   version_type=freebsd-$objformat
11127   case $version_type in
11128     freebsd-elf*)
11129       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11130       need_version=no
11131       need_lib_prefix=no
11132       ;;
11133     freebsd-*)
11134       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11135       need_version=yes
11136       ;;
11137   esac
11138   shlibpath_var=LD_LIBRARY_PATH
11139   case $host_os in
11140   freebsd2.*)
11141     shlibpath_overrides_runpath=yes
11142     ;;
11143   freebsd3.[01]* | freebsdelf3.[01]*)
11144     shlibpath_overrides_runpath=yes
11145     hardcode_into_libs=yes
11146     ;;
11147   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11148   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11149     shlibpath_overrides_runpath=no
11150     hardcode_into_libs=yes
11151     ;;
11152   *) # from 4.6 on, and DragonFly
11153     shlibpath_overrides_runpath=yes
11154     hardcode_into_libs=yes
11155     ;;
11156   esac
11157   ;;
11158
11159 gnu*)
11160   version_type=linux # correct to gnu/linux during the next big refactor
11161   need_lib_prefix=no
11162   need_version=no
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11164   soname_spec='${libname}${release}${shared_ext}$major'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   shlibpath_overrides_runpath=no
11167   hardcode_into_libs=yes
11168   ;;
11169
11170 haiku*)
11171   version_type=linux # correct to gnu/linux during the next big refactor
11172   need_lib_prefix=no
11173   need_version=no
11174   dynamic_linker="$host_os runtime_loader"
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11176   soname_spec='${libname}${release}${shared_ext}$major'
11177   shlibpath_var=LIBRARY_PATH
11178   shlibpath_overrides_runpath=yes
11179   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11180   hardcode_into_libs=yes
11181   ;;
11182
11183 hpux9* | hpux10* | hpux11*)
11184   # Give a soname corresponding to the major version so that dld.sl refuses to
11185   # link against other versions.
11186   version_type=sunos
11187   need_lib_prefix=no
11188   need_version=no
11189   case $host_cpu in
11190   ia64*)
11191     shrext_cmds='.so'
11192     hardcode_into_libs=yes
11193     dynamic_linker="$host_os dld.so"
11194     shlibpath_var=LD_LIBRARY_PATH
11195     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197     soname_spec='${libname}${release}${shared_ext}$major'
11198     if test "X$HPUX_IA64_MODE" = X32; then
11199       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11200     else
11201       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11202     fi
11203     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11204     ;;
11205   hppa*64*)
11206     shrext_cmds='.sl'
11207     hardcode_into_libs=yes
11208     dynamic_linker="$host_os dld.sl"
11209     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11210     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212     soname_spec='${libname}${release}${shared_ext}$major'
11213     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11214     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11215     ;;
11216   *)
11217     shrext_cmds='.sl'
11218     dynamic_linker="$host_os dld.sl"
11219     shlibpath_var=SHLIB_PATH
11220     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11221     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222     soname_spec='${libname}${release}${shared_ext}$major'
11223     ;;
11224   esac
11225   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11226   postinstall_cmds='chmod 555 $lib'
11227   # or fails outright, so override atomically:
11228   install_override_mode=555
11229   ;;
11230
11231 interix[3-9]*)
11232   version_type=linux # correct to gnu/linux during the next big refactor
11233   need_lib_prefix=no
11234   need_version=no
11235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11236   soname_spec='${libname}${release}${shared_ext}$major'
11237   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11238   shlibpath_var=LD_LIBRARY_PATH
11239   shlibpath_overrides_runpath=no
11240   hardcode_into_libs=yes
11241   ;;
11242
11243 irix5* | irix6* | nonstopux*)
11244   case $host_os in
11245     nonstopux*) version_type=nonstopux ;;
11246     *)
11247         if test "$lt_cv_prog_gnu_ld" = yes; then
11248                 version_type=linux # correct to gnu/linux during the next big refactor
11249         else
11250                 version_type=irix
11251         fi ;;
11252   esac
11253   need_lib_prefix=no
11254   need_version=no
11255   soname_spec='${libname}${release}${shared_ext}$major'
11256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11257   case $host_os in
11258   irix5* | nonstopux*)
11259     libsuff= shlibsuff=
11260     ;;
11261   *)
11262     case $LD in # libtool.m4 will add one of these switches to LD
11263     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11264       libsuff= shlibsuff= libmagic=32-bit;;
11265     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11266       libsuff=32 shlibsuff=N32 libmagic=N32;;
11267     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11268       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11269     *) libsuff= shlibsuff= libmagic=never-match;;
11270     esac
11271     ;;
11272   esac
11273   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11274   shlibpath_overrides_runpath=no
11275   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11276   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11277   hardcode_into_libs=yes
11278   ;;
11279
11280 # No shared lib support for Linux oldld, aout, or coff.
11281 linux*oldld* | linux*aout* | linux*coff*)
11282   dynamic_linker=no
11283   ;;
11284
11285 # This must be glibc/ELF.
11286 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11287   version_type=linux # correct to gnu/linux during the next big refactor
11288   need_lib_prefix=no
11289   need_version=no
11290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291   soname_spec='${libname}${release}${shared_ext}$major'
11292   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11293   shlibpath_var=LD_LIBRARY_PATH
11294   shlibpath_overrides_runpath=no
11295
11296   # Some binutils ld are patched to set DT_RUNPATH
11297   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   lt_cv_shlibpath_overrides_runpath=no
11301     save_LDFLAGS=$LDFLAGS
11302     save_libdir=$libdir
11303     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11304          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h.  */
11307
11308 int
11309 main ()
11310 {
11311
11312   ;
11313   return 0;
11314 }
11315 _ACEOF
11316 if ac_fn_c_try_link "$LINENO"; then :
11317   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11318   lt_cv_shlibpath_overrides_runpath=yes
11319 fi
11320 fi
11321 rm -f core conftest.err conftest.$ac_objext \
11322     conftest$ac_exeext conftest.$ac_ext
11323     LDFLAGS=$save_LDFLAGS
11324     libdir=$save_libdir
11325
11326 fi
11327
11328   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11329
11330   # This implies no fast_install, which is unacceptable.
11331   # Some rework will be needed to allow for fast_install
11332   # before this can be enabled.
11333   hardcode_into_libs=yes
11334
11335   # Append ld.so.conf contents to the search path
11336   if test -f /etc/ld.so.conf; then
11337     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' ' '`
11338     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11339   fi
11340
11341   # We used to test for /lib/ld.so.1 and disable shared libraries on
11342   # powerpc, because MkLinux only supported shared libraries with the
11343   # GNU dynamic linker.  Since this was broken with cross compilers,
11344   # most powerpc-linux boxes support dynamic linking these days and
11345   # people can always --disable-shared, the test was removed, and we
11346   # assume the GNU/Linux dynamic linker is in use.
11347   dynamic_linker='GNU/Linux ld.so'
11348   ;;
11349
11350 netbsd*)
11351   version_type=sunos
11352   need_lib_prefix=no
11353   need_version=no
11354   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11356     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11357     dynamic_linker='NetBSD (a.out) ld.so'
11358   else
11359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11360     soname_spec='${libname}${release}${shared_ext}$major'
11361     dynamic_linker='NetBSD ld.elf_so'
11362   fi
11363   shlibpath_var=LD_LIBRARY_PATH
11364   shlibpath_overrides_runpath=yes
11365   hardcode_into_libs=yes
11366   ;;
11367
11368 newsos6)
11369   version_type=linux # correct to gnu/linux during the next big refactor
11370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371   shlibpath_var=LD_LIBRARY_PATH
11372   shlibpath_overrides_runpath=yes
11373   ;;
11374
11375 *nto* | *qnx*)
11376   version_type=qnx
11377   need_lib_prefix=no
11378   need_version=no
11379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380   soname_spec='${libname}${release}${shared_ext}$major'
11381   shlibpath_var=LD_LIBRARY_PATH
11382   shlibpath_overrides_runpath=no
11383   hardcode_into_libs=yes
11384   dynamic_linker='ldqnx.so'
11385   ;;
11386
11387 openbsd*)
11388   version_type=sunos
11389   sys_lib_dlsearch_path_spec="/usr/lib"
11390   need_lib_prefix=no
11391   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11392   case $host_os in
11393     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11394     *)                          need_version=no  ;;
11395   esac
11396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11397   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11398   shlibpath_var=LD_LIBRARY_PATH
11399   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11400     case $host_os in
11401       openbsd2.[89] | openbsd2.[89].*)
11402         shlibpath_overrides_runpath=no
11403         ;;
11404       *)
11405         shlibpath_overrides_runpath=yes
11406         ;;
11407       esac
11408   else
11409     shlibpath_overrides_runpath=yes
11410   fi
11411   ;;
11412
11413 os2*)
11414   libname_spec='$name'
11415   shrext_cmds=".dll"
11416   need_lib_prefix=no
11417   library_names_spec='$libname${shared_ext} $libname.a'
11418   dynamic_linker='OS/2 ld.exe'
11419   shlibpath_var=LIBPATH
11420   ;;
11421
11422 osf3* | osf4* | osf5*)
11423   version_type=osf
11424   need_lib_prefix=no
11425   need_version=no
11426   soname_spec='${libname}${release}${shared_ext}$major'
11427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428   shlibpath_var=LD_LIBRARY_PATH
11429   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11430   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11431   ;;
11432
11433 rdos*)
11434   dynamic_linker=no
11435   ;;
11436
11437 solaris*)
11438   version_type=linux # correct to gnu/linux during the next big refactor
11439   need_lib_prefix=no
11440   need_version=no
11441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11442   soname_spec='${libname}${release}${shared_ext}$major'
11443   shlibpath_var=LD_LIBRARY_PATH
11444   shlibpath_overrides_runpath=yes
11445   hardcode_into_libs=yes
11446   # ldd complains unless libraries are executable
11447   postinstall_cmds='chmod +x $lib'
11448   ;;
11449
11450 sunos4*)
11451   version_type=sunos
11452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   shlibpath_overrides_runpath=yes
11456   if test "$with_gnu_ld" = yes; then
11457     need_lib_prefix=no
11458   fi
11459   need_version=yes
11460   ;;
11461
11462 sysv4 | sysv4.3*)
11463   version_type=linux # correct to gnu/linux during the next big refactor
11464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465   soname_spec='${libname}${release}${shared_ext}$major'
11466   shlibpath_var=LD_LIBRARY_PATH
11467   case $host_vendor in
11468     sni)
11469       shlibpath_overrides_runpath=no
11470       need_lib_prefix=no
11471       runpath_var=LD_RUN_PATH
11472       ;;
11473     siemens)
11474       need_lib_prefix=no
11475       ;;
11476     motorola)
11477       need_lib_prefix=no
11478       need_version=no
11479       shlibpath_overrides_runpath=no
11480       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11481       ;;
11482   esac
11483   ;;
11484
11485 sysv4*MP*)
11486   if test -d /usr/nec ;then
11487     version_type=linux # correct to gnu/linux during the next big refactor
11488     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11489     soname_spec='$libname${shared_ext}.$major'
11490     shlibpath_var=LD_LIBRARY_PATH
11491   fi
11492   ;;
11493
11494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11495   version_type=freebsd-elf
11496   need_lib_prefix=no
11497   need_version=no
11498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11499   soname_spec='${libname}${release}${shared_ext}$major'
11500   shlibpath_var=LD_LIBRARY_PATH
11501   shlibpath_overrides_runpath=yes
11502   hardcode_into_libs=yes
11503   if test "$with_gnu_ld" = yes; then
11504     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11505   else
11506     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11507     case $host_os in
11508       sco3.2v5*)
11509         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11510         ;;
11511     esac
11512   fi
11513   sys_lib_dlsearch_path_spec='/usr/lib'
11514   ;;
11515
11516 tpf*)
11517   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11518   version_type=linux # correct to gnu/linux during the next big refactor
11519   need_lib_prefix=no
11520   need_version=no
11521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   shlibpath_overrides_runpath=no
11524   hardcode_into_libs=yes
11525   ;;
11526
11527 uts4*)
11528   version_type=linux # correct to gnu/linux during the next big refactor
11529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530   soname_spec='${libname}${release}${shared_ext}$major'
11531   shlibpath_var=LD_LIBRARY_PATH
11532   ;;
11533
11534 *)
11535   dynamic_linker=no
11536   ;;
11537 esac
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11539 $as_echo "$dynamic_linker" >&6; }
11540 test "$dynamic_linker" = no && can_build_shared=no
11541
11542 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11543 if test "$GCC" = yes; then
11544   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11545 fi
11546
11547 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11548   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11549 fi
11550 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11551   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11552 fi
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
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11646 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11647 hardcode_action=
11648 if test -n "$hardcode_libdir_flag_spec" ||
11649    test -n "$runpath_var" ||
11650    test "X$hardcode_automatic" = "Xyes" ; then
11651
11652   # We can hardcode non-existent directories.
11653   if test "$hardcode_direct" != no &&
11654      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11655      # have to relink, otherwise we might link with an installed library
11656      # when we should be linking with a yet-to-be-installed one
11657      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11658      test "$hardcode_minus_L" != no; then
11659     # Linking always hardcodes the temporary library directory.
11660     hardcode_action=relink
11661   else
11662     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11663     hardcode_action=immediate
11664   fi
11665 else
11666   # We cannot hardcode anything, or else we can only hardcode existing
11667   # directories.
11668   hardcode_action=unsupported
11669 fi
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11671 $as_echo "$hardcode_action" >&6; }
11672
11673 if test "$hardcode_action" = relink ||
11674    test "$inherit_rpath" = yes; then
11675   # Fast installation is not supported
11676   enable_fast_install=no
11677 elif test "$shlibpath_overrides_runpath" = yes ||
11678      test "$enable_shared" = no; then
11679   # Fast installation is not necessary
11680   enable_fast_install=needless
11681 fi
11682
11683
11684
11685
11686
11687
11688   if test "x$enable_dlopen" != xyes; then
11689   enable_dlopen=unknown
11690   enable_dlopen_self=unknown
11691   enable_dlopen_self_static=unknown
11692 else
11693   lt_cv_dlopen=no
11694   lt_cv_dlopen_libs=
11695
11696   case $host_os in
11697   beos*)
11698     lt_cv_dlopen="load_add_on"
11699     lt_cv_dlopen_libs=
11700     lt_cv_dlopen_self=yes
11701     ;;
11702
11703   mingw* | pw32* | cegcc*)
11704     lt_cv_dlopen="LoadLibrary"
11705     lt_cv_dlopen_libs=
11706     ;;
11707
11708   cygwin*)
11709     lt_cv_dlopen="dlopen"
11710     lt_cv_dlopen_libs=
11711     ;;
11712
11713   darwin*)
11714   # if libdl is installed we need to link against it
11715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11716 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11717 if ${ac_cv_lib_dl_dlopen+:} false; then :
11718   $as_echo_n "(cached) " >&6
11719 else
11720   ac_check_lib_save_LIBS=$LIBS
11721 LIBS="-ldl  $LIBS"
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h.  */
11724
11725 /* Override any GCC internal prototype to avoid an error.
11726    Use char because int might match the return type of a GCC
11727    builtin and then its argument prototype would still apply.  */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 char dlopen ();
11732 int
11733 main ()
11734 {
11735 return dlopen ();
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_c_try_link "$LINENO"; then :
11741   ac_cv_lib_dl_dlopen=yes
11742 else
11743   ac_cv_lib_dl_dlopen=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext \
11746     conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11750 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11751 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11752   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11753 else
11754
11755     lt_cv_dlopen="dyld"
11756     lt_cv_dlopen_libs=
11757     lt_cv_dlopen_self=yes
11758
11759 fi
11760
11761     ;;
11762
11763   *)
11764     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11765 if test "x$ac_cv_func_shl_load" = xyes; then :
11766   lt_cv_dlopen="shl_load"
11767 else
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11769 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11770 if ${ac_cv_lib_dld_shl_load+:} false; then :
11771   $as_echo_n "(cached) " >&6
11772 else
11773   ac_check_lib_save_LIBS=$LIBS
11774 LIBS="-ldld  $LIBS"
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h.  */
11777
11778 /* Override any GCC internal prototype to avoid an error.
11779    Use char because int might match the return type of a GCC
11780    builtin and then its argument prototype would still apply.  */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 char shl_load ();
11785 int
11786 main ()
11787 {
11788 return shl_load ();
11789   ;
11790   return 0;
11791 }
11792 _ACEOF
11793 if ac_fn_c_try_link "$LINENO"; then :
11794   ac_cv_lib_dld_shl_load=yes
11795 else
11796   ac_cv_lib_dld_shl_load=no
11797 fi
11798 rm -f core conftest.err conftest.$ac_objext \
11799     conftest$ac_exeext conftest.$ac_ext
11800 LIBS=$ac_check_lib_save_LIBS
11801 fi
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11803 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11804 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11805   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11806 else
11807   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11808 if test "x$ac_cv_func_dlopen" = xyes; then :
11809   lt_cv_dlopen="dlopen"
11810 else
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11813 if ${ac_cv_lib_dl_dlopen+:} false; then :
11814   $as_echo_n "(cached) " >&6
11815 else
11816   ac_check_lib_save_LIBS=$LIBS
11817 LIBS="-ldl  $LIBS"
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h.  */
11820
11821 /* Override any GCC internal prototype to avoid an error.
11822    Use char because int might match the return type of a GCC
11823    builtin and then its argument prototype would still apply.  */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 char dlopen ();
11828 int
11829 main ()
11830 {
11831 return dlopen ();
11832   ;
11833   return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_link "$LINENO"; then :
11837   ac_cv_lib_dl_dlopen=yes
11838 else
11839   ac_cv_lib_dl_dlopen=no
11840 fi
11841 rm -f core conftest.err conftest.$ac_objext \
11842     conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_lib_save_LIBS
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11847 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11848   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11849 else
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11851 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11852 if ${ac_cv_lib_svld_dlopen+:} false; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855   ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lsvld  $LIBS"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h.  */
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861    Use char because int might match the return type of a GCC
11862    builtin and then its argument prototype would still apply.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char dlopen ();
11867 int
11868 main ()
11869 {
11870 return dlopen ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876   ac_cv_lib_svld_dlopen=yes
11877 else
11878   ac_cv_lib_svld_dlopen=no
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext \
11881     conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11885 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11886 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11887   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11888 else
11889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11890 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11891 if ${ac_cv_lib_dld_dld_link+:} false; then :
11892   $as_echo_n "(cached) " >&6
11893 else
11894   ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-ldld  $LIBS"
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h.  */
11898
11899 /* Override any GCC internal prototype to avoid an error.
11900    Use char because int might match the return type of a GCC
11901    builtin and then its argument prototype would still apply.  */
11902 #ifdef __cplusplus
11903 extern "C"
11904 #endif
11905 char dld_link ();
11906 int
11907 main ()
11908 {
11909 return dld_link ();
11910   ;
11911   return 0;
11912 }
11913 _ACEOF
11914 if ac_fn_c_try_link "$LINENO"; then :
11915   ac_cv_lib_dld_dld_link=yes
11916 else
11917   ac_cv_lib_dld_dld_link=no
11918 fi
11919 rm -f core conftest.err conftest.$ac_objext \
11920     conftest$ac_exeext conftest.$ac_ext
11921 LIBS=$ac_check_lib_save_LIBS
11922 fi
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11924 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11925 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11926   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11927 fi
11928
11929
11930 fi
11931
11932
11933 fi
11934
11935
11936 fi
11937
11938
11939 fi
11940
11941
11942 fi
11943
11944     ;;
11945   esac
11946
11947   if test "x$lt_cv_dlopen" != xno; then
11948     enable_dlopen=yes
11949   else
11950     enable_dlopen=no
11951   fi
11952
11953   case $lt_cv_dlopen in
11954   dlopen)
11955     save_CPPFLAGS="$CPPFLAGS"
11956     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11957
11958     save_LDFLAGS="$LDFLAGS"
11959     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11960
11961     save_LIBS="$LIBS"
11962     LIBS="$lt_cv_dlopen_libs $LIBS"
11963
11964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11965 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11966 if ${lt_cv_dlopen_self+:} false; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969           if test "$cross_compiling" = yes; then :
11970   lt_cv_dlopen_self=cross
11971 else
11972   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11973   lt_status=$lt_dlunknown
11974   cat > conftest.$ac_ext <<_LT_EOF
11975 #line $LINENO "configure"
11976 #include "confdefs.h"
11977
11978 #if HAVE_DLFCN_H
11979 #include <dlfcn.h>
11980 #endif
11981
11982 #include <stdio.h>
11983
11984 #ifdef RTLD_GLOBAL
11985 #  define LT_DLGLOBAL           RTLD_GLOBAL
11986 #else
11987 #  ifdef DL_GLOBAL
11988 #    define LT_DLGLOBAL         DL_GLOBAL
11989 #  else
11990 #    define LT_DLGLOBAL         0
11991 #  endif
11992 #endif
11993
11994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11995    find out it does not work in some platform. */
11996 #ifndef LT_DLLAZY_OR_NOW
11997 #  ifdef RTLD_LAZY
11998 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11999 #  else
12000 #    ifdef DL_LAZY
12001 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12002 #    else
12003 #      ifdef RTLD_NOW
12004 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12005 #      else
12006 #        ifdef DL_NOW
12007 #          define LT_DLLAZY_OR_NOW      DL_NOW
12008 #        else
12009 #          define LT_DLLAZY_OR_NOW      0
12010 #        endif
12011 #      endif
12012 #    endif
12013 #  endif
12014 #endif
12015
12016 /* When -fvisbility=hidden is used, assume the code has been annotated
12017    correspondingly for the symbols needed.  */
12018 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12019 int fnord () __attribute__((visibility("default")));
12020 #endif
12021
12022 int fnord () { return 42; }
12023 int main ()
12024 {
12025   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12026   int status = $lt_dlunknown;
12027
12028   if (self)
12029     {
12030       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12031       else
12032         {
12033           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12034           else puts (dlerror ());
12035         }
12036       /* dlclose (self); */
12037     }
12038   else
12039     puts (dlerror ());
12040
12041   return status;
12042 }
12043 _LT_EOF
12044   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12045   (eval $ac_link) 2>&5
12046   ac_status=$?
12047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12049     (./conftest; exit; ) >&5 2>/dev/null
12050     lt_status=$?
12051     case x$lt_status in
12052       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12053       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12054       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12055     esac
12056   else :
12057     # compilation failed
12058     lt_cv_dlopen_self=no
12059   fi
12060 fi
12061 rm -fr conftest*
12062
12063
12064 fi
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12066 $as_echo "$lt_cv_dlopen_self" >&6; }
12067
12068     if test "x$lt_cv_dlopen_self" = xyes; then
12069       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12070       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12071 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12072 if ${lt_cv_dlopen_self_static+:} false; then :
12073   $as_echo_n "(cached) " >&6
12074 else
12075           if test "$cross_compiling" = yes; then :
12076   lt_cv_dlopen_self_static=cross
12077 else
12078   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12079   lt_status=$lt_dlunknown
12080   cat > conftest.$ac_ext <<_LT_EOF
12081 #line $LINENO "configure"
12082 #include "confdefs.h"
12083
12084 #if HAVE_DLFCN_H
12085 #include <dlfcn.h>
12086 #endif
12087
12088 #include <stdio.h>
12089
12090 #ifdef RTLD_GLOBAL
12091 #  define LT_DLGLOBAL           RTLD_GLOBAL
12092 #else
12093 #  ifdef DL_GLOBAL
12094 #    define LT_DLGLOBAL         DL_GLOBAL
12095 #  else
12096 #    define LT_DLGLOBAL         0
12097 #  endif
12098 #endif
12099
12100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12101    find out it does not work in some platform. */
12102 #ifndef LT_DLLAZY_OR_NOW
12103 #  ifdef RTLD_LAZY
12104 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12105 #  else
12106 #    ifdef DL_LAZY
12107 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12108 #    else
12109 #      ifdef RTLD_NOW
12110 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12111 #      else
12112 #        ifdef DL_NOW
12113 #          define LT_DLLAZY_OR_NOW      DL_NOW
12114 #        else
12115 #          define LT_DLLAZY_OR_NOW      0
12116 #        endif
12117 #      endif
12118 #    endif
12119 #  endif
12120 #endif
12121
12122 /* When -fvisbility=hidden is used, assume the code has been annotated
12123    correspondingly for the symbols needed.  */
12124 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12125 int fnord () __attribute__((visibility("default")));
12126 #endif
12127
12128 int fnord () { return 42; }
12129 int main ()
12130 {
12131   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12132   int status = $lt_dlunknown;
12133
12134   if (self)
12135     {
12136       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12137       else
12138         {
12139           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12140           else puts (dlerror ());
12141         }
12142       /* dlclose (self); */
12143     }
12144   else
12145     puts (dlerror ());
12146
12147   return status;
12148 }
12149 _LT_EOF
12150   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12151   (eval $ac_link) 2>&5
12152   ac_status=$?
12153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12154   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12155     (./conftest; exit; ) >&5 2>/dev/null
12156     lt_status=$?
12157     case x$lt_status in
12158       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12159       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12160       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12161     esac
12162   else :
12163     # compilation failed
12164     lt_cv_dlopen_self_static=no
12165   fi
12166 fi
12167 rm -fr conftest*
12168
12169
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12172 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12173     fi
12174
12175     CPPFLAGS="$save_CPPFLAGS"
12176     LDFLAGS="$save_LDFLAGS"
12177     LIBS="$save_LIBS"
12178     ;;
12179   esac
12180
12181   case $lt_cv_dlopen_self in
12182   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12183   *) enable_dlopen_self=unknown ;;
12184   esac
12185
12186   case $lt_cv_dlopen_self_static in
12187   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12188   *) enable_dlopen_self_static=unknown ;;
12189   esac
12190 fi
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208 striplib=
12209 old_striplib=
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12211 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12212 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12213   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12214   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12216 $as_echo "yes" >&6; }
12217 else
12218 # FIXME - insert some real tests, host_os isn't really good enough
12219   case $host_os in
12220   darwin*)
12221     if test -n "$STRIP" ; then
12222       striplib="$STRIP -x"
12223       old_striplib="$STRIP -S"
12224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12225 $as_echo "yes" >&6; }
12226     else
12227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229     fi
12230     ;;
12231   *)
12232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12234     ;;
12235   esac
12236 fi
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249   # Report which library types will actually be built
12250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12251 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12253 $as_echo "$can_build_shared" >&6; }
12254
12255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12256 $as_echo_n "checking whether to build shared libraries... " >&6; }
12257   test "$can_build_shared" = "no" && enable_shared=no
12258
12259   # On AIX, shared libraries and static libraries use the same namespace, and
12260   # are all built from PIC.
12261   case $host_os in
12262   aix3*)
12263     test "$enable_shared" = yes && enable_static=no
12264     if test -n "$RANLIB"; then
12265       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12266       postinstall_cmds='$RANLIB $lib'
12267     fi
12268     ;;
12269
12270   aix[4-9]*)
12271     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12272       test "$enable_shared" = yes && enable_static=no
12273     fi
12274     ;;
12275   esac
12276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12277 $as_echo "$enable_shared" >&6; }
12278
12279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12280 $as_echo_n "checking whether to build static libraries... " >&6; }
12281   # Make sure either enable_shared or enable_static is yes.
12282   test "$enable_shared" = yes || enable_static=yes
12283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12284 $as_echo "$enable_static" >&6; }
12285
12286
12287
12288
12289 fi
12290 ac_ext=c
12291 ac_cpp='$CPP $CPPFLAGS'
12292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12295
12296 CC="$lt_save_CC"
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312         ac_config_commands="$ac_config_commands libtool"
12313
12314
12315
12316
12317 # Only expand once:
12318
12319
12320 ac_ext=cpp
12321 ac_cpp='$CXXCPP $CPPFLAGS'
12322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12325 if test -z "$CXX"; then
12326   if test -n "$CCC"; then
12327     CXX=$CCC
12328   else
12329     if test -n "$ac_tool_prefix"; then
12330   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12331   do
12332     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_prog_CXX+:} false; then :
12337   $as_echo_n "(cached) " >&6
12338 else
12339   if test -n "$CXX"; then
12340   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12341 else
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12344 do
12345   IFS=$as_save_IFS
12346   test -z "$as_dir" && as_dir=.
12347     for ac_exec_ext in '' $ac_executable_extensions; do
12348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351     break 2
12352   fi
12353 done
12354   done
12355 IFS=$as_save_IFS
12356
12357 fi
12358 fi
12359 CXX=$ac_cv_prog_CXX
12360 if test -n "$CXX"; then
12361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12362 $as_echo "$CXX" >&6; }
12363 else
12364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12366 fi
12367
12368
12369     test -n "$CXX" && break
12370   done
12371 fi
12372 if test -z "$CXX"; then
12373   ac_ct_CXX=$CXX
12374   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12375 do
12376   # Extract the first word of "$ac_prog", so it can be a program name with args.
12377 set dummy $ac_prog; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12381   $as_echo_n "(cached) " >&6
12382 else
12383   if test -n "$ac_ct_CXX"; then
12384   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12385 else
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12388 do
12389   IFS=$as_save_IFS
12390   test -z "$as_dir" && as_dir=.
12391     for ac_exec_ext in '' $ac_executable_extensions; do
12392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393     ac_cv_prog_ac_ct_CXX="$ac_prog"
12394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12395     break 2
12396   fi
12397 done
12398   done
12399 IFS=$as_save_IFS
12400
12401 fi
12402 fi
12403 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12404 if test -n "$ac_ct_CXX"; then
12405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12406 $as_echo "$ac_ct_CXX" >&6; }
12407 else
12408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12410 fi
12411
12412
12413   test -n "$ac_ct_CXX" && break
12414 done
12415
12416   if test "x$ac_ct_CXX" = x; then
12417     CXX="g++"
12418   else
12419     case $cross_compiling:$ac_tool_warned in
12420 yes:)
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12423 ac_tool_warned=yes ;;
12424 esac
12425     CXX=$ac_ct_CXX
12426   fi
12427 fi
12428
12429   fi
12430 fi
12431 # Provide some information about the compiler.
12432 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12433 set X $ac_compile
12434 ac_compiler=$2
12435 for ac_option in --version -v -V -qversion; do
12436   { { ac_try="$ac_compiler $ac_option >&5"
12437 case "(($ac_try" in
12438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439   *) ac_try_echo=$ac_try;;
12440 esac
12441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12442 $as_echo "$ac_try_echo"; } >&5
12443   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12444   ac_status=$?
12445   if test -s conftest.err; then
12446     sed '10a\
12447 ... rest of stderr output deleted ...
12448          10q' conftest.err >conftest.er1
12449     cat conftest.er1 >&5
12450   fi
12451   rm -f conftest.er1 conftest.err
12452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12453   test $ac_status = 0; }
12454 done
12455
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12457 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12458 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12459   $as_echo_n "(cached) " >&6
12460 else
12461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h.  */
12463
12464 int
12465 main ()
12466 {
12467 #ifndef __GNUC__
12468        choke me
12469 #endif
12470
12471   ;
12472   return 0;
12473 }
12474 _ACEOF
12475 if ac_fn_cxx_try_compile "$LINENO"; then :
12476   ac_compiler_gnu=yes
12477 else
12478   ac_compiler_gnu=no
12479 fi
12480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12482
12483 fi
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12485 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12486 if test $ac_compiler_gnu = yes; then
12487   GXX=yes
12488 else
12489   GXX=
12490 fi
12491 ac_test_CXXFLAGS=${CXXFLAGS+set}
12492 ac_save_CXXFLAGS=$CXXFLAGS
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12494 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12495 if ${ac_cv_prog_cxx_g+:} false; then :
12496   $as_echo_n "(cached) " >&6
12497 else
12498   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12499    ac_cxx_werror_flag=yes
12500    ac_cv_prog_cxx_g=no
12501    CXXFLAGS="-g"
12502    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h.  */
12504
12505 int
12506 main ()
12507 {
12508
12509   ;
12510   return 0;
12511 }
12512 _ACEOF
12513 if ac_fn_cxx_try_compile "$LINENO"; then :
12514   ac_cv_prog_cxx_g=yes
12515 else
12516   CXXFLAGS=""
12517       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h.  */
12519
12520 int
12521 main ()
12522 {
12523
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 if ac_fn_cxx_try_compile "$LINENO"; then :
12529
12530 else
12531   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12532          CXXFLAGS="-g"
12533          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h.  */
12535
12536 int
12537 main ()
12538 {
12539
12540   ;
12541   return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_cxx_try_compile "$LINENO"; then :
12545   ac_cv_prog_cxx_g=yes
12546 fi
12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548 fi
12549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550 fi
12551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12553 fi
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12555 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12556 if test "$ac_test_CXXFLAGS" = set; then
12557   CXXFLAGS=$ac_save_CXXFLAGS
12558 elif test $ac_cv_prog_cxx_g = yes; then
12559   if test "$GXX" = yes; then
12560     CXXFLAGS="-g -O2"
12561   else
12562     CXXFLAGS="-g"
12563   fi
12564 else
12565   if test "$GXX" = yes; then
12566     CXXFLAGS="-O2"
12567   else
12568     CXXFLAGS=
12569   fi
12570 fi
12571 ac_ext=c
12572 ac_cpp='$CPP $CPPFLAGS'
12573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12576
12577 depcc="$CXX"  am_compiler_list=
12578
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12580 $as_echo_n "checking dependency style of $depcc... " >&6; }
12581 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12582   $as_echo_n "(cached) " >&6
12583 else
12584   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12585   # We make a subdir and do the tests there.  Otherwise we can end up
12586   # making bogus files that we don't know about and never remove.  For
12587   # instance it was reported that on HP-UX the gcc test will end up
12588   # making a dummy file named 'D' -- because '-MD' means "put the output
12589   # in D".
12590   rm -rf conftest.dir
12591   mkdir conftest.dir
12592   # Copy depcomp to subdir because otherwise we won't find it if we're
12593   # using a relative directory.
12594   cp "$am_depcomp" conftest.dir
12595   cd conftest.dir
12596   # We will build objects and dependencies in a subdirectory because
12597   # it helps to detect inapplicable dependency modes.  For instance
12598   # both Tru64's cc and ICC support -MD to output dependencies as a
12599   # side effect of compilation, but ICC will put the dependencies in
12600   # the current directory while Tru64 will put them in the object
12601   # directory.
12602   mkdir sub
12603
12604   am_cv_CXX_dependencies_compiler_type=none
12605   if test "$am_compiler_list" = ""; then
12606      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12607   fi
12608   am__universal=false
12609   case " $depcc " in #(
12610      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12611      esac
12612
12613   for depmode in $am_compiler_list; do
12614     # Setup a source with many dependencies, because some compilers
12615     # like to wrap large dependency lists on column 80 (with \), and
12616     # we should not choose a depcomp mode which is confused by this.
12617     #
12618     # We need to recreate these files for each test, as the compiler may
12619     # overwrite some of them when testing with obscure command lines.
12620     # This happens at least with the AIX C compiler.
12621     : > sub/conftest.c
12622     for i in 1 2 3 4 5 6; do
12623       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12624       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12625       # Solaris 10 /bin/sh.
12626       echo '/* dummy */' > sub/conftst$i.h
12627     done
12628     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12629
12630     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12631     # mode.  It turns out that the SunPro C++ compiler does not properly
12632     # handle '-M -o', and we need to detect this.  Also, some Intel
12633     # versions had trouble with output in subdirs.
12634     am__obj=sub/conftest.${OBJEXT-o}
12635     am__minus_obj="-o $am__obj"
12636     case $depmode in
12637     gcc)
12638       # This depmode causes a compiler race in universal mode.
12639       test "$am__universal" = false || continue
12640       ;;
12641     nosideeffect)
12642       # After this tag, mechanisms are not by side-effect, so they'll
12643       # only be used when explicitly requested.
12644       if test "x$enable_dependency_tracking" = xyes; then
12645         continue
12646       else
12647         break
12648       fi
12649       ;;
12650     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12651       # This compiler won't grok '-c -o', but also, the minuso test has
12652       # not run yet.  These depmodes are late enough in the game, and
12653       # so weak that their functioning should not be impacted.
12654       am__obj=conftest.${OBJEXT-o}
12655       am__minus_obj=
12656       ;;
12657     none) break ;;
12658     esac
12659     if depmode=$depmode \
12660        source=sub/conftest.c object=$am__obj \
12661        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12662        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12663          >/dev/null 2>conftest.err &&
12664        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12665        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12666        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12667        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12668       # icc doesn't choke on unknown options, it will just issue warnings
12669       # or remarks (even with -Werror).  So we grep stderr for any message
12670       # that says an option was ignored or not supported.
12671       # When given -MP, icc 7.0 and 7.1 complain thusly:
12672       #   icc: Command line warning: ignoring option '-M'; no argument required
12673       # The diagnosis changed in icc 8.0:
12674       #   icc: Command line remark: option '-MP' not supported
12675       if (grep 'ignoring option' conftest.err ||
12676           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12677         am_cv_CXX_dependencies_compiler_type=$depmode
12678         break
12679       fi
12680     fi
12681   done
12682
12683   cd ..
12684   rm -rf conftest.dir
12685 else
12686   am_cv_CXX_dependencies_compiler_type=none
12687 fi
12688
12689 fi
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12691 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12692 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12693
12694  if
12695   test "x$enable_dependency_tracking" != xno \
12696   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12697   am__fastdepCXX_TRUE=
12698   am__fastdepCXX_FALSE='#'
12699 else
12700   am__fastdepCXX_TRUE='#'
12701   am__fastdepCXX_FALSE=
12702 fi
12703
12704
12705
12706
12707
12708 func_stripname_cnf ()
12709 {
12710   case ${2} in
12711   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12712   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12713   esac
12714 } # func_stripname_cnf
12715
12716       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12717     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12718     (test "X$CXX" != "Xg++"))) ; then
12719   ac_ext=cpp
12720 ac_cpp='$CXXCPP $CPPFLAGS'
12721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12725 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12726 if test -z "$CXXCPP"; then
12727   if ${ac_cv_prog_CXXCPP+:} false; then :
12728   $as_echo_n "(cached) " >&6
12729 else
12730       # Double quotes because CXXCPP needs to be expanded
12731     for CXXCPP in "$CXX -E" "/lib/cpp"
12732     do
12733       ac_preproc_ok=false
12734 for ac_cxx_preproc_warn_flag in '' yes
12735 do
12736   # Use a header file that comes with gcc, so configuring glibc
12737   # with a fresh cross-compiler works.
12738   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12739   # <limits.h> exists even on freestanding compilers.
12740   # On the NeXT, cc -E runs the code through the compiler's parser,
12741   # not just through cpp. "Syntax error" is here to catch this case.
12742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h.  */
12744 #ifdef __STDC__
12745 # include <limits.h>
12746 #else
12747 # include <assert.h>
12748 #endif
12749                      Syntax error
12750 _ACEOF
12751 if ac_fn_cxx_try_cpp "$LINENO"; then :
12752
12753 else
12754   # Broken: fails on valid input.
12755 continue
12756 fi
12757 rm -f conftest.err conftest.i conftest.$ac_ext
12758
12759   # OK, works on sane cases.  Now check whether nonexistent headers
12760   # can be detected and how.
12761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h.  */
12763 #include <ac_nonexistent.h>
12764 _ACEOF
12765 if ac_fn_cxx_try_cpp "$LINENO"; then :
12766   # Broken: success on invalid input.
12767 continue
12768 else
12769   # Passes both tests.
12770 ac_preproc_ok=:
12771 break
12772 fi
12773 rm -f conftest.err conftest.i conftest.$ac_ext
12774
12775 done
12776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12777 rm -f conftest.i conftest.err conftest.$ac_ext
12778 if $ac_preproc_ok; then :
12779   break
12780 fi
12781
12782     done
12783     ac_cv_prog_CXXCPP=$CXXCPP
12784
12785 fi
12786   CXXCPP=$ac_cv_prog_CXXCPP
12787 else
12788   ac_cv_prog_CXXCPP=$CXXCPP
12789 fi
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12791 $as_echo "$CXXCPP" >&6; }
12792 ac_preproc_ok=false
12793 for ac_cxx_preproc_warn_flag in '' yes
12794 do
12795   # Use a header file that comes with gcc, so configuring glibc
12796   # with a fresh cross-compiler works.
12797   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12798   # <limits.h> exists even on freestanding compilers.
12799   # On the NeXT, cc -E runs the code through the compiler's parser,
12800   # not just through cpp. "Syntax error" is here to catch this case.
12801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h.  */
12803 #ifdef __STDC__
12804 # include <limits.h>
12805 #else
12806 # include <assert.h>
12807 #endif
12808                      Syntax error
12809 _ACEOF
12810 if ac_fn_cxx_try_cpp "$LINENO"; then :
12811
12812 else
12813   # Broken: fails on valid input.
12814 continue
12815 fi
12816 rm -f conftest.err conftest.i conftest.$ac_ext
12817
12818   # OK, works on sane cases.  Now check whether nonexistent headers
12819   # can be detected and how.
12820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h.  */
12822 #include <ac_nonexistent.h>
12823 _ACEOF
12824 if ac_fn_cxx_try_cpp "$LINENO"; then :
12825   # Broken: success on invalid input.
12826 continue
12827 else
12828   # Passes both tests.
12829 ac_preproc_ok=:
12830 break
12831 fi
12832 rm -f conftest.err conftest.i conftest.$ac_ext
12833
12834 done
12835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12836 rm -f conftest.i conftest.err conftest.$ac_ext
12837 if $ac_preproc_ok; then :
12838
12839 else
12840   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12842 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12843 See \`config.log' for more details" "$LINENO" 5; }
12844 fi
12845
12846 ac_ext=c
12847 ac_cpp='$CPP $CPPFLAGS'
12848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12851
12852 else
12853   _lt_caught_CXX_error=yes
12854 fi
12855
12856 ac_ext=cpp
12857 ac_cpp='$CXXCPP $CPPFLAGS'
12858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12861
12862 archive_cmds_need_lc_CXX=no
12863 allow_undefined_flag_CXX=
12864 always_export_symbols_CXX=no
12865 archive_expsym_cmds_CXX=
12866 compiler_needs_object_CXX=no
12867 export_dynamic_flag_spec_CXX=
12868 hardcode_direct_CXX=no
12869 hardcode_direct_absolute_CXX=no
12870 hardcode_libdir_flag_spec_CXX=
12871 hardcode_libdir_separator_CXX=
12872 hardcode_minus_L_CXX=no
12873 hardcode_shlibpath_var_CXX=unsupported
12874 hardcode_automatic_CXX=no
12875 inherit_rpath_CXX=no
12876 module_cmds_CXX=
12877 module_expsym_cmds_CXX=
12878 link_all_deplibs_CXX=unknown
12879 old_archive_cmds_CXX=$old_archive_cmds
12880 reload_flag_CXX=$reload_flag
12881 reload_cmds_CXX=$reload_cmds
12882 no_undefined_flag_CXX=
12883 whole_archive_flag_spec_CXX=
12884 enable_shared_with_static_runtimes_CXX=no
12885
12886 # Source file extension for C++ test sources.
12887 ac_ext=cpp
12888
12889 # Object file extension for compiled C++ test sources.
12890 objext=o
12891 objext_CXX=$objext
12892
12893 # No sense in running all these tests if we already determined that
12894 # the CXX compiler isn't working.  Some variables (like enable_shared)
12895 # are currently assumed to apply to all compilers on this platform,
12896 # and will be corrupted by setting them based on a non-working compiler.
12897 if test "$_lt_caught_CXX_error" != yes; then
12898   # Code to be used in simple compile tests
12899   lt_simple_compile_test_code="int some_variable = 0;"
12900
12901   # Code to be used in simple link tests
12902   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12903
12904   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12905
12906
12907
12908
12909
12910
12911 # If no C compiler was specified, use CC.
12912 LTCC=${LTCC-"$CC"}
12913
12914 # If no C compiler flags were specified, use CFLAGS.
12915 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12916
12917 # Allow CC to be a program name with arguments.
12918 compiler=$CC
12919
12920
12921   # save warnings/boilerplate of simple test code
12922   ac_outfile=conftest.$ac_objext
12923 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12924 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12925 _lt_compiler_boilerplate=`cat conftest.err`
12926 $RM conftest*
12927
12928   ac_outfile=conftest.$ac_objext
12929 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12930 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12931 _lt_linker_boilerplate=`cat conftest.err`
12932 $RM -r conftest*
12933
12934
12935   # Allow CC to be a program name with arguments.
12936   lt_save_CC=$CC
12937   lt_save_CFLAGS=$CFLAGS
12938   lt_save_LD=$LD
12939   lt_save_GCC=$GCC
12940   GCC=$GXX
12941   lt_save_with_gnu_ld=$with_gnu_ld
12942   lt_save_path_LD=$lt_cv_path_LD
12943   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12944     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12945   else
12946     $as_unset lt_cv_prog_gnu_ld
12947   fi
12948   if test -n "${lt_cv_path_LDCXX+set}"; then
12949     lt_cv_path_LD=$lt_cv_path_LDCXX
12950   else
12951     $as_unset lt_cv_path_LD
12952   fi
12953   test -z "${LDCXX+set}" || LD=$LDCXX
12954   CC=${CXX-"c++"}
12955   CFLAGS=$CXXFLAGS
12956   compiler=$CC
12957   compiler_CXX=$CC
12958   for cc_temp in $compiler""; do
12959   case $cc_temp in
12960     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12961     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12962     \-*) ;;
12963     *) break;;
12964   esac
12965 done
12966 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12967
12968
12969   if test -n "$compiler"; then
12970     # We don't want -fno-exception when compiling C++ code, so set the
12971     # no_builtin_flag separately
12972     if test "$GXX" = yes; then
12973       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12974     else
12975       lt_prog_compiler_no_builtin_flag_CXX=
12976     fi
12977
12978     if test "$GXX" = yes; then
12979       # Set up default GNU C++ configuration
12980
12981
12982
12983 # Check whether --with-gnu-ld was given.
12984 if test "${with_gnu_ld+set}" = set; then :
12985   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12986 else
12987   with_gnu_ld=no
12988 fi
12989
12990 ac_prog=ld
12991 if test "$GCC" = yes; then
12992   # Check if gcc -print-prog-name=ld gives a path.
12993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12994 $as_echo_n "checking for ld used by $CC... " >&6; }
12995   case $host in
12996   *-*-mingw*)
12997     # gcc leaves a trailing carriage return which upsets mingw
12998     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12999   *)
13000     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13001   esac
13002   case $ac_prog in
13003     # Accept absolute paths.
13004     [\\/]* | ?:[\\/]*)
13005       re_direlt='/[^/][^/]*/\.\./'
13006       # Canonicalize the pathname of ld
13007       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13008       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13009         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13010       done
13011       test -z "$LD" && LD="$ac_prog"
13012       ;;
13013   "")
13014     # If it fails, then pretend we aren't using GCC.
13015     ac_prog=ld
13016     ;;
13017   *)
13018     # If it is relative, then search for the first ld in PATH.
13019     with_gnu_ld=unknown
13020     ;;
13021   esac
13022 elif test "$with_gnu_ld" = yes; then
13023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13024 $as_echo_n "checking for GNU ld... " >&6; }
13025 else
13026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13027 $as_echo_n "checking for non-GNU ld... " >&6; }
13028 fi
13029 if ${lt_cv_path_LD+:} false; then :
13030   $as_echo_n "(cached) " >&6
13031 else
13032   if test -z "$LD"; then
13033   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13034   for ac_dir in $PATH; do
13035     IFS="$lt_save_ifs"
13036     test -z "$ac_dir" && ac_dir=.
13037     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13038       lt_cv_path_LD="$ac_dir/$ac_prog"
13039       # Check to see if the program is GNU ld.  I'd rather use --version,
13040       # but apparently some variants of GNU ld only accept -v.
13041       # Break only if it was the GNU/non-GNU ld that we prefer.
13042       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13043       *GNU* | *'with BFD'*)
13044         test "$with_gnu_ld" != no && break
13045         ;;
13046       *)
13047         test "$with_gnu_ld" != yes && break
13048         ;;
13049       esac
13050     fi
13051   done
13052   IFS="$lt_save_ifs"
13053 else
13054   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13055 fi
13056 fi
13057
13058 LD="$lt_cv_path_LD"
13059 if test -n "$LD"; then
13060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13061 $as_echo "$LD" >&6; }
13062 else
13063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064 $as_echo "no" >&6; }
13065 fi
13066 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13068 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13069 if ${lt_cv_prog_gnu_ld+:} false; then :
13070   $as_echo_n "(cached) " >&6
13071 else
13072   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13073 case `$LD -v 2>&1 </dev/null` in
13074 *GNU* | *'with BFD'*)
13075   lt_cv_prog_gnu_ld=yes
13076   ;;
13077 *)
13078   lt_cv_prog_gnu_ld=no
13079   ;;
13080 esac
13081 fi
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13083 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13084 with_gnu_ld=$lt_cv_prog_gnu_ld
13085
13086
13087
13088
13089
13090
13091
13092       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13093       # archiving commands below assume that GNU ld is being used.
13094       if test "$with_gnu_ld" = yes; then
13095         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13096         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'
13097
13098         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13099         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13100
13101         # If archive_cmds runs LD, not CC, wlarc should be empty
13102         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13103         #     investigate it a little bit more. (MM)
13104         wlarc='${wl}'
13105
13106         # ancient GNU ld didn't support --whole-archive et. al.
13107         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13108           $GREP 'no-whole-archive' > /dev/null; then
13109           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13110         else
13111           whole_archive_flag_spec_CXX=
13112         fi
13113       else
13114         with_gnu_ld=no
13115         wlarc=
13116
13117         # A generic and very simple default shared library creation
13118         # command for GNU C++ for the case where it uses the native
13119         # linker, instead of GNU ld.  If possible, this setting should
13120         # overridden to take advantage of the native linker features on
13121         # the platform it is being used on.
13122         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13123       fi
13124
13125       # Commands to make compiler produce verbose output that lists
13126       # what "hidden" libraries, object files and flags are used when
13127       # linking a shared library.
13128       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13129
13130     else
13131       GXX=no
13132       with_gnu_ld=no
13133       wlarc=
13134     fi
13135
13136     # PORTME: fill in a description of your system's C++ link characteristics
13137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13138 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13139     ld_shlibs_CXX=yes
13140     case $host_os in
13141       aix3*)
13142         # FIXME: insert proper C++ library support
13143         ld_shlibs_CXX=no
13144         ;;
13145       aix[4-9]*)
13146         if test "$host_cpu" = ia64; then
13147           # On IA64, the linker does run time linking by default, so we don't
13148           # have to do anything special.
13149           aix_use_runtimelinking=no
13150           exp_sym_flag='-Bexport'
13151           no_entry_flag=""
13152         else
13153           aix_use_runtimelinking=no
13154
13155           # Test if we are trying to use run time linking or normal
13156           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13157           # need to do runtime linking.
13158           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13159             for ld_flag in $LDFLAGS; do
13160               case $ld_flag in
13161               *-brtl*)
13162                 aix_use_runtimelinking=yes
13163                 break
13164                 ;;
13165               esac
13166             done
13167             ;;
13168           esac
13169
13170           exp_sym_flag='-bexport'
13171           no_entry_flag='-bnoentry'
13172         fi
13173
13174         # When large executables or shared objects are built, AIX ld can
13175         # have problems creating the table of contents.  If linking a library
13176         # or program results in "error TOC overflow" add -mminimal-toc to
13177         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13178         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13179
13180         archive_cmds_CXX=''
13181         hardcode_direct_CXX=yes
13182         hardcode_direct_absolute_CXX=yes
13183         hardcode_libdir_separator_CXX=':'
13184         link_all_deplibs_CXX=yes
13185         file_list_spec_CXX='${wl}-f,'
13186
13187         if test "$GXX" = yes; then
13188           case $host_os in aix4.[012]|aix4.[012].*)
13189           # We only want to do this on AIX 4.2 and lower, the check
13190           # below for broken collect2 doesn't work under 4.3+
13191           collect2name=`${CC} -print-prog-name=collect2`
13192           if test -f "$collect2name" &&
13193              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13194           then
13195             # We have reworked collect2
13196             :
13197           else
13198             # We have old collect2
13199             hardcode_direct_CXX=unsupported
13200             # It fails to find uninstalled libraries when the uninstalled
13201             # path is not listed in the libpath.  Setting hardcode_minus_L
13202             # to unsupported forces relinking
13203             hardcode_minus_L_CXX=yes
13204             hardcode_libdir_flag_spec_CXX='-L$libdir'
13205             hardcode_libdir_separator_CXX=
13206           fi
13207           esac
13208           shared_flag='-shared'
13209           if test "$aix_use_runtimelinking" = yes; then
13210             shared_flag="$shared_flag "'${wl}-G'
13211           fi
13212         else
13213           # not using gcc
13214           if test "$host_cpu" = ia64; then
13215           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13216           # chokes on -Wl,-G. The following line is correct:
13217           shared_flag='-G'
13218           else
13219             if test "$aix_use_runtimelinking" = yes; then
13220               shared_flag='${wl}-G'
13221             else
13222               shared_flag='${wl}-bM:SRE'
13223             fi
13224           fi
13225         fi
13226
13227         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13228         # It seems that -bexpall does not export symbols beginning with
13229         # underscore (_), so it is better to generate a list of symbols to
13230         # export.
13231         always_export_symbols_CXX=yes
13232         if test "$aix_use_runtimelinking" = yes; then
13233           # Warning - without using the other runtime loading flags (-brtl),
13234           # -berok will link without error, but may produce a broken library.
13235           allow_undefined_flag_CXX='-berok'
13236           # Determine the default libpath from the value encoded in an empty
13237           # executable.
13238           if test "${lt_cv_aix_libpath+set}" = set; then
13239   aix_libpath=$lt_cv_aix_libpath
13240 else
13241   if ${lt_cv_aix_libpath__CXX+:} false; then :
13242   $as_echo_n "(cached) " >&6
13243 else
13244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h.  */
13246
13247 int
13248 main ()
13249 {
13250
13251   ;
13252   return 0;
13253 }
13254 _ACEOF
13255 if ac_fn_cxx_try_link "$LINENO"; then :
13256
13257   lt_aix_libpath_sed='
13258       /Import File Strings/,/^$/ {
13259           /^0/ {
13260               s/^0  *\([^ ]*\) *$/\1/
13261               p
13262           }
13263       }'
13264   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13265   # Check for a 64-bit object if we didn't find anything.
13266   if test -z "$lt_cv_aix_libpath__CXX"; then
13267     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13268   fi
13269 fi
13270 rm -f core conftest.err conftest.$ac_objext \
13271     conftest$ac_exeext conftest.$ac_ext
13272   if test -z "$lt_cv_aix_libpath__CXX"; then
13273     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13274   fi
13275
13276 fi
13277
13278   aix_libpath=$lt_cv_aix_libpath__CXX
13279 fi
13280
13281           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13282
13283           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"
13284         else
13285           if test "$host_cpu" = ia64; then
13286             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13287             allow_undefined_flag_CXX="-z nodefs"
13288             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"
13289           else
13290             # Determine the default libpath from the value encoded in an
13291             # empty executable.
13292             if test "${lt_cv_aix_libpath+set}" = set; then
13293   aix_libpath=$lt_cv_aix_libpath
13294 else
13295   if ${lt_cv_aix_libpath__CXX+:} false; then :
13296   $as_echo_n "(cached) " >&6
13297 else
13298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h.  */
13300
13301 int
13302 main ()
13303 {
13304
13305   ;
13306   return 0;
13307 }
13308 _ACEOF
13309 if ac_fn_cxx_try_link "$LINENO"; then :
13310
13311   lt_aix_libpath_sed='
13312       /Import File Strings/,/^$/ {
13313           /^0/ {
13314               s/^0  *\([^ ]*\) *$/\1/
13315               p
13316           }
13317       }'
13318   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13319   # Check for a 64-bit object if we didn't find anything.
13320   if test -z "$lt_cv_aix_libpath__CXX"; then
13321     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13322   fi
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext \
13325     conftest$ac_exeext conftest.$ac_ext
13326   if test -z "$lt_cv_aix_libpath__CXX"; then
13327     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13328   fi
13329
13330 fi
13331
13332   aix_libpath=$lt_cv_aix_libpath__CXX
13333 fi
13334
13335             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13336             # Warning - without using the other run time loading flags,
13337             # -berok will link without error, but may produce a broken library.
13338             no_undefined_flag_CXX=' ${wl}-bernotok'
13339             allow_undefined_flag_CXX=' ${wl}-berok'
13340             if test "$with_gnu_ld" = yes; then
13341               # We only use this code for GNU lds that support --whole-archive.
13342               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13343             else
13344               # Exported symbols can be pulled into shared objects from archives
13345               whole_archive_flag_spec_CXX='$convenience'
13346             fi
13347             archive_cmds_need_lc_CXX=yes
13348             # This is similar to how AIX traditionally builds its shared
13349             # libraries.
13350             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'
13351           fi
13352         fi
13353         ;;
13354
13355       beos*)
13356         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13357           allow_undefined_flag_CXX=unsupported
13358           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13359           # support --undefined.  This deserves some investigation.  FIXME
13360           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13361         else
13362           ld_shlibs_CXX=no
13363         fi
13364         ;;
13365
13366       chorus*)
13367         case $cc_basename in
13368           *)
13369           # FIXME: insert proper C++ library support
13370           ld_shlibs_CXX=no
13371           ;;
13372         esac
13373         ;;
13374
13375       cygwin* | mingw* | pw32* | cegcc*)
13376         case $GXX,$cc_basename in
13377         ,cl* | no,cl*)
13378           # Native MSVC
13379           # hardcode_libdir_flag_spec is actually meaningless, as there is
13380           # no search path for DLLs.
13381           hardcode_libdir_flag_spec_CXX=' '
13382           allow_undefined_flag_CXX=unsupported
13383           always_export_symbols_CXX=yes
13384           file_list_spec_CXX='@'
13385           # Tell ltmain to make .lib files, not .a files.
13386           libext=lib
13387           # Tell ltmain to make .dll files, not .so files.
13388           shrext_cmds=".dll"
13389           # FIXME: Setting linknames here is a bad hack.
13390           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13391           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13392               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13393             else
13394               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13395             fi~
13396             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13397             linknames='
13398           # The linker will not automatically build a static lib if we build a DLL.
13399           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13400           enable_shared_with_static_runtimes_CXX=yes
13401           # Don't use ranlib
13402           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13403           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13404             lt_tool_outputfile="@TOOL_OUTPUT@"~
13405             case $lt_outputfile in
13406               *.exe|*.EXE) ;;
13407               *)
13408                 lt_outputfile="$lt_outputfile.exe"
13409                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13410                 ;;
13411             esac~
13412             func_to_tool_file "$lt_outputfile"~
13413             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13414               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13415               $RM "$lt_outputfile.manifest";
13416             fi'
13417           ;;
13418         *)
13419           # g++
13420           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13421           # as there is no search path for DLLs.
13422           hardcode_libdir_flag_spec_CXX='-L$libdir'
13423           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13424           allow_undefined_flag_CXX=unsupported
13425           always_export_symbols_CXX=no
13426           enable_shared_with_static_runtimes_CXX=yes
13427
13428           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13429             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'
13430             # If the export-symbols file already is a .def file (1st line
13431             # is EXPORTS), use it as is; otherwise, prepend...
13432             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13433               cp $export_symbols $output_objdir/$soname.def;
13434             else
13435               echo EXPORTS > $output_objdir/$soname.def;
13436               cat $export_symbols >> $output_objdir/$soname.def;
13437             fi~
13438             $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'
13439           else
13440             ld_shlibs_CXX=no
13441           fi
13442           ;;
13443         esac
13444         ;;
13445       darwin* | rhapsody*)
13446
13447
13448   archive_cmds_need_lc_CXX=no
13449   hardcode_direct_CXX=no
13450   hardcode_automatic_CXX=yes
13451   hardcode_shlibpath_var_CXX=unsupported
13452   if test "$lt_cv_ld_force_load" = "yes"; then
13453     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\"`'
13454
13455   else
13456     whole_archive_flag_spec_CXX=''
13457   fi
13458   link_all_deplibs_CXX=yes
13459   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13460   case $cc_basename in
13461      ifort*) _lt_dar_can_shared=yes ;;
13462      *) _lt_dar_can_shared=$GCC ;;
13463   esac
13464   if test "$_lt_dar_can_shared" = "yes"; then
13465     output_verbose_link_cmd=func_echo_all
13466     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}"
13467     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13468     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}"
13469     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}"
13470        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13471       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}"
13472       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}"
13473     fi
13474
13475   else
13476   ld_shlibs_CXX=no
13477   fi
13478
13479         ;;
13480
13481       dgux*)
13482         case $cc_basename in
13483           ec++*)
13484             # FIXME: insert proper C++ library support
13485             ld_shlibs_CXX=no
13486             ;;
13487           ghcx*)
13488             # Green Hills C++ Compiler
13489             # FIXME: insert proper C++ library support
13490             ld_shlibs_CXX=no
13491             ;;
13492           *)
13493             # FIXME: insert proper C++ library support
13494             ld_shlibs_CXX=no
13495             ;;
13496         esac
13497         ;;
13498
13499       freebsd2.*)
13500         # C++ shared libraries reported to be fairly broken before
13501         # switch to ELF
13502         ld_shlibs_CXX=no
13503         ;;
13504
13505       freebsd-elf*)
13506         archive_cmds_need_lc_CXX=no
13507         ;;
13508
13509       freebsd* | dragonfly*)
13510         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13511         # conventions
13512         ld_shlibs_CXX=yes
13513         ;;
13514
13515       gnu*)
13516         ;;
13517
13518       haiku*)
13519         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520         link_all_deplibs_CXX=yes
13521         ;;
13522
13523       hpux9*)
13524         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13525         hardcode_libdir_separator_CXX=:
13526         export_dynamic_flag_spec_CXX='${wl}-E'
13527         hardcode_direct_CXX=yes
13528         hardcode_minus_L_CXX=yes # Not in the search PATH,
13529                                              # but as the default
13530                                              # location of the library.
13531
13532         case $cc_basename in
13533           CC*)
13534             # FIXME: insert proper C++ library support
13535             ld_shlibs_CXX=no
13536             ;;
13537           aCC*)
13538             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'
13539             # Commands to make compiler produce verbose output that lists
13540             # what "hidden" libraries, object files and flags are used when
13541             # linking a shared library.
13542             #
13543             # There doesn't appear to be a way to prevent this compiler from
13544             # explicitly linking system object files so we need to strip them
13545             # from the output so that they don't get included in the library
13546             # dependencies.
13547             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"'
13548             ;;
13549           *)
13550             if test "$GXX" = yes; then
13551               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'
13552             else
13553               # FIXME: insert proper C++ library support
13554               ld_shlibs_CXX=no
13555             fi
13556             ;;
13557         esac
13558         ;;
13559
13560       hpux10*|hpux11*)
13561         if test $with_gnu_ld = no; then
13562           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13563           hardcode_libdir_separator_CXX=:
13564
13565           case $host_cpu in
13566             hppa*64*|ia64*)
13567               ;;
13568             *)
13569               export_dynamic_flag_spec_CXX='${wl}-E'
13570               ;;
13571           esac
13572         fi
13573         case $host_cpu in
13574           hppa*64*|ia64*)
13575             hardcode_direct_CXX=no
13576             hardcode_shlibpath_var_CXX=no
13577             ;;
13578           *)
13579             hardcode_direct_CXX=yes
13580             hardcode_direct_absolute_CXX=yes
13581             hardcode_minus_L_CXX=yes # Not in the search PATH,
13582                                                  # but as the default
13583                                                  # location of the library.
13584             ;;
13585         esac
13586
13587         case $cc_basename in
13588           CC*)
13589             # FIXME: insert proper C++ library support
13590             ld_shlibs_CXX=no
13591             ;;
13592           aCC*)
13593             case $host_cpu in
13594               hppa*64*)
13595                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13596                 ;;
13597               ia64*)
13598                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13599                 ;;
13600               *)
13601                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13602                 ;;
13603             esac
13604             # Commands to make compiler produce verbose output that lists
13605             # what "hidden" libraries, object files and flags are used when
13606             # linking a shared library.
13607             #
13608             # There doesn't appear to be a way to prevent this compiler from
13609             # explicitly linking system object files so we need to strip them
13610             # from the output so that they don't get included in the library
13611             # dependencies.
13612             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"'
13613             ;;
13614           *)
13615             if test "$GXX" = yes; then
13616               if test $with_gnu_ld = no; then
13617                 case $host_cpu in
13618                   hppa*64*)
13619                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13620                     ;;
13621                   ia64*)
13622                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13623                     ;;
13624                   *)
13625                     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'
13626                     ;;
13627                 esac
13628               fi
13629             else
13630               # FIXME: insert proper C++ library support
13631               ld_shlibs_CXX=no
13632             fi
13633             ;;
13634         esac
13635         ;;
13636
13637       interix[3-9]*)
13638         hardcode_direct_CXX=no
13639         hardcode_shlibpath_var_CXX=no
13640         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13641         export_dynamic_flag_spec_CXX='${wl}-E'
13642         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13643         # Instead, shared libraries are loaded at an image base (0x10000000 by
13644         # default) and relocated if they conflict, which is a slow very memory
13645         # consuming and fragmenting process.  To avoid this, we pick a random,
13646         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13647         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13648         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'
13649         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'
13650         ;;
13651       irix5* | irix6*)
13652         case $cc_basename in
13653           CC*)
13654             # SGI C++
13655             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'
13656
13657             # Archives containing C++ object files must be created using
13658             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13659             # necessary to make sure instantiated templates are included
13660             # in the archive.
13661             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13662             ;;
13663           *)
13664             if test "$GXX" = yes; then
13665               if test "$with_gnu_ld" = no; then
13666                 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'
13667               else
13668                 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'
13669               fi
13670             fi
13671             link_all_deplibs_CXX=yes
13672             ;;
13673         esac
13674         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13675         hardcode_libdir_separator_CXX=:
13676         inherit_rpath_CXX=yes
13677         ;;
13678
13679       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13680         case $cc_basename in
13681           KCC*)
13682             # Kuck and Associates, Inc. (KAI) C++ Compiler
13683
13684             # KCC will only create a shared library if the output file
13685             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13686             # to its proper name (with version) after linking.
13687             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'
13688             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'
13689             # Commands to make compiler produce verbose output that lists
13690             # what "hidden" libraries, object files and flags are used when
13691             # linking a shared library.
13692             #
13693             # There doesn't appear to be a way to prevent this compiler from
13694             # explicitly linking system object files so we need to strip them
13695             # from the output so that they don't get included in the library
13696             # dependencies.
13697             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"'
13698
13699             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13700             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13701
13702             # Archives containing C++ object files must be created using
13703             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13704             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13705             ;;
13706           icpc* | ecpc* )
13707             # Intel C++
13708             with_gnu_ld=yes
13709             # version 8.0 and above of icpc choke on multiply defined symbols
13710             # if we add $predep_objects and $postdep_objects, however 7.1 and
13711             # earlier do not add the objects themselves.
13712             case `$CC -V 2>&1` in
13713               *"Version 7."*)
13714                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13715                 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'
13716                 ;;
13717               *)  # Version 8.0 or newer
13718                 tmp_idyn=
13719                 case $host_cpu in
13720                   ia64*) tmp_idyn=' -i_dynamic';;
13721                 esac
13722                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13723                 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'
13724                 ;;
13725             esac
13726             archive_cmds_need_lc_CXX=no
13727             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13728             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13729             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13730             ;;
13731           pgCC* | pgcpp*)
13732             # Portland Group C++ compiler
13733             case `$CC -V` in
13734             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13735               prelink_cmds_CXX='tpldir=Template.dir~
13736                 rm -rf $tpldir~
13737                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13738                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13739               old_archive_cmds_CXX='tpldir=Template.dir~
13740                 rm -rf $tpldir~
13741                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13742                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13743                 $RANLIB $oldlib'
13744               archive_cmds_CXX='tpldir=Template.dir~
13745                 rm -rf $tpldir~
13746                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13747                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13748               archive_expsym_cmds_CXX='tpldir=Template.dir~
13749                 rm -rf $tpldir~
13750                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13751                 $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'
13752               ;;
13753             *) # Version 6 and above use weak symbols
13754               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13755               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'
13756               ;;
13757             esac
13758
13759             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13760             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13761             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'
13762             ;;
13763           cxx*)
13764             # Compaq C++
13765             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13766             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'
13767
13768             runpath_var=LD_RUN_PATH
13769             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13770             hardcode_libdir_separator_CXX=:
13771
13772             # Commands to make compiler produce verbose output that lists
13773             # what "hidden" libraries, object files and flags are used when
13774             # linking a shared library.
13775             #
13776             # There doesn't appear to be a way to prevent this compiler from
13777             # explicitly linking system object files so we need to strip them
13778             # from the output so that they don't get included in the library
13779             # dependencies.
13780             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'
13781             ;;
13782           xl* | mpixl* | bgxl*)
13783             # IBM XL 8.0 on PPC, with GNU ld
13784             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13785             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13786             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13787             if test "x$supports_anon_versioning" = xyes; then
13788               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13789                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13790                 echo "local: *; };" >> $output_objdir/$libname.ver~
13791                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13792             fi
13793             ;;
13794           *)
13795             case `$CC -V 2>&1 | sed 5q` in
13796             *Sun\ C*)
13797               # Sun C++ 5.9
13798               no_undefined_flag_CXX=' -zdefs'
13799               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13800               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'
13801               hardcode_libdir_flag_spec_CXX='-R$libdir'
13802               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'
13803               compiler_needs_object_CXX=yes
13804
13805               # Not sure whether something based on
13806               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13807               # would be better.
13808               output_verbose_link_cmd='func_echo_all'
13809
13810               # Archives containing C++ object files must be created using
13811               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13812               # necessary to make sure instantiated templates are included
13813               # in the archive.
13814               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13815               ;;
13816             esac
13817             ;;
13818         esac
13819         ;;
13820
13821       lynxos*)
13822         # FIXME: insert proper C++ library support
13823         ld_shlibs_CXX=no
13824         ;;
13825
13826       m88k*)
13827         # FIXME: insert proper C++ library support
13828         ld_shlibs_CXX=no
13829         ;;
13830
13831       mvs*)
13832         case $cc_basename in
13833           cxx*)
13834             # FIXME: insert proper C++ library support
13835             ld_shlibs_CXX=no
13836             ;;
13837           *)
13838             # FIXME: insert proper C++ library support
13839             ld_shlibs_CXX=no
13840             ;;
13841         esac
13842         ;;
13843
13844       netbsd*)
13845         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13846           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13847           wlarc=
13848           hardcode_libdir_flag_spec_CXX='-R$libdir'
13849           hardcode_direct_CXX=yes
13850           hardcode_shlibpath_var_CXX=no
13851         fi
13852         # Workaround some broken pre-1.5 toolchains
13853         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13854         ;;
13855
13856       *nto* | *qnx*)
13857         ld_shlibs_CXX=yes
13858         ;;
13859
13860       openbsd2*)
13861         # C++ shared libraries are fairly broken
13862         ld_shlibs_CXX=no
13863         ;;
13864
13865       openbsd*)
13866         if test -f /usr/libexec/ld.so; then
13867           hardcode_direct_CXX=yes
13868           hardcode_shlibpath_var_CXX=no
13869           hardcode_direct_absolute_CXX=yes
13870           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13871           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13872           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13873             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13874             export_dynamic_flag_spec_CXX='${wl}-E'
13875             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13876           fi
13877           output_verbose_link_cmd=func_echo_all
13878         else
13879           ld_shlibs_CXX=no
13880         fi
13881         ;;
13882
13883       osf3* | osf4* | osf5*)
13884         case $cc_basename in
13885           KCC*)
13886             # Kuck and Associates, Inc. (KAI) C++ Compiler
13887
13888             # KCC will only create a shared library if the output file
13889             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13890             # to its proper name (with version) after linking.
13891             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'
13892
13893             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13894             hardcode_libdir_separator_CXX=:
13895
13896             # Archives containing C++ object files must be created using
13897             # the KAI C++ compiler.
13898             case $host in
13899               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13900               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13901             esac
13902             ;;
13903           RCC*)
13904             # Rational C++ 2.4.1
13905             # FIXME: insert proper C++ library support
13906             ld_shlibs_CXX=no
13907             ;;
13908           cxx*)
13909             case $host in
13910               osf3*)
13911                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13912                 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'
13913                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13914                 ;;
13915               *)
13916                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13917                 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'
13918                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13919                   echo "-hidden">> $lib.exp~
13920                   $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~
13921                   $RM $lib.exp'
13922                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13923                 ;;
13924             esac
13925
13926             hardcode_libdir_separator_CXX=:
13927
13928             # Commands to make compiler produce verbose output that lists
13929             # what "hidden" libraries, object files and flags are used when
13930             # linking a shared library.
13931             #
13932             # There doesn't appear to be a way to prevent this compiler from
13933             # explicitly linking system object files so we need to strip them
13934             # from the output so that they don't get included in the library
13935             # dependencies.
13936             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"'
13937             ;;
13938           *)
13939             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13940               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13941               case $host in
13942                 osf3*)
13943                   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'
13944                   ;;
13945                 *)
13946                   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'
13947                   ;;
13948               esac
13949
13950               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13951               hardcode_libdir_separator_CXX=:
13952
13953               # Commands to make compiler produce verbose output that lists
13954               # what "hidden" libraries, object files and flags are used when
13955               # linking a shared library.
13956               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13957
13958             else
13959               # FIXME: insert proper C++ library support
13960               ld_shlibs_CXX=no
13961             fi
13962             ;;
13963         esac
13964         ;;
13965
13966       psos*)
13967         # FIXME: insert proper C++ library support
13968         ld_shlibs_CXX=no
13969         ;;
13970
13971       sunos4*)
13972         case $cc_basename in
13973           CC*)
13974             # Sun C++ 4.x
13975             # FIXME: insert proper C++ library support
13976             ld_shlibs_CXX=no
13977             ;;
13978           lcc*)
13979             # Lucid
13980             # FIXME: insert proper C++ library support
13981             ld_shlibs_CXX=no
13982             ;;
13983           *)
13984             # FIXME: insert proper C++ library support
13985             ld_shlibs_CXX=no
13986             ;;
13987         esac
13988         ;;
13989
13990       solaris*)
13991         case $cc_basename in
13992           CC* | sunCC*)
13993             # Sun C++ 4.2, 5.x and Centerline C++
13994             archive_cmds_need_lc_CXX=yes
13995             no_undefined_flag_CXX=' -zdefs'
13996             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13997             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13998               $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'
13999
14000             hardcode_libdir_flag_spec_CXX='-R$libdir'
14001             hardcode_shlibpath_var_CXX=no
14002             case $host_os in
14003               solaris2.[0-5] | solaris2.[0-5].*) ;;
14004               *)
14005                 # The compiler driver will combine and reorder linker options,
14006                 # but understands `-z linker_flag'.
14007                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14008                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14009                 ;;
14010             esac
14011             link_all_deplibs_CXX=yes
14012
14013             output_verbose_link_cmd='func_echo_all'
14014
14015             # Archives containing C++ object files must be created using
14016             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14017             # necessary to make sure instantiated templates are included
14018             # in the archive.
14019             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14020             ;;
14021           gcx*)
14022             # Green Hills C++ Compiler
14023             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14024
14025             # The C++ compiler must be used to create the archive.
14026             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14027             ;;
14028           *)
14029             # GNU C++ compiler with Solaris linker
14030             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14031               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14032               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14033                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14034                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14035                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14036
14037                 # Commands to make compiler produce verbose output that lists
14038                 # what "hidden" libraries, object files and flags are used when
14039                 # linking a shared library.
14040                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14041               else
14042                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14043                 # platform.
14044                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14045                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14046                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14047
14048                 # Commands to make compiler produce verbose output that lists
14049                 # what "hidden" libraries, object files and flags are used when
14050                 # linking a shared library.
14051                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14052               fi
14053
14054               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14055               case $host_os in
14056                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14057                 *)
14058                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14059                   ;;
14060               esac
14061             fi
14062             ;;
14063         esac
14064         ;;
14065
14066     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14067       no_undefined_flag_CXX='${wl}-z,text'
14068       archive_cmds_need_lc_CXX=no
14069       hardcode_shlibpath_var_CXX=no
14070       runpath_var='LD_RUN_PATH'
14071
14072       case $cc_basename in
14073         CC*)
14074           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14075           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14076           ;;
14077         *)
14078           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14079           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14080           ;;
14081       esac
14082       ;;
14083
14084       sysv5* | sco3.2v5* | sco5v6*)
14085         # Note: We can NOT use -z defs as we might desire, because we do not
14086         # link with -lc, and that would cause any symbols used from libc to
14087         # always be unresolved, which means just about no library would
14088         # ever link correctly.  If we're not using GNU ld we use -z text
14089         # though, which does catch some bad symbols but isn't as heavy-handed
14090         # as -z defs.
14091         no_undefined_flag_CXX='${wl}-z,text'
14092         allow_undefined_flag_CXX='${wl}-z,nodefs'
14093         archive_cmds_need_lc_CXX=no
14094         hardcode_shlibpath_var_CXX=no
14095         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14096         hardcode_libdir_separator_CXX=':'
14097         link_all_deplibs_CXX=yes
14098         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14099         runpath_var='LD_RUN_PATH'
14100
14101         case $cc_basename in
14102           CC*)
14103             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14105             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14106               '"$old_archive_cmds_CXX"
14107             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14108               '"$reload_cmds_CXX"
14109             ;;
14110           *)
14111             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14112             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14113             ;;
14114         esac
14115       ;;
14116
14117       tandem*)
14118         case $cc_basename in
14119           NCC*)
14120             # NonStop-UX NCC 3.20
14121             # FIXME: insert proper C++ library support
14122             ld_shlibs_CXX=no
14123             ;;
14124           *)
14125             # FIXME: insert proper C++ library support
14126             ld_shlibs_CXX=no
14127             ;;
14128         esac
14129         ;;
14130
14131       vxworks*)
14132         # FIXME: insert proper C++ library support
14133         ld_shlibs_CXX=no
14134         ;;
14135
14136       *)
14137         # FIXME: insert proper C++ library support
14138         ld_shlibs_CXX=no
14139         ;;
14140     esac
14141
14142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14143 $as_echo "$ld_shlibs_CXX" >&6; }
14144     test "$ld_shlibs_CXX" = no && can_build_shared=no
14145
14146     GCC_CXX="$GXX"
14147     LD_CXX="$LD"
14148
14149     ## CAVEAT EMPTOR:
14150     ## There is no encapsulation within the following macros, do not change
14151     ## the running order or otherwise move them around unless you know exactly
14152     ## what you are doing...
14153     # Dependencies to place before and after the object being linked:
14154 predep_objects_CXX=
14155 postdep_objects_CXX=
14156 predeps_CXX=
14157 postdeps_CXX=
14158 compiler_lib_search_path_CXX=
14159
14160 cat > conftest.$ac_ext <<_LT_EOF
14161 class Foo
14162 {
14163 public:
14164   Foo (void) { a = 0; }
14165 private:
14166   int a;
14167 };
14168 _LT_EOF
14169
14170
14171 _lt_libdeps_save_CFLAGS=$CFLAGS
14172 case "$CC $CFLAGS " in #(
14173 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14174 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14175 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14176 esac
14177
14178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14179   (eval $ac_compile) 2>&5
14180   ac_status=$?
14181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14182   test $ac_status = 0; }; then
14183   # Parse the compiler output and extract the necessary
14184   # objects, libraries and library flags.
14185
14186   # Sentinel used to keep track of whether or not we are before
14187   # the conftest object file.
14188   pre_test_object_deps_done=no
14189
14190   for p in `eval "$output_verbose_link_cmd"`; do
14191     case ${prev}${p} in
14192
14193     -L* | -R* | -l*)
14194        # Some compilers place space between "-{L,R}" and the path.
14195        # Remove the space.
14196        if test $p = "-L" ||
14197           test $p = "-R"; then
14198          prev=$p
14199          continue
14200        fi
14201
14202        # Expand the sysroot to ease extracting the directories later.
14203        if test -z "$prev"; then
14204          case $p in
14205          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14206          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14207          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14208          esac
14209        fi
14210        case $p in
14211        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14212        esac
14213        if test "$pre_test_object_deps_done" = no; then
14214          case ${prev} in
14215          -L | -R)
14216            # Internal compiler library paths should come after those
14217            # provided the user.  The postdeps already come after the
14218            # user supplied libs so there is no need to process them.
14219            if test -z "$compiler_lib_search_path_CXX"; then
14220              compiler_lib_search_path_CXX="${prev}${p}"
14221            else
14222              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14223            fi
14224            ;;
14225          # The "-l" case would never come before the object being
14226          # linked, so don't bother handling this case.
14227          esac
14228        else
14229          if test -z "$postdeps_CXX"; then
14230            postdeps_CXX="${prev}${p}"
14231          else
14232            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14233          fi
14234        fi
14235        prev=
14236        ;;
14237
14238     *.lto.$objext) ;; # Ignore GCC LTO objects
14239     *.$objext)
14240        # This assumes that the test object file only shows up
14241        # once in the compiler output.
14242        if test "$p" = "conftest.$objext"; then
14243          pre_test_object_deps_done=yes
14244          continue
14245        fi
14246
14247        if test "$pre_test_object_deps_done" = no; then
14248          if test -z "$predep_objects_CXX"; then
14249            predep_objects_CXX="$p"
14250          else
14251            predep_objects_CXX="$predep_objects_CXX $p"
14252          fi
14253        else
14254          if test -z "$postdep_objects_CXX"; then
14255            postdep_objects_CXX="$p"
14256          else
14257            postdep_objects_CXX="$postdep_objects_CXX $p"
14258          fi
14259        fi
14260        ;;
14261
14262     *) ;; # Ignore the rest.
14263
14264     esac
14265   done
14266
14267   # Clean up.
14268   rm -f a.out a.exe
14269 else
14270   echo "libtool.m4: error: problem compiling CXX test program"
14271 fi
14272
14273 $RM -f confest.$objext
14274 CFLAGS=$_lt_libdeps_save_CFLAGS
14275
14276 # PORTME: override above test on systems where it is broken
14277 case $host_os in
14278 interix[3-9]*)
14279   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14280   # hack all around it, let's just trust "g++" to DTRT.
14281   predep_objects_CXX=
14282   postdep_objects_CXX=
14283   postdeps_CXX=
14284   ;;
14285
14286 linux*)
14287   case `$CC -V 2>&1 | sed 5q` in
14288   *Sun\ C*)
14289     # Sun C++ 5.9
14290
14291     # The more standards-conforming stlport4 library is
14292     # incompatible with the Cstd library. Avoid specifying
14293     # it if it's in CXXFLAGS. Ignore libCrun as
14294     # -library=stlport4 depends on it.
14295     case " $CXX $CXXFLAGS " in
14296     *" -library=stlport4 "*)
14297       solaris_use_stlport4=yes
14298       ;;
14299     esac
14300
14301     if test "$solaris_use_stlport4" != yes; then
14302       postdeps_CXX='-library=Cstd -library=Crun'
14303     fi
14304     ;;
14305   esac
14306   ;;
14307
14308 solaris*)
14309   case $cc_basename in
14310   CC* | sunCC*)
14311     # The more standards-conforming stlport4 library is
14312     # incompatible with the Cstd library. Avoid specifying
14313     # it if it's in CXXFLAGS. Ignore libCrun as
14314     # -library=stlport4 depends on it.
14315     case " $CXX $CXXFLAGS " in
14316     *" -library=stlport4 "*)
14317       solaris_use_stlport4=yes
14318       ;;
14319     esac
14320
14321     # Adding this requires a known-good setup of shared libraries for
14322     # Sun compiler versions before 5.6, else PIC objects from an old
14323     # archive will be linked into the output, leading to subtle bugs.
14324     if test "$solaris_use_stlport4" != yes; then
14325       postdeps_CXX='-library=Cstd -library=Crun'
14326     fi
14327     ;;
14328   esac
14329   ;;
14330 esac
14331
14332
14333 case " $postdeps_CXX " in
14334 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14335 esac
14336  compiler_lib_search_dirs_CXX=
14337 if test -n "${compiler_lib_search_path_CXX}"; then
14338  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14339 fi
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371     lt_prog_compiler_wl_CXX=
14372 lt_prog_compiler_pic_CXX=
14373 lt_prog_compiler_static_CXX=
14374
14375
14376   # C++ specific cases for pic, static, wl, etc.
14377   if test "$GXX" = yes; then
14378     lt_prog_compiler_wl_CXX='-Wl,'
14379     lt_prog_compiler_static_CXX='-static'
14380
14381     case $host_os in
14382     aix*)
14383       # All AIX code is PIC.
14384       if test "$host_cpu" = ia64; then
14385         # AIX 5 now supports IA64 processor
14386         lt_prog_compiler_static_CXX='-Bstatic'
14387       fi
14388       ;;
14389
14390     amigaos*)
14391       case $host_cpu in
14392       powerpc)
14393             # see comment about AmigaOS4 .so support
14394             lt_prog_compiler_pic_CXX='-fPIC'
14395         ;;
14396       m68k)
14397             # FIXME: we need at least 68020 code to build shared libraries, but
14398             # adding the `-m68020' flag to GCC prevents building anything better,
14399             # like `-m68040'.
14400             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14401         ;;
14402       esac
14403       ;;
14404
14405     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14406       # PIC is the default for these OSes.
14407       ;;
14408     mingw* | cygwin* | os2* | pw32* | cegcc*)
14409       # This hack is so that the source file can tell whether it is being
14410       # built for inclusion in a dll (and should export symbols for example).
14411       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14412       # (--disable-auto-import) libraries
14413       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14414       ;;
14415     darwin* | rhapsody*)
14416       # PIC is the default on this platform
14417       # Common symbols not allowed in MH_DYLIB files
14418       lt_prog_compiler_pic_CXX='-fno-common'
14419       ;;
14420     *djgpp*)
14421       # DJGPP does not support shared libraries at all
14422       lt_prog_compiler_pic_CXX=
14423       ;;
14424     haiku*)
14425       # PIC is the default for Haiku.
14426       # The "-static" flag exists, but is broken.
14427       lt_prog_compiler_static_CXX=
14428       ;;
14429     interix[3-9]*)
14430       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14431       # Instead, we relocate shared libraries at runtime.
14432       ;;
14433     sysv4*MP*)
14434       if test -d /usr/nec; then
14435         lt_prog_compiler_pic_CXX=-Kconform_pic
14436       fi
14437       ;;
14438     hpux*)
14439       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14440       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14441       # sets the default TLS model and affects inlining.
14442       case $host_cpu in
14443       hppa*64*)
14444         ;;
14445       *)
14446         lt_prog_compiler_pic_CXX='-fPIC'
14447         ;;
14448       esac
14449       ;;
14450     *qnx* | *nto*)
14451       # QNX uses GNU C++, but need to define -shared option too, otherwise
14452       # it will coredump.
14453       lt_prog_compiler_pic_CXX='-fPIC -shared'
14454       ;;
14455     *)
14456       lt_prog_compiler_pic_CXX='-fPIC'
14457       ;;
14458     esac
14459   else
14460     case $host_os in
14461       aix[4-9]*)
14462         # All AIX code is PIC.
14463         if test "$host_cpu" = ia64; then
14464           # AIX 5 now supports IA64 processor
14465           lt_prog_compiler_static_CXX='-Bstatic'
14466         else
14467           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14468         fi
14469         ;;
14470       chorus*)
14471         case $cc_basename in
14472         cxch68*)
14473           # Green Hills C++ Compiler
14474           # _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"
14475           ;;
14476         esac
14477         ;;
14478       mingw* | cygwin* | os2* | pw32* | cegcc*)
14479         # This hack is so that the source file can tell whether it is being
14480         # built for inclusion in a dll (and should export symbols for example).
14481         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14482         ;;
14483       dgux*)
14484         case $cc_basename in
14485           ec++*)
14486             lt_prog_compiler_pic_CXX='-KPIC'
14487             ;;
14488           ghcx*)
14489             # Green Hills C++ Compiler
14490             lt_prog_compiler_pic_CXX='-pic'
14491             ;;
14492           *)
14493             ;;
14494         esac
14495         ;;
14496       freebsd* | dragonfly*)
14497         # FreeBSD uses GNU C++
14498         ;;
14499       hpux9* | hpux10* | hpux11*)
14500         case $cc_basename in
14501           CC*)
14502             lt_prog_compiler_wl_CXX='-Wl,'
14503             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14504             if test "$host_cpu" != ia64; then
14505               lt_prog_compiler_pic_CXX='+Z'
14506             fi
14507             ;;
14508           aCC*)
14509             lt_prog_compiler_wl_CXX='-Wl,'
14510             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14511             case $host_cpu in
14512             hppa*64*|ia64*)
14513               # +Z the default
14514               ;;
14515             *)
14516               lt_prog_compiler_pic_CXX='+Z'
14517               ;;
14518             esac
14519             ;;
14520           *)
14521             ;;
14522         esac
14523         ;;
14524       interix*)
14525         # This is c89, which is MS Visual C++ (no shared libs)
14526         # Anyone wants to do a port?
14527         ;;
14528       irix5* | irix6* | nonstopux*)
14529         case $cc_basename in
14530           CC*)
14531             lt_prog_compiler_wl_CXX='-Wl,'
14532             lt_prog_compiler_static_CXX='-non_shared'
14533             # CC pic flag -KPIC is the default.
14534             ;;
14535           *)
14536             ;;
14537         esac
14538         ;;
14539       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14540         case $cc_basename in
14541           KCC*)
14542             # KAI C++ Compiler
14543             lt_prog_compiler_wl_CXX='--backend -Wl,'
14544             lt_prog_compiler_pic_CXX='-fPIC'
14545             ;;
14546           ecpc* )
14547             # old Intel C++ for x86_64 which still supported -KPIC.
14548             lt_prog_compiler_wl_CXX='-Wl,'
14549             lt_prog_compiler_pic_CXX='-KPIC'
14550             lt_prog_compiler_static_CXX='-static'
14551             ;;
14552           icpc* )
14553             # Intel C++, used to be incompatible with GCC.
14554             # ICC 10 doesn't accept -KPIC any more.
14555             lt_prog_compiler_wl_CXX='-Wl,'
14556             lt_prog_compiler_pic_CXX='-fPIC'
14557             lt_prog_compiler_static_CXX='-static'
14558             ;;
14559           pgCC* | pgcpp*)
14560             # Portland Group C++ compiler
14561             lt_prog_compiler_wl_CXX='-Wl,'
14562             lt_prog_compiler_pic_CXX='-fpic'
14563             lt_prog_compiler_static_CXX='-Bstatic'
14564             ;;
14565           cxx*)
14566             # Compaq C++
14567             # Make sure the PIC flag is empty.  It appears that all Alpha
14568             # Linux and Compaq Tru64 Unix objects are PIC.
14569             lt_prog_compiler_pic_CXX=
14570             lt_prog_compiler_static_CXX='-non_shared'
14571             ;;
14572           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14573             # IBM XL 8.0, 9.0 on PPC and BlueGene
14574             lt_prog_compiler_wl_CXX='-Wl,'
14575             lt_prog_compiler_pic_CXX='-qpic'
14576             lt_prog_compiler_static_CXX='-qstaticlink'
14577             ;;
14578           *)
14579             case `$CC -V 2>&1 | sed 5q` in
14580             *Sun\ C*)
14581               # Sun C++ 5.9
14582               lt_prog_compiler_pic_CXX='-KPIC'
14583               lt_prog_compiler_static_CXX='-Bstatic'
14584               lt_prog_compiler_wl_CXX='-Qoption ld '
14585               ;;
14586             esac
14587             ;;
14588         esac
14589         ;;
14590       lynxos*)
14591         ;;
14592       m88k*)
14593         ;;
14594       mvs*)
14595         case $cc_basename in
14596           cxx*)
14597             lt_prog_compiler_pic_CXX='-W c,exportall'
14598             ;;
14599           *)
14600             ;;
14601         esac
14602         ;;
14603       netbsd*)
14604         ;;
14605       *qnx* | *nto*)
14606         # QNX uses GNU C++, but need to define -shared option too, otherwise
14607         # it will coredump.
14608         lt_prog_compiler_pic_CXX='-fPIC -shared'
14609         ;;
14610       osf3* | osf4* | osf5*)
14611         case $cc_basename in
14612           KCC*)
14613             lt_prog_compiler_wl_CXX='--backend -Wl,'
14614             ;;
14615           RCC*)
14616             # Rational C++ 2.4.1
14617             lt_prog_compiler_pic_CXX='-pic'
14618             ;;
14619           cxx*)
14620             # Digital/Compaq C++
14621             lt_prog_compiler_wl_CXX='-Wl,'
14622             # Make sure the PIC flag is empty.  It appears that all Alpha
14623             # Linux and Compaq Tru64 Unix objects are PIC.
14624             lt_prog_compiler_pic_CXX=
14625             lt_prog_compiler_static_CXX='-non_shared'
14626             ;;
14627           *)
14628             ;;
14629         esac
14630         ;;
14631       psos*)
14632         ;;
14633       solaris*)
14634         case $cc_basename in
14635           CC* | sunCC*)
14636             # Sun C++ 4.2, 5.x and Centerline C++
14637             lt_prog_compiler_pic_CXX='-KPIC'
14638             lt_prog_compiler_static_CXX='-Bstatic'
14639             lt_prog_compiler_wl_CXX='-Qoption ld '
14640             ;;
14641           gcx*)
14642             # Green Hills C++ Compiler
14643             lt_prog_compiler_pic_CXX='-PIC'
14644             ;;
14645           *)
14646             ;;
14647         esac
14648         ;;
14649       sunos4*)
14650         case $cc_basename in
14651           CC*)
14652             # Sun C++ 4.x
14653             lt_prog_compiler_pic_CXX='-pic'
14654             lt_prog_compiler_static_CXX='-Bstatic'
14655             ;;
14656           lcc*)
14657             # Lucid
14658             lt_prog_compiler_pic_CXX='-pic'
14659             ;;
14660           *)
14661             ;;
14662         esac
14663         ;;
14664       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14665         case $cc_basename in
14666           CC*)
14667             lt_prog_compiler_wl_CXX='-Wl,'
14668             lt_prog_compiler_pic_CXX='-KPIC'
14669             lt_prog_compiler_static_CXX='-Bstatic'
14670             ;;
14671         esac
14672         ;;
14673       tandem*)
14674         case $cc_basename in
14675           NCC*)
14676             # NonStop-UX NCC 3.20
14677             lt_prog_compiler_pic_CXX='-KPIC'
14678             ;;
14679           *)
14680             ;;
14681         esac
14682         ;;
14683       vxworks*)
14684         ;;
14685       *)
14686         lt_prog_compiler_can_build_shared_CXX=no
14687         ;;
14688     esac
14689   fi
14690
14691 case $host_os in
14692   # For platforms which do not support PIC, -DPIC is meaningless:
14693   *djgpp*)
14694     lt_prog_compiler_pic_CXX=
14695     ;;
14696   *)
14697     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14698     ;;
14699 esac
14700
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14702 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14703 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14704   $as_echo_n "(cached) " >&6
14705 else
14706   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14707 fi
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14709 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14710 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14711
14712 #
14713 # Check to make sure the PIC flag actually works.
14714 #
14715 if test -n "$lt_prog_compiler_pic_CXX"; then
14716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14717 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14718 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14719   $as_echo_n "(cached) " >&6
14720 else
14721   lt_cv_prog_compiler_pic_works_CXX=no
14722    ac_outfile=conftest.$ac_objext
14723    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14724    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14725    # Insert the option either (1) after the last *FLAGS variable, or
14726    # (2) before a word containing "conftest.", or (3) at the end.
14727    # Note that $ac_compile itself does not contain backslashes and begins
14728    # with a dollar sign (not a hyphen), so the echo should work correctly.
14729    # The option is referenced via a variable to avoid confusing sed.
14730    lt_compile=`echo "$ac_compile" | $SED \
14731    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14732    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14733    -e 's:$: $lt_compiler_flag:'`
14734    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14735    (eval "$lt_compile" 2>conftest.err)
14736    ac_status=$?
14737    cat conftest.err >&5
14738    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739    if (exit $ac_status) && test -s "$ac_outfile"; then
14740      # The compiler can only warn and ignore the option if not recognized
14741      # So say no if there are warnings other than the usual output.
14742      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14743      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14744      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14745        lt_cv_prog_compiler_pic_works_CXX=yes
14746      fi
14747    fi
14748    $RM conftest*
14749
14750 fi
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14752 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14753
14754 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14755     case $lt_prog_compiler_pic_CXX in
14756      "" | " "*) ;;
14757      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14758      esac
14759 else
14760     lt_prog_compiler_pic_CXX=
14761      lt_prog_compiler_can_build_shared_CXX=no
14762 fi
14763
14764 fi
14765
14766
14767
14768
14769
14770 #
14771 # Check to make sure the static flag actually works.
14772 #
14773 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14775 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14776 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14777   $as_echo_n "(cached) " >&6
14778 else
14779   lt_cv_prog_compiler_static_works_CXX=no
14780    save_LDFLAGS="$LDFLAGS"
14781    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14782    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14783    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14784      # The linker can only warn and ignore the option if not recognized
14785      # So say no if there are warnings
14786      if test -s conftest.err; then
14787        # Append any errors to the config.log.
14788        cat conftest.err 1>&5
14789        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14790        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14791        if diff conftest.exp conftest.er2 >/dev/null; then
14792          lt_cv_prog_compiler_static_works_CXX=yes
14793        fi
14794      else
14795        lt_cv_prog_compiler_static_works_CXX=yes
14796      fi
14797    fi
14798    $RM -r conftest*
14799    LDFLAGS="$save_LDFLAGS"
14800
14801 fi
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14803 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14804
14805 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14806     :
14807 else
14808     lt_prog_compiler_static_CXX=
14809 fi
14810
14811
14812
14813
14814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14815 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14816 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14817   $as_echo_n "(cached) " >&6
14818 else
14819   lt_cv_prog_compiler_c_o_CXX=no
14820    $RM -r conftest 2>/dev/null
14821    mkdir conftest
14822    cd conftest
14823    mkdir out
14824    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14825
14826    lt_compiler_flag="-o out/conftest2.$ac_objext"
14827    # Insert the option either (1) after the last *FLAGS variable, or
14828    # (2) before a word containing "conftest.", or (3) at the end.
14829    # Note that $ac_compile itself does not contain backslashes and begins
14830    # with a dollar sign (not a hyphen), so the echo should work correctly.
14831    lt_compile=`echo "$ac_compile" | $SED \
14832    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14833    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14834    -e 's:$: $lt_compiler_flag:'`
14835    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14836    (eval "$lt_compile" 2>out/conftest.err)
14837    ac_status=$?
14838    cat out/conftest.err >&5
14839    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14841    then
14842      # The compiler can only warn and ignore the option if not recognized
14843      # So say no if there are warnings
14844      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14845      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14846      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14847        lt_cv_prog_compiler_c_o_CXX=yes
14848      fi
14849    fi
14850    chmod u+w . 2>&5
14851    $RM conftest*
14852    # SGI C++ compiler will create directory out/ii_files/ for
14853    # template instantiation
14854    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14855    $RM out/* && rmdir out
14856    cd ..
14857    $RM -r conftest
14858    $RM conftest*
14859
14860 fi
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14862 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14863
14864
14865
14866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14868 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14869   $as_echo_n "(cached) " >&6
14870 else
14871   lt_cv_prog_compiler_c_o_CXX=no
14872    $RM -r conftest 2>/dev/null
14873    mkdir conftest
14874    cd conftest
14875    mkdir out
14876    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14877
14878    lt_compiler_flag="-o out/conftest2.$ac_objext"
14879    # Insert the option either (1) after the last *FLAGS variable, or
14880    # (2) before a word containing "conftest.", or (3) at the end.
14881    # Note that $ac_compile itself does not contain backslashes and begins
14882    # with a dollar sign (not a hyphen), so the echo should work correctly.
14883    lt_compile=`echo "$ac_compile" | $SED \
14884    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14886    -e 's:$: $lt_compiler_flag:'`
14887    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14888    (eval "$lt_compile" 2>out/conftest.err)
14889    ac_status=$?
14890    cat out/conftest.err >&5
14891    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14893    then
14894      # The compiler can only warn and ignore the option if not recognized
14895      # So say no if there are warnings
14896      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14897      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14898      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14899        lt_cv_prog_compiler_c_o_CXX=yes
14900      fi
14901    fi
14902    chmod u+w . 2>&5
14903    $RM conftest*
14904    # SGI C++ compiler will create directory out/ii_files/ for
14905    # template instantiation
14906    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14907    $RM out/* && rmdir out
14908    cd ..
14909    $RM -r conftest
14910    $RM conftest*
14911
14912 fi
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14914 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14915
14916
14917
14918
14919 hard_links="nottested"
14920 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14921   # do not overwrite the value of need_locks provided by the user
14922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14923 $as_echo_n "checking if we can lock with hard links... " >&6; }
14924   hard_links=yes
14925   $RM conftest*
14926   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14927   touch conftest.a
14928   ln conftest.a conftest.b 2>&5 || hard_links=no
14929   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14931 $as_echo "$hard_links" >&6; }
14932   if test "$hard_links" = no; then
14933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14934 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14935     need_locks=warn
14936   fi
14937 else
14938   need_locks=no
14939 fi
14940
14941
14942
14943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14944 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14945
14946   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14947   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14948   case $host_os in
14949   aix[4-9]*)
14950     # If we're using GNU nm, then we don't want the "-C" option.
14951     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14952     # Also, AIX nm treats weak defined symbols like other global defined
14953     # symbols, whereas GNU nm marks them as "W".
14954     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14955       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'
14956     else
14957       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'
14958     fi
14959     ;;
14960   pw32*)
14961     export_symbols_cmds_CXX="$ltdll_cmds"
14962     ;;
14963   cygwin* | mingw* | cegcc*)
14964     case $cc_basename in
14965     cl*)
14966       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14967       ;;
14968     *)
14969       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'
14970       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14971       ;;
14972     esac
14973     ;;
14974   *)
14975     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14976     ;;
14977   esac
14978
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14980 $as_echo "$ld_shlibs_CXX" >&6; }
14981 test "$ld_shlibs_CXX" = no && can_build_shared=no
14982
14983 with_gnu_ld_CXX=$with_gnu_ld
14984
14985
14986
14987
14988
14989
14990 #
14991 # Do we need to explicitly link libc?
14992 #
14993 case "x$archive_cmds_need_lc_CXX" in
14994 x|xyes)
14995   # Assume -lc should be added
14996   archive_cmds_need_lc_CXX=yes
14997
14998   if test "$enable_shared" = yes && test "$GCC" = yes; then
14999     case $archive_cmds_CXX in
15000     *'~'*)
15001       # FIXME: we may have to deal with multi-command sequences.
15002       ;;
15003     '$CC '*)
15004       # Test whether the compiler implicitly links with -lc since on some
15005       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15006       # to ld, don't add -lc before -lgcc.
15007       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15008 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15009 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15010   $as_echo_n "(cached) " >&6
15011 else
15012   $RM conftest*
15013         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15014
15015         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15016   (eval $ac_compile) 2>&5
15017   ac_status=$?
15018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15019   test $ac_status = 0; } 2>conftest.err; then
15020           soname=conftest
15021           lib=conftest
15022           libobjs=conftest.$ac_objext
15023           deplibs=
15024           wl=$lt_prog_compiler_wl_CXX
15025           pic_flag=$lt_prog_compiler_pic_CXX
15026           compiler_flags=-v
15027           linker_flags=-v
15028           verstring=
15029           output_objdir=.
15030           libname=conftest
15031           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15032           allow_undefined_flag_CXX=
15033           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15034   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15035   ac_status=$?
15036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15037   test $ac_status = 0; }
15038           then
15039             lt_cv_archive_cmds_need_lc_CXX=no
15040           else
15041             lt_cv_archive_cmds_need_lc_CXX=yes
15042           fi
15043           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15044         else
15045           cat conftest.err 1>&5
15046         fi
15047         $RM conftest*
15048
15049 fi
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15051 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15052       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15053       ;;
15054     esac
15055   fi
15056   ;;
15057 esac
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15121 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15122
15123 library_names_spec=
15124 libname_spec='lib$name'
15125 soname_spec=
15126 shrext_cmds=".so"
15127 postinstall_cmds=
15128 postuninstall_cmds=
15129 finish_cmds=
15130 finish_eval=
15131 shlibpath_var=
15132 shlibpath_overrides_runpath=unknown
15133 version_type=none
15134 dynamic_linker="$host_os ld.so"
15135 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15136 need_lib_prefix=unknown
15137 hardcode_into_libs=no
15138
15139 # when you set need_version to no, make sure it does not cause -set_version
15140 # flags to be left without arguments
15141 need_version=unknown
15142
15143 case $host_os in
15144 aix3*)
15145   version_type=linux # correct to gnu/linux during the next big refactor
15146   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15147   shlibpath_var=LIBPATH
15148
15149   # AIX 3 has no versioning support, so we append a major version to the name.
15150   soname_spec='${libname}${release}${shared_ext}$major'
15151   ;;
15152
15153 aix[4-9]*)
15154   version_type=linux # correct to gnu/linux during the next big refactor
15155   need_lib_prefix=no
15156   need_version=no
15157   hardcode_into_libs=yes
15158   if test "$host_cpu" = ia64; then
15159     # AIX 5 supports IA64
15160     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15161     shlibpath_var=LD_LIBRARY_PATH
15162   else
15163     # With GCC up to 2.95.x, collect2 would create an import file
15164     # for dependence libraries.  The import file would start with
15165     # the line `#! .'.  This would cause the generated library to
15166     # depend on `.', always an invalid library.  This was fixed in
15167     # development snapshots of GCC prior to 3.0.
15168     case $host_os in
15169       aix4 | aix4.[01] | aix4.[01].*)
15170       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15171            echo ' yes '
15172            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15173         :
15174       else
15175         can_build_shared=no
15176       fi
15177       ;;
15178     esac
15179     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15180     # soname into executable. Probably we can add versioning support to
15181     # collect2, so additional links can be useful in future.
15182     if test "$aix_use_runtimelinking" = yes; then
15183       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15184       # instead of lib<name>.a to let people know that these are not
15185       # typical AIX shared libraries.
15186       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187     else
15188       # We preserve .a as extension for shared libraries through AIX4.2
15189       # and later when we are not doing run time linking.
15190       library_names_spec='${libname}${release}.a $libname.a'
15191       soname_spec='${libname}${release}${shared_ext}$major'
15192     fi
15193     shlibpath_var=LIBPATH
15194   fi
15195   ;;
15196
15197 amigaos*)
15198   case $host_cpu in
15199   powerpc)
15200     # Since July 2007 AmigaOS4 officially supports .so libraries.
15201     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203     ;;
15204   m68k)
15205     library_names_spec='$libname.ixlibrary $libname.a'
15206     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15207     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'
15208     ;;
15209   esac
15210   ;;
15211
15212 beos*)
15213   library_names_spec='${libname}${shared_ext}'
15214   dynamic_linker="$host_os ld.so"
15215   shlibpath_var=LIBRARY_PATH
15216   ;;
15217
15218 bsdi[45]*)
15219   version_type=linux # correct to gnu/linux during the next big refactor
15220   need_version=no
15221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222   soname_spec='${libname}${release}${shared_ext}$major'
15223   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15224   shlibpath_var=LD_LIBRARY_PATH
15225   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15226   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15227   # the default ld.so.conf also contains /usr/contrib/lib and
15228   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15229   # libtool to hard-code these into programs
15230   ;;
15231
15232 cygwin* | mingw* | pw32* | cegcc*)
15233   version_type=windows
15234   shrext_cmds=".dll"
15235   need_version=no
15236   need_lib_prefix=no
15237
15238   case $GCC,$cc_basename in
15239   yes,*)
15240     # gcc
15241     library_names_spec='$libname.dll.a'
15242     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15243     postinstall_cmds='base_file=`basename \${file}`~
15244       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15245       dldir=$destdir/`dirname \$dlpath`~
15246       test -d \$dldir || mkdir -p \$dldir~
15247       $install_prog $dir/$dlname \$dldir/$dlname~
15248       chmod a+x \$dldir/$dlname~
15249       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15250         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15251       fi'
15252     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15253       dlpath=$dir/\$dldll~
15254        $RM \$dlpath'
15255     shlibpath_overrides_runpath=yes
15256
15257     case $host_os in
15258     cygwin*)
15259       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15260       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15261
15262       ;;
15263     mingw* | cegcc*)
15264       # MinGW DLLs use traditional 'lib' prefix
15265       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15266       ;;
15267     pw32*)
15268       # pw32 DLLs use 'pw' prefix rather than 'lib'
15269       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270       ;;
15271     esac
15272     dynamic_linker='Win32 ld.exe'
15273     ;;
15274
15275   *,cl*)
15276     # Native MSVC
15277     libname_spec='$name'
15278     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15279     library_names_spec='${libname}.dll.lib'
15280
15281     case $build_os in
15282     mingw*)
15283       sys_lib_search_path_spec=
15284       lt_save_ifs=$IFS
15285       IFS=';'
15286       for lt_path in $LIB
15287       do
15288         IFS=$lt_save_ifs
15289         # Let DOS variable expansion print the short 8.3 style file name.
15290         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15291         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15292       done
15293       IFS=$lt_save_ifs
15294       # Convert to MSYS style.
15295       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15296       ;;
15297     cygwin*)
15298       # Convert to unix form, then to dos form, then back to unix form
15299       # but this time dos style (no spaces!) so that the unix form looks
15300       # like /cygdrive/c/PROGRA~1:/cygdr...
15301       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15302       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15303       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15304       ;;
15305     *)
15306       sys_lib_search_path_spec="$LIB"
15307       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15308         # It is most probably a Windows format PATH.
15309         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15310       else
15311         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15312       fi
15313       # FIXME: find the short name or the path components, as spaces are
15314       # common. (e.g. "Program Files" -> "PROGRA~1")
15315       ;;
15316     esac
15317
15318     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15319     postinstall_cmds='base_file=`basename \${file}`~
15320       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15321       dldir=$destdir/`dirname \$dlpath`~
15322       test -d \$dldir || mkdir -p \$dldir~
15323       $install_prog $dir/$dlname \$dldir/$dlname'
15324     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15325       dlpath=$dir/\$dldll~
15326        $RM \$dlpath'
15327     shlibpath_overrides_runpath=yes
15328     dynamic_linker='Win32 link.exe'
15329     ;;
15330
15331   *)
15332     # Assume MSVC wrapper
15333     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15334     dynamic_linker='Win32 ld.exe'
15335     ;;
15336   esac
15337   # FIXME: first we should search . and the directory the executable is in
15338   shlibpath_var=PATH
15339   ;;
15340
15341 darwin* | rhapsody*)
15342   dynamic_linker="$host_os dyld"
15343   version_type=darwin
15344   need_lib_prefix=no
15345   need_version=no
15346   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15347   soname_spec='${libname}${release}${major}$shared_ext'
15348   shlibpath_overrides_runpath=yes
15349   shlibpath_var=DYLD_LIBRARY_PATH
15350   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15351
15352   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15353   ;;
15354
15355 dgux*)
15356   version_type=linux # correct to gnu/linux during the next big refactor
15357   need_lib_prefix=no
15358   need_version=no
15359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15360   soname_spec='${libname}${release}${shared_ext}$major'
15361   shlibpath_var=LD_LIBRARY_PATH
15362   ;;
15363
15364 freebsd* | dragonfly*)
15365   # DragonFly does not have aout.  When/if they implement a new
15366   # versioning mechanism, adjust this.
15367   if test -x /usr/bin/objformat; then
15368     objformat=`/usr/bin/objformat`
15369   else
15370     case $host_os in
15371     freebsd[23].*) objformat=aout ;;
15372     *) objformat=elf ;;
15373     esac
15374   fi
15375   version_type=freebsd-$objformat
15376   case $version_type in
15377     freebsd-elf*)
15378       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15379       need_version=no
15380       need_lib_prefix=no
15381       ;;
15382     freebsd-*)
15383       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15384       need_version=yes
15385       ;;
15386   esac
15387   shlibpath_var=LD_LIBRARY_PATH
15388   case $host_os in
15389   freebsd2.*)
15390     shlibpath_overrides_runpath=yes
15391     ;;
15392   freebsd3.[01]* | freebsdelf3.[01]*)
15393     shlibpath_overrides_runpath=yes
15394     hardcode_into_libs=yes
15395     ;;
15396   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15397   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15398     shlibpath_overrides_runpath=no
15399     hardcode_into_libs=yes
15400     ;;
15401   *) # from 4.6 on, and DragonFly
15402     shlibpath_overrides_runpath=yes
15403     hardcode_into_libs=yes
15404     ;;
15405   esac
15406   ;;
15407
15408 gnu*)
15409   version_type=linux # correct to gnu/linux during the next big refactor
15410   need_lib_prefix=no
15411   need_version=no
15412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15413   soname_spec='${libname}${release}${shared_ext}$major'
15414   shlibpath_var=LD_LIBRARY_PATH
15415   shlibpath_overrides_runpath=no
15416   hardcode_into_libs=yes
15417   ;;
15418
15419 haiku*)
15420   version_type=linux # correct to gnu/linux during the next big refactor
15421   need_lib_prefix=no
15422   need_version=no
15423   dynamic_linker="$host_os runtime_loader"
15424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15425   soname_spec='${libname}${release}${shared_ext}$major'
15426   shlibpath_var=LIBRARY_PATH
15427   shlibpath_overrides_runpath=yes
15428   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15429   hardcode_into_libs=yes
15430   ;;
15431
15432 hpux9* | hpux10* | hpux11*)
15433   # Give a soname corresponding to the major version so that dld.sl refuses to
15434   # link against other versions.
15435   version_type=sunos
15436   need_lib_prefix=no
15437   need_version=no
15438   case $host_cpu in
15439   ia64*)
15440     shrext_cmds='.so'
15441     hardcode_into_libs=yes
15442     dynamic_linker="$host_os dld.so"
15443     shlibpath_var=LD_LIBRARY_PATH
15444     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15446     soname_spec='${libname}${release}${shared_ext}$major'
15447     if test "X$HPUX_IA64_MODE" = X32; then
15448       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15449     else
15450       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15451     fi
15452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15453     ;;
15454   hppa*64*)
15455     shrext_cmds='.sl'
15456     hardcode_into_libs=yes
15457     dynamic_linker="$host_os dld.sl"
15458     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15459     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461     soname_spec='${libname}${release}${shared_ext}$major'
15462     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15463     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15464     ;;
15465   *)
15466     shrext_cmds='.sl'
15467     dynamic_linker="$host_os dld.sl"
15468     shlibpath_var=SHLIB_PATH
15469     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15471     soname_spec='${libname}${release}${shared_ext}$major'
15472     ;;
15473   esac
15474   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15475   postinstall_cmds='chmod 555 $lib'
15476   # or fails outright, so override atomically:
15477   install_override_mode=555
15478   ;;
15479
15480 interix[3-9]*)
15481   version_type=linux # correct to gnu/linux during the next big refactor
15482   need_lib_prefix=no
15483   need_version=no
15484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15485   soname_spec='${libname}${release}${shared_ext}$major'
15486   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15487   shlibpath_var=LD_LIBRARY_PATH
15488   shlibpath_overrides_runpath=no
15489   hardcode_into_libs=yes
15490   ;;
15491
15492 irix5* | irix6* | nonstopux*)
15493   case $host_os in
15494     nonstopux*) version_type=nonstopux ;;
15495     *)
15496         if test "$lt_cv_prog_gnu_ld" = yes; then
15497                 version_type=linux # correct to gnu/linux during the next big refactor
15498         else
15499                 version_type=irix
15500         fi ;;
15501   esac
15502   need_lib_prefix=no
15503   need_version=no
15504   soname_spec='${libname}${release}${shared_ext}$major'
15505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15506   case $host_os in
15507   irix5* | nonstopux*)
15508     libsuff= shlibsuff=
15509     ;;
15510   *)
15511     case $LD in # libtool.m4 will add one of these switches to LD
15512     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15513       libsuff= shlibsuff= libmagic=32-bit;;
15514     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15515       libsuff=32 shlibsuff=N32 libmagic=N32;;
15516     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15517       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15518     *) libsuff= shlibsuff= libmagic=never-match;;
15519     esac
15520     ;;
15521   esac
15522   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15523   shlibpath_overrides_runpath=no
15524   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15525   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15526   hardcode_into_libs=yes
15527   ;;
15528
15529 # No shared lib support for Linux oldld, aout, or coff.
15530 linux*oldld* | linux*aout* | linux*coff*)
15531   dynamic_linker=no
15532   ;;
15533
15534 # This must be glibc/ELF.
15535 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15536   version_type=linux # correct to gnu/linux during the next big refactor
15537   need_lib_prefix=no
15538   need_version=no
15539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15540   soname_spec='${libname}${release}${shared_ext}$major'
15541   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15542   shlibpath_var=LD_LIBRARY_PATH
15543   shlibpath_overrides_runpath=no
15544
15545   # Some binutils ld are patched to set DT_RUNPATH
15546   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15547   $as_echo_n "(cached) " >&6
15548 else
15549   lt_cv_shlibpath_overrides_runpath=no
15550     save_LDFLAGS=$LDFLAGS
15551     save_libdir=$libdir
15552     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15553          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15554     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h.  */
15556
15557 int
15558 main ()
15559 {
15560
15561   ;
15562   return 0;
15563 }
15564 _ACEOF
15565 if ac_fn_cxx_try_link "$LINENO"; then :
15566   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15567   lt_cv_shlibpath_overrides_runpath=yes
15568 fi
15569 fi
15570 rm -f core conftest.err conftest.$ac_objext \
15571     conftest$ac_exeext conftest.$ac_ext
15572     LDFLAGS=$save_LDFLAGS
15573     libdir=$save_libdir
15574
15575 fi
15576
15577   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15578
15579   # This implies no fast_install, which is unacceptable.
15580   # Some rework will be needed to allow for fast_install
15581   # before this can be enabled.
15582   hardcode_into_libs=yes
15583
15584   # Append ld.so.conf contents to the search path
15585   if test -f /etc/ld.so.conf; then
15586     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' ' '`
15587     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15588   fi
15589
15590   # We used to test for /lib/ld.so.1 and disable shared libraries on
15591   # powerpc, because MkLinux only supported shared libraries with the
15592   # GNU dynamic linker.  Since this was broken with cross compilers,
15593   # most powerpc-linux boxes support dynamic linking these days and
15594   # people can always --disable-shared, the test was removed, and we
15595   # assume the GNU/Linux dynamic linker is in use.
15596   dynamic_linker='GNU/Linux ld.so'
15597   ;;
15598
15599 netbsd*)
15600   version_type=sunos
15601   need_lib_prefix=no
15602   need_version=no
15603   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15605     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15606     dynamic_linker='NetBSD (a.out) ld.so'
15607   else
15608     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15609     soname_spec='${libname}${release}${shared_ext}$major'
15610     dynamic_linker='NetBSD ld.elf_so'
15611   fi
15612   shlibpath_var=LD_LIBRARY_PATH
15613   shlibpath_overrides_runpath=yes
15614   hardcode_into_libs=yes
15615   ;;
15616
15617 newsos6)
15618   version_type=linux # correct to gnu/linux during the next big refactor
15619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620   shlibpath_var=LD_LIBRARY_PATH
15621   shlibpath_overrides_runpath=yes
15622   ;;
15623
15624 *nto* | *qnx*)
15625   version_type=qnx
15626   need_lib_prefix=no
15627   need_version=no
15628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629   soname_spec='${libname}${release}${shared_ext}$major'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   shlibpath_overrides_runpath=no
15632   hardcode_into_libs=yes
15633   dynamic_linker='ldqnx.so'
15634   ;;
15635
15636 openbsd*)
15637   version_type=sunos
15638   sys_lib_dlsearch_path_spec="/usr/lib"
15639   need_lib_prefix=no
15640   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15641   case $host_os in
15642     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15643     *)                          need_version=no  ;;
15644   esac
15645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15646   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15647   shlibpath_var=LD_LIBRARY_PATH
15648   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15649     case $host_os in
15650       openbsd2.[89] | openbsd2.[89].*)
15651         shlibpath_overrides_runpath=no
15652         ;;
15653       *)
15654         shlibpath_overrides_runpath=yes
15655         ;;
15656       esac
15657   else
15658     shlibpath_overrides_runpath=yes
15659   fi
15660   ;;
15661
15662 os2*)
15663   libname_spec='$name'
15664   shrext_cmds=".dll"
15665   need_lib_prefix=no
15666   library_names_spec='$libname${shared_ext} $libname.a'
15667   dynamic_linker='OS/2 ld.exe'
15668   shlibpath_var=LIBPATH
15669   ;;
15670
15671 osf3* | osf4* | osf5*)
15672   version_type=osf
15673   need_lib_prefix=no
15674   need_version=no
15675   soname_spec='${libname}${release}${shared_ext}$major'
15676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15677   shlibpath_var=LD_LIBRARY_PATH
15678   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15679   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15680   ;;
15681
15682 rdos*)
15683   dynamic_linker=no
15684   ;;
15685
15686 solaris*)
15687   version_type=linux # correct to gnu/linux during the next big refactor
15688   need_lib_prefix=no
15689   need_version=no
15690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691   soname_spec='${libname}${release}${shared_ext}$major'
15692   shlibpath_var=LD_LIBRARY_PATH
15693   shlibpath_overrides_runpath=yes
15694   hardcode_into_libs=yes
15695   # ldd complains unless libraries are executable
15696   postinstall_cmds='chmod +x $lib'
15697   ;;
15698
15699 sunos4*)
15700   version_type=sunos
15701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15702   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15703   shlibpath_var=LD_LIBRARY_PATH
15704   shlibpath_overrides_runpath=yes
15705   if test "$with_gnu_ld" = yes; then
15706     need_lib_prefix=no
15707   fi
15708   need_version=yes
15709   ;;
15710
15711 sysv4 | sysv4.3*)
15712   version_type=linux # correct to gnu/linux during the next big refactor
15713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714   soname_spec='${libname}${release}${shared_ext}$major'
15715   shlibpath_var=LD_LIBRARY_PATH
15716   case $host_vendor in
15717     sni)
15718       shlibpath_overrides_runpath=no
15719       need_lib_prefix=no
15720       runpath_var=LD_RUN_PATH
15721       ;;
15722     siemens)
15723       need_lib_prefix=no
15724       ;;
15725     motorola)
15726       need_lib_prefix=no
15727       need_version=no
15728       shlibpath_overrides_runpath=no
15729       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15730       ;;
15731   esac
15732   ;;
15733
15734 sysv4*MP*)
15735   if test -d /usr/nec ;then
15736     version_type=linux # correct to gnu/linux during the next big refactor
15737     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15738     soname_spec='$libname${shared_ext}.$major'
15739     shlibpath_var=LD_LIBRARY_PATH
15740   fi
15741   ;;
15742
15743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15744   version_type=freebsd-elf
15745   need_lib_prefix=no
15746   need_version=no
15747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15748   soname_spec='${libname}${release}${shared_ext}$major'
15749   shlibpath_var=LD_LIBRARY_PATH
15750   shlibpath_overrides_runpath=yes
15751   hardcode_into_libs=yes
15752   if test "$with_gnu_ld" = yes; then
15753     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15754   else
15755     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15756     case $host_os in
15757       sco3.2v5*)
15758         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15759         ;;
15760     esac
15761   fi
15762   sys_lib_dlsearch_path_spec='/usr/lib'
15763   ;;
15764
15765 tpf*)
15766   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15767   version_type=linux # correct to gnu/linux during the next big refactor
15768   need_lib_prefix=no
15769   need_version=no
15770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15771   shlibpath_var=LD_LIBRARY_PATH
15772   shlibpath_overrides_runpath=no
15773   hardcode_into_libs=yes
15774   ;;
15775
15776 uts4*)
15777   version_type=linux # correct to gnu/linux during the next big refactor
15778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779   soname_spec='${libname}${release}${shared_ext}$major'
15780   shlibpath_var=LD_LIBRARY_PATH
15781   ;;
15782
15783 *)
15784   dynamic_linker=no
15785   ;;
15786 esac
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15788 $as_echo "$dynamic_linker" >&6; }
15789 test "$dynamic_linker" = no && can_build_shared=no
15790
15791 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15792 if test "$GCC" = yes; then
15793   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15794 fi
15795
15796 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15797   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15798 fi
15799 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15800   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15801 fi
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15841 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15842 hardcode_action_CXX=
15843 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15844    test -n "$runpath_var_CXX" ||
15845    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15846
15847   # We can hardcode non-existent directories.
15848   if test "$hardcode_direct_CXX" != no &&
15849      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15850      # have to relink, otherwise we might link with an installed library
15851      # when we should be linking with a yet-to-be-installed one
15852      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15853      test "$hardcode_minus_L_CXX" != no; then
15854     # Linking always hardcodes the temporary library directory.
15855     hardcode_action_CXX=relink
15856   else
15857     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15858     hardcode_action_CXX=immediate
15859   fi
15860 else
15861   # We cannot hardcode anything, or else we can only hardcode existing
15862   # directories.
15863   hardcode_action_CXX=unsupported
15864 fi
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15866 $as_echo "$hardcode_action_CXX" >&6; }
15867
15868 if test "$hardcode_action_CXX" = relink ||
15869    test "$inherit_rpath_CXX" = yes; then
15870   # Fast installation is not supported
15871   enable_fast_install=no
15872 elif test "$shlibpath_overrides_runpath" = yes ||
15873      test "$enable_shared" = no; then
15874   # Fast installation is not necessary
15875   enable_fast_install=needless
15876 fi
15877
15878
15879
15880
15881
15882
15883
15884   fi # test -n "$compiler"
15885
15886   CC=$lt_save_CC
15887   CFLAGS=$lt_save_CFLAGS
15888   LDCXX=$LD
15889   LD=$lt_save_LD
15890   GCC=$lt_save_GCC
15891   with_gnu_ld=$lt_save_with_gnu_ld
15892   lt_cv_path_LDCXX=$lt_cv_path_LD
15893   lt_cv_path_LD=$lt_save_path_LD
15894   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15895   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15896 fi # test "$_lt_caught_CXX_error" != yes
15897
15898 ac_ext=c
15899 ac_cpp='$CPP $CPPFLAGS'
15900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15903
15904
15905
15906
15907
15908
15909   CFLAG_VISIBILITY=
15910   HAVE_VISIBILITY=0
15911   if test -n "$GCC"; then
15912                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15913 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15914     if ${gl_cv_cc_vis_werror+:} false; then :
15915   $as_echo_n "(cached) " >&6
15916 else
15917
15918       gl_save_CFLAGS="$CFLAGS"
15919       CFLAGS="$CFLAGS -Werror"
15920       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921 /* end confdefs.h.  */
15922
15923 int
15924 main ()
15925 {
15926
15927   ;
15928   return 0;
15929 }
15930 _ACEOF
15931 if ac_fn_c_try_compile "$LINENO"; then :
15932   gl_cv_cc_vis_werror=yes
15933 else
15934   gl_cv_cc_vis_werror=no
15935 fi
15936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937       CFLAGS="$gl_save_CFLAGS"
15938 fi
15939
15940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
15941 $as_echo "$gl_cv_cc_vis_werror" >&6; }
15942         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15943 $as_echo_n "checking for simple visibility declarations... " >&6; }
15944     if ${gl_cv_cc_visibility+:} false; then :
15945   $as_echo_n "(cached) " >&6
15946 else
15947
15948       gl_save_CFLAGS="$CFLAGS"
15949       CFLAGS="$CFLAGS -fvisibility=hidden"
15950                                     if test $gl_cv_cc_vis_werror = yes; then
15951         CFLAGS="$CFLAGS -Werror"
15952       fi
15953       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h.  */
15955 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15956              extern __attribute__((__visibility__("default"))) int exportedvar;
15957              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15958              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15959              void dummyfunc (void) {}
15960
15961 int
15962 main ()
15963 {
15964
15965   ;
15966   return 0;
15967 }
15968 _ACEOF
15969 if ac_fn_c_try_compile "$LINENO"; then :
15970   gl_cv_cc_visibility=yes
15971 else
15972   gl_cv_cc_visibility=no
15973 fi
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975       CFLAGS="$gl_save_CFLAGS"
15976 fi
15977
15978     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15979 $as_echo "$gl_cv_cc_visibility" >&6; }
15980     if test $gl_cv_cc_visibility = yes; then
15981       CFLAG_VISIBILITY="-fvisibility=hidden"
15982       HAVE_VISIBILITY=1
15983     fi
15984   fi
15985
15986
15987
15988 cat >>confdefs.h <<_ACEOF
15989 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15990 _ACEOF
15991
15992
15993 if  test -n "$CFLAG_VISIBILITY" ; then :
15994
15995        AM_CPPFLAGS="$AM_CPPFLAGS $CFLAG_VISIBILITY"
15996        CPPFLAGS="$CPPFLAGS $CFLAG_VISIBILITY"
15997
15998 fi
15999
16000 # Check whether --enable-silent-rules was given.
16001 if test "${enable_silent_rules+set}" = set; then :
16002   enableval=$enable_silent_rules;
16003 fi
16004
16005 case $enable_silent_rules in # (((
16006   yes) AM_DEFAULT_VERBOSITY=0;;
16007    no) AM_DEFAULT_VERBOSITY=1;;
16008     *) AM_DEFAULT_VERBOSITY=0;;
16009 esac
16010 am_make=${MAKE-make}
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16012 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16013 if ${am_cv_make_support_nested_variables+:} false; then :
16014   $as_echo_n "(cached) " >&6
16015 else
16016   if $as_echo 'TRUE=$(BAR$(V))
16017 BAR0=false
16018 BAR1=true
16019 V=1
16020 am__doit:
16021         @$(TRUE)
16022 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16023   am_cv_make_support_nested_variables=yes
16024 else
16025   am_cv_make_support_nested_variables=no
16026 fi
16027 fi
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16029 $as_echo "$am_cv_make_support_nested_variables" >&6; }
16030 if test $am_cv_make_support_nested_variables = yes; then
16031     AM_V='$(V)'
16032   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16033 else
16034   AM_V=$AM_DEFAULT_VERBOSITY
16035   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16036 fi
16037 AM_BACKSLASH='\'
16038
16039
16040 for ac_func in gethostbyname
16041 do :
16042   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16043 if test "x$ac_cv_func_gethostbyname" = xyes; then :
16044   cat >>confdefs.h <<_ACEOF
16045 #define HAVE_GETHOSTBYNAME 1
16046 _ACEOF
16047
16048 fi
16049 done
16050
16051 for ac_func in getaddrinfo
16052 do :
16053   ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
16054 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
16055   cat >>confdefs.h <<_ACEOF
16056 #define HAVE_GETADDRINFO 1
16057 _ACEOF
16058
16059 fi
16060 done
16061
16062 for ac_func in gettimeofday
16063 do :
16064   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16065 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16066   cat >>confdefs.h <<_ACEOF
16067 #define HAVE_GETTIMEOFDAY 1
16068 _ACEOF
16069
16070 fi
16071 done
16072
16073 for ac_func in inet_ntoa
16074 do :
16075   ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
16076 if test "x$ac_cv_func_inet_ntoa" = xyes; then :
16077   cat >>confdefs.h <<_ACEOF
16078 #define HAVE_INET_NTOA 1
16079 _ACEOF
16080
16081 fi
16082 done
16083
16084 for ac_func in memset
16085 do :
16086   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
16087 if test "x$ac_cv_func_memset" = xyes; then :
16088   cat >>confdefs.h <<_ACEOF
16089 #define HAVE_MEMSET 1
16090 _ACEOF
16091
16092 fi
16093 done
16094
16095 for ac_func in socket
16096 do :
16097   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16098 if test "x$ac_cv_func_socket" = xyes; then :
16099   cat >>confdefs.h <<_ACEOF
16100 #define HAVE_SOCKET 1
16101 _ACEOF
16102
16103 fi
16104 done
16105
16106 for ac_header in arpa/inet.h
16107 do :
16108   ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16109 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
16110   cat >>confdefs.h <<_ACEOF
16111 #define HAVE_ARPA_INET_H 1
16112 _ACEOF
16113
16114 fi
16115
16116 done
16117
16118 for ac_header in fcntl.h
16119 do :
16120   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
16121 if test "x$ac_cv_header_fcntl_h" = xyes; then :
16122   cat >>confdefs.h <<_ACEOF
16123 #define HAVE_FCNTL_H 1
16124 _ACEOF
16125
16126 fi
16127
16128 done
16129
16130 for ac_header in limits.h
16131 do :
16132   ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
16133 if test "x$ac_cv_header_limits_h" = xyes; then :
16134   cat >>confdefs.h <<_ACEOF
16135 #define HAVE_LIMITS_H 1
16136 _ACEOF
16137
16138 fi
16139
16140 done
16141
16142 for ac_header in netdb.h
16143 do :
16144   ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
16145 if test "x$ac_cv_header_netdb_h" = xyes; then :
16146   cat >>confdefs.h <<_ACEOF
16147 #define HAVE_NETDB_H 1
16148 _ACEOF
16149
16150 fi
16151
16152 done
16153
16154 for ac_header in netinet/in.h
16155 do :
16156   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16157 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16158   cat >>confdefs.h <<_ACEOF
16159 #define HAVE_NETINET_IN_H 1
16160 _ACEOF
16161
16162 fi
16163
16164 done
16165
16166 for ac_header in stddef.h
16167 do :
16168   ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
16169 if test "x$ac_cv_header_stddef_h" = xyes; then :
16170   cat >>confdefs.h <<_ACEOF
16171 #define HAVE_STDDEF_H 1
16172 _ACEOF
16173
16174 fi
16175
16176 done
16177
16178 for ac_header in sys/ioctl.h
16179 do :
16180   ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
16181 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
16182   cat >>confdefs.h <<_ACEOF
16183 #define HAVE_SYS_IOCTL_H 1
16184 _ACEOF
16185
16186 fi
16187
16188 done
16189
16190 for ac_header in sys/socket.h
16191 do :
16192   ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
16193 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
16194   cat >>confdefs.h <<_ACEOF
16195 #define HAVE_SYS_SOCKET_H 1
16196 _ACEOF
16197
16198 fi
16199
16200 done
16201
16202 for ac_header in sys/time.h
16203 do :
16204   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16205 if test "x$ac_cv_header_sys_time_h" = xyes; then :
16206   cat >>confdefs.h <<_ACEOF
16207 #define HAVE_SYS_TIME_H 1
16208 _ACEOF
16209
16210 fi
16211
16212 done
16213
16214 for ac_header in errno.h
16215 do :
16216   ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
16217 if test "x$ac_cv_header_errno_h" = xyes; then :
16218   cat >>confdefs.h <<_ACEOF
16219 #define HAVE_ERRNO_H 1
16220 _ACEOF
16221
16222 fi
16223
16224 done
16225
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
16227 $as_echo_n "checking for socket in -lnetwork... " >&6; }
16228 if ${ac_cv_lib_network_socket+:} false; then :
16229   $as_echo_n "(cached) " >&6
16230 else
16231   ac_check_lib_save_LIBS=$LIBS
16232 LIBS="-lnetwork  $LIBS"
16233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16234 /* end confdefs.h.  */
16235
16236 /* Override any GCC internal prototype to avoid an error.
16237    Use char because int might match the return type of a GCC
16238    builtin and then its argument prototype would still apply.  */
16239 #ifdef __cplusplus
16240 extern "C"
16241 #endif
16242 char socket ();
16243 int
16244 main ()
16245 {
16246 return socket ();
16247   ;
16248   return 0;
16249 }
16250 _ACEOF
16251 if ac_fn_c_try_link "$LINENO"; then :
16252   ac_cv_lib_network_socket=yes
16253 else
16254   ac_cv_lib_network_socket=no
16255 fi
16256 rm -f core conftest.err conftest.$ac_objext \
16257     conftest$ac_exeext conftest.$ac_ext
16258 LIBS=$ac_check_lib_save_LIBS
16259 fi
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
16261 $as_echo "$ac_cv_lib_network_socket" >&6; }
16262 if test "x$ac_cv_lib_network_socket" = xyes; then :
16263   cat >>confdefs.h <<_ACEOF
16264 #define HAVE_LIBNETWORK 1
16265 _ACEOF
16266
16267   LIBS="-lnetwork $LIBS"
16268
16269 fi
16270
16271 # The cast to long int works around a bug in the HP C Compiler
16272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16274 # This bug is HP SR number 8606223364.
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16276 $as_echo_n "checking size of long long... " >&6; }
16277 if ${ac_cv_sizeof_long_long+:} false; then :
16278   $as_echo_n "(cached) " >&6
16279 else
16280   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
16281
16282 else
16283   if test "$ac_cv_type_long_long" = yes; then
16284      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16286 as_fn_error 77 "cannot compute sizeof (long long)
16287 See \`config.log' for more details" "$LINENO" 5; }
16288    else
16289      ac_cv_sizeof_long_long=0
16290    fi
16291 fi
16292
16293 fi
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16295 $as_echo "$ac_cv_sizeof_long_long" >&6; }
16296
16297
16298
16299 cat >>confdefs.h <<_ACEOF
16300 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16301 _ACEOF
16302
16303
16304 # The cast to long int works around a bug in the HP C Compiler
16305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16307 # This bug is HP SR number 8606223364.
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16309 $as_echo_n "checking size of long... " >&6; }
16310 if ${ac_cv_sizeof_long+:} false; then :
16311   $as_echo_n "(cached) " >&6
16312 else
16313   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16314
16315 else
16316   if test "$ac_cv_type_long" = yes; then
16317      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16319 as_fn_error 77 "cannot compute sizeof (long)
16320 See \`config.log' for more details" "$LINENO" 5; }
16321    else
16322      ac_cv_sizeof_long=0
16323    fi
16324 fi
16325
16326 fi
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16328 $as_echo "$ac_cv_sizeof_long" >&6; }
16329
16330
16331
16332 cat >>confdefs.h <<_ACEOF
16333 #define SIZEOF_LONG $ac_cv_sizeof_long
16334 _ACEOF
16335
16336
16337 ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
16338 if test "x$ac_cv_type___uint128_t" = xyes; then :
16339
16340 cat >>confdefs.h <<_ACEOF
16341 #define HAVE___UINT128_T 1
16342 _ACEOF
16343
16344
16345 fi
16346
16347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16348 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16349 if ${ac_cv_c_bigendian+:} false; then :
16350   $as_echo_n "(cached) " >&6
16351 else
16352   ac_cv_c_bigendian=unknown
16353     # See if we're dealing with a universal compiler.
16354     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h.  */
16356 #ifndef __APPLE_CC__
16357                not a universal capable compiler
16358              #endif
16359              typedef int dummy;
16360
16361 _ACEOF
16362 if ac_fn_c_try_compile "$LINENO"; then :
16363
16364         # Check for potential -arch flags.  It is not universal unless
16365         # there are at least two -arch flags with different values.
16366         ac_arch=
16367         ac_prev=
16368         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16369          if test -n "$ac_prev"; then
16370            case $ac_word in
16371              i?86 | x86_64 | ppc | ppc64)
16372                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16373                  ac_arch=$ac_word
16374                else
16375                  ac_cv_c_bigendian=universal
16376                  break
16377                fi
16378                ;;
16379            esac
16380            ac_prev=
16381          elif test "x$ac_word" = "x-arch"; then
16382            ac_prev=arch
16383          fi
16384        done
16385 fi
16386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387     if test $ac_cv_c_bigendian = unknown; then
16388       # See if sys/param.h defines the BYTE_ORDER macro.
16389       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h.  */
16391 #include <sys/types.h>
16392              #include <sys/param.h>
16393
16394 int
16395 main ()
16396 {
16397 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16398                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16399                      && LITTLE_ENDIAN)
16400               bogus endian macros
16401              #endif
16402
16403   ;
16404   return 0;
16405 }
16406 _ACEOF
16407 if ac_fn_c_try_compile "$LINENO"; then :
16408   # It does; now see whether it defined to BIG_ENDIAN or not.
16409          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h.  */
16411 #include <sys/types.h>
16412                 #include <sys/param.h>
16413
16414 int
16415 main ()
16416 {
16417 #if BYTE_ORDER != BIG_ENDIAN
16418                  not big endian
16419                 #endif
16420
16421   ;
16422   return 0;
16423 }
16424 _ACEOF
16425 if ac_fn_c_try_compile "$LINENO"; then :
16426   ac_cv_c_bigendian=yes
16427 else
16428   ac_cv_c_bigendian=no
16429 fi
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16431 fi
16432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16433     fi
16434     if test $ac_cv_c_bigendian = unknown; then
16435       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16436       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437 /* end confdefs.h.  */
16438 #include <limits.h>
16439
16440 int
16441 main ()
16442 {
16443 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16444               bogus endian macros
16445              #endif
16446
16447   ;
16448   return 0;
16449 }
16450 _ACEOF
16451 if ac_fn_c_try_compile "$LINENO"; then :
16452   # It does; now see whether it defined to _BIG_ENDIAN or not.
16453          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h.  */
16455 #include <limits.h>
16456
16457 int
16458 main ()
16459 {
16460 #ifndef _BIG_ENDIAN
16461                  not big endian
16462                 #endif
16463
16464   ;
16465   return 0;
16466 }
16467 _ACEOF
16468 if ac_fn_c_try_compile "$LINENO"; then :
16469   ac_cv_c_bigendian=yes
16470 else
16471   ac_cv_c_bigendian=no
16472 fi
16473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16474 fi
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476     fi
16477     if test $ac_cv_c_bigendian = unknown; then
16478       # Compile a test program.
16479       if test "$cross_compiling" = yes; then :
16480   # Try to guess by grepping values from an object file.
16481          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482 /* end confdefs.h.  */
16483 short int ascii_mm[] =
16484                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16485                 short int ascii_ii[] =
16486                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16487                 int use_ascii (int i) {
16488                   return ascii_mm[i] + ascii_ii[i];
16489                 }
16490                 short int ebcdic_ii[] =
16491                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16492                 short int ebcdic_mm[] =
16493                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16494                 int use_ebcdic (int i) {
16495                   return ebcdic_mm[i] + ebcdic_ii[i];
16496                 }
16497                 extern int foo;
16498
16499 int
16500 main ()
16501 {
16502 return use_ascii (foo) == use_ebcdic (foo);
16503   ;
16504   return 0;
16505 }
16506 _ACEOF
16507 if ac_fn_c_try_compile "$LINENO"; then :
16508   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16509               ac_cv_c_bigendian=yes
16510             fi
16511             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16512               if test "$ac_cv_c_bigendian" = unknown; then
16513                 ac_cv_c_bigendian=no
16514               else
16515                 # finding both strings is unlikely to happen, but who knows?
16516                 ac_cv_c_bigendian=unknown
16517               fi
16518             fi
16519 fi
16520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16521 else
16522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h.  */
16524 $ac_includes_default
16525 int
16526 main ()
16527 {
16528
16529              /* Are we little or big endian?  From Harbison&Steele.  */
16530              union
16531              {
16532                long int l;
16533                char c[sizeof (long int)];
16534              } u;
16535              u.l = 1;
16536              return u.c[sizeof (long int) - 1] == 1;
16537
16538   ;
16539   return 0;
16540 }
16541 _ACEOF
16542 if ac_fn_c_try_run "$LINENO"; then :
16543   ac_cv_c_bigendian=no
16544 else
16545   ac_cv_c_bigendian=yes
16546 fi
16547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16548   conftest.$ac_objext conftest.beam conftest.$ac_ext
16549 fi
16550
16551     fi
16552 fi
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16554 $as_echo "$ac_cv_c_bigendian" >&6; }
16555  case $ac_cv_c_bigendian in #(
16556    yes)
16557      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16558 ;; #(
16559    no)
16560       ;; #(
16561    universal)
16562
16563 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16564
16565      ;; #(
16566    *)
16567      as_fn_error $? "unknown endianness
16568  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16569  esac
16570
16571 # mktime check takes forever on some systems, if time supported it would be
16572 # highly unusual for mktime to be missing
16573 #AC_FUNC_MKTIME
16574
16575 ac_ext=c
16576 ac_cpp='$CPP $CPPFLAGS'
16577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16580 if test -n "$ac_tool_prefix"; then
16581   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16582 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16584 $as_echo_n "checking for $ac_word... " >&6; }
16585 if ${ac_cv_prog_CC+:} false; then :
16586   $as_echo_n "(cached) " >&6
16587 else
16588   if test -n "$CC"; then
16589   ac_cv_prog_CC="$CC" # Let the user override the test.
16590 else
16591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16593 do
16594   IFS=$as_save_IFS
16595   test -z "$as_dir" && as_dir=.
16596     for ac_exec_ext in '' $ac_executable_extensions; do
16597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598     ac_cv_prog_CC="${ac_tool_prefix}gcc"
16599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16600     break 2
16601   fi
16602 done
16603   done
16604 IFS=$as_save_IFS
16605
16606 fi
16607 fi
16608 CC=$ac_cv_prog_CC
16609 if test -n "$CC"; then
16610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16611 $as_echo "$CC" >&6; }
16612 else
16613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16615 fi
16616
16617
16618 fi
16619 if test -z "$ac_cv_prog_CC"; then
16620   ac_ct_CC=$CC
16621   # Extract the first word of "gcc", so it can be a program name with args.
16622 set dummy gcc; ac_word=$2
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16624 $as_echo_n "checking for $ac_word... " >&6; }
16625 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16626   $as_echo_n "(cached) " >&6
16627 else
16628   if test -n "$ac_ct_CC"; then
16629   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16630 else
16631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16632 for as_dir in $PATH
16633 do
16634   IFS=$as_save_IFS
16635   test -z "$as_dir" && as_dir=.
16636     for ac_exec_ext in '' $ac_executable_extensions; do
16637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16638     ac_cv_prog_ac_ct_CC="gcc"
16639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16640     break 2
16641   fi
16642 done
16643   done
16644 IFS=$as_save_IFS
16645
16646 fi
16647 fi
16648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16649 if test -n "$ac_ct_CC"; then
16650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16651 $as_echo "$ac_ct_CC" >&6; }
16652 else
16653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654 $as_echo "no" >&6; }
16655 fi
16656
16657   if test "x$ac_ct_CC" = x; then
16658     CC=""
16659   else
16660     case $cross_compiling:$ac_tool_warned in
16661 yes:)
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16664 ac_tool_warned=yes ;;
16665 esac
16666     CC=$ac_ct_CC
16667   fi
16668 else
16669   CC="$ac_cv_prog_CC"
16670 fi
16671
16672 if test -z "$CC"; then
16673           if test -n "$ac_tool_prefix"; then
16674     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16675 set dummy ${ac_tool_prefix}cc; ac_word=$2
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16677 $as_echo_n "checking for $ac_word... " >&6; }
16678 if ${ac_cv_prog_CC+:} false; then :
16679   $as_echo_n "(cached) " >&6
16680 else
16681   if test -n "$CC"; then
16682   ac_cv_prog_CC="$CC" # Let the user override the test.
16683 else
16684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16685 for as_dir in $PATH
16686 do
16687   IFS=$as_save_IFS
16688   test -z "$as_dir" && as_dir=.
16689     for ac_exec_ext in '' $ac_executable_extensions; do
16690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16691     ac_cv_prog_CC="${ac_tool_prefix}cc"
16692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16693     break 2
16694   fi
16695 done
16696   done
16697 IFS=$as_save_IFS
16698
16699 fi
16700 fi
16701 CC=$ac_cv_prog_CC
16702 if test -n "$CC"; then
16703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16704 $as_echo "$CC" >&6; }
16705 else
16706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16707 $as_echo "no" >&6; }
16708 fi
16709
16710
16711   fi
16712 fi
16713 if test -z "$CC"; then
16714   # Extract the first word of "cc", so it can be a program name with args.
16715 set dummy cc; ac_word=$2
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16717 $as_echo_n "checking for $ac_word... " >&6; }
16718 if ${ac_cv_prog_CC+:} false; then :
16719   $as_echo_n "(cached) " >&6
16720 else
16721   if test -n "$CC"; then
16722   ac_cv_prog_CC="$CC" # Let the user override the test.
16723 else
16724   ac_prog_rejected=no
16725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16726 for as_dir in $PATH
16727 do
16728   IFS=$as_save_IFS
16729   test -z "$as_dir" && as_dir=.
16730     for ac_exec_ext in '' $ac_executable_extensions; do
16731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16732     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16733        ac_prog_rejected=yes
16734        continue
16735      fi
16736     ac_cv_prog_CC="cc"
16737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16738     break 2
16739   fi
16740 done
16741   done
16742 IFS=$as_save_IFS
16743
16744 if test $ac_prog_rejected = yes; then
16745   # We found a bogon in the path, so make sure we never use it.
16746   set dummy $ac_cv_prog_CC
16747   shift
16748   if test $# != 0; then
16749     # We chose a different compiler from the bogus one.
16750     # However, it has the same basename, so the bogon will be chosen
16751     # first if we set CC to just the basename; use the full file name.
16752     shift
16753     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16754   fi
16755 fi
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 fi
16769 if test -z "$CC"; then
16770   if test -n "$ac_tool_prefix"; then
16771   for ac_prog in cl.exe
16772   do
16773     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16776 $as_echo_n "checking for $ac_word... " >&6; }
16777 if ${ac_cv_prog_CC+:} false; then :
16778   $as_echo_n "(cached) " >&6
16779 else
16780   if test -n "$CC"; then
16781   ac_cv_prog_CC="$CC" # Let the user override the test.
16782 else
16783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16784 for as_dir in $PATH
16785 do
16786   IFS=$as_save_IFS
16787   test -z "$as_dir" && as_dir=.
16788     for ac_exec_ext in '' $ac_executable_extensions; do
16789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16790     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16792     break 2
16793   fi
16794 done
16795   done
16796 IFS=$as_save_IFS
16797
16798 fi
16799 fi
16800 CC=$ac_cv_prog_CC
16801 if test -n "$CC"; then
16802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16803 $as_echo "$CC" >&6; }
16804 else
16805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806 $as_echo "no" >&6; }
16807 fi
16808
16809
16810     test -n "$CC" && break
16811   done
16812 fi
16813 if test -z "$CC"; then
16814   ac_ct_CC=$CC
16815   for ac_prog in cl.exe
16816 do
16817   # Extract the first word of "$ac_prog", so it can be a program name with args.
16818 set dummy $ac_prog; ac_word=$2
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16820 $as_echo_n "checking for $ac_word... " >&6; }
16821 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16822   $as_echo_n "(cached) " >&6
16823 else
16824   if test -n "$ac_ct_CC"; then
16825   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16826 else
16827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16828 for as_dir in $PATH
16829 do
16830   IFS=$as_save_IFS
16831   test -z "$as_dir" && as_dir=.
16832     for ac_exec_ext in '' $ac_executable_extensions; do
16833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16834     ac_cv_prog_ac_ct_CC="$ac_prog"
16835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16836     break 2
16837   fi
16838 done
16839   done
16840 IFS=$as_save_IFS
16841
16842 fi
16843 fi
16844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16845 if test -n "$ac_ct_CC"; then
16846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16847 $as_echo "$ac_ct_CC" >&6; }
16848 else
16849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16850 $as_echo "no" >&6; }
16851 fi
16852
16853
16854   test -n "$ac_ct_CC" && break
16855 done
16856
16857   if test "x$ac_ct_CC" = x; then
16858     CC=""
16859   else
16860     case $cross_compiling:$ac_tool_warned in
16861 yes:)
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16864 ac_tool_warned=yes ;;
16865 esac
16866     CC=$ac_ct_CC
16867   fi
16868 fi
16869
16870 fi
16871
16872
16873 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16875 as_fn_error $? "no acceptable C compiler found in \$PATH
16876 See \`config.log' for more details" "$LINENO" 5; }
16877
16878 # Provide some information about the compiler.
16879 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16880 set X $ac_compile
16881 ac_compiler=$2
16882 for ac_option in --version -v -V -qversion; do
16883   { { ac_try="$ac_compiler $ac_option >&5"
16884 case "(($ac_try" in
16885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886   *) ac_try_echo=$ac_try;;
16887 esac
16888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16889 $as_echo "$ac_try_echo"; } >&5
16890   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16891   ac_status=$?
16892   if test -s conftest.err; then
16893     sed '10a\
16894 ... rest of stderr output deleted ...
16895          10q' conftest.err >conftest.er1
16896     cat conftest.er1 >&5
16897   fi
16898   rm -f conftest.er1 conftest.err
16899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16900   test $ac_status = 0; }
16901 done
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16904 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16905 if ${ac_cv_c_compiler_gnu+:} false; then :
16906   $as_echo_n "(cached) " >&6
16907 else
16908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h.  */
16910
16911 int
16912 main ()
16913 {
16914 #ifndef __GNUC__
16915        choke me
16916 #endif
16917
16918   ;
16919   return 0;
16920 }
16921 _ACEOF
16922 if ac_fn_c_try_compile "$LINENO"; then :
16923   ac_compiler_gnu=yes
16924 else
16925   ac_compiler_gnu=no
16926 fi
16927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16929
16930 fi
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16932 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16933 if test $ac_compiler_gnu = yes; then
16934   GCC=yes
16935 else
16936   GCC=
16937 fi
16938 ac_test_CFLAGS=${CFLAGS+set}
16939 ac_save_CFLAGS=$CFLAGS
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16942 if ${ac_cv_prog_cc_g+:} false; then :
16943   $as_echo_n "(cached) " >&6
16944 else
16945   ac_save_c_werror_flag=$ac_c_werror_flag
16946    ac_c_werror_flag=yes
16947    ac_cv_prog_cc_g=no
16948    CFLAGS="-g"
16949    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h.  */
16951
16952 int
16953 main ()
16954 {
16955
16956   ;
16957   return 0;
16958 }
16959 _ACEOF
16960 if ac_fn_c_try_compile "$LINENO"; then :
16961   ac_cv_prog_cc_g=yes
16962 else
16963   CFLAGS=""
16964       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h.  */
16966
16967 int
16968 main ()
16969 {
16970
16971   ;
16972   return 0;
16973 }
16974 _ACEOF
16975 if ac_fn_c_try_compile "$LINENO"; then :
16976
16977 else
16978   ac_c_werror_flag=$ac_save_c_werror_flag
16979          CFLAGS="-g"
16980          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h.  */
16982
16983 int
16984 main ()
16985 {
16986
16987   ;
16988   return 0;
16989 }
16990 _ACEOF
16991 if ac_fn_c_try_compile "$LINENO"; then :
16992   ac_cv_prog_cc_g=yes
16993 fi
16994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995 fi
16996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16997 fi
16998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16999    ac_c_werror_flag=$ac_save_c_werror_flag
17000 fi
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
17002 $as_echo "$ac_cv_prog_cc_g" >&6; }
17003 if test "$ac_test_CFLAGS" = set; then
17004   CFLAGS=$ac_save_CFLAGS
17005 elif test $ac_cv_prog_cc_g = yes; then
17006   if test "$GCC" = yes; then
17007     CFLAGS="-g -O2"
17008   else
17009     CFLAGS="-g"
17010   fi
17011 else
17012   if test "$GCC" = yes; then
17013     CFLAGS="-O2"
17014   else
17015     CFLAGS=
17016   fi
17017 fi
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
17019 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
17020 if ${ac_cv_prog_cc_c89+:} false; then :
17021   $as_echo_n "(cached) " >&6
17022 else
17023   ac_cv_prog_cc_c89=no
17024 ac_save_CC=$CC
17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h.  */
17027 #include <stdarg.h>
17028 #include <stdio.h>
17029 struct stat;
17030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
17031 struct buf { int x; };
17032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
17033 static char *e (p, i)
17034      char **p;
17035      int i;
17036 {
17037   return p[i];
17038 }
17039 static char *f (char * (*g) (char **, int), char **p, ...)
17040 {
17041   char *s;
17042   va_list v;
17043   va_start (v,p);
17044   s = g (p, va_arg (v,int));
17045   va_end (v);
17046   return s;
17047 }
17048
17049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
17050    function prototypes and stuff, but not '\xHH' hex character constants.
17051    These don't provoke an error unfortunately, instead are silently treated
17052    as 'x'.  The following induces an error, until -std is added to get
17053    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
17054    array size at least.  It's necessary to write '\x00'==0 to get something
17055    that's true only with -std.  */
17056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17057
17058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17059    inside strings and character constants.  */
17060 #define FOO(x) 'x'
17061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17062
17063 int test (int i, double x);
17064 struct s1 {int (*f) (int a);};
17065 struct s2 {int (*f) (double a);};
17066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17067 int argc;
17068 char **argv;
17069 int
17070 main ()
17071 {
17072 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
17073   ;
17074   return 0;
17075 }
17076 _ACEOF
17077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17078         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17079 do
17080   CC="$ac_save_CC $ac_arg"
17081   if ac_fn_c_try_compile "$LINENO"; then :
17082   ac_cv_prog_cc_c89=$ac_arg
17083 fi
17084 rm -f core conftest.err conftest.$ac_objext
17085   test "x$ac_cv_prog_cc_c89" != "xno" && break
17086 done
17087 rm -f conftest.$ac_ext
17088 CC=$ac_save_CC
17089
17090 fi
17091 # AC_CACHE_VAL
17092 case "x$ac_cv_prog_cc_c89" in
17093   x)
17094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17095 $as_echo "none needed" >&6; } ;;
17096   xno)
17097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17098 $as_echo "unsupported" >&6; } ;;
17099   *)
17100     CC="$CC $ac_cv_prog_cc_c89"
17101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
17102 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
17103 esac
17104 if test "x$ac_cv_prog_cc_c89" != xno; then :
17105
17106 fi
17107
17108 ac_ext=c
17109 ac_cpp='$CPP $CPPFLAGS'
17110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17113
17114 ac_ext=c
17115 ac_cpp='$CPP $CPPFLAGS'
17116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
17120 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
17121 if ${am_cv_prog_cc_c_o+:} false; then :
17122   $as_echo_n "(cached) " >&6
17123 else
17124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h.  */
17126
17127 int
17128 main ()
17129 {
17130
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135   # Make sure it works both with $CC and with simple cc.
17136   # Following AC_PROG_CC_C_O, we do the test twice because some
17137   # compilers refuse to overwrite an existing .o file with -o,
17138   # though they will create one.
17139   am_cv_prog_cc_c_o=yes
17140   for am_i in 1 2; do
17141     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
17142    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
17143    ac_status=$?
17144    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145    (exit $ac_status); } \
17146          && test -f conftest2.$ac_objext; then
17147       : OK
17148     else
17149       am_cv_prog_cc_c_o=no
17150       break
17151     fi
17152   done
17153   rm -f core conftest*
17154   unset am_i
17155 fi
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
17157 $as_echo "$am_cv_prog_cc_c_o" >&6; }
17158 if test "$am_cv_prog_cc_c_o" != yes; then
17159    # Losing compiler, so override with the script.
17160    # FIXME: It is wrong to rewrite CC.
17161    # But if we don't then we get into trouble of one sort or another.
17162    # A longer-term fix would be to have automake use am__CC in this case,
17163    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17164    CC="$am_aux_dir/compile $CC"
17165 fi
17166 ac_ext=c
17167 ac_cpp='$CPP $CPPFLAGS'
17168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17171
17172
17173 depcc="$CC"   am_compiler_list=
17174
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17176 $as_echo_n "checking dependency style of $depcc... " >&6; }
17177 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
17178   $as_echo_n "(cached) " >&6
17179 else
17180   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17181   # We make a subdir and do the tests there.  Otherwise we can end up
17182   # making bogus files that we don't know about and never remove.  For
17183   # instance it was reported that on HP-UX the gcc test will end up
17184   # making a dummy file named 'D' -- because '-MD' means "put the output
17185   # in D".
17186   rm -rf conftest.dir
17187   mkdir conftest.dir
17188   # Copy depcomp to subdir because otherwise we won't find it if we're
17189   # using a relative directory.
17190   cp "$am_depcomp" conftest.dir
17191   cd conftest.dir
17192   # We will build objects and dependencies in a subdirectory because
17193   # it helps to detect inapplicable dependency modes.  For instance
17194   # both Tru64's cc and ICC support -MD to output dependencies as a
17195   # side effect of compilation, but ICC will put the dependencies in
17196   # the current directory while Tru64 will put them in the object
17197   # directory.
17198   mkdir sub
17199
17200   am_cv_CC_dependencies_compiler_type=none
17201   if test "$am_compiler_list" = ""; then
17202      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17203   fi
17204   am__universal=false
17205   case " $depcc " in #(
17206      *\ -arch\ *\ -arch\ *) am__universal=true ;;
17207      esac
17208
17209   for depmode in $am_compiler_list; do
17210     # Setup a source with many dependencies, because some compilers
17211     # like to wrap large dependency lists on column 80 (with \), and
17212     # we should not choose a depcomp mode which is confused by this.
17213     #
17214     # We need to recreate these files for each test, as the compiler may
17215     # overwrite some of them when testing with obscure command lines.
17216     # This happens at least with the AIX C compiler.
17217     : > sub/conftest.c
17218     for i in 1 2 3 4 5 6; do
17219       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17220       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17221       # Solaris 10 /bin/sh.
17222       echo '/* dummy */' > sub/conftst$i.h
17223     done
17224     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17225
17226     # We check with '-c' and '-o' for the sake of the "dashmstdout"
17227     # mode.  It turns out that the SunPro C++ compiler does not properly
17228     # handle '-M -o', and we need to detect this.  Also, some Intel
17229     # versions had trouble with output in subdirs.
17230     am__obj=sub/conftest.${OBJEXT-o}
17231     am__minus_obj="-o $am__obj"
17232     case $depmode in
17233     gcc)
17234       # This depmode causes a compiler race in universal mode.
17235       test "$am__universal" = false || continue
17236       ;;
17237     nosideeffect)
17238       # After this tag, mechanisms are not by side-effect, so they'll
17239       # only be used when explicitly requested.
17240       if test "x$enable_dependency_tracking" = xyes; then
17241         continue
17242       else
17243         break
17244       fi
17245       ;;
17246     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17247       # This compiler won't grok '-c -o', but also, the minuso test has
17248       # not run yet.  These depmodes are late enough in the game, and
17249       # so weak that their functioning should not be impacted.
17250       am__obj=conftest.${OBJEXT-o}
17251       am__minus_obj=
17252       ;;
17253     none) break ;;
17254     esac
17255     if depmode=$depmode \
17256        source=sub/conftest.c object=$am__obj \
17257        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17258        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17259          >/dev/null 2>conftest.err &&
17260        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17261        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17262        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17263        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17264       # icc doesn't choke on unknown options, it will just issue warnings
17265       # or remarks (even with -Werror).  So we grep stderr for any message
17266       # that says an option was ignored or not supported.
17267       # When given -MP, icc 7.0 and 7.1 complain thusly:
17268       #   icc: Command line warning: ignoring option '-M'; no argument required
17269       # The diagnosis changed in icc 8.0:
17270       #   icc: Command line remark: option '-MP' not supported
17271       if (grep 'ignoring option' conftest.err ||
17272           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17273         am_cv_CC_dependencies_compiler_type=$depmode
17274         break
17275       fi
17276     fi
17277   done
17278
17279   cd ..
17280   rm -rf conftest.dir
17281 else
17282   am_cv_CC_dependencies_compiler_type=none
17283 fi
17284
17285 fi
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17287 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17288 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17289
17290  if
17291   test "x$enable_dependency_tracking" != xno \
17292   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17293   am__fastdepCC_TRUE=
17294   am__fastdepCC_FALSE='#'
17295 else
17296   am__fastdepCC_TRUE='#'
17297   am__fastdepCC_FALSE=
17298 fi
17299
17300
17301 if test "x$CC" != xcc; then
17302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
17303 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17304 else
17305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
17306 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17307 fi
17308 set dummy $CC; ac_cc=`$as_echo "$2" |
17309                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17310 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
17311   $as_echo_n "(cached) " >&6
17312 else
17313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314 /* end confdefs.h.  */
17315
17316 int
17317 main ()
17318 {
17319
17320   ;
17321   return 0;
17322 }
17323 _ACEOF
17324 # Make sure it works both with $CC and with simple cc.
17325 # We do the test twice because some compilers refuse to overwrite an
17326 # existing .o file with -o, though they will create one.
17327 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17328 rm -f conftest2.*
17329 if { { case "(($ac_try" in
17330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331   *) ac_try_echo=$ac_try;;
17332 esac
17333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17334 $as_echo "$ac_try_echo"; } >&5
17335   (eval "$ac_try") 2>&5
17336   ac_status=$?
17337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17338   test $ac_status = 0; } &&
17339    test -f conftest2.$ac_objext && { { case "(($ac_try" in
17340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341   *) ac_try_echo=$ac_try;;
17342 esac
17343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17344 $as_echo "$ac_try_echo"; } >&5
17345   (eval "$ac_try") 2>&5
17346   ac_status=$?
17347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17348   test $ac_status = 0; };
17349 then
17350   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17351   if test "x$CC" != xcc; then
17352     # Test first that cc exists at all.
17353     if { ac_try='cc -c conftest.$ac_ext >&5'
17354   { { case "(($ac_try" in
17355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356   *) ac_try_echo=$ac_try;;
17357 esac
17358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17359 $as_echo "$ac_try_echo"; } >&5
17360   (eval "$ac_try") 2>&5
17361   ac_status=$?
17362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363   test $ac_status = 0; }; }; then
17364       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17365       rm -f conftest2.*
17366       if { { case "(($ac_try" in
17367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368   *) ac_try_echo=$ac_try;;
17369 esac
17370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17371 $as_echo "$ac_try_echo"; } >&5
17372   (eval "$ac_try") 2>&5
17373   ac_status=$?
17374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17375   test $ac_status = 0; } &&
17376          test -f conftest2.$ac_objext && { { case "(($ac_try" in
17377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378   *) ac_try_echo=$ac_try;;
17379 esac
17380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17381 $as_echo "$ac_try_echo"; } >&5
17382   (eval "$ac_try") 2>&5
17383   ac_status=$?
17384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17385   test $ac_status = 0; };
17386       then
17387         # cc works too.
17388         :
17389       else
17390         # cc exists but doesn't like -o.
17391         eval ac_cv_prog_cc_${ac_cc}_c_o=no
17392       fi
17393     fi
17394   fi
17395 else
17396   eval ac_cv_prog_cc_${ac_cc}_c_o=no
17397 fi
17398 rm -f core conftest*
17399
17400 fi
17401 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17403 $as_echo "yes" >&6; }
17404 else
17405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17406 $as_echo "no" >&6; }
17407
17408 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17409
17410 fi
17411
17412 ac_ext=cpp
17413 ac_cpp='$CXXCPP $CPPFLAGS'
17414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17417 if test -z "$CXX"; then
17418   if test -n "$CCC"; then
17419     CXX=$CCC
17420   else
17421     if test -n "$ac_tool_prefix"; then
17422   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17423   do
17424     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17427 $as_echo_n "checking for $ac_word... " >&6; }
17428 if ${ac_cv_prog_CXX+:} false; then :
17429   $as_echo_n "(cached) " >&6
17430 else
17431   if test -n "$CXX"; then
17432   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17433 else
17434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17435 for as_dir in $PATH
17436 do
17437   IFS=$as_save_IFS
17438   test -z "$as_dir" && as_dir=.
17439     for ac_exec_ext in '' $ac_executable_extensions; do
17440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17441     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17443     break 2
17444   fi
17445 done
17446   done
17447 IFS=$as_save_IFS
17448
17449 fi
17450 fi
17451 CXX=$ac_cv_prog_CXX
17452 if test -n "$CXX"; then
17453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
17454 $as_echo "$CXX" >&6; }
17455 else
17456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17457 $as_echo "no" >&6; }
17458 fi
17459
17460
17461     test -n "$CXX" && break
17462   done
17463 fi
17464 if test -z "$CXX"; then
17465   ac_ct_CXX=$CXX
17466   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17467 do
17468   # Extract the first word of "$ac_prog", so it can be a program name with args.
17469 set dummy $ac_prog; ac_word=$2
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17471 $as_echo_n "checking for $ac_word... " >&6; }
17472 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
17473   $as_echo_n "(cached) " >&6
17474 else
17475   if test -n "$ac_ct_CXX"; then
17476   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17477 else
17478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17479 for as_dir in $PATH
17480 do
17481   IFS=$as_save_IFS
17482   test -z "$as_dir" && as_dir=.
17483     for ac_exec_ext in '' $ac_executable_extensions; do
17484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17485     ac_cv_prog_ac_ct_CXX="$ac_prog"
17486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17487     break 2
17488   fi
17489 done
17490   done
17491 IFS=$as_save_IFS
17492
17493 fi
17494 fi
17495 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17496 if test -n "$ac_ct_CXX"; then
17497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
17498 $as_echo "$ac_ct_CXX" >&6; }
17499 else
17500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17501 $as_echo "no" >&6; }
17502 fi
17503
17504
17505   test -n "$ac_ct_CXX" && break
17506 done
17507
17508   if test "x$ac_ct_CXX" = x; then
17509     CXX="g++"
17510   else
17511     case $cross_compiling:$ac_tool_warned in
17512 yes:)
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17515 ac_tool_warned=yes ;;
17516 esac
17517     CXX=$ac_ct_CXX
17518   fi
17519 fi
17520
17521   fi
17522 fi
17523 # Provide some information about the compiler.
17524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
17525 set X $ac_compile
17526 ac_compiler=$2
17527 for ac_option in --version -v -V -qversion; do
17528   { { ac_try="$ac_compiler $ac_option >&5"
17529 case "(($ac_try" in
17530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531   *) ac_try_echo=$ac_try;;
17532 esac
17533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17534 $as_echo "$ac_try_echo"; } >&5
17535   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17536   ac_status=$?
17537   if test -s conftest.err; then
17538     sed '10a\
17539 ... rest of stderr output deleted ...
17540          10q' conftest.err >conftest.er1
17541     cat conftest.er1 >&5
17542   fi
17543   rm -f conftest.er1 conftest.err
17544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17545   test $ac_status = 0; }
17546 done
17547
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
17549 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
17550 if ${ac_cv_cxx_compiler_gnu+:} false; then :
17551   $as_echo_n "(cached) " >&6
17552 else
17553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554 /* end confdefs.h.  */
17555
17556 int
17557 main ()
17558 {
17559 #ifndef __GNUC__
17560        choke me
17561 #endif
17562
17563   ;
17564   return 0;
17565 }
17566 _ACEOF
17567 if ac_fn_cxx_try_compile "$LINENO"; then :
17568   ac_compiler_gnu=yes
17569 else
17570   ac_compiler_gnu=no
17571 fi
17572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17573 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17574
17575 fi
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
17577 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
17578 if test $ac_compiler_gnu = yes; then
17579   GXX=yes
17580 else
17581   GXX=
17582 fi
17583 ac_test_CXXFLAGS=${CXXFLAGS+set}
17584 ac_save_CXXFLAGS=$CXXFLAGS
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
17586 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
17587 if ${ac_cv_prog_cxx_g+:} false; then :
17588   $as_echo_n "(cached) " >&6
17589 else
17590   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17591    ac_cxx_werror_flag=yes
17592    ac_cv_prog_cxx_g=no
17593    CXXFLAGS="-g"
17594    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h.  */
17596
17597 int
17598 main ()
17599 {
17600
17601   ;
17602   return 0;
17603 }
17604 _ACEOF
17605 if ac_fn_cxx_try_compile "$LINENO"; then :
17606   ac_cv_prog_cxx_g=yes
17607 else
17608   CXXFLAGS=""
17609       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610 /* end confdefs.h.  */
17611
17612 int
17613 main ()
17614 {
17615
17616   ;
17617   return 0;
17618 }
17619 _ACEOF
17620 if ac_fn_cxx_try_compile "$LINENO"; then :
17621
17622 else
17623   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17624          CXXFLAGS="-g"
17625          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h.  */
17627
17628 int
17629 main ()
17630 {
17631
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 if ac_fn_cxx_try_compile "$LINENO"; then :
17637   ac_cv_prog_cxx_g=yes
17638 fi
17639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17642 fi
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17645 fi
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
17647 $as_echo "$ac_cv_prog_cxx_g" >&6; }
17648 if test "$ac_test_CXXFLAGS" = set; then
17649   CXXFLAGS=$ac_save_CXXFLAGS
17650 elif test $ac_cv_prog_cxx_g = yes; then
17651   if test "$GXX" = yes; then
17652     CXXFLAGS="-g -O2"
17653   else
17654     CXXFLAGS="-g"
17655   fi
17656 else
17657   if test "$GXX" = yes; then
17658     CXXFLAGS="-O2"
17659   else
17660     CXXFLAGS=
17661   fi
17662 fi
17663 ac_ext=c
17664 ac_cpp='$CPP $CPPFLAGS'
17665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17668
17669 depcc="$CXX"  am_compiler_list=
17670
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17672 $as_echo_n "checking dependency style of $depcc... " >&6; }
17673 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
17674   $as_echo_n "(cached) " >&6
17675 else
17676   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17677   # We make a subdir and do the tests there.  Otherwise we can end up
17678   # making bogus files that we don't know about and never remove.  For
17679   # instance it was reported that on HP-UX the gcc test will end up
17680   # making a dummy file named 'D' -- because '-MD' means "put the output
17681   # in D".
17682   rm -rf conftest.dir
17683   mkdir conftest.dir
17684   # Copy depcomp to subdir because otherwise we won't find it if we're
17685   # using a relative directory.
17686   cp "$am_depcomp" conftest.dir
17687   cd conftest.dir
17688   # We will build objects and dependencies in a subdirectory because
17689   # it helps to detect inapplicable dependency modes.  For instance
17690   # both Tru64's cc and ICC support -MD to output dependencies as a
17691   # side effect of compilation, but ICC will put the dependencies in
17692   # the current directory while Tru64 will put them in the object
17693   # directory.
17694   mkdir sub
17695
17696   am_cv_CXX_dependencies_compiler_type=none
17697   if test "$am_compiler_list" = ""; then
17698      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17699   fi
17700   am__universal=false
17701   case " $depcc " in #(
17702      *\ -arch\ *\ -arch\ *) am__universal=true ;;
17703      esac
17704
17705   for depmode in $am_compiler_list; do
17706     # Setup a source with many dependencies, because some compilers
17707     # like to wrap large dependency lists on column 80 (with \), and
17708     # we should not choose a depcomp mode which is confused by this.
17709     #
17710     # We need to recreate these files for each test, as the compiler may
17711     # overwrite some of them when testing with obscure command lines.
17712     # This happens at least with the AIX C compiler.
17713     : > sub/conftest.c
17714     for i in 1 2 3 4 5 6; do
17715       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17716       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17717       # Solaris 10 /bin/sh.
17718       echo '/* dummy */' > sub/conftst$i.h
17719     done
17720     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17721
17722     # We check with '-c' and '-o' for the sake of the "dashmstdout"
17723     # mode.  It turns out that the SunPro C++ compiler does not properly
17724     # handle '-M -o', and we need to detect this.  Also, some Intel
17725     # versions had trouble with output in subdirs.
17726     am__obj=sub/conftest.${OBJEXT-o}
17727     am__minus_obj="-o $am__obj"
17728     case $depmode in
17729     gcc)
17730       # This depmode causes a compiler race in universal mode.
17731       test "$am__universal" = false || continue
17732       ;;
17733     nosideeffect)
17734       # After this tag, mechanisms are not by side-effect, so they'll
17735       # only be used when explicitly requested.
17736       if test "x$enable_dependency_tracking" = xyes; then
17737         continue
17738       else
17739         break
17740       fi
17741       ;;
17742     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17743       # This compiler won't grok '-c -o', but also, the minuso test has
17744       # not run yet.  These depmodes are late enough in the game, and
17745       # so weak that their functioning should not be impacted.
17746       am__obj=conftest.${OBJEXT-o}
17747       am__minus_obj=
17748       ;;
17749     none) break ;;
17750     esac
17751     if depmode=$depmode \
17752        source=sub/conftest.c object=$am__obj \
17753        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17754        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17755          >/dev/null 2>conftest.err &&
17756        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17757        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17758        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17759        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17760       # icc doesn't choke on unknown options, it will just issue warnings
17761       # or remarks (even with -Werror).  So we grep stderr for any message
17762       # that says an option was ignored or not supported.
17763       # When given -MP, icc 7.0 and 7.1 complain thusly:
17764       #   icc: Command line warning: ignoring option '-M'; no argument required
17765       # The diagnosis changed in icc 8.0:
17766       #   icc: Command line remark: option '-MP' not supported
17767       if (grep 'ignoring option' conftest.err ||
17768           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17769         am_cv_CXX_dependencies_compiler_type=$depmode
17770         break
17771       fi
17772     fi
17773   done
17774
17775   cd ..
17776   rm -rf conftest.dir
17777 else
17778   am_cv_CXX_dependencies_compiler_type=none
17779 fi
17780
17781 fi
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17783 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17784 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17785
17786  if
17787   test "x$enable_dependency_tracking" != xno \
17788   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17789   am__fastdepCXX_TRUE=
17790   am__fastdepCXX_FALSE='#'
17791 else
17792   am__fastdepCXX_TRUE='#'
17793   am__fastdepCXX_FALSE=
17794 fi
17795
17796
17797
17798 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17799 if test "x$ac_cv_type_size_t" = xyes; then :
17800
17801 else
17802
17803 cat >>confdefs.h <<_ACEOF
17804 #define size_t unsigned int
17805 _ACEOF
17806
17807 fi
17808
17809 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17810 case $ac_cv_c_uint8_t in #(
17811   no|yes) ;; #(
17812   *)
17813
17814 $as_echo "#define _UINT8_T 1" >>confdefs.h
17815
17816
17817 cat >>confdefs.h <<_ACEOF
17818 #define uint8_t $ac_cv_c_uint8_t
17819 _ACEOF
17820 ;;
17821   esac
17822
17823 # By default we simply use the C compiler to build assembly code.
17824
17825 test "${CCAS+set}" = set || CCAS=$CC
17826 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
17827
17828
17829
17830 depcc="$CCAS"   am_compiler_list=
17831
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17833 $as_echo_n "checking dependency style of $depcc... " >&6; }
17834 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
17835   $as_echo_n "(cached) " >&6
17836 else
17837   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17838   # We make a subdir and do the tests there.  Otherwise we can end up
17839   # making bogus files that we don't know about and never remove.  For
17840   # instance it was reported that on HP-UX the gcc test will end up
17841   # making a dummy file named 'D' -- because '-MD' means "put the output
17842   # in D".
17843   rm -rf conftest.dir
17844   mkdir conftest.dir
17845   # Copy depcomp to subdir because otherwise we won't find it if we're
17846   # using a relative directory.
17847   cp "$am_depcomp" conftest.dir
17848   cd conftest.dir
17849   # We will build objects and dependencies in a subdirectory because
17850   # it helps to detect inapplicable dependency modes.  For instance
17851   # both Tru64's cc and ICC support -MD to output dependencies as a
17852   # side effect of compilation, but ICC will put the dependencies in
17853   # the current directory while Tru64 will put them in the object
17854   # directory.
17855   mkdir sub
17856
17857   am_cv_CCAS_dependencies_compiler_type=none
17858   if test "$am_compiler_list" = ""; then
17859      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17860   fi
17861   am__universal=false
17862
17863
17864   for depmode in $am_compiler_list; do
17865     # Setup a source with many dependencies, because some compilers
17866     # like to wrap large dependency lists on column 80 (with \), and
17867     # we should not choose a depcomp mode which is confused by this.
17868     #
17869     # We need to recreate these files for each test, as the compiler may
17870     # overwrite some of them when testing with obscure command lines.
17871     # This happens at least with the AIX C compiler.
17872     : > sub/conftest.c
17873     for i in 1 2 3 4 5 6; do
17874       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17875       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17876       # Solaris 10 /bin/sh.
17877       echo '/* dummy */' > sub/conftst$i.h
17878     done
17879     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17880
17881     # We check with '-c' and '-o' for the sake of the "dashmstdout"
17882     # mode.  It turns out that the SunPro C++ compiler does not properly
17883     # handle '-M -o', and we need to detect this.  Also, some Intel
17884     # versions had trouble with output in subdirs.
17885     am__obj=sub/conftest.${OBJEXT-o}
17886     am__minus_obj="-o $am__obj"
17887     case $depmode in
17888     gcc)
17889       # This depmode causes a compiler race in universal mode.
17890       test "$am__universal" = false || continue
17891       ;;
17892     nosideeffect)
17893       # After this tag, mechanisms are not by side-effect, so they'll
17894       # only be used when explicitly requested.
17895       if test "x$enable_dependency_tracking" = xyes; then
17896         continue
17897       else
17898         break
17899       fi
17900       ;;
17901     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17902       # This compiler won't grok '-c -o', but also, the minuso test has
17903       # not run yet.  These depmodes are late enough in the game, and
17904       # so weak that their functioning should not be impacted.
17905       am__obj=conftest.${OBJEXT-o}
17906       am__minus_obj=
17907       ;;
17908     none) break ;;
17909     esac
17910     if depmode=$depmode \
17911        source=sub/conftest.c object=$am__obj \
17912        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17913        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17914          >/dev/null 2>conftest.err &&
17915        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17916        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17917        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17918        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17919       # icc doesn't choke on unknown options, it will just issue warnings
17920       # or remarks (even with -Werror).  So we grep stderr for any message
17921       # that says an option was ignored or not supported.
17922       # When given -MP, icc 7.0 and 7.1 complain thusly:
17923       #   icc: Command line warning: ignoring option '-M'; no argument required
17924       # The diagnosis changed in icc 8.0:
17925       #   icc: Command line remark: option '-MP' not supported
17926       if (grep 'ignoring option' conftest.err ||
17927           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17928         am_cv_CCAS_dependencies_compiler_type=$depmode
17929         break
17930       fi
17931     fi
17932   done
17933
17934   cd ..
17935   rm -rf conftest.dir
17936 else
17937   am_cv_CCAS_dependencies_compiler_type=none
17938 fi
17939
17940 fi
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
17942 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
17943 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
17944
17945  if
17946   test "x$enable_dependency_tracking" != xno \
17947   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
17948   am__fastdepCCAS_TRUE=
17949   am__fastdepCCAS_FALSE='#'
17950 else
17951   am__fastdepCCAS_TRUE='#'
17952   am__fastdepCCAS_FALSE=
17953 fi
17954
17955
17956
17957 LIBM=
17958 case $host in
17959 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
17960   # These system don't have libm, or don't need it
17961   ;;
17962 *-ncr-sysv4.3*)
17963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
17964 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
17965 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
17966   $as_echo_n "(cached) " >&6
17967 else
17968   ac_check_lib_save_LIBS=$LIBS
17969 LIBS="-lmw  $LIBS"
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h.  */
17972
17973 /* Override any GCC internal prototype to avoid an error.
17974    Use char because int might match the return type of a GCC
17975    builtin and then its argument prototype would still apply.  */
17976 #ifdef __cplusplus
17977 extern "C"
17978 #endif
17979 char _mwvalidcheckl ();
17980 int
17981 main ()
17982 {
17983 return _mwvalidcheckl ();
17984   ;
17985   return 0;
17986 }
17987 _ACEOF
17988 if ac_fn_c_try_link "$LINENO"; then :
17989   ac_cv_lib_mw__mwvalidcheckl=yes
17990 else
17991   ac_cv_lib_mw__mwvalidcheckl=no
17992 fi
17993 rm -f core conftest.err conftest.$ac_objext \
17994     conftest$ac_exeext conftest.$ac_ext
17995 LIBS=$ac_check_lib_save_LIBS
17996 fi
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
17998 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
17999 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
18000   LIBM="-lmw"
18001 fi
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="$LIBM -lm"
18041 fi
18042
18043   ;;
18044 *)
18045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
18046 $as_echo_n "checking for cos in -lm... " >&6; }
18047 if ${ac_cv_lib_m_cos+:} false; then :
18048   $as_echo_n "(cached) " >&6
18049 else
18050   ac_check_lib_save_LIBS=$LIBS
18051 LIBS="-lm  $LIBS"
18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h.  */
18054
18055 /* Override any GCC internal prototype to avoid an error.
18056    Use char because int might match the return type of a GCC
18057    builtin and then its argument prototype would still apply.  */
18058 #ifdef __cplusplus
18059 extern "C"
18060 #endif
18061 char cos ();
18062 int
18063 main ()
18064 {
18065 return cos ();
18066   ;
18067   return 0;
18068 }
18069 _ACEOF
18070 if ac_fn_c_try_link "$LINENO"; then :
18071   ac_cv_lib_m_cos=yes
18072 else
18073   ac_cv_lib_m_cos=no
18074 fi
18075 rm -f core conftest.err conftest.$ac_objext \
18076     conftest$ac_exeext conftest.$ac_ext
18077 LIBS=$ac_check_lib_save_LIBS
18078 fi
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
18080 $as_echo "$ac_cv_lib_m_cos" >&6; }
18081 if test "x$ac_cv_lib_m_cos" = xyes; then :
18082   LIBM="-lm"
18083 fi
18084
18085   ;;
18086 esac
18087
18088
18089
18090 OPTIMIZE_CFLAGS="-Os -fomit-frame-pointer"
18091 OPTIMIZE_FAST_CFLAGS="-O2 -fomit-frame-pointer"
18092 OPTIMIZE_HUGE_CFLAGS="-funroll-loops -DTFM_SMALL_SET -DTFM_HUGE_SET"
18093 DEBUG_CFLAGS="-g -DDEBUG -DDEBUG_WOLFSSL"
18094
18095 thread_ls_on=no
18096 # Thread local storage
18097
18098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
18099 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
18100   if ${ac_cv_tls+:} false; then :
18101   $as_echo_n "(cached) " >&6
18102 else
18103
18104     ax_tls_keywords="__thread __declspec(thread) none"
18105     for ax_tls_keyword in $ax_tls_keywords; do
18106        case $ax_tls_keyword in #(
18107   none) :
18108     ac_cv_tls=none ; break ;; #(
18109   *) :
18110     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h.  */
18112 #include <stdlib.h>
18113                static void
18114                foo(void) {
18115                static  $ax_tls_keyword  int bar;
18116                exit(1);
18117                }
18118 int
18119 main ()
18120 {
18121
18122   ;
18123   return 0;
18124 }
18125 _ACEOF
18126 if ac_fn_c_try_compile "$LINENO"; then :
18127   ac_cv_tls=$ax_tls_keyword ; break
18128 else
18129   ac_cv_tls=none
18130
18131 fi
18132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
18133 esac
18134     done
18135
18136 fi
18137
18138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
18139 $as_echo "$ac_cv_tls" >&6; }
18140
18141   if test "$ac_cv_tls" != "none"; then :
18142
18143 cat >>confdefs.h <<_ACEOF
18144 #define TLS $ac_cv_tls
18145 _ACEOF
18146
18147
18148         AM_CFLAGS="$AM_CFLAGS -DHAVE_THREAD_LS"
18149         thread_ls_on=yes
18150
18151 else
18152   :
18153
18154 fi
18155
18156
18157
18158 # DEBUG
18159     # Check whether --enable-debug was given.
18160 if test "${enable_debug+set}" = set; then :
18161   enableval=$enable_debug; ax_enable_debug=$enableval
18162 else
18163   ax_enable_debug=no
18164 fi
18165
18166
18167         if test "x$ax_enable_debug" = xyes; then :
18168
18169 $as_echo "#define DEBUG 1" >>confdefs.h
18170
18171 else
18172
18173
18174 $as_echo "#define DEBUG 0" >>confdefs.h
18175
18176 fi
18177
18178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug" >&5
18179 $as_echo_n "checking for debug... " >&6; }
18180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_debug" >&5
18181 $as_echo "$ax_enable_debug" >&6; }
18182      if test "x${ax_enable_debug}" = xyes; then
18183   DEBUG_TRUE=
18184   DEBUG_FALSE='#'
18185 else
18186   DEBUG_TRUE='#'
18187   DEBUG_FALSE=
18188 fi
18189
18190 if test "$ax_enable_debug" = "yes"; then :
18191   AM_CFLAGS="$DEBUG_CFLAGS $AM_CFLAGS"
18192 else
18193   AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
18194 fi
18195
18196
18197 # SINGLE THREADED
18198 # Check whether --enable-singlethreaded was given.
18199 if test "${enable_singlethreaded+set}" = set; then :
18200   enableval=$enable_singlethreaded;  ENABLED_SINGLETHREADED=$enableval
18201 else
18202    ENABLED_SINGLETHREADED=no
18203 fi
18204
18205
18206
18207             if test x"$CC" = xclang; then
18208                 wolfssl_darwin_clang=yes
18209             elif test x"$CC" = x || test x"$CC" = xgcc; then
18210                 if /usr/bin/gcc -v 2>&1 | grep 'clang' >/dev/null 2>&1; then
18211                     wolfssl_darwin_clang=yes
18212                 fi
18213             fi
18214
18215 if  test "x$ENABLED_SINGLETHREADED" = "xno" ; then :
18216
18217
18218
18219 ac_ext=c
18220 ac_cpp='$CPP $CPPFLAGS'
18221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18224
18225 ax_pthread_ok=no
18226
18227 # We used to check for pthread.h first, but this fails if pthread.h
18228 # requires special compiler flags (e.g. on True64 or Sequent).
18229 # It gets checked for in the link test anyway.
18230
18231 # First of all, check if the user has set any of the PTHREAD_LIBS,
18232 # etcetera environment variables, and if threads linking works using
18233 # them:
18234 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18235         save_CFLAGS="$CFLAGS"
18236         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18237         save_LIBS="$LIBS"
18238         LIBS="$PTHREAD_LIBS $LIBS"
18239         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18240 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18241         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h.  */
18243
18244 /* Override any GCC internal prototype to avoid an error.
18245    Use char because int might match the return type of a GCC
18246    builtin and then its argument prototype would still apply.  */
18247 #ifdef __cplusplus
18248 extern "C"
18249 #endif
18250 char pthread_join ();
18251 int
18252 main ()
18253 {
18254 return pthread_join ();
18255   ;
18256   return 0;
18257 }
18258 _ACEOF
18259 if ac_fn_c_try_link "$LINENO"; then :
18260   ax_pthread_ok=yes
18261 fi
18262 rm -f core conftest.err conftest.$ac_objext \
18263     conftest$ac_exeext conftest.$ac_ext
18264         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18265 $as_echo "$ax_pthread_ok" >&6; }
18266         if test x"$ax_pthread_ok" = xno; then
18267                 PTHREAD_LIBS=""
18268                 PTHREAD_CFLAGS=""
18269         fi
18270         LIBS="$save_LIBS"
18271         CFLAGS="$save_CFLAGS"
18272 fi
18273
18274 # We must check for the threads library under a number of different
18275 # names; the ordering is very important because some systems
18276 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18277 # libraries is broken (non-POSIX).
18278
18279 # Create a list of thread flags to try.  Items starting with a "-" are
18280 # C compiler flags, and other items are library names, except for "none"
18281 # which indicates that we try without any flags at all, and "pthread-config"
18282 # which is a program returning the flags for the Pth emulation library.
18283
18284 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18285
18286 # The ordering *is* (sometimes) important.  Some notes on the
18287 # individual items follow:
18288
18289 # pthreads: AIX (must check this before -lpthread)
18290 # none: in case threads are in libc; should be tried before -Kthread and
18291 #       other compiler flags to prevent continual compiler warnings
18292 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18293 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18294 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18295 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18296 # -pthreads: Solaris/gcc
18297 # -mthreads: Mingw32/gcc, Lynx/gcc
18298 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18299 #      doesn't hurt to check since this sometimes defines pthreads too;
18300 #      also defines -D_REENTRANT)
18301 #      ... -mt is also the pthreads flag for HP/aCC
18302 # pthread: Linux, etcetera
18303 # --thread-safe: KAI C++
18304 # pthread-config: use pthread-config program (for GNU Pth library)
18305
18306 case ${host_os} in
18307         solaris*)
18308
18309         # On Solaris (at least, for some versions), libc contains stubbed
18310         # (non-functional) versions of the pthreads routines, so link-based
18311         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
18312         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18313         # a function called by this macro, so we could check for that, but
18314         # who knows whether they'll stub that too in a future libc.)  So,
18315         # we'll just look for -pthreads and -lpthread first:
18316
18317         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18318         ;;
18319
18320         darwin*)
18321
18322         if test x"$wolfssl_darwin_clang" = x"yes"; then :
18323   ax_pthread_flags="$ax_pthread_flags"
18324 else
18325   ax_pthread_flags="-pthread $ax_pthread_flags"
18326 fi
18327         ;;
18328 esac
18329
18330 if test x"$ax_pthread_ok" = xno; then
18331 for flag in $ax_pthread_flags; do
18332
18333         case $flag in
18334                 none)
18335                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18336 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18337                 ;;
18338
18339                 -*)
18340                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18341 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18342                 PTHREAD_CFLAGS="$flag"
18343                 ;;
18344
18345                 pthread-config)
18346                 # Extract the first word of "pthread-config", so it can be a program name with args.
18347 set dummy pthread-config; ac_word=$2
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18349 $as_echo_n "checking for $ac_word... " >&6; }
18350 if ${ac_cv_prog_ax_pthread_config+:} false; then :
18351   $as_echo_n "(cached) " >&6
18352 else
18353   if test -n "$ax_pthread_config"; then
18354   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18355 else
18356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18357 for as_dir in $PATH
18358 do
18359   IFS=$as_save_IFS
18360   test -z "$as_dir" && as_dir=.
18361     for ac_exec_ext in '' $ac_executable_extensions; do
18362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18363     ac_cv_prog_ax_pthread_config="yes"
18364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18365     break 2
18366   fi
18367 done
18368   done
18369 IFS=$as_save_IFS
18370
18371   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18372 fi
18373 fi
18374 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18375 if test -n "$ax_pthread_config"; then
18376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18377 $as_echo "$ax_pthread_config" >&6; }
18378 else
18379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18380 $as_echo "no" >&6; }
18381 fi
18382
18383
18384                 if test x"$ax_pthread_config" = xno; then continue; fi
18385                 PTHREAD_CFLAGS="`pthread-config --cflags`"
18386                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18387                 ;;
18388
18389                 *)
18390                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18391 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18392                 PTHREAD_LIBS="-l$flag"
18393                 ;;
18394         esac
18395
18396         save_LIBS="$LIBS"
18397         save_CFLAGS="$CFLAGS"
18398         LIBS="$PTHREAD_LIBS $LIBS"
18399         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18400
18401         # Check for various functions.  We must include pthread.h,
18402         # since some functions may be macros.  (On the Sequent, we
18403         # need a special flag -Kthread to make this header compile.)
18404         # We check for pthread_join because it is in -lpthread on IRIX
18405         # while pthread_create is in libc.  We check for pthread_attr_init
18406         # due to DEC craziness with -lpthreads.  We check for
18407         # pthread_cleanup_push because it is one of the few pthread
18408         # functions on Solaris that doesn't have a non-functional libc stub.
18409         # We try pthread_create on general principles.
18410         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h.  */
18412 #include <pthread.h>
18413                         static void routine(void *a) { a = 0; }
18414                         static void *start_routine(void *a) { return a; }
18415 int
18416 main ()
18417 {
18418 pthread_t th; pthread_attr_t attr;
18419                         pthread_create(&th, 0, start_routine, 0);
18420                         pthread_join(th, 0);
18421                         pthread_attr_init(&attr);
18422                         pthread_cleanup_push(routine, 0);
18423                         pthread_cleanup_pop(0) /* ; */
18424   ;
18425   return 0;
18426 }
18427 _ACEOF
18428 if ac_fn_c_try_link "$LINENO"; then :
18429   ax_pthread_ok=yes
18430 fi
18431 rm -f core conftest.err conftest.$ac_objext \
18432     conftest$ac_exeext conftest.$ac_ext
18433
18434         LIBS="$save_LIBS"
18435         CFLAGS="$save_CFLAGS"
18436
18437         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18438 $as_echo "$ax_pthread_ok" >&6; }
18439         if test "x$ax_pthread_ok" = xyes; then
18440                 break;
18441         fi
18442
18443         PTHREAD_LIBS=""
18444         PTHREAD_CFLAGS=""
18445 done
18446 fi
18447
18448 # Various other checks:
18449 if test "x$ax_pthread_ok" = xyes; then
18450         save_LIBS="$LIBS"
18451         LIBS="$PTHREAD_LIBS $LIBS"
18452         save_CFLAGS="$CFLAGS"
18453         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18454
18455         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18457 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18458         attr_name=unknown
18459         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18460             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h.  */
18462 #include <pthread.h>
18463 int
18464 main ()
18465 {
18466 int attr = $attr; return attr /* ; */
18467   ;
18468   return 0;
18469 }
18470 _ACEOF
18471 if ac_fn_c_try_link "$LINENO"; then :
18472   attr_name=$attr; break
18473 fi
18474 rm -f core conftest.err conftest.$ac_objext \
18475     conftest$ac_exeext conftest.$ac_ext
18476         done
18477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18478 $as_echo "$attr_name" >&6; }
18479         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18480
18481 cat >>confdefs.h <<_ACEOF
18482 #define PTHREAD_CREATE_JOINABLE $attr_name
18483 _ACEOF
18484
18485         fi
18486
18487         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18488 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18489         flag=no
18490         case ${host_os} in
18491             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
18492             osf* | hpux*) flag="-D_REENTRANT";;
18493             solaris*)
18494             if test "$GCC" = "yes"; then
18495                 flag="-D_REENTRANT"
18496             else
18497                 flag="-mt -D_REENTRANT"
18498             fi
18499             ;;
18500         esac
18501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18502 $as_echo "${flag}" >&6; }
18503         if test "x$flag" != xno; then
18504             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18505         fi
18506
18507         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18508 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18509 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
18510   $as_echo_n "(cached) " >&6
18511 else
18512
18513                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514 /* end confdefs.h.  */
18515
18516                     #include <pthread.h>
18517 int
18518 main ()
18519 {
18520 int i = PTHREAD_PRIO_INHERIT;
18521   ;
18522   return 0;
18523 }
18524 _ACEOF
18525 if ac_fn_c_try_link "$LINENO"; then :
18526   ax_cv_PTHREAD_PRIO_INHERIT=yes
18527 else
18528   ax_cv_PTHREAD_PRIO_INHERIT=no
18529 fi
18530 rm -f core conftest.err conftest.$ac_objext \
18531     conftest$ac_exeext conftest.$ac_ext
18532
18533 fi
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18535 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18536         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
18537
18538 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18539
18540 fi
18541
18542         LIBS="$save_LIBS"
18543         CFLAGS="$save_CFLAGS"
18544
18545         # More AIX lossage: compile with *_r variant
18546         if test "x$GCC" != xyes; then
18547             case $host_os in
18548                 aix*)
18549                 case "x/$CC" in #(
18550   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18551     #handle absolute path differently from PATH based program lookup
18552                    case "x$CC" in #(
18553   x/*) :
18554     if as_fn_executable_p ${CC}_r; then :
18555   PTHREAD_CC="${CC}_r"
18556 fi ;; #(
18557   *) :
18558     for ac_prog in ${CC}_r
18559 do
18560   # Extract the first word of "$ac_prog", so it can be a program name with args.
18561 set dummy $ac_prog; ac_word=$2
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18563 $as_echo_n "checking for $ac_word... " >&6; }
18564 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
18565   $as_echo_n "(cached) " >&6
18566 else
18567   if test -n "$PTHREAD_CC"; then
18568   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18569 else
18570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18571 for as_dir in $PATH
18572 do
18573   IFS=$as_save_IFS
18574   test -z "$as_dir" && as_dir=.
18575     for ac_exec_ext in '' $ac_executable_extensions; do
18576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18577     ac_cv_prog_PTHREAD_CC="$ac_prog"
18578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18579     break 2
18580   fi
18581 done
18582   done
18583 IFS=$as_save_IFS
18584
18585 fi
18586 fi
18587 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18588 if test -n "$PTHREAD_CC"; then
18589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18590 $as_echo "$PTHREAD_CC" >&6; }
18591 else
18592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18593 $as_echo "no" >&6; }
18594 fi
18595
18596
18597   test -n "$PTHREAD_CC" && break
18598 done
18599 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18600  ;;
18601 esac ;; #(
18602   *) :
18603      ;;
18604 esac
18605                 ;;
18606             esac
18607         fi
18608 fi
18609
18610 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18611
18612
18613
18614
18615
18616 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18617 if test x"$ax_pthread_ok" = xyes; then
18618
18619
18620 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
18621
18622                    AM_CFLAGS="-D_POSIX_THREADS $AM_CFLAGS $PTHREAD_CFLAGS"
18623                    LIBS="$LIBS $PTHREAD_LIBS"
18624
18625         :
18626 else
18627         ax_pthread_ok=no
18628
18629                       ENABLED_SINGLETHREADED=yes
18630
18631 fi
18632 ac_ext=c
18633 ac_cpp='$CPP $CPPFLAGS'
18634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18637
18638
18639
18640 fi
18641
18642 if  test "x$ENABLED_SINGLETHREADED" = "xyes" ; then :
18643    AM_CFLAGS="-DSINGLE_THREADED $AM_CFLAGS"
18644 fi
18645
18646
18647 # DTLS
18648 # Check whether --enable-dtls was given.
18649 if test "${enable_dtls+set}" = set; then :
18650   enableval=$enable_dtls;  ENABLED_DTLS=$enableval
18651 else
18652    ENABLED_DTLS=no
18653
18654 fi
18655
18656 if test "$ENABLED_DTLS" = "yes"
18657 then
18658   AM_CFLAGS="-DWOLFSSL_DTLS $AM_CFLAGS"
18659 fi
18660
18661
18662 # OPENSSL Extra Compatibility
18663 # Check whether --enable-opensslextra was given.
18664 if test "${enable_opensslextra+set}" = set; then :
18665   enableval=$enable_opensslextra;  ENABLED_OPENSSLEXTRA=$enableval
18666 else
18667    ENABLED_OPENSSLEXTRA=no
18668
18669 fi
18670
18671 if test "$ENABLED_OPENSSLEXTRA" = "yes"
18672 then
18673   AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
18674 fi
18675
18676 if test "$ENABLED_OPENSSLEXTRA" = "yes" && test "$ENABLED_SMALL" = "yes"
18677 then
18678     as_fn_error $? "cannot enable small and opensslextra, only one or the other." "$LINENO" 5
18679 fi
18680
18681
18682 # High Strength Build
18683 # Check whether --enable-maxstrength was given.
18684 if test "${enable_maxstrength+set}" = set; then :
18685   enableval=$enable_maxstrength; ENABLED_MAXSTRENGTH=$enableval
18686 else
18687   ENABLED_MAXSTRENGTH=no
18688 fi
18689
18690
18691
18692 # IPv6 Test Apps
18693 # Check whether --enable-ipv6 was given.
18694 if test "${enable_ipv6+set}" = set; then :
18695   enableval=$enable_ipv6;  ENABLED_IPV6=$enableval
18696 else
18697    ENABLED_IPV6=no
18698
18699 fi
18700
18701
18702 if test "$ENABLED_IPV6" = "yes"
18703 then
18704     AM_CFLAGS="$AM_CFLAGS -DTEST_IPV6"
18705 fi
18706
18707  if test "x$ENABLED_IPV6" = "xyes"; then
18708   BUILD_IPV6_TRUE=
18709   BUILD_IPV6_FALSE='#'
18710 else
18711   BUILD_IPV6_TRUE='#'
18712   BUILD_IPV6_FALSE=
18713 fi
18714
18715
18716
18717 # Fortress build
18718 # Check whether --enable-fortress was given.
18719 if test "${enable_fortress+set}" = set; then :
18720   enableval=$enable_fortress;  ENABLED_FORTRESS=$enableval
18721 else
18722    ENABLED_FORTRESS=no
18723
18724 fi
18725
18726
18727 if test "$ENABLED_FORTRESS" = "yes"
18728 then
18729     AM_CFLAGS="$AM_CFLAGS -DFORTRESS -DWOLFSSL_ALWAYS_VERIFY_CB -DOPENSSL_EXTRA -DWOLFSSL_DES_ECB -DWOLFSSL_AES_COUNTER -DWOLFSSL_AES_DIRECT -DWOLFSSL_DER_LOAD -DWOLFSSL_SHA512 -DWOLFSSL_SHA384 -DWOLFSSL_KEY_GEN"
18730 fi
18731
18732
18733 # ssl bump build
18734 # Check whether --enable-bump was given.
18735 if test "${enable_bump+set}" = set; then :
18736   enableval=$enable_bump;  ENABLED_BUMP=$enableval
18737 else
18738    ENABLED_BUMP=no
18739
18740 fi
18741
18742
18743 if test "$ENABLED_BUMP" = "yes"
18744 then
18745     AM_CFLAGS="$AM_CFLAGS -DLARGE_STATIC_BUFFERS -DWOLFSSL_CERT_GEN -DWOLFSSL_KEY_GEN -DHUGE_SESSION_CACHE -DOPENSSL_EXTRA -DFP_MAX_BITS=8192 -DWOLFSSL_DER_LOAD -DWOLFSSL_ALT_NAMES -DWOLFSSL_TEST_CERT"
18746 fi
18747
18748 ENABLED_SLOWMATH="yes"
18749
18750 # lean psk build
18751 # Check whether --enable-leanpsk was given.
18752 if test "${enable_leanpsk+set}" = set; then :
18753   enableval=$enable_leanpsk;  ENABLED_LEANPSK=$enableval
18754 else
18755    ENABLED_LEANPSK=no
18756
18757 fi
18758
18759
18760 if test "$ENABLED_LEANPSK" = "yes"
18761 then
18762     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_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 -DWOLFSSL_USER_IO -DNO_SHA -DUSE_SLOW_SHA"
18763     ENABLED_SLOWMATH="no"
18764     ENABLED_SINGLETHREADED="yes"
18765 fi
18766
18767  if test "x$ENABLED_LEANPSK" = "xyes"; then
18768   BUILD_LEANPSK_TRUE=
18769   BUILD_LEANPSK_FALSE='#'
18770 else
18771   BUILD_LEANPSK_TRUE='#'
18772   BUILD_LEANPSK_FALSE=
18773 fi
18774
18775
18776
18777 # big cache
18778 # Check whether --enable-bigcache was given.
18779 if test "${enable_bigcache+set}" = set; then :
18780   enableval=$enable_bigcache;  ENABLED_BIGCACHE=$enableval
18781 else
18782    ENABLED_BIGCACHE=no
18783
18784 fi
18785
18786
18787 if test "$ENABLED_BIGCACHE" = "yes"
18788 then
18789     AM_CFLAGS="$AM_CFLAGS -DBIG_SESSION_CACHE"
18790 fi
18791
18792
18793 # HUGE cache
18794 # Check whether --enable-hugecache was given.
18795 if test "${enable_hugecache+set}" = set; then :
18796   enableval=$enable_hugecache;  ENABLED_HUGECACHE=$enableval
18797 else
18798    ENABLED_HUGECACHE=no
18799
18800 fi
18801
18802
18803 if test "$ENABLED_HUGECACHE" = "yes"
18804 then
18805     AM_CFLAGS="$AM_CFLAGS -DHUGE_SESSION_CACHE"
18806 fi
18807
18808
18809 # SMALL cache
18810 # Check whether --enable-smallcache was given.
18811 if test "${enable_smallcache+set}" = set; then :
18812   enableval=$enable_smallcache;  ENABLED_SMALLCACHE=$enableval
18813 else
18814    ENABLED_SMALLCACHE=no
18815
18816 fi
18817
18818
18819 if test "$ENABLED_SMALLCACHE" = "yes"
18820 then
18821     AM_CFLAGS="$AM_CFLAGS -DSMALL_SESSION_CACHE"
18822 fi
18823
18824
18825 # Persistent session cache
18826 # Check whether --enable-savesession was given.
18827 if test "${enable_savesession+set}" = set; then :
18828   enableval=$enable_savesession;  ENABLED_SAVESESSION=$enableval
18829 else
18830    ENABLED_SAVESESSION=no
18831
18832 fi
18833
18834
18835 if test "$ENABLED_SAVESESSION" = "yes"
18836 then
18837     AM_CFLAGS="$AM_CFLAGS -DPERSIST_SESSION_CACHE"
18838 fi
18839
18840
18841 # Persistent cert cache
18842 # Check whether --enable-savecert was given.
18843 if test "${enable_savecert+set}" = set; then :
18844   enableval=$enable_savecert;  ENABLED_SAVECERT=$enableval
18845 else
18846    ENABLED_SAVECERT=no
18847
18848 fi
18849
18850
18851 if test "$ENABLED_SAVECERT" = "yes"
18852 then
18853     AM_CFLAGS="$AM_CFLAGS -DPERSIST_CERT_CACHE"
18854 fi
18855
18856
18857 # Atomic User Record Layer
18858 # Check whether --enable-atomicuser was given.
18859 if test "${enable_atomicuser+set}" = set; then :
18860   enableval=$enable_atomicuser;  ENABLED_ATOMICUSER=$enableval
18861 else
18862    ENABLED_ATOMICUSER=no
18863
18864 fi
18865
18866
18867 if test "$ENABLED_ATOMICUSER" = "yes"
18868 then
18869     AM_CFLAGS="$AM_CFLAGS -DATOMIC_USER"
18870 fi
18871
18872
18873 # Public Key Callbacks
18874 # Check whether --enable-pkcallbacks was given.
18875 if test "${enable_pkcallbacks+set}" = set; then :
18876   enableval=$enable_pkcallbacks;  ENABLED_PKCALLBACKS=$enableval
18877 else
18878    ENABLED_PKCALLBACKS=no
18879
18880 fi
18881
18882
18883 if test "$ENABLED_PKCALLBACKS" = "yes"
18884 then
18885     AM_CFLAGS="$AM_CFLAGS -DHAVE_PK_CALLBACKS"
18886 fi
18887
18888
18889 # SNIFFER
18890 # Check whether --enable-sniffer was given.
18891 if test "${enable_sniffer+set}" = set; then :
18892   enableval=$enable_sniffer;  ENABLED_SNIFFER=$enableval
18893 else
18894    ENABLED_SNIFFER=no
18895
18896 fi
18897
18898
18899 # sniffer does't work in maxstrength mode
18900 if test "$ENABLED_SNIFFER" = "yes" && test "$ENABLED_MAXSTRENGTH" = "yes"
18901 then
18902     as_fn_error $? "cannot enable maxstrength in sniffer mode." "$LINENO" 5
18903 fi
18904
18905 ENABLED_SNIFFTEST=no
18906 if  test "x$ENABLED_SNIFFER" = "xyes" ; then :
18907
18908           AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SNIFFER -DOPENSSL_EXTRA"
18909           for ac_header in pcap/pcap.h
18910 do :
18911   ac_fn_c_check_header_mongrel "$LINENO" "pcap/pcap.h" "ac_cv_header_pcap_pcap_h" "$ac_includes_default"
18912 if test "x$ac_cv_header_pcap_pcap_h" = xyes; then :
18913   cat >>confdefs.h <<_ACEOF
18914 #define HAVE_PCAP_PCAP_H 1
18915 _ACEOF
18916   ENABLED_SNIFFTEST=yes
18917 else
18918    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable sniffer test without having libpcap available." >&5
18919 $as_echo "$as_me: WARNING: cannot enable sniffer test without having libpcap available." >&2;}
18920
18921 fi
18922
18923 done
18924
18925
18926 fi
18927
18928  if  test "x$ENABLED_SNIFFER"   = "xyes" ; then
18929   BUILD_SNIFFER_TRUE=
18930   BUILD_SNIFFER_FALSE='#'
18931 else
18932   BUILD_SNIFFER_TRUE='#'
18933   BUILD_SNIFFER_FALSE=
18934 fi
18935
18936  if  test "x$ENABLED_SNIFFTEST" = "xyes" ; then
18937   BUILD_SNIFFTEST_TRUE=
18938   BUILD_SNIFFTEST_FALSE='#'
18939 else
18940   BUILD_SNIFFTEST_TRUE='#'
18941   BUILD_SNIFFTEST_FALSE=
18942 fi
18943
18944
18945 # AES-GCM
18946 # Check whether --enable-aesgcm was given.
18947 if test "${enable_aesgcm+set}" = set; then :
18948   enableval=$enable_aesgcm;  ENABLED_AESGCM=$enableval
18949 else
18950    ENABLED_AESGCM=yes
18951
18952 fi
18953
18954
18955 # lean psk does't need gcm
18956 if test "$ENABLED_LEANPSK" = "yes"
18957 then
18958     ENABLED_AESGCM=no
18959 fi
18960
18961 if test "$ENABLED_AESGCM" = "word32"
18962 then
18963     AM_CFLAGS="$AM_CFLAGS -DGCM_WORD32"
18964     ENABLED_AESGCM=yes
18965 fi
18966
18967 if test "$ENABLED_AESGCM" = "small"
18968 then
18969     AM_CFLAGS="$AM_CFLAGS -DGCM_SMALL"
18970     ENABLED_AESGCM=yes
18971 fi
18972
18973 if test "$ENABLED_AESGCM" = "table"
18974 then
18975     AM_CFLAGS="$AM_CFLAGS -DGCM_TABLE"
18976     ENABLED_AESGCM=yes
18977 fi
18978
18979 if test "$ENABLED_AESGCM" = "yes"
18980 then
18981     AM_CFLAGS="$AM_CFLAGS -DHAVE_AESGCM"
18982 fi
18983
18984  if test "x$ENABLED_AESGCM" = "xyes"; then
18985   BUILD_AESGCM_TRUE=
18986   BUILD_AESGCM_FALSE='#'
18987 else
18988   BUILD_AESGCM_TRUE='#'
18989   BUILD_AESGCM_FALSE=
18990 fi
18991
18992
18993
18994 # AES-CCM
18995 # Check whether --enable-aesccm was given.
18996 if test "${enable_aesccm+set}" = set; then :
18997   enableval=$enable_aesccm;  ENABLED_AESCCM=$enableval
18998 else
18999    ENABLED_AESCCM=no
19000
19001 fi
19002
19003
19004 if test "$ENABLED_AESCCM" = "yes"
19005 then
19006     AM_CFLAGS="$AM_CFLAGS -DHAVE_AESCCM"
19007 fi
19008
19009  if test "x$ENABLED_AESCCM" = "xyes"; then
19010   BUILD_AESCCM_TRUE=
19011   BUILD_AESCCM_FALSE='#'
19012 else
19013   BUILD_AESCCM_TRUE='#'
19014   BUILD_AESCCM_FALSE=
19015 fi
19016
19017
19018
19019 # AES-NI
19020 # Check whether --enable-aesni was given.
19021 if test "${enable_aesni+set}" = set; then :
19022   enableval=$enable_aesni;  ENABLED_AESNI=$enableval
19023 else
19024    ENABLED_AESNI=no
19025
19026 fi
19027
19028
19029 # INTEL ASM
19030 # Check whether --enable-intelasm was given.
19031 if test "${enable_intelasm+set}" = set; then :
19032   enableval=$enable_intelasm;  ENABLED_INTELASM=$enableval
19033 else
19034    ENABLED_INTELASM=no
19035
19036 fi
19037
19038
19039 if test "$ENABLED_AESNI" = "yes" || test "$ENABLED_INTELASM" = "yes"
19040 then
19041     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AESNI"
19042     if test "$GCC" = "yes"
19043     then
19044         # GCC needs these flags, icc doesn't
19045         # opt levels greater than 2 may cause problems on systems w/o aesni
19046         if test "$CC" != "icc"
19047         then
19048             AM_CFLAGS="$AM_CFLAGS -maes -msse4"
19049         fi
19050     fi
19051 fi
19052
19053 if test "$ENABLED_INTELASM" = "yes"
19054 then
19055     AM_CFLAGS="$AM_CFLAGS -DHAVE_INTEL_RDGEN -DUSE_INTEL_SPEEDUP"
19056     ENABLED_AESNI=yes
19057 fi
19058
19059  if test "x$ENABLED_AESNI" = "xyes"; then
19060   BUILD_AESNI_TRUE=
19061   BUILD_AESNI_FALSE='#'
19062 else
19063   BUILD_AESNI_TRUE='#'
19064   BUILD_AESNI_FALSE=
19065 fi
19066
19067
19068
19069 # Camellia
19070 # Check whether --enable-camellia was given.
19071 if test "${enable_camellia+set}" = set; then :
19072   enableval=$enable_camellia;  ENABLED_CAMELLIA=$enableval
19073 else
19074    ENABLED_CAMELLIA=no
19075
19076 fi
19077
19078
19079 if test "$ENABLED_CAMELLIA" = "yes"
19080 then
19081     AM_CFLAGS="$AM_CFLAGS -DHAVE_CAMELLIA"
19082 fi
19083
19084  if test "x$ENABLED_CAMELLIA" = "xyes"; then
19085   BUILD_CAMELLIA_TRUE=
19086   BUILD_CAMELLIA_FALSE='#'
19087 else
19088   BUILD_CAMELLIA_TRUE='#'
19089   BUILD_CAMELLIA_FALSE=
19090 fi
19091
19092
19093
19094 # MD2
19095 # Check whether --enable-md2 was given.
19096 if test "${enable_md2+set}" = set; then :
19097   enableval=$enable_md2;  ENABLED_MD2=$enableval
19098 else
19099    ENABLED_MD2=no
19100
19101 fi
19102
19103
19104 if test "$ENABLED_BUMP" = "yes"
19105 then
19106     ENABLED_MD2="yes"
19107 fi
19108
19109 if test "$ENABLED_MD2" = "yes"
19110 then
19111     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_MD2"
19112 fi
19113
19114  if test "x$ENABLED_MD2" = "xyes"; then
19115   BUILD_MD2_TRUE=
19116   BUILD_MD2_FALSE='#'
19117 else
19118   BUILD_MD2_TRUE='#'
19119   BUILD_MD2_FALSE=
19120 fi
19121
19122
19123
19124 # NULL CIPHER
19125 # Check whether --enable-nullcipher was given.
19126 if test "${enable_nullcipher+set}" = set; then :
19127   enableval=$enable_nullcipher;  ENABLED_NULL_CIPHER=$enableval
19128 else
19129    ENABLED_NULL_CIPHER=no
19130
19131 fi
19132
19133
19134 if test "$ENABLED_NULL_CIPHER" = "yes"
19135 then
19136     AM_CFLAGS="$AM_CFLAGS -DHAVE_NULL_CIPHER"
19137 fi
19138
19139 # RIPEMD
19140 # Check whether --enable-ripemd was given.
19141 if test "${enable_ripemd+set}" = set; then :
19142   enableval=$enable_ripemd;  ENABLED_RIPEMD=$enableval
19143 else
19144    ENABLED_RIPEMD=no
19145
19146 fi
19147
19148
19149 if test "$ENABLED_RIPEMD" = "yes"
19150 then
19151     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_RIPEMD"
19152 fi
19153
19154  if test "x$ENABLED_RIPEMD" = "xyes"; then
19155   BUILD_RIPEMD_TRUE=
19156   BUILD_RIPEMD_FALSE='#'
19157 else
19158   BUILD_RIPEMD_TRUE='#'
19159   BUILD_RIPEMD_FALSE=
19160 fi
19161
19162
19163
19164 # BLAKE2
19165 # Check whether --enable-blake2 was given.
19166 if test "${enable_blake2+set}" = set; then :
19167   enableval=$enable_blake2;  ENABLED_BLAKE2=$enableval
19168 else
19169    ENABLED_BLAKE2=no
19170
19171 fi
19172
19173
19174 if test "$ENABLED_BLAKE2" = "yes"
19175 then
19176     AM_CFLAGS="$AM_CFLAGS -DHAVE_BLAKE2"
19177 fi
19178
19179  if test "x$ENABLED_BLAKE2" = "xyes"; then
19180   BUILD_BLAKE2_TRUE=
19181   BUILD_BLAKE2_FALSE='#'
19182 else
19183   BUILD_BLAKE2_TRUE='#'
19184   BUILD_BLAKE2_FALSE=
19185 fi
19186
19187
19188
19189 # set sha512 default
19190 SHA512_DEFAULT=no
19191 if test "$host_cpu" = "x86_64"
19192 then
19193 SHA512_DEFAULT=yes
19194 fi
19195
19196 # SHA512
19197 # Check whether --enable-sha512 was given.
19198 if test "${enable_sha512+set}" = set; then :
19199   enableval=$enable_sha512;  ENABLED_SHA512=$enableval
19200 else
19201    ENABLED_SHA512=$SHA512_DEFAULT
19202
19203 fi
19204
19205
19206 # lean psk does't need sha512
19207 if test "$ENABLED_LEANPSK" = "yes"
19208 then
19209     ENABLED_SHA512=no
19210 fi
19211
19212 if test "$ENABLED_SHA512" = "yes"
19213 then
19214     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHA512 -DWOLFSSL_SHA384"
19215 fi
19216
19217 if test "$ENABLED_FORTRESS" = "yes"
19218 then
19219     ENABLED_SHA512="yes"
19220 fi
19221
19222
19223  if test "x$ENABLED_SHA512" = "xyes"; then
19224   BUILD_SHA512_TRUE=
19225   BUILD_SHA512_FALSE='#'
19226 else
19227   BUILD_SHA512_TRUE='#'
19228   BUILD_SHA512_FALSE=
19229 fi
19230
19231
19232
19233 # SESSION CERTS
19234 # Check whether --enable-sessioncerts was given.
19235 if test "${enable_sessioncerts+set}" = set; then :
19236   enableval=$enable_sessioncerts;  ENABLED_SESSIONCERTS=$enableval
19237 else
19238    ENABLED_SESSIONCERTS=no
19239
19240 fi
19241
19242
19243 if test "$ENABLED_SESSIONCERTS" = "yes"
19244 then
19245     AM_CFLAGS="$AM_CFLAGS -DSESSION_CERTS"
19246 fi
19247
19248
19249 # KEY GENERATION
19250 # Check whether --enable-keygen was given.
19251 if test "${enable_keygen+set}" = set; then :
19252   enableval=$enable_keygen;  ENABLED_KEYGEN=$enableval
19253 else
19254    ENABLED_KEYGEN=no
19255
19256 fi
19257
19258
19259 if test "$ENABLED_KEYGEN" = "yes"
19260 then
19261     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_KEY_GEN"
19262 fi
19263
19264
19265 # CERT GENERATION
19266 # Check whether --enable-certgen was given.
19267 if test "${enable_certgen+set}" = set; then :
19268   enableval=$enable_certgen;  ENABLED_CERTGEN=$enableval
19269 else
19270    ENABLED_CERTGEN=no
19271
19272 fi
19273
19274
19275 if test "$ENABLED_CERTGEN" = "yes"
19276 then
19277     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_GEN"
19278 fi
19279
19280
19281 # CERT REQUEST GENERATION
19282 # Check whether --enable-certreq was given.
19283 if test "${enable_certreq+set}" = set; then :
19284   enableval=$enable_certreq;  ENABLED_CERTREQ=$enableval
19285 else
19286    ENABLED_CERTREQ=no
19287
19288 fi
19289
19290
19291 if test "$ENABLED_CERTREQ" = "yes"
19292 then
19293     if test "$ENABLED_CERTGEN" = "no"
19294     then
19295         as_fn_error $? "cannot enable certreq without enabling certgen." "$LINENO" 5
19296     fi
19297     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_REQ"
19298 fi
19299
19300
19301 # SEP
19302 # Check whether --enable-sep was given.
19303 if test "${enable_sep+set}" = set; then :
19304   enableval=$enable_sep;  ENABLED_SEP=$enableval
19305 else
19306    ENABLED_SEP=no
19307
19308 fi
19309
19310 if test "$ENABLED_SEP" = "yes"
19311 then
19312   AM_CFLAGS="-DWOLFSSL_SEP -DKEEP_PEER_CERT $AM_CFLAGS"
19313 fi
19314
19315
19316 # HKDF
19317 # Check whether --enable-hkdf was given.
19318 if test "${enable_hkdf+set}" = set; then :
19319   enableval=$enable_hkdf;  ENABLED_HKDF=$enableval
19320 else
19321    ENABLED_HKDF=no
19322
19323 fi
19324
19325 if test "$ENABLED_HKDF" = "yes"
19326 then
19327   AM_CFLAGS="$AM_CFLAGS -DHAVE_HKDF"
19328 fi
19329
19330
19331 # DSA
19332 # Check whether --enable-dsa was given.
19333 if test "${enable_dsa+set}" = set; then :
19334   enableval=$enable_dsa;  ENABLED_DSA=$enableval
19335 else
19336    ENABLED_DSA=no
19337
19338 fi
19339
19340
19341 if test "$ENABLED_DSA" = "no"
19342 then
19343     AM_CFLAGS="$AM_CFLAGS -DNO_DSA"
19344 fi
19345
19346  if test "x$ENABLED_DSA" = "xyes"; then
19347   BUILD_DSA_TRUE=
19348   BUILD_DSA_FALSE='#'
19349 else
19350   BUILD_DSA_TRUE='#'
19351   BUILD_DSA_FALSE=
19352 fi
19353
19354
19355
19356 # set ecc default
19357 ECC_DEFAULT=no
19358
19359 if test "$host_cpu" = "x86_64"
19360 then
19361 ECC_DEFAULT=yes
19362 fi
19363
19364 # ECC
19365 # Check whether --enable-ecc was given.
19366 if test "${enable_ecc+set}" = set; then :
19367   enableval=$enable_ecc;  ENABLED_ECC=$enableval
19368 else
19369    ENABLED_ECC=$ECC_DEFAULT
19370
19371 fi
19372
19373
19374 # lean psk does't need ecc
19375 if test "$ENABLED_LEANPSK" = "yes"
19376 then
19377     ENABLED_ECC=no
19378 fi
19379
19380 if test "$ENABLED_ECC" = "yes"
19381 then
19382     AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR"
19383 fi
19384
19385  if test "x$ENABLED_ECC" = "xyes"; then
19386   BUILD_ECC_TRUE=
19387   BUILD_ECC_FALSE='#'
19388 else
19389   BUILD_ECC_TRUE='#'
19390   BUILD_ECC_FALSE=
19391 fi
19392
19393
19394
19395 if test "$ENABLED_ECC" = "yes" && test "$ENABLED_SMALL" = "yes"
19396 then
19397     as_fn_error $? "cannot enable ecc and small, ecc requires TLS which small turns off." "$LINENO" 5
19398 fi
19399
19400
19401 # for using memory optimization setting on both curve25519 and ed25519
19402 ENABLED_CURVED25519_SMALL=no
19403
19404 # CURVE25519
19405 # Check whether --enable-curve25519 was given.
19406 if test "${enable_curve25519+set}" = set; then :
19407   enableval=$enable_curve25519;  ENABLED_CURVE25519=$enableval
19408 else
19409    ENABLED_CURVE25519=no
19410
19411 fi
19412
19413
19414
19415 if test "$ENABLED_CURVE25519" = "small"
19416 then
19417     AM_CFLAGS="$AM_CFLAGS -DCURVED25519_SMALL"
19418     ENABLED_CURVED25519_SMALL=yes
19419     ENABLED_CURVE25519=yes
19420 fi
19421
19422 if test "$ENABLED_CURVE25519" = "yes"
19423 then
19424     AM_CFLAGS="$AM_CFLAGS -DHAVE_CURVE25519"
19425     ENABLED_FEMATH=yes
19426 fi
19427
19428
19429  if test "x$ENABLED_CURVE25519" = "xyes"; then
19430   BUILD_CURVE25519_TRUE=
19431   BUILD_CURVE25519_FALSE='#'
19432 else
19433   BUILD_CURVE25519_TRUE='#'
19434   BUILD_CURVE25519_FALSE=
19435 fi
19436
19437
19438
19439 # ED25519
19440 # Check whether --enable-ed25519 was given.
19441 if test "${enable_ed25519+set}" = set; then :
19442   enableval=$enable_ed25519;  ENABLED_ED25519=$enableval
19443 else
19444    ENABLED_ED25519=no
19445
19446 fi
19447
19448
19449
19450 if test "$ENABLED_ED25519" = "small"
19451 then
19452     AM_CFLAGS="$AM_CFLAGS -DCURVED25519_SMALL"
19453     ENABLED_CURVED25519_SMALL=yes
19454     ENABLED_ED25519=yes
19455 fi
19456
19457 if test "$ENABLED_ED25519" = "yes"
19458 then
19459     if test "$ENABLED_SHA512" = "no"
19460     then
19461         as_fn_error $? "cannot enable ed25519 without enabling sha512." "$LINENO" 5
19462     fi
19463     ENABLED_FEMATH=yes
19464     ENABLED_GEMATH=yes
19465     AM_CFLAGS="$AM_CFLAGS -DHAVE_ED25519"
19466 fi
19467
19468  if test "x$ENABLED_ED25519" = "xyes"; then
19469   BUILD_ED25519_TRUE=
19470   BUILD_ED25519_FALSE='#'
19471 else
19472   BUILD_ED25519_TRUE='#'
19473   BUILD_ED25519_FALSE=
19474 fi
19475
19476  if test "x$ENABLED_CURVED25519_SMALL" = "xyes"; then
19477   BUILD_CURVED25519_SMALL_TRUE=
19478   BUILD_CURVED25519_SMALL_FALSE='#'
19479 else
19480   BUILD_CURVED25519_SMALL_TRUE='#'
19481   BUILD_CURVED25519_SMALL_FALSE=
19482 fi
19483
19484  if test "x$ENABLED_FEMATH" = "xyes"; then
19485   BUILD_FEMATH_TRUE=
19486   BUILD_FEMATH_FALSE='#'
19487 else
19488   BUILD_FEMATH_TRUE='#'
19489   BUILD_FEMATH_FALSE=
19490 fi
19491
19492  if test "x$ENABLED_GEMATH" = "xyes"; then
19493   BUILD_GEMATH_TRUE=
19494   BUILD_GEMATH_FALSE='#'
19495 else
19496   BUILD_GEMATH_TRUE='#'
19497   BUILD_GEMATH_FALSE=
19498 fi
19499
19500
19501 # FP ECC, Fixed Point cache ECC
19502 # Check whether --enable-fpecc was given.
19503 if test "${enable_fpecc+set}" = set; then :
19504   enableval=$enable_fpecc;  ENABLED_FPECC=$enableval
19505 else
19506    ENABLED_FPECC=no
19507
19508 fi
19509
19510
19511 if test "$ENABLED_FPECC" = "yes"
19512 then
19513     if test "$ENABLED_ECC" = "no"
19514     then
19515         as_fn_error $? "cannot enable fpecc without enabling ecc." "$LINENO" 5
19516     fi
19517     AM_CFLAGS="$AM_CFLAGS -DFP_ECC"
19518 fi
19519
19520
19521 # ECC encrypt
19522 # Check whether --enable-eccencrypt was given.
19523 if test "${enable_eccencrypt+set}" = set; then :
19524   enableval=$enable_eccencrypt;  ENABLED_ECC_ENCRYPT=$enableval
19525 else
19526    ENABLED_ECC_ENCRYPT=no
19527
19528 fi
19529
19530
19531 if test "$ENABLED_ECC_ENCRYPT" = "yes"
19532 then
19533     if test "$ENABLED_ECC" = "no"
19534     then
19535         as_fn_error $? "cannot enable eccencrypt without enabling ecc." "$LINENO" 5
19536     fi
19537     if test "$ENABLED_HKDF" = "no"
19538     then
19539         as_fn_error $? "cannot enable eccencrypt without enabling hkdf." "$LINENO" 5
19540     fi
19541     AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_ENCRYPT"
19542 fi
19543
19544
19545 # PSK
19546 # Check whether --enable-psk was given.
19547 if test "${enable_psk+set}" = set; then :
19548   enableval=$enable_psk;  ENABLED_PSK=$enableval
19549 else
19550    ENABLED_PSK=no
19551
19552 fi
19553
19554
19555 if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no"
19556 then
19557     AM_CFLAGS="$AM_CFLAGS -DNO_PSK"
19558 fi
19559
19560 if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "yes"
19561 then
19562     ENABLED_PSK=yes
19563 fi
19564
19565
19566 # ERROR STRINGS
19567 # Check whether --enable-errorstrings was given.
19568 if test "${enable_errorstrings+set}" = set; then :
19569   enableval=$enable_errorstrings;  ENABLED_ERROR_STRINGS=$enableval
19570 else
19571    ENABLED_ERROR_STRINGS=yes
19572
19573 fi
19574
19575
19576 if test "$ENABLED_ERROR_STRINGS" = "no"
19577 then
19578     AM_CFLAGS="$AM_CFLAGS -DNO_ERROR_STRINGS"
19579 else
19580     # turn off error strings if leanpsk on
19581     if test "$ENABLED_LEANPSK" = "yes"
19582     then
19583         AM_CFLAGS="$AM_CFLAGS -DNO_ERROR_STRINGS"
19584         ENABLED_ERROR_STRINGS=no
19585     fi
19586 fi
19587
19588
19589 # OLD TLS
19590 # Check whether --enable-oldtls was given.
19591 if test "${enable_oldtls+set}" = set; then :
19592   enableval=$enable_oldtls;  ENABLED_OLD_TLS=$enableval
19593 else
19594    ENABLED_OLD_TLS=yes
19595
19596 fi
19597
19598
19599 if test "$ENABLED_OLD_TLS" = "no"
19600 then
19601     AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
19602 else
19603     # turn off old if leanpsk on
19604     if test "$ENABLED_LEANPSK" = "yes"
19605     then
19606         AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
19607         ENABLED_OLD_TLS=no
19608     fi
19609 fi
19610
19611
19612 # STACK SIZE info for examples
19613 # Check whether --enable-stacksize was given.
19614 if test "${enable_stacksize+set}" = set; then :
19615   enableval=$enable_stacksize;  ENABLED_STACKSIZE=$enableval
19616 else
19617    ENABLED_STACKSIZE=no
19618
19619 fi
19620
19621
19622 if test "$ENABLED_STACKSIZE" = "yes"
19623 then
19624     ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
19625 if test "x$ac_cv_func_posix_memalign" = xyes; then :
19626
19627 else
19628   as_fn_error $? "stacksize needs posix_memalign" "$LINENO" 5
19629 fi
19630
19631     ac_fn_c_check_func "$LINENO" "pthread_attr_setstack" "ac_cv_func_pthread_attr_setstack"
19632 if test "x$ac_cv_func_pthread_attr_setstack" = xyes; then :
19633
19634 else
19635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstack in -lpthread" >&5
19636 $as_echo_n "checking for pthread_attr_setstack in -lpthread... " >&6; }
19637 if ${ac_cv_lib_pthread_pthread_attr_setstack+:} false; then :
19638   $as_echo_n "(cached) " >&6
19639 else
19640   ac_check_lib_save_LIBS=$LIBS
19641 LIBS="-lpthread  $LIBS"
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h.  */
19644
19645 /* Override any GCC internal prototype to avoid an error.
19646    Use char because int might match the return type of a GCC
19647    builtin and then its argument prototype would still apply.  */
19648 #ifdef __cplusplus
19649 extern "C"
19650 #endif
19651 char pthread_attr_setstack ();
19652 int
19653 main ()
19654 {
19655 return pthread_attr_setstack ();
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 if ac_fn_c_try_link "$LINENO"; then :
19661   ac_cv_lib_pthread_pthread_attr_setstack=yes
19662 else
19663   ac_cv_lib_pthread_pthread_attr_setstack=no
19664 fi
19665 rm -f core conftest.err conftest.$ac_objext \
19666     conftest$ac_exeext conftest.$ac_ext
19667 LIBS=$ac_check_lib_save_LIBS
19668 fi
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_setstack" >&5
19670 $as_echo "$ac_cv_lib_pthread_pthread_attr_setstack" >&6; }
19671 if test "x$ac_cv_lib_pthread_pthread_attr_setstack" = xyes; then :
19672   cat >>confdefs.h <<_ACEOF
19673 #define HAVE_LIBPTHREAD 1
19674 _ACEOF
19675
19676   LIBS="-lpthread $LIBS"
19677
19678 fi
19679
19680 fi
19681
19682     AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE -DWOLFSSL_LOW_MEMORY"
19683 fi
19684
19685
19686 # MEMORY
19687 # Check whether --enable-memory was given.
19688 if test "${enable_memory+set}" = set; then :
19689   enableval=$enable_memory;  ENABLED_MEMORY=$enableval
19690 else
19691    ENABLED_MEMORY=yes
19692
19693 fi
19694
19695
19696 if test "$ENABLED_MEMORY" = "no"
19697 then
19698     AM_CFLAGS="$AM_CFLAGS -DNO_WOLFSSL_MEMORY"
19699 else
19700     # turn off memory cb if leanpsk on
19701     if test "$ENABLED_LEANPSK" = "yes"
19702     then
19703         # but don't turn on NO_WOLFSSL_MEMORY because using own
19704         ENABLED_MEMORY=no
19705     fi
19706 fi
19707
19708  if test "x$ENABLED_MEMORY" = "xyes"; then
19709   BUILD_MEMORY_TRUE=
19710   BUILD_MEMORY_FALSE='#'
19711 else
19712   BUILD_MEMORY_TRUE='#'
19713   BUILD_MEMORY_FALSE=
19714 fi
19715
19716
19717
19718 # RSA
19719 # Check whether --enable-rsa was given.
19720 if test "${enable_rsa+set}" = set; then :
19721   enableval=$enable_rsa;  ENABLED_RSA=$enableval
19722 else
19723    ENABLED_RSA=yes
19724
19725 fi
19726
19727
19728 if test "$ENABLED_RSA" = "no"
19729 then
19730     AM_CFLAGS="$AM_CFLAGS -DNO_RSA"
19731 else
19732     # turn off RSA if leanpsk on
19733     if test "$ENABLED_LEANPSK" = "yes"
19734     then
19735         AM_CFLAGS="$AM_CFLAGS -DNO_RSA"
19736         ENABLED_RSA=no
19737     fi
19738 fi
19739
19740  if test "x$ENABLED_RSA" = "xyes"; then
19741   BUILD_RSA_TRUE=
19742   BUILD_RSA_FALSE='#'
19743 else
19744   BUILD_RSA_TRUE='#'
19745   BUILD_RSA_FALSE=
19746 fi
19747
19748
19749
19750 # DH
19751 # Check whether --enable-dh was given.
19752 if test "${enable_dh+set}" = set; then :
19753   enableval=$enable_dh;  ENABLED_DH=$enableval
19754 else
19755    ENABLED_DH=yes
19756
19757 fi
19758
19759
19760 if test "$ENABLED_DH" = "no"
19761 then
19762     AM_CFLAGS="$AM_CFLAGS -DNO_DH"
19763 else
19764     # turn off DH if leanpsk on
19765     if test "$ENABLED_LEANPSK" = "yes"
19766     then
19767         AM_CFLAGS="$AM_CFLAGS -DNO_DH"
19768         ENABLED_DH=no
19769     fi
19770 fi
19771
19772  if test "x$ENABLED_DH" = "xyes"; then
19773   BUILD_DH_TRUE=
19774   BUILD_DH_FALSE='#'
19775 else
19776   BUILD_DH_TRUE='#'
19777   BUILD_DH_FALSE=
19778 fi
19779
19780
19781
19782 # Anonymous
19783 # Check whether --enable-anon was given.
19784 if test "${enable_anon+set}" = set; then :
19785   enableval=$enable_anon;  ENABLED_ANON=$enableval
19786 else
19787    ENABLED_ANON=no
19788
19789 fi
19790
19791
19792
19793 if test "x$ENABLED_ANON" = "xyes"
19794 then
19795     if test "x$ENABLED_DH" != "xyes"
19796     then
19797         as_fn_error $? "Anonymous suite requires DH." "$LINENO" 5
19798     fi
19799     AM_CFLAGS="$AM_CFLAGS -DHAVE_ANON"
19800 fi
19801
19802
19803 # ASN
19804 # turn off asn, which means no certs, no rsa, no dsa, no ecc,
19805 # and no big int (unless dh is on)
19806 # Check whether --enable-asn was given.
19807 if test "${enable_asn+set}" = set; then :
19808   enableval=$enable_asn;  ENABLED_ASN=$enableval
19809 else
19810    ENABLED_ASN=yes
19811
19812 fi
19813
19814
19815 if test "$ENABLED_ASN" = "no"
19816 then
19817     AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_CERTS"
19818     if test "$ENABLED_DH" = "no"
19819     then
19820         # DH needs bigint
19821         AM_CFLAGS="$AM_CFLAGS -DNO_BIG_INT"
19822     fi
19823 else
19824     # turn off ASN if leanpsk on
19825     if test "$ENABLED_LEANPSK" = "yes"
19826     then
19827         AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_CERTS -DNO_BIG_INT"
19828         ENABLED_ASN=no
19829     fi
19830 fi
19831
19832 if test "$ENABLED_RSA" = "yes" && test "$ENABLED_ASN" = "no"
19833 then
19834     as_fn_error $? "please disable rsa if disabling asn." "$LINENO" 5
19835 fi
19836
19837 if test "$ENABLED_DSA" = "yes" && test "$ENABLED_ASN" = "no"
19838 then
19839     as_fn_error $? "please disable dsa if disabling asn." "$LINENO" 5
19840 fi
19841
19842 if test "$ENABLED_ECC" = "yes" && test "$ENABLED_ASN" = "no"
19843 then
19844     as_fn_error $? "please disable ecc if disabling asn." "$LINENO" 5
19845 fi
19846
19847 if test "$ENABLED_PSK" = "no" && test "$ENABLED_ASN" = "no"
19848 then
19849     as_fn_error $? "please enable psk if disabling asn." "$LINENO" 5
19850 fi
19851
19852 # DH needs bigint
19853 if test "$ENABLED_ASN" = "no" && test "$ENABLED_DH" = "no"
19854 then
19855     ENABLED_FASTMATH=no
19856     ENABLED_SLOWMATH=no
19857 fi
19858
19859  if test "x$ENABLED_ASN" = "xyes"; then
19860   BUILD_ASN_TRUE=
19861   BUILD_ASN_FALSE='#'
19862 else
19863   BUILD_ASN_TRUE='#'
19864   BUILD_ASN_FALSE=
19865 fi
19866
19867
19868
19869 # AES
19870 # Check whether --enable-aes was given.
19871 if test "${enable_aes+set}" = set; then :
19872   enableval=$enable_aes;  ENABLED_AES=$enableval
19873 else
19874    ENABLED_AES=yes
19875
19876 fi
19877
19878
19879 if test "$ENABLED_AES" = "no"
19880 then
19881     AM_CFLAGS="$AM_CFLAGS -DNO_AES"
19882     if test "$ENABLED_AESGCM" = "yes"
19883     then
19884         as_fn_error $? "AESGCM requires AES." "$LINENO" 5
19885     fi
19886     if test "$ENABLED_AESCCM" = "yes"
19887     then
19888         as_fn_error $? "AESCCM requires AES." "$LINENO" 5
19889     fi
19890 else
19891     # turn off AES if leanpsk on
19892     if test "$ENABLED_LEANPSK" = "yes"
19893     then
19894         AM_CFLAGS="$AM_CFLAGS -DNO_AES"
19895         ENABLED_AES=no
19896     fi
19897 fi
19898
19899  if test "x$ENABLED_AES" = "xyes"; then
19900   BUILD_AES_TRUE=
19901   BUILD_AES_FALSE='#'
19902 else
19903   BUILD_AES_TRUE='#'
19904   BUILD_AES_FALSE=
19905 fi
19906
19907
19908
19909 # CODING
19910 # Check whether --enable-coding was given.
19911 if test "${enable_coding+set}" = set; then :
19912   enableval=$enable_coding;  ENABLED_CODING=$enableval
19913 else
19914    ENABLED_CODING=yes
19915
19916 fi
19917
19918
19919 if test "$ENABLED_CODING" = "no"
19920 then
19921     AM_CFLAGS="$AM_CFLAGS -DNO_CODING"
19922 else
19923     # turn off CODING if leanpsk on
19924     if test "$ENABLED_LEANPSK" = "yes"
19925     then
19926         AM_CFLAGS="$AM_CFLAGS -DNO_CODING"
19927         ENABLED_CODING=no
19928     fi
19929 fi
19930
19931  if test "x$ENABLED_CODING" = "xyes"; then
19932   BUILD_CODING_TRUE=
19933   BUILD_CODING_FALSE='#'
19934 else
19935   BUILD_CODING_TRUE='#'
19936   BUILD_CODING_FALSE=
19937 fi
19938
19939
19940
19941 # DES3
19942 # Check whether --enable-des3 was given.
19943 if test "${enable_des3+set}" = set; then :
19944   enableval=$enable_des3;  ENABLED_DES3=$enableval
19945 else
19946    ENABLED_DES3=yes
19947
19948 fi
19949
19950
19951 if test "$ENABLED_DES3" = "no"
19952 then
19953     AM_CFLAGS="$AM_CFLAGS -DNO_DES3"
19954 else
19955     # turn off DES3 if leanpsk on
19956     if test "$ENABLED_LEANPSK" = "yes"
19957     then
19958         AM_CFLAGS="$AM_CFLAGS -DNO_DES3"
19959         ENABLED_DES3=no
19960     fi
19961 fi
19962
19963  if test "x$ENABLED_DES3" = "xyes"; then
19964   BUILD_DES3_TRUE=
19965   BUILD_DES3_FALSE='#'
19966 else
19967   BUILD_DES3_TRUE='#'
19968   BUILD_DES3_FALSE=
19969 fi
19970
19971
19972
19973 # ARC4
19974 # Check whether --enable-arc4 was given.
19975 if test "${enable_arc4+set}" = set; then :
19976   enableval=$enable_arc4;  ENABLED_ARC4=$enableval
19977 else
19978    ENABLED_ARC4=no
19979
19980 fi
19981
19982
19983 if test "$ENABLED_ARC4" = "no"
19984 then
19985     AM_CFLAGS="$AM_CFLAGS -DNO_RC4"
19986 else
19987     # turn off ARC4 if leanpsk on
19988     if test "$ENABLED_LEANPSK" = "yes"
19989     then
19990         AM_CFLAGS="$AM_CFLAGS -DNO_RC4"
19991         ENABLED_ARC4=no
19992     fi
19993 fi
19994
19995  if test "x$ENABLED_ARC4" = "xyes"; then
19996   BUILD_RC4_TRUE=
19997   BUILD_RC4_FALSE='#'
19998 else
19999   BUILD_RC4_TRUE='#'
20000   BUILD_RC4_FALSE=
20001 fi
20002
20003
20004
20005 # MD5
20006 # Check whether --enable-md5 was given.
20007 if test "${enable_md5+set}" = set; then :
20008   enableval=$enable_md5;  ENABLED_MD5=$enableval
20009 else
20010    ENABLED_MD5=yes
20011
20012 fi
20013
20014
20015 if test "$ENABLED_MD5" = "no"
20016 then
20017     AM_CFLAGS="$AM_CFLAGS -DNO_MD5 -DNO_OLD_TLS"
20018 else
20019     # turn off MD5 if leanpsk on
20020     if test "$ENABLED_LEANPSK" = "yes"
20021     then
20022         AM_CFLAGS="$AM_CFLAGS -DNO_MD5 -DNO_OLD_TLS"
20023         ENABLED_MD5=no
20024     fi
20025 fi
20026
20027  if test "x$ENABLED_MD5" = "xyes"; then
20028   BUILD_MD5_TRUE=
20029   BUILD_MD5_FALSE='#'
20030 else
20031   BUILD_MD5_TRUE='#'
20032   BUILD_MD5_FALSE=
20033 fi
20034
20035
20036
20037 # SHA
20038 # Check whether --enable-sha was given.
20039 if test "${enable_sha+set}" = set; then :
20040   enableval=$enable_sha;  ENABLED_SHA=$enableval
20041 else
20042    ENABLED_SHA=yes
20043
20044 fi
20045
20046
20047 if test "$ENABLED_SHA" = "no"
20048 then
20049     AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
20050 else
20051     # turn off SHA if leanpsk on
20052     if test "$ENABLED_LEANPSK" = "yes"
20053     then
20054         AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
20055         ENABLED_SHA=no
20056     fi
20057 fi
20058
20059  if test "x$ENABLED_SHA" = "xyes"; then
20060   BUILD_SHA_TRUE=
20061   BUILD_SHA_FALSE='#'
20062 else
20063   BUILD_SHA_TRUE='#'
20064   BUILD_SHA_FALSE=
20065 fi
20066
20067
20068
20069 # MD4
20070 # Check whether --enable-md4 was given.
20071 if test "${enable_md4+set}" = set; then :
20072   enableval=$enable_md4;  ENABLED_MD4=$enableval
20073 else
20074    ENABLED_MD4=no
20075
20076 fi
20077
20078
20079 if test "$ENABLED_MD4" = "no"
20080 then
20081     AM_CFLAGS="$AM_CFLAGS -DNO_MD4"
20082 fi
20083
20084  if test "x$ENABLED_MD4" = "xyes"; then
20085   BUILD_MD4_TRUE=
20086   BUILD_MD4_FALSE='#'
20087 else
20088   BUILD_MD4_TRUE='#'
20089   BUILD_MD4_FALSE=
20090 fi
20091
20092
20093
20094 # Web Server Build
20095 # Check whether --enable-webserver was given.
20096 if test "${enable_webserver+set}" = set; then :
20097   enableval=$enable_webserver;  ENABLED_WEBSERVER=$enableval
20098 else
20099    ENABLED_WEBSERVER=no
20100
20101 fi
20102
20103
20104 if test "$ENABLED_WEBSERVER" = "yes"
20105 then
20106     AM_CFLAGS="$AM_CFLAGS -DHAVE_WEBSERVER"
20107 fi
20108
20109
20110
20111 # HC128
20112 # Check whether --enable-hc128 was given.
20113 if test "${enable_hc128+set}" = set; then :
20114   enableval=$enable_hc128;  ENABLED_HC128=$enableval
20115 else
20116    ENABLED_HC128=no
20117
20118 fi
20119
20120
20121 if test "$ENABLED_HC128" = "no"
20122 then
20123     AM_CFLAGS="$AM_CFLAGS -DNO_HC128"
20124 else
20125     AM_CFLAGS="$AM_CFLAGS -DHAVE_HC128"
20126 fi
20127
20128  if test "x$ENABLED_HC128" = "xyes"; then
20129   BUILD_HC128_TRUE=
20130   BUILD_HC128_FALSE='#'
20131 else
20132   BUILD_HC128_TRUE='#'
20133   BUILD_HC128_FALSE=
20134 fi
20135
20136
20137
20138 # RABBIT
20139 # Check whether --enable-rabbit was given.
20140 if test "${enable_rabbit+set}" = set; then :
20141   enableval=$enable_rabbit;  ENABLED_RABBIT=$enableval
20142 else
20143    ENABLED_RABBIT=no
20144
20145 fi
20146
20147
20148 if test "$ENABLED_RABBIT" = "no"
20149 then
20150     AM_CFLAGS="$AM_CFLAGS -DNO_RABBIT"
20151 else
20152     AM_CFLAGS="$AM_CFLAGS -DHAVE_RABBIT"
20153 fi
20154
20155  if test "x$ENABLED_RABBIT" = "xyes"; then
20156   BUILD_RABBIT_TRUE=
20157   BUILD_RABBIT_FALSE='#'
20158 else
20159   BUILD_RABBIT_TRUE='#'
20160   BUILD_RABBIT_FALSE=
20161 fi
20162
20163
20164
20165 # FIPS
20166 # Check whether --enable-fips was given.
20167 if test "${enable_fips+set}" = set; then :
20168   enableval=$enable_fips;  ENABLED_FIPS=$enableval
20169 else
20170    ENABLED_FIPS=no
20171
20172 fi
20173
20174
20175 if test "x$ENABLED_FIPS" = "xyes"
20176 then
20177     # requires thread local storage
20178     if test "$thread_ls_on" = "no"
20179     then
20180         as_fn_error $? "FIPS requires Thread Local Storage" "$LINENO" 5
20181     fi
20182     # requires SHA512
20183     if test "x$ENABLED_SHA512" = "xno"
20184     then
20185         ENABLED_SHA512="yes"
20186         AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHA512 -DWOLFSSL_SHA384"
20187          if test "x$ENABLED_SHA512" = "xyes"; then
20188   BUILD_SHA512_TRUE=
20189   BUILD_SHA512_FALSE='#'
20190 else
20191   BUILD_SHA512_TRUE='#'
20192   BUILD_SHA512_FALSE=
20193 fi
20194
20195     fi
20196     # requires AESGCM
20197     if test "x$ENABLED_AESGCM" != "xyes"
20198     then
20199         ENABLED_AESGCM="yes"
20200         AM_CFLAGS="$AM_CFLAGS -DHAVE_AESGCM"
20201          if test "x$ENABLED_SHA512" = "xyes"; then
20202   BUILD_SHA512_TRUE=
20203   BUILD_SHA512_FALSE='#'
20204 else
20205   BUILD_SHA512_TRUE='#'
20206   BUILD_SHA512_FALSE=
20207 fi
20208
20209     fi
20210     AM_CFLAGS="$AM_CFLAGS -DHAVE_FIPS"
20211 fi
20212
20213  if test "x$ENABLED_FIPS" = "xyes"; then
20214   BUILD_FIPS_TRUE=
20215   BUILD_FIPS_FALSE='#'
20216 else
20217   BUILD_FIPS_TRUE='#'
20218   BUILD_FIPS_FALSE=
20219 fi
20220
20221
20222
20223 # set POLY1305 default
20224 POLY1305_DEFAULT=yes
20225
20226 if test "x$ENABLED_FIPS" = "xyes"
20227 then
20228 POLY1305_DEFAULT=no
20229 fi
20230
20231 # POLY1305
20232 # Check whether --enable-poly1305 was given.
20233 if test "${enable_poly1305+set}" = set; then :
20234   enableval=$enable_poly1305;  ENABLED_POLY1305=$enableval
20235 else
20236    ENABLED_POLY1305=$POLY1305_DEFAULT
20237
20238 fi
20239
20240
20241 # lean psk does't need poly1305
20242 if test "$ENABLED_LEANPSK" = "yes"
20243 then
20244     ENABLED_POLY1305=no
20245 fi
20246
20247 if test "$ENABLED_POLY1305" = "yes"
20248 then
20249     AM_CFLAGS="$AM_CFLAGS -DHAVE_POLY1305 -DHAVE_ONE_TIME_AUTH"
20250 fi
20251
20252  if test "x$ENABLED_POLY1305" = "xyes"; then
20253   BUILD_POLY1305_TRUE=
20254   BUILD_POLY1305_FALSE='#'
20255 else
20256   BUILD_POLY1305_TRUE='#'
20257   BUILD_POLY1305_FALSE=
20258 fi
20259
20260
20261
20262 # set CHACHA default
20263 CHACHA_DEFAULT=yes
20264
20265 if test "x$ENABLED_FIPS" = "xyes"
20266 then
20267 CHACHA_DEFAULT=no
20268 fi
20269
20270 # CHACHA
20271 # Check whether --enable-chacha was given.
20272 if test "${enable_chacha+set}" = set; then :
20273   enableval=$enable_chacha;  ENABLED_CHACHA=$enableval
20274 else
20275    ENABLED_CHACHA=$CHACHA_DEFAULT
20276
20277 fi
20278
20279
20280 # lean psk does't need chacha
20281 if test "$ENABLED_LEANPSK" = "yes"
20282 then
20283     ENABLED_CHACHA=no
20284 fi
20285
20286 if test "$ENABLED_CHACHA" = "yes"
20287 then
20288     AM_CFLAGS="$AM_CFLAGS -DHAVE_CHACHA"
20289 fi
20290
20291  if test "x$ENABLED_CHACHA" = "xyes"; then
20292   BUILD_CHACHA_TRUE=
20293   BUILD_CHACHA_FALSE='#'
20294 else
20295   BUILD_CHACHA_TRUE='#'
20296   BUILD_CHACHA_FALSE=
20297 fi
20298
20299
20300
20301 # Hash DRBG
20302 # Check whether --enable-hashdrbg was given.
20303 if test "${enable_hashdrbg+set}" = set; then :
20304   enableval=$enable_hashdrbg;  ENABLED_HASHDRBG=$enableval
20305 else
20306    ENABLED_HASHDRBG=yes
20307
20308 fi
20309
20310
20311 if test "x$ENABLED_HASHDRBG" = "xyes"
20312 then
20313     AM_CFLAGS="$AM_CFLAGS -DHAVE_HASHDRBG"
20314 else
20315     # turn on Hash DRBG if FIPS is on or ARC4 is off
20316     if test "x$ENABLED_FIPS" = "xyes" || test "x$ENABLED_ARC4" = "xno"
20317     then
20318         AM_CFLAGS="$AM_CFLAGS -DHAVE_HASHDRBG"
20319         ENABLED_HASHDRBG=yes
20320     fi
20321 fi
20322
20323
20324 # Filesystem Build
20325 # Check whether --enable-filesystem was given.
20326 if test "${enable_filesystem+set}" = set; then :
20327   enableval=$enable_filesystem;  ENABLED_FILESYSTEM=$enableval
20328 else
20329    ENABLED_FILESYSTEM=yes
20330
20331 fi
20332
20333
20334 if test "$ENABLED_FILESYSTEM" = "no"
20335 then
20336     AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
20337 else
20338     # turn off filesystem if leanpsk on
20339     if test "$ENABLED_LEANPSK" = "yes"
20340     then
20341         AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
20342         ENABLED_FILESYSTEM=no
20343     fi
20344 fi
20345
20346
20347 # inline Build
20348 # Check whether --enable-inline was given.
20349 if test "${enable_inline+set}" = set; then :
20350   enableval=$enable_inline;  ENABLED_INLINE=$enableval
20351 else
20352    ENABLED_INLINE=yes
20353
20354 fi
20355
20356
20357 if test "$ENABLED_INLINE" = "no"
20358 then
20359     AM_CFLAGS="$AM_CFLAGS -DNO_INLINE"
20360 fi
20361
20362  if test "x$ENABLED_INLINE" = "xyes"; then
20363   BUILD_INLINE_TRUE=
20364   BUILD_INLINE_FALSE='#'
20365 else
20366   BUILD_INLINE_TRUE='#'
20367   BUILD_INLINE_FALSE=
20368 fi
20369
20370
20371
20372 # OCSP
20373 # Check whether --enable-ocsp was given.
20374 if test "${enable_ocsp+set}" = set; then :
20375   enableval=$enable_ocsp;  ENABLED_OCSP=$enableval
20376 else
20377    ENABLED_OCSP=no
20378 fi
20379
20380
20381 if test "$ENABLED_OCSP" = "yes"
20382 then
20383     AM_CFLAGS="$AM_CFLAGS -DHAVE_OCSP"
20384 fi
20385
20386  if test "x$ENABLED_OCSP" = "xyes"; then
20387   BUILD_OCSP_TRUE=
20388   BUILD_OCSP_FALSE='#'
20389 else
20390   BUILD_OCSP_TRUE='#'
20391   BUILD_OCSP_FALSE=
20392 fi
20393
20394
20395
20396 if test "$ENABLED_OCSP" = "yes"
20397 then
20398     # check openssl command tool for testing ocsp
20399     # Extract the first word of "openssl", so it can be a program name with args.
20400 set dummy openssl; ac_word=$2
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20402 $as_echo_n "checking for $ac_word... " >&6; }
20403 if ${ac_cv_prog_HAVE_OPENSSL_CMD+:} false; then :
20404   $as_echo_n "(cached) " >&6
20405 else
20406   if test -n "$HAVE_OPENSSL_CMD"; then
20407   ac_cv_prog_HAVE_OPENSSL_CMD="$HAVE_OPENSSL_CMD" # Let the user override the test.
20408 else
20409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20410 for as_dir in $PATH
20411 do
20412   IFS=$as_save_IFS
20413   test -z "$as_dir" && as_dir=.
20414     for ac_exec_ext in '' $ac_executable_extensions; do
20415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20416     ac_cv_prog_HAVE_OPENSSL_CMD="yes"
20417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20418     break 2
20419   fi
20420 done
20421   done
20422 IFS=$as_save_IFS
20423
20424   test -z "$ac_cv_prog_HAVE_OPENSSL_CMD" && ac_cv_prog_HAVE_OPENSSL_CMD="no"
20425 fi
20426 fi
20427 HAVE_OPENSSL_CMD=$ac_cv_prog_HAVE_OPENSSL_CMD
20428 if test -n "$HAVE_OPENSSL_CMD"; then
20429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OPENSSL_CMD" >&5
20430 $as_echo "$HAVE_OPENSSL_CMD" >&6; }
20431 else
20432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20433 $as_echo "no" >&6; }
20434 fi
20435
20436
20437
20438     if test "$HAVE_OPENSSL_CMD" = "yes"
20439     then
20440         AM_CFLAGS="$AM_CFLAGS -DHAVE_OPENSSL_CMD"
20441     else
20442         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: openssl command line tool not available for testing ocsp" >&5
20443 $as_echo "$as_me: WARNING: openssl command line tool not available for testing ocsp" >&2;}
20444     fi
20445 fi
20446
20447
20448 # CRL
20449 # Check whether --enable-crl was given.
20450 if test "${enable_crl+set}" = set; then :
20451   enableval=$enable_crl;  ENABLED_CRL=$enableval
20452 else
20453    ENABLED_CRL=no
20454 fi
20455
20456
20457 if test "$ENABLED_CRL" = "yes"
20458 then
20459     AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL"
20460 fi
20461
20462  if test "x$ENABLED_CRL" = "xyes"; then
20463   BUILD_CRL_TRUE=
20464   BUILD_CRL_FALSE='#'
20465 else
20466   BUILD_CRL_TRUE='#'
20467   BUILD_CRL_FALSE=
20468 fi
20469
20470
20471
20472 # CRL Monitor
20473 # Check whether --enable-crl-monitor was given.
20474 if test "${enable_crl_monitor+set}" = set; then :
20475   enableval=$enable_crl_monitor;  ENABLED_CRL_MONITOR=$enableval
20476 else
20477    ENABLED_CRL_MONITOR=no
20478 fi
20479
20480
20481 if test "$ENABLED_CRL_MONITOR" = "yes"
20482 then
20483     case $host_os in
20484     *linux* | *darwin* | *freebsd*)
20485         AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_MONITOR" ;;
20486     *)
20487         as_fn_error $? "crl monitor only allowed on linux, OS X, or freebsd" "$LINENO" 5 ;;
20488     esac
20489 fi
20490
20491  if test "x$ENABLED_CRL_MONITOR" = "xyes"; then
20492   BUILD_CRL_MONITOR_TRUE=
20493   BUILD_CRL_MONITOR_FALSE='#'
20494 else
20495   BUILD_CRL_MONITOR_TRUE='#'
20496   BUILD_CRL_MONITOR_FALSE=
20497 fi
20498
20499
20500
20501 # NTRU
20502 ENABLED_NTRU="no"
20503 tryntrudir=""
20504
20505 # Check whether --with-ntru was given.
20506 if test "${with_ntru+set}" = set; then :
20507   withval=$with_ntru;
20508         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTRU" >&5
20509 $as_echo_n "checking for NTRU... " >&6; }
20510         CPPFLAGS="$CPPFLAGS -DHAVE_NTRU"
20511         LIBS="$LIBS -lNTRUEncrypt"
20512
20513         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514 /* end confdefs.h.  */
20515 #include <ntru_crypto_drbg.h>
20516 int
20517 main ()
20518 {
20519  ntru_crypto_drbg_instantiate(0, 0, 0, 0, 0);
20520   ;
20521   return 0;
20522 }
20523 _ACEOF
20524 if ac_fn_c_try_link "$LINENO"; then :
20525    ntru_linked=yes
20526 else
20527    ntru_linked=no
20528 fi
20529 rm -f core conftest.err conftest.$ac_objext \
20530     conftest$ac_exeext conftest.$ac_ext
20531
20532         if test "x$ntru_linked" == "xno" ; then
20533             if test "x$withval" != "xno" ; then
20534                 tryntrudir=$withval
20535             fi
20536             if test "x$withval" == "xyes" ; then
20537                 tryntrudir="/usr"
20538             fi
20539
20540             LDFLAGS="$AM_LDFLAGS -L$tryntrudir/lib"
20541             CPPFLAGS="$CPPFLAGS -I$tryntrudir/include"
20542
20543             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h.  */
20545 #include <ntru_crypto_drbg.h>
20546 int
20547 main ()
20548 {
20549  ntru_crypto_drbg_instantiate(0, 0, 0, 0, 0);
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 if ac_fn_c_try_link "$LINENO"; then :
20555    ntru_linked=yes
20556 else
20557    ntru_linked=no
20558 fi
20559 rm -f core conftest.err conftest.$ac_objext \
20560     conftest$ac_exeext conftest.$ac_ext
20561
20562             if test "x$ntru_linked" == "xno" ; then
20563                 as_fn_error $? "NTRU isn't found.
20564                 If it's already installed, specify its path using --with-ntru=/dir/" "$LINENO" 5
20565             fi
20566             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20567 $as_echo "yes" >&6; }
20568             AM_LDFLAGS="$AM_LDFLAGS -L$tryntrudir/lib"
20569         else
20570             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20571 $as_echo "yes" >&6; }
20572         fi
20573
20574         AM_CFLAGS="$AM_CFLAGS -DHAVE_NTRU"
20575         ENABLED_NTRU="yes"
20576
20577
20578 fi
20579
20580
20581  if test "x$ENABLED_NTRU" = "xyes"; then
20582   BUILD_NTRU_TRUE=
20583   BUILD_NTRU_FALSE='#'
20584 else
20585   BUILD_NTRU_TRUE='#'
20586   BUILD_NTRU_FALSE=
20587 fi
20588
20589
20590 if test "$ENABLED_NTRU" = "yes" && test "$ENABLED_SMALL" = "yes"
20591 then
20592     as_fn_error $? "cannot enable ntru and small, ntru requires TLS which small turns off." "$LINENO" 5
20593 fi
20594
20595 # SNI
20596 # Check whether --enable-sni was given.
20597 if test "${enable_sni+set}" = set; then :
20598   enableval=$enable_sni;  ENABLED_SNI=$enableval
20599 else
20600    ENABLED_SNI=no
20601
20602 fi
20603
20604
20605 if test "x$ENABLED_SNI" = "xyes"
20606 then
20607     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SNI"
20608 fi
20609
20610 # Maximum Fragment Length
20611 # Check whether --enable-maxfragment was given.
20612 if test "${enable_maxfragment+set}" = set; then :
20613   enableval=$enable_maxfragment;  ENABLED_MAX_FRAGMENT=$enableval
20614 else
20615    ENABLED_MAX_FRAGMENT=no
20616
20617 fi
20618
20619
20620 if test "x$ENABLED_MAX_FRAGMENT" = "xyes"
20621 then
20622     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_MAX_FRAGMENT"
20623 fi
20624
20625 # Truncated HMAC
20626 # Check whether --enable-truncatedhmac was given.
20627 if test "${enable_truncatedhmac+set}" = set; then :
20628   enableval=$enable_truncatedhmac;  ENABLED_TRUNCATED_HMAC=$enableval
20629 else
20630    ENABLED_TRUNCATED_HMAC=no
20631
20632 fi
20633
20634
20635 if test "x$ENABLED_TRUNCATED_HMAC" = "xyes"
20636 then
20637     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_TRUNCATED_HMAC"
20638 fi
20639
20640 # Renegotiation Indication - (FAKE Secure Renegotiation)
20641 # Check whether --enable-renegotiation-indication was given.
20642 if test "${enable_renegotiation_indication+set}" = set; then :
20643   enableval=$enable_renegotiation_indication;  ENABLED_RENEGOTIATION_INDICATION=$enableval
20644 else
20645    ENABLED_RENEGOTIATION_INDICATION=no
20646
20647 fi
20648
20649
20650 if test "x$ENABLED_RENEGOTIATION_INDICATION" = "xyes"
20651 then
20652     AM_CFLAGS="$AM_CFLAGS -DHAVE_RENEGOTIATION_INDICATION"
20653 fi
20654
20655 # Secure Renegotiation
20656 # Check whether --enable-secure-renegotiation was given.
20657 if test "${enable_secure_renegotiation+set}" = set; then :
20658   enableval=$enable_secure_renegotiation;  ENABLED_SECURE_RENEGOTIATION=$enableval
20659 else
20660    ENABLED_SECURE_RENEGOTIATION=no
20661
20662 fi
20663
20664
20665 if test "x$ENABLED_SECURE_RENEGOTIATION" = "xyes"
20666 then
20667     if test "x$ENABLED_RENEGOTIATION_INDICATION" = "xyes"
20668     then
20669         as_fn_error $? "cannot enable renegotiation-indication and secure-renegotiation." "$LINENO" 5
20670     fi
20671     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SECURE_RENEGOTIATION"
20672 fi
20673
20674 # Supported Elliptic Curves Extensions
20675 # Check whether --enable-supportedcurves was given.
20676 if test "${enable_supportedcurves+set}" = set; then :
20677   enableval=$enable_supportedcurves;  ENABLED_SUPPORTED_CURVES=$enableval
20678 else
20679    ENABLED_SUPPORTED_CURVES=no
20680
20681 fi
20682
20683
20684 if test "x$ENABLED_SUPPORTED_CURVES" = "xyes"
20685 then
20686     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SUPPORTED_CURVES"
20687 fi
20688
20689 # Session Ticket Extension
20690 # Check whether --enable-session-ticket was given.
20691 if test "${enable_session_ticket+set}" = set; then :
20692   enableval=$enable_session_ticket;  ENABLED_SESSION_TICKET=$enableval
20693 else
20694    ENABLED_SESSION_TICKET=no
20695
20696 fi
20697
20698
20699 if test "x$ENABLED_SESSION_TICKET" = "xyes"
20700 then
20701     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SESSION_TICKET"
20702 fi
20703
20704 # TLS Extensions
20705 # Check whether --enable-tlsx was given.
20706 if test "${enable_tlsx+set}" = set; then :
20707   enableval=$enable_tlsx;  ENABLED_TLSX=$enableval
20708 else
20709    ENABLED_TLSX=no
20710
20711 fi
20712
20713
20714 if test "x$ENABLED_TLSX" = "xyes"
20715 then
20716         ENABLED_SNI=yes
20717         ENABLED_MAX_FRAGMENT=yes
20718         ENABLED_TRUNCATED_HMAC=yes
20719         ENABLED_SUPPORTED_CURVES=yes
20720     AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SNI -DHAVE_MAX_FRAGMENT -DHAVE_TRUNCATED_HMAC -DHAVE_SUPPORTED_CURVES"
20721 fi
20722
20723 # PKCS7
20724 # Check whether --enable-pkcs7 was given.
20725 if test "${enable_pkcs7+set}" = set; then :
20726   enableval=$enable_pkcs7;  ENABLED_PKCS7=$enableval
20727 else
20728    ENABLED_PKCS7=no
20729 fi
20730
20731
20732 if test "$ENABLED_PKCS7" = "yes"
20733 then
20734     AM_CFLAGS="$AM_CFLAGS -DHAVE_PKCS7"
20735 fi
20736
20737  if test "x$ENABLED_PKCS7" = "xyes"; then
20738   BUILD_PKCS7_TRUE=
20739   BUILD_PKCS7_FALSE='#'
20740 else
20741   BUILD_PKCS7_TRUE='#'
20742   BUILD_PKCS7_FALSE=
20743 fi
20744
20745
20746
20747 # Simple Certificate Enrollment Protocol (SCEP)
20748 # Check whether --enable-scep was given.
20749 if test "${enable_scep+set}" = set; then :
20750   enableval=$enable_scep;  ENABLED_WOLFSCEP=$enableval
20751 else
20752    ENABLED_WOLFSCEP=no
20753
20754 fi
20755
20756 if test "$ENABLED_WOLFSCEP" = "yes"
20757 then
20758     # Enable prereqs if not already enabled
20759     if test "x$ENABLED_KEYGEN" = "xno"
20760     then
20761         ENABLED_KEYGEN="yes"
20762         AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_KEY_GEN"
20763     fi
20764     if test "x$ENABLED_CERTGEN" = "xno"
20765     then
20766         ENABLED_CERTGEN="yes"
20767         AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_GEN"
20768     fi
20769     if test "x$ENABLED_CERTREQ" = "xno"
20770     then
20771         ENABLED_CERTREQ="yes"
20772         AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_REQ"
20773     fi
20774     if test "x$ENABLED_PKCS7" = "xno"
20775     then
20776         ENABLED_PKCS7="yes"
20777         AM_CFLAGS="$AM_CFLAGS -DHAVE_PKCS7"
20778          if test "x$ENABLED_PKCS7" = "xyes"; then
20779   BUILD_PKCS7_TRUE=
20780   BUILD_PKCS7_FALSE='#'
20781 else
20782   BUILD_PKCS7_TRUE='#'
20783   BUILD_PKCS7_FALSE=
20784 fi
20785
20786     fi
20787     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_WOLFSCEP"
20788 fi
20789
20790
20791 # Small Stack
20792 # Check whether --enable-smallstack was given.
20793 if test "${enable_smallstack+set}" = set; then :
20794   enableval=$enable_smallstack;  ENABLED_SMALL_STACK=$enableval
20795 else
20796    ENABLED_SMALL_STACK=no
20797
20798 fi
20799
20800
20801 if test "x$ENABLED_SMALL_STACK" = "xyes"
20802 then
20803     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SMALL_STACK"
20804 fi
20805
20806
20807 #valgrind
20808 # Check whether --enable-valgrind was given.
20809 if test "${enable_valgrind+set}" = set; then :
20810   enableval=$enable_valgrind;  ENABLED_VALGRIND=$enableval
20811 else
20812    ENABLED_VALGRIND=no
20813
20814 fi
20815
20816
20817 if test "$ENABLED_VALGRIND" = "yes"
20818 then
20819     # Extract the first word of "valgrind", so it can be a program name with args.
20820 set dummy valgrind; ac_word=$2
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20822 $as_echo_n "checking for $ac_word... " >&6; }
20823 if ${ac_cv_prog_HAVE_VALGRIND+:} false; then :
20824   $as_echo_n "(cached) " >&6
20825 else
20826   if test -n "$HAVE_VALGRIND"; then
20827   ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test.
20828 else
20829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20830 for as_dir in $PATH
20831 do
20832   IFS=$as_save_IFS
20833   test -z "$as_dir" && as_dir=.
20834     for ac_exec_ext in '' $ac_executable_extensions; do
20835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20836     ac_cv_prog_HAVE_VALGRIND="yes"
20837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20838     break 2
20839   fi
20840 done
20841   done
20842 IFS=$as_save_IFS
20843
20844   test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no"
20845 fi
20846 fi
20847 HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND
20848 if test -n "$HAVE_VALGRIND"; then
20849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_VALGRIND" >&5
20850 $as_echo "$HAVE_VALGRIND" >&6; }
20851 else
20852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20853 $as_echo "no" >&6; }
20854 fi
20855
20856
20857
20858     if test "$HAVE_VALGRIND" = "no"
20859     then
20860         as_fn_error $? "Valgrind not found." "$LINENO" 5
20861     fi
20862     enable_shared=no
20863     enable_static=yes
20864     AM_CFLAGS="$AM_CFLAGS -DHAVE_VALGRIND"
20865 fi
20866
20867  if test "x$ENABLED_VALGRIND" = "xyes"; then
20868   USE_VALGRIND_TRUE=
20869   USE_VALGRIND_FALSE='#'
20870 else
20871   USE_VALGRIND_TRUE='#'
20872   USE_VALGRIND_FALSE=
20873 fi
20874
20875
20876
20877 # Test certs, use internal cert functions for extra testing
20878 # Check whether --enable-testcert was given.
20879 if test "${enable_testcert+set}" = set; then :
20880   enableval=$enable_testcert;  ENABLED_TESTCERT=$enableval
20881 else
20882    ENABLED_TESTCERT=no
20883
20884 fi
20885
20886
20887 if test "$ENABLED_TESTCERT" = "yes"
20888 then
20889     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_TEST_CERT"
20890 fi
20891
20892
20893 # I/O Pool, an example to show user how to override memory handler and use
20894 # a pool for the input/output buffer requests
20895 # Check whether --enable-iopool was given.
20896 if test "${enable_iopool+set}" = set; then :
20897   enableval=$enable_iopool;  ENABLED_IOPOOL=$enableval
20898 else
20899    ENABLED_IOPOOL=no
20900
20901 fi
20902
20903
20904 if test "$ENABLED_IOPOOL" = "yes"
20905 then
20906     if test "$thread_ls_on" = "no"
20907     then
20908         as_fn_error $? "I/O Pool example requires Thread Local Storage" "$LINENO" 5
20909     fi
20910     AM_CFLAGS="$AM_CFLAGS -DHAVE_IO_POOL -DXMALLOC_USER"
20911 fi
20912
20913
20914 # Certificate Service Support
20915 # Check whether --enable-certservice was given.
20916 if test "${enable_certservice+set}" = set; then :
20917   enableval=$enable_certservice;  ENABLED_CERT_SERVICE=$enableval
20918 else
20919    ENABLED_CERT_SERVICE=no
20920
20921 fi
20922
20923 if test "$ENABLED_CERT_SERVICE" = "yes"
20924 then
20925     # Requires ecc,certgen, and opensslextra make sure on
20926     if test "x$ENABLED_CERTGEN" = "xno"
20927     then
20928         ENABLED_CERTGEN="yes"
20929         AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_GEN"
20930     fi
20931     if test "x$ENABLED_ECC" = "xno"
20932     then
20933         ENABLED_ECC="yes"
20934         AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR"
20935          if test "x$ENABLED_ECC" = "xyes"; then
20936   BUILD_ECC_TRUE=
20937   BUILD_ECC_FALSE='#'
20938 else
20939   BUILD_ECC_TRUE='#'
20940   BUILD_ECC_FALSE=
20941 fi
20942
20943     fi
20944     if test "x$ENABLED_OPENSSLEXTRA" = "xno"
20945     then
20946         ENABLED_OPENSSLEXTRA="yes"
20947         AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
20948     fi
20949     AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_HAVE_CERT_SERVICE"
20950 fi
20951
20952
20953 # PWDBASED has to come after certservice since we want it on w/o explicit on
20954 # PWDBASED
20955 # Check whether --enable-pwdbased was given.
20956 if test "${enable_pwdbased+set}" = set; then :
20957   enableval=$enable_pwdbased;  ENABLED_PWDBASED=$enableval
20958 else
20959    ENABLED_PWDBASED=no
20960
20961 fi
20962
20963
20964 if test "$ENABLED_PWDBASED" = "no"
20965 then
20966     if test "$ENABLED_OPENSSLEXTRA" = "yes" || test "$ENABLED_WEBSERVER" = "yes"
20967     then
20968         # opensslextra and webserver needs pwdbased
20969         ENABLED_PWDBASED=yes
20970     else
20971         AM_CFLAGS="$AM_CFLAGS -DNO_PWDBASED"
20972     fi
20973 fi
20974
20975  if test "x$ENABLED_PWDBASED" = "xyes"; then
20976   BUILD_PWDBASED_TRUE=
20977   BUILD_PWDBASED_FALSE='#'
20978 else
20979   BUILD_PWDBASED_TRUE='#'
20980   BUILD_PWDBASED_FALSE=
20981 fi
20982
20983
20984
20985 # set fastmath default
20986 FASTMATH_DEFAULT=no
20987
20988 if test "$host_cpu" = "x86_64"
20989 then
20990 FASTMATH_DEFAULT=yes
20991 fi
20992
20993 # fastmath
20994 # Check whether --enable-fastmath was given.
20995 if test "${enable_fastmath+set}" = set; then :
20996   enableval=$enable_fastmath;  ENABLED_FASTMATH=$enableval
20997 else
20998    ENABLED_FASTMATH=$FASTMATH_DEFAULT
20999
21000 fi
21001
21002
21003 if test "x$ENABLED_FASTMATH" = "xyes"
21004 then
21005     # turn off fastmth if leanpsk on or asn off (w/o dh)
21006     if test "$ENABLED_LEANPSK" = "yes" || test "$ENABLED_ASN" = "no"
21007     then
21008         if test "$ENABLED_DH" = "no"
21009         then
21010             ENABLED_FASTMATH=no
21011         else
21012             AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
21013             ENABLED_SLOWMATH="no"
21014         fi
21015     else
21016         AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
21017         ENABLED_SLOWMATH="no"
21018     fi
21019     if test "$host_cpu" = "x86_64"
21020     then
21021         # Have settings.h set FP_MAX_BITS higher if user didn't set directly
21022         AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_X86_64_BUILD"
21023     fi
21024 fi
21025
21026
21027 # fast HUGE math
21028 # Check whether --enable-fasthugemath was given.
21029 if test "${enable_fasthugemath+set}" = set; then :
21030   enableval=$enable_fasthugemath;  ENABLED_FASTHUGEMATH=$enableval
21031 else
21032    ENABLED_FASTHUGEMATH=no
21033
21034 fi
21035
21036
21037 if test "$ENABLED_BUMP" = "yes"
21038 then
21039     ENABLED_FASTHUGEMATH="yes"
21040 fi
21041
21042 if test "$ENABLED_FASTHUGEMATH" = "yes"
21043 then
21044     ENABLED_FASTMATH="yes"
21045     AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
21046     ENABLED_SLOWMATH="no"
21047 fi
21048
21049  if test "x$ENABLED_FASTMATH" = "xyes"; then
21050   BUILD_FASTMATH_TRUE=
21051   BUILD_FASTMATH_FALSE='#'
21052 else
21053   BUILD_FASTMATH_TRUE='#'
21054   BUILD_FASTMATH_FALSE=
21055 fi
21056
21057  if test "x$ENABLED_SLOWMATH" = "xyes"; then
21058   BUILD_SLOWMATH_TRUE=
21059   BUILD_SLOWMATH_FALSE='#'
21060 else
21061   BUILD_SLOWMATH_TRUE='#'
21062   BUILD_SLOWMATH_FALSE=
21063 fi
21064
21065
21066
21067 # Enable Examples, used to disable examples
21068 # Check whether --enable-examples was given.
21069 if test "${enable_examples+set}" = set; then :
21070   enableval=$enable_examples;  ENABLED_EXAMPLES=$enableval
21071 else
21072    ENABLED_EXAMPLES=yes
21073
21074 fi
21075
21076
21077 if test "x$ENABLED_FILESYSTEM" = "xno"; then :
21078   ENABLED_EXAMPLES="no"
21079 fi
21080 if test "x$ENABLED_INLINE" = "xno"; then :
21081   ENABLED_EXAMPLES="no"
21082 fi
21083  if test "x$ENABLED_EXAMPLES" = "xyes"; then
21084   BUILD_EXAMPLES_TRUE=
21085   BUILD_EXAMPLES_FALSE='#'
21086 else
21087   BUILD_EXAMPLES_TRUE='#'
21088   BUILD_EXAMPLES_FALSE=
21089 fi
21090
21091
21092
21093 # LIBZ
21094 ENABLED_LIBZ="no"
21095 trylibzdir=""
21096
21097 # Check whether --with-libz was given.
21098 if test "${with_libz+set}" = set; then :
21099   withval=$with_libz;
21100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
21101 $as_echo_n "checking for libz... " >&6; }
21102         CPPFLAGS="$CPPFLAGS -DHAVE_LIBZ"
21103         LIBS="$LIBS -lz"
21104
21105         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21106 /* end confdefs.h.  */
21107 #include <zlib.h>
21108 int
21109 main ()
21110 {
21111  deflateInit(0, 8);
21112   ;
21113   return 0;
21114 }
21115 _ACEOF
21116 if ac_fn_c_try_link "$LINENO"; then :
21117    libz_linked=yes
21118 else
21119    libz_linked=no
21120 fi
21121 rm -f core conftest.err conftest.$ac_objext \
21122     conftest$ac_exeext conftest.$ac_ext
21123
21124         if test "x$libz_linked" == "xno" ; then
21125             if test "x$withval" != "xno" ; then
21126                 trylibzdir=$withval
21127             fi
21128             if test "x$withval" == "xyes" ; then
21129                 trylibzdir="/usr"
21130             fi
21131
21132             AM_LDFLAGS="$AM_LDFLAGS -L$trylibzdir/lib"
21133             CPPFLAGS="$CPPFLAGS -I$trylibzdir/include"
21134
21135             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21136 /* end confdefs.h.  */
21137 #include <zlib.h>
21138 int
21139 main ()
21140 {
21141  deflateInit(0, 8);
21142   ;
21143   return 0;
21144 }
21145 _ACEOF
21146 if ac_fn_c_try_link "$LINENO"; then :
21147    libz_linked=yes
21148 else
21149    libz_linked=no
21150 fi
21151 rm -f core conftest.err conftest.$ac_objext \
21152     conftest$ac_exeext conftest.$ac_ext
21153
21154             if test "x$libz_linked" == "xno" ; then
21155                 as_fn_error $? "libz isn't found.
21156                 If it's already installed, specify its path using --with-libz=/dir/" "$LINENO" 5
21157             fi
21158             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21159 $as_echo "yes" >&6; }
21160         else
21161             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21162 $as_echo "yes" >&6; }
21163         fi
21164         ENABLED_LIBZ="yes"
21165
21166
21167 fi
21168
21169  if test "x$ENABLED_LIBZ" = "xyes"; then
21170   BUILD_LIBZ_TRUE=
21171   BUILD_LIBZ_FALSE='#'
21172 else
21173   BUILD_LIBZ_TRUE='#'
21174   BUILD_LIBZ_FALSE=
21175 fi
21176
21177
21178
21179 # cavium
21180 trycaviumdir=""
21181
21182 # Check whether --with-cavium was given.
21183 if test "${with_cavium+set}" = set; then :
21184   withval=$with_cavium;
21185         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cavium" >&5
21186 $as_echo_n "checking for cavium... " >&6; }
21187         CPPFLAGS="$CPPFLAGS -DHAVE_CAVIUM"
21188
21189             if test "x$withval" == "xyes" ; then
21190                 as_fn_error $? "need a PATH for --with-cavium" "$LINENO" 5
21191             fi
21192             if test "x$withval" != "xno" ; then
21193                 trycaviumdir=$withval
21194             fi
21195
21196             LDFLAGS="$AM_LDFLAGS $trycaviumdir/api/cavium_common.o"
21197             CPPFLAGS="$CPPFLAGS -I$trycaviumdir/include"
21198
21199             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21200 /* end confdefs.h.  */
21201 #include "cavium_common.h"
21202 int
21203 main ()
21204 {
21205  CspShutdown(CAVIUM_DEV_ID);
21206   ;
21207   return 0;
21208 }
21209 _ACEOF
21210 if ac_fn_c_try_link "$LINENO"; then :
21211    cavium_linked=yes
21212 else
21213    cavium_linked=no
21214 fi
21215 rm -f core conftest.err conftest.$ac_objext \
21216     conftest$ac_exeext conftest.$ac_ext
21217
21218             if test "x$cavium_linked" == "xno" ; then
21219                 as_fn_error $? "cavium isn't found.
21220                 If it's already installed, specify its path using --with-cavium=/dir/" "$LINENO" 5
21221             fi
21222             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21223 $as_echo "yes" >&6; }
21224             enable_shared=no
21225             enable_static=yes
21226
21227
21228 fi
21229
21230
21231
21232 # microchip api
21233 # Check whether --enable-mcapi was given.
21234 if test "${enable_mcapi+set}" = set; then :
21235   enableval=$enable_mcapi;  ENABLED_MCAPI=$enableval
21236 else
21237    ENABLED_MCAPI=no
21238
21239 fi
21240
21241
21242 if test "$ENABLED_MCAPI" = "yes"
21243 then
21244     AM_CFLAGS="$AM_CFLAGS -DHAVE_MCAPI -DWOLFSSL_AES_COUNTER -DWOLFSSL_AES_DIRECT"
21245 fi
21246
21247 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_SHA512" = "no"
21248 then
21249     as_fn_error $? "please enable sha512 if enabling mcapi." "$LINENO" 5
21250 fi
21251
21252 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_ECC" = "no"
21253 then
21254     as_fn_error $? "please enable ecc if enabling mcapi." "$LINENO" 5
21255 fi
21256
21257 if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_LIBZ" = "no"
21258 then
21259     as_fn_error $? "please use --with-libz if enabling mcapi." "$LINENO" 5
21260 fi
21261
21262  if test "x$ENABLED_MCAPI" = "xyes"; then
21263   BUILD_MCAPI_TRUE=
21264   BUILD_MCAPI_FALSE='#'
21265 else
21266   BUILD_MCAPI_TRUE='#'
21267   BUILD_MCAPI_FALSE=
21268 fi
21269
21270
21271
21272 # wolfSSL JNI
21273 # Check whether --enable-jni was given.
21274 if test "${enable_jni+set}" = set; then :
21275   enableval=$enable_jni;  ENABLED_JNI=$enableval
21276 else
21277    ENABLED_JNI=no
21278
21279 fi
21280
21281 if test "$ENABLED_JNI" = "yes"
21282 then
21283     # Enable prereqs if not already enabled
21284     if test "x$ENABLED_DTLS" = "xno"
21285     then
21286         ENABLED_DTLS="yes"
21287         AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DTLS"
21288     fi
21289     if test "x$ENABLED_OPENSSLEXTRA" = "xno"
21290     then
21291         ENABLED_OPENSSLEXTRA="yes"
21292         AM_CFLAGS="$AM_CFLAGS -DOPENSSL_EXTRA"
21293     fi
21294     if test "x$ENABLED_CRL" = "xno"
21295     then
21296         ENABLED_CRL="yes"
21297         AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL"
21298          if test "x$ENABLED_CRL" = "xyes"; then
21299   BUILD_CRL_TRUE=
21300   BUILD_CRL_FALSE='#'
21301 else
21302   BUILD_CRL_TRUE='#'
21303   BUILD_CRL_FALSE=
21304 fi
21305
21306     fi
21307     if test "x$ENABLED_OCSP" = "xno"
21308     then
21309         ENABLED_OCSP="yes"
21310         AM_CFLAGS="$AM_CFLAGS -DHAVE_OCSP"
21311          if test "x$ENABLED_OCSP" = "xyes"; then
21312   BUILD_OCSP_TRUE=
21313   BUILD_OCSP_FALSE='#'
21314 else
21315   BUILD_OCSP_TRUE='#'
21316   BUILD_OCSP_FALSE=
21317 fi
21318
21319     fi
21320     if test "x$ENABLED_CRL_MONITOR" = "xno"
21321     then
21322         ENABLED_CRL_MONITOR="yes"
21323         AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_MONITOR"
21324     fi
21325     if test "x$ENABLED_SAVESESSION" = "xno"
21326     then
21327         ENABLED_SAVESESSION="yes"
21328         AM_CFLAGS="$AM_CFLAGS -DPERSIST_SESSION_CACHE"
21329     fi
21330     if test "x$ENABLED_SAVECERT" = "xno"
21331     then
21332         ENABLED_SAVECERT="yes"
21333         AM_CFLAGS="$AM_CFLAGS -DPERSIST_CERT_CACHE"
21334     fi
21335     if test "x$ENABLED_ATOMICUSER" = "xno"
21336     then
21337         ENABLED_ATOMICUSER="yes"
21338         AM_CFLAGS="$AM_CFLAGS -DATOMIC_USER"
21339     fi
21340     if test "x$ENABLED_ECC" = "xno"
21341     then
21342         ENABLED_ECC="yes"
21343         AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC"
21344     fi
21345     if test "x$ENABLED_PKCALLBACKS" = "xno"
21346     then
21347         ENABLED_PKCALLBACKS="yes"
21348         AM_CFLAGS="$AM_CFLAGS -DHAVE_PK_CALLBACKS"
21349     fi
21350     if test "x$ENABLED_DH" = "xno"
21351     then
21352         ENABLED_DH="yes"
21353         AM_CFLAGS="$AM_CFLAGS -DHAVE_DH"
21354     fi
21355 fi
21356
21357
21358 # Check for build-type conflicts
21359 if test "x$ENABLED_MAXSTRENGTH" = "xyes" && \
21360        test "x$ENABLED_LEANPSK" = "xyes"; then :
21361   as_fn_error $? "Cannot use Max Strength and Lean PSK at the same time." "$LINENO" 5
21362 fi
21363
21364
21365 # Update CFLAGS based on options
21366 if test "x$ENABLED_MAXSTRENGTH" = "xyes"; then :
21367   AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_MAX_STRENGTH"
21368 fi
21369
21370 if test "x$ENABLED_MAXSTRENGTH" = "xyes" && \
21371        test "x$ENABLED_OLD_TLS" = "xyes"; then :
21372   AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
21373        ENABLED_OLD_TLS=no
21374 fi
21375
21376
21377 # OPTIMIZE FLAGS
21378 if test "$GCC" = "yes"
21379 then
21380     AM_CFLAGS="$AM_CFLAGS -Wall -Wno-unused"
21381     if test "$ax_enable_debug" = "no"
21382     then
21383         if test "$ENABLED_FASTMATH" = "yes"
21384         then
21385             AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_FAST_CFLAGS"
21386             if test "$ENABLED_FASTHUGEMATH" = "yes"
21387             then
21388                 AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_HUGE_CFLAGS"
21389             fi
21390         else
21391             AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_CFLAGS"
21392         fi
21393     fi
21394 fi
21395
21396 # ICC command line warning for non supported warning flags
21397 if test "$CC" = "icc"
21398 then
21399     AM_CFLAGS="$AM_CFLAGS -wd10006"
21400 fi
21401
21402
21403
21404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21405 $as_echo_n "checking for library containing gethostbyname... " >&6; }
21406 if ${ac_cv_search_gethostbyname+:} false; then :
21407   $as_echo_n "(cached) " >&6
21408 else
21409   ac_func_search_save_LIBS=$LIBS
21410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21411 /* end confdefs.h.  */
21412
21413 /* Override any GCC internal prototype to avoid an error.
21414    Use char because int might match the return type of a GCC
21415    builtin and then its argument prototype would still apply.  */
21416 #ifdef __cplusplus
21417 extern "C"
21418 #endif
21419 char gethostbyname ();
21420 int
21421 main ()
21422 {
21423 return gethostbyname ();
21424   ;
21425   return 0;
21426 }
21427 _ACEOF
21428 for ac_lib in '' nsl; do
21429   if test -z "$ac_lib"; then
21430     ac_res="none required"
21431   else
21432     ac_res=-l$ac_lib
21433     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21434   fi
21435   if ac_fn_c_try_link "$LINENO"; then :
21436   ac_cv_search_gethostbyname=$ac_res
21437 fi
21438 rm -f core conftest.err conftest.$ac_objext \
21439     conftest$ac_exeext
21440   if ${ac_cv_search_gethostbyname+:} false; then :
21441   break
21442 fi
21443 done
21444 if ${ac_cv_search_gethostbyname+:} false; then :
21445
21446 else
21447   ac_cv_search_gethostbyname=no
21448 fi
21449 rm conftest.$ac_ext
21450 LIBS=$ac_func_search_save_LIBS
21451 fi
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21453 $as_echo "$ac_cv_search_gethostbyname" >&6; }
21454 ac_res=$ac_cv_search_gethostbyname
21455 if test "$ac_res" != no; then :
21456   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21457
21458 fi
21459
21460         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21461 $as_echo_n "checking for library containing socket... " >&6; }
21462 if ${ac_cv_search_socket+:} false; then :
21463   $as_echo_n "(cached) " >&6
21464 else
21465   ac_func_search_save_LIBS=$LIBS
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h.  */
21468
21469 /* Override any GCC internal prototype to avoid an error.
21470    Use char because int might match the return type of a GCC
21471    builtin and then its argument prototype would still apply.  */
21472 #ifdef __cplusplus
21473 extern "C"
21474 #endif
21475 char socket ();
21476 int
21477 main ()
21478 {
21479 return socket ();
21480   ;
21481   return 0;
21482 }
21483 _ACEOF
21484 for ac_lib in '' socket; do
21485   if test -z "$ac_lib"; then
21486     ac_res="none required"
21487   else
21488     ac_res=-l$ac_lib
21489     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21490   fi
21491   if ac_fn_c_try_link "$LINENO"; then :
21492   ac_cv_search_socket=$ac_res
21493 fi
21494 rm -f core conftest.err conftest.$ac_objext \
21495     conftest$ac_exeext
21496   if ${ac_cv_search_socket+:} false; then :
21497   break
21498 fi
21499 done
21500 if ${ac_cv_search_socket+:} false; then :
21501
21502 else
21503   ac_cv_search_socket=no
21504 fi
21505 rm conftest.$ac_ext
21506 LIBS=$ac_func_search_save_LIBS
21507 fi
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21509 $as_echo "$ac_cv_search_socket" >&6; }
21510 ac_res=$ac_cv_search_socket
21511 if test "$ac_res" != no; then :
21512   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21513
21514 else
21515
21516                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21517 $as_echo_n "checking for socket in -lsocket... " >&6; }
21518 if ${ac_cv_lib_socket_socket+:} false; then :
21519   $as_echo_n "(cached) " >&6
21520 else
21521   ac_check_lib_save_LIBS=$LIBS
21522 LIBS="-lsocket -lnsl $LIBS"
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h.  */
21525
21526 /* Override any GCC internal prototype to avoid an error.
21527    Use char because int might match the return type of a GCC
21528    builtin and then its argument prototype would still apply.  */
21529 #ifdef __cplusplus
21530 extern "C"
21531 #endif
21532 char socket ();
21533 int
21534 main ()
21535 {
21536 return socket ();
21537   ;
21538   return 0;
21539 }
21540 _ACEOF
21541 if ac_fn_c_try_link "$LINENO"; then :
21542   ac_cv_lib_socket_socket=yes
21543 else
21544   ac_cv_lib_socket_socket=no
21545 fi
21546 rm -f core conftest.err conftest.$ac_objext \
21547     conftest$ac_exeext conftest.$ac_ext
21548 LIBS=$ac_check_lib_save_LIBS
21549 fi
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21551 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21552 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21553   LIBS="-lsocket -lnsl $LIBS"
21554 fi
21555
21556 fi
21557
21558
21559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vcs system" >&5
21560 $as_echo_n "checking for vcs system... " >&6; }
21561 if ${ac_cv_vcs_system+:} false; then :
21562   $as_echo_n "(cached) " >&6
21563 else
21564   ac_cv_vcs_system="none"
21565       if test -d ".bzr"; then :
21566   ac_cv_vcs_system="bazaar"
21567 fi
21568       if test -d ".svn"; then :
21569   ac_cv_vcs_system="svn"
21570 fi
21571       if test -d ".hg"; then :
21572   ac_cv_vcs_system="mercurial"
21573 fi
21574       if test -d ".git"; then :
21575   ac_cv_vcs_system="git"
21576 fi
21577
21578 fi
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vcs_system" >&5
21580 $as_echo "$ac_cv_vcs_system" >&6; }
21581
21582 cat >>confdefs.h <<_ACEOF
21583 #define VCS_SYSTEM "$ac_cv_vcs_system"
21584 _ACEOF
21585
21586
21587
21588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vcs checkout" >&5
21589 $as_echo_n "checking for vcs checkout... " >&6; }
21590 if ${ac_cv_vcs_checkout+:} false; then :
21591   $as_echo_n "(cached) " >&6
21592 else
21593   if test "x$ac_cv_vcs_system" != "xnone"; then :
21594   ac_cv_vcs_checkout=yes
21595 else
21596   ac_cv_vcs_checkout=no
21597 fi
21598
21599 fi
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vcs_checkout" >&5
21601 $as_echo "$ac_cv_vcs_checkout" >&6; }
21602
21603      if test "x$ac_cv_vcs_checkout" = "xyes"; then
21604   IS_VCS_CHECKOUT_TRUE=
21605   IS_VCS_CHECKOUT_FALSE='#'
21606 else
21607   IS_VCS_CHECKOUT_TRUE='#'
21608   IS_VCS_CHECKOUT_FALSE=
21609 fi
21610
21611     if test "x$ac_cv_vcs_checkout" = "xyes"; then :
21612
21613 $as_echo "#define VCS_CHECKOUT 1" >>confdefs.h
21614
21615 else
21616
21617 $as_echo "#define VCS_CHECKOUT 0" >>confdefs.h
21618
21619 fi
21620
21621
21622
21623
21624
21625             AX_HARDEN_LIB=
21626       ax_append_compile_link_flags_extra=
21627       if test "x$ac_cv_vcs_checkout" = "xyes"; then :
21628
21629         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Werror" >&5
21630 $as_echo_n "checking whether the linker accepts -Werror... " >&6; }
21631 if ${ax_cv_check_ldflags___Werror+:} false; then :
21632   $as_echo_n "(cached) " >&6
21633 else
21634
21635   ax_check_save_flags=$LDFLAGS
21636   LDFLAGS="$LDFLAGS  -Werror"
21637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21638 /* end confdefs.h.  */
21639
21640 int
21641 main ()
21642 {
21643
21644   ;
21645   return 0;
21646 }
21647 _ACEOF
21648 if ac_fn_c_try_link "$LINENO"; then :
21649   ax_cv_check_ldflags___Werror=yes
21650 else
21651   ax_cv_check_ldflags___Werror=no
21652 fi
21653 rm -f core conftest.err conftest.$ac_objext \
21654     conftest$ac_exeext conftest.$ac_ext
21655   LDFLAGS=$ax_check_save_flags
21656 fi
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Werror" >&5
21658 $as_echo "$ax_cv_check_ldflags___Werror" >&6; }
21659 if test x"$ax_cv_check_ldflags___Werror" = xyes; then :
21660
21661           AX_HARDEN_LIB="-Werror $AX_HARDEN_LIB"
21662
21663 else
21664   :
21665 fi
21666
21667
21668 else
21669
21670         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Werror" >&5
21671 $as_echo_n "checking whether the linker accepts -Werror... " >&6; }
21672 if ${ax_cv_check_ldflags___Werror+:} false; then :
21673   $as_echo_n "(cached) " >&6
21674 else
21675
21676   ax_check_save_flags=$LDFLAGS
21677   LDFLAGS="$LDFLAGS  -Werror"
21678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21679 /* end confdefs.h.  */
21680
21681 int
21682 main ()
21683 {
21684
21685   ;
21686   return 0;
21687 }
21688 _ACEOF
21689 if ac_fn_c_try_link "$LINENO"; then :
21690   ax_cv_check_ldflags___Werror=yes
21691 else
21692   ax_cv_check_ldflags___Werror=no
21693 fi
21694 rm -f core conftest.err conftest.$ac_objext \
21695     conftest$ac_exeext conftest.$ac_ext
21696   LDFLAGS=$ax_check_save_flags
21697 fi
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Werror" >&5
21699 $as_echo "$ax_cv_check_ldflags___Werror" >&6; }
21700 if test x"$ax_cv_check_ldflags___Werror" = xyes; then :
21701
21702           ax_append_compile_link_flags_extra='-Werror'
21703
21704 else
21705   :
21706 fi
21707
21708
21709 fi
21710
21711       as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_append_compile_link_flags_extra_-z relro -z now" | $as_tr_sh`
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -z relro -z now" >&5
21713 $as_echo_n "checking whether the linker accepts -z relro -z now... " >&6; }
21714 if eval \${$as_CACHEVAR+:} false; then :
21715   $as_echo_n "(cached) " >&6
21716 else
21717
21718   ax_check_save_flags=$LDFLAGS
21719   LDFLAGS="$LDFLAGS $ax_append_compile_link_flags_extra -z relro -z now"
21720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21721 /* end confdefs.h.  */
21722
21723 int
21724 main ()
21725 {
21726
21727   ;
21728   return 0;
21729 }
21730 _ACEOF
21731 if ac_fn_c_try_link "$LINENO"; then :
21732   eval "$as_CACHEVAR=yes"
21733 else
21734   eval "$as_CACHEVAR=no"
21735 fi
21736 rm -f core conftest.err conftest.$ac_objext \
21737     conftest$ac_exeext conftest.$ac_ext
21738   LDFLAGS=$ax_check_save_flags
21739 fi
21740 eval ac_res=\$$as_CACHEVAR
21741                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21742 $as_echo "$ac_res" >&6; }
21743 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21744
21745         AX_HARDEN_LIB="-z relro -z now $AX_HARDEN_LIB"
21746
21747 else
21748   :
21749 fi
21750
21751
21752       as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_append_compile_link_flags_extra_-pie" | $as_tr_sh`
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
21754 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
21755 if eval \${$as_CACHEVAR+:} false; then :
21756   $as_echo_n "(cached) " >&6
21757 else
21758
21759   ax_check_save_flags=$LDFLAGS
21760   LDFLAGS="$LDFLAGS $ax_append_compile_link_flags_extra -pie"
21761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21762 /* end confdefs.h.  */
21763
21764 int
21765 main ()
21766 {
21767
21768   ;
21769   return 0;
21770 }
21771 _ACEOF
21772 if ac_fn_c_try_link "$LINENO"; then :
21773   eval "$as_CACHEVAR=yes"
21774 else
21775   eval "$as_CACHEVAR=no"
21776 fi
21777 rm -f core conftest.err conftest.$ac_objext \
21778     conftest$ac_exeext conftest.$ac_ext
21779   LDFLAGS=$ax_check_save_flags
21780 fi
21781 eval ac_res=\$$as_CACHEVAR
21782                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21783 $as_echo "$ac_res" >&6; }
21784 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21785
21786           AX_HARDEN_LIB="-pie $AX_HARDEN_LIB"
21787
21788 else
21789   :
21790 fi
21791
21792
21793       LIB="$LIB $AX_HARDEN_LIB"
21794
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
21796 $as_echo_n "checking whether C compiler accepts ... " >&6; }
21797 if ${ax_cv_check_cflags__+:} false; then :
21798   $as_echo_n "(cached) " >&6
21799 else
21800
21801   ax_check_save_flags=$CFLAGS
21802   CFLAGS="$CFLAGS  "
21803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h.  */
21805
21806 int
21807 main ()
21808 {
21809
21810   ;
21811   return 0;
21812 }
21813 _ACEOF
21814 if ac_fn_c_try_compile "$LINENO"; then :
21815   ax_cv_check_cflags__=yes
21816 else
21817   ax_cv_check_cflags__=no
21818 fi
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820   CFLAGS=$ax_check_save_flags
21821 fi
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
21823 $as_echo "$ax_cv_check_cflags__" >&6; }
21824 if test x"$ax_cv_check_cflags__" = xyes; then :
21825   :
21826 else
21827   :
21828 fi
21829
21830 if ${CFLAGS+:} false; then :
21831   case " $CFLAGS " in
21832     *"  "*)
21833       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
21834   (: CFLAGS already contains ) 2>&5
21835   ac_status=$?
21836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21837   test $ac_status = 0; }
21838       ;;
21839     *)
21840       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
21841   (: CFLAGS="$CFLAGS ") 2>&5
21842   ac_status=$?
21843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21844   test $ac_status = 0; }
21845       CFLAGS="$CFLAGS "
21846       ;;
21847    esac
21848 else
21849   CFLAGS=""
21850 fi
21851
21852
21853
21854
21855       ac_ext=c
21856 ac_cpp='$CPP $CPPFLAGS'
21857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21860
21861
21862       CFLAGS=
21863       ac_cv_warnings_as_errors=no
21864       ax_append_compile_cflags_extra=
21865       if test "$ac_cv_vcs_checkout" = "yes"; then :
21866
21867
21868
21869 for flag in -Werror; do
21870   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21872 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21873 if eval \${$as_CACHEVAR+:} false; then :
21874   $as_echo_n "(cached) " >&6
21875 else
21876
21877   ax_check_save_flags=$CFLAGS
21878   CFLAGS="$CFLAGS  $flag"
21879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21880 /* end confdefs.h.  */
21881
21882 int
21883 main ()
21884 {
21885
21886   ;
21887   return 0;
21888 }
21889 _ACEOF
21890 if ac_fn_c_try_compile "$LINENO"; then :
21891   eval "$as_CACHEVAR=yes"
21892 else
21893   eval "$as_CACHEVAR=no"
21894 fi
21895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21896   CFLAGS=$ax_check_save_flags
21897 fi
21898 eval ac_res=\$$as_CACHEVAR
21899                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21900 $as_echo "$ac_res" >&6; }
21901 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21902   if ${CFLAGS+:} false; then :
21903   case " $CFLAGS " in
21904     *" $flag "*)
21905       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
21906   (: CFLAGS already contains $flag) 2>&5
21907   ac_status=$?
21908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21909   test $ac_status = 0; }
21910       ;;
21911     *)
21912       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
21913   (: CFLAGS="$CFLAGS $flag") 2>&5
21914   ac_status=$?
21915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21916   test $ac_status = 0; }
21917       CFLAGS="$CFLAGS $flag"
21918       ;;
21919    esac
21920 else
21921   CFLAGS="$flag"
21922 fi
21923
21924 else
21925   :
21926 fi
21927
21928 done
21929
21930         ac_cv_warnings_as_errors=yes
21931
21932 else
21933
21934
21935
21936 for flag in -Werror; do
21937   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
21939 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
21940 if eval \${$as_CACHEVAR+:} false; then :
21941   $as_echo_n "(cached) " >&6
21942 else
21943
21944   ax_check_save_flags=$CFLAGS
21945   CFLAGS="$CFLAGS  $flag"
21946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21947 /* end confdefs.h.  */
21948
21949 int
21950 main ()
21951 {
21952
21953   ;
21954   return 0;
21955 }
21956 _ACEOF
21957 if ac_fn_c_try_compile "$LINENO"; then :
21958   eval "$as_CACHEVAR=yes"
21959 else
21960   eval "$as_CACHEVAR=no"
21961 fi
21962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21963   CFLAGS=$ax_check_save_flags
21964 fi
21965 eval ac_res=\$$as_CACHEVAR
21966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21967 $as_echo "$ac_res" >&6; }
21968 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21969   if ${ax_append_compile_cflags_extra+:} false; then :
21970   case " $ax_append_compile_cflags_extra " in
21971     *" $flag "*)
21972       { { $as_echo "$as_me:${as_lineno-$LINENO}: : ax_append_compile_cflags_extra already contains \$flag"; } >&5
21973   (: ax_append_compile_cflags_extra already contains $flag) 2>&5
21974   ac_status=$?
21975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21976   test $ac_status = 0; }
21977       ;;
21978     *)
21979       { { $as_echo "$as_me:${as_lineno-$LINENO}: : ax_append_compile_cflags_extra=\"\$ax_append_compile_cflags_extra \$flag\""; } >&5
21980   (: ax_append_compile_cflags_extra="$ax_append_compile_cflags_extra $flag") 2>&5
21981   ac_status=$?
21982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21983   test $ac_status = 0; }
21984       ax_append_compile_cflags_extra="$ax_append_compile_cflags_extra $flag"
21985       ;;
21986    esac
21987 else
21988   ax_append_compile_cflags_extra="$flag"
21989 fi
21990
21991 else
21992   :
21993 fi
21994
21995 done
21996
21997
21998 fi
21999
22000       if test "$ax_enable_debug" = "yes"; then :
22001
22002
22003
22004 for flag in -g; do
22005   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$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  $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 -ggdb; 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 -O0; 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
22192 fi
22193
22194
22195
22196 for flag in -Wno-pragmas; do
22197   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22199 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22200 if eval \${$as_CACHEVAR+:} false; then :
22201   $as_echo_n "(cached) " >&6
22202 else
22203
22204   ax_check_save_flags=$CFLAGS
22205   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h.  */
22208
22209 int
22210 main ()
22211 {
22212
22213   ;
22214   return 0;
22215 }
22216 _ACEOF
22217 if ac_fn_c_try_compile "$LINENO"; then :
22218   eval "$as_CACHEVAR=yes"
22219 else
22220   eval "$as_CACHEVAR=no"
22221 fi
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22223   CFLAGS=$ax_check_save_flags
22224 fi
22225 eval ac_res=\$$as_CACHEVAR
22226                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22227 $as_echo "$ac_res" >&6; }
22228 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22229   if ${CFLAGS+:} false; then :
22230   case " $CFLAGS " in
22231     *" $flag "*)
22232       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22233   (: CFLAGS already contains $flag) 2>&5
22234   ac_status=$?
22235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22236   test $ac_status = 0; }
22237       ;;
22238     *)
22239       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22240   (: CFLAGS="$CFLAGS $flag") 2>&5
22241   ac_status=$?
22242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22243   test $ac_status = 0; }
22244       CFLAGS="$CFLAGS $flag"
22245       ;;
22246    esac
22247 else
22248   CFLAGS="$flag"
22249 fi
22250
22251 else
22252   :
22253 fi
22254
22255 done
22256
22257
22258
22259
22260 for flag in -Wall; do
22261   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22263 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22264 if eval \${$as_CACHEVAR+:} false; then :
22265   $as_echo_n "(cached) " >&6
22266 else
22267
22268   ax_check_save_flags=$CFLAGS
22269   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h.  */
22272
22273 int
22274 main ()
22275 {
22276
22277   ;
22278   return 0;
22279 }
22280 _ACEOF
22281 if ac_fn_c_try_compile "$LINENO"; then :
22282   eval "$as_CACHEVAR=yes"
22283 else
22284   eval "$as_CACHEVAR=no"
22285 fi
22286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22287   CFLAGS=$ax_check_save_flags
22288 fi
22289 eval ac_res=\$$as_CACHEVAR
22290                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22291 $as_echo "$ac_res" >&6; }
22292 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22293   if ${CFLAGS+:} false; then :
22294   case " $CFLAGS " in
22295     *" $flag "*)
22296       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22297   (: CFLAGS already contains $flag) 2>&5
22298   ac_status=$?
22299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22300   test $ac_status = 0; }
22301       ;;
22302     *)
22303       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22304   (: CFLAGS="$CFLAGS $flag") 2>&5
22305   ac_status=$?
22306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22307   test $ac_status = 0; }
22308       CFLAGS="$CFLAGS $flag"
22309       ;;
22310    esac
22311 else
22312   CFLAGS="$flag"
22313 fi
22314
22315 else
22316   :
22317 fi
22318
22319 done
22320
22321
22322
22323 for flag in -Wno-strict-aliasing; do
22324   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22326 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22327 if eval \${$as_CACHEVAR+:} false; then :
22328   $as_echo_n "(cached) " >&6
22329 else
22330
22331   ax_check_save_flags=$CFLAGS
22332   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22334 /* end confdefs.h.  */
22335
22336 int
22337 main ()
22338 {
22339
22340   ;
22341   return 0;
22342 }
22343 _ACEOF
22344 if ac_fn_c_try_compile "$LINENO"; then :
22345   eval "$as_CACHEVAR=yes"
22346 else
22347   eval "$as_CACHEVAR=no"
22348 fi
22349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22350   CFLAGS=$ax_check_save_flags
22351 fi
22352 eval ac_res=\$$as_CACHEVAR
22353                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22354 $as_echo "$ac_res" >&6; }
22355 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22356   if ${CFLAGS+:} false; then :
22357   case " $CFLAGS " in
22358     *" $flag "*)
22359       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22360   (: CFLAGS already contains $flag) 2>&5
22361   ac_status=$?
22362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22363   test $ac_status = 0; }
22364       ;;
22365     *)
22366       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22367   (: CFLAGS="$CFLAGS $flag") 2>&5
22368   ac_status=$?
22369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22370   test $ac_status = 0; }
22371       CFLAGS="$CFLAGS $flag"
22372       ;;
22373    esac
22374 else
22375   CFLAGS="$flag"
22376 fi
22377
22378 else
22379   :
22380 fi
22381
22382 done
22383
22384
22385
22386 for flag in -Wextra; do
22387   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22389 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22390 if eval \${$as_CACHEVAR+:} false; then :
22391   $as_echo_n "(cached) " >&6
22392 else
22393
22394   ax_check_save_flags=$CFLAGS
22395   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22397 /* end confdefs.h.  */
22398
22399 int
22400 main ()
22401 {
22402
22403   ;
22404   return 0;
22405 }
22406 _ACEOF
22407 if ac_fn_c_try_compile "$LINENO"; then :
22408   eval "$as_CACHEVAR=yes"
22409 else
22410   eval "$as_CACHEVAR=no"
22411 fi
22412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413   CFLAGS=$ax_check_save_flags
22414 fi
22415 eval ac_res=\$$as_CACHEVAR
22416                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22417 $as_echo "$ac_res" >&6; }
22418 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22419   if ${CFLAGS+:} false; then :
22420   case " $CFLAGS " in
22421     *" $flag "*)
22422       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22423   (: CFLAGS already contains $flag) 2>&5
22424   ac_status=$?
22425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22426   test $ac_status = 0; }
22427       ;;
22428     *)
22429       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22430   (: CFLAGS="$CFLAGS $flag") 2>&5
22431   ac_status=$?
22432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22433   test $ac_status = 0; }
22434       CFLAGS="$CFLAGS $flag"
22435       ;;
22436    esac
22437 else
22438   CFLAGS="$flag"
22439 fi
22440
22441 else
22442   :
22443 fi
22444
22445 done
22446
22447
22448
22449 for flag in -Wunknown-pragmas; do
22450   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22452 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22453 if eval \${$as_CACHEVAR+:} false; then :
22454   $as_echo_n "(cached) " >&6
22455 else
22456
22457   ax_check_save_flags=$CFLAGS
22458   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h.  */
22461
22462 int
22463 main ()
22464 {
22465
22466   ;
22467   return 0;
22468 }
22469 _ACEOF
22470 if ac_fn_c_try_compile "$LINENO"; then :
22471   eval "$as_CACHEVAR=yes"
22472 else
22473   eval "$as_CACHEVAR=no"
22474 fi
22475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22476   CFLAGS=$ax_check_save_flags
22477 fi
22478 eval ac_res=\$$as_CACHEVAR
22479                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22480 $as_echo "$ac_res" >&6; }
22481 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22482   if ${CFLAGS+:} false; then :
22483   case " $CFLAGS " in
22484     *" $flag "*)
22485       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22486   (: CFLAGS already contains $flag) 2>&5
22487   ac_status=$?
22488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22489   test $ac_status = 0; }
22490       ;;
22491     *)
22492       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22493   (: CFLAGS="$CFLAGS $flag") 2>&5
22494   ac_status=$?
22495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22496   test $ac_status = 0; }
22497       CFLAGS="$CFLAGS $flag"
22498       ;;
22499    esac
22500 else
22501   CFLAGS="$flag"
22502 fi
22503
22504 else
22505   :
22506 fi
22507
22508 done
22509
22510
22511
22512 for flag in -Wthis-test-should-fail; do
22513   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22515 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22516 if eval \${$as_CACHEVAR+:} false; then :
22517   $as_echo_n "(cached) " >&6
22518 else
22519
22520   ax_check_save_flags=$CFLAGS
22521   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22523 /* end confdefs.h.  */
22524
22525 int
22526 main ()
22527 {
22528
22529   ;
22530   return 0;
22531 }
22532 _ACEOF
22533 if ac_fn_c_try_compile "$LINENO"; then :
22534   eval "$as_CACHEVAR=yes"
22535 else
22536   eval "$as_CACHEVAR=no"
22537 fi
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539   CFLAGS=$ax_check_save_flags
22540 fi
22541 eval ac_res=\$$as_CACHEVAR
22542                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22543 $as_echo "$ac_res" >&6; }
22544 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22545   if ${CFLAGS+:} false; then :
22546   case " $CFLAGS " in
22547     *" $flag "*)
22548       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22549   (: CFLAGS already contains $flag) 2>&5
22550   ac_status=$?
22551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22552   test $ac_status = 0; }
22553       ;;
22554     *)
22555       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22556   (: CFLAGS="$CFLAGS $flag") 2>&5
22557   ac_status=$?
22558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22559   test $ac_status = 0; }
22560       CFLAGS="$CFLAGS $flag"
22561       ;;
22562    esac
22563 else
22564   CFLAGS="$flag"
22565 fi
22566
22567 else
22568   :
22569 fi
22570
22571 done
22572
22573             if test "$CC" = "clang"; then :
22574
22575 else
22576
22577
22578
22579 for flag in --param=ssp-buffer-size=1; do
22580   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22582 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22583 if eval \${$as_CACHEVAR+:} false; then :
22584   $as_echo_n "(cached) " >&6
22585 else
22586
22587   ax_check_save_flags=$CFLAGS
22588   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22590 /* end confdefs.h.  */
22591
22592 int
22593 main ()
22594 {
22595
22596   ;
22597   return 0;
22598 }
22599 _ACEOF
22600 if ac_fn_c_try_compile "$LINENO"; then :
22601   eval "$as_CACHEVAR=yes"
22602 else
22603   eval "$as_CACHEVAR=no"
22604 fi
22605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22606   CFLAGS=$ax_check_save_flags
22607 fi
22608 eval ac_res=\$$as_CACHEVAR
22609                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22610 $as_echo "$ac_res" >&6; }
22611 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22612   if ${CFLAGS+:} false; then :
22613   case " $CFLAGS " in
22614     *" $flag "*)
22615       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22616   (: CFLAGS already contains $flag) 2>&5
22617   ac_status=$?
22618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22619   test $ac_status = 0; }
22620       ;;
22621     *)
22622       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22623   (: CFLAGS="$CFLAGS $flag") 2>&5
22624   ac_status=$?
22625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626   test $ac_status = 0; }
22627       CFLAGS="$CFLAGS $flag"
22628       ;;
22629    esac
22630 else
22631   CFLAGS="$flag"
22632 fi
22633
22634 else
22635   :
22636 fi
22637
22638 done
22639
22640
22641 fi
22642
22643
22644 for flag in -Waddress; do
22645   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22647 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22648 if eval \${$as_CACHEVAR+:} false; then :
22649   $as_echo_n "(cached) " >&6
22650 else
22651
22652   ax_check_save_flags=$CFLAGS
22653   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22655 /* end confdefs.h.  */
22656
22657 int
22658 main ()
22659 {
22660
22661   ;
22662   return 0;
22663 }
22664 _ACEOF
22665 if ac_fn_c_try_compile "$LINENO"; then :
22666   eval "$as_CACHEVAR=yes"
22667 else
22668   eval "$as_CACHEVAR=no"
22669 fi
22670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22671   CFLAGS=$ax_check_save_flags
22672 fi
22673 eval ac_res=\$$as_CACHEVAR
22674                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22675 $as_echo "$ac_res" >&6; }
22676 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22677   if ${CFLAGS+:} false; then :
22678   case " $CFLAGS " in
22679     *" $flag "*)
22680       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22681   (: CFLAGS already contains $flag) 2>&5
22682   ac_status=$?
22683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22684   test $ac_status = 0; }
22685       ;;
22686     *)
22687       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22688   (: CFLAGS="$CFLAGS $flag") 2>&5
22689   ac_status=$?
22690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22691   test $ac_status = 0; }
22692       CFLAGS="$CFLAGS $flag"
22693       ;;
22694    esac
22695 else
22696   CFLAGS="$flag"
22697 fi
22698
22699 else
22700   :
22701 fi
22702
22703 done
22704
22705
22706
22707 for flag in -Warray-bounds; do
22708   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22710 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22711 if eval \${$as_CACHEVAR+:} false; then :
22712   $as_echo_n "(cached) " >&6
22713 else
22714
22715   ax_check_save_flags=$CFLAGS
22716   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718 /* end confdefs.h.  */
22719
22720 int
22721 main ()
22722 {
22723
22724   ;
22725   return 0;
22726 }
22727 _ACEOF
22728 if ac_fn_c_try_compile "$LINENO"; then :
22729   eval "$as_CACHEVAR=yes"
22730 else
22731   eval "$as_CACHEVAR=no"
22732 fi
22733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22734   CFLAGS=$ax_check_save_flags
22735 fi
22736 eval ac_res=\$$as_CACHEVAR
22737                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22738 $as_echo "$ac_res" >&6; }
22739 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22740   if ${CFLAGS+:} false; then :
22741   case " $CFLAGS " in
22742     *" $flag "*)
22743       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22744   (: CFLAGS already contains $flag) 2>&5
22745   ac_status=$?
22746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747   test $ac_status = 0; }
22748       ;;
22749     *)
22750       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22751   (: CFLAGS="$CFLAGS $flag") 2>&5
22752   ac_status=$?
22753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754   test $ac_status = 0; }
22755       CFLAGS="$CFLAGS $flag"
22756       ;;
22757    esac
22758 else
22759   CFLAGS="$flag"
22760 fi
22761
22762 else
22763   :
22764 fi
22765
22766 done
22767
22768
22769
22770 for flag in -Wbad-function-cast; do
22771   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22773 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22774 if eval \${$as_CACHEVAR+:} false; then :
22775   $as_echo_n "(cached) " >&6
22776 else
22777
22778   ax_check_save_flags=$CFLAGS
22779   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22781 /* end confdefs.h.  */
22782
22783 int
22784 main ()
22785 {
22786
22787   ;
22788   return 0;
22789 }
22790 _ACEOF
22791 if ac_fn_c_try_compile "$LINENO"; then :
22792   eval "$as_CACHEVAR=yes"
22793 else
22794   eval "$as_CACHEVAR=no"
22795 fi
22796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797   CFLAGS=$ax_check_save_flags
22798 fi
22799 eval ac_res=\$$as_CACHEVAR
22800                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22801 $as_echo "$ac_res" >&6; }
22802 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22803   if ${CFLAGS+:} false; then :
22804   case " $CFLAGS " in
22805     *" $flag "*)
22806       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22807   (: CFLAGS already contains $flag) 2>&5
22808   ac_status=$?
22809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22810   test $ac_status = 0; }
22811       ;;
22812     *)
22813       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22814   (: CFLAGS="$CFLAGS $flag") 2>&5
22815   ac_status=$?
22816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22817   test $ac_status = 0; }
22818       CFLAGS="$CFLAGS $flag"
22819       ;;
22820    esac
22821 else
22822   CFLAGS="$flag"
22823 fi
22824
22825 else
22826   :
22827 fi
22828
22829 done
22830
22831
22832
22833 for flag in -Wchar-subscripts; do
22834   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22836 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22837 if eval \${$as_CACHEVAR+:} false; then :
22838   $as_echo_n "(cached) " >&6
22839 else
22840
22841   ax_check_save_flags=$CFLAGS
22842   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22844 /* end confdefs.h.  */
22845
22846 int
22847 main ()
22848 {
22849
22850   ;
22851   return 0;
22852 }
22853 _ACEOF
22854 if ac_fn_c_try_compile "$LINENO"; then :
22855   eval "$as_CACHEVAR=yes"
22856 else
22857   eval "$as_CACHEVAR=no"
22858 fi
22859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860   CFLAGS=$ax_check_save_flags
22861 fi
22862 eval ac_res=\$$as_CACHEVAR
22863                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22864 $as_echo "$ac_res" >&6; }
22865 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22866   if ${CFLAGS+:} false; then :
22867   case " $CFLAGS " in
22868     *" $flag "*)
22869       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22870   (: CFLAGS already contains $flag) 2>&5
22871   ac_status=$?
22872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22873   test $ac_status = 0; }
22874       ;;
22875     *)
22876       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22877   (: CFLAGS="$CFLAGS $flag") 2>&5
22878   ac_status=$?
22879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22880   test $ac_status = 0; }
22881       CFLAGS="$CFLAGS $flag"
22882       ;;
22883    esac
22884 else
22885   CFLAGS="$flag"
22886 fi
22887
22888 else
22889   :
22890 fi
22891
22892 done
22893
22894
22895
22896 for flag in -Wcomment; do
22897   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22899 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22900 if eval \${$as_CACHEVAR+:} false; then :
22901   $as_echo_n "(cached) " >&6
22902 else
22903
22904   ax_check_save_flags=$CFLAGS
22905   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22907 /* end confdefs.h.  */
22908
22909 int
22910 main ()
22911 {
22912
22913   ;
22914   return 0;
22915 }
22916 _ACEOF
22917 if ac_fn_c_try_compile "$LINENO"; then :
22918   eval "$as_CACHEVAR=yes"
22919 else
22920   eval "$as_CACHEVAR=no"
22921 fi
22922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22923   CFLAGS=$ax_check_save_flags
22924 fi
22925 eval ac_res=\$$as_CACHEVAR
22926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22927 $as_echo "$ac_res" >&6; }
22928 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22929   if ${CFLAGS+:} false; then :
22930   case " $CFLAGS " in
22931     *" $flag "*)
22932       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22933   (: CFLAGS already contains $flag) 2>&5
22934   ac_status=$?
22935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22936   test $ac_status = 0; }
22937       ;;
22938     *)
22939       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
22940   (: CFLAGS="$CFLAGS $flag") 2>&5
22941   ac_status=$?
22942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943   test $ac_status = 0; }
22944       CFLAGS="$CFLAGS $flag"
22945       ;;
22946    esac
22947 else
22948   CFLAGS="$flag"
22949 fi
22950
22951 else
22952   :
22953 fi
22954
22955 done
22956
22957
22958
22959 for flag in -Wfloat-equal; do
22960   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
22962 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
22963 if eval \${$as_CACHEVAR+:} false; then :
22964   $as_echo_n "(cached) " >&6
22965 else
22966
22967   ax_check_save_flags=$CFLAGS
22968   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
22969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22970 /* end confdefs.h.  */
22971
22972 int
22973 main ()
22974 {
22975
22976   ;
22977   return 0;
22978 }
22979 _ACEOF
22980 if ac_fn_c_try_compile "$LINENO"; then :
22981   eval "$as_CACHEVAR=yes"
22982 else
22983   eval "$as_CACHEVAR=no"
22984 fi
22985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22986   CFLAGS=$ax_check_save_flags
22987 fi
22988 eval ac_res=\$$as_CACHEVAR
22989                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22990 $as_echo "$ac_res" >&6; }
22991 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
22992   if ${CFLAGS+:} false; then :
22993   case " $CFLAGS " in
22994     *" $flag "*)
22995       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
22996   (: CFLAGS already contains $flag) 2>&5
22997   ac_status=$?
22998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22999   test $ac_status = 0; }
23000       ;;
23001     *)
23002       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23003   (: CFLAGS="$CFLAGS $flag") 2>&5
23004   ac_status=$?
23005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23006   test $ac_status = 0; }
23007       CFLAGS="$CFLAGS $flag"
23008       ;;
23009    esac
23010 else
23011   CFLAGS="$flag"
23012 fi
23013
23014 else
23015   :
23016 fi
23017
23018 done
23019
23020
23021
23022 for flag in -Wformat-security; do
23023   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23025 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23026 if eval \${$as_CACHEVAR+:} false; then :
23027   $as_echo_n "(cached) " >&6
23028 else
23029
23030   ax_check_save_flags=$CFLAGS
23031   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23033 /* end confdefs.h.  */
23034
23035 int
23036 main ()
23037 {
23038
23039   ;
23040   return 0;
23041 }
23042 _ACEOF
23043 if ac_fn_c_try_compile "$LINENO"; then :
23044   eval "$as_CACHEVAR=yes"
23045 else
23046   eval "$as_CACHEVAR=no"
23047 fi
23048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23049   CFLAGS=$ax_check_save_flags
23050 fi
23051 eval ac_res=\$$as_CACHEVAR
23052                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23053 $as_echo "$ac_res" >&6; }
23054 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23055   if ${CFLAGS+:} false; then :
23056   case " $CFLAGS " in
23057     *" $flag "*)
23058       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23059   (: CFLAGS already contains $flag) 2>&5
23060   ac_status=$?
23061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23062   test $ac_status = 0; }
23063       ;;
23064     *)
23065       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23066   (: CFLAGS="$CFLAGS $flag") 2>&5
23067   ac_status=$?
23068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23069   test $ac_status = 0; }
23070       CFLAGS="$CFLAGS $flag"
23071       ;;
23072    esac
23073 else
23074   CFLAGS="$flag"
23075 fi
23076
23077 else
23078   :
23079 fi
23080
23081 done
23082
23083
23084
23085 for flag in -Wformat=2; do
23086   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23088 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23089 if eval \${$as_CACHEVAR+:} false; then :
23090   $as_echo_n "(cached) " >&6
23091 else
23092
23093   ax_check_save_flags=$CFLAGS
23094   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23096 /* end confdefs.h.  */
23097
23098 int
23099 main ()
23100 {
23101
23102   ;
23103   return 0;
23104 }
23105 _ACEOF
23106 if ac_fn_c_try_compile "$LINENO"; then :
23107   eval "$as_CACHEVAR=yes"
23108 else
23109   eval "$as_CACHEVAR=no"
23110 fi
23111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23112   CFLAGS=$ax_check_save_flags
23113 fi
23114 eval ac_res=\$$as_CACHEVAR
23115                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23116 $as_echo "$ac_res" >&6; }
23117 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23118   if ${CFLAGS+:} false; then :
23119   case " $CFLAGS " in
23120     *" $flag "*)
23121       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23122   (: CFLAGS already contains $flag) 2>&5
23123   ac_status=$?
23124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23125   test $ac_status = 0; }
23126       ;;
23127     *)
23128       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23129   (: CFLAGS="$CFLAGS $flag") 2>&5
23130   ac_status=$?
23131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23132   test $ac_status = 0; }
23133       CFLAGS="$CFLAGS $flag"
23134       ;;
23135    esac
23136 else
23137   CFLAGS="$flag"
23138 fi
23139
23140 else
23141   :
23142 fi
23143
23144 done
23145
23146
23147
23148 for flag in -Wmaybe-uninitialized; do
23149   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23151 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23152 if eval \${$as_CACHEVAR+:} false; then :
23153   $as_echo_n "(cached) " >&6
23154 else
23155
23156   ax_check_save_flags=$CFLAGS
23157   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23159 /* end confdefs.h.  */
23160
23161 int
23162 main ()
23163 {
23164
23165   ;
23166   return 0;
23167 }
23168 _ACEOF
23169 if ac_fn_c_try_compile "$LINENO"; then :
23170   eval "$as_CACHEVAR=yes"
23171 else
23172   eval "$as_CACHEVAR=no"
23173 fi
23174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23175   CFLAGS=$ax_check_save_flags
23176 fi
23177 eval ac_res=\$$as_CACHEVAR
23178                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23179 $as_echo "$ac_res" >&6; }
23180 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23181   if ${CFLAGS+:} false; then :
23182   case " $CFLAGS " in
23183     *" $flag "*)
23184       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23185   (: CFLAGS already contains $flag) 2>&5
23186   ac_status=$?
23187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23188   test $ac_status = 0; }
23189       ;;
23190     *)
23191       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23192   (: CFLAGS="$CFLAGS $flag") 2>&5
23193   ac_status=$?
23194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23195   test $ac_status = 0; }
23196       CFLAGS="$CFLAGS $flag"
23197       ;;
23198    esac
23199 else
23200   CFLAGS="$flag"
23201 fi
23202
23203 else
23204   :
23205 fi
23206
23207 done
23208
23209
23210
23211 for flag in -Wmissing-field-initializers; do
23212   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23214 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23215 if eval \${$as_CACHEVAR+:} false; then :
23216   $as_echo_n "(cached) " >&6
23217 else
23218
23219   ax_check_save_flags=$CFLAGS
23220   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23222 /* end confdefs.h.  */
23223
23224 int
23225 main ()
23226 {
23227
23228   ;
23229   return 0;
23230 }
23231 _ACEOF
23232 if ac_fn_c_try_compile "$LINENO"; then :
23233   eval "$as_CACHEVAR=yes"
23234 else
23235   eval "$as_CACHEVAR=no"
23236 fi
23237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23238   CFLAGS=$ax_check_save_flags
23239 fi
23240 eval ac_res=\$$as_CACHEVAR
23241                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23242 $as_echo "$ac_res" >&6; }
23243 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23244   if ${CFLAGS+:} false; then :
23245   case " $CFLAGS " in
23246     *" $flag "*)
23247       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23248   (: CFLAGS already contains $flag) 2>&5
23249   ac_status=$?
23250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23251   test $ac_status = 0; }
23252       ;;
23253     *)
23254       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23255   (: CFLAGS="$CFLAGS $flag") 2>&5
23256   ac_status=$?
23257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23258   test $ac_status = 0; }
23259       CFLAGS="$CFLAGS $flag"
23260       ;;
23261    esac
23262 else
23263   CFLAGS="$flag"
23264 fi
23265
23266 else
23267   :
23268 fi
23269
23270 done
23271
23272
23273
23274 for flag in -Wmissing-noreturn; do
23275   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23277 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23278 if eval \${$as_CACHEVAR+:} false; then :
23279   $as_echo_n "(cached) " >&6
23280 else
23281
23282   ax_check_save_flags=$CFLAGS
23283   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23285 /* end confdefs.h.  */
23286
23287 int
23288 main ()
23289 {
23290
23291   ;
23292   return 0;
23293 }
23294 _ACEOF
23295 if ac_fn_c_try_compile "$LINENO"; then :
23296   eval "$as_CACHEVAR=yes"
23297 else
23298   eval "$as_CACHEVAR=no"
23299 fi
23300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23301   CFLAGS=$ax_check_save_flags
23302 fi
23303 eval ac_res=\$$as_CACHEVAR
23304                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23305 $as_echo "$ac_res" >&6; }
23306 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23307   if ${CFLAGS+:} false; then :
23308   case " $CFLAGS " in
23309     *" $flag "*)
23310       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23311   (: CFLAGS already contains $flag) 2>&5
23312   ac_status=$?
23313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23314   test $ac_status = 0; }
23315       ;;
23316     *)
23317       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23318   (: CFLAGS="$CFLAGS $flag") 2>&5
23319   ac_status=$?
23320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23321   test $ac_status = 0; }
23322       CFLAGS="$CFLAGS $flag"
23323       ;;
23324    esac
23325 else
23326   CFLAGS="$flag"
23327 fi
23328
23329 else
23330   :
23331 fi
23332
23333 done
23334
23335
23336
23337 for flag in -Wmissing-prototypes; do
23338   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23340 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23341 if eval \${$as_CACHEVAR+:} false; then :
23342   $as_echo_n "(cached) " >&6
23343 else
23344
23345   ax_check_save_flags=$CFLAGS
23346   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23348 /* end confdefs.h.  */
23349
23350 int
23351 main ()
23352 {
23353
23354   ;
23355   return 0;
23356 }
23357 _ACEOF
23358 if ac_fn_c_try_compile "$LINENO"; then :
23359   eval "$as_CACHEVAR=yes"
23360 else
23361   eval "$as_CACHEVAR=no"
23362 fi
23363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364   CFLAGS=$ax_check_save_flags
23365 fi
23366 eval ac_res=\$$as_CACHEVAR
23367                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23368 $as_echo "$ac_res" >&6; }
23369 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23370   if ${CFLAGS+:} false; then :
23371   case " $CFLAGS " in
23372     *" $flag "*)
23373       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23374   (: CFLAGS already contains $flag) 2>&5
23375   ac_status=$?
23376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23377   test $ac_status = 0; }
23378       ;;
23379     *)
23380       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23381   (: CFLAGS="$CFLAGS $flag") 2>&5
23382   ac_status=$?
23383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23384   test $ac_status = 0; }
23385       CFLAGS="$CFLAGS $flag"
23386       ;;
23387    esac
23388 else
23389   CFLAGS="$flag"
23390 fi
23391
23392 else
23393   :
23394 fi
23395
23396 done
23397
23398
23399
23400 for flag in -Wnested-externs; do
23401   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23403 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23404 if eval \${$as_CACHEVAR+:} false; then :
23405   $as_echo_n "(cached) " >&6
23406 else
23407
23408   ax_check_save_flags=$CFLAGS
23409   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23411 /* end confdefs.h.  */
23412
23413 int
23414 main ()
23415 {
23416
23417   ;
23418   return 0;
23419 }
23420 _ACEOF
23421 if ac_fn_c_try_compile "$LINENO"; then :
23422   eval "$as_CACHEVAR=yes"
23423 else
23424   eval "$as_CACHEVAR=no"
23425 fi
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427   CFLAGS=$ax_check_save_flags
23428 fi
23429 eval ac_res=\$$as_CACHEVAR
23430                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23431 $as_echo "$ac_res" >&6; }
23432 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23433   if ${CFLAGS+:} false; then :
23434   case " $CFLAGS " in
23435     *" $flag "*)
23436       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23437   (: CFLAGS already contains $flag) 2>&5
23438   ac_status=$?
23439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23440   test $ac_status = 0; }
23441       ;;
23442     *)
23443       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23444   (: CFLAGS="$CFLAGS $flag") 2>&5
23445   ac_status=$?
23446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23447   test $ac_status = 0; }
23448       CFLAGS="$CFLAGS $flag"
23449       ;;
23450    esac
23451 else
23452   CFLAGS="$flag"
23453 fi
23454
23455 else
23456   :
23457 fi
23458
23459 done
23460
23461
23462
23463 for flag in -Wnormalized=id; do
23464   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23466 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23467 if eval \${$as_CACHEVAR+:} false; then :
23468   $as_echo_n "(cached) " >&6
23469 else
23470
23471   ax_check_save_flags=$CFLAGS
23472   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23474 /* end confdefs.h.  */
23475
23476 int
23477 main ()
23478 {
23479
23480   ;
23481   return 0;
23482 }
23483 _ACEOF
23484 if ac_fn_c_try_compile "$LINENO"; then :
23485   eval "$as_CACHEVAR=yes"
23486 else
23487   eval "$as_CACHEVAR=no"
23488 fi
23489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23490   CFLAGS=$ax_check_save_flags
23491 fi
23492 eval ac_res=\$$as_CACHEVAR
23493                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23494 $as_echo "$ac_res" >&6; }
23495 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23496   if ${CFLAGS+:} false; then :
23497   case " $CFLAGS " in
23498     *" $flag "*)
23499       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23500   (: CFLAGS already contains $flag) 2>&5
23501   ac_status=$?
23502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23503   test $ac_status = 0; }
23504       ;;
23505     *)
23506       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23507   (: CFLAGS="$CFLAGS $flag") 2>&5
23508   ac_status=$?
23509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23510   test $ac_status = 0; }
23511       CFLAGS="$CFLAGS $flag"
23512       ;;
23513    esac
23514 else
23515   CFLAGS="$flag"
23516 fi
23517
23518 else
23519   :
23520 fi
23521
23522 done
23523
23524
23525
23526 for flag in -Woverride-init; do
23527   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23529 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23530 if eval \${$as_CACHEVAR+:} false; then :
23531   $as_echo_n "(cached) " >&6
23532 else
23533
23534   ax_check_save_flags=$CFLAGS
23535   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23537 /* end confdefs.h.  */
23538
23539 int
23540 main ()
23541 {
23542
23543   ;
23544   return 0;
23545 }
23546 _ACEOF
23547 if ac_fn_c_try_compile "$LINENO"; then :
23548   eval "$as_CACHEVAR=yes"
23549 else
23550   eval "$as_CACHEVAR=no"
23551 fi
23552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23553   CFLAGS=$ax_check_save_flags
23554 fi
23555 eval ac_res=\$$as_CACHEVAR
23556                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23557 $as_echo "$ac_res" >&6; }
23558 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23559   if ${CFLAGS+:} false; then :
23560   case " $CFLAGS " in
23561     *" $flag "*)
23562       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23563   (: CFLAGS already contains $flag) 2>&5
23564   ac_status=$?
23565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23566   test $ac_status = 0; }
23567       ;;
23568     *)
23569       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23570   (: CFLAGS="$CFLAGS $flag") 2>&5
23571   ac_status=$?
23572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23573   test $ac_status = 0; }
23574       CFLAGS="$CFLAGS $flag"
23575       ;;
23576    esac
23577 else
23578   CFLAGS="$flag"
23579 fi
23580
23581 else
23582   :
23583 fi
23584
23585 done
23586
23587
23588
23589 for flag in -Wpointer-arith; do
23590   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23592 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23593 if eval \${$as_CACHEVAR+:} false; then :
23594   $as_echo_n "(cached) " >&6
23595 else
23596
23597   ax_check_save_flags=$CFLAGS
23598   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23600 /* end confdefs.h.  */
23601
23602 int
23603 main ()
23604 {
23605
23606   ;
23607   return 0;
23608 }
23609 _ACEOF
23610 if ac_fn_c_try_compile "$LINENO"; then :
23611   eval "$as_CACHEVAR=yes"
23612 else
23613   eval "$as_CACHEVAR=no"
23614 fi
23615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23616   CFLAGS=$ax_check_save_flags
23617 fi
23618 eval ac_res=\$$as_CACHEVAR
23619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23620 $as_echo "$ac_res" >&6; }
23621 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23622   if ${CFLAGS+:} false; then :
23623   case " $CFLAGS " in
23624     *" $flag "*)
23625       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23626   (: CFLAGS already contains $flag) 2>&5
23627   ac_status=$?
23628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23629   test $ac_status = 0; }
23630       ;;
23631     *)
23632       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23633   (: CFLAGS="$CFLAGS $flag") 2>&5
23634   ac_status=$?
23635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23636   test $ac_status = 0; }
23637       CFLAGS="$CFLAGS $flag"
23638       ;;
23639    esac
23640 else
23641   CFLAGS="$flag"
23642 fi
23643
23644 else
23645   :
23646 fi
23647
23648 done
23649
23650
23651
23652 for flag in -Wpointer-sign; do
23653   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23655 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23656 if eval \${$as_CACHEVAR+:} false; then :
23657   $as_echo_n "(cached) " >&6
23658 else
23659
23660   ax_check_save_flags=$CFLAGS
23661   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23663 /* end confdefs.h.  */
23664
23665 int
23666 main ()
23667 {
23668
23669   ;
23670   return 0;
23671 }
23672 _ACEOF
23673 if ac_fn_c_try_compile "$LINENO"; then :
23674   eval "$as_CACHEVAR=yes"
23675 else
23676   eval "$as_CACHEVAR=no"
23677 fi
23678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23679   CFLAGS=$ax_check_save_flags
23680 fi
23681 eval ac_res=\$$as_CACHEVAR
23682                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23683 $as_echo "$ac_res" >&6; }
23684 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23685   if ${CFLAGS+:} false; then :
23686   case " $CFLAGS " in
23687     *" $flag "*)
23688       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23689   (: CFLAGS already contains $flag) 2>&5
23690   ac_status=$?
23691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23692   test $ac_status = 0; }
23693       ;;
23694     *)
23695       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23696   (: CFLAGS="$CFLAGS $flag") 2>&5
23697   ac_status=$?
23698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23699   test $ac_status = 0; }
23700       CFLAGS="$CFLAGS $flag"
23701       ;;
23702    esac
23703 else
23704   CFLAGS="$flag"
23705 fi
23706
23707 else
23708   :
23709 fi
23710
23711 done
23712
23713
23714
23715 for flag in -Wredundant-decls; do
23716   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23718 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23719 if eval \${$as_CACHEVAR+:} false; then :
23720   $as_echo_n "(cached) " >&6
23721 else
23722
23723   ax_check_save_flags=$CFLAGS
23724   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23726 /* end confdefs.h.  */
23727
23728 int
23729 main ()
23730 {
23731
23732   ;
23733   return 0;
23734 }
23735 _ACEOF
23736 if ac_fn_c_try_compile "$LINENO"; then :
23737   eval "$as_CACHEVAR=yes"
23738 else
23739   eval "$as_CACHEVAR=no"
23740 fi
23741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742   CFLAGS=$ax_check_save_flags
23743 fi
23744 eval ac_res=\$$as_CACHEVAR
23745                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23746 $as_echo "$ac_res" >&6; }
23747 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23748   if ${CFLAGS+:} false; then :
23749   case " $CFLAGS " in
23750     *" $flag "*)
23751       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23752   (: CFLAGS already contains $flag) 2>&5
23753   ac_status=$?
23754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23755   test $ac_status = 0; }
23756       ;;
23757     *)
23758       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23759   (: CFLAGS="$CFLAGS $flag") 2>&5
23760   ac_status=$?
23761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23762   test $ac_status = 0; }
23763       CFLAGS="$CFLAGS $flag"
23764       ;;
23765    esac
23766 else
23767   CFLAGS="$flag"
23768 fi
23769
23770 else
23771   :
23772 fi
23773
23774 done
23775
23776
23777
23778 for flag in -Wshadow; do
23779   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23781 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23782 if eval \${$as_CACHEVAR+:} false; then :
23783   $as_echo_n "(cached) " >&6
23784 else
23785
23786   ax_check_save_flags=$CFLAGS
23787   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23789 /* end confdefs.h.  */
23790
23791 int
23792 main ()
23793 {
23794
23795   ;
23796   return 0;
23797 }
23798 _ACEOF
23799 if ac_fn_c_try_compile "$LINENO"; then :
23800   eval "$as_CACHEVAR=yes"
23801 else
23802   eval "$as_CACHEVAR=no"
23803 fi
23804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805   CFLAGS=$ax_check_save_flags
23806 fi
23807 eval ac_res=\$$as_CACHEVAR
23808                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23809 $as_echo "$ac_res" >&6; }
23810 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23811   if ${CFLAGS+:} false; then :
23812   case " $CFLAGS " in
23813     *" $flag "*)
23814       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23815   (: CFLAGS already contains $flag) 2>&5
23816   ac_status=$?
23817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23818   test $ac_status = 0; }
23819       ;;
23820     *)
23821       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23822   (: CFLAGS="$CFLAGS $flag") 2>&5
23823   ac_status=$?
23824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23825   test $ac_status = 0; }
23826       CFLAGS="$CFLAGS $flag"
23827       ;;
23828    esac
23829 else
23830   CFLAGS="$flag"
23831 fi
23832
23833 else
23834   :
23835 fi
23836
23837 done
23838
23839
23840
23841 for flag in -Wshorten-64-to-32; do
23842   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23844 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23845 if eval \${$as_CACHEVAR+:} false; then :
23846   $as_echo_n "(cached) " >&6
23847 else
23848
23849   ax_check_save_flags=$CFLAGS
23850   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23852 /* end confdefs.h.  */
23853
23854 int
23855 main ()
23856 {
23857
23858   ;
23859   return 0;
23860 }
23861 _ACEOF
23862 if ac_fn_c_try_compile "$LINENO"; then :
23863   eval "$as_CACHEVAR=yes"
23864 else
23865   eval "$as_CACHEVAR=no"
23866 fi
23867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23868   CFLAGS=$ax_check_save_flags
23869 fi
23870 eval ac_res=\$$as_CACHEVAR
23871                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23872 $as_echo "$ac_res" >&6; }
23873 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23874   if ${CFLAGS+:} false; then :
23875   case " $CFLAGS " in
23876     *" $flag "*)
23877       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23878   (: CFLAGS already contains $flag) 2>&5
23879   ac_status=$?
23880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23881   test $ac_status = 0; }
23882       ;;
23883     *)
23884       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23885   (: CFLAGS="$CFLAGS $flag") 2>&5
23886   ac_status=$?
23887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23888   test $ac_status = 0; }
23889       CFLAGS="$CFLAGS $flag"
23890       ;;
23891    esac
23892 else
23893   CFLAGS="$flag"
23894 fi
23895
23896 else
23897   :
23898 fi
23899
23900 done
23901
23902
23903
23904 for flag in -Wsign-compare; do
23905   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23907 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23908 if eval \${$as_CACHEVAR+:} false; then :
23909   $as_echo_n "(cached) " >&6
23910 else
23911
23912   ax_check_save_flags=$CFLAGS
23913   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23915 /* end confdefs.h.  */
23916
23917 int
23918 main ()
23919 {
23920
23921   ;
23922   return 0;
23923 }
23924 _ACEOF
23925 if ac_fn_c_try_compile "$LINENO"; then :
23926   eval "$as_CACHEVAR=yes"
23927 else
23928   eval "$as_CACHEVAR=no"
23929 fi
23930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23931   CFLAGS=$ax_check_save_flags
23932 fi
23933 eval ac_res=\$$as_CACHEVAR
23934                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23935 $as_echo "$ac_res" >&6; }
23936 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
23937   if ${CFLAGS+:} false; then :
23938   case " $CFLAGS " in
23939     *" $flag "*)
23940       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
23941   (: CFLAGS already contains $flag) 2>&5
23942   ac_status=$?
23943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23944   test $ac_status = 0; }
23945       ;;
23946     *)
23947       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
23948   (: CFLAGS="$CFLAGS $flag") 2>&5
23949   ac_status=$?
23950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951   test $ac_status = 0; }
23952       CFLAGS="$CFLAGS $flag"
23953       ;;
23954    esac
23955 else
23956   CFLAGS="$flag"
23957 fi
23958
23959 else
23960   :
23961 fi
23962
23963 done
23964
23965
23966
23967 for flag in -Wstrict-overflow=1; do
23968   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
23970 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
23971 if eval \${$as_CACHEVAR+:} false; then :
23972   $as_echo_n "(cached) " >&6
23973 else
23974
23975   ax_check_save_flags=$CFLAGS
23976   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
23977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23978 /* end confdefs.h.  */
23979
23980 int
23981 main ()
23982 {
23983
23984   ;
23985   return 0;
23986 }
23987 _ACEOF
23988 if ac_fn_c_try_compile "$LINENO"; then :
23989   eval "$as_CACHEVAR=yes"
23990 else
23991   eval "$as_CACHEVAR=no"
23992 fi
23993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23994   CFLAGS=$ax_check_save_flags
23995 fi
23996 eval ac_res=\$$as_CACHEVAR
23997                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23998 $as_echo "$ac_res" >&6; }
23999 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24000   if ${CFLAGS+:} false; then :
24001   case " $CFLAGS " in
24002     *" $flag "*)
24003       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24004   (: CFLAGS already contains $flag) 2>&5
24005   ac_status=$?
24006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24007   test $ac_status = 0; }
24008       ;;
24009     *)
24010       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24011   (: CFLAGS="$CFLAGS $flag") 2>&5
24012   ac_status=$?
24013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24014   test $ac_status = 0; }
24015       CFLAGS="$CFLAGS $flag"
24016       ;;
24017    esac
24018 else
24019   CFLAGS="$flag"
24020 fi
24021
24022 else
24023   :
24024 fi
24025
24026 done
24027
24028
24029
24030 for flag in -Wstrict-prototypes; do
24031   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24033 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24034 if eval \${$as_CACHEVAR+:} false; then :
24035   $as_echo_n "(cached) " >&6
24036 else
24037
24038   ax_check_save_flags=$CFLAGS
24039   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24041 /* end confdefs.h.  */
24042
24043 int
24044 main ()
24045 {
24046
24047   ;
24048   return 0;
24049 }
24050 _ACEOF
24051 if ac_fn_c_try_compile "$LINENO"; then :
24052   eval "$as_CACHEVAR=yes"
24053 else
24054   eval "$as_CACHEVAR=no"
24055 fi
24056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24057   CFLAGS=$ax_check_save_flags
24058 fi
24059 eval ac_res=\$$as_CACHEVAR
24060                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24061 $as_echo "$ac_res" >&6; }
24062 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24063   if ${CFLAGS+:} false; then :
24064   case " $CFLAGS " in
24065     *" $flag "*)
24066       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24067   (: CFLAGS already contains $flag) 2>&5
24068   ac_status=$?
24069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24070   test $ac_status = 0; }
24071       ;;
24072     *)
24073       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24074   (: CFLAGS="$CFLAGS $flag") 2>&5
24075   ac_status=$?
24076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24077   test $ac_status = 0; }
24078       CFLAGS="$CFLAGS $flag"
24079       ;;
24080    esac
24081 else
24082   CFLAGS="$flag"
24083 fi
24084
24085 else
24086   :
24087 fi
24088
24089 done
24090
24091
24092
24093 for flag in -Wswitch-enum; do
24094   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24096 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24097 if eval \${$as_CACHEVAR+:} false; then :
24098   $as_echo_n "(cached) " >&6
24099 else
24100
24101   ax_check_save_flags=$CFLAGS
24102   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24104 /* end confdefs.h.  */
24105
24106 int
24107 main ()
24108 {
24109
24110   ;
24111   return 0;
24112 }
24113 _ACEOF
24114 if ac_fn_c_try_compile "$LINENO"; then :
24115   eval "$as_CACHEVAR=yes"
24116 else
24117   eval "$as_CACHEVAR=no"
24118 fi
24119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24120   CFLAGS=$ax_check_save_flags
24121 fi
24122 eval ac_res=\$$as_CACHEVAR
24123                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24124 $as_echo "$ac_res" >&6; }
24125 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24126   if ${CFLAGS+:} false; then :
24127   case " $CFLAGS " in
24128     *" $flag "*)
24129       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24130   (: CFLAGS already contains $flag) 2>&5
24131   ac_status=$?
24132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133   test $ac_status = 0; }
24134       ;;
24135     *)
24136       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24137   (: CFLAGS="$CFLAGS $flag") 2>&5
24138   ac_status=$?
24139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24140   test $ac_status = 0; }
24141       CFLAGS="$CFLAGS $flag"
24142       ;;
24143    esac
24144 else
24145   CFLAGS="$flag"
24146 fi
24147
24148 else
24149   :
24150 fi
24151
24152 done
24153
24154
24155
24156 for flag in -Wundef; do
24157   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24159 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24160 if eval \${$as_CACHEVAR+:} false; then :
24161   $as_echo_n "(cached) " >&6
24162 else
24163
24164   ax_check_save_flags=$CFLAGS
24165   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24167 /* end confdefs.h.  */
24168
24169 int
24170 main ()
24171 {
24172
24173   ;
24174   return 0;
24175 }
24176 _ACEOF
24177 if ac_fn_c_try_compile "$LINENO"; then :
24178   eval "$as_CACHEVAR=yes"
24179 else
24180   eval "$as_CACHEVAR=no"
24181 fi
24182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24183   CFLAGS=$ax_check_save_flags
24184 fi
24185 eval ac_res=\$$as_CACHEVAR
24186                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24187 $as_echo "$ac_res" >&6; }
24188 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24189   if ${CFLAGS+:} false; then :
24190   case " $CFLAGS " in
24191     *" $flag "*)
24192       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24193   (: CFLAGS already contains $flag) 2>&5
24194   ac_status=$?
24195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24196   test $ac_status = 0; }
24197       ;;
24198     *)
24199       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24200   (: CFLAGS="$CFLAGS $flag") 2>&5
24201   ac_status=$?
24202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24203   test $ac_status = 0; }
24204       CFLAGS="$CFLAGS $flag"
24205       ;;
24206    esac
24207 else
24208   CFLAGS="$flag"
24209 fi
24210
24211 else
24212   :
24213 fi
24214
24215 done
24216
24217
24218
24219 for flag in -Wunused; do
24220   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24222 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24223 if eval \${$as_CACHEVAR+:} false; then :
24224   $as_echo_n "(cached) " >&6
24225 else
24226
24227   ax_check_save_flags=$CFLAGS
24228   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24230 /* end confdefs.h.  */
24231
24232 int
24233 main ()
24234 {
24235
24236   ;
24237   return 0;
24238 }
24239 _ACEOF
24240 if ac_fn_c_try_compile "$LINENO"; then :
24241   eval "$as_CACHEVAR=yes"
24242 else
24243   eval "$as_CACHEVAR=no"
24244 fi
24245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246   CFLAGS=$ax_check_save_flags
24247 fi
24248 eval ac_res=\$$as_CACHEVAR
24249                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24250 $as_echo "$ac_res" >&6; }
24251 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24252   if ${CFLAGS+:} false; then :
24253   case " $CFLAGS " in
24254     *" $flag "*)
24255       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24256   (: CFLAGS already contains $flag) 2>&5
24257   ac_status=$?
24258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24259   test $ac_status = 0; }
24260       ;;
24261     *)
24262       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24263   (: CFLAGS="$CFLAGS $flag") 2>&5
24264   ac_status=$?
24265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24266   test $ac_status = 0; }
24267       CFLAGS="$CFLAGS $flag"
24268       ;;
24269    esac
24270 else
24271   CFLAGS="$flag"
24272 fi
24273
24274 else
24275   :
24276 fi
24277
24278 done
24279
24280
24281
24282 for flag in -Wunused-result; do
24283   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24285 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24286 if eval \${$as_CACHEVAR+:} false; then :
24287   $as_echo_n "(cached) " >&6
24288 else
24289
24290   ax_check_save_flags=$CFLAGS
24291   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24293 /* end confdefs.h.  */
24294
24295 int
24296 main ()
24297 {
24298
24299   ;
24300   return 0;
24301 }
24302 _ACEOF
24303 if ac_fn_c_try_compile "$LINENO"; then :
24304   eval "$as_CACHEVAR=yes"
24305 else
24306   eval "$as_CACHEVAR=no"
24307 fi
24308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24309   CFLAGS=$ax_check_save_flags
24310 fi
24311 eval ac_res=\$$as_CACHEVAR
24312                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24313 $as_echo "$ac_res" >&6; }
24314 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24315   if ${CFLAGS+:} false; then :
24316   case " $CFLAGS " in
24317     *" $flag "*)
24318       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24319   (: CFLAGS already contains $flag) 2>&5
24320   ac_status=$?
24321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24322   test $ac_status = 0; }
24323       ;;
24324     *)
24325       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24326   (: CFLAGS="$CFLAGS $flag") 2>&5
24327   ac_status=$?
24328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24329   test $ac_status = 0; }
24330       CFLAGS="$CFLAGS $flag"
24331       ;;
24332    esac
24333 else
24334   CFLAGS="$flag"
24335 fi
24336
24337 else
24338   :
24339 fi
24340
24341 done
24342
24343
24344
24345 for flag in -Wunused-variable; do
24346   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24348 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24349 if eval \${$as_CACHEVAR+:} false; then :
24350   $as_echo_n "(cached) " >&6
24351 else
24352
24353   ax_check_save_flags=$CFLAGS
24354   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24356 /* end confdefs.h.  */
24357
24358 int
24359 main ()
24360 {
24361
24362   ;
24363   return 0;
24364 }
24365 _ACEOF
24366 if ac_fn_c_try_compile "$LINENO"; then :
24367   eval "$as_CACHEVAR=yes"
24368 else
24369   eval "$as_CACHEVAR=no"
24370 fi
24371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372   CFLAGS=$ax_check_save_flags
24373 fi
24374 eval ac_res=\$$as_CACHEVAR
24375                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24376 $as_echo "$ac_res" >&6; }
24377 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24378   if ${CFLAGS+:} false; then :
24379   case " $CFLAGS " in
24380     *" $flag "*)
24381       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24382   (: CFLAGS already contains $flag) 2>&5
24383   ac_status=$?
24384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24385   test $ac_status = 0; }
24386       ;;
24387     *)
24388       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24389   (: CFLAGS="$CFLAGS $flag") 2>&5
24390   ac_status=$?
24391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24392   test $ac_status = 0; }
24393       CFLAGS="$CFLAGS $flag"
24394       ;;
24395    esac
24396 else
24397   CFLAGS="$flag"
24398 fi
24399
24400 else
24401   :
24402 fi
24403
24404 done
24405
24406
24407
24408 for flag in -Wwrite-strings; do
24409   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24411 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24412 if eval \${$as_CACHEVAR+:} false; then :
24413   $as_echo_n "(cached) " >&6
24414 else
24415
24416   ax_check_save_flags=$CFLAGS
24417   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24419 /* end confdefs.h.  */
24420
24421 int
24422 main ()
24423 {
24424
24425   ;
24426   return 0;
24427 }
24428 _ACEOF
24429 if ac_fn_c_try_compile "$LINENO"; then :
24430   eval "$as_CACHEVAR=yes"
24431 else
24432   eval "$as_CACHEVAR=no"
24433 fi
24434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24435   CFLAGS=$ax_check_save_flags
24436 fi
24437 eval ac_res=\$$as_CACHEVAR
24438                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24439 $as_echo "$ac_res" >&6; }
24440 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24441   if ${CFLAGS+:} false; then :
24442   case " $CFLAGS " in
24443     *" $flag "*)
24444       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24445   (: CFLAGS already contains $flag) 2>&5
24446   ac_status=$?
24447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24448   test $ac_status = 0; }
24449       ;;
24450     *)
24451       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24452   (: CFLAGS="$CFLAGS $flag") 2>&5
24453   ac_status=$?
24454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455   test $ac_status = 0; }
24456       CFLAGS="$CFLAGS $flag"
24457       ;;
24458    esac
24459 else
24460   CFLAGS="$flag"
24461 fi
24462
24463 else
24464   :
24465 fi
24466
24467 done
24468
24469
24470
24471 for flag in -fwrapv; do
24472   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24474 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24475 if eval \${$as_CACHEVAR+:} false; then :
24476   $as_echo_n "(cached) " >&6
24477 else
24478
24479   ax_check_save_flags=$CFLAGS
24480   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24482 /* end confdefs.h.  */
24483
24484 int
24485 main ()
24486 {
24487
24488   ;
24489   return 0;
24490 }
24491 _ACEOF
24492 if ac_fn_c_try_compile "$LINENO"; then :
24493   eval "$as_CACHEVAR=yes"
24494 else
24495   eval "$as_CACHEVAR=no"
24496 fi
24497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24498   CFLAGS=$ax_check_save_flags
24499 fi
24500 eval ac_res=\$$as_CACHEVAR
24501                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24502 $as_echo "$ac_res" >&6; }
24503 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24504   if ${CFLAGS+:} false; then :
24505   case " $CFLAGS " in
24506     *" $flag "*)
24507       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24508   (: CFLAGS already contains $flag) 2>&5
24509   ac_status=$?
24510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24511   test $ac_status = 0; }
24512       ;;
24513     *)
24514       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24515   (: CFLAGS="$CFLAGS $flag") 2>&5
24516   ac_status=$?
24517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24518   test $ac_status = 0; }
24519       CFLAGS="$CFLAGS $flag"
24520       ;;
24521    esac
24522 else
24523   CFLAGS="$flag"
24524 fi
24525
24526 else
24527   :
24528 fi
24529
24530 done
24531
24532
24533
24534 for flag in -fPIE; do
24535   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_append_compile_cflags_extra_$flag" | $as_tr_sh`
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24537 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
24538 if eval \${$as_CACHEVAR+:} false; then :
24539   $as_echo_n "(cached) " >&6
24540 else
24541
24542   ax_check_save_flags=$CFLAGS
24543   CFLAGS="$CFLAGS $ax_append_compile_cflags_extra $flag"
24544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24545 /* end confdefs.h.  */
24546
24547 int
24548 main ()
24549 {
24550
24551   ;
24552   return 0;
24553 }
24554 _ACEOF
24555 if ac_fn_c_try_compile "$LINENO"; then :
24556   eval "$as_CACHEVAR=yes"
24557 else
24558   eval "$as_CACHEVAR=no"
24559 fi
24560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24561   CFLAGS=$ax_check_save_flags
24562 fi
24563 eval ac_res=\$$as_CACHEVAR
24564                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24565 $as_echo "$ac_res" >&6; }
24566 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
24567   if ${CFLAGS+:} false; then :
24568   case " $CFLAGS " in
24569     *" $flag "*)
24570       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24571   (: CFLAGS already contains $flag) 2>&5
24572   ac_status=$?
24573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24574   test $ac_status = 0; }
24575       ;;
24576     *)
24577       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
24578   (: CFLAGS="$CFLAGS $flag") 2>&5
24579   ac_status=$?
24580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24581   test $ac_status = 0; }
24582       CFLAGS="$CFLAGS $flag"
24583       ;;
24584    esac
24585 else
24586   CFLAGS="$flag"
24587 fi
24588
24589 else
24590   :
24591 fi
24592
24593 done
24594
24595       ac_ext=c
24596 ac_cpp='$CPP $CPPFLAGS'
24597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24600
24601
24602
24603 # link to ws2_32 if on mingw
24604 case $host_os in
24605     *mingw32)
24606         LDFLAGS="$LDFLAGS -lws2_32" ;;
24607 esac
24608
24609 # add user C_EXTRA_FLAGS back
24610 CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
24611 OPTION_FLAGS="$USER_C_EXTRA_FLAGS $AM_CFLAGS"
24612
24613
24614
24615   HEX_VERSION=`echo $VERSION | sed 's|\-a-z0-9*$||' | \
24616     awk -F. '{printf "0x%0.2d%0.3d%0.3d", $1, $2, $3}'`
24617
24618
24619
24620
24621
24622
24623 # FINAL
24624 ac_config_files="$ac_config_files stamp-h"
24625
24626 ac_config_files="$ac_config_files Makefile"
24627
24628 ac_config_files="$ac_config_files wolfssl/version.h"
24629
24630 ac_config_files="$ac_config_files wolfssl/options.h"
24631
24632 #have options.h and version.h for autoconf fips tag and build
24633 #if test "x$ENABLED_FIPS" = "xyes"
24634 #then
24635 #    AC_CONFIG_FILES([cyassl/version.h])
24636 #    AC_CONFIG_FILES([cyassl/options.h])
24637 #fi
24638 ac_config_files="$ac_config_files support/wolfssl.pc"
24639
24640 ac_config_files="$ac_config_files rpm/spec"
24641
24642
24643 # create a generic PACKAGE-config file
24644 L=`echo $PACKAGE $LIBS`
24645 P=`echo $L | sed -e 's/ -.*//'`
24646 P=`echo $P`
24647 V=`echo $VERSION`
24648 F=`echo $P-config`
24649 L=`echo -l$L | sed -e 's/^-llib/-l/'`
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $F - generic $V for $L" >&5
24651 $as_echo "creating $F - generic $V for $L" >&6; }
24652 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
24653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24654 echo '#! /bin/sh' >$F
24655 echo ' ' >>$F
24656 echo 'package="'$P'"' >>$F
24657 echo 'version="'$V'"' >>$F
24658 echo 'libs="'$L'"' >>$F
24659 echo ' ' >>$F
24660 # in the order of occurence a standard automake Makefile
24661 echo 'prefix="'$prefix'"' >>$F
24662 echo 'exec_prefix="'$exec_prefix'"' >>$F
24663 echo 'bindir="'$bindir'"' >>$F
24664 echo 'sbindir="'$sbindir'"' >>$F
24665 echo 'libexecdir="'$libexecdir'"' >>$F
24666 echo 'datadir="'$datadir'"' >>$F
24667 echo 'sysconfdir="'$sysconfdir'"' >>$F
24668 echo 'sharedstatedir="'$sharedstatedir'"' >>$F
24669 echo 'localstatedir="'$localstatedir'"' >>$F
24670 echo 'libdir="'$libdir'"' >>$F
24671 echo 'infodir="'$infodir'"' >>$F
24672 echo 'mandir="'$mandir'"' >>$F
24673 echo 'includedir="'$includedir'"' >>$F
24674 echo 'target="'$target'"' >>$F
24675 echo 'host="'$host'"' >>$F
24676 echo 'build="'$build'"' >>$F
24677 echo ' ' >>$F
24678 echo 'if test "'"\$""#"'" -eq 0; then' >>$F
24679 echo '   cat <<EOF' >>$F
24680 echo 'Usage: $package-config OPTIONS' >>$F
24681 echo 'Options:' >>$F
24682 echo '  --prefix=DIR) : \$prefix' >>$F
24683 echo '  --package) : \$package' >>$F
24684 echo '  --version) : \$version' >>$F
24685 echo '  --cflags) : -I\$includedir' >>$F
24686 echo '  --libs) : -L\$libdir -l\$package' >>$F
24687 echo '  --help) print all the options (not just these)' >>$F
24688 echo 'EOF' >>$F
24689 echo 'fi' >>$F
24690 echo ' ' >>$F
24691 echo 'o=""' >>$F
24692 echo 'h=""' >>$F
24693 echo 'for i in "$@"; do' >>$F
24694 echo '  case $i in' >>$F
24695 echo '  --prefix=*) prefix=`echo $i | sed -e "s/--prefix=//"` ;;' >>$F
24696 echo '  --prefix)    o="$o $prefix" ;;' >>$F
24697 echo '  --package)   o="$o $package" ;;' >>$F
24698 echo '  --version)   o="$o $version" ;;' >>$F
24699 echo '  --cflags) if test "_$includedir" != "_/usr/include"' >>$F
24700 echo '          then o="$o -I$includedir" ; fi' >>$F
24701 echo '  ;;' >>$F
24702 echo '  --libs)      o="$o -L$libdir $libs" ;;' >>$F
24703 echo '  --exec_prefix|--eprefix) o="$o $exec_prefix" ;;' >>$F
24704 echo '  --bindir)                o="$o $bindir" ;;' >>$F
24705 echo '  --sbindir)               o="$o $sbindir" ;;' >>$F
24706 echo '  --libexecdir)            o="$o $libexecdir" ;;' >>$F
24707 echo '  --datadir)               o="$o $datadir" ;;' >>$F
24708 echo '  --datainc)               o="$o -I$datadir" ;;' >>$F
24709 echo '  --datalib)               o="$o -L$datadir" ;;' >>$F
24710 echo '  --sysconfdir)            o="$o $sysconfdir" ;;' >>$F
24711 echo '  --sharedstatedir)        o="$o $sharedstatedir" ;;' >>$F
24712 echo '  --localstatedir)         o="$o $localstatedir" ;;' >>$F
24713 echo '  --libdir)                o="$o $libdir" ;;' >>$F
24714 echo '  --libadd)                o="$o -L$libdir" ;;' >>$F
24715 echo '  --infodir)               o="$o $infodir" ;;' >>$F
24716 echo '  --mandir)                o="$o $mandir" ;;' >>$F
24717 echo '  --target)                o="$o $target" ;;' >>$F
24718 echo '  --host)                  o="$o $host" ;;' >>$F
24719 echo '  --build)                 o="$o $build" ;;' >>$F
24720 echo '  --data)                  o="$o -I$datadir/$package" ;;' >>$F
24721 echo '  --pkgdatadir)            o="$o $datadir/$package" ;;' >>$F
24722 echo '  --pkgdatainc)            o="$o -I$datadir/$package" ;;' >>$F
24723 echo '  --pkgdatalib)            o="$o -L$datadir/$package" ;;' >>$F
24724 echo '  --pkglibdir)             o="$o $libdir/$package" ;;' >>$F
24725 echo '  --pkglibinc)             o="$o -I$libinc/$package" ;;' >>$F
24726 echo '  --pkglibadd)             o="$o -L$libadd/$package" ;;' >>$F
24727 echo '  --pkgincludedir)         o="$o $includedir/$package" ;;' >>$F
24728 echo '  --help) h="1" ;;' >>$F
24729 echo '  -?//*|-?/*//*|-?./*//*|//*|/*//*|./*//*) ' >>$F
24730 echo '       v=`echo $i | sed -e s://:\$:g`' >>$F
24731 echo '       v=`eval "echo $v"` ' >>$F
24732 echo '       o="$o $v" ;; ' >>$F
24733 echo '  esac' >>$F
24734 echo 'done' >>$F
24735 echo ' ' >>$F
24736 echo 'o=`eval "echo $o"`' >>$F
24737 echo 'o=`eval "echo $o"`' >>$F
24738 echo 'eval "echo $o"' >>$F
24739 echo ' ' >>$F
24740 echo 'if test ! -z "$h" ; then ' >>$F
24741 echo 'cat <<EOF' >>$F
24742 echo '  --prefix=xxx)      (what is that for anyway?)' >>$F
24743 echo '  --prefix)         \$prefix        $prefix' >>$F
24744 echo '  --package)        \$package       $package' >>$F
24745 echo '  --version)        \$version       $version' >>$F
24746 echo '  --cflags)         -I\$includedir    unless it is /usr/include' >>$F
24747 echo '  --libs)           -L\$libdir -l\$PACKAGE \$LIBS' >>$F
24748 echo '  --exec_prefix) or... ' >>$F
24749 echo '  --eprefix)        \$exec_prefix   $exec_prefix' >>$F
24750 echo '  --bindir)         \$bindir        $bindir' >>$F
24751 echo '  --sbindir)        \$sbindir       $sbindir' >>$F
24752 echo '  --libexecdir)     \$libexecdir    $libexecdir' >>$F
24753 echo '  --datadir)        \$datadir       $datadir' >>$F
24754 echo '  --sysconfdir)     \$sysconfdir    $sysconfdir' >>$F
24755 echo '  --sharedstatedir) \$sharedstatedir$sharedstatedir' >>$F
24756 echo '  --localstatedir)  \$localstatedir $localstatedir' >>$F
24757 echo '  --libdir)         \$libdir        $libdir' >>$F
24758 echo '  --infodir)        \$infodir       $infodir' >>$F
24759 echo '  --mandir)         \$mandir        $mandir' >>$F
24760 echo '  --target)         \$target        $target' >>$F
24761 echo '  --host)           \$host          $host' >>$F
24762 echo '  --build)          \$build         $build' >>$F
24763 echo '  --data)           -I\$datadir/\$package' >>$F
24764 echo '  --pkgdatadir)     \$datadir/\$package' >>$F
24765 echo '  --pkglibdir)      \$libdir/\$package' >>$F
24766 echo '  --pkgincludedir)  \$includedir/\$package' >>$F
24767 echo '  --help)           generated by ax_create_generic_config.m4' >>$F
24768 echo '  -I//varname and other inc-targets like --pkgdatainc supported' >>$F
24769 echo '  -L//varname and other lib-targets, e.g. --pkgdatalib or --libadd' >>$F
24770 echo 'EOF' >>$F
24771 echo 'fi' >>$F
24772 GENERIC_CONFIG="$F"
24773
24774
24775
24776
24777
24778       { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
24779 $as_echo_n "checking the number of available CPUs... " >&6; }
24780       CPU_COUNT="0"
24781
24782       case $host_os in #(
24783
24784         *darwin*) :
24785
24786         if test -x /usr/sbin/sysctl; then :
24787
24788           sysctl_a=`/usr/sbin/sysctl -a 2>/dev/null| grep -c hw.cpu`
24789           if test sysctl_a; then :
24790
24791             CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
24792
24793 fi
24794
24795 fi ;; #(
24796
24797         *linux*) :
24798
24799         if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
24800
24801           if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then :
24802
24803             CPU_COUNT=`$EGREP -c '^processor' /proc/cpuinfo`
24804
24805 fi
24806
24807 fi
24808          ;; #(
24809   *) :
24810      ;;
24811 esac
24812
24813       if test "x$CPU_COUNT" = "x0"; then :
24814
24815         CPU_COUNT="1"
24816         { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1) " >&5
24817 $as_echo "unable to detect (assuming 1) " >&6; }
24818
24819 else
24820
24821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT " >&5
24822 $as_echo "$CPU_COUNT " >&6; }
24823
24824 fi
24825
24826
24827 AX_DOLLAR="\$"
24828 AX_SRB="\\135"
24829 AX_SLB="\\133"
24830 AX_BS="\\\\"
24831 AX_DQ="\""
24832
24833
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: adding automake macro support" >&5
24835 $as_echo "$as_me: adding automake macro support" >&6;}
24836 AMINCLUDE="aminclude.am"
24837
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $AMINCLUDE" >&5
24839 $as_echo "$as_me: creating $AMINCLUDE" >&6;}
24840 AMINCLUDE_TIME=`date`
24841
24842
24843 printf "
24844 # generated automatically by configure from AX_AUTOMAKE_MACROS
24845 # on $AMINCLUDE_TIME
24846
24847 " > "$AMINCLUDE"
24848
24849
24850 INC_AMINCLUDE="include \$(top_builddir)/$AMINCLUDE"
24851
24852
24853
24854
24855
24856     # Check whether --enable-jobserver was given.
24857 if test "${enable_jobserver+set}" = set; then :
24858   enableval=$enable_jobserver;
24859 else
24860   enable_jobserver=yes
24861 fi
24862
24863     if test "x$enable_jobserver" = "xyes"; then
24864         let enable_jobserver=$CPU_COUNT+1
24865     fi
24866
24867     if test "x$enable_jobserver" != "xno"; then
24868         { $as_echo "$as_me:${as_lineno-$LINENO}: added jobserver support to make for $enable_jobserver jobs" >&5
24869 $as_echo "$as_me: added jobserver support to make for $enable_jobserver jobs" >&6;}
24870
24871
24872
24873
24874 printf "AM_MAKEFLAGS += -j$enable_jobserver \n" >> "$AMINCLUDE"
24875
24876
24877     fi
24878
24879
24880 cat >confcache <<\_ACEOF
24881 # This file is a shell script that caches the results of configure
24882 # tests run on this system so they can be shared between configure
24883 # scripts and configure runs, see configure's option --config-cache.
24884 # It is not useful on other systems.  If it contains results you don't
24885 # want to keep, you may remove or edit it.
24886 #
24887 # config.status only pays attention to the cache file if you give it
24888 # the --recheck option to rerun configure.
24889 #
24890 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24891 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24892 # following values.
24893
24894 _ACEOF
24895
24896 # The following way of writing the cache mishandles newlines in values,
24897 # but we know of no workaround that is simple, portable, and efficient.
24898 # So, we kill variables containing newlines.
24899 # Ultrix sh set writes to stderr and can't be redirected directly,
24900 # and sets the high bit in the cache file unless we assign to the vars.
24901 (
24902   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24903     eval ac_val=\$$ac_var
24904     case $ac_val in #(
24905     *${as_nl}*)
24906       case $ac_var in #(
24907       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24908 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24909       esac
24910       case $ac_var in #(
24911       _ | IFS | as_nl) ;; #(
24912       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24913       *) { eval $ac_var=; unset $ac_var;} ;;
24914       esac ;;
24915     esac
24916   done
24917
24918   (set) 2>&1 |
24919     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24920     *${as_nl}ac_space=\ *)
24921       # `set' does not quote correctly, so add quotes: double-quote
24922       # substitution turns \\\\ into \\, and sed turns \\ into \.
24923       sed -n \
24924         "s/'/'\\\\''/g;
24925           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24926       ;; #(
24927     *)
24928       # `set' quotes correctly as required by POSIX, so do not add quotes.
24929       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24930       ;;
24931     esac |
24932     sort
24933 ) |
24934   sed '
24935      /^ac_cv_env_/b end
24936      t clear
24937      :clear
24938      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24939      t end
24940      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24941      :end' >>confcache
24942 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24943   if test -w "$cache_file"; then
24944     if test "x$cache_file" != "x/dev/null"; then
24945       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24946 $as_echo "$as_me: updating cache $cache_file" >&6;}
24947       if test ! -f "$cache_file" || test -h "$cache_file"; then
24948         cat confcache >"$cache_file"
24949       else
24950         case $cache_file in #(
24951         */* | ?:*)
24952           mv -f confcache "$cache_file"$$ &&
24953           mv -f "$cache_file"$$ "$cache_file" ;; #(
24954         *)
24955           mv -f confcache "$cache_file" ;;
24956         esac
24957       fi
24958     fi
24959   else
24960     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24961 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24962   fi
24963 fi
24964 rm -f confcache
24965
24966 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24967 # Let make expand exec_prefix.
24968 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24969
24970 DEFS=-DHAVE_CONFIG_H
24971
24972 ac_libobjs=
24973 ac_ltlibobjs=
24974 U=
24975 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24976   # 1. Remove the extension, and $U if already installed.
24977   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24978   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24979   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24980   #    will be set to the directory where LIBOBJS objects are built.
24981   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24982   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24983 done
24984 LIBOBJS=$ac_libobjs
24985
24986 LTLIBOBJS=$ac_ltlibobjs
24987
24988
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24990 $as_echo_n "checking that generated files are newer than configure... " >&6; }
24991    if test -n "$am_sleep_pid"; then
24992      # Hide warnings about reused PIDs.
24993      wait $am_sleep_pid 2>/dev/null
24994    fi
24995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24996 $as_echo "done" >&6; }
24997  if test -n "$EXEEXT"; then
24998   am__EXEEXT_TRUE=
24999   am__EXEEXT_FALSE='#'
25000 else
25001   am__EXEEXT_TRUE='#'
25002   am__EXEEXT_FALSE=
25003 fi
25004
25005 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25006   as_fn_error $? "conditional \"AMDEP\" was never defined.
25007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25008 fi
25009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25010   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25012 fi
25013 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25014   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25016 fi
25017
25018 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25019   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25021 fi
25022 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25023   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25025 fi
25026 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
25027   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
25028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25029 fi
25030 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
25031   as_fn_error $? "conditional \"DEBUG\" was never defined.
25032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25033 fi
25034 if test -z "${BUILD_IPV6_TRUE}" && test -z "${BUILD_IPV6_FALSE}"; then
25035   as_fn_error $? "conditional \"BUILD_IPV6\" was never defined.
25036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25037 fi
25038 if test -z "${BUILD_LEANPSK_TRUE}" && test -z "${BUILD_LEANPSK_FALSE}"; then
25039   as_fn_error $? "conditional \"BUILD_LEANPSK\" was never defined.
25040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25041 fi
25042 if test -z "${BUILD_SNIFFER_TRUE}" && test -z "${BUILD_SNIFFER_FALSE}"; then
25043   as_fn_error $? "conditional \"BUILD_SNIFFER\" was never defined.
25044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25045 fi
25046 if test -z "${BUILD_SNIFFTEST_TRUE}" && test -z "${BUILD_SNIFFTEST_FALSE}"; then
25047   as_fn_error $? "conditional \"BUILD_SNIFFTEST\" was never defined.
25048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25049 fi
25050 if test -z "${BUILD_AESGCM_TRUE}" && test -z "${BUILD_AESGCM_FALSE}"; then
25051   as_fn_error $? "conditional \"BUILD_AESGCM\" was never defined.
25052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25053 fi
25054 if test -z "${BUILD_AESCCM_TRUE}" && test -z "${BUILD_AESCCM_FALSE}"; then
25055   as_fn_error $? "conditional \"BUILD_AESCCM\" was never defined.
25056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25057 fi
25058 if test -z "${BUILD_AESNI_TRUE}" && test -z "${BUILD_AESNI_FALSE}"; then
25059   as_fn_error $? "conditional \"BUILD_AESNI\" was never defined.
25060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25061 fi
25062 if test -z "${BUILD_CAMELLIA_TRUE}" && test -z "${BUILD_CAMELLIA_FALSE}"; then
25063   as_fn_error $? "conditional \"BUILD_CAMELLIA\" was never defined.
25064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25065 fi
25066 if test -z "${BUILD_MD2_TRUE}" && test -z "${BUILD_MD2_FALSE}"; then
25067   as_fn_error $? "conditional \"BUILD_MD2\" was never defined.
25068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25069 fi
25070 if test -z "${BUILD_RIPEMD_TRUE}" && test -z "${BUILD_RIPEMD_FALSE}"; then
25071   as_fn_error $? "conditional \"BUILD_RIPEMD\" was never defined.
25072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25073 fi
25074 if test -z "${BUILD_BLAKE2_TRUE}" && test -z "${BUILD_BLAKE2_FALSE}"; then
25075   as_fn_error $? "conditional \"BUILD_BLAKE2\" was never defined.
25076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25077 fi
25078 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
25079   as_fn_error $? "conditional \"BUILD_SHA512\" was never defined.
25080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25081 fi
25082 if test -z "${BUILD_DSA_TRUE}" && test -z "${BUILD_DSA_FALSE}"; then
25083   as_fn_error $? "conditional \"BUILD_DSA\" was never defined.
25084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25085 fi
25086 if test -z "${BUILD_ECC_TRUE}" && test -z "${BUILD_ECC_FALSE}"; then
25087   as_fn_error $? "conditional \"BUILD_ECC\" was never defined.
25088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25089 fi
25090 if test -z "${BUILD_CURVE25519_TRUE}" && test -z "${BUILD_CURVE25519_FALSE}"; then
25091   as_fn_error $? "conditional \"BUILD_CURVE25519\" was never defined.
25092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25093 fi
25094 if test -z "${BUILD_ED25519_TRUE}" && test -z "${BUILD_ED25519_FALSE}"; then
25095   as_fn_error $? "conditional \"BUILD_ED25519\" was never defined.
25096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25097 fi
25098 if test -z "${BUILD_CURVED25519_SMALL_TRUE}" && test -z "${BUILD_CURVED25519_SMALL_FALSE}"; then
25099   as_fn_error $? "conditional \"BUILD_CURVED25519_SMALL\" was never defined.
25100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25101 fi
25102 if test -z "${BUILD_FEMATH_TRUE}" && test -z "${BUILD_FEMATH_FALSE}"; then
25103   as_fn_error $? "conditional \"BUILD_FEMATH\" was never defined.
25104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25105 fi
25106 if test -z "${BUILD_GEMATH_TRUE}" && test -z "${BUILD_GEMATH_FALSE}"; then
25107   as_fn_error $? "conditional \"BUILD_GEMATH\" was never defined.
25108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25109 fi
25110 if test -z "${BUILD_MEMORY_TRUE}" && test -z "${BUILD_MEMORY_FALSE}"; then
25111   as_fn_error $? "conditional \"BUILD_MEMORY\" was never defined.
25112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25113 fi
25114 if test -z "${BUILD_RSA_TRUE}" && test -z "${BUILD_RSA_FALSE}"; then
25115   as_fn_error $? "conditional \"BUILD_RSA\" was never defined.
25116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25117 fi
25118 if test -z "${BUILD_DH_TRUE}" && test -z "${BUILD_DH_FALSE}"; then
25119   as_fn_error $? "conditional \"BUILD_DH\" was never defined.
25120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25121 fi
25122 if test -z "${BUILD_ASN_TRUE}" && test -z "${BUILD_ASN_FALSE}"; then
25123   as_fn_error $? "conditional \"BUILD_ASN\" was never defined.
25124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25125 fi
25126 if test -z "${BUILD_AES_TRUE}" && test -z "${BUILD_AES_FALSE}"; then
25127   as_fn_error $? "conditional \"BUILD_AES\" was never defined.
25128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25129 fi
25130 if test -z "${BUILD_CODING_TRUE}" && test -z "${BUILD_CODING_FALSE}"; then
25131   as_fn_error $? "conditional \"BUILD_CODING\" was never defined.
25132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25133 fi
25134 if test -z "${BUILD_DES3_TRUE}" && test -z "${BUILD_DES3_FALSE}"; then
25135   as_fn_error $? "conditional \"BUILD_DES3\" was never defined.
25136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25137 fi
25138 if test -z "${BUILD_RC4_TRUE}" && test -z "${BUILD_RC4_FALSE}"; then
25139   as_fn_error $? "conditional \"BUILD_RC4\" was never defined.
25140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25141 fi
25142 if test -z "${BUILD_MD5_TRUE}" && test -z "${BUILD_MD5_FALSE}"; then
25143   as_fn_error $? "conditional \"BUILD_MD5\" was never defined.
25144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25145 fi
25146 if test -z "${BUILD_SHA_TRUE}" && test -z "${BUILD_SHA_FALSE}"; then
25147   as_fn_error $? "conditional \"BUILD_SHA\" was never defined.
25148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25149 fi
25150 if test -z "${BUILD_MD4_TRUE}" && test -z "${BUILD_MD4_FALSE}"; then
25151   as_fn_error $? "conditional \"BUILD_MD4\" was never defined.
25152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25153 fi
25154 if test -z "${BUILD_HC128_TRUE}" && test -z "${BUILD_HC128_FALSE}"; then
25155   as_fn_error $? "conditional \"BUILD_HC128\" was never defined.
25156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25157 fi
25158 if test -z "${BUILD_RABBIT_TRUE}" && test -z "${BUILD_RABBIT_FALSE}"; then
25159   as_fn_error $? "conditional \"BUILD_RABBIT\" was never defined.
25160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25161 fi
25162 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
25163   as_fn_error $? "conditional \"BUILD_SHA512\" was never defined.
25164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25165 fi
25166 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
25167   as_fn_error $? "conditional \"BUILD_SHA512\" was never defined.
25168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25169 fi
25170 if test -z "${BUILD_FIPS_TRUE}" && test -z "${BUILD_FIPS_FALSE}"; then
25171   as_fn_error $? "conditional \"BUILD_FIPS\" was never defined.
25172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25173 fi
25174 if test -z "${BUILD_POLY1305_TRUE}" && test -z "${BUILD_POLY1305_FALSE}"; then
25175   as_fn_error $? "conditional \"BUILD_POLY1305\" was never defined.
25176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25177 fi
25178 if test -z "${BUILD_CHACHA_TRUE}" && test -z "${BUILD_CHACHA_FALSE}"; then
25179   as_fn_error $? "conditional \"BUILD_CHACHA\" was never defined.
25180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25181 fi
25182 if test -z "${BUILD_INLINE_TRUE}" && test -z "${BUILD_INLINE_FALSE}"; then
25183   as_fn_error $? "conditional \"BUILD_INLINE\" was never defined.
25184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25185 fi
25186 if test -z "${BUILD_OCSP_TRUE}" && test -z "${BUILD_OCSP_FALSE}"; then
25187   as_fn_error $? "conditional \"BUILD_OCSP\" was never defined.
25188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25189 fi
25190 if test -z "${BUILD_CRL_TRUE}" && test -z "${BUILD_CRL_FALSE}"; then
25191   as_fn_error $? "conditional \"BUILD_CRL\" was never defined.
25192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25193 fi
25194 if test -z "${BUILD_CRL_MONITOR_TRUE}" && test -z "${BUILD_CRL_MONITOR_FALSE}"; then
25195   as_fn_error $? "conditional \"BUILD_CRL_MONITOR\" was never defined.
25196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25197 fi
25198 if test -z "${BUILD_NTRU_TRUE}" && test -z "${BUILD_NTRU_FALSE}"; then
25199   as_fn_error $? "conditional \"BUILD_NTRU\" was never defined.
25200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25201 fi
25202 if test -z "${BUILD_PKCS7_TRUE}" && test -z "${BUILD_PKCS7_FALSE}"; then
25203   as_fn_error $? "conditional \"BUILD_PKCS7\" was never defined.
25204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25205 fi
25206 if test -z "${BUILD_PKCS7_TRUE}" && test -z "${BUILD_PKCS7_FALSE}"; then
25207   as_fn_error $? "conditional \"BUILD_PKCS7\" was never defined.
25208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25209 fi
25210 if test -z "${USE_VALGRIND_TRUE}" && test -z "${USE_VALGRIND_FALSE}"; then
25211   as_fn_error $? "conditional \"USE_VALGRIND\" was never defined.
25212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25213 fi
25214 if test -z "${BUILD_ECC_TRUE}" && test -z "${BUILD_ECC_FALSE}"; then
25215   as_fn_error $? "conditional \"BUILD_ECC\" was never defined.
25216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25217 fi
25218 if test -z "${BUILD_PWDBASED_TRUE}" && test -z "${BUILD_PWDBASED_FALSE}"; then
25219   as_fn_error $? "conditional \"BUILD_PWDBASED\" was never defined.
25220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25221 fi
25222 if test -z "${BUILD_FASTMATH_TRUE}" && test -z "${BUILD_FASTMATH_FALSE}"; then
25223   as_fn_error $? "conditional \"BUILD_FASTMATH\" was never defined.
25224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25225 fi
25226 if test -z "${BUILD_SLOWMATH_TRUE}" && test -z "${BUILD_SLOWMATH_FALSE}"; then
25227   as_fn_error $? "conditional \"BUILD_SLOWMATH\" was never defined.
25228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25229 fi
25230 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
25231   as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
25232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25233 fi
25234 if test -z "${BUILD_LIBZ_TRUE}" && test -z "${BUILD_LIBZ_FALSE}"; then
25235   as_fn_error $? "conditional \"BUILD_LIBZ\" was never defined.
25236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25237 fi
25238 if test -z "${BUILD_MCAPI_TRUE}" && test -z "${BUILD_MCAPI_FALSE}"; then
25239   as_fn_error $? "conditional \"BUILD_MCAPI\" was never defined.
25240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25241 fi
25242 if test -z "${BUILD_CRL_TRUE}" && test -z "${BUILD_CRL_FALSE}"; then
25243   as_fn_error $? "conditional \"BUILD_CRL\" was never defined.
25244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25245 fi
25246 if test -z "${BUILD_OCSP_TRUE}" && test -z "${BUILD_OCSP_FALSE}"; then
25247   as_fn_error $? "conditional \"BUILD_OCSP\" was never defined.
25248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25249 fi
25250 if test -z "${IS_VCS_CHECKOUT_TRUE}" && test -z "${IS_VCS_CHECKOUT_FALSE}"; then
25251   as_fn_error $? "conditional \"IS_VCS_CHECKOUT\" was never defined.
25252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25253 fi
25254
25255 : "${CONFIG_STATUS=./config.status}"
25256 ac_write_fail=0
25257 ac_clean_files_save=$ac_clean_files
25258 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25260 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25261 as_write_fail=0
25262 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25263 #! $SHELL
25264 # Generated by $as_me.
25265 # Run this file to recreate the current configuration.
25266 # Compiler output produced by configure, useful for debugging
25267 # configure, is in config.log if it exists.
25268
25269 debug=false
25270 ac_cs_recheck=false
25271 ac_cs_silent=false
25272
25273 SHELL=\${CONFIG_SHELL-$SHELL}
25274 export SHELL
25275 _ASEOF
25276 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25277 ## -------------------- ##
25278 ## M4sh Initialization. ##
25279 ## -------------------- ##
25280
25281 # Be more Bourne compatible
25282 DUALCASE=1; export DUALCASE # for MKS sh
25283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25284   emulate sh
25285   NULLCMD=:
25286   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25287   # is contrary to our usage.  Disable this feature.
25288   alias -g '${1+"$@"}'='"$@"'
25289   setopt NO_GLOB_SUBST
25290 else
25291   case `(set -o) 2>/dev/null` in #(
25292   *posix*) :
25293     set -o posix ;; #(
25294   *) :
25295      ;;
25296 esac
25297 fi
25298
25299
25300 as_nl='
25301 '
25302 export as_nl
25303 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25304 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25306 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25307 # Prefer a ksh shell builtin over an external printf program on Solaris,
25308 # but without wasting forks for bash or zsh.
25309 if test -z "$BASH_VERSION$ZSH_VERSION" \
25310     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25311   as_echo='print -r --'
25312   as_echo_n='print -rn --'
25313 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25314   as_echo='printf %s\n'
25315   as_echo_n='printf %s'
25316 else
25317   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25318     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25319     as_echo_n='/usr/ucb/echo -n'
25320   else
25321     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25322     as_echo_n_body='eval
25323       arg=$1;
25324       case $arg in #(
25325       *"$as_nl"*)
25326         expr "X$arg" : "X\\(.*\\)$as_nl";
25327         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25328       esac;
25329       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25330     '
25331     export as_echo_n_body
25332     as_echo_n='sh -c $as_echo_n_body as_echo'
25333   fi
25334   export as_echo_body
25335   as_echo='sh -c $as_echo_body as_echo'
25336 fi
25337
25338 # The user is always right.
25339 if test "${PATH_SEPARATOR+set}" != set; then
25340   PATH_SEPARATOR=:
25341   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25342     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25343       PATH_SEPARATOR=';'
25344   }
25345 fi
25346
25347
25348 # IFS
25349 # We need space, tab and new line, in precisely that order.  Quoting is
25350 # there to prevent editors from complaining about space-tab.
25351 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25352 # splitting by setting IFS to empty value.)
25353 IFS=" ""        $as_nl"
25354
25355 # Find who we are.  Look in the path if we contain no directory separator.
25356 as_myself=
25357 case $0 in #((
25358   *[\\/]* ) as_myself=$0 ;;
25359   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25360 for as_dir in $PATH
25361 do
25362   IFS=$as_save_IFS
25363   test -z "$as_dir" && as_dir=.
25364     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25365   done
25366 IFS=$as_save_IFS
25367
25368      ;;
25369 esac
25370 # We did not find ourselves, most probably we were run as `sh COMMAND'
25371 # in which case we are not to be found in the path.
25372 if test "x$as_myself" = x; then
25373   as_myself=$0
25374 fi
25375 if test ! -f "$as_myself"; then
25376   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25377   exit 1
25378 fi
25379
25380 # Unset variables that we do not need and which cause bugs (e.g. in
25381 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25382 # suppresses any "Segmentation fault" message there.  '((' could
25383 # trigger a bug in pdksh 5.2.14.
25384 for as_var in BASH_ENV ENV MAIL MAILPATH
25385 do eval test x\${$as_var+set} = xset \
25386   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25387 done
25388 PS1='$ '
25389 PS2='> '
25390 PS4='+ '
25391
25392 # NLS nuisances.
25393 LC_ALL=C
25394 export LC_ALL
25395 LANGUAGE=C
25396 export LANGUAGE
25397
25398 # CDPATH.
25399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25400
25401
25402 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25403 # ----------------------------------------
25404 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25405 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25406 # script with STATUS, using 1 if that was 0.
25407 as_fn_error ()
25408 {
25409   as_status=$1; test $as_status -eq 0 && as_status=1
25410   if test "$4"; then
25411     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25412     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25413   fi
25414   $as_echo "$as_me: error: $2" >&2
25415   as_fn_exit $as_status
25416 } # as_fn_error
25417
25418
25419 # as_fn_set_status STATUS
25420 # -----------------------
25421 # Set $? to STATUS, without forking.
25422 as_fn_set_status ()
25423 {
25424   return $1
25425 } # as_fn_set_status
25426
25427 # as_fn_exit STATUS
25428 # -----------------
25429 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25430 as_fn_exit ()
25431 {
25432   set +e
25433   as_fn_set_status $1
25434   exit $1
25435 } # as_fn_exit
25436
25437 # as_fn_unset VAR
25438 # ---------------
25439 # Portably unset VAR.
25440 as_fn_unset ()
25441 {
25442   { eval $1=; unset $1;}
25443 }
25444 as_unset=as_fn_unset
25445 # as_fn_append VAR VALUE
25446 # ----------------------
25447 # Append the text in VALUE to the end of the definition contained in VAR. Take
25448 # advantage of any shell optimizations that allow amortized linear growth over
25449 # repeated appends, instead of the typical quadratic growth present in naive
25450 # implementations.
25451 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25452   eval 'as_fn_append ()
25453   {
25454     eval $1+=\$2
25455   }'
25456 else
25457   as_fn_append ()
25458   {
25459     eval $1=\$$1\$2
25460   }
25461 fi # as_fn_append
25462
25463 # as_fn_arith ARG...
25464 # ------------------
25465 # Perform arithmetic evaluation on the ARGs, and store the result in the
25466 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25467 # must be portable across $(()) and expr.
25468 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25469   eval 'as_fn_arith ()
25470   {
25471     as_val=$(( $* ))
25472   }'
25473 else
25474   as_fn_arith ()
25475   {
25476     as_val=`expr "$@" || test $? -eq 1`
25477   }
25478 fi # as_fn_arith
25479
25480
25481 if expr a : '\(a\)' >/dev/null 2>&1 &&
25482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25483   as_expr=expr
25484 else
25485   as_expr=false
25486 fi
25487
25488 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25489   as_basename=basename
25490 else
25491   as_basename=false
25492 fi
25493
25494 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25495   as_dirname=dirname
25496 else
25497   as_dirname=false
25498 fi
25499
25500 as_me=`$as_basename -- "$0" ||
25501 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25502          X"$0" : 'X\(//\)$' \| \
25503          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25504 $as_echo X/"$0" |
25505     sed '/^.*\/\([^/][^/]*\)\/*$/{
25506             s//\1/
25507             q
25508           }
25509           /^X\/\(\/\/\)$/{
25510             s//\1/
25511             q
25512           }
25513           /^X\/\(\/\).*/{
25514             s//\1/
25515             q
25516           }
25517           s/.*/./; q'`
25518
25519 # Avoid depending upon Character Ranges.
25520 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25521 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25522 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25523 as_cr_digits='0123456789'
25524 as_cr_alnum=$as_cr_Letters$as_cr_digits
25525
25526 ECHO_C= ECHO_N= ECHO_T=
25527 case `echo -n x` in #(((((
25528 -n*)
25529   case `echo 'xy\c'` in
25530   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25531   xy)  ECHO_C='\c';;
25532   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25533        ECHO_T=' ';;
25534   esac;;
25535 *)
25536   ECHO_N='-n';;
25537 esac
25538
25539 rm -f conf$$ conf$$.exe conf$$.file
25540 if test -d conf$$.dir; then
25541   rm -f conf$$.dir/conf$$.file
25542 else
25543   rm -f conf$$.dir
25544   mkdir conf$$.dir 2>/dev/null
25545 fi
25546 if (echo >conf$$.file) 2>/dev/null; then
25547   if ln -s conf$$.file conf$$ 2>/dev/null; then
25548     as_ln_s='ln -s'
25549     # ... but there are two gotchas:
25550     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25551     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25552     # In both cases, we have to default to `cp -pR'.
25553     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25554       as_ln_s='cp -pR'
25555   elif ln conf$$.file conf$$ 2>/dev/null; then
25556     as_ln_s=ln
25557   else
25558     as_ln_s='cp -pR'
25559   fi
25560 else
25561   as_ln_s='cp -pR'
25562 fi
25563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25564 rmdir conf$$.dir 2>/dev/null
25565
25566
25567 # as_fn_mkdir_p
25568 # -------------
25569 # Create "$as_dir" as a directory, including parents if necessary.
25570 as_fn_mkdir_p ()
25571 {
25572
25573   case $as_dir in #(
25574   -*) as_dir=./$as_dir;;
25575   esac
25576   test -d "$as_dir" || eval $as_mkdir_p || {
25577     as_dirs=
25578     while :; do
25579       case $as_dir in #(
25580       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25581       *) as_qdir=$as_dir;;
25582       esac
25583       as_dirs="'$as_qdir' $as_dirs"
25584       as_dir=`$as_dirname -- "$as_dir" ||
25585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25586          X"$as_dir" : 'X\(//\)[^/]' \| \
25587          X"$as_dir" : 'X\(//\)$' \| \
25588          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25589 $as_echo X"$as_dir" |
25590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25591             s//\1/
25592             q
25593           }
25594           /^X\(\/\/\)[^/].*/{
25595             s//\1/
25596             q
25597           }
25598           /^X\(\/\/\)$/{
25599             s//\1/
25600             q
25601           }
25602           /^X\(\/\).*/{
25603             s//\1/
25604             q
25605           }
25606           s/.*/./; q'`
25607       test -d "$as_dir" && break
25608     done
25609     test -z "$as_dirs" || eval "mkdir $as_dirs"
25610   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25611
25612
25613 } # as_fn_mkdir_p
25614 if mkdir -p . 2>/dev/null; then
25615   as_mkdir_p='mkdir -p "$as_dir"'
25616 else
25617   test -d ./-p && rmdir ./-p
25618   as_mkdir_p=false
25619 fi
25620
25621
25622 # as_fn_executable_p FILE
25623 # -----------------------
25624 # Test if FILE is an executable regular file.
25625 as_fn_executable_p ()
25626 {
25627   test -f "$1" && test -x "$1"
25628 } # as_fn_executable_p
25629 as_test_x='test -x'
25630 as_executable_p=as_fn_executable_p
25631
25632 # Sed expression to map a string onto a valid CPP name.
25633 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25634
25635 # Sed expression to map a string onto a valid variable name.
25636 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25637
25638
25639 exec 6>&1
25640 ## ----------------------------------- ##
25641 ## Main body of $CONFIG_STATUS script. ##
25642 ## ----------------------------------- ##
25643 _ASEOF
25644 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25645
25646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25647 # Save the log message, to keep $0 and so on meaningful, and to
25648 # report actual input values of CONFIG_FILES etc. instead of their
25649 # values after options handling.
25650 ac_log="
25651 This file was extended by wolfssl $as_me 3.6.0, which was
25652 generated by GNU Autoconf 2.69.  Invocation command line was
25653
25654   CONFIG_FILES    = $CONFIG_FILES
25655   CONFIG_HEADERS  = $CONFIG_HEADERS
25656   CONFIG_LINKS    = $CONFIG_LINKS
25657   CONFIG_COMMANDS = $CONFIG_COMMANDS
25658   $ $0 $@
25659
25660 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25661 "
25662
25663 _ACEOF
25664
25665 case $ac_config_files in *"
25666 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25667 esac
25668
25669 case $ac_config_headers in *"
25670 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25671 esac
25672
25673
25674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25675 # Files that config.status was made for.
25676 config_files="$ac_config_files"
25677 config_headers="$ac_config_headers"
25678 config_commands="$ac_config_commands"
25679
25680 _ACEOF
25681
25682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25683 ac_cs_usage="\
25684 \`$as_me' instantiates files and other configuration actions
25685 from templates according to the current configuration.  Unless the files
25686 and actions are specified as TAGs, all are instantiated by default.
25687
25688 Usage: $0 [OPTION]... [TAG]...
25689
25690   -h, --help       print this help, then exit
25691   -V, --version    print version number and configuration settings, then exit
25692       --config     print configuration, then exit
25693   -q, --quiet, --silent
25694                    do not print progress messages
25695   -d, --debug      don't remove temporary files
25696       --recheck    update $as_me by reconfiguring in the same conditions
25697       --file=FILE[:TEMPLATE]
25698                    instantiate the configuration file FILE
25699       --header=FILE[:TEMPLATE]
25700                    instantiate the configuration header FILE
25701
25702 Configuration files:
25703 $config_files
25704
25705 Configuration headers:
25706 $config_headers
25707
25708 Configuration commands:
25709 $config_commands
25710
25711 Report bugs to <https://github.com/wolfssl/wolfssl/issues>.
25712 wolfssl home page: <http://www.wolfssl.com>."
25713
25714 _ACEOF
25715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25716 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25717 ac_cs_version="\\
25718 wolfssl config.status 3.6.0
25719 configured by $0, generated by GNU Autoconf 2.69,
25720   with options \\"\$ac_cs_config\\"
25721
25722 Copyright (C) 2012 Free Software Foundation, Inc.
25723 This config.status script is free software; the Free Software Foundation
25724 gives unlimited permission to copy, distribute and modify it."
25725
25726 ac_pwd='$ac_pwd'
25727 srcdir='$srcdir'
25728 INSTALL='$INSTALL'
25729 MKDIR_P='$MKDIR_P'
25730 AWK='$AWK'
25731 test -n "\$AWK" || AWK=awk
25732 _ACEOF
25733
25734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25735 # The default lists apply if the user does not specify any file.
25736 ac_need_defaults=:
25737 while test $# != 0
25738 do
25739   case $1 in
25740   --*=?*)
25741     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25742     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25743     ac_shift=:
25744     ;;
25745   --*=)
25746     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25747     ac_optarg=
25748     ac_shift=:
25749     ;;
25750   *)
25751     ac_option=$1
25752     ac_optarg=$2
25753     ac_shift=shift
25754     ;;
25755   esac
25756
25757   case $ac_option in
25758   # Handling of the options.
25759   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25760     ac_cs_recheck=: ;;
25761   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25762     $as_echo "$ac_cs_version"; exit ;;
25763   --config | --confi | --conf | --con | --co | --c )
25764     $as_echo "$ac_cs_config"; exit ;;
25765   --debug | --debu | --deb | --de | --d | -d )
25766     debug=: ;;
25767   --file | --fil | --fi | --f )
25768     $ac_shift
25769     case $ac_optarg in
25770     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25771     '') as_fn_error $? "missing file argument" ;;
25772     esac
25773     as_fn_append CONFIG_FILES " '$ac_optarg'"
25774     ac_need_defaults=false;;
25775   --header | --heade | --head | --hea )
25776     $ac_shift
25777     case $ac_optarg in
25778     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25779     esac
25780     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25781     ac_need_defaults=false;;
25782   --he | --h)
25783     # Conflict between --help and --header
25784     as_fn_error $? "ambiguous option: \`$1'
25785 Try \`$0 --help' for more information.";;
25786   --help | --hel | -h )
25787     $as_echo "$ac_cs_usage"; exit ;;
25788   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25789   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25790     ac_cs_silent=: ;;
25791
25792   # This is an error.
25793   -*) as_fn_error $? "unrecognized option: \`$1'
25794 Try \`$0 --help' for more information." ;;
25795
25796   *) as_fn_append ac_config_targets " $1"
25797      ac_need_defaults=false ;;
25798
25799   esac
25800   shift
25801 done
25802
25803 ac_configure_extra_args=
25804
25805 if $ac_cs_silent; then
25806   exec 6>/dev/null
25807   ac_configure_extra_args="$ac_configure_extra_args --silent"
25808 fi
25809
25810 _ACEOF
25811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25812 if \$ac_cs_recheck; then
25813   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25814   shift
25815   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25816   CONFIG_SHELL='$SHELL'
25817   export CONFIG_SHELL
25818   exec "\$@"
25819 fi
25820
25821 _ACEOF
25822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25823 exec 5>>config.log
25824 {
25825   echo
25826   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25827 ## Running $as_me. ##
25828 _ASBOX
25829   $as_echo "$ac_log"
25830 } >&5
25831
25832 _ACEOF
25833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25834 #
25835 # INIT-COMMANDS
25836 #
25837 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25838
25839
25840 # The HP-UX ksh and POSIX shell print the target directory to stdout
25841 # if CDPATH is set.
25842 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25843
25844 sed_quote_subst='$sed_quote_subst'
25845 double_quote_subst='$double_quote_subst'
25846 delay_variable_subst='$delay_variable_subst'
25847 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25848 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25849 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25850 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25851 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25852 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25853 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25854 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25855 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25856 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25857 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25858 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25859 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25860 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25861 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25862 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25863 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25864 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25865 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25866 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25867 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25868 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25869 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25870 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25871 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25872 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25873 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25874 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25875 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25876 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25877 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25878 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25879 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25880 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25881 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25882 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25883 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25884 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25885 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25886 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25887 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25888 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25889 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25890 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25891 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25892 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25893 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25894 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25895 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25896 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25897 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25898 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25899 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25900 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25901 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25902 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25903 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"`'
25904 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25905 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25906 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25907 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25908 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25909 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25910 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25911 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25912 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25913 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25914 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25915 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25916 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25917 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25918 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25919 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25920 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25921 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25922 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25923 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25924 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25925 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25926 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25927 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25928 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25929 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25930 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25931 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25932 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25933 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25934 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25935 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25936 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25937 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25938 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25939 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25940 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25941 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25942 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25943 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25944 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25945 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25946 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25947 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25948 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25949 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25950 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25951 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25952 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25953 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25954 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25955 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25956 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25957 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25958 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25959 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25960 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25961 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25962 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25963 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25964 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25965 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25966 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25967 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25968 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25969 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25970 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25971 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25972 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25973 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25974 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25975 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25976 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25977 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25978 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25979 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25980 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25981 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25982 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25983 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25984 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25985 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25986 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25987 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25988 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25989 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25990 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25991 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25992 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25993 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25994 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25995 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25996 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25997 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25998 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25999 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26000 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26001 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26002 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26003 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26004 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26005 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26006 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26007 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26008 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26009 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26010 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26011 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26012 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26013 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26014 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26015 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26016 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26017 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26018 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26019 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26020 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26021 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26022 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26023 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26024 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26025 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26026 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26027 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26028 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26029 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26030 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26031
26032 LTCC='$LTCC'
26033 LTCFLAGS='$LTCFLAGS'
26034 compiler='$compiler_DEFAULT'
26035
26036 # A function that is used when there is no print builtin or printf.
26037 func_fallback_echo ()
26038 {
26039   eval 'cat <<_LTECHO_EOF
26040 \$1
26041 _LTECHO_EOF'
26042 }
26043
26044 # Quote evaled strings.
26045 for var in SHELL \
26046 ECHO \
26047 PATH_SEPARATOR \
26048 SED \
26049 GREP \
26050 EGREP \
26051 FGREP \
26052 LD \
26053 NM \
26054 LN_S \
26055 lt_SP2NL \
26056 lt_NL2SP \
26057 reload_flag \
26058 OBJDUMP \
26059 deplibs_check_method \
26060 file_magic_cmd \
26061 file_magic_glob \
26062 want_nocaseglob \
26063 DLLTOOL \
26064 sharedlib_from_linklib_cmd \
26065 AR \
26066 AR_FLAGS \
26067 archiver_list_spec \
26068 STRIP \
26069 RANLIB \
26070 CC \
26071 CFLAGS \
26072 compiler \
26073 lt_cv_sys_global_symbol_pipe \
26074 lt_cv_sys_global_symbol_to_cdecl \
26075 lt_cv_sys_global_symbol_to_c_name_address \
26076 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26077 nm_file_list_spec \
26078 lt_prog_compiler_no_builtin_flag \
26079 lt_prog_compiler_pic \
26080 lt_prog_compiler_wl \
26081 lt_prog_compiler_static \
26082 lt_cv_prog_compiler_c_o \
26083 need_locks \
26084 MANIFEST_TOOL \
26085 DSYMUTIL \
26086 NMEDIT \
26087 LIPO \
26088 OTOOL \
26089 OTOOL64 \
26090 shrext_cmds \
26091 export_dynamic_flag_spec \
26092 whole_archive_flag_spec \
26093 compiler_needs_object \
26094 with_gnu_ld \
26095 allow_undefined_flag \
26096 no_undefined_flag \
26097 hardcode_libdir_flag_spec \
26098 hardcode_libdir_separator \
26099 exclude_expsyms \
26100 include_expsyms \
26101 file_list_spec \
26102 variables_saved_for_relink \
26103 libname_spec \
26104 library_names_spec \
26105 soname_spec \
26106 install_override_mode \
26107 finish_eval \
26108 old_striplib \
26109 striplib \
26110 compiler_lib_search_dirs \
26111 predep_objects \
26112 postdep_objects \
26113 predeps \
26114 postdeps \
26115 compiler_lib_search_path \
26116 LD_CXX \
26117 reload_flag_CXX \
26118 compiler_CXX \
26119 lt_prog_compiler_no_builtin_flag_CXX \
26120 lt_prog_compiler_pic_CXX \
26121 lt_prog_compiler_wl_CXX \
26122 lt_prog_compiler_static_CXX \
26123 lt_cv_prog_compiler_c_o_CXX \
26124 export_dynamic_flag_spec_CXX \
26125 whole_archive_flag_spec_CXX \
26126 compiler_needs_object_CXX \
26127 with_gnu_ld_CXX \
26128 allow_undefined_flag_CXX \
26129 no_undefined_flag_CXX \
26130 hardcode_libdir_flag_spec_CXX \
26131 hardcode_libdir_separator_CXX \
26132 exclude_expsyms_CXX \
26133 include_expsyms_CXX \
26134 file_list_spec_CXX \
26135 compiler_lib_search_dirs_CXX \
26136 predep_objects_CXX \
26137 postdep_objects_CXX \
26138 predeps_CXX \
26139 postdeps_CXX \
26140 compiler_lib_search_path_CXX; do
26141     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26142     *[\\\\\\\`\\"\\\$]*)
26143       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26144       ;;
26145     *)
26146       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26147       ;;
26148     esac
26149 done
26150
26151 # Double-quote double-evaled strings.
26152 for var in reload_cmds \
26153 old_postinstall_cmds \
26154 old_postuninstall_cmds \
26155 old_archive_cmds \
26156 extract_expsyms_cmds \
26157 old_archive_from_new_cmds \
26158 old_archive_from_expsyms_cmds \
26159 archive_cmds \
26160 archive_expsym_cmds \
26161 module_cmds \
26162 module_expsym_cmds \
26163 export_symbols_cmds \
26164 prelink_cmds \
26165 postlink_cmds \
26166 postinstall_cmds \
26167 postuninstall_cmds \
26168 finish_cmds \
26169 sys_lib_search_path_spec \
26170 sys_lib_dlsearch_path_spec \
26171 reload_cmds_CXX \
26172 old_archive_cmds_CXX \
26173 old_archive_from_new_cmds_CXX \
26174 old_archive_from_expsyms_cmds_CXX \
26175 archive_cmds_CXX \
26176 archive_expsym_cmds_CXX \
26177 module_cmds_CXX \
26178 module_expsym_cmds_CXX \
26179 export_symbols_cmds_CXX \
26180 prelink_cmds_CXX \
26181 postlink_cmds_CXX; do
26182     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26183     *[\\\\\\\`\\"\\\$]*)
26184       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26185       ;;
26186     *)
26187       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26188       ;;
26189     esac
26190 done
26191
26192 ac_aux_dir='$ac_aux_dir'
26193 xsi_shell='$xsi_shell'
26194 lt_shell_append='$lt_shell_append'
26195
26196 # See if we are running on zsh, and set the options which allow our
26197 # commands through without removal of \ escapes INIT.
26198 if test -n "\${ZSH_VERSION+set}" ; then
26199    setopt NO_GLOB_SUBST
26200 fi
26201
26202
26203     PACKAGE='$PACKAGE'
26204     VERSION='$VERSION'
26205     TIMESTAMP='$TIMESTAMP'
26206     RM='$RM'
26207     ofile='$ofile'
26208
26209
26210
26211
26212
26213
26214 _ACEOF
26215
26216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26217
26218 # Handling of arguments.
26219 for ac_config_target in $ac_config_targets
26220 do
26221   case $ac_config_target in
26222     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
26223     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26224     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26225     "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
26226     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26227     "wolfssl/version.h") CONFIG_FILES="$CONFIG_FILES wolfssl/version.h" ;;
26228     "wolfssl/options.h") CONFIG_FILES="$CONFIG_FILES wolfssl/options.h" ;;
26229     "support/wolfssl.pc") CONFIG_FILES="$CONFIG_FILES support/wolfssl.pc" ;;
26230     "rpm/spec") CONFIG_FILES="$CONFIG_FILES rpm/spec" ;;
26231
26232   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26233   esac
26234 done
26235
26236
26237 # If the user did not use the arguments to specify the items to instantiate,
26238 # then the envvar interface is used.  Set only those that are not.
26239 # We use the long form for the default assignment because of an extremely
26240 # bizarre bug on SunOS 4.1.3.
26241 if $ac_need_defaults; then
26242   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26243   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26244   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26245 fi
26246
26247 # Have a temporary directory for convenience.  Make it in the build tree
26248 # simply because there is no reason against having it here, and in addition,
26249 # creating and moving files from /tmp can sometimes cause problems.
26250 # Hook for its removal unless debugging.
26251 # Note that there is a small window in which the directory will not be cleaned:
26252 # after its creation but before its name has been assigned to `$tmp'.
26253 $debug ||
26254 {
26255   tmp= ac_tmp=
26256   trap 'exit_status=$?
26257   : "${ac_tmp:=$tmp}"
26258   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26259 ' 0
26260   trap 'as_fn_exit 1' 1 2 13 15
26261 }
26262 # Create a (secure) tmp directory for tmp files.
26263
26264 {
26265   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26266   test -d "$tmp"
26267 }  ||
26268 {
26269   tmp=./conf$$-$RANDOM
26270   (umask 077 && mkdir "$tmp")
26271 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26272 ac_tmp=$tmp
26273
26274 # Set up the scripts for CONFIG_FILES section.
26275 # No need to generate them if there are no CONFIG_FILES.
26276 # This happens for instance with `./config.status config.h'.
26277 if test -n "$CONFIG_FILES"; then
26278
26279
26280 ac_cr=`echo X | tr X '\015'`
26281 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26282 # But we know of no other shell where ac_cr would be empty at this
26283 # point, so we can use a bashism as a fallback.
26284 if test "x$ac_cr" = x; then
26285   eval ac_cr=\$\'\\r\'
26286 fi
26287 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26288 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26289   ac_cs_awk_cr='\\r'
26290 else
26291   ac_cs_awk_cr=$ac_cr
26292 fi
26293
26294 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26295 _ACEOF
26296
26297
26298 {
26299   echo "cat >conf$$subs.awk <<_ACEOF" &&
26300   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26301   echo "_ACEOF"
26302 } >conf$$subs.sh ||
26303   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26304 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26305 ac_delim='%!_!# '
26306 for ac_last_try in false false false false false :; do
26307   . ./conf$$subs.sh ||
26308     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26309
26310   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26311   if test $ac_delim_n = $ac_delim_num; then
26312     break
26313   elif $ac_last_try; then
26314     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26315   else
26316     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26317   fi
26318 done
26319 rm -f conf$$subs.sh
26320
26321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26322 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26323 _ACEOF
26324 sed -n '
26325 h
26326 s/^/S["/; s/!.*/"]=/
26327 p
26328 g
26329 s/^[^!]*!//
26330 :repl
26331 t repl
26332 s/'"$ac_delim"'$//
26333 t delim
26334 :nl
26335 h
26336 s/\(.\{148\}\)..*/\1/
26337 t more1
26338 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26339 p
26340 n
26341 b repl
26342 :more1
26343 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26344 p
26345 g
26346 s/.\{148\}//
26347 t nl
26348 :delim
26349 h
26350 s/\(.\{148\}\)..*/\1/
26351 t more2
26352 s/["\\]/\\&/g; s/^/"/; s/$/"/
26353 p
26354 b
26355 :more2
26356 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26357 p
26358 g
26359 s/.\{148\}//
26360 t delim
26361 ' <conf$$subs.awk | sed '
26362 /^[^""]/{
26363   N
26364   s/\n//
26365 }
26366 ' >>$CONFIG_STATUS || ac_write_fail=1
26367 rm -f conf$$subs.awk
26368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26369 _ACAWK
26370 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26371   for (key in S) S_is_set[key] = 1
26372   FS = "\a"
26373
26374 }
26375 {
26376   line = $ 0
26377   nfields = split(line, field, "@")
26378   substed = 0
26379   len = length(field[1])
26380   for (i = 2; i < nfields; i++) {
26381     key = field[i]
26382     keylen = length(key)
26383     if (S_is_set[key]) {
26384       value = S[key]
26385       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26386       len += length(value) + length(field[++i])
26387       substed = 1
26388     } else
26389       len += 1 + keylen
26390   }
26391
26392   print line
26393 }
26394
26395 _ACAWK
26396 _ACEOF
26397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26398 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26399   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26400 else
26401   cat
26402 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26403   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26404 _ACEOF
26405
26406 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26407 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26408 # trailing colons and then remove the whole line if VPATH becomes empty
26409 # (actually we leave an empty line to preserve line numbers).
26410 if test "x$srcdir" = x.; then
26411   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
26412 h
26413 s///
26414 s/^/:/
26415 s/[      ]*$/:/
26416 s/:\$(srcdir):/:/g
26417 s/:\${srcdir}:/:/g
26418 s/:@srcdir@:/:/g
26419 s/^:*//
26420 s/:*$//
26421 x
26422 s/\(=[   ]*\).*/\1/
26423 G
26424 s/\n//
26425 s/^[^=]*=[       ]*$//
26426 }'
26427 fi
26428
26429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26430 fi # test -n "$CONFIG_FILES"
26431
26432 # Set up the scripts for CONFIG_HEADERS section.
26433 # No need to generate them if there are no CONFIG_HEADERS.
26434 # This happens for instance with `./config.status Makefile'.
26435 if test -n "$CONFIG_HEADERS"; then
26436 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26437 BEGIN {
26438 _ACEOF
26439
26440 # Transform confdefs.h into an awk script `defines.awk', embedded as
26441 # here-document in config.status, that substitutes the proper values into
26442 # config.h.in to produce config.h.
26443
26444 # Create a delimiter string that does not exist in confdefs.h, to ease
26445 # handling of long lines.
26446 ac_delim='%!_!# '
26447 for ac_last_try in false false :; do
26448   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26449   if test -z "$ac_tt"; then
26450     break
26451   elif $ac_last_try; then
26452     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26453   else
26454     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26455   fi
26456 done
26457
26458 # For the awk script, D is an array of macro values keyed by name,
26459 # likewise P contains macro parameters if any.  Preserve backslash
26460 # newline sequences.
26461
26462 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26463 sed -n '
26464 s/.\{148\}/&'"$ac_delim"'/g
26465 t rset
26466 :rset
26467 s/^[     ]*#[    ]*define[       ][      ]*/ /
26468 t def
26469 d
26470 :def
26471 s/\\$//
26472 t bsnl
26473 s/["\\]/\\&/g
26474 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26475 D["\1"]=" \3"/p
26476 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26477 d
26478 :bsnl
26479 s/["\\]/\\&/g
26480 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26481 D["\1"]=" \3\\\\\\n"\\/p
26482 t cont
26483 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26484 t cont
26485 d
26486 :cont
26487 n
26488 s/.\{148\}/&'"$ac_delim"'/g
26489 t clear
26490 :clear
26491 s/\\$//
26492 t bsnlc
26493 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26494 d
26495 :bsnlc
26496 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26497 b cont
26498 ' <confdefs.h | sed '
26499 s/'"$ac_delim"'/"\\\
26500 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26501
26502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26503   for (key in D) D_is_set[key] = 1
26504   FS = "\a"
26505 }
26506 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26507   line = \$ 0
26508   split(line, arg, " ")
26509   if (arg[1] == "#") {
26510     defundef = arg[2]
26511     mac1 = arg[3]
26512   } else {
26513     defundef = substr(arg[1], 2)
26514     mac1 = arg[2]
26515   }
26516   split(mac1, mac2, "(") #)
26517   macro = mac2[1]
26518   prefix = substr(line, 1, index(line, defundef) - 1)
26519   if (D_is_set[macro]) {
26520     # Preserve the white space surrounding the "#".
26521     print prefix "define", macro P[macro] D[macro]
26522     next
26523   } else {
26524     # Replace #undef with comments.  This is necessary, for example,
26525     # in the case of _POSIX_SOURCE, which is predefined and required
26526     # on some systems where configure will not decide to define it.
26527     if (defundef == "undef") {
26528       print "/*", prefix defundef, macro, "*/"
26529       next
26530     }
26531   }
26532 }
26533 { print }
26534 _ACAWK
26535 _ACEOF
26536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26537   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26538 fi # test -n "$CONFIG_HEADERS"
26539
26540
26541 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26542 shift
26543 for ac_tag
26544 do
26545   case $ac_tag in
26546   :[FHLC]) ac_mode=$ac_tag; continue;;
26547   esac
26548   case $ac_mode$ac_tag in
26549   :[FHL]*:*);;
26550   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26551   :[FH]-) ac_tag=-:-;;
26552   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26553   esac
26554   ac_save_IFS=$IFS
26555   IFS=:
26556   set x $ac_tag
26557   IFS=$ac_save_IFS
26558   shift
26559   ac_file=$1
26560   shift
26561
26562   case $ac_mode in
26563   :L) ac_source=$1;;
26564   :[FH])
26565     ac_file_inputs=
26566     for ac_f
26567     do
26568       case $ac_f in
26569       -) ac_f="$ac_tmp/stdin";;
26570       *) # Look for the file first in the build tree, then in the source tree
26571          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26572          # because $ac_f cannot contain `:'.
26573          test -f "$ac_f" ||
26574            case $ac_f in
26575            [\\/$]*) false;;
26576            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26577            esac ||
26578            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26579       esac
26580       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26581       as_fn_append ac_file_inputs " '$ac_f'"
26582     done
26583
26584     # Let's still pretend it is `configure' which instantiates (i.e., don't
26585     # use $as_me), people would be surprised to read:
26586     #    /* config.h.  Generated by config.status.  */
26587     configure_input='Generated from '`
26588           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26589         `' by configure.'
26590     if test x"$ac_file" != x-; then
26591       configure_input="$ac_file.  $configure_input"
26592       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26593 $as_echo "$as_me: creating $ac_file" >&6;}
26594     fi
26595     # Neutralize special characters interpreted by sed in replacement strings.
26596     case $configure_input in #(
26597     *\&* | *\|* | *\\* )
26598        ac_sed_conf_input=`$as_echo "$configure_input" |
26599        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26600     *) ac_sed_conf_input=$configure_input;;
26601     esac
26602
26603     case $ac_tag in
26604     *:-:* | *:-) cat >"$ac_tmp/stdin" \
26605       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26606     esac
26607     ;;
26608   esac
26609
26610   ac_dir=`$as_dirname -- "$ac_file" ||
26611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26612          X"$ac_file" : 'X\(//\)[^/]' \| \
26613          X"$ac_file" : 'X\(//\)$' \| \
26614          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26615 $as_echo X"$ac_file" |
26616     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26617             s//\1/
26618             q
26619           }
26620           /^X\(\/\/\)[^/].*/{
26621             s//\1/
26622             q
26623           }
26624           /^X\(\/\/\)$/{
26625             s//\1/
26626             q
26627           }
26628           /^X\(\/\).*/{
26629             s//\1/
26630             q
26631           }
26632           s/.*/./; q'`
26633   as_dir="$ac_dir"; as_fn_mkdir_p
26634   ac_builddir=.
26635
26636 case "$ac_dir" in
26637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26638 *)
26639   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26640   # A ".." for each directory in $ac_dir_suffix.
26641   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26642   case $ac_top_builddir_sub in
26643   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26644   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26645   esac ;;
26646 esac
26647 ac_abs_top_builddir=$ac_pwd
26648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26649 # for backward compatibility:
26650 ac_top_builddir=$ac_top_build_prefix
26651
26652 case $srcdir in
26653   .)  # We are building in place.
26654     ac_srcdir=.
26655     ac_top_srcdir=$ac_top_builddir_sub
26656     ac_abs_top_srcdir=$ac_pwd ;;
26657   [\\/]* | ?:[\\/]* )  # Absolute name.
26658     ac_srcdir=$srcdir$ac_dir_suffix;
26659     ac_top_srcdir=$srcdir
26660     ac_abs_top_srcdir=$srcdir ;;
26661   *) # Relative name.
26662     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26663     ac_top_srcdir=$ac_top_build_prefix$srcdir
26664     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26665 esac
26666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26667
26668
26669   case $ac_mode in
26670   :F)
26671   #
26672   # CONFIG_FILE
26673   #
26674
26675   case $INSTALL in
26676   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26677   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26678   esac
26679   ac_MKDIR_P=$MKDIR_P
26680   case $MKDIR_P in
26681   [\\/$]* | ?:[\\/]* ) ;;
26682   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26683   esac
26684 _ACEOF
26685
26686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26687 # If the template does not know about datarootdir, expand it.
26688 # FIXME: This hack should be removed a few years after 2.60.
26689 ac_datarootdir_hack=; ac_datarootdir_seen=
26690 ac_sed_dataroot='
26691 /datarootdir/ {
26692   p
26693   q
26694 }
26695 /@datadir@/p
26696 /@docdir@/p
26697 /@infodir@/p
26698 /@localedir@/p
26699 /@mandir@/p'
26700 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26701 *datarootdir*) ac_datarootdir_seen=yes;;
26702 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26703   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26704 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26705 _ACEOF
26706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26707   ac_datarootdir_hack='
26708   s&@datadir@&$datadir&g
26709   s&@docdir@&$docdir&g
26710   s&@infodir@&$infodir&g
26711   s&@localedir@&$localedir&g
26712   s&@mandir@&$mandir&g
26713   s&\\\${datarootdir}&$datarootdir&g' ;;
26714 esac
26715 _ACEOF
26716
26717 # Neutralize VPATH when `$srcdir' = `.'.
26718 # Shell code in configure.ac might set extrasub.
26719 # FIXME: do we really want to maintain this feature?
26720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26721 ac_sed_extra="$ac_vpsub
26722 $extrasub
26723 _ACEOF
26724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26725 :t
26726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26727 s|@configure_input@|$ac_sed_conf_input|;t t
26728 s&@top_builddir@&$ac_top_builddir_sub&;t t
26729 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26730 s&@srcdir@&$ac_srcdir&;t t
26731 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26732 s&@top_srcdir@&$ac_top_srcdir&;t t
26733 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26734 s&@builddir@&$ac_builddir&;t t
26735 s&@abs_builddir@&$ac_abs_builddir&;t t
26736 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26737 s&@INSTALL@&$ac_INSTALL&;t t
26738 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26739 $ac_datarootdir_hack
26740 "
26741 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26742   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26743
26744 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26745   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26746   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
26747       "$ac_tmp/out"`; test -z "$ac_out"; } &&
26748   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26749 which seems to be undefined.  Please make sure it is defined" >&5
26750 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26751 which seems to be undefined.  Please make sure it is defined" >&2;}
26752
26753   rm -f "$ac_tmp/stdin"
26754   case $ac_file in
26755   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26756   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26757   esac \
26758   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26759  ;;
26760   :H)
26761   #
26762   # CONFIG_HEADER
26763   #
26764   if test x"$ac_file" != x-; then
26765     {
26766       $as_echo "/* $configure_input  */" \
26767       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26768     } >"$ac_tmp/config.h" \
26769       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26770     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26771       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26772 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26773     else
26774       rm -f "$ac_file"
26775       mv "$ac_tmp/config.h" "$ac_file" \
26776         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26777     fi
26778   else
26779     $as_echo "/* $configure_input  */" \
26780       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26781       || as_fn_error $? "could not create -" "$LINENO" 5
26782   fi
26783 # Compute "$ac_file"'s index in $config_headers.
26784 _am_arg="$ac_file"
26785 _am_stamp_count=1
26786 for _am_header in $config_headers :; do
26787   case $_am_header in
26788     $_am_arg | $_am_arg:* )
26789       break ;;
26790     * )
26791       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26792   esac
26793 done
26794 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26795 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26796          X"$_am_arg" : 'X\(//\)[^/]' \| \
26797          X"$_am_arg" : 'X\(//\)$' \| \
26798          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26799 $as_echo X"$_am_arg" |
26800     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26801             s//\1/
26802             q
26803           }
26804           /^X\(\/\/\)[^/].*/{
26805             s//\1/
26806             q
26807           }
26808           /^X\(\/\/\)$/{
26809             s//\1/
26810             q
26811           }
26812           /^X\(\/\).*/{
26813             s//\1/
26814             q
26815           }
26816           s/.*/./; q'`/stamp-h$_am_stamp_count
26817  ;;
26818
26819   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26820 $as_echo "$as_me: executing $ac_file commands" >&6;}
26821  ;;
26822   esac
26823
26824
26825   case $ac_file$ac_mode in
26826     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26827   # Older Autoconf quotes --file arguments for eval, but not when files
26828   # are listed without --file.  Let's play safe and only enable the eval
26829   # if we detect the quoting.
26830   case $CONFIG_FILES in
26831   *\'*) eval set x "$CONFIG_FILES" ;;
26832   *)   set x $CONFIG_FILES ;;
26833   esac
26834   shift
26835   for mf
26836   do
26837     # Strip MF so we end up with the name of the file.
26838     mf=`echo "$mf" | sed -e 's/:.*$//'`
26839     # Check whether this is an Automake generated Makefile or not.
26840     # We used to match only the files named 'Makefile.in', but
26841     # some people rename them; so instead we look at the file content.
26842     # Grep'ing the first line is not enough: some people post-process
26843     # each Makefile.in and add a new line on top of each file to say so.
26844     # Grep'ing the whole file is not good either: AIX grep has a line
26845     # limit of 2048, but all sed's we know have understand at least 4000.
26846     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26847       dirpart=`$as_dirname -- "$mf" ||
26848 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26849          X"$mf" : 'X\(//\)[^/]' \| \
26850          X"$mf" : 'X\(//\)$' \| \
26851          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26852 $as_echo X"$mf" |
26853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26854             s//\1/
26855             q
26856           }
26857           /^X\(\/\/\)[^/].*/{
26858             s//\1/
26859             q
26860           }
26861           /^X\(\/\/\)$/{
26862             s//\1/
26863             q
26864           }
26865           /^X\(\/\).*/{
26866             s//\1/
26867             q
26868           }
26869           s/.*/./; q'`
26870     else
26871       continue
26872     fi
26873     # Extract the definition of DEPDIR, am__include, and am__quote
26874     # from the Makefile without running 'make'.
26875     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26876     test -z "$DEPDIR" && continue
26877     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26878     test -z "$am__include" && continue
26879     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26880     # Find all dependency output files, they are included files with
26881     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26882     # simplest approach to changing $(DEPDIR) to its actual value in the
26883     # expansion.
26884     for file in `sed -n "
26885       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26886          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
26887       # Make sure the directory exists.
26888       test -f "$dirpart/$file" && continue
26889       fdir=`$as_dirname -- "$file" ||
26890 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26891          X"$file" : 'X\(//\)[^/]' \| \
26892          X"$file" : 'X\(//\)$' \| \
26893          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26894 $as_echo X"$file" |
26895     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26896             s//\1/
26897             q
26898           }
26899           /^X\(\/\/\)[^/].*/{
26900             s//\1/
26901             q
26902           }
26903           /^X\(\/\/\)$/{
26904             s//\1/
26905             q
26906           }
26907           /^X\(\/\).*/{
26908             s//\1/
26909             q
26910           }
26911           s/.*/./; q'`
26912       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26913       # echo "creating $dirpart/$file"
26914       echo '# dummy' > "$dirpart/$file"
26915     done
26916   done
26917 }
26918  ;;
26919     "libtool":C)
26920
26921     # See if we are running on zsh, and set the options which allow our
26922     # commands through without removal of \ escapes.
26923     if test -n "${ZSH_VERSION+set}" ; then
26924       setopt NO_GLOB_SUBST
26925     fi
26926
26927     cfgfile="${ofile}T"
26928     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26929     $RM "$cfgfile"
26930
26931     cat <<_LT_EOF >> "$cfgfile"
26932 #! $SHELL
26933
26934 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26935 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26936 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26937 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26938 #
26939 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26940 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26941 #                 Foundation, Inc.
26942 #   Written by Gordon Matzigkeit, 1996
26943 #
26944 #   This file is part of GNU Libtool.
26945 #
26946 # GNU Libtool is free software; you can redistribute it and/or
26947 # modify it under the terms of the GNU General Public License as
26948 # published by the Free Software Foundation; either version 2 of
26949 # the License, or (at your option) any later version.
26950 #
26951 # As a special exception to the GNU General Public License,
26952 # if you distribute this file as part of a program or library that
26953 # is built using GNU Libtool, you may include this file under the
26954 # same distribution terms that you use for the rest of that program.
26955 #
26956 # GNU Libtool is distributed in the hope that it will be useful,
26957 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26958 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26959 # GNU General Public License for more details.
26960 #
26961 # You should have received a copy of the GNU General Public License
26962 # along with GNU Libtool; see the file COPYING.  If not, a copy
26963 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26964 # obtained by writing to the Free Software Foundation, Inc.,
26965 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26966
26967
26968 # The names of the tagged configurations supported by this script.
26969 available_tags="CXX "
26970
26971 # ### BEGIN LIBTOOL CONFIG
26972
26973 # Which release of libtool.m4 was used?
26974 macro_version=$macro_version
26975 macro_revision=$macro_revision
26976
26977 # Whether or not to build static libraries.
26978 build_old_libs=$enable_static
26979
26980 # Whether or not to build shared libraries.
26981 build_libtool_libs=$enable_shared
26982
26983 # What type of objects to build.
26984 pic_mode=$pic_mode
26985
26986 # Whether or not to optimize for fast installation.
26987 fast_install=$enable_fast_install
26988
26989 # Shell to use when invoking shell scripts.
26990 SHELL=$lt_SHELL
26991
26992 # An echo program that protects backslashes.
26993 ECHO=$lt_ECHO
26994
26995 # The PATH separator for the build system.
26996 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26997
26998 # The host system.
26999 host_alias=$host_alias
27000 host=$host
27001 host_os=$host_os
27002
27003 # The build system.
27004 build_alias=$build_alias
27005 build=$build
27006 build_os=$build_os
27007
27008 # A sed program that does not truncate output.
27009 SED=$lt_SED
27010
27011 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27012 Xsed="\$SED -e 1s/^X//"
27013
27014 # A grep program that handles long lines.
27015 GREP=$lt_GREP
27016
27017 # An ERE matcher.
27018 EGREP=$lt_EGREP
27019
27020 # A literal string matcher.
27021 FGREP=$lt_FGREP
27022
27023 # A BSD- or MS-compatible name lister.
27024 NM=$lt_NM
27025
27026 # Whether we need soft or hard links.
27027 LN_S=$lt_LN_S
27028
27029 # What is the maximum length of a command?
27030 max_cmd_len=$max_cmd_len
27031
27032 # Object file suffix (normally "o").
27033 objext=$ac_objext
27034
27035 # Executable file suffix (normally "").
27036 exeext=$exeext
27037
27038 # whether the shell understands "unset".
27039 lt_unset=$lt_unset
27040
27041 # turn spaces into newlines.
27042 SP2NL=$lt_lt_SP2NL
27043
27044 # turn newlines into spaces.
27045 NL2SP=$lt_lt_NL2SP
27046
27047 # convert \$build file names to \$host format.
27048 to_host_file_cmd=$lt_cv_to_host_file_cmd
27049
27050 # convert \$build files to toolchain format.
27051 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27052
27053 # An object symbol dumper.
27054 OBJDUMP=$lt_OBJDUMP
27055
27056 # Method to check whether dependent libraries are shared objects.
27057 deplibs_check_method=$lt_deplibs_check_method
27058
27059 # Command to use when deplibs_check_method = "file_magic".
27060 file_magic_cmd=$lt_file_magic_cmd
27061
27062 # How to find potential files when deplibs_check_method = "file_magic".
27063 file_magic_glob=$lt_file_magic_glob
27064
27065 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27066 want_nocaseglob=$lt_want_nocaseglob
27067
27068 # DLL creation program.
27069 DLLTOOL=$lt_DLLTOOL
27070
27071 # Command to associate shared and link libraries.
27072 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27073
27074 # The archiver.
27075 AR=$lt_AR
27076
27077 # Flags to create an archive.
27078 AR_FLAGS=$lt_AR_FLAGS
27079
27080 # How to feed a file listing to the archiver.
27081 archiver_list_spec=$lt_archiver_list_spec
27082
27083 # A symbol stripping program.
27084 STRIP=$lt_STRIP
27085
27086 # Commands used to install an old-style archive.
27087 RANLIB=$lt_RANLIB
27088 old_postinstall_cmds=$lt_old_postinstall_cmds
27089 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27090
27091 # Whether to use a lock for old archive extraction.
27092 lock_old_archive_extraction=$lock_old_archive_extraction
27093
27094 # A C compiler.
27095 LTCC=$lt_CC
27096
27097 # LTCC compiler flags.
27098 LTCFLAGS=$lt_CFLAGS
27099
27100 # Take the output of nm and produce a listing of raw symbols and C names.
27101 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27102
27103 # Transform the output of nm in a proper C declaration.
27104 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27105
27106 # Transform the output of nm in a C name address pair.
27107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27108
27109 # Transform the output of nm in a C name address pair when lib prefix is needed.
27110 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27111
27112 # Specify filename containing input files for \$NM.
27113 nm_file_list_spec=$lt_nm_file_list_spec
27114
27115 # The root where to search for dependent libraries,and in which our libraries should be installed.
27116 lt_sysroot=$lt_sysroot
27117
27118 # The name of the directory that contains temporary libtool files.
27119 objdir=$objdir
27120
27121 # Used to examine libraries when file_magic_cmd begins with "file".
27122 MAGIC_CMD=$MAGIC_CMD
27123
27124 # Must we lock files when doing compilation?
27125 need_locks=$lt_need_locks
27126
27127 # Manifest tool.
27128 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27129
27130 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27131 DSYMUTIL=$lt_DSYMUTIL
27132
27133 # Tool to change global to local symbols on Mac OS X.
27134 NMEDIT=$lt_NMEDIT
27135
27136 # Tool to manipulate fat objects and archives on Mac OS X.
27137 LIPO=$lt_LIPO
27138
27139 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27140 OTOOL=$lt_OTOOL
27141
27142 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27143 OTOOL64=$lt_OTOOL64
27144
27145 # Old archive suffix (normally "a").
27146 libext=$libext
27147
27148 # Shared library suffix (normally ".so").
27149 shrext_cmds=$lt_shrext_cmds
27150
27151 # The commands to extract the exported symbol list from a shared archive.
27152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27153
27154 # Variables whose values should be saved in libtool wrapper scripts and
27155 # restored at link time.
27156 variables_saved_for_relink=$lt_variables_saved_for_relink
27157
27158 # Do we need the "lib" prefix for modules?
27159 need_lib_prefix=$need_lib_prefix
27160
27161 # Do we need a version for libraries?
27162 need_version=$need_version
27163
27164 # Library versioning type.
27165 version_type=$version_type
27166
27167 # Shared library runtime path variable.
27168 runpath_var=$runpath_var
27169
27170 # Shared library path variable.
27171 shlibpath_var=$shlibpath_var
27172
27173 # Is shlibpath searched before the hard-coded library search path?
27174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27175
27176 # Format of library name prefix.
27177 libname_spec=$lt_libname_spec
27178
27179 # List of archive names.  First name is the real one, the rest are links.
27180 # The last name is the one that the linker finds with -lNAME
27181 library_names_spec=$lt_library_names_spec
27182
27183 # The coded name of the library, if different from the real name.
27184 soname_spec=$lt_soname_spec
27185
27186 # Permission mode override for installation of shared libraries.
27187 install_override_mode=$lt_install_override_mode
27188
27189 # Command to use after installation of a shared archive.
27190 postinstall_cmds=$lt_postinstall_cmds
27191
27192 # Command to use after uninstallation of a shared archive.
27193 postuninstall_cmds=$lt_postuninstall_cmds
27194
27195 # Commands used to finish a libtool library installation in a directory.
27196 finish_cmds=$lt_finish_cmds
27197
27198 # As "finish_cmds", except a single script fragment to be evaled but
27199 # not shown.
27200 finish_eval=$lt_finish_eval
27201
27202 # Whether we should hardcode library paths into libraries.
27203 hardcode_into_libs=$hardcode_into_libs
27204
27205 # Compile-time system search path for libraries.
27206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27207
27208 # Run-time system search path for libraries.
27209 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27210
27211 # Whether dlopen is supported.
27212 dlopen_support=$enable_dlopen
27213
27214 # Whether dlopen of programs is supported.
27215 dlopen_self=$enable_dlopen_self
27216
27217 # Whether dlopen of statically linked programs is supported.
27218 dlopen_self_static=$enable_dlopen_self_static
27219
27220 # Commands to strip libraries.
27221 old_striplib=$lt_old_striplib
27222 striplib=$lt_striplib
27223
27224
27225 # The linker used to build libraries.
27226 LD=$lt_LD
27227
27228 # How to create reloadable object files.
27229 reload_flag=$lt_reload_flag
27230 reload_cmds=$lt_reload_cmds
27231
27232 # Commands used to build an old-style archive.
27233 old_archive_cmds=$lt_old_archive_cmds
27234
27235 # A language specific compiler.
27236 CC=$lt_compiler
27237
27238 # Is the compiler the GNU compiler?
27239 with_gcc=$GCC
27240
27241 # Compiler flag to turn off builtin functions.
27242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27243
27244 # Additional compiler flags for building library objects.
27245 pic_flag=$lt_lt_prog_compiler_pic
27246
27247 # How to pass a linker flag through the compiler.
27248 wl=$lt_lt_prog_compiler_wl
27249
27250 # Compiler flag to prevent dynamic linking.
27251 link_static_flag=$lt_lt_prog_compiler_static
27252
27253 # Does compiler simultaneously support -c and -o options?
27254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27255
27256 # Whether or not to add -lc for building shared libraries.
27257 build_libtool_need_lc=$archive_cmds_need_lc
27258
27259 # Whether or not to disallow shared libs when runtime libs are static.
27260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27261
27262 # Compiler flag to allow reflexive dlopens.
27263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27264
27265 # Compiler flag to generate shared objects directly from archives.
27266 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27267
27268 # Whether the compiler copes with passing no objects directly.
27269 compiler_needs_object=$lt_compiler_needs_object
27270
27271 # Create an old-style archive from a shared archive.
27272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27273
27274 # Create a temporary old-style archive to link instead of a shared archive.
27275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27276
27277 # Commands used to build a shared archive.
27278 archive_cmds=$lt_archive_cmds
27279 archive_expsym_cmds=$lt_archive_expsym_cmds
27280
27281 # Commands used to build a loadable module if different from building
27282 # a shared archive.
27283 module_cmds=$lt_module_cmds
27284 module_expsym_cmds=$lt_module_expsym_cmds
27285
27286 # Whether we are building with GNU ld or not.
27287 with_gnu_ld=$lt_with_gnu_ld
27288
27289 # Flag that allows shared libraries with undefined symbols to be built.
27290 allow_undefined_flag=$lt_allow_undefined_flag
27291
27292 # Flag that enforces no undefined symbols.
27293 no_undefined_flag=$lt_no_undefined_flag
27294
27295 # Flag to hardcode \$libdir into a binary during linking.
27296 # This must work even if \$libdir does not exist
27297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27298
27299 # Whether we need a single "-rpath" flag with a separated argument.
27300 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27301
27302 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27303 # DIR into the resulting binary.
27304 hardcode_direct=$hardcode_direct
27305
27306 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27307 # DIR into the resulting binary and the resulting library dependency is
27308 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27309 # library is relocated.
27310 hardcode_direct_absolute=$hardcode_direct_absolute
27311
27312 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27313 # into the resulting binary.
27314 hardcode_minus_L=$hardcode_minus_L
27315
27316 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27317 # into the resulting binary.
27318 hardcode_shlibpath_var=$hardcode_shlibpath_var
27319
27320 # Set to "yes" if building a shared library automatically hardcodes DIR
27321 # into the library and all subsequent libraries and executables linked
27322 # against it.
27323 hardcode_automatic=$hardcode_automatic
27324
27325 # Set to yes if linker adds runtime paths of dependent libraries
27326 # to runtime path list.
27327 inherit_rpath=$inherit_rpath
27328
27329 # Whether libtool must link a program against all its dependency libraries.
27330 link_all_deplibs=$link_all_deplibs
27331
27332 # Set to "yes" if exported symbols are required.
27333 always_export_symbols=$always_export_symbols
27334
27335 # The commands to list exported symbols.
27336 export_symbols_cmds=$lt_export_symbols_cmds
27337
27338 # Symbols that should not be listed in the preloaded symbols.
27339 exclude_expsyms=$lt_exclude_expsyms
27340
27341 # Symbols that must always be exported.
27342 include_expsyms=$lt_include_expsyms
27343
27344 # Commands necessary for linking programs (against libraries) with templates.
27345 prelink_cmds=$lt_prelink_cmds
27346
27347 # Commands necessary for finishing linking programs.
27348 postlink_cmds=$lt_postlink_cmds
27349
27350 # Specify filename containing input files.
27351 file_list_spec=$lt_file_list_spec
27352
27353 # How to hardcode a shared library path into an executable.
27354 hardcode_action=$hardcode_action
27355
27356 # The directories searched by this compiler when creating a shared library.
27357 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27358
27359 # Dependencies to place before and after the objects being linked to
27360 # create a shared library.
27361 predep_objects=$lt_predep_objects
27362 postdep_objects=$lt_postdep_objects
27363 predeps=$lt_predeps
27364 postdeps=$lt_postdeps
27365
27366 # The library search path used internally by the compiler when linking
27367 # a shared library.
27368 compiler_lib_search_path=$lt_compiler_lib_search_path
27369
27370 # ### END LIBTOOL CONFIG
27371
27372 _LT_EOF
27373
27374   case $host_os in
27375   aix3*)
27376     cat <<\_LT_EOF >> "$cfgfile"
27377 # AIX sometimes has problems with the GCC collect2 program.  For some
27378 # reason, if we set the COLLECT_NAMES environment variable, the problems
27379 # vanish in a puff of smoke.
27380 if test "X${COLLECT_NAMES+set}" != Xset; then
27381   COLLECT_NAMES=
27382   export COLLECT_NAMES
27383 fi
27384 _LT_EOF
27385     ;;
27386   esac
27387
27388
27389 ltmain="$ac_aux_dir/ltmain.sh"
27390
27391
27392   # We use sed instead of cat because bash on DJGPP gets confused if
27393   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27394   # text mode, it properly converts lines to CR/LF.  This bash problem
27395   # is reportedly fixed, but why not run on old versions too?
27396   sed '$q' "$ltmain" >> "$cfgfile" \
27397      || (rm -f "$cfgfile"; exit 1)
27398
27399   if test x"$xsi_shell" = xyes; then
27400   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27401 func_dirname ()\
27402 {\
27403 \    case ${1} in\
27404 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27405 \      *  ) func_dirname_result="${3}" ;;\
27406 \    esac\
27407 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27408   && mv -f "$cfgfile.tmp" "$cfgfile" \
27409     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27410 test 0 -eq $? || _lt_function_replace_fail=:
27411
27412
27413   sed -e '/^func_basename ()$/,/^} # func_basename /c\
27414 func_basename ()\
27415 {\
27416 \    func_basename_result="${1##*/}"\
27417 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27418   && mv -f "$cfgfile.tmp" "$cfgfile" \
27419     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27420 test 0 -eq $? || _lt_function_replace_fail=:
27421
27422
27423   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27424 func_dirname_and_basename ()\
27425 {\
27426 \    case ${1} in\
27427 \      */*) func_dirname_result="${1%/*}${2}" ;;\
27428 \      *  ) func_dirname_result="${3}" ;;\
27429 \    esac\
27430 \    func_basename_result="${1##*/}"\
27431 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27432   && mv -f "$cfgfile.tmp" "$cfgfile" \
27433     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27434 test 0 -eq $? || _lt_function_replace_fail=:
27435
27436
27437   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27438 func_stripname ()\
27439 {\
27440 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27441 \    # positional parameters, so assign one to ordinary parameter first.\
27442 \    func_stripname_result=${3}\
27443 \    func_stripname_result=${func_stripname_result#"${1}"}\
27444 \    func_stripname_result=${func_stripname_result%"${2}"}\
27445 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27446   && mv -f "$cfgfile.tmp" "$cfgfile" \
27447     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27448 test 0 -eq $? || _lt_function_replace_fail=:
27449
27450
27451   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27452 func_split_long_opt ()\
27453 {\
27454 \    func_split_long_opt_name=${1%%=*}\
27455 \    func_split_long_opt_arg=${1#*=}\
27456 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27457   && mv -f "$cfgfile.tmp" "$cfgfile" \
27458     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27459 test 0 -eq $? || _lt_function_replace_fail=:
27460
27461
27462   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27463 func_split_short_opt ()\
27464 {\
27465 \    func_split_short_opt_arg=${1#??}\
27466 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27467 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27468   && mv -f "$cfgfile.tmp" "$cfgfile" \
27469     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27470 test 0 -eq $? || _lt_function_replace_fail=:
27471
27472
27473   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27474 func_lo2o ()\
27475 {\
27476 \    case ${1} in\
27477 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27478 \      *)    func_lo2o_result=${1} ;;\
27479 \    esac\
27480 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27481   && mv -f "$cfgfile.tmp" "$cfgfile" \
27482     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27483 test 0 -eq $? || _lt_function_replace_fail=:
27484
27485
27486   sed -e '/^func_xform ()$/,/^} # func_xform /c\
27487 func_xform ()\
27488 {\
27489     func_xform_result=${1%.*}.lo\
27490 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27491   && mv -f "$cfgfile.tmp" "$cfgfile" \
27492     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27493 test 0 -eq $? || _lt_function_replace_fail=:
27494
27495
27496   sed -e '/^func_arith ()$/,/^} # func_arith /c\
27497 func_arith ()\
27498 {\
27499     func_arith_result=$(( $* ))\
27500 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27501   && mv -f "$cfgfile.tmp" "$cfgfile" \
27502     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27503 test 0 -eq $? || _lt_function_replace_fail=:
27504
27505
27506   sed -e '/^func_len ()$/,/^} # func_len /c\
27507 func_len ()\
27508 {\
27509     func_len_result=${#1}\
27510 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27511   && mv -f "$cfgfile.tmp" "$cfgfile" \
27512     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27513 test 0 -eq $? || _lt_function_replace_fail=:
27514
27515 fi
27516
27517 if test x"$lt_shell_append" = xyes; then
27518   sed -e '/^func_append ()$/,/^} # func_append /c\
27519 func_append ()\
27520 {\
27521     eval "${1}+=\\${2}"\
27522 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27523   && mv -f "$cfgfile.tmp" "$cfgfile" \
27524     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27525 test 0 -eq $? || _lt_function_replace_fail=:
27526
27527
27528   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27529 func_append_quoted ()\
27530 {\
27531 \    func_quote_for_eval "${2}"\
27532 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27533 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27534   && mv -f "$cfgfile.tmp" "$cfgfile" \
27535     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27536 test 0 -eq $? || _lt_function_replace_fail=:
27537
27538
27539   # Save a `func_append' function call where possible by direct use of '+='
27540   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27541     && mv -f "$cfgfile.tmp" "$cfgfile" \
27542       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27543   test 0 -eq $? || _lt_function_replace_fail=:
27544 else
27545   # Save a `func_append' function call even when '+=' is not available
27546   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27547     && mv -f "$cfgfile.tmp" "$cfgfile" \
27548       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27549   test 0 -eq $? || _lt_function_replace_fail=:
27550 fi
27551
27552 if test x"$_lt_function_replace_fail" = x":"; then
27553   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27554 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27555 fi
27556
27557
27558    mv -f "$cfgfile" "$ofile" ||
27559     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27560   chmod +x "$ofile"
27561
27562
27563     cat <<_LT_EOF >> "$ofile"
27564
27565 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27566
27567 # The linker used to build libraries.
27568 LD=$lt_LD_CXX
27569
27570 # How to create reloadable object files.
27571 reload_flag=$lt_reload_flag_CXX
27572 reload_cmds=$lt_reload_cmds_CXX
27573
27574 # Commands used to build an old-style archive.
27575 old_archive_cmds=$lt_old_archive_cmds_CXX
27576
27577 # A language specific compiler.
27578 CC=$lt_compiler_CXX
27579
27580 # Is the compiler the GNU compiler?
27581 with_gcc=$GCC_CXX
27582
27583 # Compiler flag to turn off builtin functions.
27584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27585
27586 # Additional compiler flags for building library objects.
27587 pic_flag=$lt_lt_prog_compiler_pic_CXX
27588
27589 # How to pass a linker flag through the compiler.
27590 wl=$lt_lt_prog_compiler_wl_CXX
27591
27592 # Compiler flag to prevent dynamic linking.
27593 link_static_flag=$lt_lt_prog_compiler_static_CXX
27594
27595 # Does compiler simultaneously support -c and -o options?
27596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27597
27598 # Whether or not to add -lc for building shared libraries.
27599 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27600
27601 # Whether or not to disallow shared libs when runtime libs are static.
27602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27603
27604 # Compiler flag to allow reflexive dlopens.
27605 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27606
27607 # Compiler flag to generate shared objects directly from archives.
27608 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27609
27610 # Whether the compiler copes with passing no objects directly.
27611 compiler_needs_object=$lt_compiler_needs_object_CXX
27612
27613 # Create an old-style archive from a shared archive.
27614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27615
27616 # Create a temporary old-style archive to link instead of a shared archive.
27617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27618
27619 # Commands used to build a shared archive.
27620 archive_cmds=$lt_archive_cmds_CXX
27621 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27622
27623 # Commands used to build a loadable module if different from building
27624 # a shared archive.
27625 module_cmds=$lt_module_cmds_CXX
27626 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27627
27628 # Whether we are building with GNU ld or not.
27629 with_gnu_ld=$lt_with_gnu_ld_CXX
27630
27631 # Flag that allows shared libraries with undefined symbols to be built.
27632 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27633
27634 # Flag that enforces no undefined symbols.
27635 no_undefined_flag=$lt_no_undefined_flag_CXX
27636
27637 # Flag to hardcode \$libdir into a binary during linking.
27638 # This must work even if \$libdir does not exist
27639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27640
27641 # Whether we need a single "-rpath" flag with a separated argument.
27642 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27643
27644 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27645 # DIR into the resulting binary.
27646 hardcode_direct=$hardcode_direct_CXX
27647
27648 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27649 # DIR into the resulting binary and the resulting library dependency is
27650 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27651 # library is relocated.
27652 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27653
27654 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27655 # into the resulting binary.
27656 hardcode_minus_L=$hardcode_minus_L_CXX
27657
27658 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27659 # into the resulting binary.
27660 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27661
27662 # Set to "yes" if building a shared library automatically hardcodes DIR
27663 # into the library and all subsequent libraries and executables linked
27664 # against it.
27665 hardcode_automatic=$hardcode_automatic_CXX
27666
27667 # Set to yes if linker adds runtime paths of dependent libraries
27668 # to runtime path list.
27669 inherit_rpath=$inherit_rpath_CXX
27670
27671 # Whether libtool must link a program against all its dependency libraries.
27672 link_all_deplibs=$link_all_deplibs_CXX
27673
27674 # Set to "yes" if exported symbols are required.
27675 always_export_symbols=$always_export_symbols_CXX
27676
27677 # The commands to list exported symbols.
27678 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27679
27680 # Symbols that should not be listed in the preloaded symbols.
27681 exclude_expsyms=$lt_exclude_expsyms_CXX
27682
27683 # Symbols that must always be exported.
27684 include_expsyms=$lt_include_expsyms_CXX
27685
27686 # Commands necessary for linking programs (against libraries) with templates.
27687 prelink_cmds=$lt_prelink_cmds_CXX
27688
27689 # Commands necessary for finishing linking programs.
27690 postlink_cmds=$lt_postlink_cmds_CXX
27691
27692 # Specify filename containing input files.
27693 file_list_spec=$lt_file_list_spec_CXX
27694
27695 # How to hardcode a shared library path into an executable.
27696 hardcode_action=$hardcode_action_CXX
27697
27698 # The directories searched by this compiler when creating a shared library.
27699 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27700
27701 # Dependencies to place before and after the objects being linked to
27702 # create a shared library.
27703 predep_objects=$lt_predep_objects_CXX
27704 postdep_objects=$lt_postdep_objects_CXX
27705 predeps=$lt_predeps_CXX
27706 postdeps=$lt_postdeps_CXX
27707
27708 # The library search path used internally by the compiler when linking
27709 # a shared library.
27710 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27711
27712 # ### END LIBTOOL TAG CONFIG: CXX
27713 _LT_EOF
27714
27715  ;;
27716     "stamp-h":F) echo timestamp > stamp-h ;;
27717
27718   esac
27719 done # for ac_tag
27720
27721
27722 as_fn_exit 0
27723 _ACEOF
27724 ac_clean_files=$ac_clean_files_save
27725
27726 test $ac_write_fail = 0 ||
27727   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27728
27729
27730 # configure is writing to config.log, and then calls config.status.
27731 # config.status does its own redirection, appending to config.log.
27732 # Unfortunately, on DOS this fails, as config.log is still kept open
27733 # by configure, so config.status won't be able to write to it; its
27734 # output is simply discarded.  So we exec the FD to /dev/null,
27735 # effectively closing config.log, so it can be properly (re)opened and
27736 # appended to by config.status.  When coming back to configure, we
27737 # need to make the FD available again.
27738 if test "$no_create" != yes; then
27739   ac_cs_success=:
27740   ac_config_status_args=
27741   test "$silent" = yes &&
27742     ac_config_status_args="$ac_config_status_args --quiet"
27743   exec 5>/dev/null
27744   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27745   exec 5>>config.log
27746   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27747   # would make configure fail if this is the last instruction.
27748   $ac_cs_success || as_fn_exit 1
27749 fi
27750 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27751   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27752 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27753 fi
27754
27755
27756
27757 # force make clean
27758 echo "---"
27759 echo "Running make clean..."
27760 make clean >/dev/null 2>&1
27761 # Touch files that may not be in repository
27762 echo "Touching File..."
27763 touch ctaocrypt/src/fips.c
27764 touch ctaocrypt/src/fips_test.c
27765 echo
27766
27767 # generate user options header
27768 echo "---"
27769 echo "Generating user options header..."
27770
27771 OPTION_FILE="wolfssl/options.h"
27772 #if
27773 #OPTION_FILE+="cyassl/options.h"
27774 #fi
27775 rm -f $OPTION_FILE
27776
27777 echo "/* wolfssl options.h" > $OPTION_FILE
27778 echo " * generated from configure options" >> $OPTION_FILE
27779 echo " *" >> $OPTION_FILE
27780 echo " * Copyright (C) 2006-2015 wolfSSL Inc." >> $OPTION_FILE
27781 echo " *" >> $OPTION_FILE
27782 echo " * This file is part of wolfSSL. (formerly known as CyaSSL)" >> $OPTION_FILE
27783 echo " *" >> $OPTION_FILE
27784 echo " */" >> $OPTION_FILE
27785
27786 echo "" >> $OPTION_FILE
27787 echo "#pragma once" >> $OPTION_FILE
27788 echo "" >> $OPTION_FILE
27789 echo "#ifdef __cplusplus" >> $OPTION_FILE
27790 echo "extern \"C\" {" >> $OPTION_FILE
27791 echo "#endif" >> $OPTION_FILE
27792 echo "" >> $OPTION_FILE
27793
27794 for option in $OPTION_FLAGS; do
27795     defonly=`echo $option | sed 's/-D//'`
27796     if test "$defonly" != "$option"
27797     then
27798         noequalsign=`echo $defonly | sed 's/=/ /'`
27799         if test "$noequalsign" = "NDEBUG" || test "$noequalsign" = "DEBUG"
27800         then
27801             echo "not outputing (N)DEBUG to $OPTION_FILE"
27802             continue
27803         fi
27804
27805         # allow user to igonore system options
27806         ignoresys=no
27807         if [[ $noequalsign == _* ]] ;
27808         then
27809             ignoresys=yes
27810             echo "#ifndef WOLFSSL_OPTIONS_IGNORE_SYS" >> $OPTION_FILE
27811         fi
27812
27813         noarg=`echo $defonly | sed 's/=.*//'`
27814         echo "#undef  $noarg" >> $OPTION_FILE
27815         echo "#define $noequalsign" >> $OPTION_FILE
27816
27817         if test "$ignoresys" = "yes"
27818         then
27819             echo "#endif" >> $OPTION_FILE
27820         fi
27821
27822         echo "" >> $OPTION_FILE
27823     else
27824         echo "option w/o begin -D is $option, not saving to $OPTION_FILE"
27825     fi
27826 done
27827
27828 echo "" >> $OPTION_FILE
27829 echo "#ifdef __cplusplus" >> $OPTION_FILE
27830 echo "}" >> $OPTION_FILE
27831 echo "#endif" >> $OPTION_FILE
27832 echo "" >> $OPTION_FILE
27833 echo
27834
27835 #backwards compatability for those who have included options or version
27836 touch cyassl/options.h
27837 echo "/* cyassl options.h" > cyassl/options.h
27838 echo " * generated from wolfssl/options.h" >> cyassl/options.h
27839 echo " */" >> cyassl/options.h
27840 echo ""
27841 while read -r line
27842 do
27843     echo "$line" >> cyassl/options.h
27844 done < $OPTION_FILE
27845
27846 # output config summary
27847 echo "---"
27848 echo "Configuration summary for $PACKAGE_NAME version $VERSION"
27849 echo ""
27850 echo "   * Installation prefix:       $prefix"
27851 echo "   * System type:               $host_vendor-$host_os"
27852 echo "   * Host CPU:                  $host_cpu"
27853 echo "   * C Compiler:                $CC"
27854 echo "   * C Flags:                   $CFLAGS"
27855 echo "   * C++ Compiler:              $CXX"
27856 echo "   * C++ Flags:                 $CXXFLAGS"
27857 echo "   * CPP Flags:                 $CPPFLAGS"
27858 echo "   * LIB Flags:                 $LIB"
27859 echo "   * Debug enabled:             $ax_enable_debug"
27860 echo "   * Warnings as failure:       $ac_cv_warnings_as_errors"
27861 echo "   * make -j:                   $enable_jobserver"
27862 echo "   * VCS checkout:              $ac_cv_vcs_checkout"
27863 echo
27864 echo "   Features "
27865 echo "   * Single threaded:           $ENABLED_SINGLETHREADED"
27866 echo "   * Filesystem:                $ENABLED_FILESYSTEM"
27867 echo "   * OpenSSL Extra API:         $ENABLED_OPENSSLEXTRA"
27868 echo "   * Max Strength Build:        $ENABLED_MAXSTRENGTH"
27869 echo "   * fastmath:                  $ENABLED_FASTMATH"
27870 echo "   * sniffer:                   $ENABLED_SNIFFER"
27871 echo "   * snifftest:                 $ENABLED_SNIFFTEST"
27872 echo "   * ARC4:                      $ENABLED_ARC4"
27873 echo "   * AES:                       $ENABLED_AES"
27874 echo "   * AES-NI:                    $ENABLED_AESNI"
27875 echo "   * AES-GCM:                   $ENABLED_AESGCM"
27876 echo "   * AES-CCM:                   $ENABLED_AESCCM"
27877 echo "   * DES3:                      $ENABLED_DES3"
27878 echo "   * Camellia:                  $ENABLED_CAMELLIA"
27879 echo "   * NULL Cipher:               $ENABLED_NULL_CIPHER"
27880 echo "   * MD5:                       $ENABLED_MD5"
27881 echo "   * RIPEMD:                    $ENABLED_RIPEMD"
27882 echo "   * SHA:                       $ENABLED_SHA"
27883 echo "   * SHA-512:                   $ENABLED_SHA512"
27884 echo "   * BLAKE2:                    $ENABLED_BLAKE2"
27885 echo "   * keygen:                    $ENABLED_KEYGEN"
27886 echo "   * certgen:                   $ENABLED_CERTGEN"
27887 echo "   * certreq:                   $ENABLED_CERTREQ"
27888 echo "   * HC-128:                    $ENABLED_HC128"
27889 echo "   * RABBIT:                    $ENABLED_RABBIT"
27890 echo "   * CHACHA:                    $ENABLED_CHACHA"
27891 echo "   * Hash DRBG:                 $ENABLED_HASHDRBG"
27892 echo "   * PWDBASED:                  $ENABLED_PWDBASED"
27893 echo "   * HKDF:                      $ENABLED_HKDF"
27894 echo "   * MD4:                       $ENABLED_MD4"
27895 echo "   * PSK:                       $ENABLED_PSK"
27896 echo "   * Poly1305:                  $ENABLED_POLY1305"
27897 echo "   * LEANPSK:                   $ENABLED_LEANPSK"
27898 echo "   * RSA:                       $ENABLED_RSA"
27899 echo "   * DSA:                       $ENABLED_DSA"
27900 echo "   * DH:                        $ENABLED_DH"
27901 echo "   * ECC:                       $ENABLED_ECC"
27902 echo "   * CURVE25519:                $ENABLED_CURVE25519"
27903 echo "   * ED25519:                   $ENABLED_ED25519"
27904 echo "   * FPECC:                     $ENABLED_FPECC"
27905 echo "   * ECC_ENCRYPT:               $ENABLED_ECC_ENCRYPT"
27906 echo "   * ASN:                       $ENABLED_ASN"
27907 echo "   * Anonymous cipher:          $ENABLED_ANON"
27908 echo "   * CODING:                    $ENABLED_CODING"
27909 echo "   * MEMORY:                    $ENABLED_MEMORY"
27910 echo "   * I/O POOL:                  $ENABLED_IOPOOL"
27911 echo "   * ERROR_STRINGS:             $ENABLED_ERROR_STRINGS"
27912 echo "   * DTLS:                      $ENABLED_DTLS"
27913 echo "   * Old TLS Versions:          $ENABLED_OLD_TLS"
27914 echo "   * OCSP:                      $ENABLED_OCSP"
27915 echo "   * CRL:                       $ENABLED_CRL"
27916 echo "   * CRL-MONITOR:               $ENABLED_CRL_MONITOR"
27917 echo "   * Persistent session cache:  $ENABLED_SAVESESSION"
27918 echo "   * Persistent cert    cache:  $ENABLED_SAVECERT"
27919 echo "   * Atomic User Record Layer:  $ENABLED_ATOMICUSER"
27920 echo "   * Public Key Callbacks:      $ENABLED_PKCALLBACKS"
27921 echo "   * NTRU:                      $ENABLED_NTRU"
27922 echo "   * SNI:                       $ENABLED_SNI"
27923 echo "   * Maximum Fragment Length:   $ENABLED_MAX_FRAGMENT"
27924 echo "   * Truncated HMAC:            $ENABLED_TRUNCATED_HMAC"
27925 echo "   * Renegotiation Indication:  $ENABLED_RENEGOTIATION_INDICATION"
27926 echo "   * Secure Renegotiation:      $ENABLED_SECURE_RENEGOTIATION"
27927 echo "   * Supported Elliptic Curves: $ENABLED_SUPPORTED_CURVES"
27928 echo "   * Session Ticket:            $ENABLED_SESSION_TICKET"
27929 echo "   * All TLS Extensions:        $ENABLED_TLSX"
27930 echo "   * PKCS#7                     $ENABLED_PKCS7"
27931 echo "   * wolfSCEP                   $ENABLED_WOLFSCEP"
27932 echo "   * Small Stack:               $ENABLED_SMALL_STACK"
27933 echo "   * valgrind unit tests:       $ENABLED_VALGRIND"
27934 echo "   * LIBZ:                      $ENABLED_LIBZ"
27935 echo "   * Examples:                  $ENABLED_EXAMPLES"
27936 echo ""
27937 echo "---"
27938