Imported Upstream version 1.18.1
[platform/upstream/c-ares.git] / test / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for c-ares-test -.
4 #
5 # Report bugs to <->.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
100     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191     PATH=/empty FPATH=/empty; export PATH FPATH
192     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195   if (eval "$as_required") 2>/dev/null
196 then :
197   as_have_required=yes
198 else $as_nop
199   as_have_required=no
200 fi
201   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209   IFS=$as_save_IFS
210   case $as_dir in #(((
211     '') as_dir=./ ;;
212     */) ;;
213     *) as_dir=$as_dir/ ;;
214   esac
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227   break 2
228 fi
229 fi
230            done;;
231        esac
232   as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242   CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247       if test "x$CONFIG_SHELL" != x
248 then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno
271 then :
272   printf "%s\n" "$0: This script requires a shell more modern than all"
273   printf "%s\n" "$0: the shells that I found on your system."
274   if test ${ZSH_VERSION+y} ; then
275     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and - 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
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323 # as_fn_nop
324 # ---------
325 # Do nothing but, unlike ":", preserve the value of $?.
326 as_fn_nop ()
327 {
328   return $?
329 }
330 as_nop=as_fn_nop
331
332 # as_fn_mkdir_p
333 # -------------
334 # Create "$as_dir" as a directory, including parents if necessary.
335 as_fn_mkdir_p ()
336 {
337
338   case $as_dir in #(
339   -*) as_dir=./$as_dir;;
340   esac
341   test -d "$as_dir" || eval $as_mkdir_p || {
342     as_dirs=
343     while :; do
344       case $as_dir in #(
345       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
346       *) as_qdir=$as_dir;;
347       esac
348       as_dirs="'$as_qdir' $as_dirs"
349       as_dir=`$as_dirname -- "$as_dir" ||
350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
351          X"$as_dir" : 'X\(//\)[^/]' \| \
352          X"$as_dir" : 'X\(//\)$' \| \
353          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
354 printf "%s\n" X"$as_dir" |
355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\/\)[^/].*/{
360             s//\1/
361             q
362           }
363           /^X\(\/\/\)$/{
364             s//\1/
365             q
366           }
367           /^X\(\/\).*/{
368             s//\1/
369             q
370           }
371           s/.*/./; q'`
372       test -d "$as_dir" && break
373     done
374     test -z "$as_dirs" || eval "mkdir $as_dirs"
375   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
376
377
378 } # as_fn_mkdir_p
379
380 # as_fn_executable_p FILE
381 # -----------------------
382 # Test if FILE is an executable regular file.
383 as_fn_executable_p ()
384 {
385   test -f "$1" && test -x "$1"
386 } # as_fn_executable_p
387 # as_fn_append VAR VALUE
388 # ----------------------
389 # Append the text in VALUE to the end of the definition contained in VAR. Take
390 # advantage of any shell optimizations that allow amortized linear growth over
391 # repeated appends, instead of the typical quadratic growth present in naive
392 # implementations.
393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
394 then :
395   eval 'as_fn_append ()
396   {
397     eval $1+=\$2
398   }'
399 else $as_nop
400   as_fn_append ()
401   {
402     eval $1=\$$1\$2
403   }
404 fi # as_fn_append
405
406 # as_fn_arith ARG...
407 # ------------------
408 # Perform arithmetic evaluation on the ARGs, and store the result in the
409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
410 # must be portable across $(()) and expr.
411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
412 then :
413   eval 'as_fn_arith ()
414   {
415     as_val=$(( $* ))
416   }'
417 else $as_nop
418   as_fn_arith ()
419   {
420     as_val=`expr "$@" || test $? -eq 1`
421   }
422 fi # as_fn_arith
423
424 # as_fn_nop
425 # ---------
426 # Do nothing but, unlike ":", preserve the value of $?.
427 as_fn_nop ()
428 {
429   return $?
430 }
431 as_nop=as_fn_nop
432
433 # as_fn_error STATUS ERROR [LINENO LOG_FD]
434 # ----------------------------------------
435 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
436 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
437 # script with STATUS, using 1 if that was 0.
438 as_fn_error ()
439 {
440   as_status=$1; test $as_status -eq 0 && as_status=1
441   if test "$4"; then
442     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
443     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
444   fi
445   printf "%s\n" "$as_me: error: $2" >&2
446   as_fn_exit $as_status
447 } # as_fn_error
448
449 if expr a : '\(a\)' >/dev/null 2>&1 &&
450    test "X`expr 00001 : '.*\(...\)'`" = X001; then
451   as_expr=expr
452 else
453   as_expr=false
454 fi
455
456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
457   as_basename=basename
458 else
459   as_basename=false
460 fi
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 as_me=`$as_basename -- "$0" ||
469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
470          X"$0" : 'X\(//\)$' \| \
471          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
472 printf "%s\n" X/"$0" |
473     sed '/^.*\/\([^/][^/]*\)\/*$/{
474             s//\1/
475             q
476           }
477           /^X\/\(\/\/\)$/{
478             s//\1/
479             q
480           }
481           /^X\/\(\/\).*/{
482             s//\1/
483             q
484           }
485           s/.*/./; q'`
486
487 # Avoid depending upon Character Ranges.
488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
491 as_cr_digits='0123456789'
492 as_cr_alnum=$as_cr_Letters$as_cr_digits
493
494
495   as_lineno_1=$LINENO as_lineno_1a=$LINENO
496   as_lineno_2=$LINENO as_lineno_2a=$LINENO
497   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
498   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
499   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
500   sed -n '
501     p
502     /[$]LINENO/=
503   ' <$as_myself |
504     sed '
505       s/[$]LINENO.*/&-/
506       t lineno
507       b
508       :lineno
509       N
510       :loop
511       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
512       t loop
513       s/-\n.*//
514     ' >$as_me.lineno &&
515   chmod +x "$as_me.lineno" ||
516     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
517
518   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
519   # already done that, so ensure we don't try to do so again and fall
520   # in an infinite loop.  This has already happened in practice.
521   _as_can_reexec=no; export _as_can_reexec
522   # Don't try to exec as it changes $[0], causing all sort of problems
523   # (the dirname of $[0] is not the place where we might find the
524   # original and so on.  Autoconf is especially sensitive to this).
525   . "./$as_me.lineno"
526   # Exit status is that of the last command.
527   exit
528 }
529
530
531 # Determine whether it's possible to make 'echo' print without a newline.
532 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
533 # for compatibility with existing Makefiles.
534 ECHO_C= ECHO_N= ECHO_T=
535 case `echo -n x` in #(((((
536 -n*)
537   case `echo 'xy\c'` in
538   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
539   xy)  ECHO_C='\c';;
540   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
541        ECHO_T=' ';;
542   esac;;
543 *)
544   ECHO_N='-n';;
545 esac
546
547 # For backward compatibility with old third-party macros, we provide
548 # the shell variables $as_echo and $as_echo_n.  New code should use
549 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
550 as_echo='printf %s\n'
551 as_echo_n='printf %s'
552
553
554 rm -f conf$$ conf$$.exe conf$$.file
555 if test -d conf$$.dir; then
556   rm -f conf$$.dir/conf$$.file
557 else
558   rm -f conf$$.dir
559   mkdir conf$$.dir 2>/dev/null
560 fi
561 if (echo >conf$$.file) 2>/dev/null; then
562   if ln -s conf$$.file conf$$ 2>/dev/null; then
563     as_ln_s='ln -s'
564     # ... but there are two gotchas:
565     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
566     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
567     # In both cases, we have to default to `cp -pR'.
568     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
569       as_ln_s='cp -pR'
570   elif ln conf$$.file conf$$ 2>/dev/null; then
571     as_ln_s=ln
572   else
573     as_ln_s='cp -pR'
574   fi
575 else
576   as_ln_s='cp -pR'
577 fi
578 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
579 rmdir conf$$.dir 2>/dev/null
580
581 if mkdir -p . 2>/dev/null; then
582   as_mkdir_p='mkdir -p "$as_dir"'
583 else
584   test -d ./-p && rmdir ./-p
585   as_mkdir_p=false
586 fi
587
588 as_test_x='test -x'
589 as_executable_p=as_fn_executable_p
590
591 # Sed expression to map a string onto a valid CPP name.
592 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
593
594 # Sed expression to map a string onto a valid variable name.
595 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
596
597 SHELL=${CONFIG_SHELL-/bin/sh}
598
599
600 test -n "$DJDIR" || exec 7<&0 </dev/null
601 exec 6>&1
602
603 # Name of the host.
604 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
605 # so uname gets run too.
606 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
607
608 #
609 # Initializations.
610 #
611 ac_default_prefix=/usr/local
612 ac_clean_files=
613 ac_config_libobj_dir=.
614 LIBOBJS=
615 cross_compiling=no
616 subdirs=
617 MFLAGS=
618 MAKEFLAGS=
619
620 # Identity of this package.
621 PACKAGE_NAME='c-ares-test'
622 PACKAGE_TARNAME='c-ares-test'
623 PACKAGE_VERSION='-'
624 PACKAGE_STRING='c-ares-test -'
625 PACKAGE_BUGREPORT='-'
626 PACKAGE_URL=''
627
628 ac_unique_file="ares-test.cc"
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_subst_vars='am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 CODE_COVERAGE_LIBS
666 CODE_COVERAGE_CXXFLAGS
667 CODE_COVERAGE_CFLAGS
668 CODE_COVERAGE_CPPFLAGS
669 GENHTML
670 LCOV
671 GCOV
672 ifnGNUmake
673 ifGNUmake
674 CODE_COVERAGE_ENABLED
675 CODE_COVERAGE_ENABLED_FALSE
676 CODE_COVERAGE_ENABLED_TRUE
677 PTHREAD_CFLAGS
678 PTHREAD_LIBS
679 PTHREAD_CC
680 ax_pthread_config
681 LIBTOOL_DEPS
682 CXXCPP
683 LT_SYS_LIBRARY_PATH
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 RANLIB
691 ac_ct_AR
692 AR
693 DLLTOOL
694 OBJDUMP
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 EGREP
702 GREP
703 SED
704 am__fastdepCC_FALSE
705 am__fastdepCC_TRUE
706 CCDEPMODE
707 ac_ct_CC
708 CFLAGS
709 CC
710 host_os
711 host_vendor
712 host_cpu
713 host
714 build_os
715 build_vendor
716 build_cpu
717 build
718 LIBTOOL
719 HAVE_CXX11
720 am__fastdepCXX_FALSE
721 am__fastdepCXX_TRUE
722 CXXDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CXX
732 CPPFLAGS
733 LDFLAGS
734 CXXFLAGS
735 CXX
736 AM_BACKSLASH
737 AM_DEFAULT_VERBOSITY
738 AM_DEFAULT_V
739 AM_V
740 CSCOPE
741 ETAGS
742 CTAGS
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 runstatedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL
805 am__quote'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_silent_rules
810 enable_dependency_tracking
811 enable_shared
812 enable_static
813 with_pic
814 enable_fast_install
815 with_aix_soname
816 with_gnu_ld
817 with_sysroot
818 enable_libtool_lock
819 with_gcov
820 enable_code_coverage
821 '
822       ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CXX
826 CXXFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 CCC
831 CC
832 CFLAGS
833 LT_SYS_LIBRARY_PATH
834 CXXCPP'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 runstatedir='${localstatedir}/run'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
885
886 ac_prev=
887 ac_dashdash=
888 for ac_option
889 do
890   # If the previous option needs an argument, assign it.
891   if test -n "$ac_prev"; then
892     eval $ac_prev=\$ac_option
893     ac_prev=
894     continue
895   fi
896
897   case $ac_option in
898   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899   *=)   ac_optarg= ;;
900   *)    ac_optarg=yes ;;
901   esac
902
903   case $ac_dashdash$ac_option in
904   --)
905     ac_dashdash=yes ;;
906
907   -bindir | --bindir | --bindi | --bind | --bin | --bi)
908     ac_prev=bindir ;;
909   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910     bindir=$ac_optarg ;;
911
912   -build | --build | --buil | --bui | --bu)
913     ac_prev=build_alias ;;
914   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915     build_alias=$ac_optarg ;;
916
917   -cache-file | --cache-file | --cache-fil | --cache-fi \
918   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919     ac_prev=cache_file ;;
920   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922     cache_file=$ac_optarg ;;
923
924   --config-cache | -C)
925     cache_file=config.cache ;;
926
927   -datadir | --datadir | --datadi | --datad)
928     ac_prev=datadir ;;
929   -datadir=* | --datadir=* | --datadi=* | --datad=*)
930     datadir=$ac_optarg ;;
931
932   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933   | --dataroo | --dataro | --datar)
934     ac_prev=datarootdir ;;
935   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937     datarootdir=$ac_optarg ;;
938
939   -disable-* | --disable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error $? "invalid feature name: \`$ac_useropt'"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=no ;;
954
955   -docdir | --docdir | --docdi | --doc | --do)
956     ac_prev=docdir ;;
957   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958     docdir=$ac_optarg ;;
959
960   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961     ac_prev=dvidir ;;
962   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963     dvidir=$ac_optarg ;;
964
965   -enable-* | --enable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error $? "invalid feature name: \`$ac_useropt'"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=\$ac_optarg ;;
980
981   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983   | --exec | --exe | --ex)
984     ac_prev=exec_prefix ;;
985   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987   | --exec=* | --exe=* | --ex=*)
988     exec_prefix=$ac_optarg ;;
989
990   -gas | --gas | --ga | --g)
991     # Obsolete; use --with-gas.
992     with_gas=yes ;;
993
994   -help | --help | --hel | --he | -h)
995     ac_init_help=long ;;
996   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997     ac_init_help=recursive ;;
998   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999     ac_init_help=short ;;
1000
1001   -host | --host | --hos | --ho)
1002     ac_prev=host_alias ;;
1003   -host=* | --host=* | --hos=* | --ho=*)
1004     host_alias=$ac_optarg ;;
1005
1006   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007     ac_prev=htmldir ;;
1008   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009   | --ht=*)
1010     htmldir=$ac_optarg ;;
1011
1012   -includedir | --includedir | --includedi | --included | --include \
1013   | --includ | --inclu | --incl | --inc)
1014     ac_prev=includedir ;;
1015   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016   | --includ=* | --inclu=* | --incl=* | --inc=*)
1017     includedir=$ac_optarg ;;
1018
1019   -infodir | --infodir | --infodi | --infod | --info | --inf)
1020     ac_prev=infodir ;;
1021   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022     infodir=$ac_optarg ;;
1023
1024   -libdir | --libdir | --libdi | --libd)
1025     ac_prev=libdir ;;
1026   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027     libdir=$ac_optarg ;;
1028
1029   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030   | --libexe | --libex | --libe)
1031     ac_prev=libexecdir ;;
1032   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033   | --libexe=* | --libex=* | --libe=*)
1034     libexecdir=$ac_optarg ;;
1035
1036   -localedir | --localedir | --localedi | --localed | --locale)
1037     ac_prev=localedir ;;
1038   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039     localedir=$ac_optarg ;;
1040
1041   -localstatedir | --localstatedir | --localstatedi | --localstated \
1042   | --localstate | --localstat | --localsta | --localst | --locals)
1043     ac_prev=localstatedir ;;
1044   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046     localstatedir=$ac_optarg ;;
1047
1048   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049     ac_prev=mandir ;;
1050   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051     mandir=$ac_optarg ;;
1052
1053   -nfp | --nfp | --nf)
1054     # Obsolete; use --without-fp.
1055     with_fp=no ;;
1056
1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058   | --no-cr | --no-c | -n)
1059     no_create=yes ;;
1060
1061   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063     no_recursion=yes ;;
1064
1065   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067   | --oldin | --oldi | --old | --ol | --o)
1068     ac_prev=oldincludedir ;;
1069   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072     oldincludedir=$ac_optarg ;;
1073
1074   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075     ac_prev=prefix ;;
1076   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077     prefix=$ac_optarg ;;
1078
1079   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080   | --program-pre | --program-pr | --program-p)
1081     ac_prev=program_prefix ;;
1082   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084     program_prefix=$ac_optarg ;;
1085
1086   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087   | --program-suf | --program-su | --program-s)
1088     ac_prev=program_suffix ;;
1089   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091     program_suffix=$ac_optarg ;;
1092
1093   -program-transform-name | --program-transform-name \
1094   | --program-transform-nam | --program-transform-na \
1095   | --program-transform-n | --program-transform- \
1096   | --program-transform | --program-transfor \
1097   | --program-transfo | --program-transf \
1098   | --program-trans | --program-tran \
1099   | --progr-tra | --program-tr | --program-t)
1100     ac_prev=program_transform_name ;;
1101   -program-transform-name=* | --program-transform-name=* \
1102   | --program-transform-nam=* | --program-transform-na=* \
1103   | --program-transform-n=* | --program-transform-=* \
1104   | --program-transform=* | --program-transfor=* \
1105   | --program-transfo=* | --program-transf=* \
1106   | --program-trans=* | --program-tran=* \
1107   | --progr-tra=* | --program-tr=* | --program-t=*)
1108     program_transform_name=$ac_optarg ;;
1109
1110   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111     ac_prev=pdfdir ;;
1112   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113     pdfdir=$ac_optarg ;;
1114
1115   -psdir | --psdir | --psdi | --psd | --ps)
1116     ac_prev=psdir ;;
1117   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118     psdir=$ac_optarg ;;
1119
1120   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121   | -silent | --silent | --silen | --sile | --sil)
1122     silent=yes ;;
1123
1124   -runstatedir | --runstatedir | --runstatedi | --runstated \
1125   | --runstate | --runstat | --runsta | --runst | --runs \
1126   | --run | --ru | --r)
1127     ac_prev=runstatedir ;;
1128   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1129   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1130   | --run=* | --ru=* | --r=*)
1131     runstatedir=$ac_optarg ;;
1132
1133   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134     ac_prev=sbindir ;;
1135   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136   | --sbi=* | --sb=*)
1137     sbindir=$ac_optarg ;;
1138
1139   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141   | --sharedst | --shareds | --shared | --share | --shar \
1142   | --sha | --sh)
1143     ac_prev=sharedstatedir ;;
1144   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147   | --sha=* | --sh=*)
1148     sharedstatedir=$ac_optarg ;;
1149
1150   -site | --site | --sit)
1151     ac_prev=site ;;
1152   -site=* | --site=* | --sit=*)
1153     site=$ac_optarg ;;
1154
1155   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156     ac_prev=srcdir ;;
1157   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158     srcdir=$ac_optarg ;;
1159
1160   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161   | --syscon | --sysco | --sysc | --sys | --sy)
1162     ac_prev=sysconfdir ;;
1163   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165     sysconfdir=$ac_optarg ;;
1166
1167   -target | --target | --targe | --targ | --tar | --ta | --t)
1168     ac_prev=target_alias ;;
1169   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170     target_alias=$ac_optarg ;;
1171
1172   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173     verbose=yes ;;
1174
1175   -version | --version | --versio | --versi | --vers | -V)
1176     ac_init_version=: ;;
1177
1178   -with-* | --with-*)
1179     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182       as_fn_error $? "invalid package name: \`$ac_useropt'"
1183     ac_useropt_orig=$ac_useropt
1184     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1185     case $ac_user_opts in
1186       *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190          ac_unrecognized_sep=', ';;
1191     esac
1192     eval with_$ac_useropt=\$ac_optarg ;;
1193
1194   -without-* | --without-*)
1195     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198       as_fn_error $? "invalid package name: \`$ac_useropt'"
1199     ac_useropt_orig=$ac_useropt
1200     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1201     case $ac_user_opts in
1202       *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206          ac_unrecognized_sep=', ';;
1207     esac
1208     eval with_$ac_useropt=no ;;
1209
1210   --x)
1211     # Obsolete; use --with-x.
1212     with_x=yes ;;
1213
1214   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215   | --x-incl | --x-inc | --x-in | --x-i)
1216     ac_prev=x_includes ;;
1217   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219     x_includes=$ac_optarg ;;
1220
1221   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223     ac_prev=x_libraries ;;
1224   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226     x_libraries=$ac_optarg ;;
1227
1228   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1230     ;;
1231
1232   *=*)
1233     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234     # Reject names that are not valid shell variable names.
1235     case $ac_envvar in #(
1236       '' | [0-9]* | *[!_$as_cr_alnum]* )
1237       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238     esac
1239     eval $ac_envvar=\$ac_optarg
1240     export $ac_envvar ;;
1241
1242   *)
1243     # FIXME: should be removed in autoconf 3.0.
1244     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1245     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1247     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248     ;;
1249
1250   esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255   as_fn_error $? "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259   case $enable_option_checking in
1260     no) ;;
1261     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1262     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263   esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268                 datadir sysconfdir sharedstatedir localstatedir includedir \
1269                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270                 libdir localedir mandir runstatedir
1271 do
1272   eval ac_val=\$$ac_var
1273   # Remove trailing slashes.
1274   case $ac_val in
1275     */ )
1276       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277       eval $ac_var=\$ac_val;;
1278   esac
1279   # Be sure to have absolute directory names.
1280   case $ac_val in
1281     [\\/$]* | ?:[\\/]* )  continue;;
1282     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283   esac
1284   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296   if test "x$build_alias" = x; then
1297     cross_compiling=maybe
1298   elif test "x$build_alias" != "x$host_alias"; then
1299     cross_compiling=yes
1300   fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312   as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314   as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319   ac_srcdir_defaulted=yes
1320   # Try the directory containing this script, then the parent directory.
1321   ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323          X"$as_myself" : 'X\(//\)[^/]' \| \
1324          X"$as_myself" : 'X\(//\)$' \| \
1325          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 printf "%s\n" X"$as_myself" |
1327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)[^/].*/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)$/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\).*/{
1340             s//\1/
1341             q
1342           }
1343           s/.*/./; q'`
1344   srcdir=$ac_confdir
1345   if test ! -r "$srcdir/$ac_unique_file"; then
1346     srcdir=..
1347   fi
1348 else
1349   ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358         pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361   srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures c-ares-test - to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking ...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR            user executables [EPREFIX/bin]
1418   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR        program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1423   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1424   --libdir=DIR            object code libraries [EPREFIX/lib]
1425   --includedir=DIR        C header files [PREFIX/include]
1426   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1427   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1428   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1429   --infodir=DIR           info documentation [DATAROOTDIR/info]
1430   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1431   --mandir=DIR            man documentation [DATAROOTDIR/man]
1432   --docdir=DIR            documentation root [DATAROOTDIR/doc/c-ares-test]
1433   --htmldir=DIR           html documentation [DOCDIR]
1434   --dvidir=DIR            dvi documentation [DOCDIR]
1435   --pdfdir=DIR            pdf documentation [DOCDIR]
1436   --psdir=DIR             ps documentation [DOCDIR]
1437 _ACEOF
1438
1439   cat <<\_ACEOF
1440
1441 Program names:
1442   --program-prefix=PREFIX            prepend PREFIX to installed program names
1443   --program-suffix=SUFFIX            append SUFFIX to installed program names
1444   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1445
1446 System types:
1447   --build=BUILD     configure for building on BUILD [guessed]
1448   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1449 _ACEOF
1450 fi
1451
1452 if test -n "$ac_init_help"; then
1453   case $ac_init_help in
1454      short | recursive ) echo "Configuration of c-ares-test -:";;
1455    esac
1456   cat <<\_ACEOF
1457
1458 Optional Features:
1459   --disable-option-checking  ignore unrecognized --enable/--with options
1460   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1461   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1462   --enable-silent-rules   less verbose build output (undo: "make V=1")
1463   --disable-silent-rules  verbose build output (undo: "make V=0")
1464   --enable-dependency-tracking
1465                           do not reject slow dependency extractors
1466   --disable-dependency-tracking
1467                           speeds up one-time build
1468   --enable-shared[=PKGS]  build shared libraries [default=yes]
1469   --enable-static[=PKGS]  build static libraries [default=yes]
1470   --enable-fast-install[=PKGS]
1471                           optimize for fast installation [default=yes]
1472   --disable-libtool-lock  avoid locking (might break parallel builds)
1473   --enable-code-coverage  Whether to enable code coverage support
1474
1475 Optional Packages:
1476   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1477   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1478   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1479                           both]
1480   --with-aix-soname=aix|svr4|both
1481                           shared library versioning (aka "SONAME") variant to
1482                           provide on AIX, [default=aix].
1483   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1484   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1485                           compiler's sysroot if not specified).
1486   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1487
1488 Some influential environment variables:
1489   CXX         C++ compiler command
1490   CXXFLAGS    C++ compiler flags
1491   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1492               nonstandard directory <lib dir>
1493   LIBS        libraries to pass to the linker, e.g. -l<library>
1494   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495               you have headers in a nonstandard directory <include dir>
1496   CC          C compiler command
1497   CFLAGS      C compiler flags
1498   LT_SYS_LIBRARY_PATH
1499               User-defined run-time library search path.
1500   CXXCPP      C++ preprocessor
1501
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 Report bugs to <->.
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511   # If there are subdirs, report their specific --help.
1512   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513     test -d "$ac_dir" ||
1514       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515       continue
1516     ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1522   # A ".." for each directory in $ac_dir_suffix.
1523   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524   case $ac_top_builddir_sub in
1525   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527   esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535   .)  # We are building in place.
1536     ac_srcdir=.
1537     ac_top_srcdir=$ac_top_builddir_sub
1538     ac_abs_top_srcdir=$ac_pwd ;;
1539   [\\/]* | ?:[\\/]* )  # Absolute name.
1540     ac_srcdir=$srcdir$ac_dir_suffix;
1541     ac_top_srcdir=$srcdir
1542     ac_abs_top_srcdir=$srcdir ;;
1543   *) # Relative name.
1544     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545     ac_top_srcdir=$ac_top_build_prefix$srcdir
1546     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550     cd "$ac_dir" || { ac_status=$?; continue; }
1551     # Check for configure.gnu first; this name is used for a wrapper for
1552     # Metaconfig's "Configure" on case-insensitive file systems.
1553     if test -f "$ac_srcdir/configure.gnu"; then
1554       echo &&
1555       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556     elif test -f "$ac_srcdir/configure"; then
1557       echo &&
1558       $SHELL "$ac_srcdir/configure" --help=recursive
1559     else
1560       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561     fi || ac_status=$?
1562     cd "$ac_pwd" || { ac_status=$?; break; }
1563   done
1564 fi
1565
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568   cat <<\_ACEOF
1569 c-ares-test configure -
1570 generated by GNU Autoconf 2.71
1571
1572 Copyright (C) 2021 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576   exit
1577 fi
1578
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1582
1583 # ac_fn_cxx_try_compile LINENO
1584 # ----------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_cxx_try_compile ()
1587 {
1588   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589   rm -f conftest.$ac_objext conftest.beam
1590   if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593   *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 printf "%s\n" "$ac_try_echo"; } >&5
1597   (eval "$ac_compile") 2>conftest.err
1598   ac_status=$?
1599   if test -s conftest.err; then
1600     grep -v '^ *+' conftest.err >conftest.er1
1601     cat conftest.er1 >&5
1602     mv -f conftest.er1 conftest.err
1603   fi
1604   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605   test $ac_status = 0; } && {
1606          test -z "$ac_cxx_werror_flag" ||
1607          test ! -s conftest.err
1608        } && test -s conftest.$ac_objext
1609 then :
1610   ac_retval=0
1611 else $as_nop
1612   printf "%s\n" "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615         ac_retval=1
1616 fi
1617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618   as_fn_set_status $ac_retval
1619
1620 } # ac_fn_cxx_try_compile
1621
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1626 {
1627   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628   rm -f conftest.$ac_objext conftest.beam
1629   if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632   *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 printf "%s\n" "$ac_try_echo"; } >&5
1636   (eval "$ac_compile") 2>conftest.err
1637   ac_status=$?
1638   if test -s conftest.err; then
1639     grep -v '^ *+' conftest.err >conftest.er1
1640     cat conftest.er1 >&5
1641     mv -f conftest.er1 conftest.err
1642   fi
1643   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644   test $ac_status = 0; } && {
1645          test -z "$ac_c_werror_flag" ||
1646          test ! -s conftest.err
1647        } && test -s conftest.$ac_objext
1648 then :
1649   ac_retval=0
1650 else $as_nop
1651   printf "%s\n" "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654         ac_retval=1
1655 fi
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_compile
1660
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_link ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1668   if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 printf "%s\n" "$ac_try_echo"; } >&5
1675   (eval "$ac_link") 2>conftest.err
1676   ac_status=$?
1677   if test -s conftest.err; then
1678     grep -v '^ *+' conftest.err >conftest.er1
1679     cat conftest.er1 >&5
1680     mv -f conftest.er1 conftest.err
1681   fi
1682   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; } && {
1684          test -z "$ac_c_werror_flag" ||
1685          test ! -s conftest.err
1686        } && test -s conftest$ac_exeext && {
1687          test "$cross_compiling" = yes ||
1688          test -x conftest$ac_exeext
1689        }
1690 then :
1691   ac_retval=0
1692 else $as_nop
1693   printf "%s\n" "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696         ac_retval=1
1697 fi
1698   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700   # interfere with the next link command; also delete a directory that is
1701   # left behind by Apple's compiler.  We do this before executing the actions.
1702   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704   as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_link
1707
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 printf %s "checking for $2... " >&6; }
1717 if eval test \${$3+y}
1718 then :
1719   printf %s "(cached) " >&6
1720 else $as_nop
1721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h.  */
1723 $4
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"
1727 then :
1728   eval "$3=yes"
1729 else $as_nop
1730   eval "$3=no"
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1733 fi
1734 eval ac_res=\$$3
1735                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 printf "%s\n" "$ac_res" >&6; }
1737   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738
1739 } # ac_fn_c_check_header_compile
1740
1741 # ac_fn_c_check_func LINENO FUNC VAR
1742 # ----------------------------------
1743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1744 ac_fn_c_check_func ()
1745 {
1746   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 printf %s "checking for $2... " >&6; }
1749 if eval test \${$3+y}
1750 then :
1751   printf %s "(cached) " >&6
1752 else $as_nop
1753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h.  */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1757 #define $2 innocuous_$2
1758
1759 /* System header to define __stub macros and hopefully few prototypes,
1760    which can conflict with char $2 (); below.  */
1761
1762 #include <limits.h>
1763 #undef $2
1764
1765 /* Override any GCC internal prototype to avoid an error.
1766    Use char because int might match the return type of a GCC
1767    builtin and then its argument prototype would still apply.  */
1768 #ifdef __cplusplus
1769 extern "C"
1770 #endif
1771 char $2 ();
1772 /* The GNU C library defines this for functions which it implements
1773     to always fail with ENOSYS.  Some functions are actually named
1774     something starting with __ and the normal name is an alias.  */
1775 #if defined __stub_$2 || defined __stub___$2
1776 choke me
1777 #endif
1778
1779 int
1780 main (void)
1781 {
1782 return $2 ();
1783   ;
1784   return 0;
1785 }
1786 _ACEOF
1787 if ac_fn_c_try_link "$LINENO"
1788 then :
1789   eval "$3=yes"
1790 else $as_nop
1791   eval "$3=no"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1794     conftest$ac_exeext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 printf "%s\n" "$ac_res" >&6; }
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } # ac_fn_c_check_func
1802
1803 # ac_fn_cxx_try_cpp LINENO
1804 # ------------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_cxx_try_cpp ()
1807 {
1808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809   if { { ac_try="$ac_cpp conftest.$ac_ext"
1810 case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 printf "%s\n" "$ac_try_echo"; } >&5
1816   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817   ac_status=$?
1818   if test -s conftest.err; then
1819     grep -v '^ *+' conftest.err >conftest.er1
1820     cat conftest.er1 >&5
1821     mv -f conftest.er1 conftest.err
1822   fi
1823   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824   test $ac_status = 0; } > conftest.i && {
1825          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1826          test ! -s conftest.err
1827        }
1828 then :
1829   ac_retval=0
1830 else $as_nop
1831   printf "%s\n" "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834     ac_retval=1
1835 fi
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837   as_fn_set_status $ac_retval
1838
1839 } # ac_fn_cxx_try_cpp
1840
1841 # ac_fn_cxx_try_link LINENO
1842 # -------------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_link ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1848   if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 printf "%s\n" "$ac_try_echo"; } >&5
1855   (eval "$ac_link") 2>conftest.err
1856   ac_status=$?
1857   if test -s conftest.err; then
1858     grep -v '^ *+' conftest.err >conftest.er1
1859     cat conftest.er1 >&5
1860     mv -f conftest.er1 conftest.err
1861   fi
1862   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } && {
1864          test -z "$ac_cxx_werror_flag" ||
1865          test ! -s conftest.err
1866        } && test -s conftest$ac_exeext && {
1867          test "$cross_compiling" = yes ||
1868          test -x conftest$ac_exeext
1869        }
1870 then :
1871   ac_retval=0
1872 else $as_nop
1873   printf "%s\n" "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1875
1876         ac_retval=1
1877 fi
1878   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880   # interfere with the next link command; also delete a directory that is
1881   # left behind by Apple's compiler.  We do this before executing the actions.
1882   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884   as_fn_set_status $ac_retval
1885
1886 } # ac_fn_cxx_try_link
1887
1888 # ac_fn_c_try_run LINENO
1889 # ----------------------
1890 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1891 # executables *can* be run.
1892 ac_fn_c_try_run ()
1893 {
1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895   if { { ac_try="$ac_link"
1896 case "(($ac_try" in
1897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898   *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 printf "%s\n" "$ac_try_echo"; } >&5
1902   (eval "$ac_link") 2>&5
1903   ac_status=$?
1904   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1906   { { case "(($ac_try" in
1907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908   *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 printf "%s\n" "$ac_try_echo"; } >&5
1912   (eval "$ac_try") 2>&5
1913   ac_status=$?
1914   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915   test $ac_status = 0; }; }
1916 then :
1917   ac_retval=0
1918 else $as_nop
1919   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1920        printf "%s\n" "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1922
1923        ac_retval=$ac_status
1924 fi
1925   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927   as_fn_set_status $ac_retval
1928
1929 } # ac_fn_c_try_run
1930 ac_configure_args_raw=
1931 for ac_arg
1932 do
1933   case $ac_arg in
1934   *\'*)
1935     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1936   esac
1937   as_fn_append ac_configure_args_raw " '$ac_arg'"
1938 done
1939
1940 case $ac_configure_args_raw in
1941   *$as_nl*)
1942     ac_safe_unquote= ;;
1943   *)
1944     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
1945     ac_unsafe_a="$ac_unsafe_z#~"
1946     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1947     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1948 esac
1949
1950 cat >config.log <<_ACEOF
1951 This file contains any messages produced by compilers while
1952 running configure, to aid debugging if configure makes a mistake.
1953
1954 It was created by c-ares-test $as_me -, which was
1955 generated by GNU Autoconf 2.71.  Invocation command line was
1956
1957   $ $0$ac_configure_args_raw
1958
1959 _ACEOF
1960 exec 5>>config.log
1961 {
1962 cat <<_ASUNAME
1963 ## --------- ##
1964 ## Platform. ##
1965 ## --------- ##
1966
1967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1972
1973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1974 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1975
1976 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1977 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1979 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1980 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1981 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1982 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1983
1984 _ASUNAME
1985
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989   IFS=$as_save_IFS
1990   case $as_dir in #(((
1991     '') as_dir=./ ;;
1992     */) ;;
1993     *) as_dir=$as_dir/ ;;
1994   esac
1995     printf "%s\n" "PATH: $as_dir"
1996   done
1997 IFS=$as_save_IFS
1998
1999 } >&5
2000
2001 cat >&5 <<_ACEOF
2002
2003
2004 ## ----------- ##
2005 ## Core tests. ##
2006 ## ----------- ##
2007
2008 _ACEOF
2009
2010
2011 # Keep a trace of the command line.
2012 # Strip out --no-create and --no-recursion so they do not pile up.
2013 # Strip out --silent because we don't want to record it for future runs.
2014 # Also quote any args containing shell meta-characters.
2015 # Make two passes to allow for proper duplicate-argument suppression.
2016 ac_configure_args=
2017 ac_configure_args0=
2018 ac_configure_args1=
2019 ac_must_keep_next=false
2020 for ac_pass in 1 2
2021 do
2022   for ac_arg
2023   do
2024     case $ac_arg in
2025     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027     | -silent | --silent | --silen | --sile | --sil)
2028       continue ;;
2029     *\'*)
2030       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031     esac
2032     case $ac_pass in
2033     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2034     2)
2035       as_fn_append ac_configure_args1 " '$ac_arg'"
2036       if test $ac_must_keep_next = true; then
2037         ac_must_keep_next=false # Got value, back to normal.
2038       else
2039         case $ac_arg in
2040           *=* | --config-cache | -C | -disable-* | --disable-* \
2041           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043           | -with-* | --with-* | -without-* | --without-* | --x)
2044             case "$ac_configure_args0 " in
2045               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046             esac
2047             ;;
2048           -* ) ac_must_keep_next=true ;;
2049         esac
2050       fi
2051       as_fn_append ac_configure_args " '$ac_arg'"
2052       ;;
2053     esac
2054   done
2055 done
2056 { ac_configure_args0=; unset ac_configure_args0;}
2057 { ac_configure_args1=; unset ac_configure_args1;}
2058
2059 # When interrupted or exit'd, cleanup temporary files, and complete
2060 # config.log.  We remove comments because anyway the quotes in there
2061 # would cause problems or look ugly.
2062 # WARNING: Use '\'' to represent an apostrophe within the trap.
2063 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2064 trap 'exit_status=$?
2065   # Sanitize IFS.
2066   IFS=" ""      $as_nl"
2067   # Save into config.log some information that might help in debugging.
2068   {
2069     echo
2070
2071     printf "%s\n" "## ---------------- ##
2072 ## Cache variables. ##
2073 ## ---------------- ##"
2074     echo
2075     # The following way of writing the cache mishandles newlines in values,
2076 (
2077   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2078     eval ac_val=\$$ac_var
2079     case $ac_val in #(
2080     *${as_nl}*)
2081       case $ac_var in #(
2082       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2083 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2084       esac
2085       case $ac_var in #(
2086       _ | IFS | as_nl) ;; #(
2087       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2088       *) { eval $ac_var=; unset $ac_var;} ;;
2089       esac ;;
2090     esac
2091   done
2092   (set) 2>&1 |
2093     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2094     *${as_nl}ac_space=\ *)
2095       sed -n \
2096         "s/'\''/'\''\\\\'\'''\''/g;
2097           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2098       ;; #(
2099     *)
2100       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2101       ;;
2102     esac |
2103     sort
2104 )
2105     echo
2106
2107     printf "%s\n" "## ----------------- ##
2108 ## Output variables. ##
2109 ## ----------------- ##"
2110     echo
2111     for ac_var in $ac_subst_vars
2112     do
2113       eval ac_val=\$$ac_var
2114       case $ac_val in
2115       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116       esac
2117       printf "%s\n" "$ac_var='\''$ac_val'\''"
2118     done | sort
2119     echo
2120
2121     if test -n "$ac_subst_files"; then
2122       printf "%s\n" "## ------------------- ##
2123 ## File substitutions. ##
2124 ## ------------------- ##"
2125       echo
2126       for ac_var in $ac_subst_files
2127       do
2128         eval ac_val=\$$ac_var
2129         case $ac_val in
2130         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131         esac
2132         printf "%s\n" "$ac_var='\''$ac_val'\''"
2133       done | sort
2134       echo
2135     fi
2136
2137     if test -s confdefs.h; then
2138       printf "%s\n" "## ----------- ##
2139 ## confdefs.h. ##
2140 ## ----------- ##"
2141       echo
2142       cat confdefs.h
2143       echo
2144     fi
2145     test "$ac_signal" != 0 &&
2146       printf "%s\n" "$as_me: caught signal $ac_signal"
2147     printf "%s\n" "$as_me: exit $exit_status"
2148   } >&5
2149   rm -f core *.core core.conftest.* &&
2150     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2151     exit $exit_status
2152 ' 0
2153 for ac_signal in 1 2 13 15; do
2154   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2155 done
2156 ac_signal=0
2157
2158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2159 rm -f -r conftest* confdefs.h
2160
2161 printf "%s\n" "/* confdefs.h */" > confdefs.h
2162
2163 # Predefined preprocessor variables.
2164
2165 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2166
2167 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2168
2169 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2170
2171 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2172
2173 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2174
2175 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2176
2177
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2180 if test -n "$CONFIG_SITE"; then
2181   ac_site_files="$CONFIG_SITE"
2182 elif test "x$prefix" != xNONE; then
2183   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2184 else
2185   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2186 fi
2187
2188 for ac_site_file in $ac_site_files
2189 do
2190   case $ac_site_file in #(
2191   */*) :
2192      ;; #(
2193   *) :
2194     ac_site_file=./$ac_site_file ;;
2195 esac
2196   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2197     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2199     sed 's/^/| /' "$ac_site_file" >&5
2200     . "$ac_site_file" \
2201       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2203 as_fn_error $? "failed to load site script $ac_site_file
2204 See \`config.log' for more details" "$LINENO" 5; }
2205   fi
2206 done
2207
2208 if test -r "$cache_file"; then
2209   # Some versions of bash will fail to source /dev/null (special files
2210   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2211   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2214     case $cache_file in
2215       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216       *)                      . "./$cache_file";;
2217     esac
2218   fi
2219 else
2220   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2222   >$cache_file
2223 fi
2224
2225 # Test code for whether the C++ compiler supports C++98 (global declarations)
2226 ac_cxx_conftest_cxx98_globals='
2227 // Does the compiler advertise C++98 conformance?
2228 #if !defined __cplusplus || __cplusplus < 199711L
2229 # error "Compiler does not advertise C++98 conformance"
2230 #endif
2231
2232 // These inclusions are to reject old compilers that
2233 // lack the unsuffixed header files.
2234 #include <cstdlib>
2235 #include <exception>
2236
2237 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2238 extern void assert (int);
2239 namespace std {
2240   extern int strcmp (const char *, const char *);
2241 }
2242
2243 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2244 using std::exception;
2245 using std::strcmp;
2246
2247 namespace {
2248
2249 void test_exception_syntax()
2250 {
2251   try {
2252     throw "test";
2253   } catch (const char *s) {
2254     // Extra parentheses suppress a warning when building autoconf itself,
2255     // due to lint rules shared with more typical C programs.
2256     assert (!(strcmp) (s, "test"));
2257   }
2258 }
2259
2260 template <typename T> struct test_template
2261 {
2262   T const val;
2263   explicit test_template(T t) : val(t) {}
2264   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2265 };
2266
2267 } // anonymous namespace
2268 '
2269
2270 # Test code for whether the C++ compiler supports C++98 (body of main)
2271 ac_cxx_conftest_cxx98_main='
2272   assert (argc);
2273   assert (! argv[0]);
2274 {
2275   test_exception_syntax ();
2276   test_template<double> tt (2.0);
2277   assert (tt.add (4) == 6.0);
2278   assert (true && !false);
2279 }
2280 '
2281
2282 # Test code for whether the C++ compiler supports C++11 (global declarations)
2283 ac_cxx_conftest_cxx11_globals='
2284 // Does the compiler advertise C++ 2011 conformance?
2285 #if !defined __cplusplus || __cplusplus < 201103L
2286 # error "Compiler does not advertise C++11 conformance"
2287 #endif
2288
2289 namespace cxx11test
2290 {
2291   constexpr int get_val() { return 20; }
2292
2293   struct testinit
2294   {
2295     int i;
2296     double d;
2297   };
2298
2299   class delegate
2300   {
2301   public:
2302     delegate(int n) : n(n) {}
2303     delegate(): delegate(2354) {}
2304
2305     virtual int getval() { return this->n; };
2306   protected:
2307     int n;
2308   };
2309
2310   class overridden : public delegate
2311   {
2312   public:
2313     overridden(int n): delegate(n) {}
2314     virtual int getval() override final { return this->n * 2; }
2315   };
2316
2317   class nocopy
2318   {
2319   public:
2320     nocopy(int i): i(i) {}
2321     nocopy() = default;
2322     nocopy(const nocopy&) = delete;
2323     nocopy & operator=(const nocopy&) = delete;
2324   private:
2325     int i;
2326   };
2327
2328   // for testing lambda expressions
2329   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2330   {
2331     return f(v);
2332   }
2333
2334   // for testing variadic templates and trailing return types
2335   template <typename V> auto sum(V first) -> V
2336   {
2337     return first;
2338   }
2339   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2340   {
2341     return first + sum(rest...);
2342   }
2343 }
2344 '
2345
2346 # Test code for whether the C++ compiler supports C++11 (body of main)
2347 ac_cxx_conftest_cxx11_main='
2348 {
2349   // Test auto and decltype
2350   auto a1 = 6538;
2351   auto a2 = 48573953.4;
2352   auto a3 = "String literal";
2353
2354   int total = 0;
2355   for (auto i = a3; *i; ++i) { total += *i; }
2356
2357   decltype(a2) a4 = 34895.034;
2358 }
2359 {
2360   // Test constexpr
2361   short sa[cxx11test::get_val()] = { 0 };
2362 }
2363 {
2364   // Test initializer lists
2365   cxx11test::testinit il = { 4323, 435234.23544 };
2366 }
2367 {
2368   // Test range-based for
2369   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2370                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2371   for (auto &x : array) { x += 23; }
2372 }
2373 {
2374   // Test lambda expressions
2375   using cxx11test::eval;
2376   assert (eval ([](int x) { return x*2; }, 21) == 42);
2377   double d = 2.0;
2378   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2379   assert (d == 5.0);
2380   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2381   assert (d == 5.0);
2382 }
2383 {
2384   // Test use of variadic templates
2385   using cxx11test::sum;
2386   auto a = sum(1);
2387   auto b = sum(1, 2);
2388   auto c = sum(1.0, 2.0, 3.0);
2389 }
2390 {
2391   // Test constructor delegation
2392   cxx11test::delegate d1;
2393   cxx11test::delegate d2();
2394   cxx11test::delegate d3(45);
2395 }
2396 {
2397   // Test override and final
2398   cxx11test::overridden o1(55464);
2399 }
2400 {
2401   // Test nullptr
2402   char *c = nullptr;
2403 }
2404 {
2405   // Test template brackets
2406   test_template<::test_template<int>> v(test_template<int>(12));
2407 }
2408 {
2409   // Unicode literals
2410   char const *utf8 = u8"UTF-8 string \u2500";
2411   char16_t const *utf16 = u"UTF-8 string \u2500";
2412   char32_t const *utf32 = U"UTF-32 string \u2500";
2413 }
2414 '
2415
2416 # Test code for whether the C compiler supports C++11 (complete).
2417 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2418 ${ac_cxx_conftest_cxx11_globals}
2419
2420 int
2421 main (int argc, char **argv)
2422 {
2423   int ok = 0;
2424   ${ac_cxx_conftest_cxx98_main}
2425   ${ac_cxx_conftest_cxx11_main}
2426   return ok;
2427 }
2428 "
2429
2430 # Test code for whether the C compiler supports C++98 (complete).
2431 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2432 int
2433 main (int argc, char **argv)
2434 {
2435   int ok = 0;
2436   ${ac_cxx_conftest_cxx98_main}
2437   return ok;
2438 }
2439 "
2440
2441 # Test code for whether the C compiler supports C89 (global declarations)
2442 ac_c_conftest_c89_globals='
2443 /* Does the compiler advertise C89 conformance?
2444    Do not test the value of __STDC__, because some compilers set it to 0
2445    while being otherwise adequately conformant. */
2446 #if !defined __STDC__
2447 # error "Compiler does not advertise C89 conformance"
2448 #endif
2449
2450 #include <stddef.h>
2451 #include <stdarg.h>
2452 struct stat;
2453 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2454 struct buf { int x; };
2455 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2456 static char *e (p, i)
2457      char **p;
2458      int i;
2459 {
2460   return p[i];
2461 }
2462 static char *f (char * (*g) (char **, int), char **p, ...)
2463 {
2464   char *s;
2465   va_list v;
2466   va_start (v,p);
2467   s = g (p, va_arg (v,int));
2468   va_end (v);
2469   return s;
2470 }
2471
2472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2473    function prototypes and stuff, but not \xHH hex character constants.
2474    These do not provoke an error unfortunately, instead are silently treated
2475    as an "x".  The following induces an error, until -std is added to get
2476    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2477    array size at least.  It is necessary to write \x00 == 0 to get something
2478    that is true only with -std.  */
2479 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2480
2481 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2482    inside strings and character constants.  */
2483 #define FOO(x) '\''x'\''
2484 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2485
2486 int test (int i, double x);
2487 struct s1 {int (*f) (int a);};
2488 struct s2 {int (*f) (double a);};
2489 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2490                int, int);'
2491
2492 # Test code for whether the C compiler supports C89 (body of main).
2493 ac_c_conftest_c89_main='
2494 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2495 '
2496
2497 # Test code for whether the C compiler supports C99 (global declarations)
2498 ac_c_conftest_c99_globals='
2499 // Does the compiler advertise C99 conformance?
2500 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2501 # error "Compiler does not advertise C99 conformance"
2502 #endif
2503
2504 #include <stdbool.h>
2505 extern int puts (const char *);
2506 extern int printf (const char *, ...);
2507 extern int dprintf (int, const char *, ...);
2508 extern void *malloc (size_t);
2509
2510 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2511 // dprintf is used instead of fprintf to avoid needing to declare
2512 // FILE and stderr.
2513 #define debug(...) dprintf (2, __VA_ARGS__)
2514 #define showlist(...) puts (#__VA_ARGS__)
2515 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2516 static void
2517 test_varargs_macros (void)
2518 {
2519   int x = 1234;
2520   int y = 5678;
2521   debug ("Flag");
2522   debug ("X = %d\n", x);
2523   showlist (The first, second, and third items.);
2524   report (x>y, "x is %d but y is %d", x, y);
2525 }
2526
2527 // Check long long types.
2528 #define BIG64 18446744073709551615ull
2529 #define BIG32 4294967295ul
2530 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2531 #if !BIG_OK
2532   #error "your preprocessor is broken"
2533 #endif
2534 #if BIG_OK
2535 #else
2536   #error "your preprocessor is broken"
2537 #endif
2538 static long long int bignum = -9223372036854775807LL;
2539 static unsigned long long int ubignum = BIG64;
2540
2541 struct incomplete_array
2542 {
2543   int datasize;
2544   double data[];
2545 };
2546
2547 struct named_init {
2548   int number;
2549   const wchar_t *name;
2550   double average;
2551 };
2552
2553 typedef const char *ccp;
2554
2555 static inline int
2556 test_restrict (ccp restrict text)
2557 {
2558   // See if C++-style comments work.
2559   // Iterate through items via the restricted pointer.
2560   // Also check for declarations in for loops.
2561   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2562     continue;
2563   return 0;
2564 }
2565
2566 // Check varargs and va_copy.
2567 static bool
2568 test_varargs (const char *format, ...)
2569 {
2570   va_list args;
2571   va_start (args, format);
2572   va_list args_copy;
2573   va_copy (args_copy, args);
2574
2575   const char *str = "";
2576   int number = 0;
2577   float fnumber = 0;
2578
2579   while (*format)
2580     {
2581       switch (*format++)
2582         {
2583         case '\''s'\'': // string
2584           str = va_arg (args_copy, const char *);
2585           break;
2586         case '\''d'\'': // int
2587           number = va_arg (args_copy, int);
2588           break;
2589         case '\''f'\'': // float
2590           fnumber = va_arg (args_copy, double);
2591           break;
2592         default:
2593           break;
2594         }
2595     }
2596   va_end (args_copy);
2597   va_end (args);
2598
2599   return *str && number && fnumber;
2600 }
2601 '
2602
2603 # Test code for whether the C compiler supports C99 (body of main).
2604 ac_c_conftest_c99_main='
2605   // Check bool.
2606   _Bool success = false;
2607   success |= (argc != 0);
2608
2609   // Check restrict.
2610   if (test_restrict ("String literal") == 0)
2611     success = true;
2612   char *restrict newvar = "Another string";
2613
2614   // Check varargs.
2615   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2616   test_varargs_macros ();
2617
2618   // Check flexible array members.
2619   struct incomplete_array *ia =
2620     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2621   ia->datasize = 10;
2622   for (int i = 0; i < ia->datasize; ++i)
2623     ia->data[i] = i * 1.234;
2624
2625   // Check named initializers.
2626   struct named_init ni = {
2627     .number = 34,
2628     .name = L"Test wide string",
2629     .average = 543.34343,
2630   };
2631
2632   ni.number = 58;
2633
2634   int dynamic_array[ni.number];
2635   dynamic_array[0] = argv[0][0];
2636   dynamic_array[ni.number - 1] = 543;
2637
2638   // work around unused variable warnings
2639   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2640          || dynamic_array[ni.number - 1] != 543);
2641 '
2642
2643 # Test code for whether the C compiler supports C11 (global declarations)
2644 ac_c_conftest_c11_globals='
2645 // Does the compiler advertise C11 conformance?
2646 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2647 # error "Compiler does not advertise C11 conformance"
2648 #endif
2649
2650 // Check _Alignas.
2651 char _Alignas (double) aligned_as_double;
2652 char _Alignas (0) no_special_alignment;
2653 extern char aligned_as_int;
2654 char _Alignas (0) _Alignas (int) aligned_as_int;
2655
2656 // Check _Alignof.
2657 enum
2658 {
2659   int_alignment = _Alignof (int),
2660   int_array_alignment = _Alignof (int[100]),
2661   char_alignment = _Alignof (char)
2662 };
2663 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2664
2665 // Check _Noreturn.
2666 int _Noreturn does_not_return (void) { for (;;) continue; }
2667
2668 // Check _Static_assert.
2669 struct test_static_assert
2670 {
2671   int x;
2672   _Static_assert (sizeof (int) <= sizeof (long int),
2673                   "_Static_assert does not work in struct");
2674   long int y;
2675 };
2676
2677 // Check UTF-8 literals.
2678 #define u8 syntax error!
2679 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2680
2681 // Check duplicate typedefs.
2682 typedef long *long_ptr;
2683 typedef long int *long_ptr;
2684 typedef long_ptr long_ptr;
2685
2686 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2687 struct anonymous
2688 {
2689   union {
2690     struct { int i; int j; };
2691     struct { int k; long int l; } w;
2692   };
2693   int m;
2694 } v1;
2695 '
2696
2697 # Test code for whether the C compiler supports C11 (body of main).
2698 ac_c_conftest_c11_main='
2699   _Static_assert ((offsetof (struct anonymous, i)
2700                    == offsetof (struct anonymous, w.k)),
2701                   "Anonymous union alignment botch");
2702   v1.i = 2;
2703   v1.w.k = 5;
2704   ok |= v1.i != 5;
2705 '
2706
2707 # Test code for whether the C compiler supports C11 (complete).
2708 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2709 ${ac_c_conftest_c99_globals}
2710 ${ac_c_conftest_c11_globals}
2711
2712 int
2713 main (int argc, char **argv)
2714 {
2715   int ok = 0;
2716   ${ac_c_conftest_c89_main}
2717   ${ac_c_conftest_c99_main}
2718   ${ac_c_conftest_c11_main}
2719   return ok;
2720 }
2721 "
2722
2723 # Test code for whether the C compiler supports C99 (complete).
2724 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2725 ${ac_c_conftest_c99_globals}
2726
2727 int
2728 main (int argc, char **argv)
2729 {
2730   int ok = 0;
2731   ${ac_c_conftest_c89_main}
2732   ${ac_c_conftest_c99_main}
2733   return ok;
2734 }
2735 "
2736
2737 # Test code for whether the C compiler supports C89 (complete).
2738 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2739
2740 int
2741 main (int argc, char **argv)
2742 {
2743   int ok = 0;
2744   ${ac_c_conftest_c89_main}
2745   return ok;
2746 }
2747 "
2748
2749 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2750 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2751 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2752 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2753 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2754 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2755 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2756 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2757 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2758
2759 # Auxiliary files required by this configure script.
2760 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2761
2762 # Locations in which to look for auxiliary files.
2763 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2764
2765 # Search for a directory containing all of the required auxiliary files,
2766 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2767 # If we don't find one directory that contains all the files we need,
2768 # we report the set of missing files from the *first* directory in
2769 # $ac_aux_dir_candidates and give up.
2770 ac_missing_aux_files=""
2771 ac_first_candidate=:
2772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 as_found=false
2775 for as_dir in $ac_aux_dir_candidates
2776 do
2777   IFS=$as_save_IFS
2778   case $as_dir in #(((
2779     '') as_dir=./ ;;
2780     */) ;;
2781     *) as_dir=$as_dir/ ;;
2782   esac
2783   as_found=:
2784
2785   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2786   ac_aux_dir_found=yes
2787   ac_install_sh=
2788   for ac_aux in $ac_aux_files
2789   do
2790     # As a special case, if "install-sh" is required, that requirement
2791     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2792     # and $ac_install_sh is set appropriately for whichever one is found.
2793     if test x"$ac_aux" = x"install-sh"
2794     then
2795       if test -f "${as_dir}install-sh"; then
2796         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2797         ac_install_sh="${as_dir}install-sh -c"
2798       elif test -f "${as_dir}install.sh"; then
2799         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2800         ac_install_sh="${as_dir}install.sh -c"
2801       elif test -f "${as_dir}shtool"; then
2802         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2803         ac_install_sh="${as_dir}shtool install -c"
2804       else
2805         ac_aux_dir_found=no
2806         if $ac_first_candidate; then
2807           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2808         else
2809           break
2810         fi
2811       fi
2812     else
2813       if test -f "${as_dir}${ac_aux}"; then
2814         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2815       else
2816         ac_aux_dir_found=no
2817         if $ac_first_candidate; then
2818           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2819         else
2820           break
2821         fi
2822       fi
2823     fi
2824   done
2825   if test "$ac_aux_dir_found" = yes; then
2826     ac_aux_dir="$as_dir"
2827     break
2828   fi
2829   ac_first_candidate=false
2830
2831   as_found=false
2832 done
2833 IFS=$as_save_IFS
2834 if $as_found
2835 then :
2836
2837 else $as_nop
2838   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2839 fi
2840
2841
2842 # These three variables are undocumented and unsupported,
2843 # and are intended to be withdrawn in a future Autoconf release.
2844 # They can cause serious problems if a builder's source tree is in a directory
2845 # whose full name contains unusual characters.
2846 if test -f "${ac_aux_dir}config.guess"; then
2847   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2848 fi
2849 if test -f "${ac_aux_dir}config.sub"; then
2850   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2851 fi
2852 if test -f "$ac_aux_dir/configure"; then
2853   ac_configure="$SHELL ${ac_aux_dir}configure"
2854 fi
2855
2856 # Check that the precious variables saved in the cache have kept the same
2857 # value.
2858 ac_cache_corrupted=false
2859 for ac_var in $ac_precious_vars; do
2860   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2861   eval ac_new_set=\$ac_env_${ac_var}_set
2862   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2863   eval ac_new_val=\$ac_env_${ac_var}_value
2864   case $ac_old_set,$ac_new_set in
2865     set,)
2866       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2867 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2868       ac_cache_corrupted=: ;;
2869     ,set)
2870       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2871 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2872       ac_cache_corrupted=: ;;
2873     ,);;
2874     *)
2875       if test "x$ac_old_val" != "x$ac_new_val"; then
2876         # differences in whitespace do not lead to failure.
2877         ac_old_val_w=`echo x $ac_old_val`
2878         ac_new_val_w=`echo x $ac_new_val`
2879         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2880           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2881 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2882           ac_cache_corrupted=:
2883         else
2884           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2885 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2886           eval $ac_var=\$ac_old_val
2887         fi
2888         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2889 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2890         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2891 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2892       fi;;
2893   esac
2894   # Pass precious variables to config.status.
2895   if test "$ac_new_set" = set; then
2896     case $ac_new_val in
2897     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2898     *) ac_arg=$ac_var=$ac_new_val ;;
2899     esac
2900     case " $ac_configure_args " in
2901       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2902       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2903     esac
2904   fi
2905 done
2906 if $ac_cache_corrupted; then
2907   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2909   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2910 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2911   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2912             and start over" "$LINENO" 5
2913 fi
2914 ## -------------------- ##
2915 ## Main body of script. ##
2916 ## -------------------- ##
2917
2918 ac_ext=c
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923
2924
2925
2926
2927
2928 am__api_version='1.16'
2929
2930
2931
2932   # Find a good install program.  We prefer a C program (faster),
2933 # so one script is as good as another.  But avoid the broken or
2934 # incompatible versions:
2935 # SysV /etc/install, /usr/sbin/install
2936 # SunOS /usr/etc/install
2937 # IRIX /sbin/install
2938 # AIX /bin/install
2939 # AmigaOS /C/install, which installs bootblocks on floppy discs
2940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2943 # OS/2's system install, which has a completely different semantic
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 # Reject install programs that cannot install multiple files.
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2947 printf %s "checking for a BSD-compatible install... " >&6; }
2948 if test -z "$INSTALL"; then
2949 if test ${ac_cv_path_install+y}
2950 then :
2951   printf %s "(cached) " >&6
2952 else $as_nop
2953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956   IFS=$as_save_IFS
2957   case $as_dir in #(((
2958     '') as_dir=./ ;;
2959     */) ;;
2960     *) as_dir=$as_dir/ ;;
2961   esac
2962     # Account for fact that we put trailing slashes in our PATH walk.
2963 case $as_dir in #((
2964   ./ | /[cC]/* | \
2965   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2966   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2967   /usr/ucb/* ) ;;
2968   *)
2969     # OSF1 and SCO ODT 3.0 have their own names for install.
2970     # Don't use installbsd from OSF since it installs stuff as root
2971     # by default.
2972     for ac_prog in ginstall scoinst install; do
2973       for ac_exec_ext in '' $ac_executable_extensions; do
2974         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2975           if test $ac_prog = install &&
2976             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2977             # AIX install.  It has an incompatible calling convention.
2978             :
2979           elif test $ac_prog = install &&
2980             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2981             # program-specific install script used by HP pwplus--don't use.
2982             :
2983           else
2984             rm -rf conftest.one conftest.two conftest.dir
2985             echo one > conftest.one
2986             echo two > conftest.two
2987             mkdir conftest.dir
2988             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2989               test -s conftest.one && test -s conftest.two &&
2990               test -s conftest.dir/conftest.one &&
2991               test -s conftest.dir/conftest.two
2992             then
2993               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2994               break 3
2995             fi
2996           fi
2997         fi
2998       done
2999     done
3000     ;;
3001 esac
3002
3003   done
3004 IFS=$as_save_IFS
3005
3006 rm -rf conftest.one conftest.two conftest.dir
3007
3008 fi
3009   if test ${ac_cv_path_install+y}; then
3010     INSTALL=$ac_cv_path_install
3011   else
3012     # As a last resort, use the slow shell script.  Don't cache a
3013     # value for INSTALL within a source directory, because that will
3014     # break other packages using the cache if that directory is
3015     # removed, or if the value is a relative name.
3016     INSTALL=$ac_install_sh
3017   fi
3018 fi
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3020 printf "%s\n" "$INSTALL" >&6; }
3021
3022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3023 # It thinks the first close brace ends the variable substitution.
3024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3025
3026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3027
3028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3029
3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3031 printf %s "checking whether build environment is sane... " >&6; }
3032 # Reject unsafe characters in $srcdir or the absolute working directory
3033 # name.  Accept space and tab only in the latter.
3034 am_lf='
3035 '
3036 case `pwd` in
3037   *[\\\"\#\$\&\'\`$am_lf]*)
3038     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3039 esac
3040 case $srcdir in
3041   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3042     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3043 esac
3044
3045 # Do 'set' in a subshell so we don't clobber the current shell's
3046 # arguments.  Must try -L first in case configure is actually a
3047 # symlink; some systems play weird games with the mod time of symlinks
3048 # (eg FreeBSD returns the mod time of the symlink's containing
3049 # directory).
3050 if (
3051    am_has_slept=no
3052    for am_try in 1 2; do
3053      echo "timestamp, slept: $am_has_slept" > conftest.file
3054      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3055      if test "$*" = "X"; then
3056         # -L didn't work.
3057         set X `ls -t "$srcdir/configure" conftest.file`
3058      fi
3059      if test "$*" != "X $srcdir/configure conftest.file" \
3060         && test "$*" != "X conftest.file $srcdir/configure"; then
3061
3062         # If neither matched, then we have a broken ls.  This can happen
3063         # if, for instance, CONFIG_SHELL is bash and it inherits a
3064         # broken ls alias from the environment.  This has actually
3065         # happened.  Such a system could not be considered "sane".
3066         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3067   alias in your environment" "$LINENO" 5
3068      fi
3069      if test "$2" = conftest.file || test $am_try -eq 2; then
3070        break
3071      fi
3072      # Just in case.
3073      sleep 1
3074      am_has_slept=yes
3075    done
3076    test "$2" = conftest.file
3077    )
3078 then
3079    # Ok.
3080    :
3081 else
3082    as_fn_error $? "newly created file is older than distributed files!
3083 Check your system clock" "$LINENO" 5
3084 fi
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 printf "%s\n" "yes" >&6; }
3087 # If we didn't sleep, we still need to ensure time stamps of config.status and
3088 # generated files are strictly newer.
3089 am_sleep_pid=
3090 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3091   ( sleep 1 ) &
3092   am_sleep_pid=$!
3093 fi
3094
3095 rm -f conftest.file
3096
3097 test "$program_prefix" != NONE &&
3098   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3099 # Use a double $ so make ignores it.
3100 test "$program_suffix" != NONE &&
3101   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3102 # Double any \ or $.
3103 # By default was `s,x,x', remove it if useless.
3104 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3105 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3106
3107
3108 # Expand $ac_aux_dir to an absolute path.
3109 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3110
3111
3112   if test x"${MISSING+set}" != xset; then
3113   MISSING="\${SHELL} '$am_aux_dir/missing'"
3114 fi
3115 # Use eval to expand $SHELL
3116 if eval "$MISSING --is-lightweight"; then
3117   am_missing_run="$MISSING "
3118 else
3119   am_missing_run=
3120   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3121 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3122 fi
3123
3124 if test x"${install_sh+set}" != xset; then
3125   case $am_aux_dir in
3126   *\ * | *\     *)
3127     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3128   *)
3129     install_sh="\${SHELL} $am_aux_dir/install-sh"
3130   esac
3131 fi
3132
3133 # Installed binaries are usually stripped using 'strip' when the user
3134 # run "make install-strip".  However 'strip' might not be the right
3135 # tool to use in cross-compilation environments, therefore Automake
3136 # will honor the 'STRIP' environment variable to overrule this program.
3137 if test "$cross_compiling" != no; then
3138   if test -n "$ac_tool_prefix"; then
3139   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}strip; ac_word=$2
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 printf %s "checking for $ac_word... " >&6; }
3143 if test ${ac_cv_prog_STRIP+y}
3144 then :
3145   printf %s "(cached) " >&6
3146 else $as_nop
3147   if test -n "$STRIP"; then
3148   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153   IFS=$as_save_IFS
3154   case $as_dir in #(((
3155     '') as_dir=./ ;;
3156     */) ;;
3157     *) as_dir=$as_dir/ ;;
3158   esac
3159     for ac_exec_ext in '' $ac_executable_extensions; do
3160   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3161     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3162     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3163     break 2
3164   fi
3165 done
3166   done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 STRIP=$ac_cv_prog_STRIP
3172 if test -n "$STRIP"; then
3173   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3174 printf "%s\n" "$STRIP" >&6; }
3175 else
3176   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 printf "%s\n" "no" >&6; }
3178 fi
3179
3180
3181 fi
3182 if test -z "$ac_cv_prog_STRIP"; then
3183   ac_ct_STRIP=$STRIP
3184   # Extract the first word of "strip", so it can be a program name with args.
3185 set dummy strip; ac_word=$2
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 printf %s "checking for $ac_word... " >&6; }
3188 if test ${ac_cv_prog_ac_ct_STRIP+y}
3189 then :
3190   printf %s "(cached) " >&6
3191 else $as_nop
3192   if test -n "$ac_ct_STRIP"; then
3193   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198   IFS=$as_save_IFS
3199   case $as_dir in #(((
3200     '') as_dir=./ ;;
3201     */) ;;
3202     *) as_dir=$as_dir/ ;;
3203   esac
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3206     ac_cv_prog_ac_ct_STRIP="strip"
3207     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211   done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3217 if test -n "$ac_ct_STRIP"; then
3218   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3219 printf "%s\n" "$ac_ct_STRIP" >&6; }
3220 else
3221   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 printf "%s\n" "no" >&6; }
3223 fi
3224
3225   if test "x$ac_ct_STRIP" = x; then
3226     STRIP=":"
3227   else
3228     case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234     STRIP=$ac_ct_STRIP
3235   fi
3236 else
3237   STRIP="$ac_cv_prog_STRIP"
3238 fi
3239
3240 fi
3241 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3242
3243
3244   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3245 printf %s "checking for a race-free mkdir -p... " >&6; }
3246 if test -z "$MKDIR_P"; then
3247   if test ${ac_cv_path_mkdir+y}
3248 then :
3249   printf %s "(cached) " >&6
3250 else $as_nop
3251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3253 do
3254   IFS=$as_save_IFS
3255   case $as_dir in #(((
3256     '') as_dir=./ ;;
3257     */) ;;
3258     *) as_dir=$as_dir/ ;;
3259   esac
3260     for ac_prog in mkdir gmkdir; do
3261          for ac_exec_ext in '' $ac_executable_extensions; do
3262            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3263            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3264              'mkdir ('*'coreutils) '* | \
3265              'BusyBox '* | \
3266              'mkdir (fileutils) '4.1*)
3267                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3268                break 3;;
3269            esac
3270          done
3271        done
3272   done
3273 IFS=$as_save_IFS
3274
3275 fi
3276
3277   test -d ./--version && rmdir ./--version
3278   if test ${ac_cv_path_mkdir+y}; then
3279     MKDIR_P="$ac_cv_path_mkdir -p"
3280   else
3281     # As a last resort, use the slow shell script.  Don't cache a
3282     # value for MKDIR_P within a source directory, because that will
3283     # break other packages using the cache if that directory is
3284     # removed, or if the value is a relative name.
3285     MKDIR_P="$ac_install_sh -d"
3286   fi
3287 fi
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3289 printf "%s\n" "$MKDIR_P" >&6; }
3290
3291 for ac_prog in gawk mawk nawk awk
3292 do
3293   # Extract the first word of "$ac_prog", so it can be a program name with args.
3294 set dummy $ac_prog; ac_word=$2
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 printf %s "checking for $ac_word... " >&6; }
3297 if test ${ac_cv_prog_AWK+y}
3298 then :
3299   printf %s "(cached) " >&6
3300 else $as_nop
3301   if test -n "$AWK"; then
3302   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307   IFS=$as_save_IFS
3308   case $as_dir in #(((
3309     '') as_dir=./ ;;
3310     */) ;;
3311     *) as_dir=$as_dir/ ;;
3312   esac
3313     for ac_exec_ext in '' $ac_executable_extensions; do
3314   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3315     ac_cv_prog_AWK="$ac_prog"
3316     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3317     break 2
3318   fi
3319 done
3320   done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 AWK=$ac_cv_prog_AWK
3326 if test -n "$AWK"; then
3327   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3328 printf "%s\n" "$AWK" >&6; }
3329 else
3330   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 printf "%s\n" "no" >&6; }
3332 fi
3333
3334
3335   test -n "$AWK" && break
3336 done
3337
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3339 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3340 set x ${MAKE-make}
3341 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3342 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3343 then :
3344   printf %s "(cached) " >&6
3345 else $as_nop
3346   cat >conftest.make <<\_ACEOF
3347 SHELL = /bin/sh
3348 all:
3349         @echo '@@@%%%=$(MAKE)=@@@%%%'
3350 _ACEOF
3351 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3353   *@@@%%%=?*=@@@%%%*)
3354     eval ac_cv_prog_make_${ac_make}_set=yes;;
3355   *)
3356     eval ac_cv_prog_make_${ac_make}_set=no;;
3357 esac
3358 rm -f conftest.make
3359 fi
3360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362 printf "%s\n" "yes" >&6; }
3363   SET_MAKE=
3364 else
3365   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 printf "%s\n" "no" >&6; }
3367   SET_MAKE="MAKE=${MAKE-make}"
3368 fi
3369
3370 rm -rf .tst 2>/dev/null
3371 mkdir .tst 2>/dev/null
3372 if test -d .tst; then
3373   am__leading_dot=.
3374 else
3375   am__leading_dot=_
3376 fi
3377 rmdir .tst 2>/dev/null
3378
3379 # Check whether --enable-silent-rules was given.
3380 if test ${enable_silent_rules+y}
3381 then :
3382   enableval=$enable_silent_rules;
3383 fi
3384
3385 case $enable_silent_rules in # (((
3386   yes) AM_DEFAULT_VERBOSITY=0;;
3387    no) AM_DEFAULT_VERBOSITY=1;;
3388     *) AM_DEFAULT_VERBOSITY=1;;
3389 esac
3390 am_make=${MAKE-make}
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3392 printf %s "checking whether $am_make supports nested variables... " >&6; }
3393 if test ${am_cv_make_support_nested_variables+y}
3394 then :
3395   printf %s "(cached) " >&6
3396 else $as_nop
3397   if printf "%s\n" 'TRUE=$(BAR$(V))
3398 BAR0=false
3399 BAR1=true
3400 V=1
3401 am__doit:
3402         @$(TRUE)
3403 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3404   am_cv_make_support_nested_variables=yes
3405 else
3406   am_cv_make_support_nested_variables=no
3407 fi
3408 fi
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3410 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3411 if test $am_cv_make_support_nested_variables = yes; then
3412     AM_V='$(V)'
3413   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3414 else
3415   AM_V=$AM_DEFAULT_VERBOSITY
3416   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3417 fi
3418 AM_BACKSLASH='\'
3419
3420 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3421   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3422   # is not polluted with repeated "-I."
3423   am__isrc=' -I$(srcdir)'
3424   # test to see if srcdir already configured
3425   if test -f $srcdir/config.status; then
3426     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3427   fi
3428 fi
3429
3430 # test whether we have cygpath
3431 if test -z "$CYGPATH_W"; then
3432   if (cygpath --version) >/dev/null 2>/dev/null; then
3433     CYGPATH_W='cygpath -w'
3434   else
3435     CYGPATH_W=echo
3436   fi
3437 fi
3438
3439
3440 # Define the identity of the package.
3441  PACKAGE='c-ares-test'
3442  VERSION='-'
3443
3444
3445 # Some tools Automake needs.
3446
3447 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3448
3449
3450 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3451
3452
3453 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3454
3455
3456 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3457
3458
3459 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3460
3461 # For better backward compatibility.  To be removed once Automake 1.9.x
3462 # dies out for good.  For more background, see:
3463 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3464 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3465 mkdir_p='$(MKDIR_P)'
3466
3467 # We need awk for the "check" target (and possibly the TAP driver).  The
3468 # system "awk" is bad on some platforms.
3469 # Always define AMTAR for backward compatibility.  Yes, it's still used
3470 # in the wild :-(  We should find a proper way to deprecate it ...
3471 AMTAR='$${TAR-tar}'
3472
3473
3474 # We'll loop over all known methods to create a tar archive until one works.
3475 _am_tools='gnutar  pax cpio none'
3476
3477 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3478
3479
3480
3481
3482
3483 # Variables for tags utilities; see am/tags.am
3484 if test -z "$CTAGS"; then
3485   CTAGS=ctags
3486 fi
3487
3488 if test -z "$ETAGS"; then
3489   ETAGS=etags
3490 fi
3491
3492 if test -z "$CSCOPE"; then
3493   CSCOPE=cscope
3494 fi
3495
3496
3497
3498 # POSIX will say in a future version that running "rm -f" with no argument
3499 # is OK; and we want to be able to make that assumption in our Makefile
3500 # recipes.  So use an aggressive probe to check that the usage we want is
3501 # actually supported "in the wild" to an acceptable degree.
3502 # See automake bug#10828.
3503 # To make any issue more visible, cause the running configure to be aborted
3504 # by default if the 'rm' program in use doesn't match our expectations; the
3505 # user can still override this though.
3506 if rm -f && rm -fr && rm -rf; then : OK; else
3507   cat >&2 <<'END'
3508 Oops!
3509
3510 Your 'rm' program seems unable to run without file operands specified
3511 on the command line, even when the '-f' option is present.  This is contrary
3512 to the behaviour of most rm programs out there, and not conforming with
3513 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3514
3515 Please tell bug-automake@gnu.org about your system, including the value
3516 of your $PATH and any error possibly output before this message.  This
3517 can help us improve future automake versions.
3518
3519 END
3520   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3521     echo 'Configuration will proceed anyway, since you have set the' >&2
3522     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3523     echo >&2
3524   else
3525     cat >&2 <<'END'
3526 Aborting the configuration process, to ensure you take notice of the issue.
3527
3528 You can download and install GNU coreutils to get an 'rm' implementation
3529 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3530
3531 If you want to complete the configuration process using your problematic
3532 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3533 to "yes", and re-run configure.
3534
3535 END
3536     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3537   fi
3538 fi
3539
3540 # Check whether --enable-silent-rules was given.
3541 if test ${enable_silent_rules+y}
3542 then :
3543   enableval=$enable_silent_rules;
3544 fi
3545
3546 case $enable_silent_rules in # (((
3547   yes) AM_DEFAULT_VERBOSITY=0;;
3548    no) AM_DEFAULT_VERBOSITY=1;;
3549     *) AM_DEFAULT_VERBOSITY=0;;
3550 esac
3551 am_make=${MAKE-make}
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3553 printf %s "checking whether $am_make supports nested variables... " >&6; }
3554 if test ${am_cv_make_support_nested_variables+y}
3555 then :
3556   printf %s "(cached) " >&6
3557 else $as_nop
3558   if printf "%s\n" 'TRUE=$(BAR$(V))
3559 BAR0=false
3560 BAR1=true
3561 V=1
3562 am__doit:
3563         @$(TRUE)
3564 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3565   am_cv_make_support_nested_variables=yes
3566 else
3567   am_cv_make_support_nested_variables=no
3568 fi
3569 fi
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3571 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3572 if test $am_cv_make_support_nested_variables = yes; then
3573     AM_V='$(V)'
3574   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3575 else
3576   AM_V=$AM_DEFAULT_VERBOSITY
3577   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3578 fi
3579 AM_BACKSLASH='\'
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593 ac_ext=cpp
3594 ac_cpp='$CXXCPP $CPPFLAGS'
3595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3598 if test -z "$CXX"; then
3599   if test -n "$CCC"; then
3600     CXX=$CCC
3601   else
3602     if test -n "$ac_tool_prefix"; then
3603   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3604   do
3605     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 printf %s "checking for $ac_word... " >&6; }
3609 if test ${ac_cv_prog_CXX+y}
3610 then :
3611   printf %s "(cached) " >&6
3612 else $as_nop
3613   if test -n "$CXX"; then
3614   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619   IFS=$as_save_IFS
3620   case $as_dir in #(((
3621     '') as_dir=./ ;;
3622     */) ;;
3623     *) as_dir=$as_dir/ ;;
3624   esac
3625     for ac_exec_ext in '' $ac_executable_extensions; do
3626   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3627     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3628     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3629     break 2
3630   fi
3631 done
3632   done
3633 IFS=$as_save_IFS
3634
3635 fi
3636 fi
3637 CXX=$ac_cv_prog_CXX
3638 if test -n "$CXX"; then
3639   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3640 printf "%s\n" "$CXX" >&6; }
3641 else
3642   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 printf "%s\n" "no" >&6; }
3644 fi
3645
3646
3647     test -n "$CXX" && break
3648   done
3649 fi
3650 if test -z "$CXX"; then
3651   ac_ct_CXX=$CXX
3652   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3653 do
3654   # Extract the first word of "$ac_prog", so it can be a program name with args.
3655 set dummy $ac_prog; ac_word=$2
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 printf %s "checking for $ac_word... " >&6; }
3658 if test ${ac_cv_prog_ac_ct_CXX+y}
3659 then :
3660   printf %s "(cached) " >&6
3661 else $as_nop
3662   if test -n "$ac_ct_CXX"; then
3663   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3664 else
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3667 do
3668   IFS=$as_save_IFS
3669   case $as_dir in #(((
3670     '') as_dir=./ ;;
3671     */) ;;
3672     *) as_dir=$as_dir/ ;;
3673   esac
3674     for ac_exec_ext in '' $ac_executable_extensions; do
3675   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3676     ac_cv_prog_ac_ct_CXX="$ac_prog"
3677     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3678     break 2
3679   fi
3680 done
3681   done
3682 IFS=$as_save_IFS
3683
3684 fi
3685 fi
3686 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3687 if test -n "$ac_ct_CXX"; then
3688   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3689 printf "%s\n" "$ac_ct_CXX" >&6; }
3690 else
3691   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 printf "%s\n" "no" >&6; }
3693 fi
3694
3695
3696   test -n "$ac_ct_CXX" && break
3697 done
3698
3699   if test "x$ac_ct_CXX" = x; then
3700     CXX="g++"
3701   else
3702     case $cross_compiling:$ac_tool_warned in
3703 yes:)
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3705 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3706 ac_tool_warned=yes ;;
3707 esac
3708     CXX=$ac_ct_CXX
3709   fi
3710 fi
3711
3712   fi
3713 fi
3714 # Provide some information about the compiler.
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3716 set X $ac_compile
3717 ac_compiler=$2
3718 for ac_option in --version -v -V -qversion; do
3719   { { ac_try="$ac_compiler $ac_option >&5"
3720 case "(($ac_try" in
3721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722   *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 printf "%s\n" "$ac_try_echo"; } >&5
3726   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3727   ac_status=$?
3728   if test -s conftest.err; then
3729     sed '10a\
3730 ... rest of stderr output deleted ...
3731          10q' conftest.err >conftest.er1
3732     cat conftest.er1 >&5
3733   fi
3734   rm -f conftest.er1 conftest.err
3735   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736   test $ac_status = 0; }
3737 done
3738
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h.  */
3741
3742 int
3743 main (void)
3744 {
3745
3746   ;
3747   return 0;
3748 }
3749 _ACEOF
3750 ac_clean_files_save=$ac_clean_files
3751 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3752 # Try to create an executable without -o first, disregard a.out.
3753 # It will help us diagnose broken compilers, and finding out an intuition
3754 # of exeext.
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3756 printf %s "checking whether the C++ compiler works... " >&6; }
3757 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3758
3759 # The possible output files:
3760 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3761
3762 ac_rmfiles=
3763 for ac_file in $ac_files
3764 do
3765   case $ac_file in
3766     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3767     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3768   esac
3769 done
3770 rm -f $ac_rmfiles
3771
3772 if { { ac_try="$ac_link_default"
3773 case "(($ac_try" in
3774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775   *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 printf "%s\n" "$ac_try_echo"; } >&5
3779   (eval "$ac_link_default") 2>&5
3780   ac_status=$?
3781   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782   test $ac_status = 0; }
3783 then :
3784   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3786 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3787 # so that the user can short-circuit this test for compilers unknown to
3788 # Autoconf.
3789 for ac_file in $ac_files ''
3790 do
3791   test -f "$ac_file" || continue
3792   case $ac_file in
3793     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3794         ;;
3795     [ab].out )
3796         # We found the default executable, but exeext='' is most
3797         # certainly right.
3798         break;;
3799     *.* )
3800         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3801         then :; else
3802            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3803         fi
3804         # We set ac_cv_exeext here because the later test for it is not
3805         # safe: cross compilers may not add the suffix if given an `-o'
3806         # argument, so we may need to know it at that point already.
3807         # Even if this section looks crufty: it has the advantage of
3808         # actually working.
3809         break;;
3810     * )
3811         break;;
3812   esac
3813 done
3814 test "$ac_cv_exeext" = no && ac_cv_exeext=
3815
3816 else $as_nop
3817   ac_file=''
3818 fi
3819 if test -z "$ac_file"
3820 then :
3821   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 printf "%s\n" "no" >&6; }
3823 printf "%s\n" "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error 77 "C++ compiler cannot create executables
3829 See \`config.log' for more details" "$LINENO" 5; }
3830 else $as_nop
3831   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3832 printf "%s\n" "yes" >&6; }
3833 fi
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3835 printf %s "checking for C++ compiler default output file name... " >&6; }
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3837 printf "%s\n" "$ac_file" >&6; }
3838 ac_exeext=$ac_cv_exeext
3839
3840 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3841 ac_clean_files=$ac_clean_files_save
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3843 printf %s "checking for suffix of executables... " >&6; }
3844 if { { ac_try="$ac_link"
3845 case "(($ac_try" in
3846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847   *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 printf "%s\n" "$ac_try_echo"; } >&5
3851   (eval "$ac_link") 2>&5
3852   ac_status=$?
3853   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854   test $ac_status = 0; }
3855 then :
3856   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3857 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3858 # work properly (i.e., refer to `conftest.exe'), while it won't with
3859 # `rm'.
3860 for ac_file in conftest.exe conftest conftest.*; do
3861   test -f "$ac_file" || continue
3862   case $ac_file in
3863     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3865           break;;
3866     * ) break;;
3867   esac
3868 done
3869 else $as_nop
3870   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3873 See \`config.log' for more details" "$LINENO" 5; }
3874 fi
3875 rm -f conftest conftest$ac_cv_exeext
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3877 printf "%s\n" "$ac_cv_exeext" >&6; }
3878
3879 rm -f conftest.$ac_ext
3880 EXEEXT=$ac_cv_exeext
3881 ac_exeext=$EXEEXT
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h.  */
3884 #include <stdio.h>
3885 int
3886 main (void)
3887 {
3888 FILE *f = fopen ("conftest.out", "w");
3889  return ferror (f) || fclose (f) != 0;
3890
3891   ;
3892   return 0;
3893 }
3894 _ACEOF
3895 ac_clean_files="$ac_clean_files conftest.out"
3896 # Check that the compiler produces executables we can run.  If not, either
3897 # the compiler is broken, or we cross compile.
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3899 printf %s "checking whether we are cross compiling... " >&6; }
3900 if test "$cross_compiling" != yes; then
3901   { { ac_try="$ac_link"
3902 case "(($ac_try" in
3903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904   *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 printf "%s\n" "$ac_try_echo"; } >&5
3908   (eval "$ac_link") 2>&5
3909   ac_status=$?
3910   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911   test $ac_status = 0; }
3912   if { ac_try='./conftest$ac_cv_exeext'
3913   { { case "(($ac_try" in
3914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915   *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 printf "%s\n" "$ac_try_echo"; } >&5
3919   (eval "$ac_try") 2>&5
3920   ac_status=$?
3921   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922   test $ac_status = 0; }; }; then
3923     cross_compiling=no
3924   else
3925     if test "$cross_compiling" = maybe; then
3926         cross_compiling=yes
3927     else
3928         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error 77 "cannot run C++ compiled programs.
3931 If you meant to cross compile, use \`--host'.
3932 See \`config.log' for more details" "$LINENO" 5; }
3933     fi
3934   fi
3935 fi
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3937 printf "%s\n" "$cross_compiling" >&6; }
3938
3939 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3940 ac_clean_files=$ac_clean_files_save
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3942 printf %s "checking for suffix of object files... " >&6; }
3943 if test ${ac_cv_objext+y}
3944 then :
3945   printf %s "(cached) " >&6
3946 else $as_nop
3947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h.  */
3949
3950 int
3951 main (void)
3952 {
3953
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest.o conftest.obj
3959 if { { ac_try="$ac_compile"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 printf "%s\n" "$ac_try_echo"; } >&5
3966   (eval "$ac_compile") 2>&5
3967   ac_status=$?
3968   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969   test $ac_status = 0; }
3970 then :
3971   for ac_file in conftest.o conftest.obj conftest.*; do
3972   test -f "$ac_file" || continue;
3973   case $ac_file in
3974     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3975     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3976        break;;
3977   esac
3978 done
3979 else $as_nop
3980   printf "%s\n" "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error $? "cannot compute suffix of object files: cannot compile
3986 See \`config.log' for more details" "$LINENO" 5; }
3987 fi
3988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3989 fi
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3991 printf "%s\n" "$ac_cv_objext" >&6; }
3992 OBJEXT=$ac_cv_objext
3993 ac_objext=$OBJEXT
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3995 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3996 if test ${ac_cv_cxx_compiler_gnu+y}
3997 then :
3998   printf %s "(cached) " >&6
3999 else $as_nop
4000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h.  */
4002
4003 int
4004 main (void)
4005 {
4006 #ifndef __GNUC__
4007        choke me
4008 #endif
4009
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014 if ac_fn_cxx_try_compile "$LINENO"
4015 then :
4016   ac_compiler_gnu=yes
4017 else $as_nop
4018   ac_compiler_gnu=no
4019 fi
4020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4021 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4022
4023 fi
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4025 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4027
4028 if test $ac_compiler_gnu = yes; then
4029   GXX=yes
4030 else
4031   GXX=
4032 fi
4033 ac_test_CXXFLAGS=${CXXFLAGS+y}
4034 ac_save_CXXFLAGS=$CXXFLAGS
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4036 printf %s "checking whether $CXX accepts -g... " >&6; }
4037 if test ${ac_cv_prog_cxx_g+y}
4038 then :
4039   printf %s "(cached) " >&6
4040 else $as_nop
4041   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4042    ac_cxx_werror_flag=yes
4043    ac_cv_prog_cxx_g=no
4044    CXXFLAGS="-g"
4045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h.  */
4047
4048 int
4049 main (void)
4050 {
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_cxx_try_compile "$LINENO"
4057 then :
4058   ac_cv_prog_cxx_g=yes
4059 else $as_nop
4060   CXXFLAGS=""
4061       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h.  */
4063
4064 int
4065 main (void)
4066 {
4067
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072 if ac_fn_cxx_try_compile "$LINENO"
4073 then :
4074
4075 else $as_nop
4076   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4077          CXXFLAGS="-g"
4078          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h.  */
4080
4081 int
4082 main (void)
4083 {
4084
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089 if ac_fn_cxx_try_compile "$LINENO"
4090 then :
4091   ac_cv_prog_cxx_g=yes
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4098    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4099 fi
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4101 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4102 if test $ac_test_CXXFLAGS; then
4103   CXXFLAGS=$ac_save_CXXFLAGS
4104 elif test $ac_cv_prog_cxx_g = yes; then
4105   if test "$GXX" = yes; then
4106     CXXFLAGS="-g -O2"
4107   else
4108     CXXFLAGS="-g"
4109   fi
4110 else
4111   if test "$GXX" = yes; then
4112     CXXFLAGS="-O2"
4113   else
4114     CXXFLAGS=
4115   fi
4116 fi
4117 ac_prog_cxx_stdcxx=no
4118 if test x$ac_prog_cxx_stdcxx = xno
4119 then :
4120   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4121 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4122 if test ${ac_cv_prog_cxx_11+y}
4123 then :
4124   printf %s "(cached) " >&6
4125 else $as_nop
4126   ac_cv_prog_cxx_11=no
4127 ac_save_CXX=$CXX
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h.  */
4130 $ac_cxx_conftest_cxx11_program
4131 _ACEOF
4132 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4133 do
4134   CXX="$ac_save_CXX $ac_arg"
4135   if ac_fn_cxx_try_compile "$LINENO"
4136 then :
4137   ac_cv_prog_cxx_cxx11=$ac_arg
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.beam
4140   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4141 done
4142 rm -f conftest.$ac_ext
4143 CXX=$ac_save_CXX
4144 fi
4145
4146 if test "x$ac_cv_prog_cxx_cxx11" = xno
4147 then :
4148   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4149 printf "%s\n" "unsupported" >&6; }
4150 else $as_nop
4151   if test "x$ac_cv_prog_cxx_cxx11" = x
4152 then :
4153   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4154 printf "%s\n" "none needed" >&6; }
4155 else $as_nop
4156   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4157 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4158      CXX="$CXX $ac_cv_prog_cxx_cxx11"
4159 fi
4160   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4161   ac_prog_cxx_stdcxx=cxx11
4162 fi
4163 fi
4164 if test x$ac_prog_cxx_stdcxx = xno
4165 then :
4166   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4167 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4168 if test ${ac_cv_prog_cxx_98+y}
4169 then :
4170   printf %s "(cached) " >&6
4171 else $as_nop
4172   ac_cv_prog_cxx_98=no
4173 ac_save_CXX=$CXX
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h.  */
4176 $ac_cxx_conftest_cxx98_program
4177 _ACEOF
4178 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4179 do
4180   CXX="$ac_save_CXX $ac_arg"
4181   if ac_fn_cxx_try_compile "$LINENO"
4182 then :
4183   ac_cv_prog_cxx_cxx98=$ac_arg
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext conftest.beam
4186   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4187 done
4188 rm -f conftest.$ac_ext
4189 CXX=$ac_save_CXX
4190 fi
4191
4192 if test "x$ac_cv_prog_cxx_cxx98" = xno
4193 then :
4194   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 printf "%s\n" "unsupported" >&6; }
4196 else $as_nop
4197   if test "x$ac_cv_prog_cxx_cxx98" = x
4198 then :
4199   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4200 printf "%s\n" "none needed" >&6; }
4201 else $as_nop
4202   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4203 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4204      CXX="$CXX $ac_cv_prog_cxx_cxx98"
4205 fi
4206   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4207   ac_prog_cxx_stdcxx=cxx98
4208 fi
4209 fi
4210
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 DEPDIR="${am__leading_dot}deps"
4217
4218 ac_config_commands="$ac_config_commands depfiles"
4219
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4221 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4222 cat > confinc.mk << 'END'
4223 am__doit:
4224         @echo this is the am__doit target >confinc.out
4225 .PHONY: am__doit
4226 END
4227 am__include="#"
4228 am__quote=
4229 # BSD make does it like this.
4230 echo '.include "confinc.mk" # ignored' > confmf.BSD
4231 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4232 echo 'include confinc.mk # ignored' > confmf.GNU
4233 _am_result=no
4234 for s in GNU BSD; do
4235   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4236    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4237    ac_status=$?
4238    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239    (exit $ac_status); }
4240   case $?:`cat confinc.out 2>/dev/null` in #(
4241   '0:this is the am__doit target') :
4242     case $s in #(
4243   BSD) :
4244     am__include='.include' am__quote='"' ;; #(
4245   *) :
4246     am__include='include' am__quote='' ;;
4247 esac ;; #(
4248   *) :
4249      ;;
4250 esac
4251   if test "$am__include" != "#"; then
4252     _am_result="yes ($s style)"
4253     break
4254   fi
4255 done
4256 rm -f confinc.* confmf.*
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4258 printf "%s\n" "${_am_result}" >&6; }
4259
4260 # Check whether --enable-dependency-tracking was given.
4261 if test ${enable_dependency_tracking+y}
4262 then :
4263   enableval=$enable_dependency_tracking;
4264 fi
4265
4266 if test "x$enable_dependency_tracking" != xno; then
4267   am_depcomp="$ac_aux_dir/depcomp"
4268   AMDEPBACKSLASH='\'
4269   am__nodep='_no'
4270 fi
4271  if test "x$enable_dependency_tracking" != xno; then
4272   AMDEP_TRUE=
4273   AMDEP_FALSE='#'
4274 else
4275   AMDEP_TRUE='#'
4276   AMDEP_FALSE=
4277 fi
4278
4279
4280
4281 depcc="$CXX"  am_compiler_list=
4282
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4284 printf %s "checking dependency style of $depcc... " >&6; }
4285 if test ${am_cv_CXX_dependencies_compiler_type+y}
4286 then :
4287   printf %s "(cached) " >&6
4288 else $as_nop
4289   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4290   # We make a subdir and do the tests there.  Otherwise we can end up
4291   # making bogus files that we don't know about and never remove.  For
4292   # instance it was reported that on HP-UX the gcc test will end up
4293   # making a dummy file named 'D' -- because '-MD' means "put the output
4294   # in D".
4295   rm -rf conftest.dir
4296   mkdir conftest.dir
4297   # Copy depcomp to subdir because otherwise we won't find it if we're
4298   # using a relative directory.
4299   cp "$am_depcomp" conftest.dir
4300   cd conftest.dir
4301   # We will build objects and dependencies in a subdirectory because
4302   # it helps to detect inapplicable dependency modes.  For instance
4303   # both Tru64's cc and ICC support -MD to output dependencies as a
4304   # side effect of compilation, but ICC will put the dependencies in
4305   # the current directory while Tru64 will put them in the object
4306   # directory.
4307   mkdir sub
4308
4309   am_cv_CXX_dependencies_compiler_type=none
4310   if test "$am_compiler_list" = ""; then
4311      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4312   fi
4313   am__universal=false
4314   case " $depcc " in #(
4315      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4316      esac
4317
4318   for depmode in $am_compiler_list; do
4319     # Setup a source with many dependencies, because some compilers
4320     # like to wrap large dependency lists on column 80 (with \), and
4321     # we should not choose a depcomp mode which is confused by this.
4322     #
4323     # We need to recreate these files for each test, as the compiler may
4324     # overwrite some of them when testing with obscure command lines.
4325     # This happens at least with the AIX C compiler.
4326     : > sub/conftest.c
4327     for i in 1 2 3 4 5 6; do
4328       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4329       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4330       # Solaris 10 /bin/sh.
4331       echo '/* dummy */' > sub/conftst$i.h
4332     done
4333     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4334
4335     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4336     # mode.  It turns out that the SunPro C++ compiler does not properly
4337     # handle '-M -o', and we need to detect this.  Also, some Intel
4338     # versions had trouble with output in subdirs.
4339     am__obj=sub/conftest.${OBJEXT-o}
4340     am__minus_obj="-o $am__obj"
4341     case $depmode in
4342     gcc)
4343       # This depmode causes a compiler race in universal mode.
4344       test "$am__universal" = false || continue
4345       ;;
4346     nosideeffect)
4347       # After this tag, mechanisms are not by side-effect, so they'll
4348       # only be used when explicitly requested.
4349       if test "x$enable_dependency_tracking" = xyes; then
4350         continue
4351       else
4352         break
4353       fi
4354       ;;
4355     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4356       # This compiler won't grok '-c -o', but also, the minuso test has
4357       # not run yet.  These depmodes are late enough in the game, and
4358       # so weak that their functioning should not be impacted.
4359       am__obj=conftest.${OBJEXT-o}
4360       am__minus_obj=
4361       ;;
4362     none) break ;;
4363     esac
4364     if depmode=$depmode \
4365        source=sub/conftest.c object=$am__obj \
4366        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4367        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4368          >/dev/null 2>conftest.err &&
4369        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4370        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4371        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4372        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4373       # icc doesn't choke on unknown options, it will just issue warnings
4374       # or remarks (even with -Werror).  So we grep stderr for any message
4375       # that says an option was ignored or not supported.
4376       # When given -MP, icc 7.0 and 7.1 complain thusly:
4377       #   icc: Command line warning: ignoring option '-M'; no argument required
4378       # The diagnosis changed in icc 8.0:
4379       #   icc: Command line remark: option '-MP' not supported
4380       if (grep 'ignoring option' conftest.err ||
4381           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4382         am_cv_CXX_dependencies_compiler_type=$depmode
4383         break
4384       fi
4385     fi
4386   done
4387
4388   cd ..
4389   rm -rf conftest.dir
4390 else
4391   am_cv_CXX_dependencies_compiler_type=none
4392 fi
4393
4394 fi
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4396 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4397 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4398
4399  if
4400   test "x$enable_dependency_tracking" != xno \
4401   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4402   am__fastdepCXX_TRUE=
4403   am__fastdepCXX_FALSE='#'
4404 else
4405   am__fastdepCXX_TRUE='#'
4406   am__fastdepCXX_FALSE=
4407 fi
4408
4409
4410
4411     ax_cxx_compile_cxx11_required=true
4412   ac_ext=cpp
4413 ac_cpp='$CXXCPP $CPPFLAGS'
4414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4417   ac_success=no
4418   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4419 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
4420 if test ${ax_cv_cxx_compile_cxx11+y}
4421 then :
4422   printf %s "(cached) " >&6
4423 else $as_nop
4424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h.  */
4426
4427   template <typename T>
4428     struct check
4429     {
4430       static_assert(sizeof(int) <= sizeof(T), "not big enough");
4431     };
4432
4433     struct Base {
4434     virtual void f() {}
4435     };
4436     struct Child : public Base {
4437     virtual void f() override {}
4438     };
4439
4440     typedef check<check<bool>> right_angle_brackets;
4441
4442     int a;
4443     decltype(a) b;
4444
4445     typedef check<int> check_type;
4446     check_type c;
4447     check_type&& cr = static_cast<check_type&&>(c);
4448
4449     auto d = a;
4450     auto l = [](){};
4451
4452     // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
4453     // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
4454     namespace test_template_alias_sfinae {
4455         struct foo {};
4456
4457         template<typename T>
4458         using member = typename T::member_type;
4459
4460         template<typename T>
4461         void func(...) {}
4462
4463         template<typename T>
4464         void func(member<T>*) {}
4465
4466         void test();
4467
4468         void test() {
4469             func<foo>(0);
4470         }
4471     }
4472
4473 _ACEOF
4474 if ac_fn_cxx_try_compile "$LINENO"
4475 then :
4476   ax_cv_cxx_compile_cxx11=yes
4477 else $as_nop
4478   ax_cv_cxx_compile_cxx11=no
4479 fi
4480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4481 fi
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
4483 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
4484   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
4485     ac_success=yes
4486   fi
4487
4488
4489
4490     if test x$ac_success = xno; then
4491     for switch in -std=c++11 -std=c++0x; do
4492       cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
4493       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
4494 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
4495 if eval test \${$cachevar+y}
4496 then :
4497   printf %s "(cached) " >&6
4498 else $as_nop
4499   ac_save_CXXFLAGS="$CXXFLAGS"
4500          CXXFLAGS="$CXXFLAGS $switch"
4501          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h.  */
4503
4504   template <typename T>
4505     struct check
4506     {
4507       static_assert(sizeof(int) <= sizeof(T), "not big enough");
4508     };
4509
4510     struct Base {
4511     virtual void f() {}
4512     };
4513     struct Child : public Base {
4514     virtual void f() override {}
4515     };
4516
4517     typedef check<check<bool>> right_angle_brackets;
4518
4519     int a;
4520     decltype(a) b;
4521
4522     typedef check<int> check_type;
4523     check_type c;
4524     check_type&& cr = static_cast<check_type&&>(c);
4525
4526     auto d = a;
4527     auto l = [](){};
4528
4529     // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
4530     // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
4531     namespace test_template_alias_sfinae {
4532         struct foo {};
4533
4534         template<typename T>
4535         using member = typename T::member_type;
4536
4537         template<typename T>
4538         void func(...) {}
4539
4540         template<typename T>
4541         void func(member<T>*) {}
4542
4543         void test();
4544
4545         void test() {
4546             func<foo>(0);
4547         }
4548     }
4549
4550 _ACEOF
4551 if ac_fn_cxx_try_compile "$LINENO"
4552 then :
4553   eval $cachevar=yes
4554 else $as_nop
4555   eval $cachevar=no
4556 fi
4557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4558          CXXFLAGS="$ac_save_CXXFLAGS"
4559 fi
4560 eval ac_res=\$$cachevar
4561                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4562 printf "%s\n" "$ac_res" >&6; }
4563       if eval test x\$$cachevar = xyes; then
4564         CXXFLAGS="$CXXFLAGS $switch"
4565         ac_success=yes
4566         break
4567       fi
4568     done
4569   fi
4570   ac_ext=c
4571 ac_cpp='$CPP $CPPFLAGS'
4572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575
4576   if test x$ax_cxx_compile_cxx11_required = xtrue; then
4577     if test x$ac_success = xno; then
4578       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
4579     fi
4580   else
4581     if test x$ac_success = xno; then
4582       HAVE_CXX11=0
4583       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
4584 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
4585     else
4586       HAVE_CXX11=1
4587
4588 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
4589
4590     fi
4591
4592
4593   fi
4594
4595 case `pwd` in
4596   *\ * | *\     *)
4597     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4598 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4599 esac
4600
4601
4602
4603 macro_version='2.4.6'
4604 macro_revision='2.4.6'
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619 ltmain=$ac_aux_dir/ltmain.sh
4620
4621
4622
4623   # Make sure we can run config.sub.
4624 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4625   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4626
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4628 printf %s "checking build system type... " >&6; }
4629 if test ${ac_cv_build+y}
4630 then :
4631   printf %s "(cached) " >&6
4632 else $as_nop
4633   ac_build_alias=$build_alias
4634 test "x$ac_build_alias" = x &&
4635   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4636 test "x$ac_build_alias" = x &&
4637   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4638 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4639   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4640
4641 fi
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4643 printf "%s\n" "$ac_cv_build" >&6; }
4644 case $ac_cv_build in
4645 *-*-*) ;;
4646 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4647 esac
4648 build=$ac_cv_build
4649 ac_save_IFS=$IFS; IFS='-'
4650 set x $ac_cv_build
4651 shift
4652 build_cpu=$1
4653 build_vendor=$2
4654 shift; shift
4655 # Remember, the first character of IFS is used to create $*,
4656 # except with old shells:
4657 build_os=$*
4658 IFS=$ac_save_IFS
4659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4660
4661
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4663 printf %s "checking host system type... " >&6; }
4664 if test ${ac_cv_host+y}
4665 then :
4666   printf %s "(cached) " >&6
4667 else $as_nop
4668   if test "x$host_alias" = x; then
4669   ac_cv_host=$ac_cv_build
4670 else
4671   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4672     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4673 fi
4674
4675 fi
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4677 printf "%s\n" "$ac_cv_host" >&6; }
4678 case $ac_cv_host in
4679 *-*-*) ;;
4680 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4681 esac
4682 host=$ac_cv_host
4683 ac_save_IFS=$IFS; IFS='-'
4684 set x $ac_cv_host
4685 shift
4686 host_cpu=$1
4687 host_vendor=$2
4688 shift; shift
4689 # Remember, the first character of IFS is used to create $*,
4690 # except with old shells:
4691 host_os=$*
4692 IFS=$ac_save_IFS
4693 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4694
4695
4696 # Backslashify metacharacters that are still active within
4697 # double-quoted strings.
4698 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4699
4700 # Same as above, but do not quote variable references.
4701 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4702
4703 # Sed substitution to delay expansion of an escaped shell variable in a
4704 # double_quote_subst'ed string.
4705 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4706
4707 # Sed substitution to delay expansion of an escaped single quote.
4708 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4709
4710 # Sed substitution to avoid accidental globbing in evaled expressions
4711 no_glob_subst='s/\*/\\\*/g'
4712
4713 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4714 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4715 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4716
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4718 printf %s "checking how to print strings... " >&6; }
4719 # Test print first, because it will be a builtin if present.
4720 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4721    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4722   ECHO='print -r --'
4723 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4724   ECHO='printf %s\n'
4725 else
4726   # Use this function as a fallback that always works.
4727   func_fallback_echo ()
4728   {
4729     eval 'cat <<_LTECHO_EOF
4730 $1
4731 _LTECHO_EOF'
4732   }
4733   ECHO='func_fallback_echo'
4734 fi
4735
4736 # func_echo_all arg...
4737 # Invoke $ECHO with all args, space-separated.
4738 func_echo_all ()
4739 {
4740     $ECHO ""
4741 }
4742
4743 case $ECHO in
4744   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4745 printf "%s\n" "printf" >&6; } ;;
4746   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4747 printf "%s\n" "print -r" >&6; } ;;
4748   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4749 printf "%s\n" "cat" >&6; } ;;
4750 esac
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774 ac_ext=c
4775 ac_cpp='$CPP $CPPFLAGS'
4776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4779 if test -n "$ac_tool_prefix"; then
4780   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4781 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 printf %s "checking for $ac_word... " >&6; }
4784 if test ${ac_cv_prog_CC+y}
4785 then :
4786   printf %s "(cached) " >&6
4787 else $as_nop
4788   if test -n "$CC"; then
4789   ac_cv_prog_CC="$CC" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   case $as_dir in #(((
4796     '') as_dir=./ ;;
4797     */) ;;
4798     *) as_dir=$as_dir/ ;;
4799   esac
4800     for ac_exec_ext in '' $ac_executable_extensions; do
4801   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4802     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4803     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807   done
4808 IFS=$as_save_IFS
4809
4810 fi
4811 fi
4812 CC=$ac_cv_prog_CC
4813 if test -n "$CC"; then
4814   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4815 printf "%s\n" "$CC" >&6; }
4816 else
4817   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 printf "%s\n" "no" >&6; }
4819 fi
4820
4821
4822 fi
4823 if test -z "$ac_cv_prog_CC"; then
4824   ac_ct_CC=$CC
4825   # Extract the first word of "gcc", so it can be a program name with args.
4826 set dummy gcc; ac_word=$2
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 printf %s "checking for $ac_word... " >&6; }
4829 if test ${ac_cv_prog_ac_ct_CC+y}
4830 then :
4831   printf %s "(cached) " >&6
4832 else $as_nop
4833   if test -n "$ac_ct_CC"; then
4834   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839   IFS=$as_save_IFS
4840   case $as_dir in #(((
4841     '') as_dir=./ ;;
4842     */) ;;
4843     *) as_dir=$as_dir/ ;;
4844   esac
4845     for ac_exec_ext in '' $ac_executable_extensions; do
4846   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4847     ac_cv_prog_ac_ct_CC="gcc"
4848     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4849     break 2
4850   fi
4851 done
4852   done
4853 IFS=$as_save_IFS
4854
4855 fi
4856 fi
4857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4858 if test -n "$ac_ct_CC"; then
4859   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4860 printf "%s\n" "$ac_ct_CC" >&6; }
4861 else
4862   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 printf "%s\n" "no" >&6; }
4864 fi
4865
4866   if test "x$ac_ct_CC" = x; then
4867     CC=""
4868   else
4869     case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875     CC=$ac_ct_CC
4876   fi
4877 else
4878   CC="$ac_cv_prog_CC"
4879 fi
4880
4881 if test -z "$CC"; then
4882           if test -n "$ac_tool_prefix"; then
4883     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4884 set dummy ${ac_tool_prefix}cc; ac_word=$2
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 printf %s "checking for $ac_word... " >&6; }
4887 if test ${ac_cv_prog_CC+y}
4888 then :
4889   printf %s "(cached) " >&6
4890 else $as_nop
4891   if test -n "$CC"; then
4892   ac_cv_prog_CC="$CC" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897   IFS=$as_save_IFS
4898   case $as_dir in #(((
4899     '') as_dir=./ ;;
4900     */) ;;
4901     *) as_dir=$as_dir/ ;;
4902   esac
4903     for ac_exec_ext in '' $ac_executable_extensions; do
4904   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4905     ac_cv_prog_CC="${ac_tool_prefix}cc"
4906     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910   done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 CC=$ac_cv_prog_CC
4916 if test -n "$CC"; then
4917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4918 printf "%s\n" "$CC" >&6; }
4919 else
4920   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 printf "%s\n" "no" >&6; }
4922 fi
4923
4924
4925   fi
4926 fi
4927 if test -z "$CC"; then
4928   # Extract the first word of "cc", so it can be a program name with args.
4929 set dummy cc; ac_word=$2
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 printf %s "checking for $ac_word... " >&6; }
4932 if test ${ac_cv_prog_CC+y}
4933 then :
4934   printf %s "(cached) " >&6
4935 else $as_nop
4936   if test -n "$CC"; then
4937   ac_cv_prog_CC="$CC" # Let the user override the test.
4938 else
4939   ac_prog_rejected=no
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   case $as_dir in #(((
4945     '') as_dir=./ ;;
4946     */) ;;
4947     *) as_dir=$as_dir/ ;;
4948   esac
4949     for ac_exec_ext in '' $ac_executable_extensions; do
4950   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4951     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4952        ac_prog_rejected=yes
4953        continue
4954      fi
4955     ac_cv_prog_CC="cc"
4956     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4957     break 2
4958   fi
4959 done
4960   done
4961 IFS=$as_save_IFS
4962
4963 if test $ac_prog_rejected = yes; then
4964   # We found a bogon in the path, so make sure we never use it.
4965   set dummy $ac_cv_prog_CC
4966   shift
4967   if test $# != 0; then
4968     # We chose a different compiler from the bogus one.
4969     # However, it has the same basename, so the bogon will be chosen
4970     # first if we set CC to just the basename; use the full file name.
4971     shift
4972     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4973   fi
4974 fi
4975 fi
4976 fi
4977 CC=$ac_cv_prog_CC
4978 if test -n "$CC"; then
4979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4980 printf "%s\n" "$CC" >&6; }
4981 else
4982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 printf "%s\n" "no" >&6; }
4984 fi
4985
4986
4987 fi
4988 if test -z "$CC"; then
4989   if test -n "$ac_tool_prefix"; then
4990   for ac_prog in cl.exe
4991   do
4992     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 printf %s "checking for $ac_word... " >&6; }
4996 if test ${ac_cv_prog_CC+y}
4997 then :
4998   printf %s "(cached) " >&6
4999 else $as_nop
5000   if test -n "$CC"; then
5001   ac_cv_prog_CC="$CC" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006   IFS=$as_save_IFS
5007   case $as_dir in #(((
5008     '') as_dir=./ ;;
5009     */) ;;
5010     *) as_dir=$as_dir/ ;;
5011   esac
5012     for ac_exec_ext in '' $ac_executable_extensions; do
5013   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5014     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5015     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5016     break 2
5017   fi
5018 done
5019   done
5020 IFS=$as_save_IFS
5021
5022 fi
5023 fi
5024 CC=$ac_cv_prog_CC
5025 if test -n "$CC"; then
5026   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5027 printf "%s\n" "$CC" >&6; }
5028 else
5029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 printf "%s\n" "no" >&6; }
5031 fi
5032
5033
5034     test -n "$CC" && break
5035   done
5036 fi
5037 if test -z "$CC"; then
5038   ac_ct_CC=$CC
5039   for ac_prog in cl.exe
5040 do
5041   # Extract the first word of "$ac_prog", so it can be a program name with args.
5042 set dummy $ac_prog; ac_word=$2
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 printf %s "checking for $ac_word... " >&6; }
5045 if test ${ac_cv_prog_ac_ct_CC+y}
5046 then :
5047   printf %s "(cached) " >&6
5048 else $as_nop
5049   if test -n "$ac_ct_CC"; then
5050   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055   IFS=$as_save_IFS
5056   case $as_dir in #(((
5057     '') as_dir=./ ;;
5058     */) ;;
5059     *) as_dir=$as_dir/ ;;
5060   esac
5061     for ac_exec_ext in '' $ac_executable_extensions; do
5062   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5063     ac_cv_prog_ac_ct_CC="$ac_prog"
5064     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068   done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5074 if test -n "$ac_ct_CC"; then
5075   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5076 printf "%s\n" "$ac_ct_CC" >&6; }
5077 else
5078   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 printf "%s\n" "no" >&6; }
5080 fi
5081
5082
5083   test -n "$ac_ct_CC" && break
5084 done
5085
5086   if test "x$ac_ct_CC" = x; then
5087     CC=""
5088   else
5089     case $cross_compiling:$ac_tool_warned in
5090 yes:)
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095     CC=$ac_ct_CC
5096   fi
5097 fi
5098
5099 fi
5100 if test -z "$CC"; then
5101   if test -n "$ac_tool_prefix"; then
5102   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5103 set dummy ${ac_tool_prefix}clang; ac_word=$2
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 printf %s "checking for $ac_word... " >&6; }
5106 if test ${ac_cv_prog_CC+y}
5107 then :
5108   printf %s "(cached) " >&6
5109 else $as_nop
5110   if test -n "$CC"; then
5111   ac_cv_prog_CC="$CC" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116   IFS=$as_save_IFS
5117   case $as_dir in #(((
5118     '') as_dir=./ ;;
5119     */) ;;
5120     *) as_dir=$as_dir/ ;;
5121   esac
5122     for ac_exec_ext in '' $ac_executable_extensions; do
5123   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5124     ac_cv_prog_CC="${ac_tool_prefix}clang"
5125     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5126     break 2
5127   fi
5128 done
5129   done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 CC=$ac_cv_prog_CC
5135 if test -n "$CC"; then
5136   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5137 printf "%s\n" "$CC" >&6; }
5138 else
5139   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 printf "%s\n" "no" >&6; }
5141 fi
5142
5143
5144 fi
5145 if test -z "$ac_cv_prog_CC"; then
5146   ac_ct_CC=$CC
5147   # Extract the first word of "clang", so it can be a program name with args.
5148 set dummy clang; ac_word=$2
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 printf %s "checking for $ac_word... " >&6; }
5151 if test ${ac_cv_prog_ac_ct_CC+y}
5152 then :
5153   printf %s "(cached) " >&6
5154 else $as_nop
5155   if test -n "$ac_ct_CC"; then
5156   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161   IFS=$as_save_IFS
5162   case $as_dir in #(((
5163     '') as_dir=./ ;;
5164     */) ;;
5165     *) as_dir=$as_dir/ ;;
5166   esac
5167     for ac_exec_ext in '' $ac_executable_extensions; do
5168   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5169     ac_cv_prog_ac_ct_CC="clang"
5170     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174   done
5175 IFS=$as_save_IFS
5176
5177 fi
5178 fi
5179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5180 if test -n "$ac_ct_CC"; then
5181   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5182 printf "%s\n" "$ac_ct_CC" >&6; }
5183 else
5184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 printf "%s\n" "no" >&6; }
5186 fi
5187
5188   if test "x$ac_ct_CC" = x; then
5189     CC=""
5190   else
5191     case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197     CC=$ac_ct_CC
5198   fi
5199 else
5200   CC="$ac_cv_prog_CC"
5201 fi
5202
5203 fi
5204
5205
5206 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5207 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5208 as_fn_error $? "no acceptable C compiler found in \$PATH
5209 See \`config.log' for more details" "$LINENO" 5; }
5210
5211 # Provide some information about the compiler.
5212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5213 set X $ac_compile
5214 ac_compiler=$2
5215 for ac_option in --version -v -V -qversion -version; do
5216   { { ac_try="$ac_compiler $ac_option >&5"
5217 case "(($ac_try" in
5218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219   *) ac_try_echo=$ac_try;;
5220 esac
5221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5222 printf "%s\n" "$ac_try_echo"; } >&5
5223   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5224   ac_status=$?
5225   if test -s conftest.err; then
5226     sed '10a\
5227 ... rest of stderr output deleted ...
5228          10q' conftest.err >conftest.er1
5229     cat conftest.er1 >&5
5230   fi
5231   rm -f conftest.er1 conftest.err
5232   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233   test $ac_status = 0; }
5234 done
5235
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5237 printf %s "checking whether the compiler supports GNU C... " >&6; }
5238 if test ${ac_cv_c_compiler_gnu+y}
5239 then :
5240   printf %s "(cached) " >&6
5241 else $as_nop
5242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h.  */
5244
5245 int
5246 main (void)
5247 {
5248 #ifndef __GNUC__
5249        choke me
5250 #endif
5251
5252   ;
5253   return 0;
5254 }
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"
5257 then :
5258   ac_compiler_gnu=yes
5259 else $as_nop
5260   ac_compiler_gnu=no
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5264
5265 fi
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5267 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5269
5270 if test $ac_compiler_gnu = yes; then
5271   GCC=yes
5272 else
5273   GCC=
5274 fi
5275 ac_test_CFLAGS=${CFLAGS+y}
5276 ac_save_CFLAGS=$CFLAGS
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5278 printf %s "checking whether $CC accepts -g... " >&6; }
5279 if test ${ac_cv_prog_cc_g+y}
5280 then :
5281   printf %s "(cached) " >&6
5282 else $as_nop
5283   ac_save_c_werror_flag=$ac_c_werror_flag
5284    ac_c_werror_flag=yes
5285    ac_cv_prog_cc_g=no
5286    CFLAGS="-g"
5287    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h.  */
5289
5290 int
5291 main (void)
5292 {
5293
5294   ;
5295   return 0;
5296 }
5297 _ACEOF
5298 if ac_fn_c_try_compile "$LINENO"
5299 then :
5300   ac_cv_prog_cc_g=yes
5301 else $as_nop
5302   CFLAGS=""
5303       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h.  */
5305
5306 int
5307 main (void)
5308 {
5309
5310   ;
5311   return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_c_try_compile "$LINENO"
5315 then :
5316
5317 else $as_nop
5318   ac_c_werror_flag=$ac_save_c_werror_flag
5319          CFLAGS="-g"
5320          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h.  */
5322
5323 int
5324 main (void)
5325 {
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_c_try_compile "$LINENO"
5332 then :
5333   ac_cv_prog_cc_g=yes
5334 fi
5335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5336 fi
5337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5338 fi
5339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5340    ac_c_werror_flag=$ac_save_c_werror_flag
5341 fi
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5343 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5344 if test $ac_test_CFLAGS; then
5345   CFLAGS=$ac_save_CFLAGS
5346 elif test $ac_cv_prog_cc_g = yes; then
5347   if test "$GCC" = yes; then
5348     CFLAGS="-g -O2"
5349   else
5350     CFLAGS="-g"
5351   fi
5352 else
5353   if test "$GCC" = yes; then
5354     CFLAGS="-O2"
5355   else
5356     CFLAGS=
5357   fi
5358 fi
5359 ac_prog_cc_stdc=no
5360 if test x$ac_prog_cc_stdc = xno
5361 then :
5362   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5363 printf %s "checking for $CC option to enable C11 features... " >&6; }
5364 if test ${ac_cv_prog_cc_c11+y}
5365 then :
5366   printf %s "(cached) " >&6
5367 else $as_nop
5368   ac_cv_prog_cc_c11=no
5369 ac_save_CC=$CC
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h.  */
5372 $ac_c_conftest_c11_program
5373 _ACEOF
5374 for ac_arg in '' -std=gnu11
5375 do
5376   CC="$ac_save_CC $ac_arg"
5377   if ac_fn_c_try_compile "$LINENO"
5378 then :
5379   ac_cv_prog_cc_c11=$ac_arg
5380 fi
5381 rm -f core conftest.err conftest.$ac_objext conftest.beam
5382   test "x$ac_cv_prog_cc_c11" != "xno" && break
5383 done
5384 rm -f conftest.$ac_ext
5385 CC=$ac_save_CC
5386 fi
5387
5388 if test "x$ac_cv_prog_cc_c11" = xno
5389 then :
5390   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5391 printf "%s\n" "unsupported" >&6; }
5392 else $as_nop
5393   if test "x$ac_cv_prog_cc_c11" = x
5394 then :
5395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5396 printf "%s\n" "none needed" >&6; }
5397 else $as_nop
5398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5399 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5400      CC="$CC $ac_cv_prog_cc_c11"
5401 fi
5402   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5403   ac_prog_cc_stdc=c11
5404 fi
5405 fi
5406 if test x$ac_prog_cc_stdc = xno
5407 then :
5408   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5409 printf %s "checking for $CC option to enable C99 features... " >&6; }
5410 if test ${ac_cv_prog_cc_c99+y}
5411 then :
5412   printf %s "(cached) " >&6
5413 else $as_nop
5414   ac_cv_prog_cc_c99=no
5415 ac_save_CC=$CC
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h.  */
5418 $ac_c_conftest_c99_program
5419 _ACEOF
5420 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5421 do
5422   CC="$ac_save_CC $ac_arg"
5423   if ac_fn_c_try_compile "$LINENO"
5424 then :
5425   ac_cv_prog_cc_c99=$ac_arg
5426 fi
5427 rm -f core conftest.err conftest.$ac_objext conftest.beam
5428   test "x$ac_cv_prog_cc_c99" != "xno" && break
5429 done
5430 rm -f conftest.$ac_ext
5431 CC=$ac_save_CC
5432 fi
5433
5434 if test "x$ac_cv_prog_cc_c99" = xno
5435 then :
5436   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5437 printf "%s\n" "unsupported" >&6; }
5438 else $as_nop
5439   if test "x$ac_cv_prog_cc_c99" = x
5440 then :
5441   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5442 printf "%s\n" "none needed" >&6; }
5443 else $as_nop
5444   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5445 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5446      CC="$CC $ac_cv_prog_cc_c99"
5447 fi
5448   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5449   ac_prog_cc_stdc=c99
5450 fi
5451 fi
5452 if test x$ac_prog_cc_stdc = xno
5453 then :
5454   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5455 printf %s "checking for $CC option to enable C89 features... " >&6; }
5456 if test ${ac_cv_prog_cc_c89+y}
5457 then :
5458   printf %s "(cached) " >&6
5459 else $as_nop
5460   ac_cv_prog_cc_c89=no
5461 ac_save_CC=$CC
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h.  */
5464 $ac_c_conftest_c89_program
5465 _ACEOF
5466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5467 do
5468   CC="$ac_save_CC $ac_arg"
5469   if ac_fn_c_try_compile "$LINENO"
5470 then :
5471   ac_cv_prog_cc_c89=$ac_arg
5472 fi
5473 rm -f core conftest.err conftest.$ac_objext conftest.beam
5474   test "x$ac_cv_prog_cc_c89" != "xno" && break
5475 done
5476 rm -f conftest.$ac_ext
5477 CC=$ac_save_CC
5478 fi
5479
5480 if test "x$ac_cv_prog_cc_c89" = xno
5481 then :
5482   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5483 printf "%s\n" "unsupported" >&6; }
5484 else $as_nop
5485   if test "x$ac_cv_prog_cc_c89" = x
5486 then :
5487   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5488 printf "%s\n" "none needed" >&6; }
5489 else $as_nop
5490   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5491 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5492      CC="$CC $ac_cv_prog_cc_c89"
5493 fi
5494   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5495   ac_prog_cc_stdc=c89
5496 fi
5497 fi
5498
5499 ac_ext=c
5500 ac_cpp='$CPP $CPPFLAGS'
5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5504
5505
5506   ac_ext=c
5507 ac_cpp='$CPP $CPPFLAGS'
5508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5512 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5513 if test ${am_cv_prog_cc_c_o+y}
5514 then :
5515   printf %s "(cached) " >&6
5516 else $as_nop
5517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h.  */
5519
5520 int
5521 main (void)
5522 {
5523
5524   ;
5525   return 0;
5526 }
5527 _ACEOF
5528   # Make sure it works both with $CC and with simple cc.
5529   # Following AC_PROG_CC_C_O, we do the test twice because some
5530   # compilers refuse to overwrite an existing .o file with -o,
5531   # though they will create one.
5532   am_cv_prog_cc_c_o=yes
5533   for am_i in 1 2; do
5534     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5535    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5536    ac_status=$?
5537    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538    (exit $ac_status); } \
5539          && test -f conftest2.$ac_objext; then
5540       : OK
5541     else
5542       am_cv_prog_cc_c_o=no
5543       break
5544     fi
5545   done
5546   rm -f core conftest*
5547   unset am_i
5548 fi
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5550 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5551 if test "$am_cv_prog_cc_c_o" != yes; then
5552    # Losing compiler, so override with the script.
5553    # FIXME: It is wrong to rewrite CC.
5554    # But if we don't then we get into trouble of one sort or another.
5555    # A longer-term fix would be to have automake use am__CC in this case,
5556    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5557    CC="$am_aux_dir/compile $CC"
5558 fi
5559 ac_ext=c
5560 ac_cpp='$CPP $CPPFLAGS'
5561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564
5565
5566 depcc="$CC"   am_compiler_list=
5567
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5569 printf %s "checking dependency style of $depcc... " >&6; }
5570 if test ${am_cv_CC_dependencies_compiler_type+y}
5571 then :
5572   printf %s "(cached) " >&6
5573 else $as_nop
5574   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5575   # We make a subdir and do the tests there.  Otherwise we can end up
5576   # making bogus files that we don't know about and never remove.  For
5577   # instance it was reported that on HP-UX the gcc test will end up
5578   # making a dummy file named 'D' -- because '-MD' means "put the output
5579   # in D".
5580   rm -rf conftest.dir
5581   mkdir conftest.dir
5582   # Copy depcomp to subdir because otherwise we won't find it if we're
5583   # using a relative directory.
5584   cp "$am_depcomp" conftest.dir
5585   cd conftest.dir
5586   # We will build objects and dependencies in a subdirectory because
5587   # it helps to detect inapplicable dependency modes.  For instance
5588   # both Tru64's cc and ICC support -MD to output dependencies as a
5589   # side effect of compilation, but ICC will put the dependencies in
5590   # the current directory while Tru64 will put them in the object
5591   # directory.
5592   mkdir sub
5593
5594   am_cv_CC_dependencies_compiler_type=none
5595   if test "$am_compiler_list" = ""; then
5596      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5597   fi
5598   am__universal=false
5599   case " $depcc " in #(
5600      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5601      esac
5602
5603   for depmode in $am_compiler_list; do
5604     # Setup a source with many dependencies, because some compilers
5605     # like to wrap large dependency lists on column 80 (with \), and
5606     # we should not choose a depcomp mode which is confused by this.
5607     #
5608     # We need to recreate these files for each test, as the compiler may
5609     # overwrite some of them when testing with obscure command lines.
5610     # This happens at least with the AIX C compiler.
5611     : > sub/conftest.c
5612     for i in 1 2 3 4 5 6; do
5613       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5614       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5615       # Solaris 10 /bin/sh.
5616       echo '/* dummy */' > sub/conftst$i.h
5617     done
5618     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5619
5620     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5621     # mode.  It turns out that the SunPro C++ compiler does not properly
5622     # handle '-M -o', and we need to detect this.  Also, some Intel
5623     # versions had trouble with output in subdirs.
5624     am__obj=sub/conftest.${OBJEXT-o}
5625     am__minus_obj="-o $am__obj"
5626     case $depmode in
5627     gcc)
5628       # This depmode causes a compiler race in universal mode.
5629       test "$am__universal" = false || continue
5630       ;;
5631     nosideeffect)
5632       # After this tag, mechanisms are not by side-effect, so they'll
5633       # only be used when explicitly requested.
5634       if test "x$enable_dependency_tracking" = xyes; then
5635         continue
5636       else
5637         break
5638       fi
5639       ;;
5640     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5641       # This compiler won't grok '-c -o', but also, the minuso test has
5642       # not run yet.  These depmodes are late enough in the game, and
5643       # so weak that their functioning should not be impacted.
5644       am__obj=conftest.${OBJEXT-o}
5645       am__minus_obj=
5646       ;;
5647     none) break ;;
5648     esac
5649     if depmode=$depmode \
5650        source=sub/conftest.c object=$am__obj \
5651        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5652        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5653          >/dev/null 2>conftest.err &&
5654        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5655        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5656        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5657        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5658       # icc doesn't choke on unknown options, it will just issue warnings
5659       # or remarks (even with -Werror).  So we grep stderr for any message
5660       # that says an option was ignored or not supported.
5661       # When given -MP, icc 7.0 and 7.1 complain thusly:
5662       #   icc: Command line warning: ignoring option '-M'; no argument required
5663       # The diagnosis changed in icc 8.0:
5664       #   icc: Command line remark: option '-MP' not supported
5665       if (grep 'ignoring option' conftest.err ||
5666           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5667         am_cv_CC_dependencies_compiler_type=$depmode
5668         break
5669       fi
5670     fi
5671   done
5672
5673   cd ..
5674   rm -rf conftest.dir
5675 else
5676   am_cv_CC_dependencies_compiler_type=none
5677 fi
5678
5679 fi
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5681 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5683
5684  if
5685   test "x$enable_dependency_tracking" != xno \
5686   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5687   am__fastdepCC_TRUE=
5688   am__fastdepCC_FALSE='#'
5689 else
5690   am__fastdepCC_TRUE='#'
5691   am__fastdepCC_FALSE=
5692 fi
5693
5694
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5696 printf %s "checking for a sed that does not truncate output... " >&6; }
5697 if test ${ac_cv_path_SED+y}
5698 then :
5699   printf %s "(cached) " >&6
5700 else $as_nop
5701             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5702      for ac_i in 1 2 3 4 5 6 7; do
5703        ac_script="$ac_script$as_nl$ac_script"
5704      done
5705      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5706      { ac_script=; unset ac_script;}
5707      if test -z "$SED"; then
5708   ac_path_SED_found=false
5709   # Loop through the user's path and test for each of PROGNAME-LIST
5710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713   IFS=$as_save_IFS
5714   case $as_dir in #(((
5715     '') as_dir=./ ;;
5716     */) ;;
5717     *) as_dir=$as_dir/ ;;
5718   esac
5719     for ac_prog in sed gsed
5720    do
5721     for ac_exec_ext in '' $ac_executable_extensions; do
5722       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5723       as_fn_executable_p "$ac_path_SED" || continue
5724 # Check for GNU ac_path_SED and select it if it is found.
5725   # Check for GNU $ac_path_SED
5726 case `"$ac_path_SED" --version 2>&1` in
5727 *GNU*)
5728   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5729 *)
5730   ac_count=0
5731   printf %s 0123456789 >"conftest.in"
5732   while :
5733   do
5734     cat "conftest.in" "conftest.in" >"conftest.tmp"
5735     mv "conftest.tmp" "conftest.in"
5736     cp "conftest.in" "conftest.nl"
5737     printf "%s\n" '' >> "conftest.nl"
5738     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5739     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5740     as_fn_arith $ac_count + 1 && ac_count=$as_val
5741     if test $ac_count -gt ${ac_path_SED_max-0}; then
5742       # Best one so far, save it but keep looking for a better one
5743       ac_cv_path_SED="$ac_path_SED"
5744       ac_path_SED_max=$ac_count
5745     fi
5746     # 10*(2^10) chars as input seems more than enough
5747     test $ac_count -gt 10 && break
5748   done
5749   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5750 esac
5751
5752       $ac_path_SED_found && break 3
5753     done
5754   done
5755   done
5756 IFS=$as_save_IFS
5757   if test -z "$ac_cv_path_SED"; then
5758     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5759   fi
5760 else
5761   ac_cv_path_SED=$SED
5762 fi
5763
5764 fi
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5766 printf "%s\n" "$ac_cv_path_SED" >&6; }
5767  SED="$ac_cv_path_SED"
5768   rm -f conftest.sed
5769
5770 test -z "$SED" && SED=sed
5771 Xsed="$SED -e 1s/^X//"
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5784 printf %s "checking for grep that handles long lines and -e... " >&6; }
5785 if test ${ac_cv_path_GREP+y}
5786 then :
5787   printf %s "(cached) " >&6
5788 else $as_nop
5789   if test -z "$GREP"; then
5790   ac_path_GREP_found=false
5791   # Loop through the user's path and test for each of PROGNAME-LIST
5792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5794 do
5795   IFS=$as_save_IFS
5796   case $as_dir in #(((
5797     '') as_dir=./ ;;
5798     */) ;;
5799     *) as_dir=$as_dir/ ;;
5800   esac
5801     for ac_prog in grep ggrep
5802    do
5803     for ac_exec_ext in '' $ac_executable_extensions; do
5804       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5805       as_fn_executable_p "$ac_path_GREP" || continue
5806 # Check for GNU ac_path_GREP and select it if it is found.
5807   # Check for GNU $ac_path_GREP
5808 case `"$ac_path_GREP" --version 2>&1` in
5809 *GNU*)
5810   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5811 *)
5812   ac_count=0
5813   printf %s 0123456789 >"conftest.in"
5814   while :
5815   do
5816     cat "conftest.in" "conftest.in" >"conftest.tmp"
5817     mv "conftest.tmp" "conftest.in"
5818     cp "conftest.in" "conftest.nl"
5819     printf "%s\n" 'GREP' >> "conftest.nl"
5820     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5821     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5822     as_fn_arith $ac_count + 1 && ac_count=$as_val
5823     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5824       # Best one so far, save it but keep looking for a better one
5825       ac_cv_path_GREP="$ac_path_GREP"
5826       ac_path_GREP_max=$ac_count
5827     fi
5828     # 10*(2^10) chars as input seems more than enough
5829     test $ac_count -gt 10 && break
5830   done
5831   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5832 esac
5833
5834       $ac_path_GREP_found && break 3
5835     done
5836   done
5837   done
5838 IFS=$as_save_IFS
5839   if test -z "$ac_cv_path_GREP"; then
5840     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5841   fi
5842 else
5843   ac_cv_path_GREP=$GREP
5844 fi
5845
5846 fi
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5848 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5849  GREP="$ac_cv_path_GREP"
5850
5851
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5853 printf %s "checking for egrep... " >&6; }
5854 if test ${ac_cv_path_EGREP+y}
5855 then :
5856   printf %s "(cached) " >&6
5857 else $as_nop
5858   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5859    then ac_cv_path_EGREP="$GREP -E"
5860    else
5861      if test -z "$EGREP"; then
5862   ac_path_EGREP_found=false
5863   # Loop through the user's path and test for each of PROGNAME-LIST
5864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5866 do
5867   IFS=$as_save_IFS
5868   case $as_dir in #(((
5869     '') as_dir=./ ;;
5870     */) ;;
5871     *) as_dir=$as_dir/ ;;
5872   esac
5873     for ac_prog in egrep
5874    do
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5877       as_fn_executable_p "$ac_path_EGREP" || continue
5878 # Check for GNU ac_path_EGREP and select it if it is found.
5879   # Check for GNU $ac_path_EGREP
5880 case `"$ac_path_EGREP" --version 2>&1` in
5881 *GNU*)
5882   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5883 *)
5884   ac_count=0
5885   printf %s 0123456789 >"conftest.in"
5886   while :
5887   do
5888     cat "conftest.in" "conftest.in" >"conftest.tmp"
5889     mv "conftest.tmp" "conftest.in"
5890     cp "conftest.in" "conftest.nl"
5891     printf "%s\n" 'EGREP' >> "conftest.nl"
5892     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5893     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5894     as_fn_arith $ac_count + 1 && ac_count=$as_val
5895     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5896       # Best one so far, save it but keep looking for a better one
5897       ac_cv_path_EGREP="$ac_path_EGREP"
5898       ac_path_EGREP_max=$ac_count
5899     fi
5900     # 10*(2^10) chars as input seems more than enough
5901     test $ac_count -gt 10 && break
5902   done
5903   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5904 esac
5905
5906       $ac_path_EGREP_found && break 3
5907     done
5908   done
5909   done
5910 IFS=$as_save_IFS
5911   if test -z "$ac_cv_path_EGREP"; then
5912     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5913   fi
5914 else
5915   ac_cv_path_EGREP=$EGREP
5916 fi
5917
5918    fi
5919 fi
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5921 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5922  EGREP="$ac_cv_path_EGREP"
5923
5924
5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5926 printf %s "checking for fgrep... " >&6; }
5927 if test ${ac_cv_path_FGREP+y}
5928 then :
5929   printf %s "(cached) " >&6
5930 else $as_nop
5931   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5932    then ac_cv_path_FGREP="$GREP -F"
5933    else
5934      if test -z "$FGREP"; then
5935   ac_path_FGREP_found=false
5936   # Loop through the user's path and test for each of PROGNAME-LIST
5937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5939 do
5940   IFS=$as_save_IFS
5941   case $as_dir in #(((
5942     '') as_dir=./ ;;
5943     */) ;;
5944     *) as_dir=$as_dir/ ;;
5945   esac
5946     for ac_prog in fgrep
5947    do
5948     for ac_exec_ext in '' $ac_executable_extensions; do
5949       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5950       as_fn_executable_p "$ac_path_FGREP" || continue
5951 # Check for GNU ac_path_FGREP and select it if it is found.
5952   # Check for GNU $ac_path_FGREP
5953 case `"$ac_path_FGREP" --version 2>&1` in
5954 *GNU*)
5955   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5956 *)
5957   ac_count=0
5958   printf %s 0123456789 >"conftest.in"
5959   while :
5960   do
5961     cat "conftest.in" "conftest.in" >"conftest.tmp"
5962     mv "conftest.tmp" "conftest.in"
5963     cp "conftest.in" "conftest.nl"
5964     printf "%s\n" 'FGREP' >> "conftest.nl"
5965     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5966     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5967     as_fn_arith $ac_count + 1 && ac_count=$as_val
5968     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5969       # Best one so far, save it but keep looking for a better one
5970       ac_cv_path_FGREP="$ac_path_FGREP"
5971       ac_path_FGREP_max=$ac_count
5972     fi
5973     # 10*(2^10) chars as input seems more than enough
5974     test $ac_count -gt 10 && break
5975   done
5976   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5977 esac
5978
5979       $ac_path_FGREP_found && break 3
5980     done
5981   done
5982   done
5983 IFS=$as_save_IFS
5984   if test -z "$ac_cv_path_FGREP"; then
5985     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5986   fi
5987 else
5988   ac_cv_path_FGREP=$FGREP
5989 fi
5990
5991    fi
5992 fi
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5994 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5995  FGREP="$ac_cv_path_FGREP"
5996
5997
5998 test -z "$GREP" && GREP=grep
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018 # Check whether --with-gnu-ld was given.
6019 if test ${with_gnu_ld+y}
6020 then :
6021   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6022 else $as_nop
6023   with_gnu_ld=no
6024 fi
6025
6026 ac_prog=ld
6027 if test yes = "$GCC"; then
6028   # Check if gcc -print-prog-name=ld gives a path.
6029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6030 printf %s "checking for ld used by $CC... " >&6; }
6031   case $host in
6032   *-*-mingw*)
6033     # gcc leaves a trailing carriage return, which upsets mingw
6034     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6035   *)
6036     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6037   esac
6038   case $ac_prog in
6039     # Accept absolute paths.
6040     [\\/]* | ?:[\\/]*)
6041       re_direlt='/[^/][^/]*/\.\./'
6042       # Canonicalize the pathname of ld
6043       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6044       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6045         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6046       done
6047       test -z "$LD" && LD=$ac_prog
6048       ;;
6049   "")
6050     # If it fails, then pretend we aren't using GCC.
6051     ac_prog=ld
6052     ;;
6053   *)
6054     # If it is relative, then search for the first ld in PATH.
6055     with_gnu_ld=unknown
6056     ;;
6057   esac
6058 elif test yes = "$with_gnu_ld"; then
6059   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6060 printf %s "checking for GNU ld... " >&6; }
6061 else
6062   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6063 printf %s "checking for non-GNU ld... " >&6; }
6064 fi
6065 if test ${lt_cv_path_LD+y}
6066 then :
6067   printf %s "(cached) " >&6
6068 else $as_nop
6069   if test -z "$LD"; then
6070   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6071   for ac_dir in $PATH; do
6072     IFS=$lt_save_ifs
6073     test -z "$ac_dir" && ac_dir=.
6074     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6075       lt_cv_path_LD=$ac_dir/$ac_prog
6076       # Check to see if the program is GNU ld.  I'd rather use --version,
6077       # but apparently some variants of GNU ld only accept -v.
6078       # Break only if it was the GNU/non-GNU ld that we prefer.
6079       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6080       *GNU* | *'with BFD'*)
6081         test no != "$with_gnu_ld" && break
6082         ;;
6083       *)
6084         test yes != "$with_gnu_ld" && break
6085         ;;
6086       esac
6087     fi
6088   done
6089   IFS=$lt_save_ifs
6090 else
6091   lt_cv_path_LD=$LD # Let the user override the test with a path.
6092 fi
6093 fi
6094
6095 LD=$lt_cv_path_LD
6096 if test -n "$LD"; then
6097   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6098 printf "%s\n" "$LD" >&6; }
6099 else
6100   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 printf "%s\n" "no" >&6; }
6102 fi
6103 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6105 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6106 if test ${lt_cv_prog_gnu_ld+y}
6107 then :
6108   printf %s "(cached) " >&6
6109 else $as_nop
6110   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6111 case `$LD -v 2>&1 </dev/null` in
6112 *GNU* | *'with BFD'*)
6113   lt_cv_prog_gnu_ld=yes
6114   ;;
6115 *)
6116   lt_cv_prog_gnu_ld=no
6117   ;;
6118 esac
6119 fi
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6121 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6122 with_gnu_ld=$lt_cv_prog_gnu_ld
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6133 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6134 if test ${lt_cv_path_NM+y}
6135 then :
6136   printf %s "(cached) " >&6
6137 else $as_nop
6138   if test -n "$NM"; then
6139   # Let the user override the test.
6140   lt_cv_path_NM=$NM
6141 else
6142   lt_nm_to_check=${ac_tool_prefix}nm
6143   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6144     lt_nm_to_check="$lt_nm_to_check nm"
6145   fi
6146   for lt_tmp_nm in $lt_nm_to_check; do
6147     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6148     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6149       IFS=$lt_save_ifs
6150       test -z "$ac_dir" && ac_dir=.
6151       tmp_nm=$ac_dir/$lt_tmp_nm
6152       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6153         # Check to see if the nm accepts a BSD-compat flag.
6154         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6155         #   nm: unknown option "B" ignored
6156         # Tru64's nm complains that /dev/null is an invalid object file
6157         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6158         case $build_os in
6159         mingw*) lt_bad_file=conftest.nm/nofile ;;
6160         *) lt_bad_file=/dev/null ;;
6161         esac
6162         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6163         *$lt_bad_file* | *'Invalid file or object type'*)
6164           lt_cv_path_NM="$tmp_nm -B"
6165           break 2
6166           ;;
6167         *)
6168           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6169           */dev/null*)
6170             lt_cv_path_NM="$tmp_nm -p"
6171             break 2
6172             ;;
6173           *)
6174             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6175             continue # so that we can try to find one that supports BSD flags
6176             ;;
6177           esac
6178           ;;
6179         esac
6180       fi
6181     done
6182     IFS=$lt_save_ifs
6183   done
6184   : ${lt_cv_path_NM=no}
6185 fi
6186 fi
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6188 printf "%s\n" "$lt_cv_path_NM" >&6; }
6189 if test no != "$lt_cv_path_NM"; then
6190   NM=$lt_cv_path_NM
6191 else
6192   # Didn't find any BSD compatible name lister, look for dumpbin.
6193   if test -n "$DUMPBIN"; then :
6194     # Let the user override the test.
6195   else
6196     if test -n "$ac_tool_prefix"; then
6197   for ac_prog in dumpbin "link -dump"
6198   do
6199     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 printf %s "checking for $ac_word... " >&6; }
6203 if test ${ac_cv_prog_DUMPBIN+y}
6204 then :
6205   printf %s "(cached) " >&6
6206 else $as_nop
6207   if test -n "$DUMPBIN"; then
6208   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   case $as_dir in #(((
6215     '') as_dir=./ ;;
6216     */) ;;
6217     *) as_dir=$as_dir/ ;;
6218   esac
6219     for ac_exec_ext in '' $ac_executable_extensions; do
6220   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6221     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6222     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6223     break 2
6224   fi
6225 done
6226   done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 DUMPBIN=$ac_cv_prog_DUMPBIN
6232 if test -n "$DUMPBIN"; then
6233   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6234 printf "%s\n" "$DUMPBIN" >&6; }
6235 else
6236   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 printf "%s\n" "no" >&6; }
6238 fi
6239
6240
6241     test -n "$DUMPBIN" && break
6242   done
6243 fi
6244 if test -z "$DUMPBIN"; then
6245   ac_ct_DUMPBIN=$DUMPBIN
6246   for ac_prog in dumpbin "link -dump"
6247 do
6248   # Extract the first word of "$ac_prog", so it can be a program name with args.
6249 set dummy $ac_prog; ac_word=$2
6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 printf %s "checking for $ac_word... " >&6; }
6252 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6253 then :
6254   printf %s "(cached) " >&6
6255 else $as_nop
6256   if test -n "$ac_ct_DUMPBIN"; then
6257   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   case $as_dir in #(((
6264     '') as_dir=./ ;;
6265     */) ;;
6266     *) as_dir=$as_dir/ ;;
6267   esac
6268     for ac_exec_ext in '' $ac_executable_extensions; do
6269   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6270     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6271     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6272     break 2
6273   fi
6274 done
6275   done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6281 if test -n "$ac_ct_DUMPBIN"; then
6282   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6283 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6284 else
6285   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 printf "%s\n" "no" >&6; }
6287 fi
6288
6289
6290   test -n "$ac_ct_DUMPBIN" && break
6291 done
6292
6293   if test "x$ac_ct_DUMPBIN" = x; then
6294     DUMPBIN=":"
6295   else
6296     case $cross_compiling:$ac_tool_warned in
6297 yes:)
6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300 ac_tool_warned=yes ;;
6301 esac
6302     DUMPBIN=$ac_ct_DUMPBIN
6303   fi
6304 fi
6305
6306     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6307     *COFF*)
6308       DUMPBIN="$DUMPBIN -symbols -headers"
6309       ;;
6310     *)
6311       DUMPBIN=:
6312       ;;
6313     esac
6314   fi
6315
6316   if test : != "$DUMPBIN"; then
6317     NM=$DUMPBIN
6318   fi
6319 fi
6320 test -z "$NM" && NM=nm
6321
6322
6323
6324
6325
6326
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6328 printf %s "checking the name lister ($NM) interface... " >&6; }
6329 if test ${lt_cv_nm_interface+y}
6330 then :
6331   printf %s "(cached) " >&6
6332 else $as_nop
6333   lt_cv_nm_interface="BSD nm"
6334   echo "int some_variable = 0;" > conftest.$ac_ext
6335   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6336   (eval "$ac_compile" 2>conftest.err)
6337   cat conftest.err >&5
6338   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6339   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6340   cat conftest.err >&5
6341   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6342   cat conftest.out >&5
6343   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6344     lt_cv_nm_interface="MS dumpbin"
6345   fi
6346   rm -f conftest*
6347 fi
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6349 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6350
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6352 printf %s "checking whether ln -s works... " >&6; }
6353 LN_S=$as_ln_s
6354 if test "$LN_S" = "ln -s"; then
6355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6356 printf "%s\n" "yes" >&6; }
6357 else
6358   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6359 printf "%s\n" "no, using $LN_S" >&6; }
6360 fi
6361
6362 # find the maximum length of command line arguments
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6364 printf %s "checking the maximum length of command line arguments... " >&6; }
6365 if test ${lt_cv_sys_max_cmd_len+y}
6366 then :
6367   printf %s "(cached) " >&6
6368 else $as_nop
6369     i=0
6370   teststring=ABCD
6371
6372   case $build_os in
6373   msdosdjgpp*)
6374     # On DJGPP, this test can blow up pretty badly due to problems in libc
6375     # (any single argument exceeding 2000 bytes causes a buffer overrun
6376     # during glob expansion).  Even if it were fixed, the result of this
6377     # check would be larger than it should be.
6378     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6379     ;;
6380
6381   gnu*)
6382     # Under GNU Hurd, this test is not required because there is
6383     # no limit to the length of command line arguments.
6384     # Libtool will interpret -1 as no limit whatsoever
6385     lt_cv_sys_max_cmd_len=-1;
6386     ;;
6387
6388   cygwin* | mingw* | cegcc*)
6389     # On Win9x/ME, this test blows up -- it succeeds, but takes
6390     # about 5 minutes as the teststring grows exponentially.
6391     # Worse, since 9x/ME are not pre-emptively multitasking,
6392     # you end up with a "frozen" computer, even though with patience
6393     # the test eventually succeeds (with a max line length of 256k).
6394     # Instead, let's just punt: use the minimum linelength reported by
6395     # all of the supported platforms: 8192 (on NT/2K/XP).
6396     lt_cv_sys_max_cmd_len=8192;
6397     ;;
6398
6399   mint*)
6400     # On MiNT this can take a long time and run out of memory.
6401     lt_cv_sys_max_cmd_len=8192;
6402     ;;
6403
6404   amigaos*)
6405     # On AmigaOS with pdksh, this test takes hours, literally.
6406     # So we just punt and use a minimum line length of 8192.
6407     lt_cv_sys_max_cmd_len=8192;
6408     ;;
6409
6410   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6411     # This has been around since 386BSD, at least.  Likely further.
6412     if test -x /sbin/sysctl; then
6413       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6414     elif test -x /usr/sbin/sysctl; then
6415       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6416     else
6417       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6418     fi
6419     # And add a safety zone
6420     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6421     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6422     ;;
6423
6424   interix*)
6425     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6426     lt_cv_sys_max_cmd_len=196608
6427     ;;
6428
6429   os2*)
6430     # The test takes a long time on OS/2.
6431     lt_cv_sys_max_cmd_len=8192
6432     ;;
6433
6434   osf*)
6435     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6436     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6437     # nice to cause kernel panics so lets avoid the loop below.
6438     # First set a reasonable default.
6439     lt_cv_sys_max_cmd_len=16384
6440     #
6441     if test -x /sbin/sysconfig; then
6442       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6443         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6444       esac
6445     fi
6446     ;;
6447   sco3.2v5*)
6448     lt_cv_sys_max_cmd_len=102400
6449     ;;
6450   sysv5* | sco5v6* | sysv4.2uw2*)
6451     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6452     if test -n "$kargmax"; then
6453       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6454     else
6455       lt_cv_sys_max_cmd_len=32768
6456     fi
6457     ;;
6458   *)
6459     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6460     if test -n "$lt_cv_sys_max_cmd_len" && \
6461        test undefined != "$lt_cv_sys_max_cmd_len"; then
6462       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6463       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6464     else
6465       # Make teststring a little bigger before we do anything with it.
6466       # a 1K string should be a reasonable start.
6467       for i in 1 2 3 4 5 6 7 8; do
6468         teststring=$teststring$teststring
6469       done
6470       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6471       # If test is not a shell built-in, we'll probably end up computing a
6472       # maximum length that is only half of the actual maximum length, but
6473       # we can't tell.
6474       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6475                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6476               test 17 != "$i" # 1/2 MB should be enough
6477       do
6478         i=`expr $i + 1`
6479         teststring=$teststring$teststring
6480       done
6481       # Only check the string length outside the loop.
6482       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6483       teststring=
6484       # Add a significant safety factor because C++ compilers can tack on
6485       # massive amounts of additional arguments before passing them to the
6486       # linker.  It appears as though 1/2 is a usable value.
6487       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6488     fi
6489     ;;
6490   esac
6491
6492 fi
6493
6494 if test -n "$lt_cv_sys_max_cmd_len"; then
6495   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6496 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6497 else
6498   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6499 printf "%s\n" "none" >&6; }
6500 fi
6501 max_cmd_len=$lt_cv_sys_max_cmd_len
6502
6503
6504
6505
6506
6507
6508 : ${CP="cp -f"}
6509 : ${MV="mv -f"}
6510 : ${RM="rm -f"}
6511
6512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6513   lt_unset=unset
6514 else
6515   lt_unset=false
6516 fi
6517
6518
6519
6520
6521
6522 # test EBCDIC or ASCII
6523 case `echo X|tr X '\101'` in
6524  A) # ASCII based system
6525     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6526   lt_SP2NL='tr \040 \012'
6527   lt_NL2SP='tr \015\012 \040\040'
6528   ;;
6529  *) # EBCDIC based system
6530   lt_SP2NL='tr \100 \n'
6531   lt_NL2SP='tr \r\n \100\100'
6532   ;;
6533 esac
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6544 printf %s "checking how to convert $build file names to $host format... " >&6; }
6545 if test ${lt_cv_to_host_file_cmd+y}
6546 then :
6547   printf %s "(cached) " >&6
6548 else $as_nop
6549   case $host in
6550   *-*-mingw* )
6551     case $build in
6552       *-*-mingw* ) # actually msys
6553         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6554         ;;
6555       *-*-cygwin* )
6556         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6557         ;;
6558       * ) # otherwise, assume *nix
6559         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6560         ;;
6561     esac
6562     ;;
6563   *-*-cygwin* )
6564     case $build in
6565       *-*-mingw* ) # actually msys
6566         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6567         ;;
6568       *-*-cygwin* )
6569         lt_cv_to_host_file_cmd=func_convert_file_noop
6570         ;;
6571       * ) # otherwise, assume *nix
6572         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6573         ;;
6574     esac
6575     ;;
6576   * ) # unhandled hosts (and "normal" native builds)
6577     lt_cv_to_host_file_cmd=func_convert_file_noop
6578     ;;
6579 esac
6580
6581 fi
6582
6583 to_host_file_cmd=$lt_cv_to_host_file_cmd
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6585 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6586
6587
6588
6589
6590
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6592 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6593 if test ${lt_cv_to_tool_file_cmd+y}
6594 then :
6595   printf %s "(cached) " >&6
6596 else $as_nop
6597   #assume ordinary cross tools, or native build.
6598 lt_cv_to_tool_file_cmd=func_convert_file_noop
6599 case $host in
6600   *-*-mingw* )
6601     case $build in
6602       *-*-mingw* ) # actually msys
6603         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6604         ;;
6605     esac
6606     ;;
6607 esac
6608
6609 fi
6610
6611 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6613 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6614
6615
6616
6617
6618
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6620 printf %s "checking for $LD option to reload object files... " >&6; }
6621 if test ${lt_cv_ld_reload_flag+y}
6622 then :
6623   printf %s "(cached) " >&6
6624 else $as_nop
6625   lt_cv_ld_reload_flag='-r'
6626 fi
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6628 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6629 reload_flag=$lt_cv_ld_reload_flag
6630 case $reload_flag in
6631 "" | " "*) ;;
6632 *) reload_flag=" $reload_flag" ;;
6633 esac
6634 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6635 case $host_os in
6636   cygwin* | mingw* | pw32* | cegcc*)
6637     if test yes != "$GCC"; then
6638       reload_cmds=false
6639     fi
6640     ;;
6641   darwin*)
6642     if test yes = "$GCC"; then
6643       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6644     else
6645       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6646     fi
6647     ;;
6648 esac
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658 if test -n "$ac_tool_prefix"; then
6659   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 printf %s "checking for $ac_word... " >&6; }
6663 if test ${ac_cv_prog_OBJDUMP+y}
6664 then :
6665   printf %s "(cached) " >&6
6666 else $as_nop
6667   if test -n "$OBJDUMP"; then
6668   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   case $as_dir in #(((
6675     '') as_dir=./ ;;
6676     */) ;;
6677     *) as_dir=$as_dir/ ;;
6678   esac
6679     for ac_exec_ext in '' $ac_executable_extensions; do
6680   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6681     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6682     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686   done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 OBJDUMP=$ac_cv_prog_OBJDUMP
6692 if test -n "$OBJDUMP"; then
6693   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6694 printf "%s\n" "$OBJDUMP" >&6; }
6695 else
6696   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 printf "%s\n" "no" >&6; }
6698 fi
6699
6700
6701 fi
6702 if test -z "$ac_cv_prog_OBJDUMP"; then
6703   ac_ct_OBJDUMP=$OBJDUMP
6704   # Extract the first word of "objdump", so it can be a program name with args.
6705 set dummy objdump; ac_word=$2
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 printf %s "checking for $ac_word... " >&6; }
6708 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6709 then :
6710   printf %s "(cached) " >&6
6711 else $as_nop
6712   if test -n "$ac_ct_OBJDUMP"; then
6713   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718   IFS=$as_save_IFS
6719   case $as_dir in #(((
6720     '') as_dir=./ ;;
6721     */) ;;
6722     *) as_dir=$as_dir/ ;;
6723   esac
6724     for ac_exec_ext in '' $ac_executable_extensions; do
6725   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6726     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6727     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731   done
6732 IFS=$as_save_IFS
6733
6734 fi
6735 fi
6736 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6737 if test -n "$ac_ct_OBJDUMP"; then
6738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6739 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6740 else
6741   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 printf "%s\n" "no" >&6; }
6743 fi
6744
6745   if test "x$ac_ct_OBJDUMP" = x; then
6746     OBJDUMP="false"
6747   else
6748     case $cross_compiling:$ac_tool_warned in
6749 yes:)
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6751 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6752 ac_tool_warned=yes ;;
6753 esac
6754     OBJDUMP=$ac_ct_OBJDUMP
6755   fi
6756 else
6757   OBJDUMP="$ac_cv_prog_OBJDUMP"
6758 fi
6759
6760 test -z "$OBJDUMP" && OBJDUMP=objdump
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6771 printf %s "checking how to recognize dependent libraries... " >&6; }
6772 if test ${lt_cv_deplibs_check_method+y}
6773 then :
6774   printf %s "(cached) " >&6
6775 else $as_nop
6776   lt_cv_file_magic_cmd='$MAGIC_CMD'
6777 lt_cv_file_magic_test_file=
6778 lt_cv_deplibs_check_method='unknown'
6779 # Need to set the preceding variable on all platforms that support
6780 # interlibrary dependencies.
6781 # 'none' -- dependencies not supported.
6782 # 'unknown' -- same as none, but documents that we really don't know.
6783 # 'pass_all' -- all dependencies passed with no checks.
6784 # 'test_compile' -- check by making test program.
6785 # 'file_magic [[regex]]' -- check by looking for files in library path
6786 # that responds to the $file_magic_cmd with a given extended regex.
6787 # If you have 'file' or equivalent on your system and you're not sure
6788 # whether 'pass_all' will *always* work, you probably want this one.
6789
6790 case $host_os in
6791 aix[4-9]*)
6792   lt_cv_deplibs_check_method=pass_all
6793   ;;
6794
6795 beos*)
6796   lt_cv_deplibs_check_method=pass_all
6797   ;;
6798
6799 bsdi[45]*)
6800   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6801   lt_cv_file_magic_cmd='/usr/bin/file -L'
6802   lt_cv_file_magic_test_file=/shlib/libc.so
6803   ;;
6804
6805 cygwin*)
6806   # func_win32_libid is a shell function defined in ltmain.sh
6807   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6808   lt_cv_file_magic_cmd='func_win32_libid'
6809   ;;
6810
6811 mingw* | pw32*)
6812   # Base MSYS/MinGW do not provide the 'file' command needed by
6813   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6814   # unless we find 'file', for example because we are cross-compiling.
6815   if ( file / ) >/dev/null 2>&1; then
6816     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6817     lt_cv_file_magic_cmd='func_win32_libid'
6818   else
6819     # Keep this pattern in sync with the one in func_win32_libid.
6820     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6821     lt_cv_file_magic_cmd='$OBJDUMP -f'
6822   fi
6823   ;;
6824
6825 cegcc*)
6826   # use the weaker test based on 'objdump'. See mingw*.
6827   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6828   lt_cv_file_magic_cmd='$OBJDUMP -f'
6829   ;;
6830
6831 darwin* | rhapsody*)
6832   lt_cv_deplibs_check_method=pass_all
6833   ;;
6834
6835 freebsd* | dragonfly*)
6836   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6837     case $host_cpu in
6838     i*86 )
6839       # Not sure whether the presence of OpenBSD here was a mistake.
6840       # Let's accept both of them until this is cleared up.
6841       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6842       lt_cv_file_magic_cmd=/usr/bin/file
6843       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6844       ;;
6845     esac
6846   else
6847     lt_cv_deplibs_check_method=pass_all
6848   fi
6849   ;;
6850
6851 haiku*)
6852   lt_cv_deplibs_check_method=pass_all
6853   ;;
6854
6855 hpux10.20* | hpux11*)
6856   lt_cv_file_magic_cmd=/usr/bin/file
6857   case $host_cpu in
6858   ia64*)
6859     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6860     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6861     ;;
6862   hppa*64*)
6863     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]'
6864     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6865     ;;
6866   *)
6867     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6868     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6869     ;;
6870   esac
6871   ;;
6872
6873 interix[3-9]*)
6874   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6875   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6876   ;;
6877
6878 irix5* | irix6* | nonstopux*)
6879   case $LD in
6880   *-32|*"-32 ") libmagic=32-bit;;
6881   *-n32|*"-n32 ") libmagic=N32;;
6882   *-64|*"-64 ") libmagic=64-bit;;
6883   *) libmagic=never-match;;
6884   esac
6885   lt_cv_deplibs_check_method=pass_all
6886   ;;
6887
6888 # This must be glibc/ELF.
6889 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6890   lt_cv_deplibs_check_method=pass_all
6891   ;;
6892
6893 netbsd* | netbsdelf*-gnu)
6894   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6895     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6896   else
6897     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6898   fi
6899   ;;
6900
6901 newos6*)
6902   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6903   lt_cv_file_magic_cmd=/usr/bin/file
6904   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6905   ;;
6906
6907 *nto* | *qnx*)
6908   lt_cv_deplibs_check_method=pass_all
6909   ;;
6910
6911 openbsd* | bitrig*)
6912   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6913     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6914   else
6915     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6916   fi
6917   ;;
6918
6919 osf3* | osf4* | osf5*)
6920   lt_cv_deplibs_check_method=pass_all
6921   ;;
6922
6923 rdos*)
6924   lt_cv_deplibs_check_method=pass_all
6925   ;;
6926
6927 solaris*)
6928   lt_cv_deplibs_check_method=pass_all
6929   ;;
6930
6931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6932   lt_cv_deplibs_check_method=pass_all
6933   ;;
6934
6935 sysv4 | sysv4.3*)
6936   case $host_vendor in
6937   motorola)
6938     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]'
6939     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6940     ;;
6941   ncr)
6942     lt_cv_deplibs_check_method=pass_all
6943     ;;
6944   sequent)
6945     lt_cv_file_magic_cmd='/bin/file'
6946     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6947     ;;
6948   sni)
6949     lt_cv_file_magic_cmd='/bin/file'
6950     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6951     lt_cv_file_magic_test_file=/lib/libc.so
6952     ;;
6953   siemens)
6954     lt_cv_deplibs_check_method=pass_all
6955     ;;
6956   pc)
6957     lt_cv_deplibs_check_method=pass_all
6958     ;;
6959   esac
6960   ;;
6961
6962 tpf*)
6963   lt_cv_deplibs_check_method=pass_all
6964   ;;
6965 os2*)
6966   lt_cv_deplibs_check_method=pass_all
6967   ;;
6968 esac
6969
6970 fi
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6972 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6973
6974 file_magic_glob=
6975 want_nocaseglob=no
6976 if test "$build" = "$host"; then
6977   case $host_os in
6978   mingw* | pw32*)
6979     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6980       want_nocaseglob=yes
6981     else
6982       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6983     fi
6984     ;;
6985   esac
6986 fi
6987
6988 file_magic_cmd=$lt_cv_file_magic_cmd
6989 deplibs_check_method=$lt_cv_deplibs_check_method
6990 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013 if test -n "$ac_tool_prefix"; then
7014   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 printf %s "checking for $ac_word... " >&6; }
7018 if test ${ac_cv_prog_DLLTOOL+y}
7019 then :
7020   printf %s "(cached) " >&6
7021 else $as_nop
7022   if test -n "$DLLTOOL"; then
7023   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028   IFS=$as_save_IFS
7029   case $as_dir in #(((
7030     '') as_dir=./ ;;
7031     */) ;;
7032     *) as_dir=$as_dir/ ;;
7033   esac
7034     for ac_exec_ext in '' $ac_executable_extensions; do
7035   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7036     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7037     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041   done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 DLLTOOL=$ac_cv_prog_DLLTOOL
7047 if test -n "$DLLTOOL"; then
7048   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7049 printf "%s\n" "$DLLTOOL" >&6; }
7050 else
7051   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 printf "%s\n" "no" >&6; }
7053 fi
7054
7055
7056 fi
7057 if test -z "$ac_cv_prog_DLLTOOL"; then
7058   ac_ct_DLLTOOL=$DLLTOOL
7059   # Extract the first word of "dlltool", so it can be a program name with args.
7060 set dummy dlltool; ac_word=$2
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 printf %s "checking for $ac_word... " >&6; }
7063 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7064 then :
7065   printf %s "(cached) " >&6
7066 else $as_nop
7067   if test -n "$ac_ct_DLLTOOL"; then
7068   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073   IFS=$as_save_IFS
7074   case $as_dir in #(((
7075     '') as_dir=./ ;;
7076     */) ;;
7077     *) as_dir=$as_dir/ ;;
7078   esac
7079     for ac_exec_ext in '' $ac_executable_extensions; do
7080   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7081     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7082     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7083     break 2
7084   fi
7085 done
7086   done
7087 IFS=$as_save_IFS
7088
7089 fi
7090 fi
7091 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7092 if test -n "$ac_ct_DLLTOOL"; then
7093   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7094 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7095 else
7096   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 printf "%s\n" "no" >&6; }
7098 fi
7099
7100   if test "x$ac_ct_DLLTOOL" = x; then
7101     DLLTOOL="false"
7102   else
7103     case $cross_compiling:$ac_tool_warned in
7104 yes:)
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107 ac_tool_warned=yes ;;
7108 esac
7109     DLLTOOL=$ac_ct_DLLTOOL
7110   fi
7111 else
7112   DLLTOOL="$ac_cv_prog_DLLTOOL"
7113 fi
7114
7115 test -z "$DLLTOOL" && DLLTOOL=dlltool
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7127 printf %s "checking how to associate runtime and link libraries... " >&6; }
7128 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7129 then :
7130   printf %s "(cached) " >&6
7131 else $as_nop
7132   lt_cv_sharedlib_from_linklib_cmd='unknown'
7133
7134 case $host_os in
7135 cygwin* | mingw* | pw32* | cegcc*)
7136   # two different shell functions defined in ltmain.sh;
7137   # decide which one to use based on capabilities of $DLLTOOL
7138   case `$DLLTOOL --help 2>&1` in
7139   *--identify-strict*)
7140     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7141     ;;
7142   *)
7143     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7144     ;;
7145   esac
7146   ;;
7147 *)
7148   # fallback: assume linklib IS sharedlib
7149   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7150   ;;
7151 esac
7152
7153 fi
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7155 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7156 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7157 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7158
7159
7160
7161
7162
7163
7164
7165
7166 if test -n "$ac_tool_prefix"; then
7167   for ac_prog in ar
7168   do
7169     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 printf %s "checking for $ac_word... " >&6; }
7173 if test ${ac_cv_prog_AR+y}
7174 then :
7175   printf %s "(cached) " >&6
7176 else $as_nop
7177   if test -n "$AR"; then
7178   ac_cv_prog_AR="$AR" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   case $as_dir in #(((
7185     '') as_dir=./ ;;
7186     */) ;;
7187     *) as_dir=$as_dir/ ;;
7188   esac
7189     for ac_exec_ext in '' $ac_executable_extensions; do
7190   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7191     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7192     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196   done
7197 IFS=$as_save_IFS
7198
7199 fi
7200 fi
7201 AR=$ac_cv_prog_AR
7202 if test -n "$AR"; then
7203   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7204 printf "%s\n" "$AR" >&6; }
7205 else
7206   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 printf "%s\n" "no" >&6; }
7208 fi
7209
7210
7211     test -n "$AR" && break
7212   done
7213 fi
7214 if test -z "$AR"; then
7215   ac_ct_AR=$AR
7216   for ac_prog in ar
7217 do
7218   # Extract the first word of "$ac_prog", so it can be a program name with args.
7219 set dummy $ac_prog; ac_word=$2
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 printf %s "checking for $ac_word... " >&6; }
7222 if test ${ac_cv_prog_ac_ct_AR+y}
7223 then :
7224   printf %s "(cached) " >&6
7225 else $as_nop
7226   if test -n "$ac_ct_AR"; then
7227   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   case $as_dir in #(((
7234     '') as_dir=./ ;;
7235     */) ;;
7236     *) as_dir=$as_dir/ ;;
7237   esac
7238     for ac_exec_ext in '' $ac_executable_extensions; do
7239   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7240     ac_cv_prog_ac_ct_AR="$ac_prog"
7241     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245   done
7246 IFS=$as_save_IFS
7247
7248 fi
7249 fi
7250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7251 if test -n "$ac_ct_AR"; then
7252   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7253 printf "%s\n" "$ac_ct_AR" >&6; }
7254 else
7255   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 printf "%s\n" "no" >&6; }
7257 fi
7258
7259
7260   test -n "$ac_ct_AR" && break
7261 done
7262
7263   if test "x$ac_ct_AR" = x; then
7264     AR="false"
7265   else
7266     case $cross_compiling:$ac_tool_warned in
7267 yes:)
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7271 esac
7272     AR=$ac_ct_AR
7273   fi
7274 fi
7275
7276 : ${AR=ar}
7277 : ${AR_FLAGS=cr}
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7290 printf %s "checking for archiver @FILE support... " >&6; }
7291 if test ${lt_cv_ar_at_file+y}
7292 then :
7293   printf %s "(cached) " >&6
7294 else $as_nop
7295   lt_cv_ar_at_file=no
7296    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h.  */
7298
7299 int
7300 main (void)
7301 {
7302
7303   ;
7304   return 0;
7305 }
7306 _ACEOF
7307 if ac_fn_c_try_compile "$LINENO"
7308 then :
7309   echo conftest.$ac_objext > conftest.lst
7310       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7311       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7312   (eval $lt_ar_try) 2>&5
7313   ac_status=$?
7314   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7315   test $ac_status = 0; }
7316       if test 0 -eq "$ac_status"; then
7317         # Ensure the archiver fails upon bogus file names.
7318         rm -f conftest.$ac_objext libconftest.a
7319         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7320   (eval $lt_ar_try) 2>&5
7321   ac_status=$?
7322   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7323   test $ac_status = 0; }
7324         if test 0 -ne "$ac_status"; then
7325           lt_cv_ar_at_file=@
7326         fi
7327       fi
7328       rm -f conftest.* libconftest.a
7329
7330 fi
7331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7332
7333 fi
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7335 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7336
7337 if test no = "$lt_cv_ar_at_file"; then
7338   archiver_list_spec=
7339 else
7340   archiver_list_spec=$lt_cv_ar_at_file
7341 fi
7342
7343
7344
7345
7346
7347
7348
7349 if test -n "$ac_tool_prefix"; then
7350   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}strip; ac_word=$2
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 printf %s "checking for $ac_word... " >&6; }
7354 if test ${ac_cv_prog_STRIP+y}
7355 then :
7356   printf %s "(cached) " >&6
7357 else $as_nop
7358   if test -n "$STRIP"; then
7359   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   case $as_dir in #(((
7366     '') as_dir=./ ;;
7367     */) ;;
7368     *) as_dir=$as_dir/ ;;
7369   esac
7370     for ac_exec_ext in '' $ac_executable_extensions; do
7371   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7372     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7373     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377   done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 STRIP=$ac_cv_prog_STRIP
7383 if test -n "$STRIP"; then
7384   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7385 printf "%s\n" "$STRIP" >&6; }
7386 else
7387   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 printf "%s\n" "no" >&6; }
7389 fi
7390
7391
7392 fi
7393 if test -z "$ac_cv_prog_STRIP"; then
7394   ac_ct_STRIP=$STRIP
7395   # Extract the first word of "strip", so it can be a program name with args.
7396 set dummy strip; ac_word=$2
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 printf %s "checking for $ac_word... " >&6; }
7399 if test ${ac_cv_prog_ac_ct_STRIP+y}
7400 then :
7401   printf %s "(cached) " >&6
7402 else $as_nop
7403   if test -n "$ac_ct_STRIP"; then
7404   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   case $as_dir in #(((
7411     '') as_dir=./ ;;
7412     */) ;;
7413     *) as_dir=$as_dir/ ;;
7414   esac
7415     for ac_exec_ext in '' $ac_executable_extensions; do
7416   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7417     ac_cv_prog_ac_ct_STRIP="strip"
7418     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7419     break 2
7420   fi
7421 done
7422   done
7423 IFS=$as_save_IFS
7424
7425 fi
7426 fi
7427 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7428 if test -n "$ac_ct_STRIP"; then
7429   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7430 printf "%s\n" "$ac_ct_STRIP" >&6; }
7431 else
7432   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 printf "%s\n" "no" >&6; }
7434 fi
7435
7436   if test "x$ac_ct_STRIP" = x; then
7437     STRIP=":"
7438   else
7439     case $cross_compiling:$ac_tool_warned in
7440 yes:)
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7442 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7443 ac_tool_warned=yes ;;
7444 esac
7445     STRIP=$ac_ct_STRIP
7446   fi
7447 else
7448   STRIP="$ac_cv_prog_STRIP"
7449 fi
7450
7451 test -z "$STRIP" && STRIP=:
7452
7453
7454
7455
7456
7457
7458 if test -n "$ac_tool_prefix"; then
7459   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 printf %s "checking for $ac_word... " >&6; }
7463 if test ${ac_cv_prog_RANLIB+y}
7464 then :
7465   printf %s "(cached) " >&6
7466 else $as_nop
7467   if test -n "$RANLIB"; then
7468   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473   IFS=$as_save_IFS
7474   case $as_dir in #(((
7475     '') as_dir=./ ;;
7476     */) ;;
7477     *) as_dir=$as_dir/ ;;
7478   esac
7479     for ac_exec_ext in '' $ac_executable_extensions; do
7480   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7481     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7482     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486   done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 RANLIB=$ac_cv_prog_RANLIB
7492 if test -n "$RANLIB"; then
7493   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7494 printf "%s\n" "$RANLIB" >&6; }
7495 else
7496   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 printf "%s\n" "no" >&6; }
7498 fi
7499
7500
7501 fi
7502 if test -z "$ac_cv_prog_RANLIB"; then
7503   ac_ct_RANLIB=$RANLIB
7504   # Extract the first word of "ranlib", so it can be a program name with args.
7505 set dummy ranlib; ac_word=$2
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 printf %s "checking for $ac_word... " >&6; }
7508 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7509 then :
7510   printf %s "(cached) " >&6
7511 else $as_nop
7512   if test -n "$ac_ct_RANLIB"; then
7513   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   case $as_dir in #(((
7520     '') as_dir=./ ;;
7521     */) ;;
7522     *) as_dir=$as_dir/ ;;
7523   esac
7524     for ac_exec_ext in '' $ac_executable_extensions; do
7525   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7526     ac_cv_prog_ac_ct_RANLIB="ranlib"
7527     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531   done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7537 if test -n "$ac_ct_RANLIB"; then
7538   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7539 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7540 else
7541   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 printf "%s\n" "no" >&6; }
7543 fi
7544
7545   if test "x$ac_ct_RANLIB" = x; then
7546     RANLIB=":"
7547   else
7548     case $cross_compiling:$ac_tool_warned in
7549 yes:)
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7551 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7552 ac_tool_warned=yes ;;
7553 esac
7554     RANLIB=$ac_ct_RANLIB
7555   fi
7556 else
7557   RANLIB="$ac_cv_prog_RANLIB"
7558 fi
7559
7560 test -z "$RANLIB" && RANLIB=:
7561
7562
7563
7564
7565
7566
7567 # Determine commands to create old-style static archives.
7568 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7569 old_postinstall_cmds='chmod 644 $oldlib'
7570 old_postuninstall_cmds=
7571
7572 if test -n "$RANLIB"; then
7573   case $host_os in
7574   bitrig* | openbsd*)
7575     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7576     ;;
7577   *)
7578     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7579     ;;
7580   esac
7581   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7582 fi
7583
7584 case $host_os in
7585   darwin*)
7586     lock_old_archive_extraction=yes ;;
7587   *)
7588     lock_old_archive_extraction=no ;;
7589 esac
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629 # If no C compiler was specified, use CC.
7630 LTCC=${LTCC-"$CC"}
7631
7632 # If no C compiler flags were specified, use CFLAGS.
7633 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7634
7635 # Allow CC to be a program name with arguments.
7636 compiler=$CC
7637
7638
7639 # Check for command to grab the raw symbol name followed by C symbol from nm.
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7641 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7642 if test ${lt_cv_sys_global_symbol_pipe+y}
7643 then :
7644   printf %s "(cached) " >&6
7645 else $as_nop
7646
7647 # These are sane defaults that work on at least a few old systems.
7648 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7649
7650 # Character class describing NM global symbol codes.
7651 symcode='[BCDEGRST]'
7652
7653 # Regexp to match symbols that can be accessed directly from C.
7654 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7655
7656 # Define system-specific variables.
7657 case $host_os in
7658 aix*)
7659   symcode='[BCDT]'
7660   ;;
7661 cygwin* | mingw* | pw32* | cegcc*)
7662   symcode='[ABCDGISTW]'
7663   ;;
7664 hpux*)
7665   if test ia64 = "$host_cpu"; then
7666     symcode='[ABCDEGRST]'
7667   fi
7668   ;;
7669 irix* | nonstopux*)
7670   symcode='[BCDEGRST]'
7671   ;;
7672 osf*)
7673   symcode='[BCDEGQRST]'
7674   ;;
7675 solaris*)
7676   symcode='[BDRT]'
7677   ;;
7678 sco3.2v5*)
7679   symcode='[DT]'
7680   ;;
7681 sysv4.2uw2*)
7682   symcode='[DT]'
7683   ;;
7684 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7685   symcode='[ABDT]'
7686   ;;
7687 sysv4)
7688   symcode='[DFNSTU]'
7689   ;;
7690 esac
7691
7692 # If we're using GNU nm, then use its standard symbol codes.
7693 case `$NM -V 2>&1` in
7694 *GNU* | *'with BFD'*)
7695   symcode='[ABCDGIRSTW]' ;;
7696 esac
7697
7698 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7699   # Gets list of data symbols to import.
7700   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7701   # Adjust the below global symbol transforms to fixup imported variables.
7702   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7703   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7704   lt_c_name_lib_hook="\
7705   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7706   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7707 else
7708   # Disable hooks by default.
7709   lt_cv_sys_global_symbol_to_import=
7710   lt_cdecl_hook=
7711   lt_c_name_hook=
7712   lt_c_name_lib_hook=
7713 fi
7714
7715 # Transform an extracted symbol line into a proper C declaration.
7716 # Some systems (esp. on ia64) link data and code symbols differently,
7717 # so use this general approach.
7718 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7719 $lt_cdecl_hook\
7720 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7721 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7722
7723 # Transform an extracted symbol line into symbol name and symbol address
7724 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7725 $lt_c_name_hook\
7726 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7727 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7728
7729 # Transform an extracted symbol line into symbol name with lib prefix and
7730 # symbol address.
7731 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7732 $lt_c_name_lib_hook\
7733 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7734 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7735 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7736
7737 # Handle CRLF in mingw tool chain
7738 opt_cr=
7739 case $build_os in
7740 mingw*)
7741   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7742   ;;
7743 esac
7744
7745 # Try without a prefix underscore, then with it.
7746 for ac_symprfx in "" "_"; do
7747
7748   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7749   symxfrm="\\1 $ac_symprfx\\2 \\2"
7750
7751   # Write the raw and C identifiers.
7752   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7753     # Fake it for dumpbin and say T for any non-static function,
7754     # D for any global variable and I for any imported variable.
7755     # Also find C++ and __fastcall symbols from MSVC++,
7756     # which start with @ or ?.
7757     lt_cv_sys_global_symbol_pipe="$AWK '"\
7758 "     {last_section=section; section=\$ 3};"\
7759 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7760 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7761 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7762 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7763 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7764 "     \$ 0!~/External *\|/{next};"\
7765 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7766 "     {if(hide[section]) next};"\
7767 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7768 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7769 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7770 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7771 "     ' prfx=^$ac_symprfx"
7772   else
7773     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7774   fi
7775   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7776
7777   # Check to see that the pipe works correctly.
7778   pipe_works=no
7779
7780   rm -f conftest*
7781   cat > conftest.$ac_ext <<_LT_EOF
7782 #ifdef __cplusplus
7783 extern "C" {
7784 #endif
7785 char nm_test_var;
7786 void nm_test_func(void);
7787 void nm_test_func(void){}
7788 #ifdef __cplusplus
7789 }
7790 #endif
7791 int main(){nm_test_var='a';nm_test_func();return(0);}
7792 _LT_EOF
7793
7794   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7795   (eval $ac_compile) 2>&5
7796   ac_status=$?
7797   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7798   test $ac_status = 0; }; then
7799     # Now try to grab the symbols.
7800     nlist=conftest.nm
7801     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7802     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7803       # Try sorting and uniquifying the output.
7804       if sort "$nlist" | uniq > "$nlist"T; then
7805         mv -f "$nlist"T "$nlist"
7806       else
7807         rm -f "$nlist"T
7808       fi
7809
7810       # Make sure that we snagged all the symbols we need.
7811       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7812         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7813           cat <<_LT_EOF > conftest.$ac_ext
7814 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7815 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7816 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7817    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7818 # define LT_DLSYM_CONST
7819 #elif defined __osf__
7820 /* This system does not cope well with relocations in const data.  */
7821 # define LT_DLSYM_CONST
7822 #else
7823 # define LT_DLSYM_CONST const
7824 #endif
7825
7826 #ifdef __cplusplus
7827 extern "C" {
7828 #endif
7829
7830 _LT_EOF
7831           # Now generate the symbol file.
7832           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7833
7834           cat <<_LT_EOF >> conftest.$ac_ext
7835
7836 /* The mapping between symbol names and symbols.  */
7837 LT_DLSYM_CONST struct {
7838   const char *name;
7839   void       *address;
7840 }
7841 lt__PROGRAM__LTX_preloaded_symbols[] =
7842 {
7843   { "@PROGRAM@", (void *) 0 },
7844 _LT_EOF
7845           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7846           cat <<\_LT_EOF >> conftest.$ac_ext
7847   {0, (void *) 0}
7848 };
7849
7850 /* This works around a problem in FreeBSD linker */
7851 #ifdef FREEBSD_WORKAROUND
7852 static const void *lt_preloaded_setup() {
7853   return lt__PROGRAM__LTX_preloaded_symbols;
7854 }
7855 #endif
7856
7857 #ifdef __cplusplus
7858 }
7859 #endif
7860 _LT_EOF
7861           # Now try linking the two files.
7862           mv conftest.$ac_objext conftstm.$ac_objext
7863           lt_globsym_save_LIBS=$LIBS
7864           lt_globsym_save_CFLAGS=$CFLAGS
7865           LIBS=conftstm.$ac_objext
7866           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7867           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7868   (eval $ac_link) 2>&5
7869   ac_status=$?
7870   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7872             pipe_works=yes
7873           fi
7874           LIBS=$lt_globsym_save_LIBS
7875           CFLAGS=$lt_globsym_save_CFLAGS
7876         else
7877           echo "cannot find nm_test_func in $nlist" >&5
7878         fi
7879       else
7880         echo "cannot find nm_test_var in $nlist" >&5
7881       fi
7882     else
7883       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7884     fi
7885   else
7886     echo "$progname: failed program was:" >&5
7887     cat conftest.$ac_ext >&5
7888   fi
7889   rm -rf conftest* conftst*
7890
7891   # Do not use the global_symbol_pipe unless it works.
7892   if test yes = "$pipe_works"; then
7893     break
7894   else
7895     lt_cv_sys_global_symbol_pipe=
7896   fi
7897 done
7898
7899 fi
7900
7901 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7902   lt_cv_sys_global_symbol_to_cdecl=
7903 fi
7904 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7905   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7906 printf "%s\n" "failed" >&6; }
7907 else
7908   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7909 printf "%s\n" "ok" >&6; }
7910 fi
7911
7912 # Response file support.
7913 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7914   nm_file_list_spec='@'
7915 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7916   nm_file_list_spec='@'
7917 fi
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7956 printf %s "checking for sysroot... " >&6; }
7957
7958 # Check whether --with-sysroot was given.
7959 if test ${with_sysroot+y}
7960 then :
7961   withval=$with_sysroot;
7962 else $as_nop
7963   with_sysroot=no
7964 fi
7965
7966
7967 lt_sysroot=
7968 case $with_sysroot in #(
7969  yes)
7970    if test yes = "$GCC"; then
7971      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7972    fi
7973    ;; #(
7974  /*)
7975    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7976    ;; #(
7977  no|'')
7978    ;; #(
7979  *)
7980    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7981 printf "%s\n" "$with_sysroot" >&6; }
7982    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7983    ;;
7984 esac
7985
7986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7987 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7988
7989
7990
7991
7992
7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7994 printf %s "checking for a working dd... " >&6; }
7995 if test ${ac_cv_path_lt_DD+y}
7996 then :
7997   printf %s "(cached) " >&6
7998 else $as_nop
7999   printf 0123456789abcdef0123456789abcdef >conftest.i
8000 cat conftest.i conftest.i >conftest2.i
8001 : ${lt_DD:=$DD}
8002 if test -z "$lt_DD"; then
8003   ac_path_lt_DD_found=false
8004   # Loop through the user's path and test for each of PROGNAME-LIST
8005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008   IFS=$as_save_IFS
8009   case $as_dir in #(((
8010     '') as_dir=./ ;;
8011     */) ;;
8012     *) as_dir=$as_dir/ ;;
8013   esac
8014     for ac_prog in dd
8015    do
8016     for ac_exec_ext in '' $ac_executable_extensions; do
8017       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8018       as_fn_executable_p "$ac_path_lt_DD" || continue
8019 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8020   cmp -s conftest.i conftest.out \
8021   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8022 fi
8023       $ac_path_lt_DD_found && break 3
8024     done
8025   done
8026   done
8027 IFS=$as_save_IFS
8028   if test -z "$ac_cv_path_lt_DD"; then
8029     :
8030   fi
8031 else
8032   ac_cv_path_lt_DD=$lt_DD
8033 fi
8034
8035 rm -f conftest.i conftest2.i conftest.out
8036 fi
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8038 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8039
8040
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8042 printf %s "checking how to truncate binary pipes... " >&6; }
8043 if test ${lt_cv_truncate_bin+y}
8044 then :
8045   printf %s "(cached) " >&6
8046 else $as_nop
8047   printf 0123456789abcdef0123456789abcdef >conftest.i
8048 cat conftest.i conftest.i >conftest2.i
8049 lt_cv_truncate_bin=
8050 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8051   cmp -s conftest.i conftest.out \
8052   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8053 fi
8054 rm -f conftest.i conftest2.i conftest.out
8055 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8056 fi
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8058 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8059
8060
8061
8062
8063
8064
8065
8066 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8067 func_cc_basename ()
8068 {
8069     for cc_temp in $*""; do
8070       case $cc_temp in
8071         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8072         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8073         \-*) ;;
8074         *) break;;
8075       esac
8076     done
8077     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8078 }
8079
8080 # Check whether --enable-libtool-lock was given.
8081 if test ${enable_libtool_lock+y}
8082 then :
8083   enableval=$enable_libtool_lock;
8084 fi
8085
8086 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8087
8088 # Some flags need to be propagated to the compiler or linker for good
8089 # libtool support.
8090 case $host in
8091 ia64-*-hpux*)
8092   # Find out what ABI is being produced by ac_compile, and set mode
8093   # options accordingly.
8094   echo 'int i;' > conftest.$ac_ext
8095   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8096   (eval $ac_compile) 2>&5
8097   ac_status=$?
8098   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8099   test $ac_status = 0; }; then
8100     case `/usr/bin/file conftest.$ac_objext` in
8101       *ELF-32*)
8102         HPUX_IA64_MODE=32
8103         ;;
8104       *ELF-64*)
8105         HPUX_IA64_MODE=64
8106         ;;
8107     esac
8108   fi
8109   rm -rf conftest*
8110   ;;
8111 *-*-irix6*)
8112   # Find out what ABI is being produced by ac_compile, and set linker
8113   # options accordingly.
8114   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8115   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8116   (eval $ac_compile) 2>&5
8117   ac_status=$?
8118   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8119   test $ac_status = 0; }; then
8120     if test yes = "$lt_cv_prog_gnu_ld"; then
8121       case `/usr/bin/file conftest.$ac_objext` in
8122         *32-bit*)
8123           LD="${LD-ld} -melf32bsmip"
8124           ;;
8125         *N32*)
8126           LD="${LD-ld} -melf32bmipn32"
8127           ;;
8128         *64-bit*)
8129           LD="${LD-ld} -melf64bmip"
8130         ;;
8131       esac
8132     else
8133       case `/usr/bin/file conftest.$ac_objext` in
8134         *32-bit*)
8135           LD="${LD-ld} -32"
8136           ;;
8137         *N32*)
8138           LD="${LD-ld} -n32"
8139           ;;
8140         *64-bit*)
8141           LD="${LD-ld} -64"
8142           ;;
8143       esac
8144     fi
8145   fi
8146   rm -rf conftest*
8147   ;;
8148
8149 mips64*-*linux*)
8150   # Find out what ABI is being produced by ac_compile, and set linker
8151   # options accordingly.
8152   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8153   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8154   (eval $ac_compile) 2>&5
8155   ac_status=$?
8156   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8157   test $ac_status = 0; }; then
8158     emul=elf
8159     case `/usr/bin/file conftest.$ac_objext` in
8160       *32-bit*)
8161         emul="${emul}32"
8162         ;;
8163       *64-bit*)
8164         emul="${emul}64"
8165         ;;
8166     esac
8167     case `/usr/bin/file conftest.$ac_objext` in
8168       *MSB*)
8169         emul="${emul}btsmip"
8170         ;;
8171       *LSB*)
8172         emul="${emul}ltsmip"
8173         ;;
8174     esac
8175     case `/usr/bin/file conftest.$ac_objext` in
8176       *N32*)
8177         emul="${emul}n32"
8178         ;;
8179     esac
8180     LD="${LD-ld} -m $emul"
8181   fi
8182   rm -rf conftest*
8183   ;;
8184
8185 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8186 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8187   # Find out what ABI is being produced by ac_compile, and set linker
8188   # options accordingly.  Note that the listed cases only cover the
8189   # situations where additional linker options are needed (such as when
8190   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8191   # vice versa); the common cases where no linker options are needed do
8192   # not appear in the list.
8193   echo 'int i;' > conftest.$ac_ext
8194   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8195   (eval $ac_compile) 2>&5
8196   ac_status=$?
8197   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8198   test $ac_status = 0; }; then
8199     case `/usr/bin/file conftest.o` in
8200       *32-bit*)
8201         case $host in
8202           x86_64-*kfreebsd*-gnu)
8203             LD="${LD-ld} -m elf_i386_fbsd"
8204             ;;
8205           x86_64-*linux*)
8206             case `/usr/bin/file conftest.o` in
8207               *x86-64*)
8208                 LD="${LD-ld} -m elf32_x86_64"
8209                 ;;
8210               *)
8211                 LD="${LD-ld} -m elf_i386"
8212                 ;;
8213             esac
8214             ;;
8215           powerpc64le-*linux*)
8216             LD="${LD-ld} -m elf32lppclinux"
8217             ;;
8218           powerpc64-*linux*)
8219             LD="${LD-ld} -m elf32ppclinux"
8220             ;;
8221           s390x-*linux*)
8222             LD="${LD-ld} -m elf_s390"
8223             ;;
8224           sparc64-*linux*)
8225             LD="${LD-ld} -m elf32_sparc"
8226             ;;
8227         esac
8228         ;;
8229       *64-bit*)
8230         case $host in
8231           x86_64-*kfreebsd*-gnu)
8232             LD="${LD-ld} -m elf_x86_64_fbsd"
8233             ;;
8234           x86_64-*linux*)
8235             LD="${LD-ld} -m elf_x86_64"
8236             ;;
8237           powerpcle-*linux*)
8238             LD="${LD-ld} -m elf64lppc"
8239             ;;
8240           powerpc-*linux*)
8241             LD="${LD-ld} -m elf64ppc"
8242             ;;
8243           s390*-*linux*|s390*-*tpf*)
8244             LD="${LD-ld} -m elf64_s390"
8245             ;;
8246           sparc*-*linux*)
8247             LD="${LD-ld} -m elf64_sparc"
8248             ;;
8249         esac
8250         ;;
8251     esac
8252   fi
8253   rm -rf conftest*
8254   ;;
8255
8256 *-*-sco3.2v5*)
8257   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8258   SAVE_CFLAGS=$CFLAGS
8259   CFLAGS="$CFLAGS -belf"
8260   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8261 printf %s "checking whether the C compiler needs -belf... " >&6; }
8262 if test ${lt_cv_cc_needs_belf+y}
8263 then :
8264   printf %s "(cached) " >&6
8265 else $as_nop
8266   ac_ext=c
8267 ac_cpp='$CPP $CPPFLAGS'
8268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8271
8272      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h.  */
8274
8275 int
8276 main (void)
8277 {
8278
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 if ac_fn_c_try_link "$LINENO"
8284 then :
8285   lt_cv_cc_needs_belf=yes
8286 else $as_nop
8287   lt_cv_cc_needs_belf=no
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8290     conftest$ac_exeext conftest.$ac_ext
8291      ac_ext=c
8292 ac_cpp='$CPP $CPPFLAGS'
8293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296
8297 fi
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8299 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8300   if test yes != "$lt_cv_cc_needs_belf"; then
8301     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8302     CFLAGS=$SAVE_CFLAGS
8303   fi
8304   ;;
8305 *-*solaris*)
8306   # Find out what ABI is being produced by ac_compile, and set linker
8307   # options accordingly.
8308   echo 'int i;' > conftest.$ac_ext
8309   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8310   (eval $ac_compile) 2>&5
8311   ac_status=$?
8312   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8313   test $ac_status = 0; }; then
8314     case `/usr/bin/file conftest.o` in
8315     *64-bit*)
8316       case $lt_cv_prog_gnu_ld in
8317       yes*)
8318         case $host in
8319         i?86-*-solaris*|x86_64-*-solaris*)
8320           LD="${LD-ld} -m elf_x86_64"
8321           ;;
8322         sparc*-*-solaris*)
8323           LD="${LD-ld} -m elf64_sparc"
8324           ;;
8325         esac
8326         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8327         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8328           LD=${LD-ld}_sol2
8329         fi
8330         ;;
8331       *)
8332         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8333           LD="${LD-ld} -64"
8334         fi
8335         ;;
8336       esac
8337       ;;
8338     esac
8339   fi
8340   rm -rf conftest*
8341   ;;
8342 esac
8343
8344 need_locks=$enable_libtool_lock
8345
8346 if test -n "$ac_tool_prefix"; then
8347   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8348 set dummy ${ac_tool_prefix}mt; ac_word=$2
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 printf %s "checking for $ac_word... " >&6; }
8351 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8352 then :
8353   printf %s "(cached) " >&6
8354 else $as_nop
8355   if test -n "$MANIFEST_TOOL"; then
8356   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361   IFS=$as_save_IFS
8362   case $as_dir in #(((
8363     '') as_dir=./ ;;
8364     */) ;;
8365     *) as_dir=$as_dir/ ;;
8366   esac
8367     for ac_exec_ext in '' $ac_executable_extensions; do
8368   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8369     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8370     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8371     break 2
8372   fi
8373 done
8374   done
8375 IFS=$as_save_IFS
8376
8377 fi
8378 fi
8379 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8380 if test -n "$MANIFEST_TOOL"; then
8381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8382 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8383 else
8384   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 printf "%s\n" "no" >&6; }
8386 fi
8387
8388
8389 fi
8390 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8391   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8392   # Extract the first word of "mt", so it can be a program name with args.
8393 set dummy mt; ac_word=$2
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 printf %s "checking for $ac_word... " >&6; }
8396 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8397 then :
8398   printf %s "(cached) " >&6
8399 else $as_nop
8400   if test -n "$ac_ct_MANIFEST_TOOL"; then
8401   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8402 else
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in $PATH
8405 do
8406   IFS=$as_save_IFS
8407   case $as_dir in #(((
8408     '') as_dir=./ ;;
8409     */) ;;
8410     *) as_dir=$as_dir/ ;;
8411   esac
8412     for ac_exec_ext in '' $ac_executable_extensions; do
8413   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8414     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8415     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419   done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8425 if test -n "$ac_ct_MANIFEST_TOOL"; then
8426   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8427 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8428 else
8429   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 printf "%s\n" "no" >&6; }
8431 fi
8432
8433   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8434     MANIFEST_TOOL=":"
8435   else
8436     case $cross_compiling:$ac_tool_warned in
8437 yes:)
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8439 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8440 ac_tool_warned=yes ;;
8441 esac
8442     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8443   fi
8444 else
8445   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8446 fi
8447
8448 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8450 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8451 if test ${lt_cv_path_mainfest_tool+y}
8452 then :
8453   printf %s "(cached) " >&6
8454 else $as_nop
8455   lt_cv_path_mainfest_tool=no
8456   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8457   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8458   cat conftest.err >&5
8459   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8460     lt_cv_path_mainfest_tool=yes
8461   fi
8462   rm -f conftest*
8463 fi
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8465 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8466 if test yes != "$lt_cv_path_mainfest_tool"; then
8467   MANIFEST_TOOL=:
8468 fi
8469
8470
8471
8472
8473
8474
8475   case $host_os in
8476     rhapsody* | darwin*)
8477     if test -n "$ac_tool_prefix"; then
8478   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8479 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 printf %s "checking for $ac_word... " >&6; }
8482 if test ${ac_cv_prog_DSYMUTIL+y}
8483 then :
8484   printf %s "(cached) " >&6
8485 else $as_nop
8486   if test -n "$DSYMUTIL"; then
8487   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492   IFS=$as_save_IFS
8493   case $as_dir in #(((
8494     '') as_dir=./ ;;
8495     */) ;;
8496     *) as_dir=$as_dir/ ;;
8497   esac
8498     for ac_exec_ext in '' $ac_executable_extensions; do
8499   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8500     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8501     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505   done
8506 IFS=$as_save_IFS
8507
8508 fi
8509 fi
8510 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8511 if test -n "$DSYMUTIL"; then
8512   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8513 printf "%s\n" "$DSYMUTIL" >&6; }
8514 else
8515   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 printf "%s\n" "no" >&6; }
8517 fi
8518
8519
8520 fi
8521 if test -z "$ac_cv_prog_DSYMUTIL"; then
8522   ac_ct_DSYMUTIL=$DSYMUTIL
8523   # Extract the first word of "dsymutil", so it can be a program name with args.
8524 set dummy dsymutil; ac_word=$2
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 printf %s "checking for $ac_word... " >&6; }
8527 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8528 then :
8529   printf %s "(cached) " >&6
8530 else $as_nop
8531   if test -n "$ac_ct_DSYMUTIL"; then
8532   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8533 else
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8536 do
8537   IFS=$as_save_IFS
8538   case $as_dir in #(((
8539     '') as_dir=./ ;;
8540     */) ;;
8541     *) as_dir=$as_dir/ ;;
8542   esac
8543     for ac_exec_ext in '' $ac_executable_extensions; do
8544   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8545     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8546     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8547     break 2
8548   fi
8549 done
8550   done
8551 IFS=$as_save_IFS
8552
8553 fi
8554 fi
8555 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8556 if test -n "$ac_ct_DSYMUTIL"; then
8557   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8558 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8559 else
8560   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 printf "%s\n" "no" >&6; }
8562 fi
8563
8564   if test "x$ac_ct_DSYMUTIL" = x; then
8565     DSYMUTIL=":"
8566   else
8567     case $cross_compiling:$ac_tool_warned in
8568 yes:)
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8570 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8571 ac_tool_warned=yes ;;
8572 esac
8573     DSYMUTIL=$ac_ct_DSYMUTIL
8574   fi
8575 else
8576   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8577 fi
8578
8579     if test -n "$ac_tool_prefix"; then
8580   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 printf %s "checking for $ac_word... " >&6; }
8584 if test ${ac_cv_prog_NMEDIT+y}
8585 then :
8586   printf %s "(cached) " >&6
8587 else $as_nop
8588   if test -n "$NMEDIT"; then
8589   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594   IFS=$as_save_IFS
8595   case $as_dir in #(((
8596     '') as_dir=./ ;;
8597     */) ;;
8598     *) as_dir=$as_dir/ ;;
8599   esac
8600     for ac_exec_ext in '' $ac_executable_extensions; do
8601   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8602     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8603     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8604     break 2
8605   fi
8606 done
8607   done
8608 IFS=$as_save_IFS
8609
8610 fi
8611 fi
8612 NMEDIT=$ac_cv_prog_NMEDIT
8613 if test -n "$NMEDIT"; then
8614   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8615 printf "%s\n" "$NMEDIT" >&6; }
8616 else
8617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 printf "%s\n" "no" >&6; }
8619 fi
8620
8621
8622 fi
8623 if test -z "$ac_cv_prog_NMEDIT"; then
8624   ac_ct_NMEDIT=$NMEDIT
8625   # Extract the first word of "nmedit", so it can be a program name with args.
8626 set dummy nmedit; ac_word=$2
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 printf %s "checking for $ac_word... " >&6; }
8629 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8630 then :
8631   printf %s "(cached) " >&6
8632 else $as_nop
8633   if test -n "$ac_ct_NMEDIT"; then
8634   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8635 else
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8638 do
8639   IFS=$as_save_IFS
8640   case $as_dir in #(((
8641     '') as_dir=./ ;;
8642     */) ;;
8643     *) as_dir=$as_dir/ ;;
8644   esac
8645     for ac_exec_ext in '' $ac_executable_extensions; do
8646   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8647     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8648     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8649     break 2
8650   fi
8651 done
8652   done
8653 IFS=$as_save_IFS
8654
8655 fi
8656 fi
8657 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8658 if test -n "$ac_ct_NMEDIT"; then
8659   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8660 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8661 else
8662   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 printf "%s\n" "no" >&6; }
8664 fi
8665
8666   if test "x$ac_ct_NMEDIT" = x; then
8667     NMEDIT=":"
8668   else
8669     case $cross_compiling:$ac_tool_warned in
8670 yes:)
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8674 esac
8675     NMEDIT=$ac_ct_NMEDIT
8676   fi
8677 else
8678   NMEDIT="$ac_cv_prog_NMEDIT"
8679 fi
8680
8681     if test -n "$ac_tool_prefix"; then
8682   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8683 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 printf %s "checking for $ac_word... " >&6; }
8686 if test ${ac_cv_prog_LIPO+y}
8687 then :
8688   printf %s "(cached) " >&6
8689 else $as_nop
8690   if test -n "$LIPO"; then
8691   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8692 else
8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 for as_dir in $PATH
8695 do
8696   IFS=$as_save_IFS
8697   case $as_dir in #(((
8698     '') as_dir=./ ;;
8699     */) ;;
8700     *) as_dir=$as_dir/ ;;
8701   esac
8702     for ac_exec_ext in '' $ac_executable_extensions; do
8703   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8704     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8705     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8706     break 2
8707   fi
8708 done
8709   done
8710 IFS=$as_save_IFS
8711
8712 fi
8713 fi
8714 LIPO=$ac_cv_prog_LIPO
8715 if test -n "$LIPO"; then
8716   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8717 printf "%s\n" "$LIPO" >&6; }
8718 else
8719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 printf "%s\n" "no" >&6; }
8721 fi
8722
8723
8724 fi
8725 if test -z "$ac_cv_prog_LIPO"; then
8726   ac_ct_LIPO=$LIPO
8727   # Extract the first word of "lipo", so it can be a program name with args.
8728 set dummy lipo; ac_word=$2
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 printf %s "checking for $ac_word... " >&6; }
8731 if test ${ac_cv_prog_ac_ct_LIPO+y}
8732 then :
8733   printf %s "(cached) " >&6
8734 else $as_nop
8735   if test -n "$ac_ct_LIPO"; then
8736   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8737 else
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8740 do
8741   IFS=$as_save_IFS
8742   case $as_dir in #(((
8743     '') as_dir=./ ;;
8744     */) ;;
8745     *) as_dir=$as_dir/ ;;
8746   esac
8747     for ac_exec_ext in '' $ac_executable_extensions; do
8748   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8749     ac_cv_prog_ac_ct_LIPO="lipo"
8750     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8751     break 2
8752   fi
8753 done
8754   done
8755 IFS=$as_save_IFS
8756
8757 fi
8758 fi
8759 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8760 if test -n "$ac_ct_LIPO"; then
8761   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8762 printf "%s\n" "$ac_ct_LIPO" >&6; }
8763 else
8764   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 printf "%s\n" "no" >&6; }
8766 fi
8767
8768   if test "x$ac_ct_LIPO" = x; then
8769     LIPO=":"
8770   else
8771     case $cross_compiling:$ac_tool_warned in
8772 yes:)
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8775 ac_tool_warned=yes ;;
8776 esac
8777     LIPO=$ac_ct_LIPO
8778   fi
8779 else
8780   LIPO="$ac_cv_prog_LIPO"
8781 fi
8782
8783     if test -n "$ac_tool_prefix"; then
8784   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8785 set dummy ${ac_tool_prefix}otool; ac_word=$2
8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 printf %s "checking for $ac_word... " >&6; }
8788 if test ${ac_cv_prog_OTOOL+y}
8789 then :
8790   printf %s "(cached) " >&6
8791 else $as_nop
8792   if test -n "$OTOOL"; then
8793   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8794 else
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 for as_dir in $PATH
8797 do
8798   IFS=$as_save_IFS
8799   case $as_dir in #(((
8800     '') as_dir=./ ;;
8801     */) ;;
8802     *) as_dir=$as_dir/ ;;
8803   esac
8804     for ac_exec_ext in '' $ac_executable_extensions; do
8805   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8806     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8807     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8808     break 2
8809   fi
8810 done
8811   done
8812 IFS=$as_save_IFS
8813
8814 fi
8815 fi
8816 OTOOL=$ac_cv_prog_OTOOL
8817 if test -n "$OTOOL"; then
8818   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8819 printf "%s\n" "$OTOOL" >&6; }
8820 else
8821   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 printf "%s\n" "no" >&6; }
8823 fi
8824
8825
8826 fi
8827 if test -z "$ac_cv_prog_OTOOL"; then
8828   ac_ct_OTOOL=$OTOOL
8829   # Extract the first word of "otool", so it can be a program name with args.
8830 set dummy otool; ac_word=$2
8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 printf %s "checking for $ac_word... " >&6; }
8833 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8834 then :
8835   printf %s "(cached) " >&6
8836 else $as_nop
8837   if test -n "$ac_ct_OTOOL"; then
8838   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8839 else
8840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841 for as_dir in $PATH
8842 do
8843   IFS=$as_save_IFS
8844   case $as_dir in #(((
8845     '') as_dir=./ ;;
8846     */) ;;
8847     *) as_dir=$as_dir/ ;;
8848   esac
8849     for ac_exec_ext in '' $ac_executable_extensions; do
8850   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8851     ac_cv_prog_ac_ct_OTOOL="otool"
8852     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8853     break 2
8854   fi
8855 done
8856   done
8857 IFS=$as_save_IFS
8858
8859 fi
8860 fi
8861 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8862 if test -n "$ac_ct_OTOOL"; then
8863   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8864 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8865 else
8866   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 printf "%s\n" "no" >&6; }
8868 fi
8869
8870   if test "x$ac_ct_OTOOL" = x; then
8871     OTOOL=":"
8872   else
8873     case $cross_compiling:$ac_tool_warned in
8874 yes:)
8875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8877 ac_tool_warned=yes ;;
8878 esac
8879     OTOOL=$ac_ct_OTOOL
8880   fi
8881 else
8882   OTOOL="$ac_cv_prog_OTOOL"
8883 fi
8884
8885     if test -n "$ac_tool_prefix"; then
8886   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8887 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8889 printf %s "checking for $ac_word... " >&6; }
8890 if test ${ac_cv_prog_OTOOL64+y}
8891 then :
8892   printf %s "(cached) " >&6
8893 else $as_nop
8894   if test -n "$OTOOL64"; then
8895   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8896 else
8897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 for as_dir in $PATH
8899 do
8900   IFS=$as_save_IFS
8901   case $as_dir in #(((
8902     '') as_dir=./ ;;
8903     */) ;;
8904     *) as_dir=$as_dir/ ;;
8905   esac
8906     for ac_exec_ext in '' $ac_executable_extensions; do
8907   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8908     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8909     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8910     break 2
8911   fi
8912 done
8913   done
8914 IFS=$as_save_IFS
8915
8916 fi
8917 fi
8918 OTOOL64=$ac_cv_prog_OTOOL64
8919 if test -n "$OTOOL64"; then
8920   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8921 printf "%s\n" "$OTOOL64" >&6; }
8922 else
8923   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924 printf "%s\n" "no" >&6; }
8925 fi
8926
8927
8928 fi
8929 if test -z "$ac_cv_prog_OTOOL64"; then
8930   ac_ct_OTOOL64=$OTOOL64
8931   # Extract the first word of "otool64", so it can be a program name with args.
8932 set dummy otool64; ac_word=$2
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 printf %s "checking for $ac_word... " >&6; }
8935 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8936 then :
8937   printf %s "(cached) " >&6
8938 else $as_nop
8939   if test -n "$ac_ct_OTOOL64"; then
8940   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8941 else
8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943 for as_dir in $PATH
8944 do
8945   IFS=$as_save_IFS
8946   case $as_dir in #(((
8947     '') as_dir=./ ;;
8948     */) ;;
8949     *) as_dir=$as_dir/ ;;
8950   esac
8951     for ac_exec_ext in '' $ac_executable_extensions; do
8952   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8953     ac_cv_prog_ac_ct_OTOOL64="otool64"
8954     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8955     break 2
8956   fi
8957 done
8958   done
8959 IFS=$as_save_IFS
8960
8961 fi
8962 fi
8963 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8964 if test -n "$ac_ct_OTOOL64"; then
8965   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8966 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8967 else
8968   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 printf "%s\n" "no" >&6; }
8970 fi
8971
8972   if test "x$ac_ct_OTOOL64" = x; then
8973     OTOOL64=":"
8974   else
8975     case $cross_compiling:$ac_tool_warned in
8976 yes:)
8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8978 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8979 ac_tool_warned=yes ;;
8980 esac
8981     OTOOL64=$ac_ct_OTOOL64
8982   fi
8983 else
8984   OTOOL64="$ac_cv_prog_OTOOL64"
8985 fi
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9014 printf %s "checking for -single_module linker flag... " >&6; }
9015 if test ${lt_cv_apple_cc_single_mod+y}
9016 then :
9017   printf %s "(cached) " >&6
9018 else $as_nop
9019   lt_cv_apple_cc_single_mod=no
9020       if test -z "$LT_MULTI_MODULE"; then
9021         # By default we will add the -single_module flag. You can override
9022         # by either setting the environment variable LT_MULTI_MODULE
9023         # non-empty at configure time, or by adding -multi_module to the
9024         # link flags.
9025         rm -rf libconftest.dylib*
9026         echo "int foo(void){return 1;}" > conftest.c
9027         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9028 -dynamiclib -Wl,-single_module conftest.c" >&5
9029         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9030           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9031         _lt_result=$?
9032         # If there is a non-empty error log, and "single_module"
9033         # appears in it, assume the flag caused a linker warning
9034         if test -s conftest.err && $GREP single_module conftest.err; then
9035           cat conftest.err >&5
9036         # Otherwise, if the output was created with a 0 exit code from
9037         # the compiler, it worked.
9038         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9039           lt_cv_apple_cc_single_mod=yes
9040         else
9041           cat conftest.err >&5
9042         fi
9043         rm -rf libconftest.dylib*
9044         rm -f conftest.*
9045       fi
9046 fi
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9048 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9049
9050     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9051 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9052 if test ${lt_cv_ld_exported_symbols_list+y}
9053 then :
9054   printf %s "(cached) " >&6
9055 else $as_nop
9056   lt_cv_ld_exported_symbols_list=no
9057       save_LDFLAGS=$LDFLAGS
9058       echo "_main" > conftest.sym
9059       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9060       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h.  */
9062
9063 int
9064 main (void)
9065 {
9066
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 if ac_fn_c_try_link "$LINENO"
9072 then :
9073   lt_cv_ld_exported_symbols_list=yes
9074 else $as_nop
9075   lt_cv_ld_exported_symbols_list=no
9076 fi
9077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9078     conftest$ac_exeext conftest.$ac_ext
9079         LDFLAGS=$save_LDFLAGS
9080
9081 fi
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9083 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9084
9085     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9086 printf %s "checking for -force_load linker flag... " >&6; }
9087 if test ${lt_cv_ld_force_load+y}
9088 then :
9089   printf %s "(cached) " >&6
9090 else $as_nop
9091   lt_cv_ld_force_load=no
9092       cat > conftest.c << _LT_EOF
9093 int forced_loaded() { return 2;}
9094 _LT_EOF
9095       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9096       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9097       echo "$AR cr libconftest.a conftest.o" >&5
9098       $AR cr libconftest.a conftest.o 2>&5
9099       echo "$RANLIB libconftest.a" >&5
9100       $RANLIB libconftest.a 2>&5
9101       cat > conftest.c << _LT_EOF
9102 int main() { return 0;}
9103 _LT_EOF
9104       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9105       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9106       _lt_result=$?
9107       if test -s conftest.err && $GREP force_load conftest.err; then
9108         cat conftest.err >&5
9109       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9110         lt_cv_ld_force_load=yes
9111       else
9112         cat conftest.err >&5
9113       fi
9114         rm -f conftest.err libconftest.a conftest conftest.c
9115         rm -rf conftest.dSYM
9116
9117 fi
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9119 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9120     case $host_os in
9121     rhapsody* | darwin1.[012])
9122       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9123     darwin1.*)
9124       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9125     darwin*) # darwin 5.x on
9126       # if running on 10.5 or later, the deployment target defaults
9127       # to the OS version, if on x86, and 10.4, the deployment
9128       # target defaults to 10.4. Don't you love it?
9129       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9130         10.0,*86*-darwin8*|10.0,*-darwin[912]*)
9131           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9132         10.[012][,.]*)
9133           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9134         10.*|11.*)
9135           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9136       esac
9137     ;;
9138   esac
9139     if test yes = "$lt_cv_apple_cc_single_mod"; then
9140       _lt_dar_single_mod='$single_module'
9141     fi
9142     if test yes = "$lt_cv_ld_exported_symbols_list"; then
9143       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9144     else
9145       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9146     fi
9147     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9148       _lt_dsymutil='~$DSYMUTIL $lib || :'
9149     else
9150       _lt_dsymutil=
9151     fi
9152     ;;
9153   esac
9154
9155 # func_munge_path_list VARIABLE PATH
9156 # -----------------------------------
9157 # VARIABLE is name of variable containing _space_ separated list of
9158 # directories to be munged by the contents of PATH, which is string
9159 # having a format:
9160 # "DIR[:DIR]:"
9161 #       string "DIR[ DIR]" will be prepended to VARIABLE
9162 # ":DIR[:DIR]"
9163 #       string "DIR[ DIR]" will be appended to VARIABLE
9164 # "DIRP[:DIRP]::[DIRA:]DIRA"
9165 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9166 #       "DIRA[ DIRA]" will be appended to VARIABLE
9167 # "DIR[:DIR]"
9168 #       VARIABLE will be replaced by "DIR[ DIR]"
9169 func_munge_path_list ()
9170 {
9171     case x$2 in
9172     x)
9173         ;;
9174     *:)
9175         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9176         ;;
9177     x:*)
9178         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9179         ;;
9180     *::*)
9181         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9182         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9183         ;;
9184     *)
9185         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9186         ;;
9187     esac
9188 }
9189
9190 ac_header= ac_cache=
9191 for ac_item in $ac_header_c_list
9192 do
9193   if test $ac_cache; then
9194     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9195     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9196       printf "%s\n" "#define $ac_item 1" >> confdefs.h
9197     fi
9198     ac_header= ac_cache=
9199   elif test $ac_header; then
9200     ac_cache=$ac_item
9201   else
9202     ac_header=$ac_item
9203   fi
9204 done
9205
9206
9207
9208
9209
9210
9211
9212
9213 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9214 then :
9215
9216 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9217
9218 fi
9219 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9220 "
9221 if test "x$ac_cv_header_dlfcn_h" = xyes
9222 then :
9223   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9224
9225 fi
9226
9227
9228
9229 func_stripname_cnf ()
9230 {
9231   case $2 in
9232   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9233   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9234   esac
9235 } # func_stripname_cnf
9236
9237
9238
9239
9240
9241 # Set options
9242
9243
9244
9245         enable_dlopen=no
9246
9247
9248   enable_win32_dll=no
9249
9250
9251             # Check whether --enable-shared was given.
9252 if test ${enable_shared+y}
9253 then :
9254   enableval=$enable_shared; p=${PACKAGE-default}
9255     case $enableval in
9256     yes) enable_shared=yes ;;
9257     no) enable_shared=no ;;
9258     *)
9259       enable_shared=no
9260       # Look at the argument we got.  We use all the common list separators.
9261       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9262       for pkg in $enableval; do
9263         IFS=$lt_save_ifs
9264         if test "X$pkg" = "X$p"; then
9265           enable_shared=yes
9266         fi
9267       done
9268       IFS=$lt_save_ifs
9269       ;;
9270     esac
9271 else $as_nop
9272   enable_shared=yes
9273 fi
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283   # Check whether --enable-static was given.
9284 if test ${enable_static+y}
9285 then :
9286   enableval=$enable_static; p=${PACKAGE-default}
9287     case $enableval in
9288     yes) enable_static=yes ;;
9289     no) enable_static=no ;;
9290     *)
9291      enable_static=no
9292       # Look at the argument we got.  We use all the common list separators.
9293       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9294       for pkg in $enableval; do
9295         IFS=$lt_save_ifs
9296         if test "X$pkg" = "X$p"; then
9297           enable_static=yes
9298         fi
9299       done
9300       IFS=$lt_save_ifs
9301       ;;
9302     esac
9303 else $as_nop
9304   enable_static=yes
9305 fi
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316 # Check whether --with-pic was given.
9317 if test ${with_pic+y}
9318 then :
9319   withval=$with_pic; lt_p=${PACKAGE-default}
9320     case $withval in
9321     yes|no) pic_mode=$withval ;;
9322     *)
9323       pic_mode=default
9324       # Look at the argument we got.  We use all the common list separators.
9325       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9326       for lt_pkg in $withval; do
9327         IFS=$lt_save_ifs
9328         if test "X$lt_pkg" = "X$lt_p"; then
9329           pic_mode=yes
9330         fi
9331       done
9332       IFS=$lt_save_ifs
9333       ;;
9334     esac
9335 else $as_nop
9336   pic_mode=default
9337 fi
9338
9339
9340
9341
9342
9343
9344
9345
9346   # Check whether --enable-fast-install was given.
9347 if test ${enable_fast_install+y}
9348 then :
9349   enableval=$enable_fast_install; p=${PACKAGE-default}
9350     case $enableval in
9351     yes) enable_fast_install=yes ;;
9352     no) enable_fast_install=no ;;
9353     *)
9354       enable_fast_install=no
9355       # Look at the argument we got.  We use all the common list separators.
9356       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9357       for pkg in $enableval; do
9358         IFS=$lt_save_ifs
9359         if test "X$pkg" = "X$p"; then
9360           enable_fast_install=yes
9361         fi
9362       done
9363       IFS=$lt_save_ifs
9364       ;;
9365     esac
9366 else $as_nop
9367   enable_fast_install=yes
9368 fi
9369
9370
9371
9372
9373
9374
9375
9376
9377   shared_archive_member_spec=
9378 case $host,$enable_shared in
9379 power*-*-aix[5-9]*,yes)
9380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9381 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9382
9383 # Check whether --with-aix-soname was given.
9384 if test ${with_aix_soname+y}
9385 then :
9386   withval=$with_aix_soname; case $withval in
9387     aix|svr4|both)
9388       ;;
9389     *)
9390       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9391       ;;
9392     esac
9393     lt_cv_with_aix_soname=$with_aix_soname
9394 else $as_nop
9395   if test ${lt_cv_with_aix_soname+y}
9396 then :
9397   printf %s "(cached) " >&6
9398 else $as_nop
9399   lt_cv_with_aix_soname=aix
9400 fi
9401
9402     with_aix_soname=$lt_cv_with_aix_soname
9403 fi
9404
9405   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9406 printf "%s\n" "$with_aix_soname" >&6; }
9407   if test aix != "$with_aix_soname"; then
9408     # For the AIX way of multilib, we name the shared archive member
9409     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9410     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9411     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9412     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9413     if test 64 = "${OBJECT_MODE-32}"; then
9414       shared_archive_member_spec=shr_64
9415     else
9416       shared_archive_member_spec=shr
9417     fi
9418   fi
9419   ;;
9420 *)
9421   with_aix_soname=aix
9422   ;;
9423 esac
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434 # This can be used to rebuild libtool when needed
9435 LIBTOOL_DEPS=$ltmain
9436
9437 # Always use our own libtool.
9438 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469 test -z "$LN_S" && LN_S="ln -s"
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484 if test -n "${ZSH_VERSION+set}"; then
9485    setopt NO_GLOB_SUBST
9486 fi
9487
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9489 printf %s "checking for objdir... " >&6; }
9490 if test ${lt_cv_objdir+y}
9491 then :
9492   printf %s "(cached) " >&6
9493 else $as_nop
9494   rm -f .libs 2>/dev/null
9495 mkdir .libs 2>/dev/null
9496 if test -d .libs; then
9497   lt_cv_objdir=.libs
9498 else
9499   # MS-DOS does not allow filenames that begin with a dot.
9500   lt_cv_objdir=_libs
9501 fi
9502 rmdir .libs 2>/dev/null
9503 fi
9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9505 printf "%s\n" "$lt_cv_objdir" >&6; }
9506 objdir=$lt_cv_objdir
9507
9508
9509
9510
9511
9512 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9513
9514
9515
9516
9517 case $host_os in
9518 aix3*)
9519   # AIX sometimes has problems with the GCC collect2 program.  For some
9520   # reason, if we set the COLLECT_NAMES environment variable, the problems
9521   # vanish in a puff of smoke.
9522   if test set != "${COLLECT_NAMES+set}"; then
9523     COLLECT_NAMES=
9524     export COLLECT_NAMES
9525   fi
9526   ;;
9527 esac
9528
9529 # Global variables:
9530 ofile=libtool
9531 can_build_shared=yes
9532
9533 # All known linkers require a '.a' archive for static linking (except MSVC,
9534 # which needs '.lib').
9535 libext=a
9536
9537 with_gnu_ld=$lt_cv_prog_gnu_ld
9538
9539 old_CC=$CC
9540 old_CFLAGS=$CFLAGS
9541
9542 # Set sane defaults for various variables
9543 test -z "$CC" && CC=cc
9544 test -z "$LTCC" && LTCC=$CC
9545 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9546 test -z "$LD" && LD=ld
9547 test -z "$ac_objext" && ac_objext=o
9548
9549 func_cc_basename $compiler
9550 cc_basename=$func_cc_basename_result
9551
9552
9553 # Only perform the check for file, if the check method requires it
9554 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9555 case $deplibs_check_method in
9556 file_magic*)
9557   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9558     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9559 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9560 if test ${lt_cv_path_MAGIC_CMD+y}
9561 then :
9562   printf %s "(cached) " >&6
9563 else $as_nop
9564   case $MAGIC_CMD in
9565 [\\/*] |  ?:[\\/]*)
9566   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9567   ;;
9568 *)
9569   lt_save_MAGIC_CMD=$MAGIC_CMD
9570   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9571   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9572   for ac_dir in $ac_dummy; do
9573     IFS=$lt_save_ifs
9574     test -z "$ac_dir" && ac_dir=.
9575     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9576       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9577       if test -n "$file_magic_test_file"; then
9578         case $deplibs_check_method in
9579         "file_magic "*)
9580           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9581           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9582           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9583             $EGREP "$file_magic_regex" > /dev/null; then
9584             :
9585           else
9586             cat <<_LT_EOF 1>&2
9587
9588 *** Warning: the command libtool uses to detect shared libraries,
9589 *** $file_magic_cmd, produces output that libtool cannot recognize.
9590 *** The result is that libtool may fail to recognize shared libraries
9591 *** as such.  This will affect the creation of libtool libraries that
9592 *** depend on shared libraries, but programs linked with such libtool
9593 *** libraries will work regardless of this problem.  Nevertheless, you
9594 *** may want to report the problem to your system manager and/or to
9595 *** bug-libtool@gnu.org
9596
9597 _LT_EOF
9598           fi ;;
9599         esac
9600       fi
9601       break
9602     fi
9603   done
9604   IFS=$lt_save_ifs
9605   MAGIC_CMD=$lt_save_MAGIC_CMD
9606   ;;
9607 esac
9608 fi
9609
9610 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9611 if test -n "$MAGIC_CMD"; then
9612   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9613 printf "%s\n" "$MAGIC_CMD" >&6; }
9614 else
9615   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616 printf "%s\n" "no" >&6; }
9617 fi
9618
9619
9620
9621
9622
9623 if test -z "$lt_cv_path_MAGIC_CMD"; then
9624   if test -n "$ac_tool_prefix"; then
9625     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9626 printf %s "checking for file... " >&6; }
9627 if test ${lt_cv_path_MAGIC_CMD+y}
9628 then :
9629   printf %s "(cached) " >&6
9630 else $as_nop
9631   case $MAGIC_CMD in
9632 [\\/*] |  ?:[\\/]*)
9633   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9634   ;;
9635 *)
9636   lt_save_MAGIC_CMD=$MAGIC_CMD
9637   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9638   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9639   for ac_dir in $ac_dummy; do
9640     IFS=$lt_save_ifs
9641     test -z "$ac_dir" && ac_dir=.
9642     if test -f "$ac_dir/file"; then
9643       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9644       if test -n "$file_magic_test_file"; then
9645         case $deplibs_check_method in
9646         "file_magic "*)
9647           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9648           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9649           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9650             $EGREP "$file_magic_regex" > /dev/null; then
9651             :
9652           else
9653             cat <<_LT_EOF 1>&2
9654
9655 *** Warning: the command libtool uses to detect shared libraries,
9656 *** $file_magic_cmd, produces output that libtool cannot recognize.
9657 *** The result is that libtool may fail to recognize shared libraries
9658 *** as such.  This will affect the creation of libtool libraries that
9659 *** depend on shared libraries, but programs linked with such libtool
9660 *** libraries will work regardless of this problem.  Nevertheless, you
9661 *** may want to report the problem to your system manager and/or to
9662 *** bug-libtool@gnu.org
9663
9664 _LT_EOF
9665           fi ;;
9666         esac
9667       fi
9668       break
9669     fi
9670   done
9671   IFS=$lt_save_ifs
9672   MAGIC_CMD=$lt_save_MAGIC_CMD
9673   ;;
9674 esac
9675 fi
9676
9677 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9678 if test -n "$MAGIC_CMD"; then
9679   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9680 printf "%s\n" "$MAGIC_CMD" >&6; }
9681 else
9682   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 printf "%s\n" "no" >&6; }
9684 fi
9685
9686
9687   else
9688     MAGIC_CMD=:
9689   fi
9690 fi
9691
9692   fi
9693   ;;
9694 esac
9695
9696 # Use C for the default configuration in the libtool script
9697
9698 lt_save_CC=$CC
9699 ac_ext=c
9700 ac_cpp='$CPP $CPPFLAGS'
9701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9704
9705
9706 # Source file extension for C test sources.
9707 ac_ext=c
9708
9709 # Object file extension for compiled C test sources.
9710 objext=o
9711 objext=$objext
9712
9713 # Code to be used in simple compile tests
9714 lt_simple_compile_test_code="int some_variable = 0;"
9715
9716 # Code to be used in simple link tests
9717 lt_simple_link_test_code='int main(){return(0);}'
9718
9719
9720
9721
9722
9723
9724
9725 # If no C compiler was specified, use CC.
9726 LTCC=${LTCC-"$CC"}
9727
9728 # If no C compiler flags were specified, use CFLAGS.
9729 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9730
9731 # Allow CC to be a program name with arguments.
9732 compiler=$CC
9733
9734 # Save the default compiler, since it gets overwritten when the other
9735 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9736 compiler_DEFAULT=$CC
9737
9738 # save warnings/boilerplate of simple test code
9739 ac_outfile=conftest.$ac_objext
9740 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9741 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9742 _lt_compiler_boilerplate=`cat conftest.err`
9743 $RM conftest*
9744
9745 ac_outfile=conftest.$ac_objext
9746 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9747 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9748 _lt_linker_boilerplate=`cat conftest.err`
9749 $RM -r conftest*
9750
9751
9752 ## CAVEAT EMPTOR:
9753 ## There is no encapsulation within the following macros, do not change
9754 ## the running order or otherwise move them around unless you know exactly
9755 ## what you are doing...
9756 if test -n "$compiler"; then
9757
9758 lt_prog_compiler_no_builtin_flag=
9759
9760 if test yes = "$GCC"; then
9761   case $cc_basename in
9762   nvcc*)
9763     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9764   *)
9765     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9766   esac
9767
9768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9769 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9770 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9771 then :
9772   printf %s "(cached) " >&6
9773 else $as_nop
9774   lt_cv_prog_compiler_rtti_exceptions=no
9775    ac_outfile=conftest.$ac_objext
9776    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9777    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9778    # Insert the option either (1) after the last *FLAGS variable, or
9779    # (2) before a word containing "conftest.", or (3) at the end.
9780    # Note that $ac_compile itself does not contain backslashes and begins
9781    # with a dollar sign (not a hyphen), so the echo should work correctly.
9782    # The option is referenced via a variable to avoid confusing sed.
9783    lt_compile=`echo "$ac_compile" | $SED \
9784    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9785    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9786    -e 's:$: $lt_compiler_flag:'`
9787    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9788    (eval "$lt_compile" 2>conftest.err)
9789    ac_status=$?
9790    cat conftest.err >&5
9791    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792    if (exit $ac_status) && test -s "$ac_outfile"; then
9793      # The compiler can only warn and ignore the option if not recognized
9794      # So say no if there are warnings other than the usual output.
9795      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9796      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9797      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9798        lt_cv_prog_compiler_rtti_exceptions=yes
9799      fi
9800    fi
9801    $RM conftest*
9802
9803 fi
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9805 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9806
9807 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9808     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9809 else
9810     :
9811 fi
9812
9813 fi
9814
9815
9816
9817
9818
9819
9820   lt_prog_compiler_wl=
9821 lt_prog_compiler_pic=
9822 lt_prog_compiler_static=
9823
9824
9825   if test yes = "$GCC"; then
9826     lt_prog_compiler_wl='-Wl,'
9827     lt_prog_compiler_static='-static'
9828
9829     case $host_os in
9830       aix*)
9831       # All AIX code is PIC.
9832       if test ia64 = "$host_cpu"; then
9833         # AIX 5 now supports IA64 processor
9834         lt_prog_compiler_static='-Bstatic'
9835       fi
9836       lt_prog_compiler_pic='-fPIC'
9837       ;;
9838
9839     amigaos*)
9840       case $host_cpu in
9841       powerpc)
9842             # see comment about AmigaOS4 .so support
9843             lt_prog_compiler_pic='-fPIC'
9844         ;;
9845       m68k)
9846             # FIXME: we need at least 68020 code to build shared libraries, but
9847             # adding the '-m68020' flag to GCC prevents building anything better,
9848             # like '-m68040'.
9849             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9850         ;;
9851       esac
9852       ;;
9853
9854     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9855       # PIC is the default for these OSes.
9856       ;;
9857
9858     mingw* | cygwin* | pw32* | os2* | cegcc*)
9859       # This hack is so that the source file can tell whether it is being
9860       # built for inclusion in a dll (and should export symbols for example).
9861       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9862       # (--disable-auto-import) libraries
9863       lt_prog_compiler_pic='-DDLL_EXPORT'
9864       case $host_os in
9865       os2*)
9866         lt_prog_compiler_static='$wl-static'
9867         ;;
9868       esac
9869       ;;
9870
9871     darwin* | rhapsody*)
9872       # PIC is the default on this platform
9873       # Common symbols not allowed in MH_DYLIB files
9874       lt_prog_compiler_pic='-fno-common'
9875       ;;
9876
9877     haiku*)
9878       # PIC is the default for Haiku.
9879       # The "-static" flag exists, but is broken.
9880       lt_prog_compiler_static=
9881       ;;
9882
9883     hpux*)
9884       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9885       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9886       # sets the default TLS model and affects inlining.
9887       case $host_cpu in
9888       hppa*64*)
9889         # +Z the default
9890         ;;
9891       *)
9892         lt_prog_compiler_pic='-fPIC'
9893         ;;
9894       esac
9895       ;;
9896
9897     interix[3-9]*)
9898       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9899       # Instead, we relocate shared libraries at runtime.
9900       ;;
9901
9902     msdosdjgpp*)
9903       # Just because we use GCC doesn't mean we suddenly get shared libraries
9904       # on systems that don't support them.
9905       lt_prog_compiler_can_build_shared=no
9906       enable_shared=no
9907       ;;
9908
9909     *nto* | *qnx*)
9910       # QNX uses GNU C++, but need to define -shared option too, otherwise
9911       # it will coredump.
9912       lt_prog_compiler_pic='-fPIC -shared'
9913       ;;
9914
9915     sysv4*MP*)
9916       if test -d /usr/nec; then
9917         lt_prog_compiler_pic=-Kconform_pic
9918       fi
9919       ;;
9920
9921     *)
9922       lt_prog_compiler_pic='-fPIC'
9923       ;;
9924     esac
9925
9926     case $cc_basename in
9927     nvcc*) # Cuda Compiler Driver 2.2
9928       lt_prog_compiler_wl='-Xlinker '
9929       if test -n "$lt_prog_compiler_pic"; then
9930         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9931       fi
9932       ;;
9933     esac
9934   else
9935     # PORTME Check for flag to pass linker flags through the system compiler.
9936     case $host_os in
9937     aix*)
9938       lt_prog_compiler_wl='-Wl,'
9939       if test ia64 = "$host_cpu"; then
9940         # AIX 5 now supports IA64 processor
9941         lt_prog_compiler_static='-Bstatic'
9942       else
9943         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9944       fi
9945       ;;
9946
9947     darwin* | rhapsody*)
9948       # PIC is the default on this platform
9949       # Common symbols not allowed in MH_DYLIB files
9950       lt_prog_compiler_pic='-fno-common'
9951       case $cc_basename in
9952       nagfor*)
9953         # NAG Fortran compiler
9954         lt_prog_compiler_wl='-Wl,-Wl,,'
9955         lt_prog_compiler_pic='-PIC'
9956         lt_prog_compiler_static='-Bstatic'
9957         ;;
9958       esac
9959       ;;
9960
9961     mingw* | cygwin* | pw32* | os2* | cegcc*)
9962       # This hack is so that the source file can tell whether it is being
9963       # built for inclusion in a dll (and should export symbols for example).
9964       lt_prog_compiler_pic='-DDLL_EXPORT'
9965       case $host_os in
9966       os2*)
9967         lt_prog_compiler_static='$wl-static'
9968         ;;
9969       esac
9970       ;;
9971
9972     hpux9* | hpux10* | hpux11*)
9973       lt_prog_compiler_wl='-Wl,'
9974       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9975       # not for PA HP-UX.
9976       case $host_cpu in
9977       hppa*64*|ia64*)
9978         # +Z the default
9979         ;;
9980       *)
9981         lt_prog_compiler_pic='+Z'
9982         ;;
9983       esac
9984       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9985       lt_prog_compiler_static='$wl-a ${wl}archive'
9986       ;;
9987
9988     irix5* | irix6* | nonstopux*)
9989       lt_prog_compiler_wl='-Wl,'
9990       # PIC (with -KPIC) is the default.
9991       lt_prog_compiler_static='-non_shared'
9992       ;;
9993
9994     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9995       case $cc_basename in
9996       # old Intel for x86_64, which still supported -KPIC.
9997       ecc*)
9998         lt_prog_compiler_wl='-Wl,'
9999         lt_prog_compiler_pic='-KPIC'
10000         lt_prog_compiler_static='-static'
10001         ;;
10002       # flang / f18. f95 an alias for gfortran or flang on Debian
10003       flang* | f18* | f95*)
10004         lt_prog_compiler_wl='-Wl,'
10005         lt_prog_compiler_pic='-fPIC'
10006         lt_prog_compiler_static='-static'
10007         ;;
10008       # icc used to be incompatible with GCC.
10009       # ICC 10 doesn't accept -KPIC any more.
10010       icc* | ifort*)
10011         lt_prog_compiler_wl='-Wl,'
10012         lt_prog_compiler_pic='-fPIC'
10013         lt_prog_compiler_static='-static'
10014         ;;
10015       # Lahey Fortran 8.1.
10016       lf95*)
10017         lt_prog_compiler_wl='-Wl,'
10018         lt_prog_compiler_pic='--shared'
10019         lt_prog_compiler_static='--static'
10020         ;;
10021       nagfor*)
10022         # NAG Fortran compiler
10023         lt_prog_compiler_wl='-Wl,-Wl,,'
10024         lt_prog_compiler_pic='-PIC'
10025         lt_prog_compiler_static='-Bstatic'
10026         ;;
10027       tcc*)
10028         # Fabrice Bellard et al's Tiny C Compiler
10029         lt_prog_compiler_wl='-Wl,'
10030         lt_prog_compiler_pic='-fPIC'
10031         lt_prog_compiler_static='-static'
10032         ;;
10033       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10034         # Portland Group compilers (*not* the Pentium gcc compiler,
10035         # which looks to be a dead project)
10036         lt_prog_compiler_wl='-Wl,'
10037         lt_prog_compiler_pic='-fpic'
10038         lt_prog_compiler_static='-Bstatic'
10039         ;;
10040       ccc*)
10041         lt_prog_compiler_wl='-Wl,'
10042         # All Alpha code is PIC.
10043         lt_prog_compiler_static='-non_shared'
10044         ;;
10045       xl* | bgxl* | bgf* | mpixl*)
10046         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10047         lt_prog_compiler_wl='-Wl,'
10048         lt_prog_compiler_pic='-qpic'
10049         lt_prog_compiler_static='-qstaticlink'
10050         ;;
10051       *)
10052         case `$CC -V 2>&1 | sed 5q` in
10053         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10054           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10055           lt_prog_compiler_pic='-KPIC'
10056           lt_prog_compiler_static='-Bstatic'
10057           lt_prog_compiler_wl=''
10058           ;;
10059         *Sun\ F* | *Sun*Fortran*)
10060           lt_prog_compiler_pic='-KPIC'
10061           lt_prog_compiler_static='-Bstatic'
10062           lt_prog_compiler_wl='-Qoption ld '
10063           ;;
10064         *Sun\ C*)
10065           # Sun C 5.9
10066           lt_prog_compiler_pic='-KPIC'
10067           lt_prog_compiler_static='-Bstatic'
10068           lt_prog_compiler_wl='-Wl,'
10069           ;;
10070         *Intel*\ [CF]*Compiler*)
10071           lt_prog_compiler_wl='-Wl,'
10072           lt_prog_compiler_pic='-fPIC'
10073           lt_prog_compiler_static='-static'
10074           ;;
10075         *Portland\ Group*)
10076           lt_prog_compiler_wl='-Wl,'
10077           lt_prog_compiler_pic='-fpic'
10078           lt_prog_compiler_static='-Bstatic'
10079           ;;
10080         esac
10081         ;;
10082       esac
10083       ;;
10084
10085     newsos6)
10086       lt_prog_compiler_pic='-KPIC'
10087       lt_prog_compiler_static='-Bstatic'
10088       ;;
10089
10090     *nto* | *qnx*)
10091       # QNX uses GNU C++, but need to define -shared option too, otherwise
10092       # it will coredump.
10093       lt_prog_compiler_pic='-fPIC -shared'
10094       ;;
10095
10096     osf3* | osf4* | osf5*)
10097       lt_prog_compiler_wl='-Wl,'
10098       # All OSF/1 code is PIC.
10099       lt_prog_compiler_static='-non_shared'
10100       ;;
10101
10102     rdos*)
10103       lt_prog_compiler_static='-non_shared'
10104       ;;
10105
10106     solaris*)
10107       lt_prog_compiler_pic='-KPIC'
10108       lt_prog_compiler_static='-Bstatic'
10109       case $cc_basename in
10110       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10111         lt_prog_compiler_wl='-Qoption ld ';;
10112       *)
10113         lt_prog_compiler_wl='-Wl,';;
10114       esac
10115       ;;
10116
10117     sunos4*)
10118       lt_prog_compiler_wl='-Qoption ld '
10119       lt_prog_compiler_pic='-PIC'
10120       lt_prog_compiler_static='-Bstatic'
10121       ;;
10122
10123     sysv4 | sysv4.2uw2* | sysv4.3*)
10124       lt_prog_compiler_wl='-Wl,'
10125       lt_prog_compiler_pic='-KPIC'
10126       lt_prog_compiler_static='-Bstatic'
10127       ;;
10128
10129     sysv4*MP*)
10130       if test -d /usr/nec; then
10131         lt_prog_compiler_pic='-Kconform_pic'
10132         lt_prog_compiler_static='-Bstatic'
10133       fi
10134       ;;
10135
10136     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10137       lt_prog_compiler_wl='-Wl,'
10138       lt_prog_compiler_pic='-KPIC'
10139       lt_prog_compiler_static='-Bstatic'
10140       ;;
10141
10142     unicos*)
10143       lt_prog_compiler_wl='-Wl,'
10144       lt_prog_compiler_can_build_shared=no
10145       ;;
10146
10147     uts4*)
10148       lt_prog_compiler_pic='-pic'
10149       lt_prog_compiler_static='-Bstatic'
10150       ;;
10151
10152     *)
10153       lt_prog_compiler_can_build_shared=no
10154       ;;
10155     esac
10156   fi
10157
10158 case $host_os in
10159   # For platforms that do not support PIC, -DPIC is meaningless:
10160   *djgpp*)
10161     lt_prog_compiler_pic=
10162     ;;
10163   *)
10164     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10165     ;;
10166 esac
10167
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10169 printf %s "checking for $compiler option to produce PIC... " >&6; }
10170 if test ${lt_cv_prog_compiler_pic+y}
10171 then :
10172   printf %s "(cached) " >&6
10173 else $as_nop
10174   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10175 fi
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10177 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10178 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10179
10180 #
10181 # Check to make sure the PIC flag actually works.
10182 #
10183 if test -n "$lt_prog_compiler_pic"; then
10184   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10185 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10186 if test ${lt_cv_prog_compiler_pic_works+y}
10187 then :
10188   printf %s "(cached) " >&6
10189 else $as_nop
10190   lt_cv_prog_compiler_pic_works=no
10191    ac_outfile=conftest.$ac_objext
10192    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10193    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10194    # Insert the option either (1) after the last *FLAGS variable, or
10195    # (2) before a word containing "conftest.", or (3) at the end.
10196    # Note that $ac_compile itself does not contain backslashes and begins
10197    # with a dollar sign (not a hyphen), so the echo should work correctly.
10198    # The option is referenced via a variable to avoid confusing sed.
10199    lt_compile=`echo "$ac_compile" | $SED \
10200    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10201    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10202    -e 's:$: $lt_compiler_flag:'`
10203    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10204    (eval "$lt_compile" 2>conftest.err)
10205    ac_status=$?
10206    cat conftest.err >&5
10207    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208    if (exit $ac_status) && test -s "$ac_outfile"; then
10209      # The compiler can only warn and ignore the option if not recognized
10210      # So say no if there are warnings other than the usual output.
10211      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10212      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10213      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10214        lt_cv_prog_compiler_pic_works=yes
10215      fi
10216    fi
10217    $RM conftest*
10218
10219 fi
10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10221 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10222
10223 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10224     case $lt_prog_compiler_pic in
10225      "" | " "*) ;;
10226      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10227      esac
10228 else
10229     lt_prog_compiler_pic=
10230      lt_prog_compiler_can_build_shared=no
10231 fi
10232
10233 fi
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245 #
10246 # Check to make sure the static flag actually works.
10247 #
10248 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10250 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10251 if test ${lt_cv_prog_compiler_static_works+y}
10252 then :
10253   printf %s "(cached) " >&6
10254 else $as_nop
10255   lt_cv_prog_compiler_static_works=no
10256    save_LDFLAGS=$LDFLAGS
10257    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10258    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10259    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10260      # The linker can only warn and ignore the option if not recognized
10261      # So say no if there are warnings
10262      if test -s conftest.err; then
10263        # Append any errors to the config.log.
10264        cat conftest.err 1>&5
10265        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10266        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10267        if diff conftest.exp conftest.er2 >/dev/null; then
10268          lt_cv_prog_compiler_static_works=yes
10269        fi
10270      else
10271        lt_cv_prog_compiler_static_works=yes
10272      fi
10273    fi
10274    $RM -r conftest*
10275    LDFLAGS=$save_LDFLAGS
10276
10277 fi
10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10279 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10280
10281 if test yes = "$lt_cv_prog_compiler_static_works"; then
10282     :
10283 else
10284     lt_prog_compiler_static=
10285 fi
10286
10287
10288
10289
10290
10291
10292
10293   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10294 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10295 if test ${lt_cv_prog_compiler_c_o+y}
10296 then :
10297   printf %s "(cached) " >&6
10298 else $as_nop
10299   lt_cv_prog_compiler_c_o=no
10300    $RM -r conftest 2>/dev/null
10301    mkdir conftest
10302    cd conftest
10303    mkdir out
10304    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10305
10306    lt_compiler_flag="-o out/conftest2.$ac_objext"
10307    # Insert the option either (1) after the last *FLAGS variable, or
10308    # (2) before a word containing "conftest.", or (3) at the end.
10309    # Note that $ac_compile itself does not contain backslashes and begins
10310    # with a dollar sign (not a hyphen), so the echo should work correctly.
10311    lt_compile=`echo "$ac_compile" | $SED \
10312    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10313    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10314    -e 's:$: $lt_compiler_flag:'`
10315    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10316    (eval "$lt_compile" 2>out/conftest.err)
10317    ac_status=$?
10318    cat out/conftest.err >&5
10319    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10321    then
10322      # The compiler can only warn and ignore the option if not recognized
10323      # So say no if there are warnings
10324      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10325      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10326      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10327        lt_cv_prog_compiler_c_o=yes
10328      fi
10329    fi
10330    chmod u+w . 2>&5
10331    $RM conftest*
10332    # SGI C++ compiler will create directory out/ii_files/ for
10333    # template instantiation
10334    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10335    $RM out/* && rmdir out
10336    cd ..
10337    $RM -r conftest
10338    $RM conftest*
10339
10340 fi
10341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10342 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10343
10344
10345
10346
10347
10348
10349   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10350 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10351 if test ${lt_cv_prog_compiler_c_o+y}
10352 then :
10353   printf %s "(cached) " >&6
10354 else $as_nop
10355   lt_cv_prog_compiler_c_o=no
10356    $RM -r conftest 2>/dev/null
10357    mkdir conftest
10358    cd conftest
10359    mkdir out
10360    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10361
10362    lt_compiler_flag="-o out/conftest2.$ac_objext"
10363    # Insert the option either (1) after the last *FLAGS variable, or
10364    # (2) before a word containing "conftest.", or (3) at the end.
10365    # Note that $ac_compile itself does not contain backslashes and begins
10366    # with a dollar sign (not a hyphen), so the echo should work correctly.
10367    lt_compile=`echo "$ac_compile" | $SED \
10368    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10369    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10370    -e 's:$: $lt_compiler_flag:'`
10371    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10372    (eval "$lt_compile" 2>out/conftest.err)
10373    ac_status=$?
10374    cat out/conftest.err >&5
10375    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10377    then
10378      # The compiler can only warn and ignore the option if not recognized
10379      # So say no if there are warnings
10380      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10381      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10382      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10383        lt_cv_prog_compiler_c_o=yes
10384      fi
10385    fi
10386    chmod u+w . 2>&5
10387    $RM conftest*
10388    # SGI C++ compiler will create directory out/ii_files/ for
10389    # template instantiation
10390    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10391    $RM out/* && rmdir out
10392    cd ..
10393    $RM -r conftest
10394    $RM conftest*
10395
10396 fi
10397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10398 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10399
10400
10401
10402
10403 hard_links=nottested
10404 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10405   # do not overwrite the value of need_locks provided by the user
10406   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10407 printf %s "checking if we can lock with hard links... " >&6; }
10408   hard_links=yes
10409   $RM conftest*
10410   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10411   touch conftest.a
10412   ln conftest.a conftest.b 2>&5 || hard_links=no
10413   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10415 printf "%s\n" "$hard_links" >&6; }
10416   if test no = "$hard_links"; then
10417     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10418 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10419     need_locks=warn
10420   fi
10421 else
10422   need_locks=no
10423 fi
10424
10425
10426
10427
10428
10429
10430   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10431 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10432
10433   runpath_var=
10434   allow_undefined_flag=
10435   always_export_symbols=no
10436   archive_cmds=
10437   archive_expsym_cmds=
10438   compiler_needs_object=no
10439   enable_shared_with_static_runtimes=no
10440   export_dynamic_flag_spec=
10441   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10442   hardcode_automatic=no
10443   hardcode_direct=no
10444   hardcode_direct_absolute=no
10445   hardcode_libdir_flag_spec=
10446   hardcode_libdir_separator=
10447   hardcode_minus_L=no
10448   hardcode_shlibpath_var=unsupported
10449   inherit_rpath=no
10450   link_all_deplibs=unknown
10451   module_cmds=
10452   module_expsym_cmds=
10453   old_archive_from_new_cmds=
10454   old_archive_from_expsyms_cmds=
10455   thread_safe_flag_spec=
10456   whole_archive_flag_spec=
10457   # include_expsyms should be a list of space-separated symbols to be *always*
10458   # included in the symbol list
10459   include_expsyms=
10460   # exclude_expsyms can be an extended regexp of symbols to exclude
10461   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10462   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10463   # as well as any symbol that contains 'd'.
10464   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10465   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10466   # platforms (ab)use it in PIC code, but their linkers get confused if
10467   # the symbol is explicitly referenced.  Since portable code cannot
10468   # rely on this symbol name, it's probably fine to never include it in
10469   # preloaded symbol tables.
10470   # Exclude shared library initialization/finalization symbols.
10471   extract_expsyms_cmds=
10472
10473   case $host_os in
10474   cygwin* | mingw* | pw32* | cegcc*)
10475     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10476     # When not using gcc, we currently assume that we are using
10477     # Microsoft Visual C++.
10478     if test yes != "$GCC"; then
10479       with_gnu_ld=no
10480     fi
10481     ;;
10482   interix*)
10483     # we just hope/assume this is gcc and not c89 (= MSVC++)
10484     with_gnu_ld=yes
10485     ;;
10486   openbsd* | bitrig*)
10487     with_gnu_ld=no
10488     ;;
10489   linux* | k*bsd*-gnu | gnu*)
10490     link_all_deplibs=no
10491     ;;
10492   esac
10493
10494   ld_shlibs=yes
10495
10496   # On some targets, GNU ld is compatible enough with the native linker
10497   # that we're better off using the native interface for both.
10498   lt_use_gnu_ld_interface=no
10499   if test yes = "$with_gnu_ld"; then
10500     case $host_os in
10501       aix*)
10502         # The AIX port of GNU ld has always aspired to compatibility
10503         # with the native linker.  However, as the warning in the GNU ld
10504         # block says, versions before 2.19.5* couldn't really create working
10505         # shared libraries, regardless of the interface used.
10506         case `$LD -v 2>&1` in
10507           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10508           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10509           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10510           *)
10511             lt_use_gnu_ld_interface=yes
10512             ;;
10513         esac
10514         ;;
10515       *)
10516         lt_use_gnu_ld_interface=yes
10517         ;;
10518     esac
10519   fi
10520
10521   if test yes = "$lt_use_gnu_ld_interface"; then
10522     # If archive_cmds runs LD, not CC, wlarc should be empty
10523     wlarc='$wl'
10524
10525     # Set some defaults for GNU ld with shared library support. These
10526     # are reset later if shared libraries are not supported. Putting them
10527     # here allows them to be overridden if necessary.
10528     runpath_var=LD_RUN_PATH
10529     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10530     export_dynamic_flag_spec='$wl--export-dynamic'
10531     # ancient GNU ld didn't support --whole-archive et. al.
10532     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10533       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10534     else
10535       whole_archive_flag_spec=
10536     fi
10537     supports_anon_versioning=no
10538     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10539       *GNU\ gold*) supports_anon_versioning=yes ;;
10540       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10541       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10542       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10543       *\ 2.11.*) ;; # other 2.11 versions
10544       *) supports_anon_versioning=yes ;;
10545     esac
10546
10547     # See if GNU ld supports shared libraries.
10548     case $host_os in
10549     aix[3-9]*)
10550       # On AIX/PPC, the GNU linker is very broken
10551       if test ia64 != "$host_cpu"; then
10552         ld_shlibs=no
10553         cat <<_LT_EOF 1>&2
10554
10555 *** Warning: the GNU linker, at least up to release 2.19, is reported
10556 *** to be unable to reliably create shared libraries on AIX.
10557 *** Therefore, libtool is disabling shared libraries support.  If you
10558 *** really care for shared libraries, you may want to install binutils
10559 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10560 *** You will then need to restart the configuration process.
10561
10562 _LT_EOF
10563       fi
10564       ;;
10565
10566     amigaos*)
10567       case $host_cpu in
10568       powerpc)
10569             # see comment about AmigaOS4 .so support
10570             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10571             archive_expsym_cmds=''
10572         ;;
10573       m68k)
10574             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)'
10575             hardcode_libdir_flag_spec='-L$libdir'
10576             hardcode_minus_L=yes
10577         ;;
10578       esac
10579       ;;
10580
10581     beos*)
10582       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10583         allow_undefined_flag=unsupported
10584         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10585         # support --undefined.  This deserves some investigation.  FIXME
10586         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10587       else
10588         ld_shlibs=no
10589       fi
10590       ;;
10591
10592     cygwin* | mingw* | pw32* | cegcc*)
10593       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10594       # as there is no search path for DLLs.
10595       hardcode_libdir_flag_spec='-L$libdir'
10596       export_dynamic_flag_spec='$wl--export-all-symbols'
10597       allow_undefined_flag=unsupported
10598       always_export_symbols=no
10599       enable_shared_with_static_runtimes=yes
10600       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'
10601       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10602
10603       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10604         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10605         # If the export-symbols file already is a .def file, use it as
10606         # is; otherwise, prepend EXPORTS...
10607         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10608           cp $export_symbols $output_objdir/$soname.def;
10609         else
10610           echo EXPORTS > $output_objdir/$soname.def;
10611           cat $export_symbols >> $output_objdir/$soname.def;
10612         fi~
10613         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10614       else
10615         ld_shlibs=no
10616       fi
10617       ;;
10618
10619     haiku*)
10620       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10621       link_all_deplibs=yes
10622       ;;
10623
10624     os2*)
10625       hardcode_libdir_flag_spec='-L$libdir'
10626       hardcode_minus_L=yes
10627       allow_undefined_flag=unsupported
10628       shrext_cmds=.dll
10629       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10630         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10631         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10632         $ECHO EXPORTS >> $output_objdir/$libname.def~
10633         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10634         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10635         emximp -o $lib $output_objdir/$libname.def'
10636       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10637         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10638         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10639         $ECHO EXPORTS >> $output_objdir/$libname.def~
10640         prefix_cmds="$SED"~
10641         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10642           prefix_cmds="$prefix_cmds -e 1d";
10643         fi~
10644         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10645         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10646         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10647         emximp -o $lib $output_objdir/$libname.def'
10648       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10649       enable_shared_with_static_runtimes=yes
10650       ;;
10651
10652     interix[3-9]*)
10653       hardcode_direct=no
10654       hardcode_shlibpath_var=no
10655       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10656       export_dynamic_flag_spec='$wl-E'
10657       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10658       # Instead, shared libraries are loaded at an image base (0x10000000 by
10659       # default) and relocated if they conflict, which is a slow very memory
10660       # consuming and fragmenting process.  To avoid this, we pick a random,
10661       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10662       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10663       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10664       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'
10665       ;;
10666
10667     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10668       tmp_diet=no
10669       if test linux-dietlibc = "$host_os"; then
10670         case $cc_basename in
10671           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10672         esac
10673       fi
10674       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10675          && test no = "$tmp_diet"
10676       then
10677         tmp_addflag=' $pic_flag'
10678         tmp_sharedflag='-shared'
10679         case $cc_basename,$host_cpu in
10680         pgcc*)                          # Portland Group C compiler
10681           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'
10682           tmp_addflag=' $pic_flag'
10683           ;;
10684         pgf77* | pgf90* | pgf95* | pgfortran*)
10685                                         # Portland Group f77 and f90 compilers
10686           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'
10687           tmp_addflag=' $pic_flag -Mnomain' ;;
10688         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10689           tmp_addflag=' -i_dynamic' ;;
10690         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10691           tmp_addflag=' -i_dynamic -nofor_main' ;;
10692         ifc* | ifort*)                  # Intel Fortran compiler
10693           tmp_addflag=' -nofor_main' ;;
10694         lf95*)                          # Lahey Fortran 8.1
10695           whole_archive_flag_spec=
10696           tmp_sharedflag='--shared' ;;
10697         nagfor*)                        # NAGFOR 5.3
10698           tmp_sharedflag='-Wl,-shared' ;;
10699         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10700           tmp_sharedflag='-qmkshrobj'
10701           tmp_addflag= ;;
10702         nvcc*)  # Cuda Compiler Driver 2.2
10703           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'
10704           compiler_needs_object=yes
10705           ;;
10706         esac
10707         case `$CC -V 2>&1 | sed 5q` in
10708         *Sun\ C*)                       # Sun C 5.9
10709           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'
10710           compiler_needs_object=yes
10711           tmp_sharedflag='-G' ;;
10712         *Sun\ F*)                       # Sun Fortran 8.3
10713           tmp_sharedflag='-G' ;;
10714         esac
10715         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10716
10717         if test yes = "$supports_anon_versioning"; then
10718           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10719             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10720             echo "local: *; };" >> $output_objdir/$libname.ver~
10721             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10722         fi
10723
10724         case $cc_basename in
10725         tcc*)
10726           export_dynamic_flag_spec='-rdynamic'
10727           ;;
10728         xlf* | bgf* | bgxlf* | mpixlf*)
10729           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10730           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10731           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10732           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10733           if test yes = "$supports_anon_versioning"; then
10734             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10735               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10736               echo "local: *; };" >> $output_objdir/$libname.ver~
10737               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10738           fi
10739           ;;
10740         esac
10741       else
10742         ld_shlibs=no
10743       fi
10744       ;;
10745
10746     netbsd* | netbsdelf*-gnu)
10747       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10748         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10749         wlarc=
10750       else
10751         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10752         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10753       fi
10754       ;;
10755
10756     solaris*)
10757       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10758         ld_shlibs=no
10759         cat <<_LT_EOF 1>&2
10760
10761 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10762 *** create shared libraries on Solaris systems.  Therefore, libtool
10763 *** is disabling shared libraries support.  We urge you to upgrade GNU
10764 *** binutils to release 2.9.1 or newer.  Another option is to modify
10765 *** your PATH or compiler configuration so that the native linker is
10766 *** used, and then restart.
10767
10768 _LT_EOF
10769       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10770         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10771         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10772       else
10773         ld_shlibs=no
10774       fi
10775       ;;
10776
10777     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10778       case `$LD -v 2>&1` in
10779         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10780         ld_shlibs=no
10781         cat <<_LT_EOF 1>&2
10782
10783 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10784 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10785 *** is disabling shared libraries support.  We urge you to upgrade GNU
10786 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10787 *** your PATH or compiler configuration so that the native linker is
10788 *** used, and then restart.
10789
10790 _LT_EOF
10791         ;;
10792         *)
10793           # For security reasons, it is highly recommended that you always
10794           # use absolute paths for naming shared libraries, and exclude the
10795           # DT_RUNPATH tag from executables and libraries.  But doing so
10796           # requires that you compile everything twice, which is a pain.
10797           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10798             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10799             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10800             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10801           else
10802             ld_shlibs=no
10803           fi
10804         ;;
10805       esac
10806       ;;
10807
10808     sunos4*)
10809       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10810       wlarc=
10811       hardcode_direct=yes
10812       hardcode_shlibpath_var=no
10813       ;;
10814
10815     *)
10816       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10817         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10818         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10819       else
10820         ld_shlibs=no
10821       fi
10822       ;;
10823     esac
10824
10825     if test no = "$ld_shlibs"; then
10826       runpath_var=
10827       hardcode_libdir_flag_spec=
10828       export_dynamic_flag_spec=
10829       whole_archive_flag_spec=
10830     fi
10831   else
10832     # PORTME fill in a description of your system's linker (not GNU ld)
10833     case $host_os in
10834     aix3*)
10835       allow_undefined_flag=unsupported
10836       always_export_symbols=yes
10837       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'
10838       # Note: this linker hardcodes the directories in LIBPATH if there
10839       # are no directories specified by -L.
10840       hardcode_minus_L=yes
10841       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10842         # Neither direct hardcoding nor static linking is supported with a
10843         # broken collect2.
10844         hardcode_direct=unsupported
10845       fi
10846       ;;
10847
10848     aix[4-9]*)
10849       if test ia64 = "$host_cpu"; then
10850         # On IA64, the linker does run time linking by default, so we don't
10851         # have to do anything special.
10852         aix_use_runtimelinking=no
10853         exp_sym_flag='-Bexport'
10854         no_entry_flag=
10855       else
10856         # If we're using GNU nm, then we don't want the "-C" option.
10857         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10858         # Without the "-l" option, or with the "-B" option, AIX nm treats
10859         # weak defined symbols like other global defined symbols, whereas
10860         # GNU nm marks them as "W".
10861         # While the 'weak' keyword is ignored in the Export File, we need
10862         # it in the Import File for the 'aix-soname' feature, so we have
10863         # to replace the "-B" option with "-P" for AIX nm.
10864         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10865           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10866         else
10867           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10868         fi
10869         aix_use_runtimelinking=no
10870
10871         # Test if we are trying to use run time linking or normal
10872         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10873         # have runtime linking enabled, and use it for executables.
10874         # For shared libraries, we enable/disable runtime linking
10875         # depending on the kind of the shared library created -
10876         # when "with_aix_soname,aix_use_runtimelinking" is:
10877         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10878         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10879         #            lib.a           static archive
10880         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10881         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10882         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10883         #            lib.a(lib.so.V) shared, rtl:no
10884         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10885         #            lib.a           static archive
10886         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10887           for ld_flag in $LDFLAGS; do
10888           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10889             aix_use_runtimelinking=yes
10890             break
10891           fi
10892           done
10893           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10894             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10895             # so we don't have lib.a shared libs to link our executables.
10896             # We have to force runtime linking in this case.
10897             aix_use_runtimelinking=yes
10898             LDFLAGS="$LDFLAGS -Wl,-brtl"
10899           fi
10900           ;;
10901         esac
10902
10903         exp_sym_flag='-bexport'
10904         no_entry_flag='-bnoentry'
10905       fi
10906
10907       # When large executables or shared objects are built, AIX ld can
10908       # have problems creating the table of contents.  If linking a library
10909       # or program results in "error TOC overflow" add -mminimal-toc to
10910       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10911       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10912
10913       archive_cmds=''
10914       hardcode_direct=yes
10915       hardcode_direct_absolute=yes
10916       hardcode_libdir_separator=':'
10917       link_all_deplibs=yes
10918       file_list_spec='$wl-f,'
10919       case $with_aix_soname,$aix_use_runtimelinking in
10920       aix,*) ;; # traditional, no import file
10921       svr4,* | *,yes) # use import file
10922         # The Import File defines what to hardcode.
10923         hardcode_direct=no
10924         hardcode_direct_absolute=no
10925         ;;
10926       esac
10927
10928       if test yes = "$GCC"; then
10929         case $host_os in aix4.[012]|aix4.[012].*)
10930         # We only want to do this on AIX 4.2 and lower, the check
10931         # below for broken collect2 doesn't work under 4.3+
10932           collect2name=`$CC -print-prog-name=collect2`
10933           if test -f "$collect2name" &&
10934            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10935           then
10936           # We have reworked collect2
10937           :
10938           else
10939           # We have old collect2
10940           hardcode_direct=unsupported
10941           # It fails to find uninstalled libraries when the uninstalled
10942           # path is not listed in the libpath.  Setting hardcode_minus_L
10943           # to unsupported forces relinking
10944           hardcode_minus_L=yes
10945           hardcode_libdir_flag_spec='-L$libdir'
10946           hardcode_libdir_separator=
10947           fi
10948           ;;
10949         esac
10950         shared_flag='-shared'
10951         if test yes = "$aix_use_runtimelinking"; then
10952           shared_flag="$shared_flag "'$wl-G'
10953         fi
10954         # Need to ensure runtime linking is disabled for the traditional
10955         # shared library, or the linker may eventually find shared libraries
10956         # /with/ Import File - we do not want to mix them.
10957         shared_flag_aix='-shared'
10958         shared_flag_svr4='-shared $wl-G'
10959       else
10960         # not using gcc
10961         if test ia64 = "$host_cpu"; then
10962         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10963         # chokes on -Wl,-G. The following line is correct:
10964           shared_flag='-G'
10965         else
10966           if test yes = "$aix_use_runtimelinking"; then
10967             shared_flag='$wl-G'
10968           else
10969             shared_flag='$wl-bM:SRE'
10970           fi
10971           shared_flag_aix='$wl-bM:SRE'
10972           shared_flag_svr4='$wl-G'
10973         fi
10974       fi
10975
10976       export_dynamic_flag_spec='$wl-bexpall'
10977       # It seems that -bexpall does not export symbols beginning with
10978       # underscore (_), so it is better to generate a list of symbols to export.
10979       always_export_symbols=yes
10980       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10981         # Warning - without using the other runtime loading flags (-brtl),
10982         # -berok will link without error, but may produce a broken library.
10983         allow_undefined_flag='-berok'
10984         # Determine the default libpath from the value encoded in an
10985         # empty executable.
10986         if test set = "${lt_cv_aix_libpath+set}"; then
10987   aix_libpath=$lt_cv_aix_libpath
10988 else
10989   if test ${lt_cv_aix_libpath_+y}
10990 then :
10991   printf %s "(cached) " >&6
10992 else $as_nop
10993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h.  */
10995
10996 int
10997 main (void)
10998 {
10999
11000   ;
11001   return 0;
11002 }
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"
11005 then :
11006
11007   lt_aix_libpath_sed='
11008       /Import File Strings/,/^$/ {
11009           /^0/ {
11010               s/^0  *\([^ ]*\) *$/\1/
11011               p
11012           }
11013       }'
11014   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11015   # Check for a 64-bit object if we didn't find anything.
11016   if test -z "$lt_cv_aix_libpath_"; then
11017     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11018   fi
11019 fi
11020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11021     conftest$ac_exeext conftest.$ac_ext
11022   if test -z "$lt_cv_aix_libpath_"; then
11023     lt_cv_aix_libpath_=/usr/lib:/lib
11024   fi
11025
11026 fi
11027
11028   aix_libpath=$lt_cv_aix_libpath_
11029 fi
11030
11031         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11032         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11033       else
11034         if test ia64 = "$host_cpu"; then
11035           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11036           allow_undefined_flag="-z nodefs"
11037           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"
11038         else
11039          # Determine the default libpath from the value encoded in an
11040          # empty executable.
11041          if test set = "${lt_cv_aix_libpath+set}"; then
11042   aix_libpath=$lt_cv_aix_libpath
11043 else
11044   if test ${lt_cv_aix_libpath_+y}
11045 then :
11046   printf %s "(cached) " >&6
11047 else $as_nop
11048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h.  */
11050
11051 int
11052 main (void)
11053 {
11054
11055   ;
11056   return 0;
11057 }
11058 _ACEOF
11059 if ac_fn_c_try_link "$LINENO"
11060 then :
11061
11062   lt_aix_libpath_sed='
11063       /Import File Strings/,/^$/ {
11064           /^0/ {
11065               s/^0  *\([^ ]*\) *$/\1/
11066               p
11067           }
11068       }'
11069   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11070   # Check for a 64-bit object if we didn't find anything.
11071   if test -z "$lt_cv_aix_libpath_"; then
11072     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11073   fi
11074 fi
11075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11076     conftest$ac_exeext conftest.$ac_ext
11077   if test -z "$lt_cv_aix_libpath_"; then
11078     lt_cv_aix_libpath_=/usr/lib:/lib
11079   fi
11080
11081 fi
11082
11083   aix_libpath=$lt_cv_aix_libpath_
11084 fi
11085
11086          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11087           # Warning - without using the other run time loading flags,
11088           # -berok will link without error, but may produce a broken library.
11089           no_undefined_flag=' $wl-bernotok'
11090           allow_undefined_flag=' $wl-berok'
11091           if test yes = "$with_gnu_ld"; then
11092             # We only use this code for GNU lds that support --whole-archive.
11093             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11094           else
11095             # Exported symbols can be pulled into shared objects from archives
11096             whole_archive_flag_spec='$convenience'
11097           fi
11098           archive_cmds_need_lc=yes
11099           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11100           # -brtl affects multiple linker settings, -berok does not and is overridden later
11101           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11102           if test svr4 != "$with_aix_soname"; then
11103             # This is similar to how AIX traditionally builds its shared libraries.
11104             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11105           fi
11106           if test aix != "$with_aix_soname"; then
11107             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11108           else
11109             # used by -dlpreopen to get the symbols
11110             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11111           fi
11112           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11113         fi
11114       fi
11115       ;;
11116
11117     amigaos*)
11118       case $host_cpu in
11119       powerpc)
11120             # see comment about AmigaOS4 .so support
11121             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11122             archive_expsym_cmds=''
11123         ;;
11124       m68k)
11125             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)'
11126             hardcode_libdir_flag_spec='-L$libdir'
11127             hardcode_minus_L=yes
11128         ;;
11129       esac
11130       ;;
11131
11132     bsdi[45]*)
11133       export_dynamic_flag_spec=-rdynamic
11134       ;;
11135
11136     cygwin* | mingw* | pw32* | cegcc*)
11137       # When not using gcc, we currently assume that we are using
11138       # Microsoft Visual C++.
11139       # hardcode_libdir_flag_spec is actually meaningless, as there is
11140       # no search path for DLLs.
11141       case $cc_basename in
11142       cl*)
11143         # Native MSVC
11144         hardcode_libdir_flag_spec=' '
11145         allow_undefined_flag=unsupported
11146         always_export_symbols=yes
11147         file_list_spec='@'
11148         # Tell ltmain to make .lib files, not .a files.
11149         libext=lib
11150         # Tell ltmain to make .dll files, not .so files.
11151         shrext_cmds=.dll
11152         # FIXME: Setting linknames here is a bad hack.
11153         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11154         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11155             cp "$export_symbols" "$output_objdir/$soname.def";
11156             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11157           else
11158             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11159           fi~
11160           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11161           linknames='
11162         # The linker will not automatically build a static lib if we build a DLL.
11163         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11164         enable_shared_with_static_runtimes=yes
11165         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11166         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11167         # Don't use ranlib
11168         old_postinstall_cmds='chmod 644 $oldlib'
11169         postlink_cmds='lt_outputfile="@OUTPUT@"~
11170           lt_tool_outputfile="@TOOL_OUTPUT@"~
11171           case $lt_outputfile in
11172             *.exe|*.EXE) ;;
11173             *)
11174               lt_outputfile=$lt_outputfile.exe
11175               lt_tool_outputfile=$lt_tool_outputfile.exe
11176               ;;
11177           esac~
11178           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11179             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11180             $RM "$lt_outputfile.manifest";
11181           fi'
11182         ;;
11183       *)
11184         # Assume MSVC wrapper
11185         hardcode_libdir_flag_spec=' '
11186         allow_undefined_flag=unsupported
11187         # Tell ltmain to make .lib files, not .a files.
11188         libext=lib
11189         # Tell ltmain to make .dll files, not .so files.
11190         shrext_cmds=.dll
11191         # FIXME: Setting linknames here is a bad hack.
11192         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11193         # The linker will automatically build a .lib file if we build a DLL.
11194         old_archive_from_new_cmds='true'
11195         # FIXME: Should let the user specify the lib program.
11196         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11197         enable_shared_with_static_runtimes=yes
11198         ;;
11199       esac
11200       ;;
11201
11202     darwin* | rhapsody*)
11203
11204
11205   archive_cmds_need_lc=no
11206   hardcode_direct=no
11207   hardcode_automatic=yes
11208   hardcode_shlibpath_var=unsupported
11209   if test yes = "$lt_cv_ld_force_load"; then
11210     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\"`'
11211
11212   else
11213     whole_archive_flag_spec=''
11214   fi
11215   link_all_deplibs=yes
11216   allow_undefined_flag=$_lt_dar_allow_undefined
11217   case $cc_basename in
11218      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11219      *) _lt_dar_can_shared=$GCC ;;
11220   esac
11221   if test yes = "$_lt_dar_can_shared"; then
11222     output_verbose_link_cmd=func_echo_all
11223     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11224     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11225     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"
11226     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"
11227
11228   else
11229   ld_shlibs=no
11230   fi
11231
11232       ;;
11233
11234     dgux*)
11235       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11236       hardcode_libdir_flag_spec='-L$libdir'
11237       hardcode_shlibpath_var=no
11238       ;;
11239
11240     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11241     # support.  Future versions do this automatically, but an explicit c++rt0.o
11242     # does not break anything, and helps significantly (at the cost of a little
11243     # extra space).
11244     freebsd2.2*)
11245       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11246       hardcode_libdir_flag_spec='-R$libdir'
11247       hardcode_direct=yes
11248       hardcode_shlibpath_var=no
11249       ;;
11250
11251     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11252     freebsd2.*)
11253       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11254       hardcode_direct=yes
11255       hardcode_minus_L=yes
11256       hardcode_shlibpath_var=no
11257       ;;
11258
11259     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11260     freebsd* | dragonfly*)
11261       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11262       hardcode_libdir_flag_spec='-R$libdir'
11263       hardcode_direct=yes
11264       hardcode_shlibpath_var=no
11265       ;;
11266
11267     hpux9*)
11268       if test yes = "$GCC"; then
11269         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11270       else
11271         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11272       fi
11273       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11274       hardcode_libdir_separator=:
11275       hardcode_direct=yes
11276
11277       # hardcode_minus_L: Not really in the search PATH,
11278       # but as the default location of the library.
11279       hardcode_minus_L=yes
11280       export_dynamic_flag_spec='$wl-E'
11281       ;;
11282
11283     hpux10*)
11284       if test yes,no = "$GCC,$with_gnu_ld"; then
11285         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11286       else
11287         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11288       fi
11289       if test no = "$with_gnu_ld"; then
11290         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11291         hardcode_libdir_separator=:
11292         hardcode_direct=yes
11293         hardcode_direct_absolute=yes
11294         export_dynamic_flag_spec='$wl-E'
11295         # hardcode_minus_L: Not really in the search PATH,
11296         # but as the default location of the library.
11297         hardcode_minus_L=yes
11298       fi
11299       ;;
11300
11301     hpux11*)
11302       if test yes,no = "$GCC,$with_gnu_ld"; then
11303         case $host_cpu in
11304         hppa*64*)
11305           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11306           ;;
11307         ia64*)
11308           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11309           ;;
11310         *)
11311           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11312           ;;
11313         esac
11314       else
11315         case $host_cpu in
11316         hppa*64*)
11317           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11318           ;;
11319         ia64*)
11320           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11321           ;;
11322         *)
11323
11324           # Older versions of the 11.00 compiler do not understand -b yet
11325           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11326           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11327 printf %s "checking if $CC understands -b... " >&6; }
11328 if test ${lt_cv_prog_compiler__b+y}
11329 then :
11330   printf %s "(cached) " >&6
11331 else $as_nop
11332   lt_cv_prog_compiler__b=no
11333    save_LDFLAGS=$LDFLAGS
11334    LDFLAGS="$LDFLAGS -b"
11335    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11336    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11337      # The linker can only warn and ignore the option if not recognized
11338      # So say no if there are warnings
11339      if test -s conftest.err; then
11340        # Append any errors to the config.log.
11341        cat conftest.err 1>&5
11342        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11343        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11344        if diff conftest.exp conftest.er2 >/dev/null; then
11345          lt_cv_prog_compiler__b=yes
11346        fi
11347      else
11348        lt_cv_prog_compiler__b=yes
11349      fi
11350    fi
11351    $RM -r conftest*
11352    LDFLAGS=$save_LDFLAGS
11353
11354 fi
11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11356 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11357
11358 if test yes = "$lt_cv_prog_compiler__b"; then
11359     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11360 else
11361     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11362 fi
11363
11364           ;;
11365         esac
11366       fi
11367       if test no = "$with_gnu_ld"; then
11368         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11369         hardcode_libdir_separator=:
11370
11371         case $host_cpu in
11372         hppa*64*|ia64*)
11373           hardcode_direct=no
11374           hardcode_shlibpath_var=no
11375           ;;
11376         *)
11377           hardcode_direct=yes
11378           hardcode_direct_absolute=yes
11379           export_dynamic_flag_spec='$wl-E'
11380
11381           # hardcode_minus_L: Not really in the search PATH,
11382           # but as the default location of the library.
11383           hardcode_minus_L=yes
11384           ;;
11385         esac
11386       fi
11387       ;;
11388
11389     irix5* | irix6* | nonstopux*)
11390       if test yes = "$GCC"; then
11391         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'
11392         # Try to use the -exported_symbol ld option, if it does not
11393         # work, assume that -exports_file does not work either and
11394         # implicitly export all symbols.
11395         # This should be the same for all languages, so no per-tag cache variable.
11396         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11397 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11398 if test ${lt_cv_irix_exported_symbol+y}
11399 then :
11400   printf %s "(cached) " >&6
11401 else $as_nop
11402   save_LDFLAGS=$LDFLAGS
11403            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11404            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h.  */
11406 int foo (void) { return 0; }
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"
11409 then :
11410   lt_cv_irix_exported_symbol=yes
11411 else $as_nop
11412   lt_cv_irix_exported_symbol=no
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11415     conftest$ac_exeext conftest.$ac_ext
11416            LDFLAGS=$save_LDFLAGS
11417 fi
11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11419 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11420         if test yes = "$lt_cv_irix_exported_symbol"; then
11421           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'
11422         fi
11423         link_all_deplibs=no
11424       else
11425         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'
11426         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'
11427       fi
11428       archive_cmds_need_lc='no'
11429       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11430       hardcode_libdir_separator=:
11431       inherit_rpath=yes
11432       link_all_deplibs=yes
11433       ;;
11434
11435     linux*)
11436       case $cc_basename in
11437       tcc*)
11438         # Fabrice Bellard et al's Tiny C Compiler
11439         ld_shlibs=yes
11440         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11441         ;;
11442       esac
11443       ;;
11444
11445     netbsd* | netbsdelf*-gnu)
11446       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11447         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11448       else
11449         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11450       fi
11451       hardcode_libdir_flag_spec='-R$libdir'
11452       hardcode_direct=yes
11453       hardcode_shlibpath_var=no
11454       ;;
11455
11456     newsos6)
11457       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11458       hardcode_direct=yes
11459       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11460       hardcode_libdir_separator=:
11461       hardcode_shlibpath_var=no
11462       ;;
11463
11464     *nto* | *qnx*)
11465       ;;
11466
11467     openbsd* | bitrig*)
11468       if test -f /usr/libexec/ld.so; then
11469         hardcode_direct=yes
11470         hardcode_shlibpath_var=no
11471         hardcode_direct_absolute=yes
11472         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11473           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11474           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11475           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11476           export_dynamic_flag_spec='$wl-E'
11477         else
11478           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11479           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11480         fi
11481       else
11482         ld_shlibs=no
11483       fi
11484       ;;
11485
11486     os2*)
11487       hardcode_libdir_flag_spec='-L$libdir'
11488       hardcode_minus_L=yes
11489       allow_undefined_flag=unsupported
11490       shrext_cmds=.dll
11491       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11492         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11493         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11494         $ECHO EXPORTS >> $output_objdir/$libname.def~
11495         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11496         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11497         emximp -o $lib $output_objdir/$libname.def'
11498       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11499         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11500         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11501         $ECHO EXPORTS >> $output_objdir/$libname.def~
11502         prefix_cmds="$SED"~
11503         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11504           prefix_cmds="$prefix_cmds -e 1d";
11505         fi~
11506         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11507         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11508         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11509         emximp -o $lib $output_objdir/$libname.def'
11510       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11511       enable_shared_with_static_runtimes=yes
11512       ;;
11513
11514     osf3*)
11515       if test yes = "$GCC"; then
11516         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11517         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'
11518       else
11519         allow_undefined_flag=' -expect_unresolved \*'
11520         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'
11521       fi
11522       archive_cmds_need_lc='no'
11523       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11524       hardcode_libdir_separator=:
11525       ;;
11526
11527     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11528       if test yes = "$GCC"; then
11529         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11530         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'
11531         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11532       else
11533         allow_undefined_flag=' -expect_unresolved \*'
11534         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'
11535         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~
11536           $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'
11537
11538         # Both c and cxx compiler support -rpath directly
11539         hardcode_libdir_flag_spec='-rpath $libdir'
11540       fi
11541       archive_cmds_need_lc='no'
11542       hardcode_libdir_separator=:
11543       ;;
11544
11545     solaris*)
11546       no_undefined_flag=' -z defs'
11547       if test yes = "$GCC"; then
11548         wlarc='$wl'
11549         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11550         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11551           $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'
11552       else
11553         case `$CC -V 2>&1` in
11554         *"Compilers 5.0"*)
11555           wlarc=''
11556           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11557           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11558             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11559           ;;
11560         *)
11561           wlarc='$wl'
11562           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11563           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11564             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11565           ;;
11566         esac
11567       fi
11568       hardcode_libdir_flag_spec='-R$libdir'
11569       hardcode_shlibpath_var=no
11570       case $host_os in
11571       solaris2.[0-5] | solaris2.[0-5].*) ;;
11572       *)
11573         # The compiler driver will combine and reorder linker options,
11574         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11575         # but is careful enough not to reorder.
11576         # Supported since Solaris 2.6 (maybe 2.5.1?)
11577         if test yes = "$GCC"; then
11578           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11579         else
11580           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11581         fi
11582         ;;
11583       esac
11584       link_all_deplibs=yes
11585       ;;
11586
11587     sunos4*)
11588       if test sequent = "$host_vendor"; then
11589         # Use $CC to link under sequent, because it throws in some extra .o
11590         # files that make .init and .fini sections work.
11591         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11592       else
11593         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11594       fi
11595       hardcode_libdir_flag_spec='-L$libdir'
11596       hardcode_direct=yes
11597       hardcode_minus_L=yes
11598       hardcode_shlibpath_var=no
11599       ;;
11600
11601     sysv4)
11602       case $host_vendor in
11603         sni)
11604           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11605           hardcode_direct=yes # is this really true???
11606         ;;
11607         siemens)
11608           ## LD is ld it makes a PLAMLIB
11609           ## CC just makes a GrossModule.
11610           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11611           reload_cmds='$CC -r -o $output$reload_objs'
11612           hardcode_direct=no
11613         ;;
11614         motorola)
11615           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11616           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11617         ;;
11618       esac
11619       runpath_var='LD_RUN_PATH'
11620       hardcode_shlibpath_var=no
11621       ;;
11622
11623     sysv4.3*)
11624       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11625       hardcode_shlibpath_var=no
11626       export_dynamic_flag_spec='-Bexport'
11627       ;;
11628
11629     sysv4*MP*)
11630       if test -d /usr/nec; then
11631         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11632         hardcode_shlibpath_var=no
11633         runpath_var=LD_RUN_PATH
11634         hardcode_runpath_var=yes
11635         ld_shlibs=yes
11636       fi
11637       ;;
11638
11639     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11640       no_undefined_flag='$wl-z,text'
11641       archive_cmds_need_lc=no
11642       hardcode_shlibpath_var=no
11643       runpath_var='LD_RUN_PATH'
11644
11645       if test yes = "$GCC"; then
11646         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11647         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11648       else
11649         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11650         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11651       fi
11652       ;;
11653
11654     sysv5* | sco3.2v5* | sco5v6*)
11655       # Note: We CANNOT use -z defs as we might desire, because we do not
11656       # link with -lc, and that would cause any symbols used from libc to
11657       # always be unresolved, which means just about no library would
11658       # ever link correctly.  If we're not using GNU ld we use -z text
11659       # though, which does catch some bad symbols but isn't as heavy-handed
11660       # as -z defs.
11661       no_undefined_flag='$wl-z,text'
11662       allow_undefined_flag='$wl-z,nodefs'
11663       archive_cmds_need_lc=no
11664       hardcode_shlibpath_var=no
11665       hardcode_libdir_flag_spec='$wl-R,$libdir'
11666       hardcode_libdir_separator=':'
11667       link_all_deplibs=yes
11668       export_dynamic_flag_spec='$wl-Bexport'
11669       runpath_var='LD_RUN_PATH'
11670
11671       if test yes = "$GCC"; then
11672         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11673         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11674       else
11675         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11676         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11677       fi
11678       ;;
11679
11680     uts4*)
11681       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11682       hardcode_libdir_flag_spec='-L$libdir'
11683       hardcode_shlibpath_var=no
11684       ;;
11685
11686     *)
11687       ld_shlibs=no
11688       ;;
11689     esac
11690
11691     if test sni = "$host_vendor"; then
11692       case $host in
11693       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11694         export_dynamic_flag_spec='$wl-Blargedynsym'
11695         ;;
11696       esac
11697     fi
11698   fi
11699
11700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11701 printf "%s\n" "$ld_shlibs" >&6; }
11702 test no = "$ld_shlibs" && can_build_shared=no
11703
11704 with_gnu_ld=$with_gnu_ld
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720 #
11721 # Do we need to explicitly link libc?
11722 #
11723 case "x$archive_cmds_need_lc" in
11724 x|xyes)
11725   # Assume -lc should be added
11726   archive_cmds_need_lc=yes
11727
11728   if test yes,yes = "$GCC,$enable_shared"; then
11729     case $archive_cmds in
11730     *'~'*)
11731       # FIXME: we may have to deal with multi-command sequences.
11732       ;;
11733     '$CC '*)
11734       # Test whether the compiler implicitly links with -lc since on some
11735       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11736       # to ld, don't add -lc before -lgcc.
11737       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11738 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11739 if test ${lt_cv_archive_cmds_need_lc+y}
11740 then :
11741   printf %s "(cached) " >&6
11742 else $as_nop
11743   $RM conftest*
11744         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11745
11746         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11747   (eval $ac_compile) 2>&5
11748   ac_status=$?
11749   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11750   test $ac_status = 0; } 2>conftest.err; then
11751           soname=conftest
11752           lib=conftest
11753           libobjs=conftest.$ac_objext
11754           deplibs=
11755           wl=$lt_prog_compiler_wl
11756           pic_flag=$lt_prog_compiler_pic
11757           compiler_flags=-v
11758           linker_flags=-v
11759           verstring=
11760           output_objdir=.
11761           libname=conftest
11762           lt_save_allow_undefined_flag=$allow_undefined_flag
11763           allow_undefined_flag=
11764           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11765   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11766   ac_status=$?
11767   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11768   test $ac_status = 0; }
11769           then
11770             lt_cv_archive_cmds_need_lc=no
11771           else
11772             lt_cv_archive_cmds_need_lc=yes
11773           fi
11774           allow_undefined_flag=$lt_save_allow_undefined_flag
11775         else
11776           cat conftest.err 1>&5
11777         fi
11778         $RM conftest*
11779
11780 fi
11781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11782 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11783       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11784       ;;
11785     esac
11786   fi
11787   ;;
11788 esac
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11942 printf %s "checking dynamic linker characteristics... " >&6; }
11943
11944 if test yes = "$GCC"; then
11945   case $host_os in
11946     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11947     *) lt_awk_arg='/^libraries:/' ;;
11948   esac
11949   case $host_os in
11950     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11951     *) lt_sed_strip_eq='s|=/|/|g' ;;
11952   esac
11953   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11954   case $lt_search_path_spec in
11955   *\;*)
11956     # if the path contains ";" then we assume it to be the separator
11957     # otherwise default to the standard path separator (i.e. ":") - it is
11958     # assumed that no part of a normal pathname contains ";" but that should
11959     # okay in the real world where ";" in dirpaths is itself problematic.
11960     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11961     ;;
11962   *)
11963     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11964     ;;
11965   esac
11966   # Ok, now we have the path, separated by spaces, we can step through it
11967   # and add multilib dir if necessary...
11968   lt_tmp_lt_search_path_spec=
11969   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11970   # ...but if some path component already ends with the multilib dir we assume
11971   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11972   case "$lt_multi_os_dir; $lt_search_path_spec " in
11973   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11974     lt_multi_os_dir=
11975     ;;
11976   esac
11977   for lt_sys_path in $lt_search_path_spec; do
11978     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11979       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11980     elif test -n "$lt_multi_os_dir"; then
11981       test -d "$lt_sys_path" && \
11982         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11983     fi
11984   done
11985   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11986 BEGIN {RS = " "; FS = "/|\n";} {
11987   lt_foo = "";
11988   lt_count = 0;
11989   for (lt_i = NF; lt_i > 0; lt_i--) {
11990     if ($lt_i != "" && $lt_i != ".") {
11991       if ($lt_i == "..") {
11992         lt_count++;
11993       } else {
11994         if (lt_count == 0) {
11995           lt_foo = "/" $lt_i lt_foo;
11996         } else {
11997           lt_count--;
11998         }
11999       }
12000     }
12001   }
12002   if (lt_foo != "") { lt_freq[lt_foo]++; }
12003   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12004 }'`
12005   # AWK program above erroneously prepends '/' to C:/dos/paths
12006   # for these hosts.
12007   case $host_os in
12008     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12009       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12010   esac
12011   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12012 else
12013   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12014 fi
12015 library_names_spec=
12016 libname_spec='lib$name'
12017 soname_spec=
12018 shrext_cmds=.so
12019 postinstall_cmds=
12020 postuninstall_cmds=
12021 finish_cmds=
12022 finish_eval=
12023 shlibpath_var=
12024 shlibpath_overrides_runpath=unknown
12025 version_type=none
12026 dynamic_linker="$host_os ld.so"
12027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12028 need_lib_prefix=unknown
12029 hardcode_into_libs=no
12030
12031 # when you set need_version to no, make sure it does not cause -set_version
12032 # flags to be left without arguments
12033 need_version=unknown
12034
12035
12036
12037 case $host_os in
12038 aix3*)
12039   version_type=linux # correct to gnu/linux during the next big refactor
12040   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12041   shlibpath_var=LIBPATH
12042
12043   # AIX 3 has no versioning support, so we append a major version to the name.
12044   soname_spec='$libname$release$shared_ext$major'
12045   ;;
12046
12047 aix[4-9]*)
12048   version_type=linux # correct to gnu/linux during the next big refactor
12049   need_lib_prefix=no
12050   need_version=no
12051   hardcode_into_libs=yes
12052   if test ia64 = "$host_cpu"; then
12053     # AIX 5 supports IA64
12054     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12055     shlibpath_var=LD_LIBRARY_PATH
12056   else
12057     # With GCC up to 2.95.x, collect2 would create an import file
12058     # for dependence libraries.  The import file would start with
12059     # the line '#! .'.  This would cause the generated library to
12060     # depend on '.', always an invalid library.  This was fixed in
12061     # development snapshots of GCC prior to 3.0.
12062     case $host_os in
12063       aix4 | aix4.[01] | aix4.[01].*)
12064       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12065            echo ' yes '
12066            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12067         :
12068       else
12069         can_build_shared=no
12070       fi
12071       ;;
12072     esac
12073     # Using Import Files as archive members, it is possible to support
12074     # filename-based versioning of shared library archives on AIX. While
12075     # this would work for both with and without runtime linking, it will
12076     # prevent static linking of such archives. So we do filename-based
12077     # shared library versioning with .so extension only, which is used
12078     # when both runtime linking and shared linking is enabled.
12079     # Unfortunately, runtime linking may impact performance, so we do
12080     # not want this to be the default eventually. Also, we use the
12081     # versioned .so libs for executables only if there is the -brtl
12082     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12083     # To allow for filename-based versioning support, we need to create
12084     # libNAME.so.V as an archive file, containing:
12085     # *) an Import File, referring to the versioned filename of the
12086     #    archive as well as the shared archive member, telling the
12087     #    bitwidth (32 or 64) of that shared object, and providing the
12088     #    list of exported symbols of that shared object, eventually
12089     #    decorated with the 'weak' keyword
12090     # *) the shared object with the F_LOADONLY flag set, to really avoid
12091     #    it being seen by the linker.
12092     # At run time we better use the real file rather than another symlink,
12093     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12094
12095     case $with_aix_soname,$aix_use_runtimelinking in
12096     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12097     # soname into executable. Probably we can add versioning support to
12098     # collect2, so additional links can be useful in future.
12099     aix,yes) # traditional libtool
12100       dynamic_linker='AIX unversionable lib.so'
12101       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12102       # instead of lib<name>.a to let people know that these are not
12103       # typical AIX shared libraries.
12104       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12105       ;;
12106     aix,no) # traditional AIX only
12107       dynamic_linker='AIX lib.a(lib.so.V)'
12108       # We preserve .a as extension for shared libraries through AIX4.2
12109       # and later when we are not doing run time linking.
12110       library_names_spec='$libname$release.a $libname.a'
12111       soname_spec='$libname$release$shared_ext$major'
12112       ;;
12113     svr4,*) # full svr4 only
12114       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12115       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12116       # We do not specify a path in Import Files, so LIBPATH fires.
12117       shlibpath_overrides_runpath=yes
12118       ;;
12119     *,yes) # both, prefer svr4
12120       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12121       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12122       # unpreferred sharedlib libNAME.a needs extra handling
12123       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12124       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12125       # We do not specify a path in Import Files, so LIBPATH fires.
12126       shlibpath_overrides_runpath=yes
12127       ;;
12128     *,no) # both, prefer aix
12129       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12130       library_names_spec='$libname$release.a $libname.a'
12131       soname_spec='$libname$release$shared_ext$major'
12132       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12133       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12134       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12135       ;;
12136     esac
12137     shlibpath_var=LIBPATH
12138   fi
12139   ;;
12140
12141 amigaos*)
12142   case $host_cpu in
12143   powerpc)
12144     # Since July 2007 AmigaOS4 officially supports .so libraries.
12145     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12146     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12147     ;;
12148   m68k)
12149     library_names_spec='$libname.ixlibrary $libname.a'
12150     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12151     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12152     ;;
12153   esac
12154   ;;
12155
12156 beos*)
12157   library_names_spec='$libname$shared_ext'
12158   dynamic_linker="$host_os ld.so"
12159   shlibpath_var=LIBRARY_PATH
12160   ;;
12161
12162 bsdi[45]*)
12163   version_type=linux # correct to gnu/linux during the next big refactor
12164   need_version=no
12165   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12166   soname_spec='$libname$release$shared_ext$major'
12167   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12168   shlibpath_var=LD_LIBRARY_PATH
12169   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12170   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12171   # the default ld.so.conf also contains /usr/contrib/lib and
12172   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12173   # libtool to hard-code these into programs
12174   ;;
12175
12176 cygwin* | mingw* | pw32* | cegcc*)
12177   version_type=windows
12178   shrext_cmds=.dll
12179   need_version=no
12180   need_lib_prefix=no
12181
12182   case $GCC,$cc_basename in
12183   yes,*)
12184     # gcc
12185     library_names_spec='$libname.dll.a'
12186     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12187     postinstall_cmds='base_file=`basename \$file`~
12188       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12189       dldir=$destdir/`dirname \$dlpath`~
12190       test -d \$dldir || mkdir -p \$dldir~
12191       $install_prog $dir/$dlname \$dldir/$dlname~
12192       chmod a+x \$dldir/$dlname~
12193       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12194         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12195       fi'
12196     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12197       dlpath=$dir/\$dldll~
12198        $RM \$dlpath'
12199     shlibpath_overrides_runpath=yes
12200
12201     case $host_os in
12202     cygwin*)
12203       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12204       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12205
12206       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12207       ;;
12208     mingw* | cegcc*)
12209       # MinGW DLLs use traditional 'lib' prefix
12210       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12211       ;;
12212     pw32*)
12213       # pw32 DLLs use 'pw' prefix rather than 'lib'
12214       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12215       ;;
12216     esac
12217     dynamic_linker='Win32 ld.exe'
12218     ;;
12219
12220   *,cl*)
12221     # Native MSVC
12222     libname_spec='$name'
12223     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12224     library_names_spec='$libname.dll.lib'
12225
12226     case $build_os in
12227     mingw*)
12228       sys_lib_search_path_spec=
12229       lt_save_ifs=$IFS
12230       IFS=';'
12231       for lt_path in $LIB
12232       do
12233         IFS=$lt_save_ifs
12234         # Let DOS variable expansion print the short 8.3 style file name.
12235         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12236         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12237       done
12238       IFS=$lt_save_ifs
12239       # Convert to MSYS style.
12240       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12241       ;;
12242     cygwin*)
12243       # Convert to unix form, then to dos form, then back to unix form
12244       # but this time dos style (no spaces!) so that the unix form looks
12245       # like /cygdrive/c/PROGRA~1:/cygdr...
12246       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12247       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12248       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12249       ;;
12250     *)
12251       sys_lib_search_path_spec=$LIB
12252       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12253         # It is most probably a Windows format PATH.
12254         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12255       else
12256         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12257       fi
12258       # FIXME: find the short name or the path components, as spaces are
12259       # common. (e.g. "Program Files" -> "PROGRA~1")
12260       ;;
12261     esac
12262
12263     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12264     postinstall_cmds='base_file=`basename \$file`~
12265       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12266       dldir=$destdir/`dirname \$dlpath`~
12267       test -d \$dldir || mkdir -p \$dldir~
12268       $install_prog $dir/$dlname \$dldir/$dlname'
12269     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12270       dlpath=$dir/\$dldll~
12271        $RM \$dlpath'
12272     shlibpath_overrides_runpath=yes
12273     dynamic_linker='Win32 link.exe'
12274     ;;
12275
12276   *)
12277     # Assume MSVC wrapper
12278     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12279     dynamic_linker='Win32 ld.exe'
12280     ;;
12281   esac
12282   # FIXME: first we should search . and the directory the executable is in
12283   shlibpath_var=PATH
12284   ;;
12285
12286 darwin* | rhapsody*)
12287   dynamic_linker="$host_os dyld"
12288   version_type=darwin
12289   need_lib_prefix=no
12290   need_version=no
12291   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12292   soname_spec='$libname$release$major$shared_ext'
12293   shlibpath_overrides_runpath=yes
12294   shlibpath_var=DYLD_LIBRARY_PATH
12295   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12296
12297   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12298   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12299   ;;
12300
12301 dgux*)
12302   version_type=linux # correct to gnu/linux during the next big refactor
12303   need_lib_prefix=no
12304   need_version=no
12305   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12306   soname_spec='$libname$release$shared_ext$major'
12307   shlibpath_var=LD_LIBRARY_PATH
12308   ;;
12309
12310 freebsd* | dragonfly*)
12311   # DragonFly does not have aout.  When/if they implement a new
12312   # versioning mechanism, adjust this.
12313   if test -x /usr/bin/objformat; then
12314     objformat=`/usr/bin/objformat`
12315   else
12316     case $host_os in
12317     freebsd[23].*) objformat=aout ;;
12318     *) objformat=elf ;;
12319     esac
12320   fi
12321   version_type=freebsd-$objformat
12322   case $version_type in
12323     freebsd-elf*)
12324       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12325       soname_spec='$libname$release$shared_ext$major'
12326       need_version=no
12327       need_lib_prefix=no
12328       ;;
12329     freebsd-*)
12330       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12331       need_version=yes
12332       ;;
12333   esac
12334   shlibpath_var=LD_LIBRARY_PATH
12335   case $host_os in
12336   freebsd2.*)
12337     shlibpath_overrides_runpath=yes
12338     ;;
12339   freebsd3.[01]* | freebsdelf3.[01]*)
12340     shlibpath_overrides_runpath=yes
12341     hardcode_into_libs=yes
12342     ;;
12343   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12344   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12345     shlibpath_overrides_runpath=no
12346     hardcode_into_libs=yes
12347     ;;
12348   *) # from 4.6 on, and DragonFly
12349     shlibpath_overrides_runpath=yes
12350     hardcode_into_libs=yes
12351     ;;
12352   esac
12353   ;;
12354
12355 haiku*)
12356   version_type=linux # correct to gnu/linux during the next big refactor
12357   need_lib_prefix=no
12358   need_version=no
12359   dynamic_linker="$host_os runtime_loader"
12360   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12361   soname_spec='$libname$release$shared_ext$major'
12362   shlibpath_var=LIBRARY_PATH
12363   shlibpath_overrides_runpath=no
12364   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12365   hardcode_into_libs=yes
12366   ;;
12367
12368 hpux9* | hpux10* | hpux11*)
12369   # Give a soname corresponding to the major version so that dld.sl refuses to
12370   # link against other versions.
12371   version_type=sunos
12372   need_lib_prefix=no
12373   need_version=no
12374   case $host_cpu in
12375   ia64*)
12376     shrext_cmds='.so'
12377     hardcode_into_libs=yes
12378     dynamic_linker="$host_os dld.so"
12379     shlibpath_var=LD_LIBRARY_PATH
12380     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12381     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12382     soname_spec='$libname$release$shared_ext$major'
12383     if test 32 = "$HPUX_IA64_MODE"; then
12384       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12385       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12386     else
12387       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12388       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12389     fi
12390     ;;
12391   hppa*64*)
12392     shrext_cmds='.sl'
12393     hardcode_into_libs=yes
12394     dynamic_linker="$host_os dld.sl"
12395     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12396     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12397     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12398     soname_spec='$libname$release$shared_ext$major'
12399     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12400     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12401     ;;
12402   *)
12403     shrext_cmds='.sl'
12404     dynamic_linker="$host_os dld.sl"
12405     shlibpath_var=SHLIB_PATH
12406     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12407     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12408     soname_spec='$libname$release$shared_ext$major'
12409     ;;
12410   esac
12411   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12412   postinstall_cmds='chmod 555 $lib'
12413   # or fails outright, so override atomically:
12414   install_override_mode=555
12415   ;;
12416
12417 interix[3-9]*)
12418   version_type=linux # correct to gnu/linux during the next big refactor
12419   need_lib_prefix=no
12420   need_version=no
12421   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12422   soname_spec='$libname$release$shared_ext$major'
12423   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12424   shlibpath_var=LD_LIBRARY_PATH
12425   shlibpath_overrides_runpath=no
12426   hardcode_into_libs=yes
12427   ;;
12428
12429 irix5* | irix6* | nonstopux*)
12430   case $host_os in
12431     nonstopux*) version_type=nonstopux ;;
12432     *)
12433         if test yes = "$lt_cv_prog_gnu_ld"; then
12434                 version_type=linux # correct to gnu/linux during the next big refactor
12435         else
12436                 version_type=irix
12437         fi ;;
12438   esac
12439   need_lib_prefix=no
12440   need_version=no
12441   soname_spec='$libname$release$shared_ext$major'
12442   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12443   case $host_os in
12444   irix5* | nonstopux*)
12445     libsuff= shlibsuff=
12446     ;;
12447   *)
12448     case $LD in # libtool.m4 will add one of these switches to LD
12449     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12450       libsuff= shlibsuff= libmagic=32-bit;;
12451     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12452       libsuff=32 shlibsuff=N32 libmagic=N32;;
12453     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12454       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12455     *) libsuff= shlibsuff= libmagic=never-match;;
12456     esac
12457     ;;
12458   esac
12459   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12460   shlibpath_overrides_runpath=no
12461   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12462   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12463   hardcode_into_libs=yes
12464   ;;
12465
12466 # No shared lib support for Linux oldld, aout, or coff.
12467 linux*oldld* | linux*aout* | linux*coff*)
12468   dynamic_linker=no
12469   ;;
12470
12471 linux*android*)
12472   version_type=none # Android doesn't support versioned libraries.
12473   need_lib_prefix=no
12474   need_version=no
12475   library_names_spec='$libname$release$shared_ext'
12476   soname_spec='$libname$release$shared_ext'
12477   finish_cmds=
12478   shlibpath_var=LD_LIBRARY_PATH
12479   shlibpath_overrides_runpath=yes
12480
12481   # This implies no fast_install, which is unacceptable.
12482   # Some rework will be needed to allow for fast_install
12483   # before this can be enabled.
12484   hardcode_into_libs=yes
12485
12486   dynamic_linker='Android linker'
12487   # Don't embed -rpath directories since the linker doesn't support them.
12488   hardcode_libdir_flag_spec='-L$libdir'
12489   ;;
12490
12491 # This must be glibc/ELF.
12492 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12493   version_type=linux # correct to gnu/linux during the next big refactor
12494   need_lib_prefix=no
12495   need_version=no
12496   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497   soname_spec='$libname$release$shared_ext$major'
12498   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12499   shlibpath_var=LD_LIBRARY_PATH
12500   shlibpath_overrides_runpath=no
12501
12502   # Some binutils ld are patched to set DT_RUNPATH
12503   if test ${lt_cv_shlibpath_overrides_runpath+y}
12504 then :
12505   printf %s "(cached) " >&6
12506 else $as_nop
12507   lt_cv_shlibpath_overrides_runpath=no
12508     save_LDFLAGS=$LDFLAGS
12509     save_libdir=$libdir
12510     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12511          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h.  */
12514
12515 int
12516 main (void)
12517 {
12518
12519   ;
12520   return 0;
12521 }
12522 _ACEOF
12523 if ac_fn_c_try_link "$LINENO"
12524 then :
12525   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12526 then :
12527   lt_cv_shlibpath_overrides_runpath=yes
12528 fi
12529 fi
12530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12531     conftest$ac_exeext conftest.$ac_ext
12532     LDFLAGS=$save_LDFLAGS
12533     libdir=$save_libdir
12534
12535 fi
12536
12537   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12538
12539   # This implies no fast_install, which is unacceptable.
12540   # Some rework will be needed to allow for fast_install
12541   # before this can be enabled.
12542   hardcode_into_libs=yes
12543
12544   # Ideally, we could use ldconfig to report *all* directores which are
12545   # searched for libraries, however this is still not possible.  Aside from not
12546   # being certain /sbin/ldconfig is available, command
12547   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12548   # even though it is searched at run-time.  Try to do the best guess by
12549   # appending ld.so.conf contents (and includes) to the search path.
12550   if test -f /etc/ld.so.conf; then
12551     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' ' '`
12552     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12553   fi
12554
12555   # We used to test for /lib/ld.so.1 and disable shared libraries on
12556   # powerpc, because MkLinux only supported shared libraries with the
12557   # GNU dynamic linker.  Since this was broken with cross compilers,
12558   # most powerpc-linux boxes support dynamic linking these days and
12559   # people can always --disable-shared, the test was removed, and we
12560   # assume the GNU/Linux dynamic linker is in use.
12561   dynamic_linker='GNU/Linux ld.so'
12562   ;;
12563
12564 netbsdelf*-gnu)
12565   version_type=linux
12566   need_lib_prefix=no
12567   need_version=no
12568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12569   soname_spec='${libname}${release}${shared_ext}$major'
12570   shlibpath_var=LD_LIBRARY_PATH
12571   shlibpath_overrides_runpath=no
12572   hardcode_into_libs=yes
12573   dynamic_linker='NetBSD ld.elf_so'
12574   ;;
12575
12576 netbsd*)
12577   version_type=sunos
12578   need_lib_prefix=no
12579   need_version=no
12580   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12581     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12582     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12583     dynamic_linker='NetBSD (a.out) ld.so'
12584   else
12585     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12586     soname_spec='$libname$release$shared_ext$major'
12587     dynamic_linker='NetBSD ld.elf_so'
12588   fi
12589   shlibpath_var=LD_LIBRARY_PATH
12590   shlibpath_overrides_runpath=yes
12591   hardcode_into_libs=yes
12592   ;;
12593
12594 newsos6)
12595   version_type=linux # correct to gnu/linux during the next big refactor
12596   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12597   shlibpath_var=LD_LIBRARY_PATH
12598   shlibpath_overrides_runpath=yes
12599   ;;
12600
12601 *nto* | *qnx*)
12602   version_type=qnx
12603   need_lib_prefix=no
12604   need_version=no
12605   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12606   soname_spec='$libname$release$shared_ext$major'
12607   shlibpath_var=LD_LIBRARY_PATH
12608   shlibpath_overrides_runpath=no
12609   hardcode_into_libs=yes
12610   dynamic_linker='ldqnx.so'
12611   ;;
12612
12613 openbsd* | bitrig*)
12614   version_type=sunos
12615   sys_lib_dlsearch_path_spec=/usr/lib
12616   need_lib_prefix=no
12617   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12618     need_version=no
12619   else
12620     need_version=yes
12621   fi
12622   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12623   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12624   shlibpath_var=LD_LIBRARY_PATH
12625   shlibpath_overrides_runpath=yes
12626   ;;
12627
12628 os2*)
12629   libname_spec='$name'
12630   version_type=windows
12631   shrext_cmds=.dll
12632   need_version=no
12633   need_lib_prefix=no
12634   # OS/2 can only load a DLL with a base name of 8 characters or less.
12635   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12636     v=$($ECHO $release$versuffix | tr -d .-);
12637     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12638     $ECHO $n$v`$shared_ext'
12639   library_names_spec='${libname}_dll.$libext'
12640   dynamic_linker='OS/2 ld.exe'
12641   shlibpath_var=BEGINLIBPATH
12642   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12643   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12644   postinstall_cmds='base_file=`basename \$file`~
12645     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12646     dldir=$destdir/`dirname \$dlpath`~
12647     test -d \$dldir || mkdir -p \$dldir~
12648     $install_prog $dir/$dlname \$dldir/$dlname~
12649     chmod a+x \$dldir/$dlname~
12650     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12651       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12652     fi'
12653   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12654     dlpath=$dir/\$dldll~
12655     $RM \$dlpath'
12656   ;;
12657
12658 osf3* | osf4* | osf5*)
12659   version_type=osf
12660   need_lib_prefix=no
12661   need_version=no
12662   soname_spec='$libname$release$shared_ext$major'
12663   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12664   shlibpath_var=LD_LIBRARY_PATH
12665   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12666   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12667   ;;
12668
12669 rdos*)
12670   dynamic_linker=no
12671   ;;
12672
12673 solaris*)
12674   version_type=linux # correct to gnu/linux during the next big refactor
12675   need_lib_prefix=no
12676   need_version=no
12677   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12678   soname_spec='$libname$release$shared_ext$major'
12679   shlibpath_var=LD_LIBRARY_PATH
12680   shlibpath_overrides_runpath=yes
12681   hardcode_into_libs=yes
12682   # ldd complains unless libraries are executable
12683   postinstall_cmds='chmod +x $lib'
12684   ;;
12685
12686 sunos4*)
12687   version_type=sunos
12688   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12689   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12690   shlibpath_var=LD_LIBRARY_PATH
12691   shlibpath_overrides_runpath=yes
12692   if test yes = "$with_gnu_ld"; then
12693     need_lib_prefix=no
12694   fi
12695   need_version=yes
12696   ;;
12697
12698 sysv4 | sysv4.3*)
12699   version_type=linux # correct to gnu/linux during the next big refactor
12700   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12701   soname_spec='$libname$release$shared_ext$major'
12702   shlibpath_var=LD_LIBRARY_PATH
12703   case $host_vendor in
12704     sni)
12705       shlibpath_overrides_runpath=no
12706       need_lib_prefix=no
12707       runpath_var=LD_RUN_PATH
12708       ;;
12709     siemens)
12710       need_lib_prefix=no
12711       ;;
12712     motorola)
12713       need_lib_prefix=no
12714       need_version=no
12715       shlibpath_overrides_runpath=no
12716       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12717       ;;
12718   esac
12719   ;;
12720
12721 sysv4*MP*)
12722   if test -d /usr/nec; then
12723     version_type=linux # correct to gnu/linux during the next big refactor
12724     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12725     soname_spec='$libname$shared_ext.$major'
12726     shlibpath_var=LD_LIBRARY_PATH
12727   fi
12728   ;;
12729
12730 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12731   version_type=sco
12732   need_lib_prefix=no
12733   need_version=no
12734   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12735   soname_spec='$libname$release$shared_ext$major'
12736   shlibpath_var=LD_LIBRARY_PATH
12737   shlibpath_overrides_runpath=yes
12738   hardcode_into_libs=yes
12739   if test yes = "$with_gnu_ld"; then
12740     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12741   else
12742     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12743     case $host_os in
12744       sco3.2v5*)
12745         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12746         ;;
12747     esac
12748   fi
12749   sys_lib_dlsearch_path_spec='/usr/lib'
12750   ;;
12751
12752 tpf*)
12753   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12754   version_type=linux # correct to gnu/linux during the next big refactor
12755   need_lib_prefix=no
12756   need_version=no
12757   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12758   shlibpath_var=LD_LIBRARY_PATH
12759   shlibpath_overrides_runpath=no
12760   hardcode_into_libs=yes
12761   ;;
12762
12763 uts4*)
12764   version_type=linux # correct to gnu/linux during the next big refactor
12765   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12766   soname_spec='$libname$release$shared_ext$major'
12767   shlibpath_var=LD_LIBRARY_PATH
12768   ;;
12769
12770 *)
12771   dynamic_linker=no
12772   ;;
12773 esac
12774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12775 printf "%s\n" "$dynamic_linker" >&6; }
12776 test no = "$dynamic_linker" && can_build_shared=no
12777
12778 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12779 if test yes = "$GCC"; then
12780   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12781 fi
12782
12783 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12784   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12785 fi
12786
12787 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12788   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12789 fi
12790
12791 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12792 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12793
12794 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12795 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12796
12797 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12798 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12897 printf %s "checking how to hardcode library paths into programs... " >&6; }
12898 hardcode_action=
12899 if test -n "$hardcode_libdir_flag_spec" ||
12900    test -n "$runpath_var" ||
12901    test yes = "$hardcode_automatic"; then
12902
12903   # We can hardcode non-existent directories.
12904   if test no != "$hardcode_direct" &&
12905      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12906      # have to relink, otherwise we might link with an installed library
12907      # when we should be linking with a yet-to-be-installed one
12908      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12909      test no != "$hardcode_minus_L"; then
12910     # Linking always hardcodes the temporary library directory.
12911     hardcode_action=relink
12912   else
12913     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12914     hardcode_action=immediate
12915   fi
12916 else
12917   # We cannot hardcode anything, or else we can only hardcode existing
12918   # directories.
12919   hardcode_action=unsupported
12920 fi
12921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12922 printf "%s\n" "$hardcode_action" >&6; }
12923
12924 if test relink = "$hardcode_action" ||
12925    test yes = "$inherit_rpath"; then
12926   # Fast installation is not supported
12927   enable_fast_install=no
12928 elif test yes = "$shlibpath_overrides_runpath" ||
12929      test no = "$enable_shared"; then
12930   # Fast installation is not necessary
12931   enable_fast_install=needless
12932 fi
12933
12934
12935
12936
12937
12938
12939   if test yes != "$enable_dlopen"; then
12940   enable_dlopen=unknown
12941   enable_dlopen_self=unknown
12942   enable_dlopen_self_static=unknown
12943 else
12944   lt_cv_dlopen=no
12945   lt_cv_dlopen_libs=
12946
12947   case $host_os in
12948   beos*)
12949     lt_cv_dlopen=load_add_on
12950     lt_cv_dlopen_libs=
12951     lt_cv_dlopen_self=yes
12952     ;;
12953
12954   mingw* | pw32* | cegcc*)
12955     lt_cv_dlopen=LoadLibrary
12956     lt_cv_dlopen_libs=
12957     ;;
12958
12959   cygwin*)
12960     lt_cv_dlopen=dlopen
12961     lt_cv_dlopen_libs=
12962     ;;
12963
12964   darwin*)
12965     # if libdl is installed we need to link against it
12966     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12967 printf %s "checking for dlopen in -ldl... " >&6; }
12968 if test ${ac_cv_lib_dl_dlopen+y}
12969 then :
12970   printf %s "(cached) " >&6
12971 else $as_nop
12972   ac_check_lib_save_LIBS=$LIBS
12973 LIBS="-ldl  $LIBS"
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h.  */
12976
12977 /* Override any GCC internal prototype to avoid an error.
12978    Use char because int might match the return type of a GCC
12979    builtin and then its argument prototype would still apply.  */
12980 char dlopen ();
12981 int
12982 main (void)
12983 {
12984 return dlopen ();
12985   ;
12986   return 0;
12987 }
12988 _ACEOF
12989 if ac_fn_c_try_link "$LINENO"
12990 then :
12991   ac_cv_lib_dl_dlopen=yes
12992 else $as_nop
12993   ac_cv_lib_dl_dlopen=no
12994 fi
12995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12996     conftest$ac_exeext conftest.$ac_ext
12997 LIBS=$ac_check_lib_save_LIBS
12998 fi
12999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13000 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13001 if test "x$ac_cv_lib_dl_dlopen" = xyes
13002 then :
13003   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13004 else $as_nop
13005
13006     lt_cv_dlopen=dyld
13007     lt_cv_dlopen_libs=
13008     lt_cv_dlopen_self=yes
13009
13010 fi
13011
13012     ;;
13013
13014   tpf*)
13015     # Don't try to run any link tests for TPF.  We know it's impossible
13016     # because TPF is a cross-compiler, and we know how we open DSOs.
13017     lt_cv_dlopen=dlopen
13018     lt_cv_dlopen_libs=
13019     lt_cv_dlopen_self=no
13020     ;;
13021
13022   *)
13023     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13024 if test "x$ac_cv_func_shl_load" = xyes
13025 then :
13026   lt_cv_dlopen=shl_load
13027 else $as_nop
13028   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13029 printf %s "checking for shl_load in -ldld... " >&6; }
13030 if test ${ac_cv_lib_dld_shl_load+y}
13031 then :
13032   printf %s "(cached) " >&6
13033 else $as_nop
13034   ac_check_lib_save_LIBS=$LIBS
13035 LIBS="-ldld  $LIBS"
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h.  */
13038
13039 /* Override any GCC internal prototype to avoid an error.
13040    Use char because int might match the return type of a GCC
13041    builtin and then its argument prototype would still apply.  */
13042 char shl_load ();
13043 int
13044 main (void)
13045 {
13046 return shl_load ();
13047   ;
13048   return 0;
13049 }
13050 _ACEOF
13051 if ac_fn_c_try_link "$LINENO"
13052 then :
13053   ac_cv_lib_dld_shl_load=yes
13054 else $as_nop
13055   ac_cv_lib_dld_shl_load=no
13056 fi
13057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13058     conftest$ac_exeext conftest.$ac_ext
13059 LIBS=$ac_check_lib_save_LIBS
13060 fi
13061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13062 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13063 if test "x$ac_cv_lib_dld_shl_load" = xyes
13064 then :
13065   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13066 else $as_nop
13067   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13068 if test "x$ac_cv_func_dlopen" = xyes
13069 then :
13070   lt_cv_dlopen=dlopen
13071 else $as_nop
13072   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13073 printf %s "checking for dlopen in -ldl... " >&6; }
13074 if test ${ac_cv_lib_dl_dlopen+y}
13075 then :
13076   printf %s "(cached) " >&6
13077 else $as_nop
13078   ac_check_lib_save_LIBS=$LIBS
13079 LIBS="-ldl  $LIBS"
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081 /* end confdefs.h.  */
13082
13083 /* Override any GCC internal prototype to avoid an error.
13084    Use char because int might match the return type of a GCC
13085    builtin and then its argument prototype would still apply.  */
13086 char dlopen ();
13087 int
13088 main (void)
13089 {
13090 return dlopen ();
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 if ac_fn_c_try_link "$LINENO"
13096 then :
13097   ac_cv_lib_dl_dlopen=yes
13098 else $as_nop
13099   ac_cv_lib_dl_dlopen=no
13100 fi
13101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13102     conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13104 fi
13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13106 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13107 if test "x$ac_cv_lib_dl_dlopen" = xyes
13108 then :
13109   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13110 else $as_nop
13111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13112 printf %s "checking for dlopen in -lsvld... " >&6; }
13113 if test ${ac_cv_lib_svld_dlopen+y}
13114 then :
13115   printf %s "(cached) " >&6
13116 else $as_nop
13117   ac_check_lib_save_LIBS=$LIBS
13118 LIBS="-lsvld  $LIBS"
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h.  */
13121
13122 /* Override any GCC internal prototype to avoid an error.
13123    Use char because int might match the return type of a GCC
13124    builtin and then its argument prototype would still apply.  */
13125 char dlopen ();
13126 int
13127 main (void)
13128 {
13129 return dlopen ();
13130   ;
13131   return 0;
13132 }
13133 _ACEOF
13134 if ac_fn_c_try_link "$LINENO"
13135 then :
13136   ac_cv_lib_svld_dlopen=yes
13137 else $as_nop
13138   ac_cv_lib_svld_dlopen=no
13139 fi
13140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13141     conftest$ac_exeext conftest.$ac_ext
13142 LIBS=$ac_check_lib_save_LIBS
13143 fi
13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13145 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13146 if test "x$ac_cv_lib_svld_dlopen" = xyes
13147 then :
13148   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13149 else $as_nop
13150   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13151 printf %s "checking for dld_link in -ldld... " >&6; }
13152 if test ${ac_cv_lib_dld_dld_link+y}
13153 then :
13154   printf %s "(cached) " >&6
13155 else $as_nop
13156   ac_check_lib_save_LIBS=$LIBS
13157 LIBS="-ldld  $LIBS"
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h.  */
13160
13161 /* Override any GCC internal prototype to avoid an error.
13162    Use char because int might match the return type of a GCC
13163    builtin and then its argument prototype would still apply.  */
13164 char dld_link ();
13165 int
13166 main (void)
13167 {
13168 return dld_link ();
13169   ;
13170   return 0;
13171 }
13172 _ACEOF
13173 if ac_fn_c_try_link "$LINENO"
13174 then :
13175   ac_cv_lib_dld_dld_link=yes
13176 else $as_nop
13177   ac_cv_lib_dld_dld_link=no
13178 fi
13179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13180     conftest$ac_exeext conftest.$ac_ext
13181 LIBS=$ac_check_lib_save_LIBS
13182 fi
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13184 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13185 if test "x$ac_cv_lib_dld_dld_link" = xyes
13186 then :
13187   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13188 fi
13189
13190
13191 fi
13192
13193
13194 fi
13195
13196
13197 fi
13198
13199
13200 fi
13201
13202
13203 fi
13204
13205     ;;
13206   esac
13207
13208   if test no = "$lt_cv_dlopen"; then
13209     enable_dlopen=no
13210   else
13211     enable_dlopen=yes
13212   fi
13213
13214   case $lt_cv_dlopen in
13215   dlopen)
13216     save_CPPFLAGS=$CPPFLAGS
13217     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13218
13219     save_LDFLAGS=$LDFLAGS
13220     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13221
13222     save_LIBS=$LIBS
13223     LIBS="$lt_cv_dlopen_libs $LIBS"
13224
13225     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13226 printf %s "checking whether a program can dlopen itself... " >&6; }
13227 if test ${lt_cv_dlopen_self+y}
13228 then :
13229   printf %s "(cached) " >&6
13230 else $as_nop
13231           if test yes = "$cross_compiling"; then :
13232   lt_cv_dlopen_self=cross
13233 else
13234   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13235   lt_status=$lt_dlunknown
13236   cat > conftest.$ac_ext <<_LT_EOF
13237 #line $LINENO "configure"
13238 #include "confdefs.h"
13239
13240 #if HAVE_DLFCN_H
13241 #include <dlfcn.h>
13242 #endif
13243
13244 #include <stdio.h>
13245
13246 #ifdef RTLD_GLOBAL
13247 #  define LT_DLGLOBAL           RTLD_GLOBAL
13248 #else
13249 #  ifdef DL_GLOBAL
13250 #    define LT_DLGLOBAL         DL_GLOBAL
13251 #  else
13252 #    define LT_DLGLOBAL         0
13253 #  endif
13254 #endif
13255
13256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13257    find out it does not work in some platform. */
13258 #ifndef LT_DLLAZY_OR_NOW
13259 #  ifdef RTLD_LAZY
13260 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13261 #  else
13262 #    ifdef DL_LAZY
13263 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13264 #    else
13265 #      ifdef RTLD_NOW
13266 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13267 #      else
13268 #        ifdef DL_NOW
13269 #          define LT_DLLAZY_OR_NOW      DL_NOW
13270 #        else
13271 #          define LT_DLLAZY_OR_NOW      0
13272 #        endif
13273 #      endif
13274 #    endif
13275 #  endif
13276 #endif
13277
13278 /* When -fvisibility=hidden is used, assume the code has been annotated
13279    correspondingly for the symbols needed.  */
13280 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13281 int fnord () __attribute__((visibility("default")));
13282 #endif
13283
13284 int fnord () { return 42; }
13285 int main ()
13286 {
13287   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13288   int status = $lt_dlunknown;
13289
13290   if (self)
13291     {
13292       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13293       else
13294         {
13295           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13296           else puts (dlerror ());
13297         }
13298       /* dlclose (self); */
13299     }
13300   else
13301     puts (dlerror ());
13302
13303   return status;
13304 }
13305 _LT_EOF
13306   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13307   (eval $ac_link) 2>&5
13308   ac_status=$?
13309   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13310   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13311     (./conftest; exit; ) >&5 2>/dev/null
13312     lt_status=$?
13313     case x$lt_status in
13314       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13315       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13316       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13317     esac
13318   else :
13319     # compilation failed
13320     lt_cv_dlopen_self=no
13321   fi
13322 fi
13323 rm -fr conftest*
13324
13325
13326 fi
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13328 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13329
13330     if test yes = "$lt_cv_dlopen_self"; then
13331       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13332       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13333 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13334 if test ${lt_cv_dlopen_self_static+y}
13335 then :
13336   printf %s "(cached) " >&6
13337 else $as_nop
13338           if test yes = "$cross_compiling"; then :
13339   lt_cv_dlopen_self_static=cross
13340 else
13341   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13342   lt_status=$lt_dlunknown
13343   cat > conftest.$ac_ext <<_LT_EOF
13344 #line $LINENO "configure"
13345 #include "confdefs.h"
13346
13347 #if HAVE_DLFCN_H
13348 #include <dlfcn.h>
13349 #endif
13350
13351 #include <stdio.h>
13352
13353 #ifdef RTLD_GLOBAL
13354 #  define LT_DLGLOBAL           RTLD_GLOBAL
13355 #else
13356 #  ifdef DL_GLOBAL
13357 #    define LT_DLGLOBAL         DL_GLOBAL
13358 #  else
13359 #    define LT_DLGLOBAL         0
13360 #  endif
13361 #endif
13362
13363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13364    find out it does not work in some platform. */
13365 #ifndef LT_DLLAZY_OR_NOW
13366 #  ifdef RTLD_LAZY
13367 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13368 #  else
13369 #    ifdef DL_LAZY
13370 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13371 #    else
13372 #      ifdef RTLD_NOW
13373 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13374 #      else
13375 #        ifdef DL_NOW
13376 #          define LT_DLLAZY_OR_NOW      DL_NOW
13377 #        else
13378 #          define LT_DLLAZY_OR_NOW      0
13379 #        endif
13380 #      endif
13381 #    endif
13382 #  endif
13383 #endif
13384
13385 /* When -fvisibility=hidden is used, assume the code has been annotated
13386    correspondingly for the symbols needed.  */
13387 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13388 int fnord () __attribute__((visibility("default")));
13389 #endif
13390
13391 int fnord () { return 42; }
13392 int main ()
13393 {
13394   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13395   int status = $lt_dlunknown;
13396
13397   if (self)
13398     {
13399       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13400       else
13401         {
13402           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13403           else puts (dlerror ());
13404         }
13405       /* dlclose (self); */
13406     }
13407   else
13408     puts (dlerror ());
13409
13410   return status;
13411 }
13412 _LT_EOF
13413   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13414   (eval $ac_link) 2>&5
13415   ac_status=$?
13416   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13417   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13418     (./conftest; exit; ) >&5 2>/dev/null
13419     lt_status=$?
13420     case x$lt_status in
13421       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13422       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13423       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13424     esac
13425   else :
13426     # compilation failed
13427     lt_cv_dlopen_self_static=no
13428   fi
13429 fi
13430 rm -fr conftest*
13431
13432
13433 fi
13434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13435 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13436     fi
13437
13438     CPPFLAGS=$save_CPPFLAGS
13439     LDFLAGS=$save_LDFLAGS
13440     LIBS=$save_LIBS
13441     ;;
13442   esac
13443
13444   case $lt_cv_dlopen_self in
13445   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13446   *) enable_dlopen_self=unknown ;;
13447   esac
13448
13449   case $lt_cv_dlopen_self_static in
13450   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13451   *) enable_dlopen_self_static=unknown ;;
13452   esac
13453 fi
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471 striplib=
13472 old_striplib=
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13474 printf %s "checking whether stripping libraries is possible... " >&6; }
13475 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13476   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13477   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13478   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13479 printf "%s\n" "yes" >&6; }
13480 else
13481 # FIXME - insert some real tests, host_os isn't really good enough
13482   case $host_os in
13483   darwin*)
13484     if test -n "$STRIP"; then
13485       striplib="$STRIP -x"
13486       old_striplib="$STRIP -S"
13487       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13488 printf "%s\n" "yes" >&6; }
13489     else
13490       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 printf "%s\n" "no" >&6; }
13492     fi
13493     ;;
13494   *)
13495     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 printf "%s\n" "no" >&6; }
13497     ;;
13498   esac
13499 fi
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512   # Report what library types will actually be built
13513   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13514 printf %s "checking if libtool supports shared libraries... " >&6; }
13515   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13516 printf "%s\n" "$can_build_shared" >&6; }
13517
13518   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13519 printf %s "checking whether to build shared libraries... " >&6; }
13520   test no = "$can_build_shared" && enable_shared=no
13521
13522   # On AIX, shared libraries and static libraries use the same namespace, and
13523   # are all built from PIC.
13524   case $host_os in
13525   aix3*)
13526     test yes = "$enable_shared" && enable_static=no
13527     if test -n "$RANLIB"; then
13528       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13529       postinstall_cmds='$RANLIB $lib'
13530     fi
13531     ;;
13532
13533   aix[4-9]*)
13534     if test ia64 != "$host_cpu"; then
13535       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13536       yes,aix,yes) ;;                   # shared object as lib.so file only
13537       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13538       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13539       esac
13540     fi
13541     ;;
13542   esac
13543   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13544 printf "%s\n" "$enable_shared" >&6; }
13545
13546   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13547 printf %s "checking whether to build static libraries... " >&6; }
13548   # Make sure either enable_shared or enable_static is yes.
13549   test yes = "$enable_shared" || enable_static=yes
13550   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13551 printf "%s\n" "$enable_static" >&6; }
13552
13553
13554
13555
13556 fi
13557 ac_ext=c
13558 ac_cpp='$CPP $CPPFLAGS'
13559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13562
13563 CC=$lt_save_CC
13564
13565       if test -n "$CXX" && ( test no != "$CXX" &&
13566     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13567     (test g++ != "$CXX"))); then
13568   ac_ext=cpp
13569 ac_cpp='$CXXCPP $CPPFLAGS'
13570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13574 printf %s "checking how to run the C++ preprocessor... " >&6; }
13575 if test -z "$CXXCPP"; then
13576   if test ${ac_cv_prog_CXXCPP+y}
13577 then :
13578   printf %s "(cached) " >&6
13579 else $as_nop
13580       # Double quotes because $CXX needs to be expanded
13581     for CXXCPP in "$CXX -E" cpp /lib/cpp
13582     do
13583       ac_preproc_ok=false
13584 for ac_cxx_preproc_warn_flag in '' yes
13585 do
13586   # Use a header file that comes with gcc, so configuring glibc
13587   # with a fresh cross-compiler works.
13588   # On the NeXT, cc -E runs the code through the compiler's parser,
13589   # not just through cpp. "Syntax error" is here to catch this case.
13590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h.  */
13592 #include <limits.h>
13593                      Syntax error
13594 _ACEOF
13595 if ac_fn_cxx_try_cpp "$LINENO"
13596 then :
13597
13598 else $as_nop
13599   # Broken: fails on valid input.
13600 continue
13601 fi
13602 rm -f conftest.err conftest.i conftest.$ac_ext
13603
13604   # OK, works on sane cases.  Now check whether nonexistent headers
13605   # can be detected and how.
13606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h.  */
13608 #include <ac_nonexistent.h>
13609 _ACEOF
13610 if ac_fn_cxx_try_cpp "$LINENO"
13611 then :
13612   # Broken: success on invalid input.
13613 continue
13614 else $as_nop
13615   # Passes both tests.
13616 ac_preproc_ok=:
13617 break
13618 fi
13619 rm -f conftest.err conftest.i conftest.$ac_ext
13620
13621 done
13622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13623 rm -f conftest.i conftest.err conftest.$ac_ext
13624 if $ac_preproc_ok
13625 then :
13626   break
13627 fi
13628
13629     done
13630     ac_cv_prog_CXXCPP=$CXXCPP
13631
13632 fi
13633   CXXCPP=$ac_cv_prog_CXXCPP
13634 else
13635   ac_cv_prog_CXXCPP=$CXXCPP
13636 fi
13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13638 printf "%s\n" "$CXXCPP" >&6; }
13639 ac_preproc_ok=false
13640 for ac_cxx_preproc_warn_flag in '' yes
13641 do
13642   # Use a header file that comes with gcc, so configuring glibc
13643   # with a fresh cross-compiler works.
13644   # On the NeXT, cc -E runs the code through the compiler's parser,
13645   # not just through cpp. "Syntax error" is here to catch this case.
13646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h.  */
13648 #include <limits.h>
13649                      Syntax error
13650 _ACEOF
13651 if ac_fn_cxx_try_cpp "$LINENO"
13652 then :
13653
13654 else $as_nop
13655   # Broken: fails on valid input.
13656 continue
13657 fi
13658 rm -f conftest.err conftest.i conftest.$ac_ext
13659
13660   # OK, works on sane cases.  Now check whether nonexistent headers
13661   # can be detected and how.
13662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h.  */
13664 #include <ac_nonexistent.h>
13665 _ACEOF
13666 if ac_fn_cxx_try_cpp "$LINENO"
13667 then :
13668   # Broken: success on invalid input.
13669 continue
13670 else $as_nop
13671   # Passes both tests.
13672 ac_preproc_ok=:
13673 break
13674 fi
13675 rm -f conftest.err conftest.i conftest.$ac_ext
13676
13677 done
13678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13679 rm -f conftest.i conftest.err conftest.$ac_ext
13680 if $ac_preproc_ok
13681 then :
13682
13683 else $as_nop
13684   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13685 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13686 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13687 See \`config.log' for more details" "$LINENO" 5; }
13688 fi
13689
13690 ac_ext=c
13691 ac_cpp='$CPP $CPPFLAGS'
13692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13695
13696 else
13697   _lt_caught_CXX_error=yes
13698 fi
13699
13700 ac_ext=cpp
13701 ac_cpp='$CXXCPP $CPPFLAGS'
13702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13705
13706 archive_cmds_need_lc_CXX=no
13707 allow_undefined_flag_CXX=
13708 always_export_symbols_CXX=no
13709 archive_expsym_cmds_CXX=
13710 compiler_needs_object_CXX=no
13711 export_dynamic_flag_spec_CXX=
13712 hardcode_direct_CXX=no
13713 hardcode_direct_absolute_CXX=no
13714 hardcode_libdir_flag_spec_CXX=
13715 hardcode_libdir_separator_CXX=
13716 hardcode_minus_L_CXX=no
13717 hardcode_shlibpath_var_CXX=unsupported
13718 hardcode_automatic_CXX=no
13719 inherit_rpath_CXX=no
13720 module_cmds_CXX=
13721 module_expsym_cmds_CXX=
13722 link_all_deplibs_CXX=unknown
13723 old_archive_cmds_CXX=$old_archive_cmds
13724 reload_flag_CXX=$reload_flag
13725 reload_cmds_CXX=$reload_cmds
13726 no_undefined_flag_CXX=
13727 whole_archive_flag_spec_CXX=
13728 enable_shared_with_static_runtimes_CXX=no
13729
13730 # Source file extension for C++ test sources.
13731 ac_ext=cpp
13732
13733 # Object file extension for compiled C++ test sources.
13734 objext=o
13735 objext_CXX=$objext
13736
13737 # No sense in running all these tests if we already determined that
13738 # the CXX compiler isn't working.  Some variables (like enable_shared)
13739 # are currently assumed to apply to all compilers on this platform,
13740 # and will be corrupted by setting them based on a non-working compiler.
13741 if test yes != "$_lt_caught_CXX_error"; then
13742   # Code to be used in simple compile tests
13743   lt_simple_compile_test_code="int some_variable = 0;"
13744
13745   # Code to be used in simple link tests
13746   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13747
13748   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13749
13750
13751
13752
13753
13754
13755 # If no C compiler was specified, use CC.
13756 LTCC=${LTCC-"$CC"}
13757
13758 # If no C compiler flags were specified, use CFLAGS.
13759 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13760
13761 # Allow CC to be a program name with arguments.
13762 compiler=$CC
13763
13764
13765   # save warnings/boilerplate of simple test code
13766   ac_outfile=conftest.$ac_objext
13767 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13768 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13769 _lt_compiler_boilerplate=`cat conftest.err`
13770 $RM conftest*
13771
13772   ac_outfile=conftest.$ac_objext
13773 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13774 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13775 _lt_linker_boilerplate=`cat conftest.err`
13776 $RM -r conftest*
13777
13778
13779   # Allow CC to be a program name with arguments.
13780   lt_save_CC=$CC
13781   lt_save_CFLAGS=$CFLAGS
13782   lt_save_LD=$LD
13783   lt_save_GCC=$GCC
13784   GCC=$GXX
13785   lt_save_with_gnu_ld=$with_gnu_ld
13786   lt_save_path_LD=$lt_cv_path_LD
13787   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13788     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13789   else
13790     $as_unset lt_cv_prog_gnu_ld
13791   fi
13792   if test -n "${lt_cv_path_LDCXX+set}"; then
13793     lt_cv_path_LD=$lt_cv_path_LDCXX
13794   else
13795     $as_unset lt_cv_path_LD
13796   fi
13797   test -z "${LDCXX+set}" || LD=$LDCXX
13798   CC=${CXX-"c++"}
13799   CFLAGS=$CXXFLAGS
13800   compiler=$CC
13801   compiler_CXX=$CC
13802   func_cc_basename $compiler
13803 cc_basename=$func_cc_basename_result
13804
13805
13806   if test -n "$compiler"; then
13807     # We don't want -fno-exception when compiling C++ code, so set the
13808     # no_builtin_flag separately
13809     if test yes = "$GXX"; then
13810       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13811     else
13812       lt_prog_compiler_no_builtin_flag_CXX=
13813     fi
13814
13815     if test yes = "$GXX"; then
13816       # Set up default GNU C++ configuration
13817
13818
13819
13820 # Check whether --with-gnu-ld was given.
13821 if test ${with_gnu_ld+y}
13822 then :
13823   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13824 else $as_nop
13825   with_gnu_ld=no
13826 fi
13827
13828 ac_prog=ld
13829 if test yes = "$GCC"; then
13830   # Check if gcc -print-prog-name=ld gives a path.
13831   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13832 printf %s "checking for ld used by $CC... " >&6; }
13833   case $host in
13834   *-*-mingw*)
13835     # gcc leaves a trailing carriage return, which upsets mingw
13836     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13837   *)
13838     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13839   esac
13840   case $ac_prog in
13841     # Accept absolute paths.
13842     [\\/]* | ?:[\\/]*)
13843       re_direlt='/[^/][^/]*/\.\./'
13844       # Canonicalize the pathname of ld
13845       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13846       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13847         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13848       done
13849       test -z "$LD" && LD=$ac_prog
13850       ;;
13851   "")
13852     # If it fails, then pretend we aren't using GCC.
13853     ac_prog=ld
13854     ;;
13855   *)
13856     # If it is relative, then search for the first ld in PATH.
13857     with_gnu_ld=unknown
13858     ;;
13859   esac
13860 elif test yes = "$with_gnu_ld"; then
13861   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13862 printf %s "checking for GNU ld... " >&6; }
13863 else
13864   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13865 printf %s "checking for non-GNU ld... " >&6; }
13866 fi
13867 if test ${lt_cv_path_LD+y}
13868 then :
13869   printf %s "(cached) " >&6
13870 else $as_nop
13871   if test -z "$LD"; then
13872   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13873   for ac_dir in $PATH; do
13874     IFS=$lt_save_ifs
13875     test -z "$ac_dir" && ac_dir=.
13876     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13877       lt_cv_path_LD=$ac_dir/$ac_prog
13878       # Check to see if the program is GNU ld.  I'd rather use --version,
13879       # but apparently some variants of GNU ld only accept -v.
13880       # Break only if it was the GNU/non-GNU ld that we prefer.
13881       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13882       *GNU* | *'with BFD'*)
13883         test no != "$with_gnu_ld" && break
13884         ;;
13885       *)
13886         test yes != "$with_gnu_ld" && break
13887         ;;
13888       esac
13889     fi
13890   done
13891   IFS=$lt_save_ifs
13892 else
13893   lt_cv_path_LD=$LD # Let the user override the test with a path.
13894 fi
13895 fi
13896
13897 LD=$lt_cv_path_LD
13898 if test -n "$LD"; then
13899   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13900 printf "%s\n" "$LD" >&6; }
13901 else
13902   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903 printf "%s\n" "no" >&6; }
13904 fi
13905 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13907 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
13908 if test ${lt_cv_prog_gnu_ld+y}
13909 then :
13910   printf %s "(cached) " >&6
13911 else $as_nop
13912   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13913 case `$LD -v 2>&1 </dev/null` in
13914 *GNU* | *'with BFD'*)
13915   lt_cv_prog_gnu_ld=yes
13916   ;;
13917 *)
13918   lt_cv_prog_gnu_ld=no
13919   ;;
13920 esac
13921 fi
13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13923 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
13924 with_gnu_ld=$lt_cv_prog_gnu_ld
13925
13926
13927
13928
13929
13930
13931
13932       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13933       # archiving commands below assume that GNU ld is being used.
13934       if test yes = "$with_gnu_ld"; then
13935         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13936         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'
13937
13938         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13939         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13940
13941         # If archive_cmds runs LD, not CC, wlarc should be empty
13942         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13943         #     investigate it a little bit more. (MM)
13944         wlarc='$wl'
13945
13946         # ancient GNU ld didn't support --whole-archive et. al.
13947         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13948           $GREP 'no-whole-archive' > /dev/null; then
13949           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13950         else
13951           whole_archive_flag_spec_CXX=
13952         fi
13953       else
13954         with_gnu_ld=no
13955         wlarc=
13956
13957         # A generic and very simple default shared library creation
13958         # command for GNU C++ for the case where it uses the native
13959         # linker, instead of GNU ld.  If possible, this setting should
13960         # overridden to take advantage of the native linker features on
13961         # the platform it is being used on.
13962         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13963       fi
13964
13965       # Commands to make compiler produce verbose output that lists
13966       # what "hidden" libraries, object files and flags are used when
13967       # linking a shared library.
13968       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13969
13970     else
13971       GXX=no
13972       with_gnu_ld=no
13973       wlarc=
13974     fi
13975
13976     # PORTME: fill in a description of your system's C++ link characteristics
13977     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13978 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13979     ld_shlibs_CXX=yes
13980     case $host_os in
13981       aix3*)
13982         # FIXME: insert proper C++ library support
13983         ld_shlibs_CXX=no
13984         ;;
13985       aix[4-9]*)
13986         if test ia64 = "$host_cpu"; then
13987           # On IA64, the linker does run time linking by default, so we don't
13988           # have to do anything special.
13989           aix_use_runtimelinking=no
13990           exp_sym_flag='-Bexport'
13991           no_entry_flag=
13992         else
13993           aix_use_runtimelinking=no
13994
13995           # Test if we are trying to use run time linking or normal
13996           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13997           # have runtime linking enabled, and use it for executables.
13998           # For shared libraries, we enable/disable runtime linking
13999           # depending on the kind of the shared library created -
14000           # when "with_aix_soname,aix_use_runtimelinking" is:
14001           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14002           # "aix,yes"  lib.so          shared, rtl:yes, for executables
14003           #            lib.a           static archive
14004           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14005           #            lib.a(lib.so.V) shared, rtl:no,  for executables
14006           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14007           #            lib.a(lib.so.V) shared, rtl:no
14008           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14009           #            lib.a           static archive
14010           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14011             for ld_flag in $LDFLAGS; do
14012               case $ld_flag in
14013               *-brtl*)
14014                 aix_use_runtimelinking=yes
14015                 break
14016                 ;;
14017               esac
14018             done
14019             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14020               # With aix-soname=svr4, we create the lib.so.V shared archives only,
14021               # so we don't have lib.a shared libs to link our executables.
14022               # We have to force runtime linking in this case.
14023               aix_use_runtimelinking=yes
14024               LDFLAGS="$LDFLAGS -Wl,-brtl"
14025             fi
14026             ;;
14027           esac
14028
14029           exp_sym_flag='-bexport'
14030           no_entry_flag='-bnoentry'
14031         fi
14032
14033         # When large executables or shared objects are built, AIX ld can
14034         # have problems creating the table of contents.  If linking a library
14035         # or program results in "error TOC overflow" add -mminimal-toc to
14036         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14037         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14038
14039         archive_cmds_CXX=''
14040         hardcode_direct_CXX=yes
14041         hardcode_direct_absolute_CXX=yes
14042         hardcode_libdir_separator_CXX=':'
14043         link_all_deplibs_CXX=yes
14044         file_list_spec_CXX='$wl-f,'
14045         case $with_aix_soname,$aix_use_runtimelinking in
14046         aix,*) ;;       # no import file
14047         svr4,* | *,yes) # use import file
14048           # The Import File defines what to hardcode.
14049           hardcode_direct_CXX=no
14050           hardcode_direct_absolute_CXX=no
14051           ;;
14052         esac
14053
14054         if test yes = "$GXX"; then
14055           case $host_os in aix4.[012]|aix4.[012].*)
14056           # We only want to do this on AIX 4.2 and lower, the check
14057           # below for broken collect2 doesn't work under 4.3+
14058           collect2name=`$CC -print-prog-name=collect2`
14059           if test -f "$collect2name" &&
14060              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14061           then
14062             # We have reworked collect2
14063             :
14064           else
14065             # We have old collect2
14066             hardcode_direct_CXX=unsupported
14067             # It fails to find uninstalled libraries when the uninstalled
14068             # path is not listed in the libpath.  Setting hardcode_minus_L
14069             # to unsupported forces relinking
14070             hardcode_minus_L_CXX=yes
14071             hardcode_libdir_flag_spec_CXX='-L$libdir'
14072             hardcode_libdir_separator_CXX=
14073           fi
14074           esac
14075           shared_flag='-shared'
14076           if test yes = "$aix_use_runtimelinking"; then
14077             shared_flag=$shared_flag' $wl-G'
14078           fi
14079           # Need to ensure runtime linking is disabled for the traditional
14080           # shared library, or the linker may eventually find shared libraries
14081           # /with/ Import File - we do not want to mix them.
14082           shared_flag_aix='-shared'
14083           shared_flag_svr4='-shared $wl-G'
14084         else
14085           # not using gcc
14086           if test ia64 = "$host_cpu"; then
14087           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14088           # chokes on -Wl,-G. The following line is correct:
14089           shared_flag='-G'
14090           else
14091             if test yes = "$aix_use_runtimelinking"; then
14092               shared_flag='$wl-G'
14093             else
14094               shared_flag='$wl-bM:SRE'
14095             fi
14096             shared_flag_aix='$wl-bM:SRE'
14097             shared_flag_svr4='$wl-G'
14098           fi
14099         fi
14100
14101         export_dynamic_flag_spec_CXX='$wl-bexpall'
14102         # It seems that -bexpall does not export symbols beginning with
14103         # underscore (_), so it is better to generate a list of symbols to
14104         # export.
14105         always_export_symbols_CXX=yes
14106         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14107           # Warning - without using the other runtime loading flags (-brtl),
14108           # -berok will link without error, but may produce a broken library.
14109           # The "-G" linker flag allows undefined symbols.
14110           no_undefined_flag_CXX='-bernotok'
14111           # Determine the default libpath from the value encoded in an empty
14112           # executable.
14113           if test set = "${lt_cv_aix_libpath+set}"; then
14114   aix_libpath=$lt_cv_aix_libpath
14115 else
14116   if test ${lt_cv_aix_libpath__CXX+y}
14117 then :
14118   printf %s "(cached) " >&6
14119 else $as_nop
14120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h.  */
14122
14123 int
14124 main (void)
14125 {
14126
14127   ;
14128   return 0;
14129 }
14130 _ACEOF
14131 if ac_fn_cxx_try_link "$LINENO"
14132 then :
14133
14134   lt_aix_libpath_sed='
14135       /Import File Strings/,/^$/ {
14136           /^0/ {
14137               s/^0  *\([^ ]*\) *$/\1/
14138               p
14139           }
14140       }'
14141   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14142   # Check for a 64-bit object if we didn't find anything.
14143   if test -z "$lt_cv_aix_libpath__CXX"; then
14144     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14145   fi
14146 fi
14147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14148     conftest$ac_exeext conftest.$ac_ext
14149   if test -z "$lt_cv_aix_libpath__CXX"; then
14150     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14151   fi
14152
14153 fi
14154
14155   aix_libpath=$lt_cv_aix_libpath__CXX
14156 fi
14157
14158           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14159
14160           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14161         else
14162           if test ia64 = "$host_cpu"; then
14163             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14164             allow_undefined_flag_CXX="-z nodefs"
14165             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"
14166           else
14167             # Determine the default libpath from the value encoded in an
14168             # empty executable.
14169             if test set = "${lt_cv_aix_libpath+set}"; then
14170   aix_libpath=$lt_cv_aix_libpath
14171 else
14172   if test ${lt_cv_aix_libpath__CXX+y}
14173 then :
14174   printf %s "(cached) " >&6
14175 else $as_nop
14176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h.  */
14178
14179 int
14180 main (void)
14181 {
14182
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 if ac_fn_cxx_try_link "$LINENO"
14188 then :
14189
14190   lt_aix_libpath_sed='
14191       /Import File Strings/,/^$/ {
14192           /^0/ {
14193               s/^0  *\([^ ]*\) *$/\1/
14194               p
14195           }
14196       }'
14197   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14198   # Check for a 64-bit object if we didn't find anything.
14199   if test -z "$lt_cv_aix_libpath__CXX"; then
14200     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14201   fi
14202 fi
14203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14204     conftest$ac_exeext conftest.$ac_ext
14205   if test -z "$lt_cv_aix_libpath__CXX"; then
14206     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14207   fi
14208
14209 fi
14210
14211   aix_libpath=$lt_cv_aix_libpath__CXX
14212 fi
14213
14214             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14215             # Warning - without using the other run time loading flags,
14216             # -berok will link without error, but may produce a broken library.
14217             no_undefined_flag_CXX=' $wl-bernotok'
14218             allow_undefined_flag_CXX=' $wl-berok'
14219             if test yes = "$with_gnu_ld"; then
14220               # We only use this code for GNU lds that support --whole-archive.
14221               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14222             else
14223               # Exported symbols can be pulled into shared objects from archives
14224               whole_archive_flag_spec_CXX='$convenience'
14225             fi
14226             archive_cmds_need_lc_CXX=yes
14227             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14228             # -brtl affects multiple linker settings, -berok does not and is overridden later
14229             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14230             if test svr4 != "$with_aix_soname"; then
14231               # This is similar to how AIX traditionally builds its shared
14232               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14233               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14234             fi
14235             if test aix != "$with_aix_soname"; then
14236               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14237             else
14238               # used by -dlpreopen to get the symbols
14239               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14240             fi
14241             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14242           fi
14243         fi
14244         ;;
14245
14246       beos*)
14247         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14248           allow_undefined_flag_CXX=unsupported
14249           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14250           # support --undefined.  This deserves some investigation.  FIXME
14251           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14252         else
14253           ld_shlibs_CXX=no
14254         fi
14255         ;;
14256
14257       chorus*)
14258         case $cc_basename in
14259           *)
14260           # FIXME: insert proper C++ library support
14261           ld_shlibs_CXX=no
14262           ;;
14263         esac
14264         ;;
14265
14266       cygwin* | mingw* | pw32* | cegcc*)
14267         case $GXX,$cc_basename in
14268         ,cl* | no,cl*)
14269           # Native MSVC
14270           # hardcode_libdir_flag_spec is actually meaningless, as there is
14271           # no search path for DLLs.
14272           hardcode_libdir_flag_spec_CXX=' '
14273           allow_undefined_flag_CXX=unsupported
14274           always_export_symbols_CXX=yes
14275           file_list_spec_CXX='@'
14276           # Tell ltmain to make .lib files, not .a files.
14277           libext=lib
14278           # Tell ltmain to make .dll files, not .so files.
14279           shrext_cmds=.dll
14280           # FIXME: Setting linknames here is a bad hack.
14281           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14282           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14283               cp "$export_symbols" "$output_objdir/$soname.def";
14284               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14285             else
14286               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14287             fi~
14288             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14289             linknames='
14290           # The linker will not automatically build a static lib if we build a DLL.
14291           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14292           enable_shared_with_static_runtimes_CXX=yes
14293           # Don't use ranlib
14294           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14295           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14296             lt_tool_outputfile="@TOOL_OUTPUT@"~
14297             case $lt_outputfile in
14298               *.exe|*.EXE) ;;
14299               *)
14300                 lt_outputfile=$lt_outputfile.exe
14301                 lt_tool_outputfile=$lt_tool_outputfile.exe
14302                 ;;
14303             esac~
14304             func_to_tool_file "$lt_outputfile"~
14305             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14306               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14307               $RM "$lt_outputfile.manifest";
14308             fi'
14309           ;;
14310         *)
14311           # g++
14312           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14313           # as there is no search path for DLLs.
14314           hardcode_libdir_flag_spec_CXX='-L$libdir'
14315           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14316           allow_undefined_flag_CXX=unsupported
14317           always_export_symbols_CXX=no
14318           enable_shared_with_static_runtimes_CXX=yes
14319
14320           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14321             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'
14322             # If the export-symbols file already is a .def file, use it as
14323             # is; otherwise, prepend EXPORTS...
14324             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14325               cp $export_symbols $output_objdir/$soname.def;
14326             else
14327               echo EXPORTS > $output_objdir/$soname.def;
14328               cat $export_symbols >> $output_objdir/$soname.def;
14329             fi~
14330             $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'
14331           else
14332             ld_shlibs_CXX=no
14333           fi
14334           ;;
14335         esac
14336         ;;
14337       darwin* | rhapsody*)
14338
14339
14340   archive_cmds_need_lc_CXX=no
14341   hardcode_direct_CXX=no
14342   hardcode_automatic_CXX=yes
14343   hardcode_shlibpath_var_CXX=unsupported
14344   if test yes = "$lt_cv_ld_force_load"; then
14345     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\"`'
14346
14347   else
14348     whole_archive_flag_spec_CXX=''
14349   fi
14350   link_all_deplibs_CXX=yes
14351   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14352   case $cc_basename in
14353      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14354      *) _lt_dar_can_shared=$GCC ;;
14355   esac
14356   if test yes = "$_lt_dar_can_shared"; then
14357     output_verbose_link_cmd=func_echo_all
14358     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"
14359     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14360     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"
14361     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"
14362        if test yes != "$lt_cv_apple_cc_single_mod"; then
14363       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"
14364       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"
14365     fi
14366
14367   else
14368   ld_shlibs_CXX=no
14369   fi
14370
14371         ;;
14372
14373       os2*)
14374         hardcode_libdir_flag_spec_CXX='-L$libdir'
14375         hardcode_minus_L_CXX=yes
14376         allow_undefined_flag_CXX=unsupported
14377         shrext_cmds=.dll
14378         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14379           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14380           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14381           $ECHO EXPORTS >> $output_objdir/$libname.def~
14382           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14383           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14384           emximp -o $lib $output_objdir/$libname.def'
14385         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14386           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14387           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14388           $ECHO EXPORTS >> $output_objdir/$libname.def~
14389           prefix_cmds="$SED"~
14390           if test EXPORTS = "`$SED 1q $export_symbols`"; then
14391             prefix_cmds="$prefix_cmds -e 1d";
14392           fi~
14393           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14394           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14395           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14396           emximp -o $lib $output_objdir/$libname.def'
14397         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14398         enable_shared_with_static_runtimes_CXX=yes
14399         ;;
14400
14401       dgux*)
14402         case $cc_basename in
14403           ec++*)
14404             # FIXME: insert proper C++ library support
14405             ld_shlibs_CXX=no
14406             ;;
14407           ghcx*)
14408             # Green Hills C++ Compiler
14409             # FIXME: insert proper C++ library support
14410             ld_shlibs_CXX=no
14411             ;;
14412           *)
14413             # FIXME: insert proper C++ library support
14414             ld_shlibs_CXX=no
14415             ;;
14416         esac
14417         ;;
14418
14419       freebsd2.*)
14420         # C++ shared libraries reported to be fairly broken before
14421         # switch to ELF
14422         ld_shlibs_CXX=no
14423         ;;
14424
14425       freebsd-elf*)
14426         archive_cmds_need_lc_CXX=no
14427         ;;
14428
14429       freebsd* | dragonfly*)
14430         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14431         # conventions
14432         ld_shlibs_CXX=yes
14433         ;;
14434
14435       haiku*)
14436         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14437         link_all_deplibs_CXX=yes
14438         ;;
14439
14440       hpux9*)
14441         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14442         hardcode_libdir_separator_CXX=:
14443         export_dynamic_flag_spec_CXX='$wl-E'
14444         hardcode_direct_CXX=yes
14445         hardcode_minus_L_CXX=yes # Not in the search PATH,
14446                                              # but as the default
14447                                              # location of the library.
14448
14449         case $cc_basename in
14450           CC*)
14451             # FIXME: insert proper C++ library support
14452             ld_shlibs_CXX=no
14453             ;;
14454           aCC*)
14455             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14456             # Commands to make compiler produce verbose output that lists
14457             # what "hidden" libraries, object files and flags are used when
14458             # linking a shared library.
14459             #
14460             # There doesn't appear to be a way to prevent this compiler from
14461             # explicitly linking system object files so we need to strip them
14462             # from the output so that they don't get included in the library
14463             # dependencies.
14464             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"'
14465             ;;
14466           *)
14467             if test yes = "$GXX"; then
14468               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14469             else
14470               # FIXME: insert proper C++ library support
14471               ld_shlibs_CXX=no
14472             fi
14473             ;;
14474         esac
14475         ;;
14476
14477       hpux10*|hpux11*)
14478         if test no = "$with_gnu_ld"; then
14479           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14480           hardcode_libdir_separator_CXX=:
14481
14482           case $host_cpu in
14483             hppa*64*|ia64*)
14484               ;;
14485             *)
14486               export_dynamic_flag_spec_CXX='$wl-E'
14487               ;;
14488           esac
14489         fi
14490         case $host_cpu in
14491           hppa*64*|ia64*)
14492             hardcode_direct_CXX=no
14493             hardcode_shlibpath_var_CXX=no
14494             ;;
14495           *)
14496             hardcode_direct_CXX=yes
14497             hardcode_direct_absolute_CXX=yes
14498             hardcode_minus_L_CXX=yes # Not in the search PATH,
14499                                                  # but as the default
14500                                                  # location of the library.
14501             ;;
14502         esac
14503
14504         case $cc_basename in
14505           CC*)
14506             # FIXME: insert proper C++ library support
14507             ld_shlibs_CXX=no
14508             ;;
14509           aCC*)
14510             case $host_cpu in
14511               hppa*64*)
14512                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14513                 ;;
14514               ia64*)
14515                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14516                 ;;
14517               *)
14518                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14519                 ;;
14520             esac
14521             # Commands to make compiler produce verbose output that lists
14522             # what "hidden" libraries, object files and flags are used when
14523             # linking a shared library.
14524             #
14525             # There doesn't appear to be a way to prevent this compiler from
14526             # explicitly linking system object files so we need to strip them
14527             # from the output so that they don't get included in the library
14528             # dependencies.
14529             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"'
14530             ;;
14531           *)
14532             if test yes = "$GXX"; then
14533               if test no = "$with_gnu_ld"; then
14534                 case $host_cpu in
14535                   hppa*64*)
14536                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14537                     ;;
14538                   ia64*)
14539                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14540                     ;;
14541                   *)
14542                     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'
14543                     ;;
14544                 esac
14545               fi
14546             else
14547               # FIXME: insert proper C++ library support
14548               ld_shlibs_CXX=no
14549             fi
14550             ;;
14551         esac
14552         ;;
14553
14554       interix[3-9]*)
14555         hardcode_direct_CXX=no
14556         hardcode_shlibpath_var_CXX=no
14557         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14558         export_dynamic_flag_spec_CXX='$wl-E'
14559         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14560         # Instead, shared libraries are loaded at an image base (0x10000000 by
14561         # default) and relocated if they conflict, which is a slow very memory
14562         # consuming and fragmenting process.  To avoid this, we pick a random,
14563         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14564         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14565         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'
14566         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'
14567         ;;
14568       irix5* | irix6*)
14569         case $cc_basename in
14570           CC*)
14571             # SGI C++
14572             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'
14573
14574             # Archives containing C++ object files must be created using
14575             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14576             # necessary to make sure instantiated templates are included
14577             # in the archive.
14578             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14579             ;;
14580           *)
14581             if test yes = "$GXX"; then
14582               if test no = "$with_gnu_ld"; then
14583                 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'
14584               else
14585                 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'
14586               fi
14587             fi
14588             link_all_deplibs_CXX=yes
14589             ;;
14590         esac
14591         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14592         hardcode_libdir_separator_CXX=:
14593         inherit_rpath_CXX=yes
14594         ;;
14595
14596       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14597         case $cc_basename in
14598           KCC*)
14599             # Kuck and Associates, Inc. (KAI) C++ Compiler
14600
14601             # KCC will only create a shared library if the output file
14602             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14603             # to its proper name (with version) after linking.
14604             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'
14605             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'
14606             # Commands to make compiler produce verbose output that lists
14607             # what "hidden" libraries, object files and flags are used when
14608             # linking a shared library.
14609             #
14610             # There doesn't appear to be a way to prevent this compiler from
14611             # explicitly linking system object files so we need to strip them
14612             # from the output so that they don't get included in the library
14613             # dependencies.
14614             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"'
14615
14616             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14617             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14618
14619             # Archives containing C++ object files must be created using
14620             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14621             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14622             ;;
14623           icpc* | ecpc* )
14624             # Intel C++
14625             with_gnu_ld=yes
14626             # version 8.0 and above of icpc choke on multiply defined symbols
14627             # if we add $predep_objects and $postdep_objects, however 7.1 and
14628             # earlier do not add the objects themselves.
14629             case `$CC -V 2>&1` in
14630               *"Version 7."*)
14631                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14632                 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'
14633                 ;;
14634               *)  # Version 8.0 or newer
14635                 tmp_idyn=
14636                 case $host_cpu in
14637                   ia64*) tmp_idyn=' -i_dynamic';;
14638                 esac
14639                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14640                 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'
14641                 ;;
14642             esac
14643             archive_cmds_need_lc_CXX=no
14644             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14645             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14646             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14647             ;;
14648           pgCC* | pgcpp*)
14649             # Portland Group C++ compiler
14650             case `$CC -V` in
14651             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14652               prelink_cmds_CXX='tpldir=Template.dir~
14653                rm -rf $tpldir~
14654                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14655                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14656               old_archive_cmds_CXX='tpldir=Template.dir~
14657                 rm -rf $tpldir~
14658                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14659                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14660                 $RANLIB $oldlib'
14661               archive_cmds_CXX='tpldir=Template.dir~
14662                 rm -rf $tpldir~
14663                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14664                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14665               archive_expsym_cmds_CXX='tpldir=Template.dir~
14666                 rm -rf $tpldir~
14667                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14668                 $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'
14669               ;;
14670             *) # Version 6 and above use weak symbols
14671               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14672               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'
14673               ;;
14674             esac
14675
14676             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14677             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14678             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'
14679             ;;
14680           cxx*)
14681             # Compaq C++
14682             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14683             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'
14684
14685             runpath_var=LD_RUN_PATH
14686             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14687             hardcode_libdir_separator_CXX=:
14688
14689             # Commands to make compiler produce verbose output that lists
14690             # what "hidden" libraries, object files and flags are used when
14691             # linking a shared library.
14692             #
14693             # There doesn't appear to be a way to prevent this compiler from
14694             # explicitly linking system object files so we need to strip them
14695             # from the output so that they don't get included in the library
14696             # dependencies.
14697             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'
14698             ;;
14699           xl* | mpixl* | bgxl*)
14700             # IBM XL 8.0 on PPC, with GNU ld
14701             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14702             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14703             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14704             if test yes = "$supports_anon_versioning"; then
14705               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14706                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14707                 echo "local: *; };" >> $output_objdir/$libname.ver~
14708                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14709             fi
14710             ;;
14711           *)
14712             case `$CC -V 2>&1 | sed 5q` in
14713             *Sun\ C*)
14714               # Sun C++ 5.9
14715               no_undefined_flag_CXX=' -zdefs'
14716               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14717               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'
14718               hardcode_libdir_flag_spec_CXX='-R$libdir'
14719               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'
14720               compiler_needs_object_CXX=yes
14721
14722               # Not sure whether something based on
14723               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14724               # would be better.
14725               output_verbose_link_cmd='func_echo_all'
14726
14727               # Archives containing C++ object files must be created using
14728               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14729               # necessary to make sure instantiated templates are included
14730               # in the archive.
14731               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14732               ;;
14733             esac
14734             ;;
14735         esac
14736         ;;
14737
14738       lynxos*)
14739         # FIXME: insert proper C++ library support
14740         ld_shlibs_CXX=no
14741         ;;
14742
14743       m88k*)
14744         # FIXME: insert proper C++ library support
14745         ld_shlibs_CXX=no
14746         ;;
14747
14748       mvs*)
14749         case $cc_basename in
14750           cxx*)
14751             # FIXME: insert proper C++ library support
14752             ld_shlibs_CXX=no
14753             ;;
14754           *)
14755             # FIXME: insert proper C++ library support
14756             ld_shlibs_CXX=no
14757             ;;
14758         esac
14759         ;;
14760
14761       netbsd*)
14762         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14763           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14764           wlarc=
14765           hardcode_libdir_flag_spec_CXX='-R$libdir'
14766           hardcode_direct_CXX=yes
14767           hardcode_shlibpath_var_CXX=no
14768         fi
14769         # Workaround some broken pre-1.5 toolchains
14770         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14771         ;;
14772
14773       *nto* | *qnx*)
14774         ld_shlibs_CXX=yes
14775         ;;
14776
14777       openbsd* | bitrig*)
14778         if test -f /usr/libexec/ld.so; then
14779           hardcode_direct_CXX=yes
14780           hardcode_shlibpath_var_CXX=no
14781           hardcode_direct_absolute_CXX=yes
14782           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14783           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14784           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14785             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14786             export_dynamic_flag_spec_CXX='$wl-E'
14787             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14788           fi
14789           output_verbose_link_cmd=func_echo_all
14790         else
14791           ld_shlibs_CXX=no
14792         fi
14793         ;;
14794
14795       osf3* | osf4* | osf5*)
14796         case $cc_basename in
14797           KCC*)
14798             # Kuck and Associates, Inc. (KAI) C++ Compiler
14799
14800             # KCC will only create a shared library if the output file
14801             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14802             # to its proper name (with version) after linking.
14803             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'
14804
14805             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14806             hardcode_libdir_separator_CXX=:
14807
14808             # Archives containing C++ object files must be created using
14809             # the KAI C++ compiler.
14810             case $host in
14811               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14812               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14813             esac
14814             ;;
14815           RCC*)
14816             # Rational C++ 2.4.1
14817             # FIXME: insert proper C++ library support
14818             ld_shlibs_CXX=no
14819             ;;
14820           cxx*)
14821             case $host in
14822               osf3*)
14823                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14824                 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'
14825                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14826                 ;;
14827               *)
14828                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14829                 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'
14830                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14831                   echo "-hidden">> $lib.exp~
14832                   $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~
14833                   $RM $lib.exp'
14834                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14835                 ;;
14836             esac
14837
14838             hardcode_libdir_separator_CXX=:
14839
14840             # Commands to make compiler produce verbose output that lists
14841             # what "hidden" libraries, object files and flags are used when
14842             # linking a shared library.
14843             #
14844             # There doesn't appear to be a way to prevent this compiler from
14845             # explicitly linking system object files so we need to strip them
14846             # from the output so that they don't get included in the library
14847             # dependencies.
14848             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"'
14849             ;;
14850           *)
14851             if test yes,no = "$GXX,$with_gnu_ld"; then
14852               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14853               case $host in
14854                 osf3*)
14855                   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'
14856                   ;;
14857                 *)
14858                   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'
14859                   ;;
14860               esac
14861
14862               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14863               hardcode_libdir_separator_CXX=:
14864
14865               # Commands to make compiler produce verbose output that lists
14866               # what "hidden" libraries, object files and flags are used when
14867               # linking a shared library.
14868               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14869
14870             else
14871               # FIXME: insert proper C++ library support
14872               ld_shlibs_CXX=no
14873             fi
14874             ;;
14875         esac
14876         ;;
14877
14878       psos*)
14879         # FIXME: insert proper C++ library support
14880         ld_shlibs_CXX=no
14881         ;;
14882
14883       sunos4*)
14884         case $cc_basename in
14885           CC*)
14886             # Sun C++ 4.x
14887             # FIXME: insert proper C++ library support
14888             ld_shlibs_CXX=no
14889             ;;
14890           lcc*)
14891             # Lucid
14892             # FIXME: insert proper C++ library support
14893             ld_shlibs_CXX=no
14894             ;;
14895           *)
14896             # FIXME: insert proper C++ library support
14897             ld_shlibs_CXX=no
14898             ;;
14899         esac
14900         ;;
14901
14902       solaris*)
14903         case $cc_basename in
14904           CC* | sunCC*)
14905             # Sun C++ 4.2, 5.x and Centerline C++
14906             archive_cmds_need_lc_CXX=yes
14907             no_undefined_flag_CXX=' -zdefs'
14908             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14909             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14910               $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'
14911
14912             hardcode_libdir_flag_spec_CXX='-R$libdir'
14913             hardcode_shlibpath_var_CXX=no
14914             case $host_os in
14915               solaris2.[0-5] | solaris2.[0-5].*) ;;
14916               *)
14917                 # The compiler driver will combine and reorder linker options,
14918                 # but understands '-z linker_flag'.
14919                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14920                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14921                 ;;
14922             esac
14923             link_all_deplibs_CXX=yes
14924
14925             output_verbose_link_cmd='func_echo_all'
14926
14927             # Archives containing C++ object files must be created using
14928             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14929             # necessary to make sure instantiated templates are included
14930             # in the archive.
14931             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14932             ;;
14933           gcx*)
14934             # Green Hills C++ Compiler
14935             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14936
14937             # The C++ compiler must be used to create the archive.
14938             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14939             ;;
14940           *)
14941             # GNU C++ compiler with Solaris linker
14942             if test yes,no = "$GXX,$with_gnu_ld"; then
14943               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14944               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14945                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14946                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14947                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14948
14949                 # Commands to make compiler produce verbose output that lists
14950                 # what "hidden" libraries, object files and flags are used when
14951                 # linking a shared library.
14952                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14953               else
14954                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14955                 # platform.
14956                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14957                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14958                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14959
14960                 # Commands to make compiler produce verbose output that lists
14961                 # what "hidden" libraries, object files and flags are used when
14962                 # linking a shared library.
14963                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14964               fi
14965
14966               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14967               case $host_os in
14968                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14969                 *)
14970                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14971                   ;;
14972               esac
14973             fi
14974             ;;
14975         esac
14976         ;;
14977
14978     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14979       no_undefined_flag_CXX='$wl-z,text'
14980       archive_cmds_need_lc_CXX=no
14981       hardcode_shlibpath_var_CXX=no
14982       runpath_var='LD_RUN_PATH'
14983
14984       case $cc_basename in
14985         CC*)
14986           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14987           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14988           ;;
14989         *)
14990           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992           ;;
14993       esac
14994       ;;
14995
14996       sysv5* | sco3.2v5* | sco5v6*)
14997         # Note: We CANNOT use -z defs as we might desire, because we do not
14998         # link with -lc, and that would cause any symbols used from libc to
14999         # always be unresolved, which means just about no library would
15000         # ever link correctly.  If we're not using GNU ld we use -z text
15001         # though, which does catch some bad symbols but isn't as heavy-handed
15002         # as -z defs.
15003         no_undefined_flag_CXX='$wl-z,text'
15004         allow_undefined_flag_CXX='$wl-z,nodefs'
15005         archive_cmds_need_lc_CXX=no
15006         hardcode_shlibpath_var_CXX=no
15007         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15008         hardcode_libdir_separator_CXX=':'
15009         link_all_deplibs_CXX=yes
15010         export_dynamic_flag_spec_CXX='$wl-Bexport'
15011         runpath_var='LD_RUN_PATH'
15012
15013         case $cc_basename in
15014           CC*)
15015             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15016             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15017             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15018               '"$old_archive_cmds_CXX"
15019             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15020               '"$reload_cmds_CXX"
15021             ;;
15022           *)
15023             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15024             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15025             ;;
15026         esac
15027       ;;
15028
15029       tandem*)
15030         case $cc_basename in
15031           NCC*)
15032             # NonStop-UX NCC 3.20
15033             # FIXME: insert proper C++ library support
15034             ld_shlibs_CXX=no
15035             ;;
15036           *)
15037             # FIXME: insert proper C++ library support
15038             ld_shlibs_CXX=no
15039             ;;
15040         esac
15041         ;;
15042
15043       vxworks*)
15044         # FIXME: insert proper C++ library support
15045         ld_shlibs_CXX=no
15046         ;;
15047
15048       *)
15049         # FIXME: insert proper C++ library support
15050         ld_shlibs_CXX=no
15051         ;;
15052     esac
15053
15054     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15055 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15056     test no = "$ld_shlibs_CXX" && can_build_shared=no
15057
15058     GCC_CXX=$GXX
15059     LD_CXX=$LD
15060
15061     ## CAVEAT EMPTOR:
15062     ## There is no encapsulation within the following macros, do not change
15063     ## the running order or otherwise move them around unless you know exactly
15064     ## what you are doing...
15065     # Dependencies to place before and after the object being linked:
15066 predep_objects_CXX=
15067 postdep_objects_CXX=
15068 predeps_CXX=
15069 postdeps_CXX=
15070 compiler_lib_search_path_CXX=
15071
15072 cat > conftest.$ac_ext <<_LT_EOF
15073 class Foo
15074 {
15075 public:
15076   Foo (void) { a = 0; }
15077 private:
15078   int a;
15079 };
15080 _LT_EOF
15081
15082
15083 _lt_libdeps_save_CFLAGS=$CFLAGS
15084 case "$CC $CFLAGS " in #(
15085 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15086 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15087 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15088 esac
15089
15090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15091   (eval $ac_compile) 2>&5
15092   ac_status=$?
15093   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15094   test $ac_status = 0; }; then
15095   # Parse the compiler output and extract the necessary
15096   # objects, libraries and library flags.
15097
15098   # Sentinel used to keep track of whether or not we are before
15099   # the conftest object file.
15100   pre_test_object_deps_done=no
15101
15102   for p in `eval "$output_verbose_link_cmd"`; do
15103     case $prev$p in
15104
15105     -L* | -R* | -l*)
15106        # Some compilers place space between "-{L,R}" and the path.
15107        # Remove the space.
15108        if test x-L = "$p" ||
15109           test x-R = "$p"; then
15110          prev=$p
15111          continue
15112        fi
15113
15114        # Expand the sysroot to ease extracting the directories later.
15115        if test -z "$prev"; then
15116          case $p in
15117          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15118          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15119          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15120          esac
15121        fi
15122        case $p in
15123        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15124        esac
15125        if test no = "$pre_test_object_deps_done"; then
15126          case $prev in
15127          -L | -R)
15128            # Internal compiler library paths should come after those
15129            # provided the user.  The postdeps already come after the
15130            # user supplied libs so there is no need to process them.
15131            if test -z "$compiler_lib_search_path_CXX"; then
15132              compiler_lib_search_path_CXX=$prev$p
15133            else
15134              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15135            fi
15136            ;;
15137          # The "-l" case would never come before the object being
15138          # linked, so don't bother handling this case.
15139          esac
15140        else
15141          if test -z "$postdeps_CXX"; then
15142            postdeps_CXX=$prev$p
15143          else
15144            postdeps_CXX="${postdeps_CXX} $prev$p"
15145          fi
15146        fi
15147        prev=
15148        ;;
15149
15150     *.lto.$objext) ;; # Ignore GCC LTO objects
15151     *.$objext)
15152        # This assumes that the test object file only shows up
15153        # once in the compiler output.
15154        if test "$p" = "conftest.$objext"; then
15155          pre_test_object_deps_done=yes
15156          continue
15157        fi
15158
15159        if test no = "$pre_test_object_deps_done"; then
15160          if test -z "$predep_objects_CXX"; then
15161            predep_objects_CXX=$p
15162          else
15163            predep_objects_CXX="$predep_objects_CXX $p"
15164          fi
15165        else
15166          if test -z "$postdep_objects_CXX"; then
15167            postdep_objects_CXX=$p
15168          else
15169            postdep_objects_CXX="$postdep_objects_CXX $p"
15170          fi
15171        fi
15172        ;;
15173
15174     *) ;; # Ignore the rest.
15175
15176     esac
15177   done
15178
15179   # Clean up.
15180   rm -f a.out a.exe
15181 else
15182   echo "libtool.m4: error: problem compiling CXX test program"
15183 fi
15184
15185 $RM -f confest.$objext
15186 CFLAGS=$_lt_libdeps_save_CFLAGS
15187
15188 # PORTME: override above test on systems where it is broken
15189 case $host_os in
15190 interix[3-9]*)
15191   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15192   # hack all around it, let's just trust "g++" to DTRT.
15193   predep_objects_CXX=
15194   postdep_objects_CXX=
15195   postdeps_CXX=
15196   ;;
15197 esac
15198
15199
15200 case " $postdeps_CXX " in
15201 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15202 esac
15203  compiler_lib_search_dirs_CXX=
15204 if test -n "${compiler_lib_search_path_CXX}"; then
15205  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15206 fi
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238     lt_prog_compiler_wl_CXX=
15239 lt_prog_compiler_pic_CXX=
15240 lt_prog_compiler_static_CXX=
15241
15242
15243   # C++ specific cases for pic, static, wl, etc.
15244   if test yes = "$GXX"; then
15245     lt_prog_compiler_wl_CXX='-Wl,'
15246     lt_prog_compiler_static_CXX='-static'
15247
15248     case $host_os in
15249     aix*)
15250       # All AIX code is PIC.
15251       if test ia64 = "$host_cpu"; then
15252         # AIX 5 now supports IA64 processor
15253         lt_prog_compiler_static_CXX='-Bstatic'
15254       fi
15255       lt_prog_compiler_pic_CXX='-fPIC'
15256       ;;
15257
15258     amigaos*)
15259       case $host_cpu in
15260       powerpc)
15261             # see comment about AmigaOS4 .so support
15262             lt_prog_compiler_pic_CXX='-fPIC'
15263         ;;
15264       m68k)
15265             # FIXME: we need at least 68020 code to build shared libraries, but
15266             # adding the '-m68020' flag to GCC prevents building anything better,
15267             # like '-m68040'.
15268             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15269         ;;
15270       esac
15271       ;;
15272
15273     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15274       # PIC is the default for these OSes.
15275       ;;
15276     mingw* | cygwin* | os2* | pw32* | cegcc*)
15277       # This hack is so that the source file can tell whether it is being
15278       # built for inclusion in a dll (and should export symbols for example).
15279       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15280       # (--disable-auto-import) libraries
15281       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15282       case $host_os in
15283       os2*)
15284         lt_prog_compiler_static_CXX='$wl-static'
15285         ;;
15286       esac
15287       ;;
15288     darwin* | rhapsody*)
15289       # PIC is the default on this platform
15290       # Common symbols not allowed in MH_DYLIB files
15291       lt_prog_compiler_pic_CXX='-fno-common'
15292       ;;
15293     *djgpp*)
15294       # DJGPP does not support shared libraries at all
15295       lt_prog_compiler_pic_CXX=
15296       ;;
15297     haiku*)
15298       # PIC is the default for Haiku.
15299       # The "-static" flag exists, but is broken.
15300       lt_prog_compiler_static_CXX=
15301       ;;
15302     interix[3-9]*)
15303       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15304       # Instead, we relocate shared libraries at runtime.
15305       ;;
15306     sysv4*MP*)
15307       if test -d /usr/nec; then
15308         lt_prog_compiler_pic_CXX=-Kconform_pic
15309       fi
15310       ;;
15311     hpux*)
15312       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15313       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15314       # sets the default TLS model and affects inlining.
15315       case $host_cpu in
15316       hppa*64*)
15317         ;;
15318       *)
15319         lt_prog_compiler_pic_CXX='-fPIC'
15320         ;;
15321       esac
15322       ;;
15323     *qnx* | *nto*)
15324       # QNX uses GNU C++, but need to define -shared option too, otherwise
15325       # it will coredump.
15326       lt_prog_compiler_pic_CXX='-fPIC -shared'
15327       ;;
15328     *)
15329       lt_prog_compiler_pic_CXX='-fPIC'
15330       ;;
15331     esac
15332   else
15333     case $host_os in
15334       aix[4-9]*)
15335         # All AIX code is PIC.
15336         if test ia64 = "$host_cpu"; then
15337           # AIX 5 now supports IA64 processor
15338           lt_prog_compiler_static_CXX='-Bstatic'
15339         else
15340           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15341         fi
15342         ;;
15343       chorus*)
15344         case $cc_basename in
15345         cxch68*)
15346           # Green Hills C++ Compiler
15347           # _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"
15348           ;;
15349         esac
15350         ;;
15351       mingw* | cygwin* | os2* | pw32* | cegcc*)
15352         # This hack is so that the source file can tell whether it is being
15353         # built for inclusion in a dll (and should export symbols for example).
15354         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15355         ;;
15356       dgux*)
15357         case $cc_basename in
15358           ec++*)
15359             lt_prog_compiler_pic_CXX='-KPIC'
15360             ;;
15361           ghcx*)
15362             # Green Hills C++ Compiler
15363             lt_prog_compiler_pic_CXX='-pic'
15364             ;;
15365           *)
15366             ;;
15367         esac
15368         ;;
15369       freebsd* | dragonfly*)
15370         # FreeBSD uses GNU C++
15371         ;;
15372       hpux9* | hpux10* | hpux11*)
15373         case $cc_basename in
15374           CC*)
15375             lt_prog_compiler_wl_CXX='-Wl,'
15376             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15377             if test ia64 != "$host_cpu"; then
15378               lt_prog_compiler_pic_CXX='+Z'
15379             fi
15380             ;;
15381           aCC*)
15382             lt_prog_compiler_wl_CXX='-Wl,'
15383             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15384             case $host_cpu in
15385             hppa*64*|ia64*)
15386               # +Z the default
15387               ;;
15388             *)
15389               lt_prog_compiler_pic_CXX='+Z'
15390               ;;
15391             esac
15392             ;;
15393           *)
15394             ;;
15395         esac
15396         ;;
15397       interix*)
15398         # This is c89, which is MS Visual C++ (no shared libs)
15399         # Anyone wants to do a port?
15400         ;;
15401       irix5* | irix6* | nonstopux*)
15402         case $cc_basename in
15403           CC*)
15404             lt_prog_compiler_wl_CXX='-Wl,'
15405             lt_prog_compiler_static_CXX='-non_shared'
15406             # CC pic flag -KPIC is the default.
15407             ;;
15408           *)
15409             ;;
15410         esac
15411         ;;
15412       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15413         case $cc_basename in
15414           KCC*)
15415             # KAI C++ Compiler
15416             lt_prog_compiler_wl_CXX='--backend -Wl,'
15417             lt_prog_compiler_pic_CXX='-fPIC'
15418             ;;
15419           ecpc* )
15420             # old Intel C++ for x86_64, which still supported -KPIC.
15421             lt_prog_compiler_wl_CXX='-Wl,'
15422             lt_prog_compiler_pic_CXX='-KPIC'
15423             lt_prog_compiler_static_CXX='-static'
15424             ;;
15425           icpc* )
15426             # Intel C++, used to be incompatible with GCC.
15427             # ICC 10 doesn't accept -KPIC any more.
15428             lt_prog_compiler_wl_CXX='-Wl,'
15429             lt_prog_compiler_pic_CXX='-fPIC'
15430             lt_prog_compiler_static_CXX='-static'
15431             ;;
15432           pgCC* | pgcpp*)
15433             # Portland Group C++ compiler
15434             lt_prog_compiler_wl_CXX='-Wl,'
15435             lt_prog_compiler_pic_CXX='-fpic'
15436             lt_prog_compiler_static_CXX='-Bstatic'
15437             ;;
15438           cxx*)
15439             # Compaq C++
15440             # Make sure the PIC flag is empty.  It appears that all Alpha
15441             # Linux and Compaq Tru64 Unix objects are PIC.
15442             lt_prog_compiler_pic_CXX=
15443             lt_prog_compiler_static_CXX='-non_shared'
15444             ;;
15445           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15446             # IBM XL 8.0, 9.0 on PPC and BlueGene
15447             lt_prog_compiler_wl_CXX='-Wl,'
15448             lt_prog_compiler_pic_CXX='-qpic'
15449             lt_prog_compiler_static_CXX='-qstaticlink'
15450             ;;
15451           *)
15452             case `$CC -V 2>&1 | sed 5q` in
15453             *Sun\ C*)
15454               # Sun C++ 5.9
15455               lt_prog_compiler_pic_CXX='-KPIC'
15456               lt_prog_compiler_static_CXX='-Bstatic'
15457               lt_prog_compiler_wl_CXX='-Qoption ld '
15458               ;;
15459             esac
15460             ;;
15461         esac
15462         ;;
15463       lynxos*)
15464         ;;
15465       m88k*)
15466         ;;
15467       mvs*)
15468         case $cc_basename in
15469           cxx*)
15470             lt_prog_compiler_pic_CXX='-W c,exportall'
15471             ;;
15472           *)
15473             ;;
15474         esac
15475         ;;
15476       netbsd* | netbsdelf*-gnu)
15477         ;;
15478       *qnx* | *nto*)
15479         # QNX uses GNU C++, but need to define -shared option too, otherwise
15480         # it will coredump.
15481         lt_prog_compiler_pic_CXX='-fPIC -shared'
15482         ;;
15483       osf3* | osf4* | osf5*)
15484         case $cc_basename in
15485           KCC*)
15486             lt_prog_compiler_wl_CXX='--backend -Wl,'
15487             ;;
15488           RCC*)
15489             # Rational C++ 2.4.1
15490             lt_prog_compiler_pic_CXX='-pic'
15491             ;;
15492           cxx*)
15493             # Digital/Compaq C++
15494             lt_prog_compiler_wl_CXX='-Wl,'
15495             # Make sure the PIC flag is empty.  It appears that all Alpha
15496             # Linux and Compaq Tru64 Unix objects are PIC.
15497             lt_prog_compiler_pic_CXX=
15498             lt_prog_compiler_static_CXX='-non_shared'
15499             ;;
15500           *)
15501             ;;
15502         esac
15503         ;;
15504       psos*)
15505         ;;
15506       solaris*)
15507         case $cc_basename in
15508           CC* | sunCC*)
15509             # Sun C++ 4.2, 5.x and Centerline C++
15510             lt_prog_compiler_pic_CXX='-KPIC'
15511             lt_prog_compiler_static_CXX='-Bstatic'
15512             lt_prog_compiler_wl_CXX='-Qoption ld '
15513             ;;
15514           gcx*)
15515             # Green Hills C++ Compiler
15516             lt_prog_compiler_pic_CXX='-PIC'
15517             ;;
15518           *)
15519             ;;
15520         esac
15521         ;;
15522       sunos4*)
15523         case $cc_basename in
15524           CC*)
15525             # Sun C++ 4.x
15526             lt_prog_compiler_pic_CXX='-pic'
15527             lt_prog_compiler_static_CXX='-Bstatic'
15528             ;;
15529           lcc*)
15530             # Lucid
15531             lt_prog_compiler_pic_CXX='-pic'
15532             ;;
15533           *)
15534             ;;
15535         esac
15536         ;;
15537       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15538         case $cc_basename in
15539           CC*)
15540             lt_prog_compiler_wl_CXX='-Wl,'
15541             lt_prog_compiler_pic_CXX='-KPIC'
15542             lt_prog_compiler_static_CXX='-Bstatic'
15543             ;;
15544         esac
15545         ;;
15546       tandem*)
15547         case $cc_basename in
15548           NCC*)
15549             # NonStop-UX NCC 3.20
15550             lt_prog_compiler_pic_CXX='-KPIC'
15551             ;;
15552           *)
15553             ;;
15554         esac
15555         ;;
15556       vxworks*)
15557         ;;
15558       *)
15559         lt_prog_compiler_can_build_shared_CXX=no
15560         ;;
15561     esac
15562   fi
15563
15564 case $host_os in
15565   # For platforms that do not support PIC, -DPIC is meaningless:
15566   *djgpp*)
15567     lt_prog_compiler_pic_CXX=
15568     ;;
15569   *)
15570     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15571     ;;
15572 esac
15573
15574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15575 printf %s "checking for $compiler option to produce PIC... " >&6; }
15576 if test ${lt_cv_prog_compiler_pic_CXX+y}
15577 then :
15578   printf %s "(cached) " >&6
15579 else $as_nop
15580   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15581 fi
15582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15583 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15584 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15585
15586 #
15587 # Check to make sure the PIC flag actually works.
15588 #
15589 if test -n "$lt_prog_compiler_pic_CXX"; then
15590   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15591 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15592 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15593 then :
15594   printf %s "(cached) " >&6
15595 else $as_nop
15596   lt_cv_prog_compiler_pic_works_CXX=no
15597    ac_outfile=conftest.$ac_objext
15598    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15599    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15600    # Insert the option either (1) after the last *FLAGS variable, or
15601    # (2) before a word containing "conftest.", or (3) at the end.
15602    # Note that $ac_compile itself does not contain backslashes and begins
15603    # with a dollar sign (not a hyphen), so the echo should work correctly.
15604    # The option is referenced via a variable to avoid confusing sed.
15605    lt_compile=`echo "$ac_compile" | $SED \
15606    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15607    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15608    -e 's:$: $lt_compiler_flag:'`
15609    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15610    (eval "$lt_compile" 2>conftest.err)
15611    ac_status=$?
15612    cat conftest.err >&5
15613    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614    if (exit $ac_status) && test -s "$ac_outfile"; then
15615      # The compiler can only warn and ignore the option if not recognized
15616      # So say no if there are warnings other than the usual output.
15617      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15618      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15619      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15620        lt_cv_prog_compiler_pic_works_CXX=yes
15621      fi
15622    fi
15623    $RM conftest*
15624
15625 fi
15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15627 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15628
15629 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15630     case $lt_prog_compiler_pic_CXX in
15631      "" | " "*) ;;
15632      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15633      esac
15634 else
15635     lt_prog_compiler_pic_CXX=
15636      lt_prog_compiler_can_build_shared_CXX=no
15637 fi
15638
15639 fi
15640
15641
15642
15643
15644
15645 #
15646 # Check to make sure the static flag actually works.
15647 #
15648 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15650 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15651 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15652 then :
15653   printf %s "(cached) " >&6
15654 else $as_nop
15655   lt_cv_prog_compiler_static_works_CXX=no
15656    save_LDFLAGS=$LDFLAGS
15657    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15658    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15659    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15660      # The linker can only warn and ignore the option if not recognized
15661      # So say no if there are warnings
15662      if test -s conftest.err; then
15663        # Append any errors to the config.log.
15664        cat conftest.err 1>&5
15665        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15666        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15667        if diff conftest.exp conftest.er2 >/dev/null; then
15668          lt_cv_prog_compiler_static_works_CXX=yes
15669        fi
15670      else
15671        lt_cv_prog_compiler_static_works_CXX=yes
15672      fi
15673    fi
15674    $RM -r conftest*
15675    LDFLAGS=$save_LDFLAGS
15676
15677 fi
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15679 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15680
15681 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15682     :
15683 else
15684     lt_prog_compiler_static_CXX=
15685 fi
15686
15687
15688
15689
15690     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15691 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15692 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15693 then :
15694   printf %s "(cached) " >&6
15695 else $as_nop
15696   lt_cv_prog_compiler_c_o_CXX=no
15697    $RM -r conftest 2>/dev/null
15698    mkdir conftest
15699    cd conftest
15700    mkdir out
15701    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15702
15703    lt_compiler_flag="-o out/conftest2.$ac_objext"
15704    # Insert the option either (1) after the last *FLAGS variable, or
15705    # (2) before a word containing "conftest.", or (3) at the end.
15706    # Note that $ac_compile itself does not contain backslashes and begins
15707    # with a dollar sign (not a hyphen), so the echo should work correctly.
15708    lt_compile=`echo "$ac_compile" | $SED \
15709    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15710    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15711    -e 's:$: $lt_compiler_flag:'`
15712    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15713    (eval "$lt_compile" 2>out/conftest.err)
15714    ac_status=$?
15715    cat out/conftest.err >&5
15716    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15718    then
15719      # The compiler can only warn and ignore the option if not recognized
15720      # So say no if there are warnings
15721      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15722      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15723      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15724        lt_cv_prog_compiler_c_o_CXX=yes
15725      fi
15726    fi
15727    chmod u+w . 2>&5
15728    $RM conftest*
15729    # SGI C++ compiler will create directory out/ii_files/ for
15730    # template instantiation
15731    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15732    $RM out/* && rmdir out
15733    cd ..
15734    $RM -r conftest
15735    $RM conftest*
15736
15737 fi
15738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15739 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15740
15741
15742
15743     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15744 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15745 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15746 then :
15747   printf %s "(cached) " >&6
15748 else $as_nop
15749   lt_cv_prog_compiler_c_o_CXX=no
15750    $RM -r conftest 2>/dev/null
15751    mkdir conftest
15752    cd conftest
15753    mkdir out
15754    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15755
15756    lt_compiler_flag="-o out/conftest2.$ac_objext"
15757    # Insert the option either (1) after the last *FLAGS variable, or
15758    # (2) before a word containing "conftest.", or (3) at the end.
15759    # Note that $ac_compile itself does not contain backslashes and begins
15760    # with a dollar sign (not a hyphen), so the echo should work correctly.
15761    lt_compile=`echo "$ac_compile" | $SED \
15762    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15763    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15764    -e 's:$: $lt_compiler_flag:'`
15765    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15766    (eval "$lt_compile" 2>out/conftest.err)
15767    ac_status=$?
15768    cat out/conftest.err >&5
15769    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15771    then
15772      # The compiler can only warn and ignore the option if not recognized
15773      # So say no if there are warnings
15774      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15775      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15776      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15777        lt_cv_prog_compiler_c_o_CXX=yes
15778      fi
15779    fi
15780    chmod u+w . 2>&5
15781    $RM conftest*
15782    # SGI C++ compiler will create directory out/ii_files/ for
15783    # template instantiation
15784    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15785    $RM out/* && rmdir out
15786    cd ..
15787    $RM -r conftest
15788    $RM conftest*
15789
15790 fi
15791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15792 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15793
15794
15795
15796
15797 hard_links=nottested
15798 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15799   # do not overwrite the value of need_locks provided by the user
15800   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15801 printf %s "checking if we can lock with hard links... " >&6; }
15802   hard_links=yes
15803   $RM conftest*
15804   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15805   touch conftest.a
15806   ln conftest.a conftest.b 2>&5 || hard_links=no
15807   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15809 printf "%s\n" "$hard_links" >&6; }
15810   if test no = "$hard_links"; then
15811     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15812 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15813     need_locks=warn
15814   fi
15815 else
15816   need_locks=no
15817 fi
15818
15819
15820
15821     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15822 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15823
15824   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15825   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15826   case $host_os in
15827   aix[4-9]*)
15828     # If we're using GNU nm, then we don't want the "-C" option.
15829     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15830     # Without the "-l" option, or with the "-B" option, AIX nm treats
15831     # weak defined symbols like other global defined symbols, whereas
15832     # GNU nm marks them as "W".
15833     # While the 'weak' keyword is ignored in the Export File, we need
15834     # it in the Import File for the 'aix-soname' feature, so we have
15835     # to replace the "-B" option with "-P" for AIX nm.
15836     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15837       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15838     else
15839       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15840     fi
15841     ;;
15842   pw32*)
15843     export_symbols_cmds_CXX=$ltdll_cmds
15844     ;;
15845   cygwin* | mingw* | cegcc*)
15846     case $cc_basename in
15847     cl*)
15848       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15849       ;;
15850     *)
15851       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'
15852       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15853       ;;
15854     esac
15855     ;;
15856   linux* | k*bsd*-gnu | gnu*)
15857     link_all_deplibs_CXX=no
15858     ;;
15859   *)
15860     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15861     ;;
15862   esac
15863
15864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15865 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15866 test no = "$ld_shlibs_CXX" && can_build_shared=no
15867
15868 with_gnu_ld_CXX=$with_gnu_ld
15869
15870
15871
15872
15873
15874
15875 #
15876 # Do we need to explicitly link libc?
15877 #
15878 case "x$archive_cmds_need_lc_CXX" in
15879 x|xyes)
15880   # Assume -lc should be added
15881   archive_cmds_need_lc_CXX=yes
15882
15883   if test yes,yes = "$GCC,$enable_shared"; then
15884     case $archive_cmds_CXX in
15885     *'~'*)
15886       # FIXME: we may have to deal with multi-command sequences.
15887       ;;
15888     '$CC '*)
15889       # Test whether the compiler implicitly links with -lc since on some
15890       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15891       # to ld, don't add -lc before -lgcc.
15892       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15893 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15894 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
15895 then :
15896   printf %s "(cached) " >&6
15897 else $as_nop
15898   $RM conftest*
15899         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15900
15901         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15902   (eval $ac_compile) 2>&5
15903   ac_status=$?
15904   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15905   test $ac_status = 0; } 2>conftest.err; then
15906           soname=conftest
15907           lib=conftest
15908           libobjs=conftest.$ac_objext
15909           deplibs=
15910           wl=$lt_prog_compiler_wl_CXX
15911           pic_flag=$lt_prog_compiler_pic_CXX
15912           compiler_flags=-v
15913           linker_flags=-v
15914           verstring=
15915           output_objdir=.
15916           libname=conftest
15917           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15918           allow_undefined_flag_CXX=
15919           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15920   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15921   ac_status=$?
15922   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15923   test $ac_status = 0; }
15924           then
15925             lt_cv_archive_cmds_need_lc_CXX=no
15926           else
15927             lt_cv_archive_cmds_need_lc_CXX=yes
15928           fi
15929           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15930         else
15931           cat conftest.err 1>&5
15932         fi
15933         $RM conftest*
15934
15935 fi
15936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15937 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15938       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15939       ;;
15940     esac
15941   fi
15942   ;;
15943 esac
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16007 printf %s "checking dynamic linker characteristics... " >&6; }
16008
16009 library_names_spec=
16010 libname_spec='lib$name'
16011 soname_spec=
16012 shrext_cmds=.so
16013 postinstall_cmds=
16014 postuninstall_cmds=
16015 finish_cmds=
16016 finish_eval=
16017 shlibpath_var=
16018 shlibpath_overrides_runpath=unknown
16019 version_type=none
16020 dynamic_linker="$host_os ld.so"
16021 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16022 need_lib_prefix=unknown
16023 hardcode_into_libs=no
16024
16025 # when you set need_version to no, make sure it does not cause -set_version
16026 # flags to be left without arguments
16027 need_version=unknown
16028
16029
16030
16031 case $host_os in
16032 aix3*)
16033   version_type=linux # correct to gnu/linux during the next big refactor
16034   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16035   shlibpath_var=LIBPATH
16036
16037   # AIX 3 has no versioning support, so we append a major version to the name.
16038   soname_spec='$libname$release$shared_ext$major'
16039   ;;
16040
16041 aix[4-9]*)
16042   version_type=linux # correct to gnu/linux during the next big refactor
16043   need_lib_prefix=no
16044   need_version=no
16045   hardcode_into_libs=yes
16046   if test ia64 = "$host_cpu"; then
16047     # AIX 5 supports IA64
16048     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16049     shlibpath_var=LD_LIBRARY_PATH
16050   else
16051     # With GCC up to 2.95.x, collect2 would create an import file
16052     # for dependence libraries.  The import file would start with
16053     # the line '#! .'.  This would cause the generated library to
16054     # depend on '.', always an invalid library.  This was fixed in
16055     # development snapshots of GCC prior to 3.0.
16056     case $host_os in
16057       aix4 | aix4.[01] | aix4.[01].*)
16058       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16059            echo ' yes '
16060            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16061         :
16062       else
16063         can_build_shared=no
16064       fi
16065       ;;
16066     esac
16067     # Using Import Files as archive members, it is possible to support
16068     # filename-based versioning of shared library archives on AIX. While
16069     # this would work for both with and without runtime linking, it will
16070     # prevent static linking of such archives. So we do filename-based
16071     # shared library versioning with .so extension only, which is used
16072     # when both runtime linking and shared linking is enabled.
16073     # Unfortunately, runtime linking may impact performance, so we do
16074     # not want this to be the default eventually. Also, we use the
16075     # versioned .so libs for executables only if there is the -brtl
16076     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16077     # To allow for filename-based versioning support, we need to create
16078     # libNAME.so.V as an archive file, containing:
16079     # *) an Import File, referring to the versioned filename of the
16080     #    archive as well as the shared archive member, telling the
16081     #    bitwidth (32 or 64) of that shared object, and providing the
16082     #    list of exported symbols of that shared object, eventually
16083     #    decorated with the 'weak' keyword
16084     # *) the shared object with the F_LOADONLY flag set, to really avoid
16085     #    it being seen by the linker.
16086     # At run time we better use the real file rather than another symlink,
16087     # but for link time we create the symlink libNAME.so -> libNAME.so.V
16088
16089     case $with_aix_soname,$aix_use_runtimelinking in
16090     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16091     # soname into executable. Probably we can add versioning support to
16092     # collect2, so additional links can be useful in future.
16093     aix,yes) # traditional libtool
16094       dynamic_linker='AIX unversionable lib.so'
16095       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16096       # instead of lib<name>.a to let people know that these are not
16097       # typical AIX shared libraries.
16098       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16099       ;;
16100     aix,no) # traditional AIX only
16101       dynamic_linker='AIX lib.a(lib.so.V)'
16102       # We preserve .a as extension for shared libraries through AIX4.2
16103       # and later when we are not doing run time linking.
16104       library_names_spec='$libname$release.a $libname.a'
16105       soname_spec='$libname$release$shared_ext$major'
16106       ;;
16107     svr4,*) # full svr4 only
16108       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16109       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16110       # We do not specify a path in Import Files, so LIBPATH fires.
16111       shlibpath_overrides_runpath=yes
16112       ;;
16113     *,yes) # both, prefer svr4
16114       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16115       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16116       # unpreferred sharedlib libNAME.a needs extra handling
16117       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16118       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16119       # We do not specify a path in Import Files, so LIBPATH fires.
16120       shlibpath_overrides_runpath=yes
16121       ;;
16122     *,no) # both, prefer aix
16123       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16124       library_names_spec='$libname$release.a $libname.a'
16125       soname_spec='$libname$release$shared_ext$major'
16126       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16127       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16128       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16129       ;;
16130     esac
16131     shlibpath_var=LIBPATH
16132   fi
16133   ;;
16134
16135 amigaos*)
16136   case $host_cpu in
16137   powerpc)
16138     # Since July 2007 AmigaOS4 officially supports .so libraries.
16139     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16140     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16141     ;;
16142   m68k)
16143     library_names_spec='$libname.ixlibrary $libname.a'
16144     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16145     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16146     ;;
16147   esac
16148   ;;
16149
16150 beos*)
16151   library_names_spec='$libname$shared_ext'
16152   dynamic_linker="$host_os ld.so"
16153   shlibpath_var=LIBRARY_PATH
16154   ;;
16155
16156 bsdi[45]*)
16157   version_type=linux # correct to gnu/linux during the next big refactor
16158   need_version=no
16159   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16160   soname_spec='$libname$release$shared_ext$major'
16161   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16162   shlibpath_var=LD_LIBRARY_PATH
16163   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16164   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16165   # the default ld.so.conf also contains /usr/contrib/lib and
16166   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16167   # libtool to hard-code these into programs
16168   ;;
16169
16170 cygwin* | mingw* | pw32* | cegcc*)
16171   version_type=windows
16172   shrext_cmds=.dll
16173   need_version=no
16174   need_lib_prefix=no
16175
16176   case $GCC,$cc_basename in
16177   yes,*)
16178     # gcc
16179     library_names_spec='$libname.dll.a'
16180     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16181     postinstall_cmds='base_file=`basename \$file`~
16182       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16183       dldir=$destdir/`dirname \$dlpath`~
16184       test -d \$dldir || mkdir -p \$dldir~
16185       $install_prog $dir/$dlname \$dldir/$dlname~
16186       chmod a+x \$dldir/$dlname~
16187       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16188         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16189       fi'
16190     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16191       dlpath=$dir/\$dldll~
16192        $RM \$dlpath'
16193     shlibpath_overrides_runpath=yes
16194
16195     case $host_os in
16196     cygwin*)
16197       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16198       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16199
16200       ;;
16201     mingw* | cegcc*)
16202       # MinGW DLLs use traditional 'lib' prefix
16203       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16204       ;;
16205     pw32*)
16206       # pw32 DLLs use 'pw' prefix rather than 'lib'
16207       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16208       ;;
16209     esac
16210     dynamic_linker='Win32 ld.exe'
16211     ;;
16212
16213   *,cl*)
16214     # Native MSVC
16215     libname_spec='$name'
16216     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16217     library_names_spec='$libname.dll.lib'
16218
16219     case $build_os in
16220     mingw*)
16221       sys_lib_search_path_spec=
16222       lt_save_ifs=$IFS
16223       IFS=';'
16224       for lt_path in $LIB
16225       do
16226         IFS=$lt_save_ifs
16227         # Let DOS variable expansion print the short 8.3 style file name.
16228         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16229         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16230       done
16231       IFS=$lt_save_ifs
16232       # Convert to MSYS style.
16233       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16234       ;;
16235     cygwin*)
16236       # Convert to unix form, then to dos form, then back to unix form
16237       # but this time dos style (no spaces!) so that the unix form looks
16238       # like /cygdrive/c/PROGRA~1:/cygdr...
16239       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16240       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16241       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16242       ;;
16243     *)
16244       sys_lib_search_path_spec=$LIB
16245       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16246         # It is most probably a Windows format PATH.
16247         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16248       else
16249         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16250       fi
16251       # FIXME: find the short name or the path components, as spaces are
16252       # common. (e.g. "Program Files" -> "PROGRA~1")
16253       ;;
16254     esac
16255
16256     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16257     postinstall_cmds='base_file=`basename \$file`~
16258       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16259       dldir=$destdir/`dirname \$dlpath`~
16260       test -d \$dldir || mkdir -p \$dldir~
16261       $install_prog $dir/$dlname \$dldir/$dlname'
16262     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16263       dlpath=$dir/\$dldll~
16264        $RM \$dlpath'
16265     shlibpath_overrides_runpath=yes
16266     dynamic_linker='Win32 link.exe'
16267     ;;
16268
16269   *)
16270     # Assume MSVC wrapper
16271     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16272     dynamic_linker='Win32 ld.exe'
16273     ;;
16274   esac
16275   # FIXME: first we should search . and the directory the executable is in
16276   shlibpath_var=PATH
16277   ;;
16278
16279 darwin* | rhapsody*)
16280   dynamic_linker="$host_os dyld"
16281   version_type=darwin
16282   need_lib_prefix=no
16283   need_version=no
16284   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16285   soname_spec='$libname$release$major$shared_ext'
16286   shlibpath_overrides_runpath=yes
16287   shlibpath_var=DYLD_LIBRARY_PATH
16288   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16289
16290   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16291   ;;
16292
16293 dgux*)
16294   version_type=linux # correct to gnu/linux during the next big refactor
16295   need_lib_prefix=no
16296   need_version=no
16297   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16298   soname_spec='$libname$release$shared_ext$major'
16299   shlibpath_var=LD_LIBRARY_PATH
16300   ;;
16301
16302 freebsd* | dragonfly*)
16303   # DragonFly does not have aout.  When/if they implement a new
16304   # versioning mechanism, adjust this.
16305   if test -x /usr/bin/objformat; then
16306     objformat=`/usr/bin/objformat`
16307   else
16308     case $host_os in
16309     freebsd[23].*) objformat=aout ;;
16310     *) objformat=elf ;;
16311     esac
16312   fi
16313   version_type=freebsd-$objformat
16314   case $version_type in
16315     freebsd-elf*)
16316       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16317       soname_spec='$libname$release$shared_ext$major'
16318       need_version=no
16319       need_lib_prefix=no
16320       ;;
16321     freebsd-*)
16322       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16323       need_version=yes
16324       ;;
16325   esac
16326   shlibpath_var=LD_LIBRARY_PATH
16327   case $host_os in
16328   freebsd2.*)
16329     shlibpath_overrides_runpath=yes
16330     ;;
16331   freebsd3.[01]* | freebsdelf3.[01]*)
16332     shlibpath_overrides_runpath=yes
16333     hardcode_into_libs=yes
16334     ;;
16335   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16336   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16337     shlibpath_overrides_runpath=no
16338     hardcode_into_libs=yes
16339     ;;
16340   *) # from 4.6 on, and DragonFly
16341     shlibpath_overrides_runpath=yes
16342     hardcode_into_libs=yes
16343     ;;
16344   esac
16345   ;;
16346
16347 haiku*)
16348   version_type=linux # correct to gnu/linux during the next big refactor
16349   need_lib_prefix=no
16350   need_version=no
16351   dynamic_linker="$host_os runtime_loader"
16352   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16353   soname_spec='$libname$release$shared_ext$major'
16354   shlibpath_var=LIBRARY_PATH
16355   shlibpath_overrides_runpath=no
16356   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16357   hardcode_into_libs=yes
16358   ;;
16359
16360 hpux9* | hpux10* | hpux11*)
16361   # Give a soname corresponding to the major version so that dld.sl refuses to
16362   # link against other versions.
16363   version_type=sunos
16364   need_lib_prefix=no
16365   need_version=no
16366   case $host_cpu in
16367   ia64*)
16368     shrext_cmds='.so'
16369     hardcode_into_libs=yes
16370     dynamic_linker="$host_os dld.so"
16371     shlibpath_var=LD_LIBRARY_PATH
16372     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16373     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16374     soname_spec='$libname$release$shared_ext$major'
16375     if test 32 = "$HPUX_IA64_MODE"; then
16376       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16377       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16378     else
16379       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16380       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16381     fi
16382     ;;
16383   hppa*64*)
16384     shrext_cmds='.sl'
16385     hardcode_into_libs=yes
16386     dynamic_linker="$host_os dld.sl"
16387     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16388     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16389     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16390     soname_spec='$libname$release$shared_ext$major'
16391     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16392     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16393     ;;
16394   *)
16395     shrext_cmds='.sl'
16396     dynamic_linker="$host_os dld.sl"
16397     shlibpath_var=SHLIB_PATH
16398     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16399     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16400     soname_spec='$libname$release$shared_ext$major'
16401     ;;
16402   esac
16403   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16404   postinstall_cmds='chmod 555 $lib'
16405   # or fails outright, so override atomically:
16406   install_override_mode=555
16407   ;;
16408
16409 interix[3-9]*)
16410   version_type=linux # correct to gnu/linux during the next big refactor
16411   need_lib_prefix=no
16412   need_version=no
16413   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16414   soname_spec='$libname$release$shared_ext$major'
16415   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16416   shlibpath_var=LD_LIBRARY_PATH
16417   shlibpath_overrides_runpath=no
16418   hardcode_into_libs=yes
16419   ;;
16420
16421 irix5* | irix6* | nonstopux*)
16422   case $host_os in
16423     nonstopux*) version_type=nonstopux ;;
16424     *)
16425         if test yes = "$lt_cv_prog_gnu_ld"; then
16426                 version_type=linux # correct to gnu/linux during the next big refactor
16427         else
16428                 version_type=irix
16429         fi ;;
16430   esac
16431   need_lib_prefix=no
16432   need_version=no
16433   soname_spec='$libname$release$shared_ext$major'
16434   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16435   case $host_os in
16436   irix5* | nonstopux*)
16437     libsuff= shlibsuff=
16438     ;;
16439   *)
16440     case $LD in # libtool.m4 will add one of these switches to LD
16441     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16442       libsuff= shlibsuff= libmagic=32-bit;;
16443     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16444       libsuff=32 shlibsuff=N32 libmagic=N32;;
16445     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16446       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16447     *) libsuff= shlibsuff= libmagic=never-match;;
16448     esac
16449     ;;
16450   esac
16451   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16452   shlibpath_overrides_runpath=no
16453   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16454   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16455   hardcode_into_libs=yes
16456   ;;
16457
16458 # No shared lib support for Linux oldld, aout, or coff.
16459 linux*oldld* | linux*aout* | linux*coff*)
16460   dynamic_linker=no
16461   ;;
16462
16463 linux*android*)
16464   version_type=none # Android doesn't support versioned libraries.
16465   need_lib_prefix=no
16466   need_version=no
16467   library_names_spec='$libname$release$shared_ext'
16468   soname_spec='$libname$release$shared_ext'
16469   finish_cmds=
16470   shlibpath_var=LD_LIBRARY_PATH
16471   shlibpath_overrides_runpath=yes
16472
16473   # This implies no fast_install, which is unacceptable.
16474   # Some rework will be needed to allow for fast_install
16475   # before this can be enabled.
16476   hardcode_into_libs=yes
16477
16478   dynamic_linker='Android linker'
16479   # Don't embed -rpath directories since the linker doesn't support them.
16480   hardcode_libdir_flag_spec_CXX='-L$libdir'
16481   ;;
16482
16483 # This must be glibc/ELF.
16484 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16485   version_type=linux # correct to gnu/linux during the next big refactor
16486   need_lib_prefix=no
16487   need_version=no
16488   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16489   soname_spec='$libname$release$shared_ext$major'
16490   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16491   shlibpath_var=LD_LIBRARY_PATH
16492   shlibpath_overrides_runpath=no
16493
16494   # Some binutils ld are patched to set DT_RUNPATH
16495   if test ${lt_cv_shlibpath_overrides_runpath+y}
16496 then :
16497   printf %s "(cached) " >&6
16498 else $as_nop
16499   lt_cv_shlibpath_overrides_runpath=no
16500     save_LDFLAGS=$LDFLAGS
16501     save_libdir=$libdir
16502     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16503          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h.  */
16506
16507 int
16508 main (void)
16509 {
16510
16511   ;
16512   return 0;
16513 }
16514 _ACEOF
16515 if ac_fn_cxx_try_link "$LINENO"
16516 then :
16517   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16518 then :
16519   lt_cv_shlibpath_overrides_runpath=yes
16520 fi
16521 fi
16522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16523     conftest$ac_exeext conftest.$ac_ext
16524     LDFLAGS=$save_LDFLAGS
16525     libdir=$save_libdir
16526
16527 fi
16528
16529   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16530
16531   # This implies no fast_install, which is unacceptable.
16532   # Some rework will be needed to allow for fast_install
16533   # before this can be enabled.
16534   hardcode_into_libs=yes
16535
16536   # Ideally, we could use ldconfig to report *all* directores which are
16537   # searched for libraries, however this is still not possible.  Aside from not
16538   # being certain /sbin/ldconfig is available, command
16539   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16540   # even though it is searched at run-time.  Try to do the best guess by
16541   # appending ld.so.conf contents (and includes) to the search path.
16542   if test -f /etc/ld.so.conf; then
16543     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' ' '`
16544     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16545   fi
16546
16547   # We used to test for /lib/ld.so.1 and disable shared libraries on
16548   # powerpc, because MkLinux only supported shared libraries with the
16549   # GNU dynamic linker.  Since this was broken with cross compilers,
16550   # most powerpc-linux boxes support dynamic linking these days and
16551   # people can always --disable-shared, the test was removed, and we
16552   # assume the GNU/Linux dynamic linker is in use.
16553   dynamic_linker='GNU/Linux ld.so'
16554   ;;
16555
16556 netbsdelf*-gnu)
16557   version_type=linux
16558   need_lib_prefix=no
16559   need_version=no
16560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16561   soname_spec='${libname}${release}${shared_ext}$major'
16562   shlibpath_var=LD_LIBRARY_PATH
16563   shlibpath_overrides_runpath=no
16564   hardcode_into_libs=yes
16565   dynamic_linker='NetBSD ld.elf_so'
16566   ;;
16567
16568 netbsd*)
16569   version_type=sunos
16570   need_lib_prefix=no
16571   need_version=no
16572   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16573     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16574     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16575     dynamic_linker='NetBSD (a.out) ld.so'
16576   else
16577     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16578     soname_spec='$libname$release$shared_ext$major'
16579     dynamic_linker='NetBSD ld.elf_so'
16580   fi
16581   shlibpath_var=LD_LIBRARY_PATH
16582   shlibpath_overrides_runpath=yes
16583   hardcode_into_libs=yes
16584   ;;
16585
16586 newsos6)
16587   version_type=linux # correct to gnu/linux during the next big refactor
16588   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16589   shlibpath_var=LD_LIBRARY_PATH
16590   shlibpath_overrides_runpath=yes
16591   ;;
16592
16593 *nto* | *qnx*)
16594   version_type=qnx
16595   need_lib_prefix=no
16596   need_version=no
16597   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16598   soname_spec='$libname$release$shared_ext$major'
16599   shlibpath_var=LD_LIBRARY_PATH
16600   shlibpath_overrides_runpath=no
16601   hardcode_into_libs=yes
16602   dynamic_linker='ldqnx.so'
16603   ;;
16604
16605 openbsd* | bitrig*)
16606   version_type=sunos
16607   sys_lib_dlsearch_path_spec=/usr/lib
16608   need_lib_prefix=no
16609   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16610     need_version=no
16611   else
16612     need_version=yes
16613   fi
16614   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16615   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16616   shlibpath_var=LD_LIBRARY_PATH
16617   shlibpath_overrides_runpath=yes
16618   ;;
16619
16620 os2*)
16621   libname_spec='$name'
16622   version_type=windows
16623   shrext_cmds=.dll
16624   need_version=no
16625   need_lib_prefix=no
16626   # OS/2 can only load a DLL with a base name of 8 characters or less.
16627   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16628     v=$($ECHO $release$versuffix | tr -d .-);
16629     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16630     $ECHO $n$v`$shared_ext'
16631   library_names_spec='${libname}_dll.$libext'
16632   dynamic_linker='OS/2 ld.exe'
16633   shlibpath_var=BEGINLIBPATH
16634   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16635   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16636   postinstall_cmds='base_file=`basename \$file`~
16637     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16638     dldir=$destdir/`dirname \$dlpath`~
16639     test -d \$dldir || mkdir -p \$dldir~
16640     $install_prog $dir/$dlname \$dldir/$dlname~
16641     chmod a+x \$dldir/$dlname~
16642     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16643       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16644     fi'
16645   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16646     dlpath=$dir/\$dldll~
16647     $RM \$dlpath'
16648   ;;
16649
16650 osf3* | osf4* | osf5*)
16651   version_type=osf
16652   need_lib_prefix=no
16653   need_version=no
16654   soname_spec='$libname$release$shared_ext$major'
16655   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16656   shlibpath_var=LD_LIBRARY_PATH
16657   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16658   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16659   ;;
16660
16661 rdos*)
16662   dynamic_linker=no
16663   ;;
16664
16665 solaris*)
16666   version_type=linux # correct to gnu/linux during the next big refactor
16667   need_lib_prefix=no
16668   need_version=no
16669   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16670   soname_spec='$libname$release$shared_ext$major'
16671   shlibpath_var=LD_LIBRARY_PATH
16672   shlibpath_overrides_runpath=yes
16673   hardcode_into_libs=yes
16674   # ldd complains unless libraries are executable
16675   postinstall_cmds='chmod +x $lib'
16676   ;;
16677
16678 sunos4*)
16679   version_type=sunos
16680   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16681   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16682   shlibpath_var=LD_LIBRARY_PATH
16683   shlibpath_overrides_runpath=yes
16684   if test yes = "$with_gnu_ld"; then
16685     need_lib_prefix=no
16686   fi
16687   need_version=yes
16688   ;;
16689
16690 sysv4 | sysv4.3*)
16691   version_type=linux # correct to gnu/linux during the next big refactor
16692   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16693   soname_spec='$libname$release$shared_ext$major'
16694   shlibpath_var=LD_LIBRARY_PATH
16695   case $host_vendor in
16696     sni)
16697       shlibpath_overrides_runpath=no
16698       need_lib_prefix=no
16699       runpath_var=LD_RUN_PATH
16700       ;;
16701     siemens)
16702       need_lib_prefix=no
16703       ;;
16704     motorola)
16705       need_lib_prefix=no
16706       need_version=no
16707       shlibpath_overrides_runpath=no
16708       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16709       ;;
16710   esac
16711   ;;
16712
16713 sysv4*MP*)
16714   if test -d /usr/nec; then
16715     version_type=linux # correct to gnu/linux during the next big refactor
16716     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16717     soname_spec='$libname$shared_ext.$major'
16718     shlibpath_var=LD_LIBRARY_PATH
16719   fi
16720   ;;
16721
16722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16723   version_type=sco
16724   need_lib_prefix=no
16725   need_version=no
16726   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16727   soname_spec='$libname$release$shared_ext$major'
16728   shlibpath_var=LD_LIBRARY_PATH
16729   shlibpath_overrides_runpath=yes
16730   hardcode_into_libs=yes
16731   if test yes = "$with_gnu_ld"; then
16732     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16733   else
16734     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16735     case $host_os in
16736       sco3.2v5*)
16737         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16738         ;;
16739     esac
16740   fi
16741   sys_lib_dlsearch_path_spec='/usr/lib'
16742   ;;
16743
16744 tpf*)
16745   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16746   version_type=linux # correct to gnu/linux during the next big refactor
16747   need_lib_prefix=no
16748   need_version=no
16749   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16750   shlibpath_var=LD_LIBRARY_PATH
16751   shlibpath_overrides_runpath=no
16752   hardcode_into_libs=yes
16753   ;;
16754
16755 uts4*)
16756   version_type=linux # correct to gnu/linux during the next big refactor
16757   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16758   soname_spec='$libname$release$shared_ext$major'
16759   shlibpath_var=LD_LIBRARY_PATH
16760   ;;
16761
16762 *)
16763   dynamic_linker=no
16764   ;;
16765 esac
16766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16767 printf "%s\n" "$dynamic_linker" >&6; }
16768 test no = "$dynamic_linker" && can_build_shared=no
16769
16770 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16771 if test yes = "$GCC"; then
16772   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16773 fi
16774
16775 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16776   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16777 fi
16778
16779 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16780   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16781 fi
16782
16783 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16784 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16785
16786 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16787 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16788
16789 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16790 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16832 printf %s "checking how to hardcode library paths into programs... " >&6; }
16833 hardcode_action_CXX=
16834 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16835    test -n "$runpath_var_CXX" ||
16836    test yes = "$hardcode_automatic_CXX"; then
16837
16838   # We can hardcode non-existent directories.
16839   if test no != "$hardcode_direct_CXX" &&
16840      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16841      # have to relink, otherwise we might link with an installed library
16842      # when we should be linking with a yet-to-be-installed one
16843      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16844      test no != "$hardcode_minus_L_CXX"; then
16845     # Linking always hardcodes the temporary library directory.
16846     hardcode_action_CXX=relink
16847   else
16848     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16849     hardcode_action_CXX=immediate
16850   fi
16851 else
16852   # We cannot hardcode anything, or else we can only hardcode existing
16853   # directories.
16854   hardcode_action_CXX=unsupported
16855 fi
16856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16857 printf "%s\n" "$hardcode_action_CXX" >&6; }
16858
16859 if test relink = "$hardcode_action_CXX" ||
16860    test yes = "$inherit_rpath_CXX"; then
16861   # Fast installation is not supported
16862   enable_fast_install=no
16863 elif test yes = "$shlibpath_overrides_runpath" ||
16864      test no = "$enable_shared"; then
16865   # Fast installation is not necessary
16866   enable_fast_install=needless
16867 fi
16868
16869
16870
16871
16872
16873
16874
16875   fi # test -n "$compiler"
16876
16877   CC=$lt_save_CC
16878   CFLAGS=$lt_save_CFLAGS
16879   LDCXX=$LD
16880   LD=$lt_save_LD
16881   GCC=$lt_save_GCC
16882   with_gnu_ld=$lt_save_with_gnu_ld
16883   lt_cv_path_LDCXX=$lt_cv_path_LD
16884   lt_cv_path_LD=$lt_save_path_LD
16885   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16886   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16887 fi # test yes != "$_lt_caught_CXX_error"
16888
16889 ac_ext=c
16890 ac_cpp='$CPP $CPPFLAGS'
16891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909         ac_config_commands="$ac_config_commands libtool"
16910
16911
16912
16913
16914 # Only expand once:
16915
16916
16917
16918
16919
16920 ac_ext=c
16921 ac_cpp='$CPP $CPPFLAGS'
16922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16925
16926 ax_pthread_ok=no
16927
16928 # We used to check for pthread.h first, but this fails if pthread.h
16929 # requires special compiler flags (e.g. on True64 or Sequent).
16930 # It gets checked for in the link test anyway.
16931
16932 # First of all, check if the user has set any of the PTHREAD_LIBS,
16933 # etcetera environment variables, and if threads linking works using
16934 # them:
16935 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16936         save_CFLAGS="$CFLAGS"
16937         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16938         save_LIBS="$LIBS"
16939         LIBS="$PTHREAD_LIBS $LIBS"
16940         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16941 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16942         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h.  */
16944
16945 /* Override any GCC internal prototype to avoid an error.
16946    Use char because int might match the return type of a GCC
16947    builtin and then its argument prototype would still apply.  */
16948 char pthread_join ();
16949 int
16950 main (void)
16951 {
16952 return pthread_join ();
16953   ;
16954   return 0;
16955 }
16956 _ACEOF
16957 if ac_fn_c_try_link "$LINENO"
16958 then :
16959   ax_pthread_ok=yes
16960 fi
16961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16962     conftest$ac_exeext conftest.$ac_ext
16963         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16964 printf "%s\n" "$ax_pthread_ok" >&6; }
16965         if test x"$ax_pthread_ok" = xno; then
16966                 PTHREAD_LIBS=""
16967                 PTHREAD_CFLAGS=""
16968         fi
16969         LIBS="$save_LIBS"
16970         CFLAGS="$save_CFLAGS"
16971 fi
16972
16973 # We must check for the threads library under a number of different
16974 # names; the ordering is very important because some systems
16975 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16976 # libraries is broken (non-POSIX).
16977
16978 # Create a list of thread flags to try.  Items starting with a "-" are
16979 # C compiler flags, and other items are library names, except for "none"
16980 # which indicates that we try without any flags at all, and "pthread-config"
16981 # which is a program returning the flags for the Pth emulation library.
16982
16983 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16984
16985 # The ordering *is* (sometimes) important.  Some notes on the
16986 # individual items follow:
16987
16988 # pthreads: AIX (must check this before -lpthread)
16989 # none: in case threads are in libc; should be tried before -Kthread and
16990 #       other compiler flags to prevent continual compiler warnings
16991 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16992 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16993 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16994 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16995 # -pthreads: Solaris/gcc
16996 # -mthreads: Mingw32/gcc, Lynx/gcc
16997 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16998 #      doesn't hurt to check since this sometimes defines pthreads too;
16999 #      also defines -D_REENTRANT)
17000 #      ... -mt is also the pthreads flag for HP/aCC
17001 # pthread: Linux, etcetera
17002 # --thread-safe: KAI C++
17003 # pthread-config: use pthread-config program (for GNU Pth library)
17004
17005 case ${host_os} in
17006         solaris*)
17007
17008         # On Solaris (at least, for some versions), libc contains stubbed
17009         # (non-functional) versions of the pthreads routines, so link-based
17010         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17011         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17012         # a function called by this macro, so we could check for that, but
17013         # who knows whether they'll stub that too in a future libc.)  So,
17014         # we'll just look for -pthreads and -lpthread first:
17015
17016         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
17017         ;;
17018
17019         darwin*)
17020         ax_pthread_flags="-pthread $ax_pthread_flags"
17021         ;;
17022 esac
17023
17024 # Clang doesn't consider unrecognized options an error unless we specify
17025 # -Werror. We throw in some extra Clang-specific options to ensure that
17026 # this doesn't happen for GCC, which also accepts -Werror.
17027
17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
17029 printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
17030 save_CFLAGS="$CFLAGS"
17031 ax_pthread_extra_flags="-Werror"
17032 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h.  */
17035 int foo(void);
17036 int
17037 main (void)
17038 {
17039 foo()
17040   ;
17041   return 0;
17042 }
17043 _ACEOF
17044 if ac_fn_c_try_compile "$LINENO"
17045 then :
17046   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17047 printf "%s\n" "yes" >&6; }
17048 else $as_nop
17049   ax_pthread_extra_flags=
17050                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17051 printf "%s\n" "no" >&6; }
17052 fi
17053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17054 CFLAGS="$save_CFLAGS"
17055
17056 if test x"$ax_pthread_ok" = xno; then
17057 for flag in $ax_pthread_flags; do
17058
17059         case $flag in
17060                 none)
17061                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17062 printf %s "checking whether pthreads work without any flags... " >&6; }
17063                 ;;
17064
17065                 -*)
17066                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17067 printf %s "checking whether pthreads work with $flag... " >&6; }
17068                 PTHREAD_CFLAGS="$flag"
17069                 ;;
17070
17071                 pthread-config)
17072                 # Extract the first word of "pthread-config", so it can be a program name with args.
17073 set dummy pthread-config; ac_word=$2
17074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17075 printf %s "checking for $ac_word... " >&6; }
17076 if test ${ac_cv_prog_ax_pthread_config+y}
17077 then :
17078   printf %s "(cached) " >&6
17079 else $as_nop
17080   if test -n "$ax_pthread_config"; then
17081   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
17082 else
17083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17084 for as_dir in $PATH
17085 do
17086   IFS=$as_save_IFS
17087   case $as_dir in #(((
17088     '') as_dir=./ ;;
17089     */) ;;
17090     *) as_dir=$as_dir/ ;;
17091   esac
17092     for ac_exec_ext in '' $ac_executable_extensions; do
17093   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17094     ac_cv_prog_ax_pthread_config="yes"
17095     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17096     break 2
17097   fi
17098 done
17099   done
17100 IFS=$as_save_IFS
17101
17102   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
17103 fi
17104 fi
17105 ax_pthread_config=$ac_cv_prog_ax_pthread_config
17106 if test -n "$ax_pthread_config"; then
17107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
17108 printf "%s\n" "$ax_pthread_config" >&6; }
17109 else
17110   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17111 printf "%s\n" "no" >&6; }
17112 fi
17113
17114
17115                 if test x"$ax_pthread_config" = xno; then continue; fi
17116                 PTHREAD_CFLAGS="`pthread-config --cflags`"
17117                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17118                 ;;
17119
17120                 *)
17121                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17122 printf %s "checking for the pthreads library -l$flag... " >&6; }
17123                 PTHREAD_LIBS="-l$flag"
17124                 ;;
17125         esac
17126
17127         save_LIBS="$LIBS"
17128         save_CFLAGS="$CFLAGS"
17129         LIBS="$PTHREAD_LIBS $LIBS"
17130         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
17131
17132         # Check for various functions.  We must include pthread.h,
17133         # since some functions may be macros.  (On the Sequent, we
17134         # need a special flag -Kthread to make this header compile.)
17135         # We check for pthread_join because it is in -lpthread on IRIX
17136         # while pthread_create is in libc.  We check for pthread_attr_init
17137         # due to DEC craziness with -lpthreads.  We check for
17138         # pthread_cleanup_push because it is one of the few pthread
17139         # functions on Solaris that doesn't have a non-functional libc stub.
17140         # We try pthread_create on general principles.
17141         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142 /* end confdefs.h.  */
17143 #include <pthread.h>
17144                         static void routine(void *a) { a = 0; }
17145                         static void *start_routine(void *a) { return a; }
17146 int
17147 main (void)
17148 {
17149 pthread_t th; pthread_attr_t attr;
17150                         pthread_create(&th, 0, start_routine, 0);
17151                         pthread_join(th, 0);
17152                         pthread_attr_init(&attr);
17153                         pthread_cleanup_push(routine, 0);
17154                         pthread_cleanup_pop(0) /* ; */
17155   ;
17156   return 0;
17157 }
17158 _ACEOF
17159 if ac_fn_c_try_link "$LINENO"
17160 then :
17161   ax_pthread_ok=yes
17162 fi
17163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17164     conftest$ac_exeext conftest.$ac_ext
17165
17166         LIBS="$save_LIBS"
17167         CFLAGS="$save_CFLAGS"
17168
17169         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17170 printf "%s\n" "$ax_pthread_ok" >&6; }
17171         if test "x$ax_pthread_ok" = xyes; then
17172                 break;
17173         fi
17174
17175         PTHREAD_LIBS=""
17176         PTHREAD_CFLAGS=""
17177 done
17178 fi
17179
17180 # Various other checks:
17181 if test "x$ax_pthread_ok" = xyes; then
17182         save_LIBS="$LIBS"
17183         LIBS="$PTHREAD_LIBS $LIBS"
17184         save_CFLAGS="$CFLAGS"
17185         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17186
17187         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
17188         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17189 printf %s "checking for joinable pthread attribute... " >&6; }
17190         attr_name=unknown
17191         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
17192             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h.  */
17194 #include <pthread.h>
17195 int
17196 main (void)
17197 {
17198 int attr = $attr; return attr /* ; */
17199   ;
17200   return 0;
17201 }
17202 _ACEOF
17203 if ac_fn_c_try_link "$LINENO"
17204 then :
17205   attr_name=$attr; break
17206 fi
17207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17208     conftest$ac_exeext conftest.$ac_ext
17209         done
17210         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
17211 printf "%s\n" "$attr_name" >&6; }
17212         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
17213
17214 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
17215
17216         fi
17217
17218         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17219 printf %s "checking if more special flags are required for pthreads... " >&6; }
17220         flag=no
17221         case ${host_os} in
17222             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
17223             osf* | hpux*) flag="-D_REENTRANT";;
17224             solaris*)
17225             if test "$GCC" = "yes"; then
17226                 flag="-D_REENTRANT"
17227             else
17228                 # TODO: What about Clang on Solaris?
17229                 flag="-mt -D_REENTRANT"
17230             fi
17231             ;;
17232         esac
17233         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
17234 printf "%s\n" "$flag" >&6; }
17235         if test "x$flag" != xno; then
17236             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17237         fi
17238
17239         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
17240 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
17241 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
17242 then :
17243   printf %s "(cached) " >&6
17244 else $as_nop
17245
17246                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h.  */
17248 #include <pthread.h>
17249 int
17250 main (void)
17251 {
17252 int i = PTHREAD_PRIO_INHERIT;
17253   ;
17254   return 0;
17255 }
17256 _ACEOF
17257 if ac_fn_c_try_link "$LINENO"
17258 then :
17259   ax_cv_PTHREAD_PRIO_INHERIT=yes
17260 else $as_nop
17261   ax_cv_PTHREAD_PRIO_INHERIT=no
17262 fi
17263 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17264     conftest$ac_exeext conftest.$ac_ext
17265
17266 fi
17267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
17268 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
17269         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
17270 then :
17271
17272 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17273
17274 fi
17275
17276         LIBS="$save_LIBS"
17277         CFLAGS="$save_CFLAGS"
17278
17279         # More AIX lossage: compile with *_r variant
17280         if test "x$GCC" != xyes; then
17281             case $host_os in
17282                 aix*)
17283                 case "x/$CC" in #(
17284   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
17285     #handle absolute path differently from PATH based program lookup
17286                    case "x$CC" in #(
17287   x/*) :
17288     if as_fn_executable_p ${CC}_r
17289 then :
17290   PTHREAD_CC="${CC}_r"
17291 fi ;; #(
17292   *) :
17293     for ac_prog in ${CC}_r
17294 do
17295   # Extract the first word of "$ac_prog", so it can be a program name with args.
17296 set dummy $ac_prog; ac_word=$2
17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17298 printf %s "checking for $ac_word... " >&6; }
17299 if test ${ac_cv_prog_PTHREAD_CC+y}
17300 then :
17301   printf %s "(cached) " >&6
17302 else $as_nop
17303   if test -n "$PTHREAD_CC"; then
17304   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17305 else
17306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17307 for as_dir in $PATH
17308 do
17309   IFS=$as_save_IFS
17310   case $as_dir in #(((
17311     '') as_dir=./ ;;
17312     */) ;;
17313     *) as_dir=$as_dir/ ;;
17314   esac
17315     for ac_exec_ext in '' $ac_executable_extensions; do
17316   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17317     ac_cv_prog_PTHREAD_CC="$ac_prog"
17318     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17319     break 2
17320   fi
17321 done
17322   done
17323 IFS=$as_save_IFS
17324
17325 fi
17326 fi
17327 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17328 if test -n "$PTHREAD_CC"; then
17329   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17330 printf "%s\n" "$PTHREAD_CC" >&6; }
17331 else
17332   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17333 printf "%s\n" "no" >&6; }
17334 fi
17335
17336
17337   test -n "$PTHREAD_CC" && break
17338 done
17339 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17340  ;;
17341 esac ;; #(
17342   *) :
17343      ;;
17344 esac
17345                 ;;
17346             esac
17347         fi
17348 fi
17349
17350 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17351
17352
17353
17354
17355
17356 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17357 if test x"$ax_pthread_ok" = xyes; then
17358
17359 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
17360
17361         :
17362 else
17363         ax_pthread_ok=no
17364
17365 fi
17366 ac_ext=c
17367 ac_cpp='$CPP $CPPFLAGS'
17368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387         # allow to override gcov location
17388
17389 # Check whether --with-gcov was given.
17390 if test ${with_gcov+y}
17391 then :
17392   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
17393 else $as_nop
17394   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
17395 fi
17396
17397
17398         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
17399 printf %s "checking whether to build with code coverage support... " >&6; }
17400         # Check whether --enable-code-coverage was given.
17401 if test ${enable_code_coverage+y}
17402 then :
17403   enableval=$enable_code_coverage;
17404 else $as_nop
17405   enable_code_coverage=no
17406 fi
17407
17408
17409          if test "x$enable_code_coverage" = xyes; then
17410   CODE_COVERAGE_ENABLED_TRUE=
17411   CODE_COVERAGE_ENABLED_FALSE='#'
17412 else
17413   CODE_COVERAGE_ENABLED_TRUE='#'
17414   CODE_COVERAGE_ENABLED_FALSE=
17415 fi
17416
17417         CODE_COVERAGE_ENABLED=$enable_code_coverage
17418
17419         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
17420 printf "%s\n" "$enable_code_coverage" >&6; }
17421
17422         if  test "x$enable_code_coverage" = xyes
17423 then :
17424
17425
17426           for ac_prog in gawk mawk nawk awk
17427 do
17428   # Extract the first word of "$ac_prog", so it can be a program name with args.
17429 set dummy $ac_prog; ac_word=$2
17430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17431 printf %s "checking for $ac_word... " >&6; }
17432 if test ${ac_cv_prog_AWK+y}
17433 then :
17434   printf %s "(cached) " >&6
17435 else $as_nop
17436   if test -n "$AWK"; then
17437   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17438 else
17439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17440 for as_dir in $PATH
17441 do
17442   IFS=$as_save_IFS
17443   case $as_dir in #(((
17444     '') as_dir=./ ;;
17445     */) ;;
17446     *) as_dir=$as_dir/ ;;
17447   esac
17448     for ac_exec_ext in '' $ac_executable_extensions; do
17449   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17450     ac_cv_prog_AWK="$ac_prog"
17451     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17452     break 2
17453   fi
17454 done
17455   done
17456 IFS=$as_save_IFS
17457
17458 fi
17459 fi
17460 AWK=$ac_cv_prog_AWK
17461 if test -n "$AWK"; then
17462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
17463 printf "%s\n" "$AWK" >&6; }
17464 else
17465   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17466 printf "%s\n" "no" >&6; }
17467 fi
17468
17469
17470   test -n "$AWK" && break
17471 done
17472
17473   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
17474 printf %s "checking for GNU make... " >&6; }
17475 if test ${_cv_gnu_make_command+y}
17476 then :
17477   printf %s "(cached) " >&6
17478 else $as_nop
17479       _cv_gnu_make_command="" ;
17480     for a in "$MAKE" make gmake gnumake ; do
17481       if test -z "$a" ; then continue ; fi ;
17482       if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
17483         _cv_gnu_make_command=$a ;
17484         AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
17485         ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
17486         break ;
17487       fi
17488     done ;
17489 fi
17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
17491 printf "%s\n" "$_cv_gnu_make_command" >&6; }
17492   if test "x$_cv_gnu_make_command" = x""
17493 then :
17494   ifGNUmake="#"
17495 else $as_nop
17496   ifGNUmake=""
17497 fi
17498   if test "x$_cv_gnu_make_command" = x""
17499 then :
17500   ifnGNUmake=""
17501 else $as_nop
17502   ifnGNUmake="#"
17503 fi
17504   if test "x$_cv_gnu_make_command" = x""
17505 then :
17506   { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
17507 else $as_nop
17508   ax_cv_gnu_make_command=${_cv_gnu_make_command}
17509 fi
17510   if test "x$_cv_gnu_make_command" = x""
17511 then :
17512   as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
17513 fi
17514
17515
17516
17517
17518         # check for gcov
17519         if test -n "$ac_tool_prefix"; then
17520   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
17521 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
17522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17523 printf %s "checking for $ac_word... " >&6; }
17524 if test ${ac_cv_prog_GCOV+y}
17525 then :
17526   printf %s "(cached) " >&6
17527 else $as_nop
17528   if test -n "$GCOV"; then
17529   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
17530 else
17531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17532 for as_dir in $PATH
17533 do
17534   IFS=$as_save_IFS
17535   case $as_dir in #(((
17536     '') as_dir=./ ;;
17537     */) ;;
17538     *) as_dir=$as_dir/ ;;
17539   esac
17540     for ac_exec_ext in '' $ac_executable_extensions; do
17541   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17542     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
17543     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17544     break 2
17545   fi
17546 done
17547   done
17548 IFS=$as_save_IFS
17549
17550 fi
17551 fi
17552 GCOV=$ac_cv_prog_GCOV
17553 if test -n "$GCOV"; then
17554   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
17555 printf "%s\n" "$GCOV" >&6; }
17556 else
17557   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558 printf "%s\n" "no" >&6; }
17559 fi
17560
17561
17562 fi
17563 if test -z "$ac_cv_prog_GCOV"; then
17564   ac_ct_GCOV=$GCOV
17565   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
17566 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17568 printf %s "checking for $ac_word... " >&6; }
17569 if test ${ac_cv_prog_ac_ct_GCOV+y}
17570 then :
17571   printf %s "(cached) " >&6
17572 else $as_nop
17573   if test -n "$ac_ct_GCOV"; then
17574   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
17575 else
17576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17577 for as_dir in $PATH
17578 do
17579   IFS=$as_save_IFS
17580   case $as_dir in #(((
17581     '') as_dir=./ ;;
17582     */) ;;
17583     *) as_dir=$as_dir/ ;;
17584   esac
17585     for ac_exec_ext in '' $ac_executable_extensions; do
17586   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17587     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
17588     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17589     break 2
17590   fi
17591 done
17592   done
17593 IFS=$as_save_IFS
17594
17595 fi
17596 fi
17597 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
17598 if test -n "$ac_ct_GCOV"; then
17599   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
17600 printf "%s\n" "$ac_ct_GCOV" >&6; }
17601 else
17602   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17603 printf "%s\n" "no" >&6; }
17604 fi
17605
17606   if test "x$ac_ct_GCOV" = x; then
17607     GCOV=":"
17608   else
17609     case $cross_compiling:$ac_tool_warned in
17610 yes:)
17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17612 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17613 ac_tool_warned=yes ;;
17614 esac
17615     GCOV=$ac_ct_GCOV
17616   fi
17617 else
17618   GCOV="$ac_cv_prog_GCOV"
17619 fi
17620
17621         if test "X$GCOV" = "X:"
17622 then :
17623   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
17624 fi
17625
17626
17627                 if  test "$GCC" = "no"
17628 then :
17629
17630                 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
17631
17632 fi
17633
17634         # Extract the first word of "lcov", so it can be a program name with args.
17635 set dummy lcov; ac_word=$2
17636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17637 printf %s "checking for $ac_word... " >&6; }
17638 if test ${ac_cv_prog_LCOV+y}
17639 then :
17640   printf %s "(cached) " >&6
17641 else $as_nop
17642   if test -n "$LCOV"; then
17643   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
17644 else
17645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17646 for as_dir in $PATH
17647 do
17648   IFS=$as_save_IFS
17649   case $as_dir in #(((
17650     '') as_dir=./ ;;
17651     */) ;;
17652     *) as_dir=$as_dir/ ;;
17653   esac
17654     for ac_exec_ext in '' $ac_executable_extensions; do
17655   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17656     ac_cv_prog_LCOV="lcov"
17657     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17658     break 2
17659   fi
17660 done
17661   done
17662 IFS=$as_save_IFS
17663
17664 fi
17665 fi
17666 LCOV=$ac_cv_prog_LCOV
17667 if test -n "$LCOV"; then
17668   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
17669 printf "%s\n" "$LCOV" >&6; }
17670 else
17671   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17672 printf "%s\n" "no" >&6; }
17673 fi
17674
17675
17676         # Extract the first word of "genhtml", so it can be a program name with args.
17677 set dummy genhtml; ac_word=$2
17678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17679 printf %s "checking for $ac_word... " >&6; }
17680 if test ${ac_cv_prog_GENHTML+y}
17681 then :
17682   printf %s "(cached) " >&6
17683 else $as_nop
17684   if test -n "$GENHTML"; then
17685   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
17686 else
17687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17688 for as_dir in $PATH
17689 do
17690   IFS=$as_save_IFS
17691   case $as_dir in #(((
17692     '') as_dir=./ ;;
17693     */) ;;
17694     *) as_dir=$as_dir/ ;;
17695   esac
17696     for ac_exec_ext in '' $ac_executable_extensions; do
17697   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17698     ac_cv_prog_GENHTML="genhtml"
17699     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17700     break 2
17701   fi
17702 done
17703   done
17704 IFS=$as_save_IFS
17705
17706 fi
17707 fi
17708 GENHTML=$ac_cv_prog_GENHTML
17709 if test -n "$GENHTML"; then
17710   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
17711 printf "%s\n" "$GENHTML" >&6; }
17712 else
17713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 printf "%s\n" "no" >&6; }
17715 fi
17716
17717
17718
17719         if  test x"$LCOV" = x
17720 then :
17721
17722                 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
17723
17724 fi
17725
17726         if  test x"$GENHTML" = x
17727 then :
17728
17729                 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
17730
17731 fi
17732
17733                         CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
17734         CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
17735         CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
17736         CODE_COVERAGE_LIBS="-lgcov"
17737
17738
17739
17740
17741
17742
17743
17744 fi
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether user namespaces are supported" >&5
17757 printf %s "checking whether user namespaces are supported... " >&6; }
17758 if test ${ax_cv_user_namespace+y}
17759 then :
17760   printf %s "(cached) " >&6
17761 else $as_nop
17762
17763   ac_ext=c
17764 ac_cpp='$CPP $CPPFLAGS'
17765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17768
17769   if test "$cross_compiling" = yes
17770 then :
17771   ax_cv_user_namespace=no
17772 else $as_nop
17773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h.  */
17775
17776 #define _GNU_SOURCE
17777 #include <fcntl.h>
17778 #include <sched.h>
17779 #include <signal.h>
17780 #include <stdio.h>
17781 #include <string.h>
17782 #include <sys/types.h>
17783 #include <sys/wait.h>
17784
17785 int userfn(void *d) {
17786   usleep(100000);  /* synchronize by sleep */
17787   return (getuid() != 0);
17788 }
17789 char userst[1024*1024];
17790 int main() {
17791   char buffer[1024];
17792   int rc, status, fd;
17793   pid_t child = clone(userfn, userst + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
17794   if (child < 0) return 1;
17795
17796   sprintf(buffer, "/proc/%d/uid_map", child);
17797   fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
17798   sprintf(buffer, "0 %d 1\n", getuid());
17799   write(fd, buffer, strlen(buffer));
17800   close(fd);
17801
17802   rc = waitpid(child, &status, 0);
17803   if (rc <= 0) return 1;
17804   if (!WIFEXITED(status)) return 1;
17805   return WEXITSTATUS(status);
17806 }
17807
17808 _ACEOF
17809 if ac_fn_c_try_run "$LINENO"
17810 then :
17811   ax_cv_user_namespace=yes
17812 else $as_nop
17813   ax_cv_user_namespace=no
17814 fi
17815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17816   conftest.$ac_objext conftest.beam conftest.$ac_ext
17817 fi
17818
17819  ac_ext=c
17820 ac_cpp='$CPP $CPPFLAGS'
17821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17824
17825
17826 fi
17827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_user_namespace" >&5
17828 printf "%s\n" "$ax_cv_user_namespace" >&6; }
17829  if test "$ax_cv_user_namespace" = yes; then
17830
17831 printf "%s\n" "#define HAVE_USER_NAMESPACE 1" >>confdefs.h
17832
17833  fi
17834
17835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UTS namespaces are supported" >&5
17836 printf %s "checking whether UTS namespaces are supported... " >&6; }
17837 if test ${ax_cv_uts_namespace+y}
17838 then :
17839   printf %s "(cached) " >&6
17840 else $as_nop
17841
17842   ac_ext=c
17843 ac_cpp='$CPP $CPPFLAGS'
17844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17847
17848   if test "$cross_compiling" = yes
17849 then :
17850   ax_cv_uts_namespace=no
17851 else $as_nop
17852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h.  */
17854
17855 #define _GNU_SOURCE
17856 #include <sched.h>
17857 #include <signal.h>
17858 #include <stdio.h>
17859 #include <string.h>
17860 #include <fcntl.h>
17861 #include <unistd.h>
17862 #include <sys/types.h>
17863 #include <sys/wait.h>
17864
17865 int utsfn(void *d) {
17866   char buffer[1024];
17867   const char *name = "autoconftest";
17868   int rc = sethostname(name, strlen(name));
17869   if (rc != 0) return 1;
17870   gethostname(buffer, 1024);
17871   return (strcmp(buffer, name) != 0);
17872 }
17873
17874 char st2[1024*1024];
17875 int fn(void *d) {
17876   pid_t child;
17877   int rc, status;
17878   usleep(100000);  /* synchronize by sleep */
17879   if (getuid() != 0) return 1;
17880   child = clone(utsfn, st2 + 1024*1024, CLONE_NEWUTS|SIGCHLD, 0);
17881   if (child < 0) return 1;
17882   rc = waitpid(child, &status, 0);
17883   if (rc <= 0) return 1;
17884   if (!WIFEXITED(status)) return 1;
17885   return WEXITSTATUS(status);
17886 }
17887 char st[1024*1024];
17888 int main() {
17889   char buffer[1024];
17890   int rc, status, fd;
17891   pid_t child = clone(fn, st + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
17892   if (child < 0) return 1;
17893
17894   sprintf(buffer, "/proc/%d/uid_map", child);
17895   fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
17896   sprintf(buffer, "0 %d 1\n", getuid());
17897   write(fd, buffer, strlen(buffer));
17898   close(fd);
17899
17900   rc = waitpid(child, &status, 0);
17901   if (rc <= 0) return 1;
17902   if (!WIFEXITED(status)) return 1;
17903   return WEXITSTATUS(status);
17904 }
17905
17906
17907 _ACEOF
17908 if ac_fn_c_try_run "$LINENO"
17909 then :
17910   ax_cv_uts_namespace=yes
17911 else $as_nop
17912   ax_cv_uts_namespace=no
17913 fi
17914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17915   conftest.$ac_objext conftest.beam conftest.$ac_ext
17916 fi
17917
17918  ac_ext=c
17919 ac_cpp='$CPP $CPPFLAGS'
17920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17923
17924
17925 fi
17926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uts_namespace" >&5
17927 printf "%s\n" "$ax_cv_uts_namespace" >&6; }
17928  if test "$ax_cv_uts_namespace" = yes; then
17929
17930 printf "%s\n" "#define HAVE_UTS_NAMESPACE 1" >>confdefs.h
17931
17932  fi
17933
17934
17935 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
17936 if test "x$ac_cv_header_netdb_h" = xyes
17937 then :
17938   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
17939
17940 fi
17941 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
17942 if test "x$ac_cv_header_netinet_tcp_h" = xyes
17943 then :
17944   printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
17945
17946 fi
17947
17948 ac_config_headers="$ac_config_headers config.h"
17949
17950 ac_config_files="$ac_config_files Makefile"
17951
17952 cat >confcache <<\_ACEOF
17953 # This file is a shell script that caches the results of configure
17954 # tests run on this system so they can be shared between configure
17955 # scripts and configure runs, see configure's option --config-cache.
17956 # It is not useful on other systems.  If it contains results you don't
17957 # want to keep, you may remove or edit it.
17958 #
17959 # config.status only pays attention to the cache file if you give it
17960 # the --recheck option to rerun configure.
17961 #
17962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17964 # following values.
17965
17966 _ACEOF
17967
17968 # The following way of writing the cache mishandles newlines in values,
17969 # but we know of no workaround that is simple, portable, and efficient.
17970 # So, we kill variables containing newlines.
17971 # Ultrix sh set writes to stderr and can't be redirected directly,
17972 # and sets the high bit in the cache file unless we assign to the vars.
17973 (
17974   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17975     eval ac_val=\$$ac_var
17976     case $ac_val in #(
17977     *${as_nl}*)
17978       case $ac_var in #(
17979       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17980 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17981       esac
17982       case $ac_var in #(
17983       _ | IFS | as_nl) ;; #(
17984       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17985       *) { eval $ac_var=; unset $ac_var;} ;;
17986       esac ;;
17987     esac
17988   done
17989
17990   (set) 2>&1 |
17991     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17992     *${as_nl}ac_space=\ *)
17993       # `set' does not quote correctly, so add quotes: double-quote
17994       # substitution turns \\\\ into \\, and sed turns \\ into \.
17995       sed -n \
17996         "s/'/'\\\\''/g;
17997           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17998       ;; #(
17999     *)
18000       # `set' quotes correctly as required by POSIX, so do not add quotes.
18001       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18002       ;;
18003     esac |
18004     sort
18005 ) |
18006   sed '
18007      /^ac_cv_env_/b end
18008      t clear
18009      :clear
18010      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18011      t end
18012      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18013      :end' >>confcache
18014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18015   if test -w "$cache_file"; then
18016     if test "x$cache_file" != "x/dev/null"; then
18017       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18018 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18019       if test ! -f "$cache_file" || test -h "$cache_file"; then
18020         cat confcache >"$cache_file"
18021       else
18022         case $cache_file in #(
18023         */* | ?:*)
18024           mv -f confcache "$cache_file"$$ &&
18025           mv -f "$cache_file"$$ "$cache_file" ;; #(
18026         *)
18027           mv -f confcache "$cache_file" ;;
18028         esac
18029       fi
18030     fi
18031   else
18032     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18033 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18034   fi
18035 fi
18036 rm -f confcache
18037
18038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18039 # Let make expand exec_prefix.
18040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18041
18042 DEFS=-DHAVE_CONFIG_H
18043
18044 ac_libobjs=
18045 ac_ltlibobjs=
18046 U=
18047 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18048   # 1. Remove the extension, and $U if already installed.
18049   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18050   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18051   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18052   #    will be set to the directory where LIBOBJS objects are built.
18053   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18054   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18055 done
18056 LIBOBJS=$ac_libobjs
18057
18058 LTLIBOBJS=$ac_ltlibobjs
18059
18060
18061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18062 printf %s "checking that generated files are newer than configure... " >&6; }
18063    if test -n "$am_sleep_pid"; then
18064      # Hide warnings about reused PIDs.
18065      wait $am_sleep_pid 2>/dev/null
18066    fi
18067    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18068 printf "%s\n" "done" >&6; }
18069  if test -n "$EXEEXT"; then
18070   am__EXEEXT_TRUE=
18071   am__EXEEXT_FALSE='#'
18072 else
18073   am__EXEEXT_TRUE='#'
18074   am__EXEEXT_FALSE=
18075 fi
18076
18077 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18078   as_fn_error $? "conditional \"AMDEP\" was never defined.
18079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18080 fi
18081 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18082   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18084 fi
18085 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18086   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18088 fi
18089 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
18090   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
18091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18092 fi
18093
18094 : "${CONFIG_STATUS=./config.status}"
18095 ac_write_fail=0
18096 ac_clean_files_save=$ac_clean_files
18097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18099 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18100 as_write_fail=0
18101 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18102 #! $SHELL
18103 # Generated by $as_me.
18104 # Run this file to recreate the current configuration.
18105 # Compiler output produced by configure, useful for debugging
18106 # configure, is in config.log if it exists.
18107
18108 debug=false
18109 ac_cs_recheck=false
18110 ac_cs_silent=false
18111
18112 SHELL=\${CONFIG_SHELL-$SHELL}
18113 export SHELL
18114 _ASEOF
18115 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18116 ## -------------------- ##
18117 ## M4sh Initialization. ##
18118 ## -------------------- ##
18119
18120 # Be more Bourne compatible
18121 DUALCASE=1; export DUALCASE # for MKS sh
18122 as_nop=:
18123 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18124 then :
18125   emulate sh
18126   NULLCMD=:
18127   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18128   # is contrary to our usage.  Disable this feature.
18129   alias -g '${1+"$@"}'='"$@"'
18130   setopt NO_GLOB_SUBST
18131 else $as_nop
18132   case `(set -o) 2>/dev/null` in #(
18133   *posix*) :
18134     set -o posix ;; #(
18135   *) :
18136      ;;
18137 esac
18138 fi
18139
18140
18141
18142 # Reset variables that may have inherited troublesome values from
18143 # the environment.
18144
18145 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18146 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18147 # side effect of setting IFS to empty, thus disabling word splitting.)
18148 # Quoting is to prevent editors from complaining about space-tab.
18149 as_nl='
18150 '
18151 export as_nl
18152 IFS=" ""        $as_nl"
18153
18154 PS1='$ '
18155 PS2='> '
18156 PS4='+ '
18157
18158 # Ensure predictable behavior from utilities with locale-dependent output.
18159 LC_ALL=C
18160 export LC_ALL
18161 LANGUAGE=C
18162 export LANGUAGE
18163
18164 # We cannot yet rely on "unset" to work, but we need these variables
18165 # to be unset--not just set to an empty or harmless value--now, to
18166 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
18167 # also avoids known problems related to "unset" and subshell syntax
18168 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18169 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18170 do eval test \${$as_var+y} \
18171   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18172 done
18173
18174 # Ensure that fds 0, 1, and 2 are open.
18175 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18176 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18177 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
18178
18179 # The user is always right.
18180 if ${PATH_SEPARATOR+false} :; then
18181   PATH_SEPARATOR=:
18182   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18183     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18184       PATH_SEPARATOR=';'
18185   }
18186 fi
18187
18188
18189 # Find who we are.  Look in the path if we contain no directory separator.
18190 as_myself=
18191 case $0 in #((
18192   *[\\/]* ) as_myself=$0 ;;
18193   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18194 for as_dir in $PATH
18195 do
18196   IFS=$as_save_IFS
18197   case $as_dir in #(((
18198     '') as_dir=./ ;;
18199     */) ;;
18200     *) as_dir=$as_dir/ ;;
18201   esac
18202     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18203   done
18204 IFS=$as_save_IFS
18205
18206      ;;
18207 esac
18208 # We did not find ourselves, most probably we were run as `sh COMMAND'
18209 # in which case we are not to be found in the path.
18210 if test "x$as_myself" = x; then
18211   as_myself=$0
18212 fi
18213 if test ! -f "$as_myself"; then
18214   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18215   exit 1
18216 fi
18217
18218
18219
18220 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18221 # ----------------------------------------
18222 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18223 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18224 # script with STATUS, using 1 if that was 0.
18225 as_fn_error ()
18226 {
18227   as_status=$1; test $as_status -eq 0 && as_status=1
18228   if test "$4"; then
18229     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18230     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18231   fi
18232   printf "%s\n" "$as_me: error: $2" >&2
18233   as_fn_exit $as_status
18234 } # as_fn_error
18235
18236
18237
18238 # as_fn_set_status STATUS
18239 # -----------------------
18240 # Set $? to STATUS, without forking.
18241 as_fn_set_status ()
18242 {
18243   return $1
18244 } # as_fn_set_status
18245
18246 # as_fn_exit STATUS
18247 # -----------------
18248 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18249 as_fn_exit ()
18250 {
18251   set +e
18252   as_fn_set_status $1
18253   exit $1
18254 } # as_fn_exit
18255
18256 # as_fn_unset VAR
18257 # ---------------
18258 # Portably unset VAR.
18259 as_fn_unset ()
18260 {
18261   { eval $1=; unset $1;}
18262 }
18263 as_unset=as_fn_unset
18264
18265 # as_fn_append VAR VALUE
18266 # ----------------------
18267 # Append the text in VALUE to the end of the definition contained in VAR. Take
18268 # advantage of any shell optimizations that allow amortized linear growth over
18269 # repeated appends, instead of the typical quadratic growth present in naive
18270 # implementations.
18271 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18272 then :
18273   eval 'as_fn_append ()
18274   {
18275     eval $1+=\$2
18276   }'
18277 else $as_nop
18278   as_fn_append ()
18279   {
18280     eval $1=\$$1\$2
18281   }
18282 fi # as_fn_append
18283
18284 # as_fn_arith ARG...
18285 # ------------------
18286 # Perform arithmetic evaluation on the ARGs, and store the result in the
18287 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18288 # must be portable across $(()) and expr.
18289 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18290 then :
18291   eval 'as_fn_arith ()
18292   {
18293     as_val=$(( $* ))
18294   }'
18295 else $as_nop
18296   as_fn_arith ()
18297   {
18298     as_val=`expr "$@" || test $? -eq 1`
18299   }
18300 fi # as_fn_arith
18301
18302
18303 if expr a : '\(a\)' >/dev/null 2>&1 &&
18304    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18305   as_expr=expr
18306 else
18307   as_expr=false
18308 fi
18309
18310 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18311   as_basename=basename
18312 else
18313   as_basename=false
18314 fi
18315
18316 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18317   as_dirname=dirname
18318 else
18319   as_dirname=false
18320 fi
18321
18322 as_me=`$as_basename -- "$0" ||
18323 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18324          X"$0" : 'X\(//\)$' \| \
18325          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18326 printf "%s\n" X/"$0" |
18327     sed '/^.*\/\([^/][^/]*\)\/*$/{
18328             s//\1/
18329             q
18330           }
18331           /^X\/\(\/\/\)$/{
18332             s//\1/
18333             q
18334           }
18335           /^X\/\(\/\).*/{
18336             s//\1/
18337             q
18338           }
18339           s/.*/./; q'`
18340
18341 # Avoid depending upon Character Ranges.
18342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18345 as_cr_digits='0123456789'
18346 as_cr_alnum=$as_cr_Letters$as_cr_digits
18347
18348
18349 # Determine whether it's possible to make 'echo' print without a newline.
18350 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18351 # for compatibility with existing Makefiles.
18352 ECHO_C= ECHO_N= ECHO_T=
18353 case `echo -n x` in #(((((
18354 -n*)
18355   case `echo 'xy\c'` in
18356   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18357   xy)  ECHO_C='\c';;
18358   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18359        ECHO_T=' ';;
18360   esac;;
18361 *)
18362   ECHO_N='-n';;
18363 esac
18364
18365 # For backward compatibility with old third-party macros, we provide
18366 # the shell variables $as_echo and $as_echo_n.  New code should use
18367 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18368 as_echo='printf %s\n'
18369 as_echo_n='printf %s'
18370
18371 rm -f conf$$ conf$$.exe conf$$.file
18372 if test -d conf$$.dir; then
18373   rm -f conf$$.dir/conf$$.file
18374 else
18375   rm -f conf$$.dir
18376   mkdir conf$$.dir 2>/dev/null
18377 fi
18378 if (echo >conf$$.file) 2>/dev/null; then
18379   if ln -s conf$$.file conf$$ 2>/dev/null; then
18380     as_ln_s='ln -s'
18381     # ... but there are two gotchas:
18382     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18383     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18384     # In both cases, we have to default to `cp -pR'.
18385     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18386       as_ln_s='cp -pR'
18387   elif ln conf$$.file conf$$ 2>/dev/null; then
18388     as_ln_s=ln
18389   else
18390     as_ln_s='cp -pR'
18391   fi
18392 else
18393   as_ln_s='cp -pR'
18394 fi
18395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18396 rmdir conf$$.dir 2>/dev/null
18397
18398
18399 # as_fn_mkdir_p
18400 # -------------
18401 # Create "$as_dir" as a directory, including parents if necessary.
18402 as_fn_mkdir_p ()
18403 {
18404
18405   case $as_dir in #(
18406   -*) as_dir=./$as_dir;;
18407   esac
18408   test -d "$as_dir" || eval $as_mkdir_p || {
18409     as_dirs=
18410     while :; do
18411       case $as_dir in #(
18412       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18413       *) as_qdir=$as_dir;;
18414       esac
18415       as_dirs="'$as_qdir' $as_dirs"
18416       as_dir=`$as_dirname -- "$as_dir" ||
18417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18418          X"$as_dir" : 'X\(//\)[^/]' \| \
18419          X"$as_dir" : 'X\(//\)$' \| \
18420          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18421 printf "%s\n" X"$as_dir" |
18422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18423             s//\1/
18424             q
18425           }
18426           /^X\(\/\/\)[^/].*/{
18427             s//\1/
18428             q
18429           }
18430           /^X\(\/\/\)$/{
18431             s//\1/
18432             q
18433           }
18434           /^X\(\/\).*/{
18435             s//\1/
18436             q
18437           }
18438           s/.*/./; q'`
18439       test -d "$as_dir" && break
18440     done
18441     test -z "$as_dirs" || eval "mkdir $as_dirs"
18442   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18443
18444
18445 } # as_fn_mkdir_p
18446 if mkdir -p . 2>/dev/null; then
18447   as_mkdir_p='mkdir -p "$as_dir"'
18448 else
18449   test -d ./-p && rmdir ./-p
18450   as_mkdir_p=false
18451 fi
18452
18453
18454 # as_fn_executable_p FILE
18455 # -----------------------
18456 # Test if FILE is an executable regular file.
18457 as_fn_executable_p ()
18458 {
18459   test -f "$1" && test -x "$1"
18460 } # as_fn_executable_p
18461 as_test_x='test -x'
18462 as_executable_p=as_fn_executable_p
18463
18464 # Sed expression to map a string onto a valid CPP name.
18465 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18466
18467 # Sed expression to map a string onto a valid variable name.
18468 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18469
18470
18471 exec 6>&1
18472 ## ----------------------------------- ##
18473 ## Main body of $CONFIG_STATUS script. ##
18474 ## ----------------------------------- ##
18475 _ASEOF
18476 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18477
18478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18479 # Save the log message, to keep $0 and so on meaningful, and to
18480 # report actual input values of CONFIG_FILES etc. instead of their
18481 # values after options handling.
18482 ac_log="
18483 This file was extended by c-ares-test $as_me -, which was
18484 generated by GNU Autoconf 2.71.  Invocation command line was
18485
18486   CONFIG_FILES    = $CONFIG_FILES
18487   CONFIG_HEADERS  = $CONFIG_HEADERS
18488   CONFIG_LINKS    = $CONFIG_LINKS
18489   CONFIG_COMMANDS = $CONFIG_COMMANDS
18490   $ $0 $@
18491
18492 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18493 "
18494
18495 _ACEOF
18496
18497 case $ac_config_files in *"
18498 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18499 esac
18500
18501 case $ac_config_headers in *"
18502 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18503 esac
18504
18505
18506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18507 # Files that config.status was made for.
18508 config_files="$ac_config_files"
18509 config_headers="$ac_config_headers"
18510 config_commands="$ac_config_commands"
18511
18512 _ACEOF
18513
18514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18515 ac_cs_usage="\
18516 \`$as_me' instantiates files and other configuration actions
18517 from templates according to the current configuration.  Unless the files
18518 and actions are specified as TAGs, all are instantiated by default.
18519
18520 Usage: $0 [OPTION]... [TAG]...
18521
18522   -h, --help       print this help, then exit
18523   -V, --version    print version number and configuration settings, then exit
18524       --config     print configuration, then exit
18525   -q, --quiet, --silent
18526                    do not print progress messages
18527   -d, --debug      don't remove temporary files
18528       --recheck    update $as_me by reconfiguring in the same conditions
18529       --file=FILE[:TEMPLATE]
18530                    instantiate the configuration file FILE
18531       --header=FILE[:TEMPLATE]
18532                    instantiate the configuration header FILE
18533
18534 Configuration files:
18535 $config_files
18536
18537 Configuration headers:
18538 $config_headers
18539
18540 Configuration commands:
18541 $config_commands
18542
18543 Report bugs to <->."
18544
18545 _ACEOF
18546 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18547 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549 ac_cs_config='$ac_cs_config_escaped'
18550 ac_cs_version="\\
18551 c-ares-test config.status -
18552 configured by $0, generated by GNU Autoconf 2.71,
18553   with options \\"\$ac_cs_config\\"
18554
18555 Copyright (C) 2021 Free Software Foundation, Inc.
18556 This config.status script is free software; the Free Software Foundation
18557 gives unlimited permission to copy, distribute and modify it."
18558
18559 ac_pwd='$ac_pwd'
18560 srcdir='$srcdir'
18561 INSTALL='$INSTALL'
18562 MKDIR_P='$MKDIR_P'
18563 AWK='$AWK'
18564 test -n "\$AWK" || AWK=awk
18565 _ACEOF
18566
18567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18568 # The default lists apply if the user does not specify any file.
18569 ac_need_defaults=:
18570 while test $# != 0
18571 do
18572   case $1 in
18573   --*=?*)
18574     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18575     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18576     ac_shift=:
18577     ;;
18578   --*=)
18579     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18580     ac_optarg=
18581     ac_shift=:
18582     ;;
18583   *)
18584     ac_option=$1
18585     ac_optarg=$2
18586     ac_shift=shift
18587     ;;
18588   esac
18589
18590   case $ac_option in
18591   # Handling of the options.
18592   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18593     ac_cs_recheck=: ;;
18594   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18595     printf "%s\n" "$ac_cs_version"; exit ;;
18596   --config | --confi | --conf | --con | --co | --c )
18597     printf "%s\n" "$ac_cs_config"; exit ;;
18598   --debug | --debu | --deb | --de | --d | -d )
18599     debug=: ;;
18600   --file | --fil | --fi | --f )
18601     $ac_shift
18602     case $ac_optarg in
18603     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18604     '') as_fn_error $? "missing file argument" ;;
18605     esac
18606     as_fn_append CONFIG_FILES " '$ac_optarg'"
18607     ac_need_defaults=false;;
18608   --header | --heade | --head | --hea )
18609     $ac_shift
18610     case $ac_optarg in
18611     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18612     esac
18613     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18614     ac_need_defaults=false;;
18615   --he | --h)
18616     # Conflict between --help and --header
18617     as_fn_error $? "ambiguous option: \`$1'
18618 Try \`$0 --help' for more information.";;
18619   --help | --hel | -h )
18620     printf "%s\n" "$ac_cs_usage"; exit ;;
18621   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18622   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18623     ac_cs_silent=: ;;
18624
18625   # This is an error.
18626   -*) as_fn_error $? "unrecognized option: \`$1'
18627 Try \`$0 --help' for more information." ;;
18628
18629   *) as_fn_append ac_config_targets " $1"
18630      ac_need_defaults=false ;;
18631
18632   esac
18633   shift
18634 done
18635
18636 ac_configure_extra_args=
18637
18638 if $ac_cs_silent; then
18639   exec 6>/dev/null
18640   ac_configure_extra_args="$ac_configure_extra_args --silent"
18641 fi
18642
18643 _ACEOF
18644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18645 if \$ac_cs_recheck; then
18646   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18647   shift
18648   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18649   CONFIG_SHELL='$SHELL'
18650   export CONFIG_SHELL
18651   exec "\$@"
18652 fi
18653
18654 _ACEOF
18655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18656 exec 5>>config.log
18657 {
18658   echo
18659   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18660 ## Running $as_me. ##
18661 _ASBOX
18662   printf "%s\n" "$ac_log"
18663 } >&5
18664
18665 _ACEOF
18666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18667 #
18668 # INIT-COMMANDS
18669 #
18670 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18671
18672
18673 # The HP-UX ksh and POSIX shell print the target directory to stdout
18674 # if CDPATH is set.
18675 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18676
18677 sed_quote_subst='$sed_quote_subst'
18678 double_quote_subst='$double_quote_subst'
18679 delay_variable_subst='$delay_variable_subst'
18680 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18681 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18682 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18683 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18684 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18685 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18686 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18687 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18688 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18689 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18690 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18691 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18692 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18693 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18694 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18695 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18696 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18697 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18698 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18699 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18700 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18701 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18702 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18703 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18704 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18705 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18706 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18707 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18708 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18709 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18710 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18711 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18712 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18713 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18714 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18715 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18716 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18717 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18718 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18719 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18720 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18721 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18722 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18723 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18724 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18725 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18726 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18727 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18728 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18729 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18730 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18731 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18732 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18733 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18734 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18735 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18736 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18737 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18738 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"`'
18739 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18740 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18741 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18742 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18743 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18744 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18745 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18746 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18747 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18748 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18749 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18750 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18751 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18752 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18753 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18754 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18755 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18756 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18757 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18758 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18759 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18760 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18761 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18762 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18763 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18764 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18765 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18766 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18767 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18768 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18769 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18770 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18771 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18772 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18773 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18774 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18775 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18776 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18777 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18778 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18779 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18780 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18781 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18782 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18783 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18784 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18785 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18786 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18787 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18788 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18789 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18790 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18791 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18792 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18793 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18794 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18795 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18796 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18797 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18798 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18799 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18800 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18801 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18802 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18803 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18804 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18805 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18806 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18807 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18808 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18809 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18810 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18811 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18812 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18813 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18814 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18815 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18816 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18817 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18818 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18819 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18820 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18821 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18822 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18823 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18824 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18825 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18826 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18827 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18828 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18829 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18830 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18831 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18832 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18833 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18834 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18835 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18836 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18837 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18838 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18839 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18840 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18841 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18842 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18843 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18844 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18845 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18846 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18847 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18848 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18849 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18850 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18851 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18852 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18853 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18854 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18855 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18856 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18857 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18858 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18859 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18860 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18861 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18862 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18863 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18864 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18865 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18866 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18867 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18868 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18869
18870 LTCC='$LTCC'
18871 LTCFLAGS='$LTCFLAGS'
18872 compiler='$compiler_DEFAULT'
18873
18874 # A function that is used when there is no print builtin or printf.
18875 func_fallback_echo ()
18876 {
18877   eval 'cat <<_LTECHO_EOF
18878 \$1
18879 _LTECHO_EOF'
18880 }
18881
18882 # Quote evaled strings.
18883 for var in SHELL \
18884 ECHO \
18885 PATH_SEPARATOR \
18886 SED \
18887 GREP \
18888 EGREP \
18889 FGREP \
18890 LD \
18891 NM \
18892 LN_S \
18893 lt_SP2NL \
18894 lt_NL2SP \
18895 reload_flag \
18896 OBJDUMP \
18897 deplibs_check_method \
18898 file_magic_cmd \
18899 file_magic_glob \
18900 want_nocaseglob \
18901 DLLTOOL \
18902 sharedlib_from_linklib_cmd \
18903 AR \
18904 AR_FLAGS \
18905 archiver_list_spec \
18906 STRIP \
18907 RANLIB \
18908 CC \
18909 CFLAGS \
18910 compiler \
18911 lt_cv_sys_global_symbol_pipe \
18912 lt_cv_sys_global_symbol_to_cdecl \
18913 lt_cv_sys_global_symbol_to_import \
18914 lt_cv_sys_global_symbol_to_c_name_address \
18915 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18916 lt_cv_nm_interface \
18917 nm_file_list_spec \
18918 lt_cv_truncate_bin \
18919 lt_prog_compiler_no_builtin_flag \
18920 lt_prog_compiler_pic \
18921 lt_prog_compiler_wl \
18922 lt_prog_compiler_static \
18923 lt_cv_prog_compiler_c_o \
18924 need_locks \
18925 MANIFEST_TOOL \
18926 DSYMUTIL \
18927 NMEDIT \
18928 LIPO \
18929 OTOOL \
18930 OTOOL64 \
18931 shrext_cmds \
18932 export_dynamic_flag_spec \
18933 whole_archive_flag_spec \
18934 compiler_needs_object \
18935 with_gnu_ld \
18936 allow_undefined_flag \
18937 no_undefined_flag \
18938 hardcode_libdir_flag_spec \
18939 hardcode_libdir_separator \
18940 exclude_expsyms \
18941 include_expsyms \
18942 file_list_spec \
18943 variables_saved_for_relink \
18944 libname_spec \
18945 library_names_spec \
18946 soname_spec \
18947 install_override_mode \
18948 finish_eval \
18949 old_striplib \
18950 striplib \
18951 compiler_lib_search_dirs \
18952 predep_objects \
18953 postdep_objects \
18954 predeps \
18955 postdeps \
18956 compiler_lib_search_path \
18957 LD_CXX \
18958 reload_flag_CXX \
18959 compiler_CXX \
18960 lt_prog_compiler_no_builtin_flag_CXX \
18961 lt_prog_compiler_pic_CXX \
18962 lt_prog_compiler_wl_CXX \
18963 lt_prog_compiler_static_CXX \
18964 lt_cv_prog_compiler_c_o_CXX \
18965 export_dynamic_flag_spec_CXX \
18966 whole_archive_flag_spec_CXX \
18967 compiler_needs_object_CXX \
18968 with_gnu_ld_CXX \
18969 allow_undefined_flag_CXX \
18970 no_undefined_flag_CXX \
18971 hardcode_libdir_flag_spec_CXX \
18972 hardcode_libdir_separator_CXX \
18973 exclude_expsyms_CXX \
18974 include_expsyms_CXX \
18975 file_list_spec_CXX \
18976 compiler_lib_search_dirs_CXX \
18977 predep_objects_CXX \
18978 postdep_objects_CXX \
18979 predeps_CXX \
18980 postdeps_CXX \
18981 compiler_lib_search_path_CXX; do
18982     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18983     *[\\\\\\\`\\"\\\$]*)
18984       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18985       ;;
18986     *)
18987       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18988       ;;
18989     esac
18990 done
18991
18992 # Double-quote double-evaled strings.
18993 for var in reload_cmds \
18994 old_postinstall_cmds \
18995 old_postuninstall_cmds \
18996 old_archive_cmds \
18997 extract_expsyms_cmds \
18998 old_archive_from_new_cmds \
18999 old_archive_from_expsyms_cmds \
19000 archive_cmds \
19001 archive_expsym_cmds \
19002 module_cmds \
19003 module_expsym_cmds \
19004 export_symbols_cmds \
19005 prelink_cmds \
19006 postlink_cmds \
19007 postinstall_cmds \
19008 postuninstall_cmds \
19009 finish_cmds \
19010 sys_lib_search_path_spec \
19011 configure_time_dlsearch_path \
19012 configure_time_lt_sys_library_path \
19013 reload_cmds_CXX \
19014 old_archive_cmds_CXX \
19015 old_archive_from_new_cmds_CXX \
19016 old_archive_from_expsyms_cmds_CXX \
19017 archive_cmds_CXX \
19018 archive_expsym_cmds_CXX \
19019 module_cmds_CXX \
19020 module_expsym_cmds_CXX \
19021 export_symbols_cmds_CXX \
19022 prelink_cmds_CXX \
19023 postlink_cmds_CXX; do
19024     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19025     *[\\\\\\\`\\"\\\$]*)
19026       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19027       ;;
19028     *)
19029       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19030       ;;
19031     esac
19032 done
19033
19034 ac_aux_dir='$ac_aux_dir'
19035
19036 # See if we are running on zsh, and set the options that allow our
19037 # commands through without removal of \ escapes INIT.
19038 if test -n "\${ZSH_VERSION+set}"; then
19039    setopt NO_GLOB_SUBST
19040 fi
19041
19042
19043     PACKAGE='$PACKAGE'
19044     VERSION='$VERSION'
19045     RM='$RM'
19046     ofile='$ofile'
19047
19048
19049
19050
19051
19052
19053 _ACEOF
19054
19055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19056
19057 # Handling of arguments.
19058 for ac_config_target in $ac_config_targets
19059 do
19060   case $ac_config_target in
19061     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19062     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19063     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19064     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19065
19066   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19067   esac
19068 done
19069
19070
19071 # If the user did not use the arguments to specify the items to instantiate,
19072 # then the envvar interface is used.  Set only those that are not.
19073 # We use the long form for the default assignment because of an extremely
19074 # bizarre bug on SunOS 4.1.3.
19075 if $ac_need_defaults; then
19076   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19077   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19078   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19079 fi
19080
19081 # Have a temporary directory for convenience.  Make it in the build tree
19082 # simply because there is no reason against having it here, and in addition,
19083 # creating and moving files from /tmp can sometimes cause problems.
19084 # Hook for its removal unless debugging.
19085 # Note that there is a small window in which the directory will not be cleaned:
19086 # after its creation but before its name has been assigned to `$tmp'.
19087 $debug ||
19088 {
19089   tmp= ac_tmp=
19090   trap 'exit_status=$?
19091   : "${ac_tmp:=$tmp}"
19092   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19093 ' 0
19094   trap 'as_fn_exit 1' 1 2 13 15
19095 }
19096 # Create a (secure) tmp directory for tmp files.
19097
19098 {
19099   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19100   test -d "$tmp"
19101 }  ||
19102 {
19103   tmp=./conf$$-$RANDOM
19104   (umask 077 && mkdir "$tmp")
19105 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19106 ac_tmp=$tmp
19107
19108 # Set up the scripts for CONFIG_FILES section.
19109 # No need to generate them if there are no CONFIG_FILES.
19110 # This happens for instance with `./config.status config.h'.
19111 if test -n "$CONFIG_FILES"; then
19112
19113
19114 ac_cr=`echo X | tr X '\015'`
19115 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19116 # But we know of no other shell where ac_cr would be empty at this
19117 # point, so we can use a bashism as a fallback.
19118 if test "x$ac_cr" = x; then
19119   eval ac_cr=\$\'\\r\'
19120 fi
19121 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19122 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19123   ac_cs_awk_cr='\\r'
19124 else
19125   ac_cs_awk_cr=$ac_cr
19126 fi
19127
19128 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19129 _ACEOF
19130
19131
19132 {
19133   echo "cat >conf$$subs.awk <<_ACEOF" &&
19134   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19135   echo "_ACEOF"
19136 } >conf$$subs.sh ||
19137   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19138 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19139 ac_delim='%!_!# '
19140 for ac_last_try in false false false false false :; do
19141   . ./conf$$subs.sh ||
19142     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19143
19144   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19145   if test $ac_delim_n = $ac_delim_num; then
19146     break
19147   elif $ac_last_try; then
19148     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19149   else
19150     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19151   fi
19152 done
19153 rm -f conf$$subs.sh
19154
19155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19156 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19157 _ACEOF
19158 sed -n '
19159 h
19160 s/^/S["/; s/!.*/"]=/
19161 p
19162 g
19163 s/^[^!]*!//
19164 :repl
19165 t repl
19166 s/'"$ac_delim"'$//
19167 t delim
19168 :nl
19169 h
19170 s/\(.\{148\}\)..*/\1/
19171 t more1
19172 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19173 p
19174 n
19175 b repl
19176 :more1
19177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19178 p
19179 g
19180 s/.\{148\}//
19181 t nl
19182 :delim
19183 h
19184 s/\(.\{148\}\)..*/\1/
19185 t more2
19186 s/["\\]/\\&/g; s/^/"/; s/$/"/
19187 p
19188 b
19189 :more2
19190 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19191 p
19192 g
19193 s/.\{148\}//
19194 t delim
19195 ' <conf$$subs.awk | sed '
19196 /^[^""]/{
19197   N
19198   s/\n//
19199 }
19200 ' >>$CONFIG_STATUS || ac_write_fail=1
19201 rm -f conf$$subs.awk
19202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19203 _ACAWK
19204 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19205   for (key in S) S_is_set[key] = 1
19206   FS = "\a"
19207
19208 }
19209 {
19210   line = $ 0
19211   nfields = split(line, field, "@")
19212   substed = 0
19213   len = length(field[1])
19214   for (i = 2; i < nfields; i++) {
19215     key = field[i]
19216     keylen = length(key)
19217     if (S_is_set[key]) {
19218       value = S[key]
19219       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19220       len += length(value) + length(field[++i])
19221       substed = 1
19222     } else
19223       len += 1 + keylen
19224   }
19225
19226   print line
19227 }
19228
19229 _ACAWK
19230 _ACEOF
19231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19232 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19233   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19234 else
19235   cat
19236 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19237   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19238 _ACEOF
19239
19240 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19241 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19242 # trailing colons and then remove the whole line if VPATH becomes empty
19243 # (actually we leave an empty line to preserve line numbers).
19244 if test "x$srcdir" = x.; then
19245   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19246 h
19247 s///
19248 s/^/:/
19249 s/[      ]*$/:/
19250 s/:\$(srcdir):/:/g
19251 s/:\${srcdir}:/:/g
19252 s/:@srcdir@:/:/g
19253 s/^:*//
19254 s/:*$//
19255 x
19256 s/\(=[   ]*\).*/\1/
19257 G
19258 s/\n//
19259 s/^[^=]*=[       ]*$//
19260 }'
19261 fi
19262
19263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19264 fi # test -n "$CONFIG_FILES"
19265
19266 # Set up the scripts for CONFIG_HEADERS section.
19267 # No need to generate them if there are no CONFIG_HEADERS.
19268 # This happens for instance with `./config.status Makefile'.
19269 if test -n "$CONFIG_HEADERS"; then
19270 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19271 BEGIN {
19272 _ACEOF
19273
19274 # Transform confdefs.h into an awk script `defines.awk', embedded as
19275 # here-document in config.status, that substitutes the proper values into
19276 # config.h.in to produce config.h.
19277
19278 # Create a delimiter string that does not exist in confdefs.h, to ease
19279 # handling of long lines.
19280 ac_delim='%!_!# '
19281 for ac_last_try in false false :; do
19282   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19283   if test -z "$ac_tt"; then
19284     break
19285   elif $ac_last_try; then
19286     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19287   else
19288     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19289   fi
19290 done
19291
19292 # For the awk script, D is an array of macro values keyed by name,
19293 # likewise P contains macro parameters if any.  Preserve backslash
19294 # newline sequences.
19295
19296 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19297 sed -n '
19298 s/.\{148\}/&'"$ac_delim"'/g
19299 t rset
19300 :rset
19301 s/^[     ]*#[    ]*define[       ][      ]*/ /
19302 t def
19303 d
19304 :def
19305 s/\\$//
19306 t bsnl
19307 s/["\\]/\\&/g
19308 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19309 D["\1"]=" \3"/p
19310 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19311 d
19312 :bsnl
19313 s/["\\]/\\&/g
19314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19315 D["\1"]=" \3\\\\\\n"\\/p
19316 t cont
19317 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19318 t cont
19319 d
19320 :cont
19321 n
19322 s/.\{148\}/&'"$ac_delim"'/g
19323 t clear
19324 :clear
19325 s/\\$//
19326 t bsnlc
19327 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19328 d
19329 :bsnlc
19330 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19331 b cont
19332 ' <confdefs.h | sed '
19333 s/'"$ac_delim"'/"\\\
19334 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19335
19336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19337   for (key in D) D_is_set[key] = 1
19338   FS = "\a"
19339 }
19340 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19341   line = \$ 0
19342   split(line, arg, " ")
19343   if (arg[1] == "#") {
19344     defundef = arg[2]
19345     mac1 = arg[3]
19346   } else {
19347     defundef = substr(arg[1], 2)
19348     mac1 = arg[2]
19349   }
19350   split(mac1, mac2, "(") #)
19351   macro = mac2[1]
19352   prefix = substr(line, 1, index(line, defundef) - 1)
19353   if (D_is_set[macro]) {
19354     # Preserve the white space surrounding the "#".
19355     print prefix "define", macro P[macro] D[macro]
19356     next
19357   } else {
19358     # Replace #undef with comments.  This is necessary, for example,
19359     # in the case of _POSIX_SOURCE, which is predefined and required
19360     # on some systems where configure will not decide to define it.
19361     if (defundef == "undef") {
19362       print "/*", prefix defundef, macro, "*/"
19363       next
19364     }
19365   }
19366 }
19367 { print }
19368 _ACAWK
19369 _ACEOF
19370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19371   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19372 fi # test -n "$CONFIG_HEADERS"
19373
19374
19375 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19376 shift
19377 for ac_tag
19378 do
19379   case $ac_tag in
19380   :[FHLC]) ac_mode=$ac_tag; continue;;
19381   esac
19382   case $ac_mode$ac_tag in
19383   :[FHL]*:*);;
19384   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19385   :[FH]-) ac_tag=-:-;;
19386   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19387   esac
19388   ac_save_IFS=$IFS
19389   IFS=:
19390   set x $ac_tag
19391   IFS=$ac_save_IFS
19392   shift
19393   ac_file=$1
19394   shift
19395
19396   case $ac_mode in
19397   :L) ac_source=$1;;
19398   :[FH])
19399     ac_file_inputs=
19400     for ac_f
19401     do
19402       case $ac_f in
19403       -) ac_f="$ac_tmp/stdin";;
19404       *) # Look for the file first in the build tree, then in the source tree
19405          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19406          # because $ac_f cannot contain `:'.
19407          test -f "$ac_f" ||
19408            case $ac_f in
19409            [\\/$]*) false;;
19410            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19411            esac ||
19412            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19413       esac
19414       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19415       as_fn_append ac_file_inputs " '$ac_f'"
19416     done
19417
19418     # Let's still pretend it is `configure' which instantiates (i.e., don't
19419     # use $as_me), people would be surprised to read:
19420     #    /* config.h.  Generated by config.status.  */
19421     configure_input='Generated from '`
19422           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19423         `' by configure.'
19424     if test x"$ac_file" != x-; then
19425       configure_input="$ac_file.  $configure_input"
19426       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19427 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19428     fi
19429     # Neutralize special characters interpreted by sed in replacement strings.
19430     case $configure_input in #(
19431     *\&* | *\|* | *\\* )
19432        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19433        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19434     *) ac_sed_conf_input=$configure_input;;
19435     esac
19436
19437     case $ac_tag in
19438     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19439       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19440     esac
19441     ;;
19442   esac
19443
19444   ac_dir=`$as_dirname -- "$ac_file" ||
19445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19446          X"$ac_file" : 'X\(//\)[^/]' \| \
19447          X"$ac_file" : 'X\(//\)$' \| \
19448          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19449 printf "%s\n" X"$ac_file" |
19450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19451             s//\1/
19452             q
19453           }
19454           /^X\(\/\/\)[^/].*/{
19455             s//\1/
19456             q
19457           }
19458           /^X\(\/\/\)$/{
19459             s//\1/
19460             q
19461           }
19462           /^X\(\/\).*/{
19463             s//\1/
19464             q
19465           }
19466           s/.*/./; q'`
19467   as_dir="$ac_dir"; as_fn_mkdir_p
19468   ac_builddir=.
19469
19470 case "$ac_dir" in
19471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19472 *)
19473   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19474   # A ".." for each directory in $ac_dir_suffix.
19475   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19476   case $ac_top_builddir_sub in
19477   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19478   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19479   esac ;;
19480 esac
19481 ac_abs_top_builddir=$ac_pwd
19482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19483 # for backward compatibility:
19484 ac_top_builddir=$ac_top_build_prefix
19485
19486 case $srcdir in
19487   .)  # We are building in place.
19488     ac_srcdir=.
19489     ac_top_srcdir=$ac_top_builddir_sub
19490     ac_abs_top_srcdir=$ac_pwd ;;
19491   [\\/]* | ?:[\\/]* )  # Absolute name.
19492     ac_srcdir=$srcdir$ac_dir_suffix;
19493     ac_top_srcdir=$srcdir
19494     ac_abs_top_srcdir=$srcdir ;;
19495   *) # Relative name.
19496     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19497     ac_top_srcdir=$ac_top_build_prefix$srcdir
19498     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19499 esac
19500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19501
19502
19503   case $ac_mode in
19504   :F)
19505   #
19506   # CONFIG_FILE
19507   #
19508
19509   case $INSTALL in
19510   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19511   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19512   esac
19513   ac_MKDIR_P=$MKDIR_P
19514   case $MKDIR_P in
19515   [\\/$]* | ?:[\\/]* ) ;;
19516   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19517   esac
19518 _ACEOF
19519
19520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19521 # If the template does not know about datarootdir, expand it.
19522 # FIXME: This hack should be removed a few years after 2.60.
19523 ac_datarootdir_hack=; ac_datarootdir_seen=
19524 ac_sed_dataroot='
19525 /datarootdir/ {
19526   p
19527   q
19528 }
19529 /@datadir@/p
19530 /@docdir@/p
19531 /@infodir@/p
19532 /@localedir@/p
19533 /@mandir@/p'
19534 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19535 *datarootdir*) ac_datarootdir_seen=yes;;
19536 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19537   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19538 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19539 _ACEOF
19540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19541   ac_datarootdir_hack='
19542   s&@datadir@&$datadir&g
19543   s&@docdir@&$docdir&g
19544   s&@infodir@&$infodir&g
19545   s&@localedir@&$localedir&g
19546   s&@mandir@&$mandir&g
19547   s&\\\${datarootdir}&$datarootdir&g' ;;
19548 esac
19549 _ACEOF
19550
19551 # Neutralize VPATH when `$srcdir' = `.'.
19552 # Shell code in configure.ac might set extrasub.
19553 # FIXME: do we really want to maintain this feature?
19554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19555 ac_sed_extra="$ac_vpsub
19556 $extrasub
19557 _ACEOF
19558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19559 :t
19560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19561 s|@configure_input@|$ac_sed_conf_input|;t t
19562 s&@top_builddir@&$ac_top_builddir_sub&;t t
19563 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19564 s&@srcdir@&$ac_srcdir&;t t
19565 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19566 s&@top_srcdir@&$ac_top_srcdir&;t t
19567 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19568 s&@builddir@&$ac_builddir&;t t
19569 s&@abs_builddir@&$ac_abs_builddir&;t t
19570 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19571 s&@INSTALL@&$ac_INSTALL&;t t
19572 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19573 $ac_datarootdir_hack
19574 "
19575 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19576   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19577
19578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19579   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19580   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19581       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19582   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19583 which seems to be undefined.  Please make sure it is defined" >&5
19584 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19585 which seems to be undefined.  Please make sure it is defined" >&2;}
19586
19587   rm -f "$ac_tmp/stdin"
19588   case $ac_file in
19589   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19590   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19591   esac \
19592   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19593  ;;
19594   :H)
19595   #
19596   # CONFIG_HEADER
19597   #
19598   if test x"$ac_file" != x-; then
19599     {
19600       printf "%s\n" "/* $configure_input  */" >&1 \
19601       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19602     } >"$ac_tmp/config.h" \
19603       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19604     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19605       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19606 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19607     else
19608       rm -f "$ac_file"
19609       mv "$ac_tmp/config.h" "$ac_file" \
19610         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19611     fi
19612   else
19613     printf "%s\n" "/* $configure_input  */" >&1 \
19614       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19615       || as_fn_error $? "could not create -" "$LINENO" 5
19616   fi
19617 # Compute "$ac_file"'s index in $config_headers.
19618 _am_arg="$ac_file"
19619 _am_stamp_count=1
19620 for _am_header in $config_headers :; do
19621   case $_am_header in
19622     $_am_arg | $_am_arg:* )
19623       break ;;
19624     * )
19625       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19626   esac
19627 done
19628 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19629 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19630          X"$_am_arg" : 'X\(//\)[^/]' \| \
19631          X"$_am_arg" : 'X\(//\)$' \| \
19632          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19633 printf "%s\n" X"$_am_arg" |
19634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19635             s//\1/
19636             q
19637           }
19638           /^X\(\/\/\)[^/].*/{
19639             s//\1/
19640             q
19641           }
19642           /^X\(\/\/\)$/{
19643             s//\1/
19644             q
19645           }
19646           /^X\(\/\).*/{
19647             s//\1/
19648             q
19649           }
19650           s/.*/./; q'`/stamp-h$_am_stamp_count
19651  ;;
19652
19653   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19654 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19655  ;;
19656   esac
19657
19658
19659   case $ac_file$ac_mode in
19660     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19661   # Older Autoconf quotes --file arguments for eval, but not when files
19662   # are listed without --file.  Let's play safe and only enable the eval
19663   # if we detect the quoting.
19664   # TODO: see whether this extra hack can be removed once we start
19665   # requiring Autoconf 2.70 or later.
19666   case $CONFIG_FILES in #(
19667   *\'*) :
19668     eval set x "$CONFIG_FILES" ;; #(
19669   *) :
19670     set x $CONFIG_FILES ;; #(
19671   *) :
19672      ;;
19673 esac
19674   shift
19675   # Used to flag and report bootstrapping failures.
19676   am_rc=0
19677   for am_mf
19678   do
19679     # Strip MF so we end up with the name of the file.
19680     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19681     # Check whether this is an Automake generated Makefile which includes
19682     # dependency-tracking related rules and includes.
19683     # Grep'ing the whole file directly is not great: AIX grep has a line
19684     # limit of 2048, but all sed's we know have understand at least 4000.
19685     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19686       || continue
19687     am_dirpart=`$as_dirname -- "$am_mf" ||
19688 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19689          X"$am_mf" : 'X\(//\)[^/]' \| \
19690          X"$am_mf" : 'X\(//\)$' \| \
19691          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19692 printf "%s\n" X"$am_mf" |
19693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19694             s//\1/
19695             q
19696           }
19697           /^X\(\/\/\)[^/].*/{
19698             s//\1/
19699             q
19700           }
19701           /^X\(\/\/\)$/{
19702             s//\1/
19703             q
19704           }
19705           /^X\(\/\).*/{
19706             s//\1/
19707             q
19708           }
19709           s/.*/./; q'`
19710     am_filepart=`$as_basename -- "$am_mf" ||
19711 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19712          X"$am_mf" : 'X\(//\)$' \| \
19713          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19714 printf "%s\n" X/"$am_mf" |
19715     sed '/^.*\/\([^/][^/]*\)\/*$/{
19716             s//\1/
19717             q
19718           }
19719           /^X\/\(\/\/\)$/{
19720             s//\1/
19721             q
19722           }
19723           /^X\/\(\/\).*/{
19724             s//\1/
19725             q
19726           }
19727           s/.*/./; q'`
19728     { echo "$as_me:$LINENO: cd "$am_dirpart" \
19729       && sed -e '/# am--include-marker/d' "$am_filepart" \
19730         | $MAKE -f - am--depfiles" >&5
19731    (cd "$am_dirpart" \
19732       && sed -e '/# am--include-marker/d' "$am_filepart" \
19733         | $MAKE -f - am--depfiles) >&5 2>&5
19734    ac_status=$?
19735    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736    (exit $ac_status); } || am_rc=$?
19737   done
19738   if test $am_rc -ne 0; then
19739     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19740 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19741 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19742     for automatic dependency tracking.  If GNU make was not used, consider
19743     re-running the configure script with MAKE=\"gmake\" (or whatever is
19744     necessary).  You can also try re-running configure with the
19745     '--disable-dependency-tracking' option to at least be able to build
19746     the package (albeit without support for automatic dependency tracking).
19747 See \`config.log' for more details" "$LINENO" 5; }
19748   fi
19749   { am_dirpart=; unset am_dirpart;}
19750   { am_filepart=; unset am_filepart;}
19751   { am_mf=; unset am_mf;}
19752   { am_rc=; unset am_rc;}
19753   rm -f conftest-deps.mk
19754 }
19755  ;;
19756     "libtool":C)
19757
19758     # See if we are running on zsh, and set the options that allow our
19759     # commands through without removal of \ escapes.
19760     if test -n "${ZSH_VERSION+set}"; then
19761       setopt NO_GLOB_SUBST
19762     fi
19763
19764     cfgfile=${ofile}T
19765     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19766     $RM "$cfgfile"
19767
19768     cat <<_LT_EOF >> "$cfgfile"
19769 #! $SHELL
19770 # Generated automatically by $as_me ($PACKAGE) $VERSION
19771 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19772
19773 # Provide generalized library-building support services.
19774 # Written by Gordon Matzigkeit, 1996
19775
19776 # Copyright (C) 2014 Free Software Foundation, Inc.
19777 # This is free software; see the source for copying conditions.  There is NO
19778 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19779
19780 # GNU Libtool is free software; you can redistribute it and/or modify
19781 # it under the terms of the GNU General Public License as published by
19782 # the Free Software Foundation; either version 2 of of the License, or
19783 # (at your option) any later version.
19784 #
19785 # As a special exception to the GNU General Public License, if you
19786 # distribute this file as part of a program or library that is built
19787 # using GNU Libtool, you may include this file under the  same
19788 # distribution terms that you use for the rest of that program.
19789 #
19790 # GNU Libtool is distributed in the hope that it will be useful, but
19791 # WITHOUT ANY WARRANTY; without even the implied warranty of
19792 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19793 # GNU General Public License for more details.
19794 #
19795 # You should have received a copy of the GNU General Public License
19796 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19797
19798
19799 # The names of the tagged configurations supported by this script.
19800 available_tags='CXX '
19801
19802 # Configured defaults for sys_lib_dlsearch_path munging.
19803 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19804
19805 # ### BEGIN LIBTOOL CONFIG
19806
19807 # Which release of libtool.m4 was used?
19808 macro_version=$macro_version
19809 macro_revision=$macro_revision
19810
19811 # Whether or not to build shared libraries.
19812 build_libtool_libs=$enable_shared
19813
19814 # Whether or not to build static libraries.
19815 build_old_libs=$enable_static
19816
19817 # What type of objects to build.
19818 pic_mode=$pic_mode
19819
19820 # Whether or not to optimize for fast installation.
19821 fast_install=$enable_fast_install
19822
19823 # Shared archive member basename,for filename based shared library versioning on AIX.
19824 shared_archive_member_spec=$shared_archive_member_spec
19825
19826 # Shell to use when invoking shell scripts.
19827 SHELL=$lt_SHELL
19828
19829 # An echo program that protects backslashes.
19830 ECHO=$lt_ECHO
19831
19832 # The PATH separator for the build system.
19833 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19834
19835 # The host system.
19836 host_alias=$host_alias
19837 host=$host
19838 host_os=$host_os
19839
19840 # The build system.
19841 build_alias=$build_alias
19842 build=$build
19843 build_os=$build_os
19844
19845 # A sed program that does not truncate output.
19846 SED=$lt_SED
19847
19848 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19849 Xsed="\$SED -e 1s/^X//"
19850
19851 # A grep program that handles long lines.
19852 GREP=$lt_GREP
19853
19854 # An ERE matcher.
19855 EGREP=$lt_EGREP
19856
19857 # A literal string matcher.
19858 FGREP=$lt_FGREP
19859
19860 # A BSD- or MS-compatible name lister.
19861 NM=$lt_NM
19862
19863 # Whether we need soft or hard links.
19864 LN_S=$lt_LN_S
19865
19866 # What is the maximum length of a command?
19867 max_cmd_len=$max_cmd_len
19868
19869 # Object file suffix (normally "o").
19870 objext=$ac_objext
19871
19872 # Executable file suffix (normally "").
19873 exeext=$exeext
19874
19875 # whether the shell understands "unset".
19876 lt_unset=$lt_unset
19877
19878 # turn spaces into newlines.
19879 SP2NL=$lt_lt_SP2NL
19880
19881 # turn newlines into spaces.
19882 NL2SP=$lt_lt_NL2SP
19883
19884 # convert \$build file names to \$host format.
19885 to_host_file_cmd=$lt_cv_to_host_file_cmd
19886
19887 # convert \$build files to toolchain format.
19888 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19889
19890 # An object symbol dumper.
19891 OBJDUMP=$lt_OBJDUMP
19892
19893 # Method to check whether dependent libraries are shared objects.
19894 deplibs_check_method=$lt_deplibs_check_method
19895
19896 # Command to use when deplibs_check_method = "file_magic".
19897 file_magic_cmd=$lt_file_magic_cmd
19898
19899 # How to find potential files when deplibs_check_method = "file_magic".
19900 file_magic_glob=$lt_file_magic_glob
19901
19902 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19903 want_nocaseglob=$lt_want_nocaseglob
19904
19905 # DLL creation program.
19906 DLLTOOL=$lt_DLLTOOL
19907
19908 # Command to associate shared and link libraries.
19909 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19910
19911 # The archiver.
19912 AR=$lt_AR
19913
19914 # Flags to create an archive.
19915 AR_FLAGS=$lt_AR_FLAGS
19916
19917 # How to feed a file listing to the archiver.
19918 archiver_list_spec=$lt_archiver_list_spec
19919
19920 # A symbol stripping program.
19921 STRIP=$lt_STRIP
19922
19923 # Commands used to install an old-style archive.
19924 RANLIB=$lt_RANLIB
19925 old_postinstall_cmds=$lt_old_postinstall_cmds
19926 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19927
19928 # Whether to use a lock for old archive extraction.
19929 lock_old_archive_extraction=$lock_old_archive_extraction
19930
19931 # A C compiler.
19932 LTCC=$lt_CC
19933
19934 # LTCC compiler flags.
19935 LTCFLAGS=$lt_CFLAGS
19936
19937 # Take the output of nm and produce a listing of raw symbols and C names.
19938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19939
19940 # Transform the output of nm in a proper C declaration.
19941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19942
19943 # Transform the output of nm into a list of symbols to manually relocate.
19944 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19945
19946 # Transform the output of nm in a C name address pair.
19947 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19948
19949 # Transform the output of nm in a C name address pair when lib prefix is needed.
19950 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19951
19952 # The name lister interface.
19953 nm_interface=$lt_lt_cv_nm_interface
19954
19955 # Specify filename containing input files for \$NM.
19956 nm_file_list_spec=$lt_nm_file_list_spec
19957
19958 # The root where to search for dependent libraries,and where our libraries should be installed.
19959 lt_sysroot=$lt_sysroot
19960
19961 # Command to truncate a binary pipe.
19962 lt_truncate_bin=$lt_lt_cv_truncate_bin
19963
19964 # The name of the directory that contains temporary libtool files.
19965 objdir=$objdir
19966
19967 # Used to examine libraries when file_magic_cmd begins with "file".
19968 MAGIC_CMD=$MAGIC_CMD
19969
19970 # Must we lock files when doing compilation?
19971 need_locks=$lt_need_locks
19972
19973 # Manifest tool.
19974 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19975
19976 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19977 DSYMUTIL=$lt_DSYMUTIL
19978
19979 # Tool to change global to local symbols on Mac OS X.
19980 NMEDIT=$lt_NMEDIT
19981
19982 # Tool to manipulate fat objects and archives on Mac OS X.
19983 LIPO=$lt_LIPO
19984
19985 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19986 OTOOL=$lt_OTOOL
19987
19988 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19989 OTOOL64=$lt_OTOOL64
19990
19991 # Old archive suffix (normally "a").
19992 libext=$libext
19993
19994 # Shared library suffix (normally ".so").
19995 shrext_cmds=$lt_shrext_cmds
19996
19997 # The commands to extract the exported symbol list from a shared archive.
19998 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19999
20000 # Variables whose values should be saved in libtool wrapper scripts and
20001 # restored at link time.
20002 variables_saved_for_relink=$lt_variables_saved_for_relink
20003
20004 # Do we need the "lib" prefix for modules?
20005 need_lib_prefix=$need_lib_prefix
20006
20007 # Do we need a version for libraries?
20008 need_version=$need_version
20009
20010 # Library versioning type.
20011 version_type=$version_type
20012
20013 # Shared library runtime path variable.
20014 runpath_var=$runpath_var
20015
20016 # Shared library path variable.
20017 shlibpath_var=$shlibpath_var
20018
20019 # Is shlibpath searched before the hard-coded library search path?
20020 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20021
20022 # Format of library name prefix.
20023 libname_spec=$lt_libname_spec
20024
20025 # List of archive names.  First name is the real one, the rest are links.
20026 # The last name is the one that the linker finds with -lNAME
20027 library_names_spec=$lt_library_names_spec
20028
20029 # The coded name of the library, if different from the real name.
20030 soname_spec=$lt_soname_spec
20031
20032 # Permission mode override for installation of shared libraries.
20033 install_override_mode=$lt_install_override_mode
20034
20035 # Command to use after installation of a shared archive.
20036 postinstall_cmds=$lt_postinstall_cmds
20037
20038 # Command to use after uninstallation of a shared archive.
20039 postuninstall_cmds=$lt_postuninstall_cmds
20040
20041 # Commands used to finish a libtool library installation in a directory.
20042 finish_cmds=$lt_finish_cmds
20043
20044 # As "finish_cmds", except a single script fragment to be evaled but
20045 # not shown.
20046 finish_eval=$lt_finish_eval
20047
20048 # Whether we should hardcode library paths into libraries.
20049 hardcode_into_libs=$hardcode_into_libs
20050
20051 # Compile-time system search path for libraries.
20052 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20053
20054 # Detected run-time system search path for libraries.
20055 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20056
20057 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20058 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20059
20060 # Whether dlopen is supported.
20061 dlopen_support=$enable_dlopen
20062
20063 # Whether dlopen of programs is supported.
20064 dlopen_self=$enable_dlopen_self
20065
20066 # Whether dlopen of statically linked programs is supported.
20067 dlopen_self_static=$enable_dlopen_self_static
20068
20069 # Commands to strip libraries.
20070 old_striplib=$lt_old_striplib
20071 striplib=$lt_striplib
20072
20073
20074 # The linker used to build libraries.
20075 LD=$lt_LD
20076
20077 # How to create reloadable object files.
20078 reload_flag=$lt_reload_flag
20079 reload_cmds=$lt_reload_cmds
20080
20081 # Commands used to build an old-style archive.
20082 old_archive_cmds=$lt_old_archive_cmds
20083
20084 # A language specific compiler.
20085 CC=$lt_compiler
20086
20087 # Is the compiler the GNU compiler?
20088 with_gcc=$GCC
20089
20090 # Compiler flag to turn off builtin functions.
20091 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20092
20093 # Additional compiler flags for building library objects.
20094 pic_flag=$lt_lt_prog_compiler_pic
20095
20096 # How to pass a linker flag through the compiler.
20097 wl=$lt_lt_prog_compiler_wl
20098
20099 # Compiler flag to prevent dynamic linking.
20100 link_static_flag=$lt_lt_prog_compiler_static
20101
20102 # Does compiler simultaneously support -c and -o options?
20103 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20104
20105 # Whether or not to add -lc for building shared libraries.
20106 build_libtool_need_lc=$archive_cmds_need_lc
20107
20108 # Whether or not to disallow shared libs when runtime libs are static.
20109 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20110
20111 # Compiler flag to allow reflexive dlopens.
20112 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20113
20114 # Compiler flag to generate shared objects directly from archives.
20115 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20116
20117 # Whether the compiler copes with passing no objects directly.
20118 compiler_needs_object=$lt_compiler_needs_object
20119
20120 # Create an old-style archive from a shared archive.
20121 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20122
20123 # Create a temporary old-style archive to link instead of a shared archive.
20124 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20125
20126 # Commands used to build a shared archive.
20127 archive_cmds=$lt_archive_cmds
20128 archive_expsym_cmds=$lt_archive_expsym_cmds
20129
20130 # Commands used to build a loadable module if different from building
20131 # a shared archive.
20132 module_cmds=$lt_module_cmds
20133 module_expsym_cmds=$lt_module_expsym_cmds
20134
20135 # Whether we are building with GNU ld or not.
20136 with_gnu_ld=$lt_with_gnu_ld
20137
20138 # Flag that allows shared libraries with undefined symbols to be built.
20139 allow_undefined_flag=$lt_allow_undefined_flag
20140
20141 # Flag that enforces no undefined symbols.
20142 no_undefined_flag=$lt_no_undefined_flag
20143
20144 # Flag to hardcode \$libdir into a binary during linking.
20145 # This must work even if \$libdir does not exist
20146 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20147
20148 # Whether we need a single "-rpath" flag with a separated argument.
20149 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20150
20151 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20152 # DIR into the resulting binary.
20153 hardcode_direct=$hardcode_direct
20154
20155 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20156 # DIR into the resulting binary and the resulting library dependency is
20157 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20158 # library is relocated.
20159 hardcode_direct_absolute=$hardcode_direct_absolute
20160
20161 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20162 # into the resulting binary.
20163 hardcode_minus_L=$hardcode_minus_L
20164
20165 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20166 # into the resulting binary.
20167 hardcode_shlibpath_var=$hardcode_shlibpath_var
20168
20169 # Set to "yes" if building a shared library automatically hardcodes DIR
20170 # into the library and all subsequent libraries and executables linked
20171 # against it.
20172 hardcode_automatic=$hardcode_automatic
20173
20174 # Set to yes if linker adds runtime paths of dependent libraries
20175 # to runtime path list.
20176 inherit_rpath=$inherit_rpath
20177
20178 # Whether libtool must link a program against all its dependency libraries.
20179 link_all_deplibs=$link_all_deplibs
20180
20181 # Set to "yes" if exported symbols are required.
20182 always_export_symbols=$always_export_symbols
20183
20184 # The commands to list exported symbols.
20185 export_symbols_cmds=$lt_export_symbols_cmds
20186
20187 # Symbols that should not be listed in the preloaded symbols.
20188 exclude_expsyms=$lt_exclude_expsyms
20189
20190 # Symbols that must always be exported.
20191 include_expsyms=$lt_include_expsyms
20192
20193 # Commands necessary for linking programs (against libraries) with templates.
20194 prelink_cmds=$lt_prelink_cmds
20195
20196 # Commands necessary for finishing linking programs.
20197 postlink_cmds=$lt_postlink_cmds
20198
20199 # Specify filename containing input files.
20200 file_list_spec=$lt_file_list_spec
20201
20202 # How to hardcode a shared library path into an executable.
20203 hardcode_action=$hardcode_action
20204
20205 # The directories searched by this compiler when creating a shared library.
20206 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20207
20208 # Dependencies to place before and after the objects being linked to
20209 # create a shared library.
20210 predep_objects=$lt_predep_objects
20211 postdep_objects=$lt_postdep_objects
20212 predeps=$lt_predeps
20213 postdeps=$lt_postdeps
20214
20215 # The library search path used internally by the compiler when linking
20216 # a shared library.
20217 compiler_lib_search_path=$lt_compiler_lib_search_path
20218
20219 # ### END LIBTOOL CONFIG
20220
20221 _LT_EOF
20222
20223     cat <<'_LT_EOF' >> "$cfgfile"
20224
20225 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20226
20227 # func_munge_path_list VARIABLE PATH
20228 # -----------------------------------
20229 # VARIABLE is name of variable containing _space_ separated list of
20230 # directories to be munged by the contents of PATH, which is string
20231 # having a format:
20232 # "DIR[:DIR]:"
20233 #       string "DIR[ DIR]" will be prepended to VARIABLE
20234 # ":DIR[:DIR]"
20235 #       string "DIR[ DIR]" will be appended to VARIABLE
20236 # "DIRP[:DIRP]::[DIRA:]DIRA"
20237 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20238 #       "DIRA[ DIRA]" will be appended to VARIABLE
20239 # "DIR[:DIR]"
20240 #       VARIABLE will be replaced by "DIR[ DIR]"
20241 func_munge_path_list ()
20242 {
20243     case x$2 in
20244     x)
20245         ;;
20246     *:)
20247         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20248         ;;
20249     x:*)
20250         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20251         ;;
20252     *::*)
20253         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20254         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20255         ;;
20256     *)
20257         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20258         ;;
20259     esac
20260 }
20261
20262
20263 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20264 func_cc_basename ()
20265 {
20266     for cc_temp in $*""; do
20267       case $cc_temp in
20268         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20269         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20270         \-*) ;;
20271         *) break;;
20272       esac
20273     done
20274     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20275 }
20276
20277
20278 # ### END FUNCTIONS SHARED WITH CONFIGURE
20279
20280 _LT_EOF
20281
20282   case $host_os in
20283   aix3*)
20284     cat <<\_LT_EOF >> "$cfgfile"
20285 # AIX sometimes has problems with the GCC collect2 program.  For some
20286 # reason, if we set the COLLECT_NAMES environment variable, the problems
20287 # vanish in a puff of smoke.
20288 if test set != "${COLLECT_NAMES+set}"; then
20289   COLLECT_NAMES=
20290   export COLLECT_NAMES
20291 fi
20292 _LT_EOF
20293     ;;
20294   esac
20295
20296
20297
20298 ltmain=$ac_aux_dir/ltmain.sh
20299
20300
20301   # We use sed instead of cat because bash on DJGPP gets confused if
20302   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20303   # text mode, it properly converts lines to CR/LF.  This bash problem
20304   # is reportedly fixed, but why not run on old versions too?
20305   sed '$q' "$ltmain" >> "$cfgfile" \
20306      || (rm -f "$cfgfile"; exit 1)
20307
20308    mv -f "$cfgfile" "$ofile" ||
20309     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20310   chmod +x "$ofile"
20311
20312
20313     cat <<_LT_EOF >> "$ofile"
20314
20315 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20316
20317 # The linker used to build libraries.
20318 LD=$lt_LD_CXX
20319
20320 # How to create reloadable object files.
20321 reload_flag=$lt_reload_flag_CXX
20322 reload_cmds=$lt_reload_cmds_CXX
20323
20324 # Commands used to build an old-style archive.
20325 old_archive_cmds=$lt_old_archive_cmds_CXX
20326
20327 # A language specific compiler.
20328 CC=$lt_compiler_CXX
20329
20330 # Is the compiler the GNU compiler?
20331 with_gcc=$GCC_CXX
20332
20333 # Compiler flag to turn off builtin functions.
20334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20335
20336 # Additional compiler flags for building library objects.
20337 pic_flag=$lt_lt_prog_compiler_pic_CXX
20338
20339 # How to pass a linker flag through the compiler.
20340 wl=$lt_lt_prog_compiler_wl_CXX
20341
20342 # Compiler flag to prevent dynamic linking.
20343 link_static_flag=$lt_lt_prog_compiler_static_CXX
20344
20345 # Does compiler simultaneously support -c and -o options?
20346 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20347
20348 # Whether or not to add -lc for building shared libraries.
20349 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20350
20351 # Whether or not to disallow shared libs when runtime libs are static.
20352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20353
20354 # Compiler flag to allow reflexive dlopens.
20355 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20356
20357 # Compiler flag to generate shared objects directly from archives.
20358 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20359
20360 # Whether the compiler copes with passing no objects directly.
20361 compiler_needs_object=$lt_compiler_needs_object_CXX
20362
20363 # Create an old-style archive from a shared archive.
20364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20365
20366 # Create a temporary old-style archive to link instead of a shared archive.
20367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20368
20369 # Commands used to build a shared archive.
20370 archive_cmds=$lt_archive_cmds_CXX
20371 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20372
20373 # Commands used to build a loadable module if different from building
20374 # a shared archive.
20375 module_cmds=$lt_module_cmds_CXX
20376 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20377
20378 # Whether we are building with GNU ld or not.
20379 with_gnu_ld=$lt_with_gnu_ld_CXX
20380
20381 # Flag that allows shared libraries with undefined symbols to be built.
20382 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20383
20384 # Flag that enforces no undefined symbols.
20385 no_undefined_flag=$lt_no_undefined_flag_CXX
20386
20387 # Flag to hardcode \$libdir into a binary during linking.
20388 # This must work even if \$libdir does not exist
20389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20390
20391 # Whether we need a single "-rpath" flag with a separated argument.
20392 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20393
20394 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20395 # DIR into the resulting binary.
20396 hardcode_direct=$hardcode_direct_CXX
20397
20398 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20399 # DIR into the resulting binary and the resulting library dependency is
20400 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20401 # library is relocated.
20402 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20403
20404 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20405 # into the resulting binary.
20406 hardcode_minus_L=$hardcode_minus_L_CXX
20407
20408 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20409 # into the resulting binary.
20410 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20411
20412 # Set to "yes" if building a shared library automatically hardcodes DIR
20413 # into the library and all subsequent libraries and executables linked
20414 # against it.
20415 hardcode_automatic=$hardcode_automatic_CXX
20416
20417 # Set to yes if linker adds runtime paths of dependent libraries
20418 # to runtime path list.
20419 inherit_rpath=$inherit_rpath_CXX
20420
20421 # Whether libtool must link a program against all its dependency libraries.
20422 link_all_deplibs=$link_all_deplibs_CXX
20423
20424 # Set to "yes" if exported symbols are required.
20425 always_export_symbols=$always_export_symbols_CXX
20426
20427 # The commands to list exported symbols.
20428 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20429
20430 # Symbols that should not be listed in the preloaded symbols.
20431 exclude_expsyms=$lt_exclude_expsyms_CXX
20432
20433 # Symbols that must always be exported.
20434 include_expsyms=$lt_include_expsyms_CXX
20435
20436 # Commands necessary for linking programs (against libraries) with templates.
20437 prelink_cmds=$lt_prelink_cmds_CXX
20438
20439 # Commands necessary for finishing linking programs.
20440 postlink_cmds=$lt_postlink_cmds_CXX
20441
20442 # Specify filename containing input files.
20443 file_list_spec=$lt_file_list_spec_CXX
20444
20445 # How to hardcode a shared library path into an executable.
20446 hardcode_action=$hardcode_action_CXX
20447
20448 # The directories searched by this compiler when creating a shared library.
20449 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20450
20451 # Dependencies to place before and after the objects being linked to
20452 # create a shared library.
20453 predep_objects=$lt_predep_objects_CXX
20454 postdep_objects=$lt_postdep_objects_CXX
20455 predeps=$lt_predeps_CXX
20456 postdeps=$lt_postdeps_CXX
20457
20458 # The library search path used internally by the compiler when linking
20459 # a shared library.
20460 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20461
20462 # ### END LIBTOOL TAG CONFIG: CXX
20463 _LT_EOF
20464
20465  ;;
20466
20467   esac
20468 done # for ac_tag
20469
20470
20471 as_fn_exit 0
20472 _ACEOF
20473 ac_clean_files=$ac_clean_files_save
20474
20475 test $ac_write_fail = 0 ||
20476   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20477
20478
20479 # configure is writing to config.log, and then calls config.status.
20480 # config.status does its own redirection, appending to config.log.
20481 # Unfortunately, on DOS this fails, as config.log is still kept open
20482 # by configure, so config.status won't be able to write to it; its
20483 # output is simply discarded.  So we exec the FD to /dev/null,
20484 # effectively closing config.log, so it can be properly (re)opened and
20485 # appended to by config.status.  When coming back to configure, we
20486 # need to make the FD available again.
20487 if test "$no_create" != yes; then
20488   ac_cs_success=:
20489   ac_config_status_args=
20490   test "$silent" = yes &&
20491     ac_config_status_args="$ac_config_status_args --quiet"
20492   exec 5>/dev/null
20493   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20494   exec 5>>config.log
20495   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20496   # would make configure fail if this is the last instruction.
20497   $ac_cs_success || as_fn_exit 1
20498 fi
20499 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20500   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20501 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20502 fi
20503
20504