Revert "Imported Upstream version 1.17.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.69 for c-ares-test -.
4 #
5 # Report bugs to <->.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and - about your
278 $0: system, including any error possibly output before this
279 $0: message. Then install a modern shell, or manually run
280 $0: the script under such a shell if you do have one."
281   fi
282   exit 1
283 fi
284 fi
285 fi
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300   { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309   return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317   set +e
318   as_fn_set_status $1
319   exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328   case $as_dir in #(
329   -*) as_dir=./$as_dir;;
330   esac
331   test -d "$as_dir" || eval $as_mkdir_p || {
332     as_dirs=
333     while :; do
334       case $as_dir in #(
335       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336       *) as_qdir=$as_dir;;
337       esac
338       as_dirs="'$as_qdir' $as_dirs"
339       as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341          X"$as_dir" : 'X\(//\)[^/]' \| \
342          X"$as_dir" : 'X\(//\)$' \| \
343          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346             s//\1/
347             q
348           }
349           /^X\(\/\/\)[^/].*/{
350             s//\1/
351             q
352           }
353           /^X\(\/\/\)$/{
354             s//\1/
355             q
356           }
357           /^X\(\/\).*/{
358             s//\1/
359             q
360           }
361           s/.*/./; q'`
362       test -d "$as_dir" && break
363     done
364     test -z "$as_dirs" || eval "mkdir $as_dirs"
365   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375   test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384   eval 'as_fn_append ()
385   {
386     eval $1+=\$2
387   }'
388 else
389   as_fn_append ()
390   {
391     eval $1=\$$1\$2
392   }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401   eval 'as_fn_arith ()
402   {
403     as_val=$(( $* ))
404   }'
405 else
406   as_fn_arith ()
407   {
408     as_val=`expr "$@" || test $? -eq 1`
409   }
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420   as_status=$1; test $as_status -eq 0 && as_status=1
421   if test "$4"; then
422     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424   fi
425   $as_echo "$as_me: error: $2" >&2
426   as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430    test "X`expr 00001 : '.*\(...\)'`" = X001; then
431   as_expr=expr
432 else
433   as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437   as_basename=basename
438 else
439   as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443   as_dirname=dirname
444 else
445   as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450          X"$0" : 'X\(//\)$' \| \
451          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
453     sed '/^.*\/\([^/][^/]*\)\/*$/{
454             s//\1/
455             q
456           }
457           /^X\/\(\/\/\)$/{
458             s//\1/
459             q
460           }
461           /^X\/\(\/\).*/{
462             s//\1/
463             q
464           }
465           s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475   as_lineno_1=$LINENO as_lineno_1a=$LINENO
476   as_lineno_2=$LINENO as_lineno_2a=$LINENO
477   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
480   sed -n '
481     p
482     /[$]LINENO/=
483   ' <$as_myself |
484     sed '
485       s/[$]LINENO.*/&-/
486       t lineno
487       b
488       :lineno
489       N
490       :loop
491       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492       t loop
493       s/-\n.*//
494     ' >$as_me.lineno &&
495   chmod +x "$as_me.lineno" ||
496     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
498   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499   # already done that, so ensure we don't try to do so again and fall
500   # in an infinite loop.  This has already happened in practice.
501   _as_can_reexec=no; export _as_can_reexec
502   # Don't try to exec as it changes $[0], causing all sort of problems
503   # (the dirname of $[0] is not the place where we might find the
504   # original and so on.  Autoconf is especially sensitive to this).
505   . "./$as_me.lineno"
506   # Exit status is that of the last command.
507   exit
508 }
509
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
512 -n*)
513   case `echo 'xy\c'` in
514   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
515   xy)  ECHO_C='\c';;
516   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
517        ECHO_T=' ';;
518   esac;;
519 *)
520   ECHO_N='-n';;
521 esac
522
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525   rm -f conf$$.dir/conf$$.file
526 else
527   rm -f conf$$.dir
528   mkdir conf$$.dir 2>/dev/null
529 fi
530 if (echo >conf$$.file) 2>/dev/null; then
531   if ln -s conf$$.file conf$$ 2>/dev/null; then
532     as_ln_s='ln -s'
533     # ... but there are two gotchas:
534     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536     # In both cases, we have to default to `cp -pR'.
537     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538       as_ln_s='cp -pR'
539   elif ln conf$$.file conf$$ 2>/dev/null; then
540     as_ln_s=ln
541   else
542     as_ln_s='cp -pR'
543   fi
544 else
545   as_ln_s='cp -pR'
546 fi
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
549
550 if mkdir -p . 2>/dev/null; then
551   as_mkdir_p='mkdir -p "$as_dir"'
552 else
553   test -d ./-p && rmdir ./-p
554   as_mkdir_p=false
555 fi
556
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
559
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566 SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
571
572 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577 #
578 # Initializations.
579 #
580 ac_default_prefix=/usr/local
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='c-ares-test'
591 PACKAGE_TARNAME='c-ares-test'
592 PACKAGE_VERSION='-'
593 PACKAGE_STRING='c-ares-test -'
594 PACKAGE_BUGREPORT='-'
595 PACKAGE_URL=''
596
597 ac_unique_file="ares-test.cc"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 CODE_COVERAGE_RULES
639 CODE_COVERAGE_LDFLAGS
640 CODE_COVERAGE_CFLAGS
641 GENHTML
642 LCOV
643 GCOV
644 CODE_COVERAGE_ENABLED
645 CODE_COVERAGE_ENABLED_FALSE
646 CODE_COVERAGE_ENABLED_TRUE
647 PTHREAD_CFLAGS
648 PTHREAD_LIBS
649 PTHREAD_CC
650 ax_pthread_config
651 LIBTOOL_DEPS
652 CXXCPP
653 CPP
654 LT_SYS_LIBRARY_PATH
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 MANIFEST_TOOL
661 RANLIB
662 ac_ct_AR
663 AR
664 DLLTOOL
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LD
671 FGREP
672 EGREP
673 GREP
674 SED
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 ac_ct_CC
679 CFLAGS
680 CC
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 LIBTOOL
690 HAVE_CXX11
691 am__fastdepCXX_FALSE
692 am__fastdepCXX_TRUE
693 CXXDEPMODE
694 am__nodep
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__quote
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CXX
704 CPPFLAGS
705 LDFLAGS
706 CXXFLAGS
707 CXX
708 AM_BACKSLASH
709 AM_DEFAULT_VERBOSITY
710 AM_DEFAULT_V
711 AM_V
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 runstatedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_silent_rules
778 enable_dependency_tracking
779 enable_shared
780 enable_static
781 with_pic
782 enable_fast_install
783 with_aix_soname
784 with_gnu_ld
785 with_sysroot
786 enable_libtool_lock
787 with_gcov
788 enable_code_coverage
789 '
790       ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CXX
794 CXXFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CCC
799 CC
800 CFLAGS
801 LT_SYS_LIBRARY_PATH
802 CPP
803 CXXCPP'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 runstatedir='${localstatedir}/run'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
854
855 ac_prev=
856 ac_dashdash=
857 for ac_option
858 do
859   # If the previous option needs an argument, assign it.
860   if test -n "$ac_prev"; then
861     eval $ac_prev=\$ac_option
862     ac_prev=
863     continue
864   fi
865
866   case $ac_option in
867   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868   *=)   ac_optarg= ;;
869   *)    ac_optarg=yes ;;
870   esac
871
872   # Accept the important Cygnus configure options, so we can diagnose typos.
873
874   case $ac_dashdash$ac_option in
875   --)
876     ac_dashdash=yes ;;
877
878   -bindir | --bindir | --bindi | --bind | --bin | --bi)
879     ac_prev=bindir ;;
880   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881     bindir=$ac_optarg ;;
882
883   -build | --build | --buil | --bui | --bu)
884     ac_prev=build_alias ;;
885   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886     build_alias=$ac_optarg ;;
887
888   -cache-file | --cache-file | --cache-fil | --cache-fi \
889   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890     ac_prev=cache_file ;;
891   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893     cache_file=$ac_optarg ;;
894
895   --config-cache | -C)
896     cache_file=config.cache ;;
897
898   -datadir | --datadir | --datadi | --datad)
899     ac_prev=datadir ;;
900   -datadir=* | --datadir=* | --datadi=* | --datad=*)
901     datadir=$ac_optarg ;;
902
903   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904   | --dataroo | --dataro | --datar)
905     ac_prev=datarootdir ;;
906   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908     datarootdir=$ac_optarg ;;
909
910   -disable-* | --disable-*)
911     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912     # Reject names that are not valid shell variable names.
913     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914       as_fn_error $? "invalid feature name: $ac_useropt"
915     ac_useropt_orig=$ac_useropt
916     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917     case $ac_user_opts in
918       *"
919 "enable_$ac_useropt"
920 "*) ;;
921       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922          ac_unrecognized_sep=', ';;
923     esac
924     eval enable_$ac_useropt=no ;;
925
926   -docdir | --docdir | --docdi | --doc | --do)
927     ac_prev=docdir ;;
928   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929     docdir=$ac_optarg ;;
930
931   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932     ac_prev=dvidir ;;
933   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934     dvidir=$ac_optarg ;;
935
936   -enable-* | --enable-*)
937     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940       as_fn_error $? "invalid feature name: $ac_useropt"
941     ac_useropt_orig=$ac_useropt
942     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943     case $ac_user_opts in
944       *"
945 "enable_$ac_useropt"
946 "*) ;;
947       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948          ac_unrecognized_sep=', ';;
949     esac
950     eval enable_$ac_useropt=\$ac_optarg ;;
951
952   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954   | --exec | --exe | --ex)
955     ac_prev=exec_prefix ;;
956   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958   | --exec=* | --exe=* | --ex=*)
959     exec_prefix=$ac_optarg ;;
960
961   -gas | --gas | --ga | --g)
962     # Obsolete; use --with-gas.
963     with_gas=yes ;;
964
965   -help | --help | --hel | --he | -h)
966     ac_init_help=long ;;
967   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968     ac_init_help=recursive ;;
969   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970     ac_init_help=short ;;
971
972   -host | --host | --hos | --ho)
973     ac_prev=host_alias ;;
974   -host=* | --host=* | --hos=* | --ho=*)
975     host_alias=$ac_optarg ;;
976
977   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978     ac_prev=htmldir ;;
979   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980   | --ht=*)
981     htmldir=$ac_optarg ;;
982
983   -includedir | --includedir | --includedi | --included | --include \
984   | --includ | --inclu | --incl | --inc)
985     ac_prev=includedir ;;
986   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987   | --includ=* | --inclu=* | --incl=* | --inc=*)
988     includedir=$ac_optarg ;;
989
990   -infodir | --infodir | --infodi | --infod | --info | --inf)
991     ac_prev=infodir ;;
992   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993     infodir=$ac_optarg ;;
994
995   -libdir | --libdir | --libdi | --libd)
996     ac_prev=libdir ;;
997   -libdir=* | --libdir=* | --libdi=* | --libd=*)
998     libdir=$ac_optarg ;;
999
1000   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001   | --libexe | --libex | --libe)
1002     ac_prev=libexecdir ;;
1003   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004   | --libexe=* | --libex=* | --libe=*)
1005     libexecdir=$ac_optarg ;;
1006
1007   -localedir | --localedir | --localedi | --localed | --locale)
1008     ac_prev=localedir ;;
1009   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010     localedir=$ac_optarg ;;
1011
1012   -localstatedir | --localstatedir | --localstatedi | --localstated \
1013   | --localstate | --localstat | --localsta | --localst | --locals)
1014     ac_prev=localstatedir ;;
1015   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017     localstatedir=$ac_optarg ;;
1018
1019   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020     ac_prev=mandir ;;
1021   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022     mandir=$ac_optarg ;;
1023
1024   -nfp | --nfp | --nf)
1025     # Obsolete; use --without-fp.
1026     with_fp=no ;;
1027
1028   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029   | --no-cr | --no-c | -n)
1030     no_create=yes ;;
1031
1032   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034     no_recursion=yes ;;
1035
1036   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038   | --oldin | --oldi | --old | --ol | --o)
1039     ac_prev=oldincludedir ;;
1040   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043     oldincludedir=$ac_optarg ;;
1044
1045   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046     ac_prev=prefix ;;
1047   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048     prefix=$ac_optarg ;;
1049
1050   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051   | --program-pre | --program-pr | --program-p)
1052     ac_prev=program_prefix ;;
1053   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055     program_prefix=$ac_optarg ;;
1056
1057   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058   | --program-suf | --program-su | --program-s)
1059     ac_prev=program_suffix ;;
1060   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062     program_suffix=$ac_optarg ;;
1063
1064   -program-transform-name | --program-transform-name \
1065   | --program-transform-nam | --program-transform-na \
1066   | --program-transform-n | --program-transform- \
1067   | --program-transform | --program-transfor \
1068   | --program-transfo | --program-transf \
1069   | --program-trans | --program-tran \
1070   | --progr-tra | --program-tr | --program-t)
1071     ac_prev=program_transform_name ;;
1072   -program-transform-name=* | --program-transform-name=* \
1073   | --program-transform-nam=* | --program-transform-na=* \
1074   | --program-transform-n=* | --program-transform-=* \
1075   | --program-transform=* | --program-transfor=* \
1076   | --program-transfo=* | --program-transf=* \
1077   | --program-trans=* | --program-tran=* \
1078   | --progr-tra=* | --program-tr=* | --program-t=*)
1079     program_transform_name=$ac_optarg ;;
1080
1081   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082     ac_prev=pdfdir ;;
1083   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084     pdfdir=$ac_optarg ;;
1085
1086   -psdir | --psdir | --psdi | --psd | --ps)
1087     ac_prev=psdir ;;
1088   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089     psdir=$ac_optarg ;;
1090
1091   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092   | -silent | --silent | --silen | --sile | --sil)
1093     silent=yes ;;
1094
1095   -runstatedir | --runstatedir | --runstatedi | --runstated \
1096   | --runstate | --runstat | --runsta | --runst | --runs \
1097   | --run | --ru | --r)
1098     ac_prev=runstatedir ;;
1099   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101   | --run=* | --ru=* | --r=*)
1102     runstatedir=$ac_optarg ;;
1103
1104   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105     ac_prev=sbindir ;;
1106   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107   | --sbi=* | --sb=*)
1108     sbindir=$ac_optarg ;;
1109
1110   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112   | --sharedst | --shareds | --shared | --share | --shar \
1113   | --sha | --sh)
1114     ac_prev=sharedstatedir ;;
1115   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118   | --sha=* | --sh=*)
1119     sharedstatedir=$ac_optarg ;;
1120
1121   -site | --site | --sit)
1122     ac_prev=site ;;
1123   -site=* | --site=* | --sit=*)
1124     site=$ac_optarg ;;
1125
1126   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127     ac_prev=srcdir ;;
1128   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129     srcdir=$ac_optarg ;;
1130
1131   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132   | --syscon | --sysco | --sysc | --sys | --sy)
1133     ac_prev=sysconfdir ;;
1134   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136     sysconfdir=$ac_optarg ;;
1137
1138   -target | --target | --targe | --targ | --tar | --ta | --t)
1139     ac_prev=target_alias ;;
1140   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141     target_alias=$ac_optarg ;;
1142
1143   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144     verbose=yes ;;
1145
1146   -version | --version | --versio | --versi | --vers | -V)
1147     ac_init_version=: ;;
1148
1149   -with-* | --with-*)
1150     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153       as_fn_error $? "invalid package name: $ac_useropt"
1154     ac_useropt_orig=$ac_useropt
1155     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156     case $ac_user_opts in
1157       *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161          ac_unrecognized_sep=', ';;
1162     esac
1163     eval with_$ac_useropt=\$ac_optarg ;;
1164
1165   -without-* | --without-*)
1166     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169       as_fn_error $? "invalid package name: $ac_useropt"
1170     ac_useropt_orig=$ac_useropt
1171     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172     case $ac_user_opts in
1173       *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177          ac_unrecognized_sep=', ';;
1178     esac
1179     eval with_$ac_useropt=no ;;
1180
1181   --x)
1182     # Obsolete; use --with-x.
1183     with_x=yes ;;
1184
1185   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186   | --x-incl | --x-inc | --x-in | --x-i)
1187     ac_prev=x_includes ;;
1188   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190     x_includes=$ac_optarg ;;
1191
1192   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194     ac_prev=x_libraries ;;
1195   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197     x_libraries=$ac_optarg ;;
1198
1199   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1201     ;;
1202
1203   *=*)
1204     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205     # Reject names that are not valid shell variable names.
1206     case $ac_envvar in #(
1207       '' | [0-9]* | *[!_$as_cr_alnum]* )
1208       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209     esac
1210     eval $ac_envvar=\$ac_optarg
1211     export $ac_envvar ;;
1212
1213   *)
1214     # FIXME: should be removed in autoconf 3.0.
1215     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219     ;;
1220
1221   esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226   as_fn_error $? "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230   case $enable_option_checking in
1231     no) ;;
1232     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234   esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239                 datadir sysconfdir sharedstatedir localstatedir includedir \
1240                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241                 libdir localedir mandir runstatedir
1242 do
1243   eval ac_val=\$$ac_var
1244   # Remove trailing slashes.
1245   case $ac_val in
1246     */ )
1247       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248       eval $ac_var=\$ac_val;;
1249   esac
1250   # Be sure to have absolute directory names.
1251   case $ac_val in
1252     [\\/$]* | ?:[\\/]* )  continue;;
1253     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254   esac
1255   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267   if test "x$build_alias" = x; then
1268     cross_compiling=maybe
1269   elif test "x$build_alias" != "x$host_alias"; then
1270     cross_compiling=yes
1271   fi
1272 fi
1273
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277 test "$silent" = yes && exec 6>/dev/null
1278
1279
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283   as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285   as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290   ac_srcdir_defaulted=yes
1291   # Try the directory containing this script, then the parent directory.
1292   ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294          X"$as_myself" : 'X\(//\)[^/]' \| \
1295          X"$as_myself" : 'X\(//\)$' \| \
1296          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299             s//\1/
1300             q
1301           }
1302           /^X\(\/\/\)[^/].*/{
1303             s//\1/
1304             q
1305           }
1306           /^X\(\/\/\)$/{
1307             s//\1/
1308             q
1309           }
1310           /^X\(\/\).*/{
1311             s//\1/
1312             q
1313           }
1314           s/.*/./; q'`
1315   srcdir=$ac_confdir
1316   if test ! -r "$srcdir/$ac_unique_file"; then
1317     srcdir=..
1318   fi
1319 else
1320   ac_srcdir_defaulted=no
1321 fi
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 fi
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329         pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332   srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342   eval ac_env_${ac_var}_value=\$${ac_var}
1343   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351   # Omit some internal or obsolete options to make the list less imposing.
1352   # This message is too long to be a string in the A/UX 3.1 sh.
1353   cat <<_ACEOF
1354 \`configure' configures c-ares-test - to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE.  See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364   -h, --help              display this help and exit
1365       --help=short        display options specific to this package
1366       --help=recursive    display the short help of all the included packages
1367   -V, --version           display version information and exit
1368   -q, --quiet, --silent   do not print \`checking ...' messages
1369       --cache-file=FILE   cache test results in FILE [disabled]
1370   -C, --config-cache      alias for \`--cache-file=config.cache'
1371   -n, --no-create         do not create output files
1372       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1373
1374 Installation directories:
1375   --prefix=PREFIX         install architecture-independent files in PREFIX
1376                           [$ac_default_prefix]
1377   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378                           [PREFIX]
1379
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388   --bindir=DIR            user executables [EPREFIX/bin]
1389   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1390   --libexecdir=DIR        program executables [EPREFIX/libexec]
1391   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1392   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1393   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1394   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1395   --libdir=DIR            object code libraries [EPREFIX/lib]
1396   --includedir=DIR        C header files [PREFIX/include]
1397   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1398   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1399   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1400   --infodir=DIR           info documentation [DATAROOTDIR/info]
1401   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1402   --mandir=DIR            man documentation [DATAROOTDIR/man]
1403   --docdir=DIR            documentation root [DATAROOTDIR/doc/c-ares-test]
1404   --htmldir=DIR           html documentation [DOCDIR]
1405   --dvidir=DIR            dvi documentation [DOCDIR]
1406   --pdfdir=DIR            pdf documentation [DOCDIR]
1407   --psdir=DIR             ps documentation [DOCDIR]
1408 _ACEOF
1409
1410   cat <<\_ACEOF
1411
1412 Program names:
1413   --program-prefix=PREFIX            prepend PREFIX to installed program names
1414   --program-suffix=SUFFIX            append SUFFIX to installed program names
1415   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1416
1417 System types:
1418   --build=BUILD     configure for building on BUILD [guessed]
1419   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420 _ACEOF
1421 fi
1422
1423 if test -n "$ac_init_help"; then
1424   case $ac_init_help in
1425      short | recursive ) echo "Configuration of c-ares-test -:";;
1426    esac
1427   cat <<\_ACEOF
1428
1429 Optional Features:
1430   --disable-option-checking  ignore unrecognized --enable/--with options
1431   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1432   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433   --enable-silent-rules   less verbose build output (undo: "make V=1")
1434   --disable-silent-rules  verbose build output (undo: "make V=0")
1435   --enable-dependency-tracking
1436                           do not reject slow dependency extractors
1437   --disable-dependency-tracking
1438                           speeds up one-time build
1439   --enable-shared[=PKGS]  build shared libraries [default=yes]
1440   --enable-static[=PKGS]  build static libraries [default=yes]
1441   --enable-fast-install[=PKGS]
1442                           optimize for fast installation [default=yes]
1443   --disable-libtool-lock  avoid locking (might break parallel builds)
1444   --enable-code-coverage  Whether to enable code coverage support
1445
1446 Optional Packages:
1447   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1448   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1449   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1450                           both]
1451   --with-aix-soname=aix|svr4|both
1452                           shared library versioning (aka "SONAME") variant to
1453                           provide on AIX, [default=aix].
1454   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1455   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1456                           compiler's sysroot if not specified).
1457   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1458
1459 Some influential environment variables:
1460   CXX         C++ compiler command
1461   CXXFLAGS    C++ compiler flags
1462   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463               nonstandard directory <lib dir>
1464   LIBS        libraries to pass to the linker, e.g. -l<library>
1465   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1466               you have headers in a nonstandard directory <include dir>
1467   CC          C compiler command
1468   CFLAGS      C compiler flags
1469   LT_SYS_LIBRARY_PATH
1470               User-defined run-time library search path.
1471   CPP         C preprocessor
1472   CXXCPP      C++ preprocessor
1473
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1476
1477 Report bugs to <->.
1478 _ACEOF
1479 ac_status=$?
1480 fi
1481
1482 if test "$ac_init_help" = "recursive"; then
1483   # If there are subdirs, report their specific --help.
1484   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485     test -d "$ac_dir" ||
1486       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487       continue
1488     ac_builddir=.
1489
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *)
1493   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494   # A ".." for each directory in $ac_dir_suffix.
1495   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496   case $ac_top_builddir_sub in
1497   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499   esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1505
1506 case $srcdir in
1507   .)  # We are building in place.
1508     ac_srcdir=.
1509     ac_top_srcdir=$ac_top_builddir_sub
1510     ac_abs_top_srcdir=$ac_pwd ;;
1511   [\\/]* | ?:[\\/]* )  # Absolute name.
1512     ac_srcdir=$srcdir$ac_dir_suffix;
1513     ac_top_srcdir=$srcdir
1514     ac_abs_top_srcdir=$srcdir ;;
1515   *) # Relative name.
1516     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517     ac_top_srcdir=$ac_top_build_prefix$srcdir
1518     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522     cd "$ac_dir" || { ac_status=$?; continue; }
1523     # Check for guested configure.
1524     if test -f "$ac_srcdir/configure.gnu"; then
1525       echo &&
1526       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527     elif test -f "$ac_srcdir/configure"; then
1528       echo &&
1529       $SHELL "$ac_srcdir/configure" --help=recursive
1530     else
1531       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532     fi || ac_status=$?
1533     cd "$ac_pwd" || { ac_status=$?; break; }
1534   done
1535 fi
1536
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539   cat <<\_ACEOF
1540 c-ares-test configure -
1541 generated by GNU Autoconf 2.69
1542
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547   exit
1548 fi
1549
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1553
1554 # ac_fn_cxx_try_compile LINENO
1555 # ----------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_cxx_try_compile ()
1558 {
1559   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560   rm -f conftest.$ac_objext
1561   if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564   *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568   (eval "$ac_compile") 2>conftest.err
1569   ac_status=$?
1570   if test -s conftest.err; then
1571     grep -v '^ *+' conftest.err >conftest.er1
1572     cat conftest.er1 >&5
1573     mv -f conftest.er1 conftest.err
1574   fi
1575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576   test $ac_status = 0; } && {
1577          test -z "$ac_cxx_werror_flag" ||
1578          test ! -s conftest.err
1579        } && test -s conftest.$ac_objext; then :
1580   ac_retval=0
1581 else
1582   $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585         ac_retval=1
1586 fi
1587   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588   as_fn_set_status $ac_retval
1589
1590 } # ac_fn_cxx_try_compile
1591
1592 # ac_fn_c_try_compile LINENO
1593 # --------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1596 {
1597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598   rm -f conftest.$ac_objext
1599   if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602   *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606   (eval "$ac_compile") 2>conftest.err
1607   ac_status=$?
1608   if test -s conftest.err; then
1609     grep -v '^ *+' conftest.err >conftest.er1
1610     cat conftest.er1 >&5
1611     mv -f conftest.er1 conftest.err
1612   fi
1613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614   test $ac_status = 0; } && {
1615          test -z "$ac_c_werror_flag" ||
1616          test ! -s conftest.err
1617        } && test -s conftest.$ac_objext; then :
1618   ac_retval=0
1619 else
1620   $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623         ac_retval=1
1624 fi
1625   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626   as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_compile
1629
1630 # ac_fn_c_try_link LINENO
1631 # -----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_link ()
1634 {
1635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636   rm -f conftest.$ac_objext conftest$ac_exeext
1637   if { { ac_try="$ac_link"
1638 case "(($ac_try" in
1639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640   *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644   (eval "$ac_link") 2>conftest.err
1645   ac_status=$?
1646   if test -s conftest.err; then
1647     grep -v '^ *+' conftest.err >conftest.er1
1648     cat conftest.er1 >&5
1649     mv -f conftest.er1 conftest.err
1650   fi
1651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652   test $ac_status = 0; } && {
1653          test -z "$ac_c_werror_flag" ||
1654          test ! -s conftest.err
1655        } && test -s conftest$ac_exeext && {
1656          test "$cross_compiling" = yes ||
1657          test -x conftest$ac_exeext
1658        }; then :
1659   ac_retval=0
1660 else
1661   $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664         ac_retval=1
1665 fi
1666   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668   # interfere with the next link command; also delete a directory that is
1669   # left behind by Apple's compiler.  We do this before executing the actions.
1670   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672   as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_link
1675
1676 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists and can be compiled using the include files in
1679 # INCLUDES, setting the cache variable VAR accordingly.
1680 ac_fn_c_check_header_compile ()
1681 {
1682   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval \${$3+:} false; then :
1686   $as_echo_n "(cached) " >&6
1687 else
1688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h.  */
1690 $4
1691 #include <$2>
1692 _ACEOF
1693 if ac_fn_c_try_compile "$LINENO"; then :
1694   eval "$3=yes"
1695 else
1696   eval "$3=no"
1697 fi
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 fi
1700 eval ac_res=\$$3
1701                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_c_check_header_compile
1706
1707 # ac_fn_c_try_cpp LINENO
1708 # ----------------------
1709 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_cpp ()
1711 {
1712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713   if { { ac_try="$ac_cpp conftest.$ac_ext"
1714 case "(($ac_try" in
1715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716   *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721   ac_status=$?
1722   if test -s conftest.err; then
1723     grep -v '^ *+' conftest.err >conftest.er1
1724     cat conftest.er1 >&5
1725     mv -f conftest.er1 conftest.err
1726   fi
1727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728   test $ac_status = 0; } > conftest.i && {
1729          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730          test ! -s conftest.err
1731        }; then :
1732   ac_retval=0
1733 else
1734   $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737     ac_retval=1
1738 fi
1739   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740   as_fn_set_status $ac_retval
1741
1742 } # ac_fn_c_try_cpp
1743
1744 # ac_fn_c_try_run LINENO
1745 # ----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747 # that executables *can* be run.
1748 ac_fn_c_try_run ()
1749 {
1750   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751   if { { ac_try="$ac_link"
1752 case "(($ac_try" in
1753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754   *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758   (eval "$ac_link") 2>&5
1759   ac_status=$?
1760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762   { { case "(($ac_try" in
1763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764   *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768   (eval "$ac_try") 2>&5
1769   ac_status=$?
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; }; }; then :
1772   ac_retval=0
1773 else
1774   $as_echo "$as_me: program exited with status $ac_status" >&5
1775        $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778        ac_retval=$ac_status
1779 fi
1780   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782   as_fn_set_status $ac_retval
1783
1784 } # ac_fn_c_try_run
1785
1786 # ac_fn_c_check_func LINENO FUNC VAR
1787 # ----------------------------------
1788 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1789 ac_fn_c_check_func ()
1790 {
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795   $as_echo_n "(cached) " >&6
1796 else
1797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h.  */
1799 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1801 #define $2 innocuous_$2
1802
1803 /* System header to define __stub macros and hopefully few prototypes,
1804     which can conflict with char $2 (); below.
1805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806     <limits.h> exists even on freestanding compilers.  */
1807
1808 #ifdef __STDC__
1809 # include <limits.h>
1810 #else
1811 # include <assert.h>
1812 #endif
1813
1814 #undef $2
1815
1816 /* Override any GCC internal prototype to avoid an error.
1817    Use char because int might match the return type of a GCC
1818    builtin and then its argument prototype would still apply.  */
1819 #ifdef __cplusplus
1820 extern "C"
1821 #endif
1822 char $2 ();
1823 /* The GNU C library defines this for functions which it implements
1824     to always fail with ENOSYS.  Some functions are actually named
1825     something starting with __ and the normal name is an alias.  */
1826 #if defined __stub_$2 || defined __stub___$2
1827 choke me
1828 #endif
1829
1830 int
1831 main ()
1832 {
1833 return $2 ();
1834   ;
1835   return 0;
1836 }
1837 _ACEOF
1838 if ac_fn_c_try_link "$LINENO"; then :
1839   eval "$3=yes"
1840 else
1841   eval "$3=no"
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext \
1844     conftest$ac_exeext conftest.$ac_ext
1845 fi
1846 eval ac_res=\$$3
1847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851 } # ac_fn_c_check_func
1852
1853 # ac_fn_cxx_try_cpp LINENO
1854 # ------------------------
1855 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_cpp ()
1857 {
1858   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859   if { { ac_try="$ac_cpp conftest.$ac_ext"
1860 case "(($ac_try" in
1861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862   *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1867   ac_status=$?
1868   if test -s conftest.err; then
1869     grep -v '^ *+' conftest.err >conftest.er1
1870     cat conftest.er1 >&5
1871     mv -f conftest.er1 conftest.err
1872   fi
1873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874   test $ac_status = 0; } > conftest.i && {
1875          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1876          test ! -s conftest.err
1877        }; then :
1878   ac_retval=0
1879 else
1880   $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883     ac_retval=1
1884 fi
1885   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886   as_fn_set_status $ac_retval
1887
1888 } # ac_fn_cxx_try_cpp
1889
1890 # ac_fn_cxx_try_link LINENO
1891 # -------------------------
1892 # Try to link conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_cxx_try_link ()
1894 {
1895   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896   rm -f conftest.$ac_objext conftest$ac_exeext
1897   if { { ac_try="$ac_link"
1898 case "(($ac_try" in
1899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900   *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904   (eval "$ac_link") 2>conftest.err
1905   ac_status=$?
1906   if test -s conftest.err; then
1907     grep -v '^ *+' conftest.err >conftest.er1
1908     cat conftest.er1 >&5
1909     mv -f conftest.er1 conftest.err
1910   fi
1911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912   test $ac_status = 0; } && {
1913          test -z "$ac_cxx_werror_flag" ||
1914          test ! -s conftest.err
1915        } && test -s conftest$ac_exeext && {
1916          test "$cross_compiling" = yes ||
1917          test -x conftest$ac_exeext
1918        }; then :
1919   ac_retval=0
1920 else
1921   $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924         ac_retval=1
1925 fi
1926   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928   # interfere with the next link command; also delete a directory that is
1929   # left behind by Apple's compiler.  We do this before executing the actions.
1930   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932   as_fn_set_status $ac_retval
1933
1934 } # ac_fn_cxx_try_link
1935
1936 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1937 # -------------------------------------------------------
1938 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939 # the include files in INCLUDES and setting the cache variable VAR
1940 # accordingly.
1941 ac_fn_c_check_header_mongrel ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   if eval \${$3+:} false; then :
1945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948   $as_echo_n "(cached) " >&6
1949 fi
1950 eval ac_res=\$$3
1951                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1953 else
1954   # Is the header compilable?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956 $as_echo_n "checking $2 usability... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 $4
1960 #include <$2>
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963   ac_header_compiler=yes
1964 else
1965   ac_header_compiler=no
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969 $as_echo "$ac_header_compiler" >&6; }
1970
1971 # Is the header present?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973 $as_echo_n "checking $2 presence... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 #include <$2>
1977 _ACEOF
1978 if ac_fn_c_try_cpp "$LINENO"; then :
1979   ac_header_preproc=yes
1980 else
1981   ac_header_preproc=no
1982 fi
1983 rm -f conftest.err conftest.i conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985 $as_echo "$ac_header_preproc" >&6; }
1986
1987 # So?  What about this header?
1988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1989   yes:no: )
1990     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994     ;;
1995   no:yes:* )
1996     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1999 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2003 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006 ( $as_echo "## ---------------- ##
2007 ## Report this to - ##
2008 ## ---------------- ##"
2009      ) | sed "s/^/$as_me: WARNING:     /" >&2
2010     ;;
2011 esac
2012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015   $as_echo_n "(cached) " >&6
2016 else
2017   eval "$3=\$ac_header_compiler"
2018 fi
2019 eval ac_res=\$$3
2020                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 fi
2023   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025 } # ac_fn_c_check_header_mongrel
2026 cat >config.log <<_ACEOF
2027 This file contains any messages produced by compilers while
2028 running configure, to aid debugging if configure makes a mistake.
2029
2030 It was created by c-ares-test $as_me -, which was
2031 generated by GNU Autoconf 2.69.  Invocation command line was
2032
2033   $ $0 $@
2034
2035 _ACEOF
2036 exec 5>>config.log
2037 {
2038 cat <<_ASUNAME
2039 ## --------- ##
2040 ## Platform. ##
2041 ## --------- ##
2042
2043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2048
2049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2050 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2051
2052 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2053 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2055 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2056 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2057 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2058 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2059
2060 _ASUNAME
2061
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067     $as_echo "PATH: $as_dir"
2068   done
2069 IFS=$as_save_IFS
2070
2071 } >&5
2072
2073 cat >&5 <<_ACEOF
2074
2075
2076 ## ----------- ##
2077 ## Core tests. ##
2078 ## ----------- ##
2079
2080 _ACEOF
2081
2082
2083 # Keep a trace of the command line.
2084 # Strip out --no-create and --no-recursion so they do not pile up.
2085 # Strip out --silent because we don't want to record it for future runs.
2086 # Also quote any args containing shell meta-characters.
2087 # Make two passes to allow for proper duplicate-argument suppression.
2088 ac_configure_args=
2089 ac_configure_args0=
2090 ac_configure_args1=
2091 ac_must_keep_next=false
2092 for ac_pass in 1 2
2093 do
2094   for ac_arg
2095   do
2096     case $ac_arg in
2097     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2098     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099     | -silent | --silent | --silen | --sile | --sil)
2100       continue ;;
2101     *\'*)
2102       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2103     esac
2104     case $ac_pass in
2105     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2106     2)
2107       as_fn_append ac_configure_args1 " '$ac_arg'"
2108       if test $ac_must_keep_next = true; then
2109         ac_must_keep_next=false # Got value, back to normal.
2110       else
2111         case $ac_arg in
2112           *=* | --config-cache | -C | -disable-* | --disable-* \
2113           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2114           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2115           | -with-* | --with-* | -without-* | --without-* | --x)
2116             case "$ac_configure_args0 " in
2117               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2118             esac
2119             ;;
2120           -* ) ac_must_keep_next=true ;;
2121         esac
2122       fi
2123       as_fn_append ac_configure_args " '$ac_arg'"
2124       ;;
2125     esac
2126   done
2127 done
2128 { ac_configure_args0=; unset ac_configure_args0;}
2129 { ac_configure_args1=; unset ac_configure_args1;}
2130
2131 # When interrupted or exit'd, cleanup temporary files, and complete
2132 # config.log.  We remove comments because anyway the quotes in there
2133 # would cause problems or look ugly.
2134 # WARNING: Use '\'' to represent an apostrophe within the trap.
2135 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2136 trap 'exit_status=$?
2137   # Save into config.log some information that might help in debugging.
2138   {
2139     echo
2140
2141     $as_echo "## ---------------- ##
2142 ## Cache variables. ##
2143 ## ---------------- ##"
2144     echo
2145     # The following way of writing the cache mishandles newlines in values,
2146 (
2147   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148     eval ac_val=\$$ac_var
2149     case $ac_val in #(
2150     *${as_nl}*)
2151       case $ac_var in #(
2152       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2154       esac
2155       case $ac_var in #(
2156       _ | IFS | as_nl) ;; #(
2157       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158       *) { eval $ac_var=; unset $ac_var;} ;;
2159       esac ;;
2160     esac
2161   done
2162   (set) 2>&1 |
2163     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164     *${as_nl}ac_space=\ *)
2165       sed -n \
2166         "s/'\''/'\''\\\\'\'''\''/g;
2167           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168       ;; #(
2169     *)
2170       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2171       ;;
2172     esac |
2173     sort
2174 )
2175     echo
2176
2177     $as_echo "## ----------------- ##
2178 ## Output variables. ##
2179 ## ----------------- ##"
2180     echo
2181     for ac_var in $ac_subst_vars
2182     do
2183       eval ac_val=\$$ac_var
2184       case $ac_val in
2185       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186       esac
2187       $as_echo "$ac_var='\''$ac_val'\''"
2188     done | sort
2189     echo
2190
2191     if test -n "$ac_subst_files"; then
2192       $as_echo "## ------------------- ##
2193 ## File substitutions. ##
2194 ## ------------------- ##"
2195       echo
2196       for ac_var in $ac_subst_files
2197       do
2198         eval ac_val=\$$ac_var
2199         case $ac_val in
2200         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201         esac
2202         $as_echo "$ac_var='\''$ac_val'\''"
2203       done | sort
2204       echo
2205     fi
2206
2207     if test -s confdefs.h; then
2208       $as_echo "## ----------- ##
2209 ## confdefs.h. ##
2210 ## ----------- ##"
2211       echo
2212       cat confdefs.h
2213       echo
2214     fi
2215     test "$ac_signal" != 0 &&
2216       $as_echo "$as_me: caught signal $ac_signal"
2217     $as_echo "$as_me: exit $exit_status"
2218   } >&5
2219   rm -f core *.core core.conftest.* &&
2220     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221     exit $exit_status
2222 ' 0
2223 for ac_signal in 1 2 13 15; do
2224   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2225 done
2226 ac_signal=0
2227
2228 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2229 rm -f -r conftest* confdefs.h
2230
2231 $as_echo "/* confdefs.h */" > confdefs.h
2232
2233 # Predefined preprocessor variables.
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_NAME "$PACKAGE_NAME"
2237 _ACEOF
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241 _ACEOF
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_STRING "$PACKAGE_STRING"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_URL "$PACKAGE_URL"
2257 _ACEOF
2258
2259
2260 # Let the site file select an alternate cache file if it wants to.
2261 # Prefer an explicitly selected file to automatically selected ones.
2262 ac_site_file1=NONE
2263 ac_site_file2=NONE
2264 if test -n "$CONFIG_SITE"; then
2265   # We do not want a PATH search for config.site.
2266   case $CONFIG_SITE in #((
2267     -*)  ac_site_file1=./$CONFIG_SITE;;
2268     */*) ac_site_file1=$CONFIG_SITE;;
2269     *)   ac_site_file1=./$CONFIG_SITE;;
2270   esac
2271 elif test "x$prefix" != xNONE; then
2272   ac_site_file1=$prefix/share/config.site
2273   ac_site_file2=$prefix/etc/config.site
2274 else
2275   ac_site_file1=$ac_default_prefix/share/config.site
2276   ac_site_file2=$ac_default_prefix/etc/config.site
2277 fi
2278 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2279 do
2280   test "x$ac_site_file" = xNONE && continue
2281   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2282     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284     sed 's/^/| /' "$ac_site_file" >&5
2285     . "$ac_site_file" \
2286       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 as_fn_error $? "failed to load site script $ac_site_file
2289 See \`config.log' for more details" "$LINENO" 5; }
2290   fi
2291 done
2292
2293 if test -r "$cache_file"; then
2294   # Some versions of bash will fail to source /dev/null (special files
2295   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2296   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2297     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298 $as_echo "$as_me: loading cache $cache_file" >&6;}
2299     case $cache_file in
2300       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301       *)                      . "./$cache_file";;
2302     esac
2303   fi
2304 else
2305   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306 $as_echo "$as_me: creating cache $cache_file" >&6;}
2307   >$cache_file
2308 fi
2309
2310 # Check that the precious variables saved in the cache have kept the same
2311 # value.
2312 ac_cache_corrupted=false
2313 for ac_var in $ac_precious_vars; do
2314   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2315   eval ac_new_set=\$ac_env_${ac_var}_set
2316   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2317   eval ac_new_val=\$ac_env_${ac_var}_value
2318   case $ac_old_set,$ac_new_set in
2319     set,)
2320       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2322       ac_cache_corrupted=: ;;
2323     ,set)
2324       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2325 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2326       ac_cache_corrupted=: ;;
2327     ,);;
2328     *)
2329       if test "x$ac_old_val" != "x$ac_new_val"; then
2330         # differences in whitespace do not lead to failure.
2331         ac_old_val_w=`echo x $ac_old_val`
2332         ac_new_val_w=`echo x $ac_new_val`
2333         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2334           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2335 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336           ac_cache_corrupted=:
2337         else
2338           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2339 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2340           eval $ac_var=\$ac_old_val
2341         fi
2342         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2343 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2344         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2345 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2346       fi;;
2347   esac
2348   # Pass precious variables to config.status.
2349   if test "$ac_new_set" = set; then
2350     case $ac_new_val in
2351     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2352     *) ac_arg=$ac_var=$ac_new_val ;;
2353     esac
2354     case " $ac_configure_args " in
2355       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2356       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2357     esac
2358   fi
2359 done
2360 if $ac_cache_corrupted; then
2361   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2364 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2365   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2366 fi
2367 ## -------------------- ##
2368 ## Main body of script. ##
2369 ## -------------------- ##
2370
2371 ac_ext=c
2372 ac_cpp='$CPP $CPPFLAGS'
2373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378
2379
2380
2381 am__api_version='1.15'
2382
2383 ac_aux_dir=
2384 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385   if test -f "$ac_dir/install-sh"; then
2386     ac_aux_dir=$ac_dir
2387     ac_install_sh="$ac_aux_dir/install-sh -c"
2388     break
2389   elif test -f "$ac_dir/install.sh"; then
2390     ac_aux_dir=$ac_dir
2391     ac_install_sh="$ac_aux_dir/install.sh -c"
2392     break
2393   elif test -f "$ac_dir/shtool"; then
2394     ac_aux_dir=$ac_dir
2395     ac_install_sh="$ac_aux_dir/shtool install -c"
2396     break
2397   fi
2398 done
2399 if test -z "$ac_aux_dir"; then
2400   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2401 fi
2402
2403 # These three variables are undocumented and unsupported,
2404 # and are intended to be withdrawn in a future Autoconf release.
2405 # They can cause serious problems if a builder's source tree is in a directory
2406 # whose full name contains unusual characters.
2407 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2408 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2409 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2410
2411
2412 # Find a good install program.  We prefer a C program (faster),
2413 # so one script is as good as another.  But avoid the broken or
2414 # incompatible versions:
2415 # SysV /etc/install, /usr/sbin/install
2416 # SunOS /usr/etc/install
2417 # IRIX /sbin/install
2418 # AIX /bin/install
2419 # AmigaOS /C/install, which installs bootblocks on floppy discs
2420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2423 # OS/2's system install, which has a completely different semantic
2424 # ./install, which can be erroneously created by make from ./install.sh.
2425 # Reject install programs that cannot install multiple files.
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2427 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2428 if test -z "$INSTALL"; then
2429 if ${ac_cv_path_install+:} false; then :
2430   $as_echo_n "(cached) " >&6
2431 else
2432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437     # Account for people who put trailing slashes in PATH elements.
2438 case $as_dir/ in #((
2439   ./ | .// | /[cC]/* | \
2440   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2442   /usr/ucb/* ) ;;
2443   *)
2444     # OSF1 and SCO ODT 3.0 have their own names for install.
2445     # Don't use installbsd from OSF since it installs stuff as root
2446     # by default.
2447     for ac_prog in ginstall scoinst install; do
2448       for ac_exec_ext in '' $ac_executable_extensions; do
2449         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2450           if test $ac_prog = install &&
2451             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452             # AIX install.  It has an incompatible calling convention.
2453             :
2454           elif test $ac_prog = install &&
2455             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456             # program-specific install script used by HP pwplus--don't use.
2457             :
2458           else
2459             rm -rf conftest.one conftest.two conftest.dir
2460             echo one > conftest.one
2461             echo two > conftest.two
2462             mkdir conftest.dir
2463             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2464               test -s conftest.one && test -s conftest.two &&
2465               test -s conftest.dir/conftest.one &&
2466               test -s conftest.dir/conftest.two
2467             then
2468               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2469               break 3
2470             fi
2471           fi
2472         fi
2473       done
2474     done
2475     ;;
2476 esac
2477
2478   done
2479 IFS=$as_save_IFS
2480
2481 rm -rf conftest.one conftest.two conftest.dir
2482
2483 fi
2484   if test "${ac_cv_path_install+set}" = set; then
2485     INSTALL=$ac_cv_path_install
2486   else
2487     # As a last resort, use the slow shell script.  Don't cache a
2488     # value for INSTALL within a source directory, because that will
2489     # break other packages using the cache if that directory is
2490     # removed, or if the value is a relative name.
2491     INSTALL=$ac_install_sh
2492   fi
2493 fi
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2495 $as_echo "$INSTALL" >&6; }
2496
2497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2498 # It thinks the first close brace ends the variable substitution.
2499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2500
2501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2502
2503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2504
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2506 $as_echo_n "checking whether build environment is sane... " >&6; }
2507 # Reject unsafe characters in $srcdir or the absolute working directory
2508 # name.  Accept space and tab only in the latter.
2509 am_lf='
2510 '
2511 case `pwd` in
2512   *[\\\"\#\$\&\'\`$am_lf]*)
2513     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2514 esac
2515 case $srcdir in
2516   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2517     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2518 esac
2519
2520 # Do 'set' in a subshell so we don't clobber the current shell's
2521 # arguments.  Must try -L first in case configure is actually a
2522 # symlink; some systems play weird games with the mod time of symlinks
2523 # (eg FreeBSD returns the mod time of the symlink's containing
2524 # directory).
2525 if (
2526    am_has_slept=no
2527    for am_try in 1 2; do
2528      echo "timestamp, slept: $am_has_slept" > conftest.file
2529      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2530      if test "$*" = "X"; then
2531         # -L didn't work.
2532         set X `ls -t "$srcdir/configure" conftest.file`
2533      fi
2534      if test "$*" != "X $srcdir/configure conftest.file" \
2535         && test "$*" != "X conftest.file $srcdir/configure"; then
2536
2537         # If neither matched, then we have a broken ls.  This can happen
2538         # if, for instance, CONFIG_SHELL is bash and it inherits a
2539         # broken ls alias from the environment.  This has actually
2540         # happened.  Such a system could not be considered "sane".
2541         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2542   alias in your environment" "$LINENO" 5
2543      fi
2544      if test "$2" = conftest.file || test $am_try -eq 2; then
2545        break
2546      fi
2547      # Just in case.
2548      sleep 1
2549      am_has_slept=yes
2550    done
2551    test "$2" = conftest.file
2552    )
2553 then
2554    # Ok.
2555    :
2556 else
2557    as_fn_error $? "newly created file is older than distributed files!
2558 Check your system clock" "$LINENO" 5
2559 fi
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2561 $as_echo "yes" >&6; }
2562 # If we didn't sleep, we still need to ensure time stamps of config.status and
2563 # generated files are strictly newer.
2564 am_sleep_pid=
2565 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2566   ( sleep 1 ) &
2567   am_sleep_pid=$!
2568 fi
2569
2570 rm -f conftest.file
2571
2572 test "$program_prefix" != NONE &&
2573   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2574 # Use a double $ so make ignores it.
2575 test "$program_suffix" != NONE &&
2576   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2577 # Double any \ or $.
2578 # By default was `s,x,x', remove it if useless.
2579 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2580 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2581
2582 # Expand $ac_aux_dir to an absolute path.
2583 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2584
2585 if test x"${MISSING+set}" != xset; then
2586   case $am_aux_dir in
2587   *\ * | *\     *)
2588     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2589   *)
2590     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2591   esac
2592 fi
2593 # Use eval to expand $SHELL
2594 if eval "$MISSING --is-lightweight"; then
2595   am_missing_run="$MISSING "
2596 else
2597   am_missing_run=
2598   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2599 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2600 fi
2601
2602 if test x"${install_sh+set}" != xset; then
2603   case $am_aux_dir in
2604   *\ * | *\     *)
2605     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2606   *)
2607     install_sh="\${SHELL} $am_aux_dir/install-sh"
2608   esac
2609 fi
2610
2611 # Installed binaries are usually stripped using 'strip' when the user
2612 # run "make install-strip".  However 'strip' might not be the right
2613 # tool to use in cross-compilation environments, therefore Automake
2614 # will honor the 'STRIP' environment variable to overrule this program.
2615 if test "$cross_compiling" != no; then
2616   if test -n "$ac_tool_prefix"; then
2617   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2618 set dummy ${ac_tool_prefix}strip; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if ${ac_cv_prog_STRIP+:} false; then :
2622   $as_echo_n "(cached) " >&6
2623 else
2624   if test -n "$STRIP"; then
2625   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630   IFS=$as_save_IFS
2631   test -z "$as_dir" && as_dir=.
2632     for ac_exec_ext in '' $ac_executable_extensions; do
2633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636     break 2
2637   fi
2638 done
2639   done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 STRIP=$ac_cv_prog_STRIP
2645 if test -n "$STRIP"; then
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2647 $as_echo "$STRIP" >&6; }
2648 else
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653
2654 fi
2655 if test -z "$ac_cv_prog_STRIP"; then
2656   ac_ct_STRIP=$STRIP
2657   # Extract the first word of "strip", so it can be a program name with args.
2658 set dummy strip; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2662   $as_echo_n "(cached) " >&6
2663 else
2664   if test -n "$ac_ct_STRIP"; then
2665   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670   IFS=$as_save_IFS
2671   test -z "$as_dir" && as_dir=.
2672     for ac_exec_ext in '' $ac_executable_extensions; do
2673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674     ac_cv_prog_ac_ct_STRIP="strip"
2675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676     break 2
2677   fi
2678 done
2679   done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2685 if test -n "$ac_ct_STRIP"; then
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2687 $as_echo "$ac_ct_STRIP" >&6; }
2688 else
2689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693   if test "x$ac_ct_STRIP" = x; then
2694     STRIP=":"
2695   else
2696     case $cross_compiling:$ac_tool_warned in
2697 yes:)
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2700 ac_tool_warned=yes ;;
2701 esac
2702     STRIP=$ac_ct_STRIP
2703   fi
2704 else
2705   STRIP="$ac_cv_prog_STRIP"
2706 fi
2707
2708 fi
2709 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2710
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2712 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2713 if test -z "$MKDIR_P"; then
2714   if ${ac_cv_path_mkdir+:} false; then :
2715   $as_echo_n "(cached) " >&6
2716 else
2717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2719 do
2720   IFS=$as_save_IFS
2721   test -z "$as_dir" && as_dir=.
2722     for ac_prog in mkdir gmkdir; do
2723          for ac_exec_ext in '' $ac_executable_extensions; do
2724            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2725            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2726              'mkdir (GNU coreutils) '* | \
2727              'mkdir (coreutils) '* | \
2728              'mkdir (fileutils) '4.1*)
2729                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2730                break 3;;
2731            esac
2732          done
2733        done
2734   done
2735 IFS=$as_save_IFS
2736
2737 fi
2738
2739   test -d ./--version && rmdir ./--version
2740   if test "${ac_cv_path_mkdir+set}" = set; then
2741     MKDIR_P="$ac_cv_path_mkdir -p"
2742   else
2743     # As a last resort, use the slow shell script.  Don't cache a
2744     # value for MKDIR_P within a source directory, because that will
2745     # break other packages using the cache if that directory is
2746     # removed, or if the value is a relative name.
2747     MKDIR_P="$ac_install_sh -d"
2748   fi
2749 fi
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2751 $as_echo "$MKDIR_P" >&6; }
2752
2753 for ac_prog in gawk mawk nawk awk
2754 do
2755   # Extract the first word of "$ac_prog", so it can be a program name with args.
2756 set dummy $ac_prog; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_AWK+:} false; then :
2760   $as_echo_n "(cached) " >&6
2761 else
2762   if test -n "$AWK"; then
2763   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768   IFS=$as_save_IFS
2769   test -z "$as_dir" && as_dir=.
2770     for ac_exec_ext in '' $ac_executable_extensions; do
2771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772     ac_cv_prog_AWK="$ac_prog"
2773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774     break 2
2775   fi
2776 done
2777   done
2778 IFS=$as_save_IFS
2779
2780 fi
2781 fi
2782 AWK=$ac_cv_prog_AWK
2783 if test -n "$AWK"; then
2784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2785 $as_echo "$AWK" >&6; }
2786 else
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789 fi
2790
2791
2792   test -n "$AWK" && break
2793 done
2794
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2797 set x ${MAKE-make}
2798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2799 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2800   $as_echo_n "(cached) " >&6
2801 else
2802   cat >conftest.make <<\_ACEOF
2803 SHELL = /bin/sh
2804 all:
2805         @echo '@@@%%%=$(MAKE)=@@@%%%'
2806 _ACEOF
2807 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2809   *@@@%%%=?*=@@@%%%*)
2810     eval ac_cv_prog_make_${ac_make}_set=yes;;
2811   *)
2812     eval ac_cv_prog_make_${ac_make}_set=no;;
2813 esac
2814 rm -f conftest.make
2815 fi
2816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 $as_echo "yes" >&6; }
2819   SET_MAKE=
2820 else
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823   SET_MAKE="MAKE=${MAKE-make}"
2824 fi
2825
2826 rm -rf .tst 2>/dev/null
2827 mkdir .tst 2>/dev/null
2828 if test -d .tst; then
2829   am__leading_dot=.
2830 else
2831   am__leading_dot=_
2832 fi
2833 rmdir .tst 2>/dev/null
2834
2835 # Check whether --enable-silent-rules was given.
2836 if test "${enable_silent_rules+set}" = set; then :
2837   enableval=$enable_silent_rules;
2838 fi
2839
2840 case $enable_silent_rules in # (((
2841   yes) AM_DEFAULT_VERBOSITY=0;;
2842    no) AM_DEFAULT_VERBOSITY=1;;
2843     *) AM_DEFAULT_VERBOSITY=1;;
2844 esac
2845 am_make=${MAKE-make}
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2847 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2848 if ${am_cv_make_support_nested_variables+:} false; then :
2849   $as_echo_n "(cached) " >&6
2850 else
2851   if $as_echo 'TRUE=$(BAR$(V))
2852 BAR0=false
2853 BAR1=true
2854 V=1
2855 am__doit:
2856         @$(TRUE)
2857 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2858   am_cv_make_support_nested_variables=yes
2859 else
2860   am_cv_make_support_nested_variables=no
2861 fi
2862 fi
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2864 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2865 if test $am_cv_make_support_nested_variables = yes; then
2866     AM_V='$(V)'
2867   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2868 else
2869   AM_V=$AM_DEFAULT_VERBOSITY
2870   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2871 fi
2872 AM_BACKSLASH='\'
2873
2874 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2875   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2876   # is not polluted with repeated "-I."
2877   am__isrc=' -I$(srcdir)'
2878   # test to see if srcdir already configured
2879   if test -f $srcdir/config.status; then
2880     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2881   fi
2882 fi
2883
2884 # test whether we have cygpath
2885 if test -z "$CYGPATH_W"; then
2886   if (cygpath --version) >/dev/null 2>/dev/null; then
2887     CYGPATH_W='cygpath -w'
2888   else
2889     CYGPATH_W=echo
2890   fi
2891 fi
2892
2893
2894 # Define the identity of the package.
2895  PACKAGE='c-ares-test'
2896  VERSION='-'
2897
2898
2899 # Some tools Automake needs.
2900
2901 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2902
2903
2904 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2905
2906
2907 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2908
2909
2910 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2911
2912
2913 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2914
2915 # For better backward compatibility.  To be removed once Automake 1.9.x
2916 # dies out for good.  For more background, see:
2917 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2918 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2919 mkdir_p='$(MKDIR_P)'
2920
2921 # We need awk for the "check" target (and possibly the TAP driver).  The
2922 # system "awk" is bad on some platforms.
2923 # Always define AMTAR for backward compatibility.  Yes, it's still used
2924 # in the wild :-(  We should find a proper way to deprecate it ...
2925 AMTAR='$${TAR-tar}'
2926
2927
2928 # We'll loop over all known methods to create a tar archive until one works.
2929 _am_tools='gnutar  pax cpio none'
2930
2931 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2932
2933
2934
2935
2936
2937
2938 # POSIX will say in a future version that running "rm -f" with no argument
2939 # is OK; and we want to be able to make that assumption in our Makefile
2940 # recipes.  So use an aggressive probe to check that the usage we want is
2941 # actually supported "in the wild" to an acceptable degree.
2942 # See automake bug#10828.
2943 # To make any issue more visible, cause the running configure to be aborted
2944 # by default if the 'rm' program in use doesn't match our expectations; the
2945 # user can still override this though.
2946 if rm -f && rm -fr && rm -rf; then : OK; else
2947   cat >&2 <<'END'
2948 Oops!
2949
2950 Your 'rm' program seems unable to run without file operands specified
2951 on the command line, even when the '-f' option is present.  This is contrary
2952 to the behaviour of most rm programs out there, and not conforming with
2953 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2954
2955 Please tell bug-automake@gnu.org about your system, including the value
2956 of your $PATH and any error possibly output before this message.  This
2957 can help us improve future automake versions.
2958
2959 END
2960   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2961     echo 'Configuration will proceed anyway, since you have set the' >&2
2962     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2963     echo >&2
2964   else
2965     cat >&2 <<'END'
2966 Aborting the configuration process, to ensure you take notice of the issue.
2967
2968 You can download and install GNU coreutils to get an 'rm' implementation
2969 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2970
2971 If you want to complete the configuration process using your problematic
2972 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2973 to "yes", and re-run configure.
2974
2975 END
2976     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2977   fi
2978 fi
2979
2980 # Check whether --enable-silent-rules was given.
2981 if test "${enable_silent_rules+set}" = set; then :
2982   enableval=$enable_silent_rules;
2983 fi
2984
2985 case $enable_silent_rules in # (((
2986   yes) AM_DEFAULT_VERBOSITY=0;;
2987    no) AM_DEFAULT_VERBOSITY=1;;
2988     *) AM_DEFAULT_VERBOSITY=0;;
2989 esac
2990 am_make=${MAKE-make}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2992 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2993 if ${am_cv_make_support_nested_variables+:} false; then :
2994   $as_echo_n "(cached) " >&6
2995 else
2996   if $as_echo 'TRUE=$(BAR$(V))
2997 BAR0=false
2998 BAR1=true
2999 V=1
3000 am__doit:
3001         @$(TRUE)
3002 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3003   am_cv_make_support_nested_variables=yes
3004 else
3005   am_cv_make_support_nested_variables=no
3006 fi
3007 fi
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3009 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3010 if test $am_cv_make_support_nested_variables = yes; then
3011     AM_V='$(V)'
3012   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3013 else
3014   AM_V=$AM_DEFAULT_VERBOSITY
3015   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3016 fi
3017 AM_BACKSLASH='\'
3018
3019
3020 ac_ext=cpp
3021 ac_cpp='$CXXCPP $CPPFLAGS'
3022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3025 if test -z "$CXX"; then
3026   if test -n "$CCC"; then
3027     CXX=$CCC
3028   else
3029     if test -n "$ac_tool_prefix"; then
3030   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3031   do
3032     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_CXX+:} false; then :
3037   $as_echo_n "(cached) " >&6
3038 else
3039   if test -n "$CXX"; then
3040   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047     for ac_exec_ext in '' $ac_executable_extensions; do
3048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051     break 2
3052   fi
3053 done
3054   done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 CXX=$ac_cv_prog_CXX
3060 if test -n "$CXX"; then
3061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3062 $as_echo "$CXX" >&6; }
3063 else
3064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069     test -n "$CXX" && break
3070   done
3071 fi
3072 if test -z "$CXX"; then
3073   ac_ct_CXX=$CXX
3074   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3075 do
3076   # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3081   $as_echo_n "(cached) " >&6
3082 else
3083   if test -n "$ac_ct_CXX"; then
3084   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089   IFS=$as_save_IFS
3090   test -z "$as_dir" && as_dir=.
3091     for ac_exec_ext in '' $ac_executable_extensions; do
3092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093     ac_cv_prog_ac_ct_CXX="$ac_prog"
3094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095     break 2
3096   fi
3097 done
3098   done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3104 if test -n "$ac_ct_CXX"; then
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3106 $as_echo "$ac_ct_CXX" >&6; }
3107 else
3108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113   test -n "$ac_ct_CXX" && break
3114 done
3115
3116   if test "x$ac_ct_CXX" = x; then
3117     CXX="g++"
3118   else
3119     case $cross_compiling:$ac_tool_warned in
3120 yes:)
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123 ac_tool_warned=yes ;;
3124 esac
3125     CXX=$ac_ct_CXX
3126   fi
3127 fi
3128
3129   fi
3130 fi
3131 # Provide some information about the compiler.
3132 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3133 set X $ac_compile
3134 ac_compiler=$2
3135 for ac_option in --version -v -V -qversion; do
3136   { { ac_try="$ac_compiler $ac_option >&5"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3144   ac_status=$?
3145   if test -s conftest.err; then
3146     sed '10a\
3147 ... rest of stderr output deleted ...
3148          10q' conftest.err >conftest.er1
3149     cat conftest.er1 >&5
3150   fi
3151   rm -f conftest.er1 conftest.err
3152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153   test $ac_status = 0; }
3154 done
3155
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 ac_clean_files_save=$ac_clean_files
3168 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3169 # Try to create an executable without -o first, disregard a.out.
3170 # It will help us diagnose broken compilers, and finding out an intuition
3171 # of exeext.
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3173 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3174 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3175
3176 # The possible output files:
3177 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3178
3179 ac_rmfiles=
3180 for ac_file in $ac_files
3181 do
3182   case $ac_file in
3183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3185   esac
3186 done
3187 rm -f $ac_rmfiles
3188
3189 if { { ac_try="$ac_link_default"
3190 case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 $as_echo "$ac_try_echo"; } >&5
3196   (eval "$ac_link_default") 2>&5
3197   ac_status=$?
3198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199   test $ac_status = 0; }; then :
3200   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3202 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3203 # so that the user can short-circuit this test for compilers unknown to
3204 # Autoconf.
3205 for ac_file in $ac_files ''
3206 do
3207   test -f "$ac_file" || continue
3208   case $ac_file in
3209     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3210         ;;
3211     [ab].out )
3212         # We found the default executable, but exeext='' is most
3213         # certainly right.
3214         break;;
3215     *.* )
3216         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3217         then :; else
3218            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219         fi
3220         # We set ac_cv_exeext here because the later test for it is not
3221         # safe: cross compilers may not add the suffix if given an `-o'
3222         # argument, so we may need to know it at that point already.
3223         # Even if this section looks crufty: it has the advantage of
3224         # actually working.
3225         break;;
3226     * )
3227         break;;
3228   esac
3229 done
3230 test "$ac_cv_exeext" = no && ac_cv_exeext=
3231
3232 else
3233   ac_file=''
3234 fi
3235 if test -z "$ac_file"; then :
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error 77 "C++ compiler cannot create executables
3244 See \`config.log' for more details" "$LINENO" 5; }
3245 else
3246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3248 fi
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3250 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3252 $as_echo "$ac_file" >&6; }
3253 ac_exeext=$ac_cv_exeext
3254
3255 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3256 ac_clean_files=$ac_clean_files_save
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3258 $as_echo_n "checking for suffix of executables... " >&6; }
3259 if { { ac_try="$ac_link"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266   (eval "$ac_link") 2>&5
3267   ac_status=$?
3268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269   test $ac_status = 0; }; then :
3270   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3271 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3272 # work properly (i.e., refer to `conftest.exe'), while it won't with
3273 # `rm'.
3274 for ac_file in conftest.exe conftest conftest.*; do
3275   test -f "$ac_file" || continue
3276   case $ac_file in
3277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279           break;;
3280     * ) break;;
3281   esac
3282 done
3283 else
3284   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3287 See \`config.log' for more details" "$LINENO" 5; }
3288 fi
3289 rm -f conftest conftest$ac_cv_exeext
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3291 $as_echo "$ac_cv_exeext" >&6; }
3292
3293 rm -f conftest.$ac_ext
3294 EXEEXT=$ac_cv_exeext
3295 ac_exeext=$EXEEXT
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h.  */
3298 #include <stdio.h>
3299 int
3300 main ()
3301 {
3302 FILE *f = fopen ("conftest.out", "w");
3303  return ferror (f) || fclose (f) != 0;
3304
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 ac_clean_files="$ac_clean_files conftest.out"
3310 # Check that the compiler produces executables we can run.  If not, either
3311 # the compiler is broken, or we cross compile.
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3313 $as_echo_n "checking whether we are cross compiling... " >&6; }
3314 if test "$cross_compiling" != yes; then
3315   { { ac_try="$ac_link"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322   (eval "$ac_link") 2>&5
3323   ac_status=$?
3324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325   test $ac_status = 0; }
3326   if { ac_try='./conftest$ac_cv_exeext'
3327   { { case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333   (eval "$ac_try") 2>&5
3334   ac_status=$?
3335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336   test $ac_status = 0; }; }; then
3337     cross_compiling=no
3338   else
3339     if test "$cross_compiling" = maybe; then
3340         cross_compiling=yes
3341     else
3342         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot run C++ compiled programs.
3345 If you meant to cross compile, use \`--host'.
3346 See \`config.log' for more details" "$LINENO" 5; }
3347     fi
3348   fi
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3351 $as_echo "$cross_compiling" >&6; }
3352
3353 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3354 ac_clean_files=$ac_clean_files_save
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3356 $as_echo_n "checking for suffix of object files... " >&6; }
3357 if ${ac_cv_objext+:} false; then :
3358   $as_echo_n "(cached) " >&6
3359 else
3360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h.  */
3362
3363 int
3364 main ()
3365 {
3366
3367   ;
3368   return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.o conftest.obj
3372 if { { ac_try="$ac_compile"
3373 case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379   (eval "$ac_compile") 2>&5
3380   ac_status=$?
3381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382   test $ac_status = 0; }; then :
3383   for ac_file in conftest.o conftest.obj conftest.*; do
3384   test -f "$ac_file" || continue;
3385   case $ac_file in
3386     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3387     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388        break;;
3389   esac
3390 done
3391 else
3392   $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of object files: cannot compile
3398 See \`config.log' for more details" "$LINENO" 5; }
3399 fi
3400 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3403 $as_echo "$ac_cv_objext" >&6; }
3404 OBJEXT=$ac_cv_objext
3405 ac_objext=$OBJEXT
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3407 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3408 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h.  */
3413
3414 int
3415 main ()
3416 {
3417 #ifndef __GNUC__
3418        choke me
3419 #endif
3420
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_cxx_try_compile "$LINENO"; then :
3426   ac_compiler_gnu=yes
3427 else
3428   ac_compiler_gnu=no
3429 fi
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3432
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3435 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3436 if test $ac_compiler_gnu = yes; then
3437   GXX=yes
3438 else
3439   GXX=
3440 fi
3441 ac_test_CXXFLAGS=${CXXFLAGS+set}
3442 ac_save_CXXFLAGS=$CXXFLAGS
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3444 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3445 if ${ac_cv_prog_cxx_g+:} false; then :
3446   $as_echo_n "(cached) " >&6
3447 else
3448   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3449    ac_cxx_werror_flag=yes
3450    ac_cv_prog_cxx_g=no
3451    CXXFLAGS="-g"
3452    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h.  */
3454
3455 int
3456 main ()
3457 {
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 if ac_fn_cxx_try_compile "$LINENO"; then :
3464   ac_cv_prog_cxx_g=yes
3465 else
3466   CXXFLAGS=""
3467       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h.  */
3469
3470 int
3471 main ()
3472 {
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_cxx_try_compile "$LINENO"; then :
3479
3480 else
3481   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3482          CXXFLAGS="-g"
3483          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h.  */
3485
3486 int
3487 main ()
3488 {
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_cxx_try_compile "$LINENO"; then :
3495   ac_cv_prog_cxx_g=yes
3496 fi
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3505 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3506 if test "$ac_test_CXXFLAGS" = set; then
3507   CXXFLAGS=$ac_save_CXXFLAGS
3508 elif test $ac_cv_prog_cxx_g = yes; then
3509   if test "$GXX" = yes; then
3510     CXXFLAGS="-g -O2"
3511   else
3512     CXXFLAGS="-g"
3513   fi
3514 else
3515   if test "$GXX" = yes; then
3516     CXXFLAGS="-O2"
3517   else
3518     CXXFLAGS=
3519   fi
3520 fi
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 DEPDIR="${am__leading_dot}deps"
3527
3528 ac_config_commands="$ac_config_commands depfiles"
3529
3530
3531 am_make=${MAKE-make}
3532 cat > confinc << 'END'
3533 am__doit:
3534         @echo this is the am__doit target
3535 .PHONY: am__doit
3536 END
3537 # If we don't find an include directive, just comment out the code.
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3539 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3540 am__include="#"
3541 am__quote=
3542 _am_result=none
3543 # First try GNU make style include.
3544 echo "include confinc" > confmf
3545 # Ignore all kinds of additional output from 'make'.
3546 case `$am_make -s -f confmf 2> /dev/null` in #(
3547 *the\ am__doit\ target*)
3548   am__include=include
3549   am__quote=
3550   _am_result=GNU
3551   ;;
3552 esac
3553 # Now try BSD make style include.
3554 if test "$am__include" = "#"; then
3555    echo '.include "confinc"' > confmf
3556    case `$am_make -s -f confmf 2> /dev/null` in #(
3557    *the\ am__doit\ target*)
3558      am__include=.include
3559      am__quote="\""
3560      _am_result=BSD
3561      ;;
3562    esac
3563 fi
3564
3565
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3567 $as_echo "$_am_result" >&6; }
3568 rm -f confinc confmf
3569
3570 # Check whether --enable-dependency-tracking was given.
3571 if test "${enable_dependency_tracking+set}" = set; then :
3572   enableval=$enable_dependency_tracking;
3573 fi
3574
3575 if test "x$enable_dependency_tracking" != xno; then
3576   am_depcomp="$ac_aux_dir/depcomp"
3577   AMDEPBACKSLASH='\'
3578   am__nodep='_no'
3579 fi
3580  if test "x$enable_dependency_tracking" != xno; then
3581   AMDEP_TRUE=
3582   AMDEP_FALSE='#'
3583 else
3584   AMDEP_TRUE='#'
3585   AMDEP_FALSE=
3586 fi
3587
3588
3589
3590 depcc="$CXX"  am_compiler_list=
3591
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3593 $as_echo_n "checking dependency style of $depcc... " >&6; }
3594 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3595   $as_echo_n "(cached) " >&6
3596 else
3597   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3598   # We make a subdir and do the tests there.  Otherwise we can end up
3599   # making bogus files that we don't know about and never remove.  For
3600   # instance it was reported that on HP-UX the gcc test will end up
3601   # making a dummy file named 'D' -- because '-MD' means "put the output
3602   # in D".
3603   rm -rf conftest.dir
3604   mkdir conftest.dir
3605   # Copy depcomp to subdir because otherwise we won't find it if we're
3606   # using a relative directory.
3607   cp "$am_depcomp" conftest.dir
3608   cd conftest.dir
3609   # We will build objects and dependencies in a subdirectory because
3610   # it helps to detect inapplicable dependency modes.  For instance
3611   # both Tru64's cc and ICC support -MD to output dependencies as a
3612   # side effect of compilation, but ICC will put the dependencies in
3613   # the current directory while Tru64 will put them in the object
3614   # directory.
3615   mkdir sub
3616
3617   am_cv_CXX_dependencies_compiler_type=none
3618   if test "$am_compiler_list" = ""; then
3619      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3620   fi
3621   am__universal=false
3622   case " $depcc " in #(
3623      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3624      esac
3625
3626   for depmode in $am_compiler_list; do
3627     # Setup a source with many dependencies, because some compilers
3628     # like to wrap large dependency lists on column 80 (with \), and
3629     # we should not choose a depcomp mode which is confused by this.
3630     #
3631     # We need to recreate these files for each test, as the compiler may
3632     # overwrite some of them when testing with obscure command lines.
3633     # This happens at least with the AIX C compiler.
3634     : > sub/conftest.c
3635     for i in 1 2 3 4 5 6; do
3636       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3637       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3638       # Solaris 10 /bin/sh.
3639       echo '/* dummy */' > sub/conftst$i.h
3640     done
3641     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3642
3643     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3644     # mode.  It turns out that the SunPro C++ compiler does not properly
3645     # handle '-M -o', and we need to detect this.  Also, some Intel
3646     # versions had trouble with output in subdirs.
3647     am__obj=sub/conftest.${OBJEXT-o}
3648     am__minus_obj="-o $am__obj"
3649     case $depmode in
3650     gcc)
3651       # This depmode causes a compiler race in universal mode.
3652       test "$am__universal" = false || continue
3653       ;;
3654     nosideeffect)
3655       # After this tag, mechanisms are not by side-effect, so they'll
3656       # only be used when explicitly requested.
3657       if test "x$enable_dependency_tracking" = xyes; then
3658         continue
3659       else
3660         break
3661       fi
3662       ;;
3663     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3664       # This compiler won't grok '-c -o', but also, the minuso test has
3665       # not run yet.  These depmodes are late enough in the game, and
3666       # so weak that their functioning should not be impacted.
3667       am__obj=conftest.${OBJEXT-o}
3668       am__minus_obj=
3669       ;;
3670     none) break ;;
3671     esac
3672     if depmode=$depmode \
3673        source=sub/conftest.c object=$am__obj \
3674        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3675        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3676          >/dev/null 2>conftest.err &&
3677        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3678        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3679        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3680        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3681       # icc doesn't choke on unknown options, it will just issue warnings
3682       # or remarks (even with -Werror).  So we grep stderr for any message
3683       # that says an option was ignored or not supported.
3684       # When given -MP, icc 7.0 and 7.1 complain thusly:
3685       #   icc: Command line warning: ignoring option '-M'; no argument required
3686       # The diagnosis changed in icc 8.0:
3687       #   icc: Command line remark: option '-MP' not supported
3688       if (grep 'ignoring option' conftest.err ||
3689           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3690         am_cv_CXX_dependencies_compiler_type=$depmode
3691         break
3692       fi
3693     fi
3694   done
3695
3696   cd ..
3697   rm -rf conftest.dir
3698 else
3699   am_cv_CXX_dependencies_compiler_type=none
3700 fi
3701
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3704 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3705 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3706
3707  if
3708   test "x$enable_dependency_tracking" != xno \
3709   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3710   am__fastdepCXX_TRUE=
3711   am__fastdepCXX_FALSE='#'
3712 else
3713   am__fastdepCXX_TRUE='#'
3714   am__fastdepCXX_FALSE=
3715 fi
3716
3717
3718
3719     ax_cxx_compile_cxx11_required=true
3720   ac_ext=cpp
3721 ac_cpp='$CXXCPP $CPPFLAGS'
3722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3725   ac_success=no
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
3727 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
3728 if ${ax_cv_cxx_compile_cxx11+:} false; then :
3729   $as_echo_n "(cached) " >&6
3730 else
3731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h.  */
3733
3734   template <typename T>
3735     struct check
3736     {
3737       static_assert(sizeof(int) <= sizeof(T), "not big enough");
3738     };
3739
3740     struct Base {
3741     virtual void f() {}
3742     };
3743     struct Child : public Base {
3744     virtual void f() override {}
3745     };
3746
3747     typedef check<check<bool>> right_angle_brackets;
3748
3749     int a;
3750     decltype(a) b;
3751
3752     typedef check<int> check_type;
3753     check_type c;
3754     check_type&& cr = static_cast<check_type&&>(c);
3755
3756     auto d = a;
3757     auto l = [](){};
3758
3759     // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
3760     // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
3761     namespace test_template_alias_sfinae {
3762         struct foo {};
3763
3764         template<typename T>
3765         using member = typename T::member_type;
3766
3767         template<typename T>
3768         void func(...) {}
3769
3770         template<typename T>
3771         void func(member<T>*) {}
3772
3773         void test();
3774
3775         void test() {
3776             func<foo>(0);
3777         }
3778     }
3779
3780 _ACEOF
3781 if ac_fn_cxx_try_compile "$LINENO"; then :
3782   ax_cv_cxx_compile_cxx11=yes
3783 else
3784   ax_cv_cxx_compile_cxx11=no
3785 fi
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
3789 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
3790   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
3791     ac_success=yes
3792   fi
3793
3794
3795
3796     if test x$ac_success = xno; then
3797     for switch in -std=c++11 -std=c++0x; do
3798       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
3799       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
3800 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
3801 if eval \${$cachevar+:} false; then :
3802   $as_echo_n "(cached) " >&6
3803 else
3804   ac_save_CXXFLAGS="$CXXFLAGS"
3805          CXXFLAGS="$CXXFLAGS $switch"
3806          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h.  */
3808
3809   template <typename T>
3810     struct check
3811     {
3812       static_assert(sizeof(int) <= sizeof(T), "not big enough");
3813     };
3814
3815     struct Base {
3816     virtual void f() {}
3817     };
3818     struct Child : public Base {
3819     virtual void f() override {}
3820     };
3821
3822     typedef check<check<bool>> right_angle_brackets;
3823
3824     int a;
3825     decltype(a) b;
3826
3827     typedef check<int> check_type;
3828     check_type c;
3829     check_type&& cr = static_cast<check_type&&>(c);
3830
3831     auto d = a;
3832     auto l = [](){};
3833
3834     // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
3835     // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
3836     namespace test_template_alias_sfinae {
3837         struct foo {};
3838
3839         template<typename T>
3840         using member = typename T::member_type;
3841
3842         template<typename T>
3843         void func(...) {}
3844
3845         template<typename T>
3846         void func(member<T>*) {}
3847
3848         void test();
3849
3850         void test() {
3851             func<foo>(0);
3852         }
3853     }
3854
3855 _ACEOF
3856 if ac_fn_cxx_try_compile "$LINENO"; then :
3857   eval $cachevar=yes
3858 else
3859   eval $cachevar=no
3860 fi
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862          CXXFLAGS="$ac_save_CXXFLAGS"
3863 fi
3864 eval ac_res=\$$cachevar
3865                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3866 $as_echo "$ac_res" >&6; }
3867       if eval test x\$$cachevar = xyes; then
3868         CXXFLAGS="$CXXFLAGS $switch"
3869         ac_success=yes
3870         break
3871       fi
3872     done
3873   fi
3874   ac_ext=c
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879
3880   if test x$ax_cxx_compile_cxx11_required = xtrue; then
3881     if test x$ac_success = xno; then
3882       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
3883     fi
3884   else
3885     if test x$ac_success = xno; then
3886       HAVE_CXX11=0
3887       { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
3888 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
3889     else
3890       HAVE_CXX11=1
3891
3892 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
3893
3894     fi
3895
3896
3897   fi
3898
3899 case `pwd` in
3900   *\ * | *\     *)
3901     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3902 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3903 esac
3904
3905
3906
3907 macro_version='2.4.6'
3908 macro_revision='2.4.6'
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922 ltmain=$ac_aux_dir/ltmain.sh
3923
3924 # Make sure we can run config.sub.
3925 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3926   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3927
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3929 $as_echo_n "checking build system type... " >&6; }
3930 if ${ac_cv_build+:} false; then :
3931   $as_echo_n "(cached) " >&6
3932 else
3933   ac_build_alias=$build_alias
3934 test "x$ac_build_alias" = x &&
3935   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3936 test "x$ac_build_alias" = x &&
3937   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3938 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3939   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3940
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3943 $as_echo "$ac_cv_build" >&6; }
3944 case $ac_cv_build in
3945 *-*-*) ;;
3946 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3947 esac
3948 build=$ac_cv_build
3949 ac_save_IFS=$IFS; IFS='-'
3950 set x $ac_cv_build
3951 shift
3952 build_cpu=$1
3953 build_vendor=$2
3954 shift; shift
3955 # Remember, the first character of IFS is used to create $*,
3956 # except with old shells:
3957 build_os=$*
3958 IFS=$ac_save_IFS
3959 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3960
3961
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3963 $as_echo_n "checking host system type... " >&6; }
3964 if ${ac_cv_host+:} false; then :
3965   $as_echo_n "(cached) " >&6
3966 else
3967   if test "x$host_alias" = x; then
3968   ac_cv_host=$ac_cv_build
3969 else
3970   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3971     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3972 fi
3973
3974 fi
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3976 $as_echo "$ac_cv_host" >&6; }
3977 case $ac_cv_host in
3978 *-*-*) ;;
3979 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3980 esac
3981 host=$ac_cv_host
3982 ac_save_IFS=$IFS; IFS='-'
3983 set x $ac_cv_host
3984 shift
3985 host_cpu=$1
3986 host_vendor=$2
3987 shift; shift
3988 # Remember, the first character of IFS is used to create $*,
3989 # except with old shells:
3990 host_os=$*
3991 IFS=$ac_save_IFS
3992 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3993
3994
3995 # Backslashify metacharacters that are still active within
3996 # double-quoted strings.
3997 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3998
3999 # Same as above, but do not quote variable references.
4000 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4001
4002 # Sed substitution to delay expansion of an escaped shell variable in a
4003 # double_quote_subst'ed string.
4004 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4005
4006 # Sed substitution to delay expansion of an escaped single quote.
4007 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4008
4009 # Sed substitution to avoid accidental globbing in evaled expressions
4010 no_glob_subst='s/\*/\\\*/g'
4011
4012 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4013 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4014 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4015
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4017 $as_echo_n "checking how to print strings... " >&6; }
4018 # Test print first, because it will be a builtin if present.
4019 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4020    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4021   ECHO='print -r --'
4022 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4023   ECHO='printf %s\n'
4024 else
4025   # Use this function as a fallback that always works.
4026   func_fallback_echo ()
4027   {
4028     eval 'cat <<_LTECHO_EOF
4029 $1
4030 _LTECHO_EOF'
4031   }
4032   ECHO='func_fallback_echo'
4033 fi
4034
4035 # func_echo_all arg...
4036 # Invoke $ECHO with all args, space-separated.
4037 func_echo_all ()
4038 {
4039     $ECHO ""
4040 }
4041
4042 case $ECHO in
4043   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4044 $as_echo "printf" >&6; } ;;
4045   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4046 $as_echo "print -r" >&6; } ;;
4047   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4048 $as_echo "cat" >&6; } ;;
4049 esac
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 if test -n "$ac_tool_prefix"; then
4070   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4071 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 $as_echo_n "checking for $ac_word... " >&6; }
4074 if ${ac_cv_prog_CC+:} false; then :
4075   $as_echo_n "(cached) " >&6
4076 else
4077   if test -n "$CC"; then
4078   ac_cv_prog_CC="$CC" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083   IFS=$as_save_IFS
4084   test -z "$as_dir" && as_dir=.
4085     for ac_exec_ext in '' $ac_executable_extensions; do
4086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4087     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089     break 2
4090   fi
4091 done
4092   done
4093 IFS=$as_save_IFS
4094
4095 fi
4096 fi
4097 CC=$ac_cv_prog_CC
4098 if test -n "$CC"; then
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100 $as_echo "$CC" >&6; }
4101 else
4102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4104 fi
4105
4106
4107 fi
4108 if test -z "$ac_cv_prog_CC"; then
4109   ac_ct_CC=$CC
4110   # Extract the first word of "gcc", so it can be a program name with args.
4111 set dummy gcc; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4115   $as_echo_n "(cached) " >&6
4116 else
4117   if test -n "$ac_ct_CC"; then
4118   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125     for ac_exec_ext in '' $ac_executable_extensions; do
4126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127     ac_cv_prog_ac_ct_CC="gcc"
4128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129     break 2
4130   fi
4131 done
4132   done
4133 IFS=$as_save_IFS
4134
4135 fi
4136 fi
4137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4138 if test -n "$ac_ct_CC"; then
4139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4140 $as_echo "$ac_ct_CC" >&6; }
4141 else
4142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4144 fi
4145
4146   if test "x$ac_ct_CC" = x; then
4147     CC=""
4148   else
4149     case $cross_compiling:$ac_tool_warned in
4150 yes:)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153 ac_tool_warned=yes ;;
4154 esac
4155     CC=$ac_ct_CC
4156   fi
4157 else
4158   CC="$ac_cv_prog_CC"
4159 fi
4160
4161 if test -z "$CC"; then
4162           if test -n "$ac_tool_prefix"; then
4163     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4164 set dummy ${ac_tool_prefix}cc; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_prog_CC+:} false; then :
4168   $as_echo_n "(cached) " >&6
4169 else
4170   if test -n "$CC"; then
4171   ac_cv_prog_CC="$CC" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178     for ac_exec_ext in '' $ac_executable_extensions; do
4179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180     ac_cv_prog_CC="${ac_tool_prefix}cc"
4181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185   done
4186 IFS=$as_save_IFS
4187
4188 fi
4189 fi
4190 CC=$ac_cv_prog_CC
4191 if test -n "$CC"; then
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4193 $as_echo "$CC" >&6; }
4194 else
4195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4197 fi
4198
4199
4200   fi
4201 fi
4202 if test -z "$CC"; then
4203   # Extract the first word of "cc", so it can be a program name with args.
4204 set dummy cc; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_prog_CC+:} false; then :
4208   $as_echo_n "(cached) " >&6
4209 else
4210   if test -n "$CC"; then
4211   ac_cv_prog_CC="$CC" # Let the user override the test.
4212 else
4213   ac_prog_rejected=no
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219     for ac_exec_ext in '' $ac_executable_extensions; do
4220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4222        ac_prog_rejected=yes
4223        continue
4224      fi
4225     ac_cv_prog_CC="cc"
4226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227     break 2
4228   fi
4229 done
4230   done
4231 IFS=$as_save_IFS
4232
4233 if test $ac_prog_rejected = yes; then
4234   # We found a bogon in the path, so make sure we never use it.
4235   set dummy $ac_cv_prog_CC
4236   shift
4237   if test $# != 0; then
4238     # We chose a different compiler from the bogus one.
4239     # However, it has the same basename, so the bogon will be chosen
4240     # first if we set CC to just the basename; use the full file name.
4241     shift
4242     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4243   fi
4244 fi
4245 fi
4246 fi
4247 CC=$ac_cv_prog_CC
4248 if test -n "$CC"; then
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 $as_echo "$CC" >&6; }
4251 else
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256
4257 fi
4258 if test -z "$CC"; then
4259   if test -n "$ac_tool_prefix"; then
4260   for ac_prog in cl.exe
4261   do
4262     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_CC+:} false; then :
4267   $as_echo_n "(cached) " >&6
4268 else
4269   if test -n "$CC"; then
4270   ac_cv_prog_CC="$CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275   IFS=$as_save_IFS
4276   test -z "$as_dir" && as_dir=.
4277     for ac_exec_ext in '' $ac_executable_extensions; do
4278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281     break 2
4282   fi
4283 done
4284   done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 CC=$ac_cv_prog_CC
4290 if test -n "$CC"; then
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292 $as_echo "$CC" >&6; }
4293 else
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299     test -n "$CC" && break
4300   done
4301 fi
4302 if test -z "$CC"; then
4303   ac_ct_CC=$CC
4304   for ac_prog in cl.exe
4305 do
4306   # Extract the first word of "$ac_prog", so it can be a program name with args.
4307 set dummy $ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4311   $as_echo_n "(cached) " >&6
4312 else
4313   if test -n "$ac_ct_CC"; then
4314   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319   IFS=$as_save_IFS
4320   test -z "$as_dir" && as_dir=.
4321     for ac_exec_ext in '' $ac_executable_extensions; do
4322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323     ac_cv_prog_ac_ct_CC="$ac_prog"
4324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325     break 2
4326   fi
4327 done
4328   done
4329 IFS=$as_save_IFS
4330
4331 fi
4332 fi
4333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4334 if test -n "$ac_ct_CC"; then
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4336 $as_echo "$ac_ct_CC" >&6; }
4337 else
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341
4342
4343   test -n "$ac_ct_CC" && break
4344 done
4345
4346   if test "x$ac_ct_CC" = x; then
4347     CC=""
4348   else
4349     case $cross_compiling:$ac_tool_warned in
4350 yes:)
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4353 ac_tool_warned=yes ;;
4354 esac
4355     CC=$ac_ct_CC
4356   fi
4357 fi
4358
4359 fi
4360
4361
4362 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "no acceptable C compiler found in \$PATH
4365 See \`config.log' for more details" "$LINENO" 5; }
4366
4367 # Provide some information about the compiler.
4368 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4369 set X $ac_compile
4370 ac_compiler=$2
4371 for ac_option in --version -v -V -qversion; do
4372   { { ac_try="$ac_compiler $ac_option >&5"
4373 case "(($ac_try" in
4374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375   *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4380   ac_status=$?
4381   if test -s conftest.err; then
4382     sed '10a\
4383 ... rest of stderr output deleted ...
4384          10q' conftest.err >conftest.er1
4385     cat conftest.er1 >&5
4386   fi
4387   rm -f conftest.er1 conftest.err
4388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389   test $ac_status = 0; }
4390 done
4391
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4393 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4394 if ${ac_cv_c_compiler_gnu+:} false; then :
4395   $as_echo_n "(cached) " >&6
4396 else
4397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h.  */
4399
4400 int
4401 main ()
4402 {
4403 #ifndef __GNUC__
4404        choke me
4405 #endif
4406
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412   ac_compiler_gnu=yes
4413 else
4414   ac_compiler_gnu=no
4415 fi
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4418
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4421 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4422 if test $ac_compiler_gnu = yes; then
4423   GCC=yes
4424 else
4425   GCC=
4426 fi
4427 ac_test_CFLAGS=${CFLAGS+set}
4428 ac_save_CFLAGS=$CFLAGS
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4430 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4431 if ${ac_cv_prog_cc_g+:} false; then :
4432   $as_echo_n "(cached) " >&6
4433 else
4434   ac_save_c_werror_flag=$ac_c_werror_flag
4435    ac_c_werror_flag=yes
4436    ac_cv_prog_cc_g=no
4437    CFLAGS="-g"
4438    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h.  */
4440
4441 int
4442 main ()
4443 {
4444
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 if ac_fn_c_try_compile "$LINENO"; then :
4450   ac_cv_prog_cc_g=yes
4451 else
4452   CFLAGS=""
4453       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h.  */
4455
4456 int
4457 main ()
4458 {
4459
4460   ;
4461   return 0;
4462 }
4463 _ACEOF
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465
4466 else
4467   ac_c_werror_flag=$ac_save_c_werror_flag
4468          CFLAGS="-g"
4469          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h.  */
4471
4472 int
4473 main ()
4474 {
4475
4476   ;
4477   return 0;
4478 }
4479 _ACEOF
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481   ac_cv_prog_cc_g=yes
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 fi
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488    ac_c_werror_flag=$ac_save_c_werror_flag
4489 fi
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4491 $as_echo "$ac_cv_prog_cc_g" >&6; }
4492 if test "$ac_test_CFLAGS" = set; then
4493   CFLAGS=$ac_save_CFLAGS
4494 elif test $ac_cv_prog_cc_g = yes; then
4495   if test "$GCC" = yes; then
4496     CFLAGS="-g -O2"
4497   else
4498     CFLAGS="-g"
4499   fi
4500 else
4501   if test "$GCC" = yes; then
4502     CFLAGS="-O2"
4503   else
4504     CFLAGS=
4505   fi
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4508 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4509 if ${ac_cv_prog_cc_c89+:} false; then :
4510   $as_echo_n "(cached) " >&6
4511 else
4512   ac_cv_prog_cc_c89=no
4513 ac_save_CC=$CC
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h.  */
4516 #include <stdarg.h>
4517 #include <stdio.h>
4518 struct stat;
4519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4520 struct buf { int x; };
4521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4522 static char *e (p, i)
4523      char **p;
4524      int i;
4525 {
4526   return p[i];
4527 }
4528 static char *f (char * (*g) (char **, int), char **p, ...)
4529 {
4530   char *s;
4531   va_list v;
4532   va_start (v,p);
4533   s = g (p, va_arg (v,int));
4534   va_end (v);
4535   return s;
4536 }
4537
4538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4539    function prototypes and stuff, but not '\xHH' hex character constants.
4540    These don't provoke an error unfortunately, instead are silently treated
4541    as 'x'.  The following induces an error, until -std is added to get
4542    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4543    array size at least.  It's necessary to write '\x00'==0 to get something
4544    that's true only with -std.  */
4545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4546
4547 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4548    inside strings and character constants.  */
4549 #define FOO(x) 'x'
4550 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4551
4552 int test (int i, double x);
4553 struct s1 {int (*f) (int a);};
4554 struct s2 {int (*f) (double a);};
4555 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4556 int argc;
4557 char **argv;
4558 int
4559 main ()
4560 {
4561 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4562   ;
4563   return 0;
4564 }
4565 _ACEOF
4566 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4567         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4568 do
4569   CC="$ac_save_CC $ac_arg"
4570   if ac_fn_c_try_compile "$LINENO"; then :
4571   ac_cv_prog_cc_c89=$ac_arg
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext
4574   test "x$ac_cv_prog_cc_c89" != "xno" && break
4575 done
4576 rm -f conftest.$ac_ext
4577 CC=$ac_save_CC
4578
4579 fi
4580 # AC_CACHE_VAL
4581 case "x$ac_cv_prog_cc_c89" in
4582   x)
4583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4584 $as_echo "none needed" >&6; } ;;
4585   xno)
4586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4587 $as_echo "unsupported" >&6; } ;;
4588   *)
4589     CC="$CC $ac_cv_prog_cc_c89"
4590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4591 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4592 esac
4593 if test "x$ac_cv_prog_cc_c89" != xno; then :
4594
4595 fi
4596
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603 ac_ext=c
4604 ac_cpp='$CPP $CPPFLAGS'
4605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4609 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4610 if ${am_cv_prog_cc_c_o+:} false; then :
4611   $as_echo_n "(cached) " >&6
4612 else
4613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h.  */
4615
4616 int
4617 main ()
4618 {
4619
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624   # Make sure it works both with $CC and with simple cc.
4625   # Following AC_PROG_CC_C_O, we do the test twice because some
4626   # compilers refuse to overwrite an existing .o file with -o,
4627   # though they will create one.
4628   am_cv_prog_cc_c_o=yes
4629   for am_i in 1 2; do
4630     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4631    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4632    ac_status=$?
4633    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634    (exit $ac_status); } \
4635          && test -f conftest2.$ac_objext; then
4636       : OK
4637     else
4638       am_cv_prog_cc_c_o=no
4639       break
4640     fi
4641   done
4642   rm -f core conftest*
4643   unset am_i
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4646 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4647 if test "$am_cv_prog_cc_c_o" != yes; then
4648    # Losing compiler, so override with the script.
4649    # FIXME: It is wrong to rewrite CC.
4650    # But if we don't then we get into trouble of one sort or another.
4651    # A longer-term fix would be to have automake use am__CC in this case,
4652    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4653    CC="$am_aux_dir/compile $CC"
4654 fi
4655 ac_ext=c
4656 ac_cpp='$CPP $CPPFLAGS'
4657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660
4661
4662 depcc="$CC"   am_compiler_list=
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4665 $as_echo_n "checking dependency style of $depcc... " >&6; }
4666 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4667   $as_echo_n "(cached) " >&6
4668 else
4669   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4670   # We make a subdir and do the tests there.  Otherwise we can end up
4671   # making bogus files that we don't know about and never remove.  For
4672   # instance it was reported that on HP-UX the gcc test will end up
4673   # making a dummy file named 'D' -- because '-MD' means "put the output
4674   # in D".
4675   rm -rf conftest.dir
4676   mkdir conftest.dir
4677   # Copy depcomp to subdir because otherwise we won't find it if we're
4678   # using a relative directory.
4679   cp "$am_depcomp" conftest.dir
4680   cd conftest.dir
4681   # We will build objects and dependencies in a subdirectory because
4682   # it helps to detect inapplicable dependency modes.  For instance
4683   # both Tru64's cc and ICC support -MD to output dependencies as a
4684   # side effect of compilation, but ICC will put the dependencies in
4685   # the current directory while Tru64 will put them in the object
4686   # directory.
4687   mkdir sub
4688
4689   am_cv_CC_dependencies_compiler_type=none
4690   if test "$am_compiler_list" = ""; then
4691      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4692   fi
4693   am__universal=false
4694   case " $depcc " in #(
4695      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4696      esac
4697
4698   for depmode in $am_compiler_list; do
4699     # Setup a source with many dependencies, because some compilers
4700     # like to wrap large dependency lists on column 80 (with \), and
4701     # we should not choose a depcomp mode which is confused by this.
4702     #
4703     # We need to recreate these files for each test, as the compiler may
4704     # overwrite some of them when testing with obscure command lines.
4705     # This happens at least with the AIX C compiler.
4706     : > sub/conftest.c
4707     for i in 1 2 3 4 5 6; do
4708       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4709       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4710       # Solaris 10 /bin/sh.
4711       echo '/* dummy */' > sub/conftst$i.h
4712     done
4713     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4714
4715     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4716     # mode.  It turns out that the SunPro C++ compiler does not properly
4717     # handle '-M -o', and we need to detect this.  Also, some Intel
4718     # versions had trouble with output in subdirs.
4719     am__obj=sub/conftest.${OBJEXT-o}
4720     am__minus_obj="-o $am__obj"
4721     case $depmode in
4722     gcc)
4723       # This depmode causes a compiler race in universal mode.
4724       test "$am__universal" = false || continue
4725       ;;
4726     nosideeffect)
4727       # After this tag, mechanisms are not by side-effect, so they'll
4728       # only be used when explicitly requested.
4729       if test "x$enable_dependency_tracking" = xyes; then
4730         continue
4731       else
4732         break
4733       fi
4734       ;;
4735     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4736       # This compiler won't grok '-c -o', but also, the minuso test has
4737       # not run yet.  These depmodes are late enough in the game, and
4738       # so weak that their functioning should not be impacted.
4739       am__obj=conftest.${OBJEXT-o}
4740       am__minus_obj=
4741       ;;
4742     none) break ;;
4743     esac
4744     if depmode=$depmode \
4745        source=sub/conftest.c object=$am__obj \
4746        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4747        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4748          >/dev/null 2>conftest.err &&
4749        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4750        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4751        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4752        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4753       # icc doesn't choke on unknown options, it will just issue warnings
4754       # or remarks (even with -Werror).  So we grep stderr for any message
4755       # that says an option was ignored or not supported.
4756       # When given -MP, icc 7.0 and 7.1 complain thusly:
4757       #   icc: Command line warning: ignoring option '-M'; no argument required
4758       # The diagnosis changed in icc 8.0:
4759       #   icc: Command line remark: option '-MP' not supported
4760       if (grep 'ignoring option' conftest.err ||
4761           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4762         am_cv_CC_dependencies_compiler_type=$depmode
4763         break
4764       fi
4765     fi
4766   done
4767
4768   cd ..
4769   rm -rf conftest.dir
4770 else
4771   am_cv_CC_dependencies_compiler_type=none
4772 fi
4773
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4776 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4777 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4778
4779  if
4780   test "x$enable_dependency_tracking" != xno \
4781   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4782   am__fastdepCC_TRUE=
4783   am__fastdepCC_FALSE='#'
4784 else
4785   am__fastdepCC_TRUE='#'
4786   am__fastdepCC_FALSE=
4787 fi
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4792 if ${ac_cv_path_SED+:} false; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4796      for ac_i in 1 2 3 4 5 6 7; do
4797        ac_script="$ac_script$as_nl$ac_script"
4798      done
4799      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4800      { ac_script=; unset ac_script;}
4801      if test -z "$SED"; then
4802   ac_path_SED_found=false
4803   # Loop through the user's path and test for each of PROGNAME-LIST
4804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807   IFS=$as_save_IFS
4808   test -z "$as_dir" && as_dir=.
4809     for ac_prog in sed gsed; do
4810     for ac_exec_ext in '' $ac_executable_extensions; do
4811       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4812       as_fn_executable_p "$ac_path_SED" || continue
4813 # Check for GNU ac_path_SED and select it if it is found.
4814   # Check for GNU $ac_path_SED
4815 case `"$ac_path_SED" --version 2>&1` in
4816 *GNU*)
4817   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4818 *)
4819   ac_count=0
4820   $as_echo_n 0123456789 >"conftest.in"
4821   while :
4822   do
4823     cat "conftest.in" "conftest.in" >"conftest.tmp"
4824     mv "conftest.tmp" "conftest.in"
4825     cp "conftest.in" "conftest.nl"
4826     $as_echo '' >> "conftest.nl"
4827     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829     as_fn_arith $ac_count + 1 && ac_count=$as_val
4830     if test $ac_count -gt ${ac_path_SED_max-0}; then
4831       # Best one so far, save it but keep looking for a better one
4832       ac_cv_path_SED="$ac_path_SED"
4833       ac_path_SED_max=$ac_count
4834     fi
4835     # 10*(2^10) chars as input seems more than enough
4836     test $ac_count -gt 10 && break
4837   done
4838   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839 esac
4840
4841       $ac_path_SED_found && break 3
4842     done
4843   done
4844   done
4845 IFS=$as_save_IFS
4846   if test -z "$ac_cv_path_SED"; then
4847     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4848   fi
4849 else
4850   ac_cv_path_SED=$SED
4851 fi
4852
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4855 $as_echo "$ac_cv_path_SED" >&6; }
4856  SED="$ac_cv_path_SED"
4857   rm -f conftest.sed
4858
4859 test -z "$SED" && SED=sed
4860 Xsed="$SED -e 1s/^X//"
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4873 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4874 if ${ac_cv_path_GREP+:} false; then :
4875   $as_echo_n "(cached) " >&6
4876 else
4877   if test -z "$GREP"; then
4878   ac_path_GREP_found=false
4879   # Loop through the user's path and test for each of PROGNAME-LIST
4880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885     for ac_prog in grep ggrep; do
4886     for ac_exec_ext in '' $ac_executable_extensions; do
4887       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4888       as_fn_executable_p "$ac_path_GREP" || continue
4889 # Check for GNU ac_path_GREP and select it if it is found.
4890   # Check for GNU $ac_path_GREP
4891 case `"$ac_path_GREP" --version 2>&1` in
4892 *GNU*)
4893   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4894 *)
4895   ac_count=0
4896   $as_echo_n 0123456789 >"conftest.in"
4897   while :
4898   do
4899     cat "conftest.in" "conftest.in" >"conftest.tmp"
4900     mv "conftest.tmp" "conftest.in"
4901     cp "conftest.in" "conftest.nl"
4902     $as_echo 'GREP' >> "conftest.nl"
4903     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905     as_fn_arith $ac_count + 1 && ac_count=$as_val
4906     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4907       # Best one so far, save it but keep looking for a better one
4908       ac_cv_path_GREP="$ac_path_GREP"
4909       ac_path_GREP_max=$ac_count
4910     fi
4911     # 10*(2^10) chars as input seems more than enough
4912     test $ac_count -gt 10 && break
4913   done
4914   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915 esac
4916
4917       $ac_path_GREP_found && break 3
4918     done
4919   done
4920   done
4921 IFS=$as_save_IFS
4922   if test -z "$ac_cv_path_GREP"; then
4923     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4924   fi
4925 else
4926   ac_cv_path_GREP=$GREP
4927 fi
4928
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4931 $as_echo "$ac_cv_path_GREP" >&6; }
4932  GREP="$ac_cv_path_GREP"
4933
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4936 $as_echo_n "checking for egrep... " >&6; }
4937 if ${ac_cv_path_EGREP+:} false; then :
4938   $as_echo_n "(cached) " >&6
4939 else
4940   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4941    then ac_cv_path_EGREP="$GREP -E"
4942    else
4943      if test -z "$EGREP"; then
4944   ac_path_EGREP_found=false
4945   # Loop through the user's path and test for each of PROGNAME-LIST
4946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951     for ac_prog in egrep; do
4952     for ac_exec_ext in '' $ac_executable_extensions; do
4953       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4954       as_fn_executable_p "$ac_path_EGREP" || continue
4955 # Check for GNU ac_path_EGREP and select it if it is found.
4956   # Check for GNU $ac_path_EGREP
4957 case `"$ac_path_EGREP" --version 2>&1` in
4958 *GNU*)
4959   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4960 *)
4961   ac_count=0
4962   $as_echo_n 0123456789 >"conftest.in"
4963   while :
4964   do
4965     cat "conftest.in" "conftest.in" >"conftest.tmp"
4966     mv "conftest.tmp" "conftest.in"
4967     cp "conftest.in" "conftest.nl"
4968     $as_echo 'EGREP' >> "conftest.nl"
4969     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971     as_fn_arith $ac_count + 1 && ac_count=$as_val
4972     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4973       # Best one so far, save it but keep looking for a better one
4974       ac_cv_path_EGREP="$ac_path_EGREP"
4975       ac_path_EGREP_max=$ac_count
4976     fi
4977     # 10*(2^10) chars as input seems more than enough
4978     test $ac_count -gt 10 && break
4979   done
4980   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981 esac
4982
4983       $ac_path_EGREP_found && break 3
4984     done
4985   done
4986   done
4987 IFS=$as_save_IFS
4988   if test -z "$ac_cv_path_EGREP"; then
4989     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4990   fi
4991 else
4992   ac_cv_path_EGREP=$EGREP
4993 fi
4994
4995    fi
4996 fi
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4998 $as_echo "$ac_cv_path_EGREP" >&6; }
4999  EGREP="$ac_cv_path_EGREP"
5000
5001
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5003 $as_echo_n "checking for fgrep... " >&6; }
5004 if ${ac_cv_path_FGREP+:} false; then :
5005   $as_echo_n "(cached) " >&6
5006 else
5007   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5008    then ac_cv_path_FGREP="$GREP -F"
5009    else
5010      if test -z "$FGREP"; then
5011   ac_path_FGREP_found=false
5012   # Loop through the user's path and test for each of PROGNAME-LIST
5013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5015 do
5016   IFS=$as_save_IFS
5017   test -z "$as_dir" && as_dir=.
5018     for ac_prog in fgrep; do
5019     for ac_exec_ext in '' $ac_executable_extensions; do
5020       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5021       as_fn_executable_p "$ac_path_FGREP" || continue
5022 # Check for GNU ac_path_FGREP and select it if it is found.
5023   # Check for GNU $ac_path_FGREP
5024 case `"$ac_path_FGREP" --version 2>&1` in
5025 *GNU*)
5026   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5027 *)
5028   ac_count=0
5029   $as_echo_n 0123456789 >"conftest.in"
5030   while :
5031   do
5032     cat "conftest.in" "conftest.in" >"conftest.tmp"
5033     mv "conftest.tmp" "conftest.in"
5034     cp "conftest.in" "conftest.nl"
5035     $as_echo 'FGREP' >> "conftest.nl"
5036     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5037     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5038     as_fn_arith $ac_count + 1 && ac_count=$as_val
5039     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5040       # Best one so far, save it but keep looking for a better one
5041       ac_cv_path_FGREP="$ac_path_FGREP"
5042       ac_path_FGREP_max=$ac_count
5043     fi
5044     # 10*(2^10) chars as input seems more than enough
5045     test $ac_count -gt 10 && break
5046   done
5047   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5048 esac
5049
5050       $ac_path_FGREP_found && break 3
5051     done
5052   done
5053   done
5054 IFS=$as_save_IFS
5055   if test -z "$ac_cv_path_FGREP"; then
5056     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5057   fi
5058 else
5059   ac_cv_path_FGREP=$FGREP
5060 fi
5061
5062    fi
5063 fi
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5065 $as_echo "$ac_cv_path_FGREP" >&6; }
5066  FGREP="$ac_cv_path_FGREP"
5067
5068
5069 test -z "$GREP" && GREP=grep
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089 # Check whether --with-gnu-ld was given.
5090 if test "${with_gnu_ld+set}" = set; then :
5091   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5092 else
5093   with_gnu_ld=no
5094 fi
5095
5096 ac_prog=ld
5097 if test yes = "$GCC"; then
5098   # Check if gcc -print-prog-name=ld gives a path.
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5100 $as_echo_n "checking for ld used by $CC... " >&6; }
5101   case $host in
5102   *-*-mingw*)
5103     # gcc leaves a trailing carriage return, which upsets mingw
5104     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5105   *)
5106     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5107   esac
5108   case $ac_prog in
5109     # Accept absolute paths.
5110     [\\/]* | ?:[\\/]*)
5111       re_direlt='/[^/][^/]*/\.\./'
5112       # Canonicalize the pathname of ld
5113       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5114       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5115         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5116       done
5117       test -z "$LD" && LD=$ac_prog
5118       ;;
5119   "")
5120     # If it fails, then pretend we aren't using GCC.
5121     ac_prog=ld
5122     ;;
5123   *)
5124     # If it is relative, then search for the first ld in PATH.
5125     with_gnu_ld=unknown
5126     ;;
5127   esac
5128 elif test yes = "$with_gnu_ld"; then
5129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5130 $as_echo_n "checking for GNU ld... " >&6; }
5131 else
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5133 $as_echo_n "checking for non-GNU ld... " >&6; }
5134 fi
5135 if ${lt_cv_path_LD+:} false; then :
5136   $as_echo_n "(cached) " >&6
5137 else
5138   if test -z "$LD"; then
5139   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5140   for ac_dir in $PATH; do
5141     IFS=$lt_save_ifs
5142     test -z "$ac_dir" && ac_dir=.
5143     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5144       lt_cv_path_LD=$ac_dir/$ac_prog
5145       # Check to see if the program is GNU ld.  I'd rather use --version,
5146       # but apparently some variants of GNU ld only accept -v.
5147       # Break only if it was the GNU/non-GNU ld that we prefer.
5148       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5149       *GNU* | *'with BFD'*)
5150         test no != "$with_gnu_ld" && break
5151         ;;
5152       *)
5153         test yes != "$with_gnu_ld" && break
5154         ;;
5155       esac
5156     fi
5157   done
5158   IFS=$lt_save_ifs
5159 else
5160   lt_cv_path_LD=$LD # Let the user override the test with a path.
5161 fi
5162 fi
5163
5164 LD=$lt_cv_path_LD
5165 if test -n "$LD"; then
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5167 $as_echo "$LD" >&6; }
5168 else
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5171 fi
5172 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5174 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5175 if ${lt_cv_prog_gnu_ld+:} false; then :
5176   $as_echo_n "(cached) " >&6
5177 else
5178   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5179 case `$LD -v 2>&1 </dev/null` in
5180 *GNU* | *'with BFD'*)
5181   lt_cv_prog_gnu_ld=yes
5182   ;;
5183 *)
5184   lt_cv_prog_gnu_ld=no
5185   ;;
5186 esac
5187 fi
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5189 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5190 with_gnu_ld=$lt_cv_prog_gnu_ld
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5201 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5202 if ${lt_cv_path_NM+:} false; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205   if test -n "$NM"; then
5206   # Let the user override the test.
5207   lt_cv_path_NM=$NM
5208 else
5209   lt_nm_to_check=${ac_tool_prefix}nm
5210   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5211     lt_nm_to_check="$lt_nm_to_check nm"
5212   fi
5213   for lt_tmp_nm in $lt_nm_to_check; do
5214     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5215     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5216       IFS=$lt_save_ifs
5217       test -z "$ac_dir" && ac_dir=.
5218       tmp_nm=$ac_dir/$lt_tmp_nm
5219       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5220         # Check to see if the nm accepts a BSD-compat flag.
5221         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5222         #   nm: unknown option "B" ignored
5223         # Tru64's nm complains that /dev/null is an invalid object file
5224         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5225         case $build_os in
5226         mingw*) lt_bad_file=conftest.nm/nofile ;;
5227         *) lt_bad_file=/dev/null ;;
5228         esac
5229         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5230         *$lt_bad_file* | *'Invalid file or object type'*)
5231           lt_cv_path_NM="$tmp_nm -B"
5232           break 2
5233           ;;
5234         *)
5235           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5236           */dev/null*)
5237             lt_cv_path_NM="$tmp_nm -p"
5238             break 2
5239             ;;
5240           *)
5241             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5242             continue # so that we can try to find one that supports BSD flags
5243             ;;
5244           esac
5245           ;;
5246         esac
5247       fi
5248     done
5249     IFS=$lt_save_ifs
5250   done
5251   : ${lt_cv_path_NM=no}
5252 fi
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5255 $as_echo "$lt_cv_path_NM" >&6; }
5256 if test no != "$lt_cv_path_NM"; then
5257   NM=$lt_cv_path_NM
5258 else
5259   # Didn't find any BSD compatible name lister, look for dumpbin.
5260   if test -n "$DUMPBIN"; then :
5261     # Let the user override the test.
5262   else
5263     if test -n "$ac_tool_prefix"; then
5264   for ac_prog in dumpbin "link -dump"
5265   do
5266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_DUMPBIN+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   if test -n "$DUMPBIN"; then
5274   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279   IFS=$as_save_IFS
5280   test -z "$as_dir" && as_dir=.
5281     for ac_exec_ext in '' $ac_executable_extensions; do
5282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285     break 2
5286   fi
5287 done
5288   done
5289 IFS=$as_save_IFS
5290
5291 fi
5292 fi
5293 DUMPBIN=$ac_cv_prog_DUMPBIN
5294 if test -n "$DUMPBIN"; then
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5296 $as_echo "$DUMPBIN" >&6; }
5297 else
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5300 fi
5301
5302
5303     test -n "$DUMPBIN" && break
5304   done
5305 fi
5306 if test -z "$DUMPBIN"; then
5307   ac_ct_DUMPBIN=$DUMPBIN
5308   for ac_prog in dumpbin "link -dump"
5309 do
5310   # Extract the first word of "$ac_prog", so it can be a program name with args.
5311 set dummy $ac_prog; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5315   $as_echo_n "(cached) " >&6
5316 else
5317   if test -n "$ac_ct_DUMPBIN"; then
5318   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323   IFS=$as_save_IFS
5324   test -z "$as_dir" && as_dir=.
5325     for ac_exec_ext in '' $ac_executable_extensions; do
5326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329     break 2
5330   fi
5331 done
5332   done
5333 IFS=$as_save_IFS
5334
5335 fi
5336 fi
5337 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5338 if test -n "$ac_ct_DUMPBIN"; then
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5340 $as_echo "$ac_ct_DUMPBIN" >&6; }
5341 else
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344 fi
5345
5346
5347   test -n "$ac_ct_DUMPBIN" && break
5348 done
5349
5350   if test "x$ac_ct_DUMPBIN" = x; then
5351     DUMPBIN=":"
5352   else
5353     case $cross_compiling:$ac_tool_warned in
5354 yes:)
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357 ac_tool_warned=yes ;;
5358 esac
5359     DUMPBIN=$ac_ct_DUMPBIN
5360   fi
5361 fi
5362
5363     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5364     *COFF*)
5365       DUMPBIN="$DUMPBIN -symbols -headers"
5366       ;;
5367     *)
5368       DUMPBIN=:
5369       ;;
5370     esac
5371   fi
5372
5373   if test : != "$DUMPBIN"; then
5374     NM=$DUMPBIN
5375   fi
5376 fi
5377 test -z "$NM" && NM=nm
5378
5379
5380
5381
5382
5383
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5385 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5386 if ${lt_cv_nm_interface+:} false; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389   lt_cv_nm_interface="BSD nm"
5390   echo "int some_variable = 0;" > conftest.$ac_ext
5391   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5392   (eval "$ac_compile" 2>conftest.err)
5393   cat conftest.err >&5
5394   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5395   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5396   cat conftest.err >&5
5397   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5398   cat conftest.out >&5
5399   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5400     lt_cv_nm_interface="MS dumpbin"
5401   fi
5402   rm -f conftest*
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5405 $as_echo "$lt_cv_nm_interface" >&6; }
5406
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5408 $as_echo_n "checking whether ln -s works... " >&6; }
5409 LN_S=$as_ln_s
5410 if test "$LN_S" = "ln -s"; then
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5412 $as_echo "yes" >&6; }
5413 else
5414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5415 $as_echo "no, using $LN_S" >&6; }
5416 fi
5417
5418 # find the maximum length of command line arguments
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5420 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5421 if ${lt_cv_sys_max_cmd_len+:} false; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424     i=0
5425   teststring=ABCD
5426
5427   case $build_os in
5428   msdosdjgpp*)
5429     # On DJGPP, this test can blow up pretty badly due to problems in libc
5430     # (any single argument exceeding 2000 bytes causes a buffer overrun
5431     # during glob expansion).  Even if it were fixed, the result of this
5432     # check would be larger than it should be.
5433     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5434     ;;
5435
5436   gnu*)
5437     # Under GNU Hurd, this test is not required because there is
5438     # no limit to the length of command line arguments.
5439     # Libtool will interpret -1 as no limit whatsoever
5440     lt_cv_sys_max_cmd_len=-1;
5441     ;;
5442
5443   cygwin* | mingw* | cegcc*)
5444     # On Win9x/ME, this test blows up -- it succeeds, but takes
5445     # about 5 minutes as the teststring grows exponentially.
5446     # Worse, since 9x/ME are not pre-emptively multitasking,
5447     # you end up with a "frozen" computer, even though with patience
5448     # the test eventually succeeds (with a max line length of 256k).
5449     # Instead, let's just punt: use the minimum linelength reported by
5450     # all of the supported platforms: 8192 (on NT/2K/XP).
5451     lt_cv_sys_max_cmd_len=8192;
5452     ;;
5453
5454   mint*)
5455     # On MiNT this can take a long time and run out of memory.
5456     lt_cv_sys_max_cmd_len=8192;
5457     ;;
5458
5459   amigaos*)
5460     # On AmigaOS with pdksh, this test takes hours, literally.
5461     # So we just punt and use a minimum line length of 8192.
5462     lt_cv_sys_max_cmd_len=8192;
5463     ;;
5464
5465   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5466     # This has been around since 386BSD, at least.  Likely further.
5467     if test -x /sbin/sysctl; then
5468       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5469     elif test -x /usr/sbin/sysctl; then
5470       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5471     else
5472       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5473     fi
5474     # And add a safety zone
5475     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5476     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5477     ;;
5478
5479   interix*)
5480     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5481     lt_cv_sys_max_cmd_len=196608
5482     ;;
5483
5484   os2*)
5485     # The test takes a long time on OS/2.
5486     lt_cv_sys_max_cmd_len=8192
5487     ;;
5488
5489   osf*)
5490     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5491     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5492     # nice to cause kernel panics so lets avoid the loop below.
5493     # First set a reasonable default.
5494     lt_cv_sys_max_cmd_len=16384
5495     #
5496     if test -x /sbin/sysconfig; then
5497       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5498         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5499       esac
5500     fi
5501     ;;
5502   sco3.2v5*)
5503     lt_cv_sys_max_cmd_len=102400
5504     ;;
5505   sysv5* | sco5v6* | sysv4.2uw2*)
5506     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5507     if test -n "$kargmax"; then
5508       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5509     else
5510       lt_cv_sys_max_cmd_len=32768
5511     fi
5512     ;;
5513   *)
5514     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5515     if test -n "$lt_cv_sys_max_cmd_len" && \
5516        test undefined != "$lt_cv_sys_max_cmd_len"; then
5517       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5518       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5519     else
5520       # Make teststring a little bigger before we do anything with it.
5521       # a 1K string should be a reasonable start.
5522       for i in 1 2 3 4 5 6 7 8; do
5523         teststring=$teststring$teststring
5524       done
5525       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5526       # If test is not a shell built-in, we'll probably end up computing a
5527       # maximum length that is only half of the actual maximum length, but
5528       # we can't tell.
5529       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5530                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5531               test 17 != "$i" # 1/2 MB should be enough
5532       do
5533         i=`expr $i + 1`
5534         teststring=$teststring$teststring
5535       done
5536       # Only check the string length outside the loop.
5537       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5538       teststring=
5539       # Add a significant safety factor because C++ compilers can tack on
5540       # massive amounts of additional arguments before passing them to the
5541       # linker.  It appears as though 1/2 is a usable value.
5542       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5543     fi
5544     ;;
5545   esac
5546
5547 fi
5548
5549 if test -n "$lt_cv_sys_max_cmd_len"; then
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5551 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5554 $as_echo "none" >&6; }
5555 fi
5556 max_cmd_len=$lt_cv_sys_max_cmd_len
5557
5558
5559
5560
5561
5562
5563 : ${CP="cp -f"}
5564 : ${MV="mv -f"}
5565 : ${RM="rm -f"}
5566
5567 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5568   lt_unset=unset
5569 else
5570   lt_unset=false
5571 fi
5572
5573
5574
5575
5576
5577 # test EBCDIC or ASCII
5578 case `echo X|tr X '\101'` in
5579  A) # ASCII based system
5580     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5581   lt_SP2NL='tr \040 \012'
5582   lt_NL2SP='tr \015\012 \040\040'
5583   ;;
5584  *) # EBCDIC based system
5585   lt_SP2NL='tr \100 \n'
5586   lt_NL2SP='tr \r\n \100\100'
5587   ;;
5588 esac
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5599 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5600 if ${lt_cv_to_host_file_cmd+:} false; then :
5601   $as_echo_n "(cached) " >&6
5602 else
5603   case $host in
5604   *-*-mingw* )
5605     case $build in
5606       *-*-mingw* ) # actually msys
5607         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5608         ;;
5609       *-*-cygwin* )
5610         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5611         ;;
5612       * ) # otherwise, assume *nix
5613         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5614         ;;
5615     esac
5616     ;;
5617   *-*-cygwin* )
5618     case $build in
5619       *-*-mingw* ) # actually msys
5620         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5621         ;;
5622       *-*-cygwin* )
5623         lt_cv_to_host_file_cmd=func_convert_file_noop
5624         ;;
5625       * ) # otherwise, assume *nix
5626         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5627         ;;
5628     esac
5629     ;;
5630   * ) # unhandled hosts (and "normal" native builds)
5631     lt_cv_to_host_file_cmd=func_convert_file_noop
5632     ;;
5633 esac
5634
5635 fi
5636
5637 to_host_file_cmd=$lt_cv_to_host_file_cmd
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5639 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5640
5641
5642
5643
5644
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5646 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5647 if ${lt_cv_to_tool_file_cmd+:} false; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   #assume ordinary cross tools, or native build.
5651 lt_cv_to_tool_file_cmd=func_convert_file_noop
5652 case $host in
5653   *-*-mingw* )
5654     case $build in
5655       *-*-mingw* ) # actually msys
5656         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5657         ;;
5658     esac
5659     ;;
5660 esac
5661
5662 fi
5663
5664 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5666 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5667
5668
5669
5670
5671
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5673 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5674 if ${lt_cv_ld_reload_flag+:} false; then :
5675   $as_echo_n "(cached) " >&6
5676 else
5677   lt_cv_ld_reload_flag='-r'
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5680 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5681 reload_flag=$lt_cv_ld_reload_flag
5682 case $reload_flag in
5683 "" | " "*) ;;
5684 *) reload_flag=" $reload_flag" ;;
5685 esac
5686 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5687 case $host_os in
5688   cygwin* | mingw* | pw32* | cegcc*)
5689     if test yes != "$GCC"; then
5690       reload_cmds=false
5691     fi
5692     ;;
5693   darwin*)
5694     if test yes = "$GCC"; then
5695       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5696     else
5697       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5698     fi
5699     ;;
5700 esac
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710 if test -n "$ac_tool_prefix"; then
5711   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5712 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_prog_OBJDUMP+:} false; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   if test -n "$OBJDUMP"; then
5719   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724   IFS=$as_save_IFS
5725   test -z "$as_dir" && as_dir=.
5726     for ac_exec_ext in '' $ac_executable_extensions; do
5727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730     break 2
5731   fi
5732 done
5733   done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 OBJDUMP=$ac_cv_prog_OBJDUMP
5739 if test -n "$OBJDUMP"; then
5740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5741 $as_echo "$OBJDUMP" >&6; }
5742 else
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5745 fi
5746
5747
5748 fi
5749 if test -z "$ac_cv_prog_OBJDUMP"; then
5750   ac_ct_OBJDUMP=$OBJDUMP
5751   # Extract the first word of "objdump", so it can be a program name with args.
5752 set dummy objdump; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5756   $as_echo_n "(cached) " >&6
5757 else
5758   if test -n "$ac_ct_OBJDUMP"; then
5759   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764   IFS=$as_save_IFS
5765   test -z "$as_dir" && as_dir=.
5766     for ac_exec_ext in '' $ac_executable_extensions; do
5767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770     break 2
5771   fi
5772 done
5773   done
5774 IFS=$as_save_IFS
5775
5776 fi
5777 fi
5778 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5779 if test -n "$ac_ct_OBJDUMP"; then
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5781 $as_echo "$ac_ct_OBJDUMP" >&6; }
5782 else
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5785 fi
5786
5787   if test "x$ac_ct_OBJDUMP" = x; then
5788     OBJDUMP="false"
5789   else
5790     case $cross_compiling:$ac_tool_warned in
5791 yes:)
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5794 ac_tool_warned=yes ;;
5795 esac
5796     OBJDUMP=$ac_ct_OBJDUMP
5797   fi
5798 else
5799   OBJDUMP="$ac_cv_prog_OBJDUMP"
5800 fi
5801
5802 test -z "$OBJDUMP" && OBJDUMP=objdump
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5813 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5814 if ${lt_cv_deplibs_check_method+:} false; then :
5815   $as_echo_n "(cached) " >&6
5816 else
5817   lt_cv_file_magic_cmd='$MAGIC_CMD'
5818 lt_cv_file_magic_test_file=
5819 lt_cv_deplibs_check_method='unknown'
5820 # Need to set the preceding variable on all platforms that support
5821 # interlibrary dependencies.
5822 # 'none' -- dependencies not supported.
5823 # 'unknown' -- same as none, but documents that we really don't know.
5824 # 'pass_all' -- all dependencies passed with no checks.
5825 # 'test_compile' -- check by making test program.
5826 # 'file_magic [[regex]]' -- check by looking for files in library path
5827 # that responds to the $file_magic_cmd with a given extended regex.
5828 # If you have 'file' or equivalent on your system and you're not sure
5829 # whether 'pass_all' will *always* work, you probably want this one.
5830
5831 case $host_os in
5832 aix[4-9]*)
5833   lt_cv_deplibs_check_method=pass_all
5834   ;;
5835
5836 beos*)
5837   lt_cv_deplibs_check_method=pass_all
5838   ;;
5839
5840 bsdi[45]*)
5841   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5842   lt_cv_file_magic_cmd='/usr/bin/file -L'
5843   lt_cv_file_magic_test_file=/shlib/libc.so
5844   ;;
5845
5846 cygwin*)
5847   # func_win32_libid is a shell function defined in ltmain.sh
5848   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5849   lt_cv_file_magic_cmd='func_win32_libid'
5850   ;;
5851
5852 mingw* | pw32*)
5853   # Base MSYS/MinGW do not provide the 'file' command needed by
5854   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5855   # unless we find 'file', for example because we are cross-compiling.
5856   if ( file / ) >/dev/null 2>&1; then
5857     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5858     lt_cv_file_magic_cmd='func_win32_libid'
5859   else
5860     # Keep this pattern in sync with the one in func_win32_libid.
5861     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5862     lt_cv_file_magic_cmd='$OBJDUMP -f'
5863   fi
5864   ;;
5865
5866 cegcc*)
5867   # use the weaker test based on 'objdump'. See mingw*.
5868   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5869   lt_cv_file_magic_cmd='$OBJDUMP -f'
5870   ;;
5871
5872 darwin* | rhapsody*)
5873   lt_cv_deplibs_check_method=pass_all
5874   ;;
5875
5876 freebsd* | dragonfly*)
5877   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5878     case $host_cpu in
5879     i*86 )
5880       # Not sure whether the presence of OpenBSD here was a mistake.
5881       # Let's accept both of them until this is cleared up.
5882       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5883       lt_cv_file_magic_cmd=/usr/bin/file
5884       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5885       ;;
5886     esac
5887   else
5888     lt_cv_deplibs_check_method=pass_all
5889   fi
5890   ;;
5891
5892 haiku*)
5893   lt_cv_deplibs_check_method=pass_all
5894   ;;
5895
5896 hpux10.20* | hpux11*)
5897   lt_cv_file_magic_cmd=/usr/bin/file
5898   case $host_cpu in
5899   ia64*)
5900     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5901     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5902     ;;
5903   hppa*64*)
5904     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]'
5905     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5906     ;;
5907   *)
5908     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5909     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5910     ;;
5911   esac
5912   ;;
5913
5914 interix[3-9]*)
5915   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5916   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5917   ;;
5918
5919 irix5* | irix6* | nonstopux*)
5920   case $LD in
5921   *-32|*"-32 ") libmagic=32-bit;;
5922   *-n32|*"-n32 ") libmagic=N32;;
5923   *-64|*"-64 ") libmagic=64-bit;;
5924   *) libmagic=never-match;;
5925   esac
5926   lt_cv_deplibs_check_method=pass_all
5927   ;;
5928
5929 # This must be glibc/ELF.
5930 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5931   lt_cv_deplibs_check_method=pass_all
5932   ;;
5933
5934 netbsd* | netbsdelf*-gnu)
5935   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5936     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5937   else
5938     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5939   fi
5940   ;;
5941
5942 newos6*)
5943   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5944   lt_cv_file_magic_cmd=/usr/bin/file
5945   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5946   ;;
5947
5948 *nto* | *qnx*)
5949   lt_cv_deplibs_check_method=pass_all
5950   ;;
5951
5952 openbsd* | bitrig*)
5953   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5954     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5955   else
5956     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5957   fi
5958   ;;
5959
5960 osf3* | osf4* | osf5*)
5961   lt_cv_deplibs_check_method=pass_all
5962   ;;
5963
5964 rdos*)
5965   lt_cv_deplibs_check_method=pass_all
5966   ;;
5967
5968 solaris*)
5969   lt_cv_deplibs_check_method=pass_all
5970   ;;
5971
5972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5973   lt_cv_deplibs_check_method=pass_all
5974   ;;
5975
5976 sysv4 | sysv4.3*)
5977   case $host_vendor in
5978   motorola)
5979     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]'
5980     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5981     ;;
5982   ncr)
5983     lt_cv_deplibs_check_method=pass_all
5984     ;;
5985   sequent)
5986     lt_cv_file_magic_cmd='/bin/file'
5987     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5988     ;;
5989   sni)
5990     lt_cv_file_magic_cmd='/bin/file'
5991     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5992     lt_cv_file_magic_test_file=/lib/libc.so
5993     ;;
5994   siemens)
5995     lt_cv_deplibs_check_method=pass_all
5996     ;;
5997   pc)
5998     lt_cv_deplibs_check_method=pass_all
5999     ;;
6000   esac
6001   ;;
6002
6003 tpf*)
6004   lt_cv_deplibs_check_method=pass_all
6005   ;;
6006 os2*)
6007   lt_cv_deplibs_check_method=pass_all
6008   ;;
6009 esac
6010
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6013 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6014
6015 file_magic_glob=
6016 want_nocaseglob=no
6017 if test "$build" = "$host"; then
6018   case $host_os in
6019   mingw* | pw32*)
6020     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6021       want_nocaseglob=yes
6022     else
6023       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6024     fi
6025     ;;
6026   esac
6027 fi
6028
6029 file_magic_cmd=$lt_cv_file_magic_cmd
6030 deplibs_check_method=$lt_cv_deplibs_check_method
6031 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054 if test -n "$ac_tool_prefix"; then
6055   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6056 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if ${ac_cv_prog_DLLTOOL+:} false; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   if test -n "$DLLTOOL"; then
6063   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068   IFS=$as_save_IFS
6069   test -z "$as_dir" && as_dir=.
6070     for ac_exec_ext in '' $ac_executable_extensions; do
6071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074     break 2
6075   fi
6076 done
6077   done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 DLLTOOL=$ac_cv_prog_DLLTOOL
6083 if test -n "$DLLTOOL"; then
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6085 $as_echo "$DLLTOOL" >&6; }
6086 else
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6089 fi
6090
6091
6092 fi
6093 if test -z "$ac_cv_prog_DLLTOOL"; then
6094   ac_ct_DLLTOOL=$DLLTOOL
6095   # Extract the first word of "dlltool", so it can be a program name with args.
6096 set dummy dlltool; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6100   $as_echo_n "(cached) " >&6
6101 else
6102   if test -n "$ac_ct_DLLTOOL"; then
6103   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6107 do
6108   IFS=$as_save_IFS
6109   test -z "$as_dir" && as_dir=.
6110     for ac_exec_ext in '' $ac_executable_extensions; do
6111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114     break 2
6115   fi
6116 done
6117   done
6118 IFS=$as_save_IFS
6119
6120 fi
6121 fi
6122 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6123 if test -n "$ac_ct_DLLTOOL"; then
6124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6125 $as_echo "$ac_ct_DLLTOOL" >&6; }
6126 else
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6129 fi
6130
6131   if test "x$ac_ct_DLLTOOL" = x; then
6132     DLLTOOL="false"
6133   else
6134     case $cross_compiling:$ac_tool_warned in
6135 yes:)
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140     DLLTOOL=$ac_ct_DLLTOOL
6141   fi
6142 else
6143   DLLTOOL="$ac_cv_prog_DLLTOOL"
6144 fi
6145
6146 test -z "$DLLTOOL" && DLLTOOL=dlltool
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6158 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6159 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6160   $as_echo_n "(cached) " >&6
6161 else
6162   lt_cv_sharedlib_from_linklib_cmd='unknown'
6163
6164 case $host_os in
6165 cygwin* | mingw* | pw32* | cegcc*)
6166   # two different shell functions defined in ltmain.sh;
6167   # decide which one to use based on capabilities of $DLLTOOL
6168   case `$DLLTOOL --help 2>&1` in
6169   *--identify-strict*)
6170     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6171     ;;
6172   *)
6173     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6174     ;;
6175   esac
6176   ;;
6177 *)
6178   # fallback: assume linklib IS sharedlib
6179   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6180   ;;
6181 esac
6182
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6185 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6186 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6187 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6188
6189
6190
6191
6192
6193
6194
6195
6196 if test -n "$ac_tool_prefix"; then
6197   for ac_prog in ar
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_prog_AR+:} false; then :
6204   $as_echo_n "(cached) " >&6
6205 else
6206   if test -n "$AR"; then
6207   ac_cv_prog_AR="$AR" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212   IFS=$as_save_IFS
6213   test -z "$as_dir" && as_dir=.
6214     for ac_exec_ext in '' $ac_executable_extensions; do
6215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218     break 2
6219   fi
6220 done
6221   done
6222 IFS=$as_save_IFS
6223
6224 fi
6225 fi
6226 AR=$ac_cv_prog_AR
6227 if test -n "$AR"; then
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6229 $as_echo "$AR" >&6; }
6230 else
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6233 fi
6234
6235
6236     test -n "$AR" && break
6237   done
6238 fi
6239 if test -z "$AR"; then
6240   ac_ct_AR=$AR
6241   for ac_prog in ar
6242 do
6243   # Extract the first word of "$ac_prog", so it can be a program name with args.
6244 set dummy $ac_prog; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6248   $as_echo_n "(cached) " >&6
6249 else
6250   if test -n "$ac_ct_AR"; then
6251   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256   IFS=$as_save_IFS
6257   test -z "$as_dir" && as_dir=.
6258     for ac_exec_ext in '' $ac_executable_extensions; do
6259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260     ac_cv_prog_ac_ct_AR="$ac_prog"
6261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262     break 2
6263   fi
6264 done
6265   done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6271 if test -n "$ac_ct_AR"; then
6272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6273 $as_echo "$ac_ct_AR" >&6; }
6274 else
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6277 fi
6278
6279
6280   test -n "$ac_ct_AR" && break
6281 done
6282
6283   if test "x$ac_ct_AR" = x; then
6284     AR="false"
6285   else
6286     case $cross_compiling:$ac_tool_warned in
6287 yes:)
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290 ac_tool_warned=yes ;;
6291 esac
6292     AR=$ac_ct_AR
6293   fi
6294 fi
6295
6296 : ${AR=ar}
6297 : ${AR_FLAGS=cru}
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6310 $as_echo_n "checking for archiver @FILE support... " >&6; }
6311 if ${lt_cv_ar_at_file+:} false; then :
6312   $as_echo_n "(cached) " >&6
6313 else
6314   lt_cv_ar_at_file=no
6315    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h.  */
6317
6318 int
6319 main ()
6320 {
6321
6322   ;
6323   return 0;
6324 }
6325 _ACEOF
6326 if ac_fn_c_try_compile "$LINENO"; then :
6327   echo conftest.$ac_objext > conftest.lst
6328       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6329       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6330   (eval $lt_ar_try) 2>&5
6331   ac_status=$?
6332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333   test $ac_status = 0; }
6334       if test 0 -eq "$ac_status"; then
6335         # Ensure the archiver fails upon bogus file names.
6336         rm -f conftest.$ac_objext libconftest.a
6337         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6338   (eval $lt_ar_try) 2>&5
6339   ac_status=$?
6340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341   test $ac_status = 0; }
6342         if test 0 -ne "$ac_status"; then
6343           lt_cv_ar_at_file=@
6344         fi
6345       fi
6346       rm -f conftest.* libconftest.a
6347
6348 fi
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350
6351 fi
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6353 $as_echo "$lt_cv_ar_at_file" >&6; }
6354
6355 if test no = "$lt_cv_ar_at_file"; then
6356   archiver_list_spec=
6357 else
6358   archiver_list_spec=$lt_cv_ar_at_file
6359 fi
6360
6361
6362
6363
6364
6365
6366
6367 if test -n "$ac_tool_prefix"; then
6368   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}strip; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_STRIP+:} false; then :
6373   $as_echo_n "(cached) " >&6
6374 else
6375   if test -n "$STRIP"; then
6376   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381   IFS=$as_save_IFS
6382   test -z "$as_dir" && as_dir=.
6383     for ac_exec_ext in '' $ac_executable_extensions; do
6384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387     break 2
6388   fi
6389 done
6390   done
6391 IFS=$as_save_IFS
6392
6393 fi
6394 fi
6395 STRIP=$ac_cv_prog_STRIP
6396 if test -n "$STRIP"; then
6397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6398 $as_echo "$STRIP" >&6; }
6399 else
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6402 fi
6403
6404
6405 fi
6406 if test -z "$ac_cv_prog_STRIP"; then
6407   ac_ct_STRIP=$STRIP
6408   # Extract the first word of "strip", so it can be a program name with args.
6409 set dummy strip; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6413   $as_echo_n "(cached) " >&6
6414 else
6415   if test -n "$ac_ct_STRIP"; then
6416   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421   IFS=$as_save_IFS
6422   test -z "$as_dir" && as_dir=.
6423     for ac_exec_ext in '' $ac_executable_extensions; do
6424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425     ac_cv_prog_ac_ct_STRIP="strip"
6426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427     break 2
6428   fi
6429 done
6430   done
6431 IFS=$as_save_IFS
6432
6433 fi
6434 fi
6435 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6436 if test -n "$ac_ct_STRIP"; then
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6438 $as_echo "$ac_ct_STRIP" >&6; }
6439 else
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6442 fi
6443
6444   if test "x$ac_ct_STRIP" = x; then
6445     STRIP=":"
6446   else
6447     case $cross_compiling:$ac_tool_warned in
6448 yes:)
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451 ac_tool_warned=yes ;;
6452 esac
6453     STRIP=$ac_ct_STRIP
6454   fi
6455 else
6456   STRIP="$ac_cv_prog_STRIP"
6457 fi
6458
6459 test -z "$STRIP" && STRIP=:
6460
6461
6462
6463
6464
6465
6466 if test -n "$ac_tool_prefix"; then
6467   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_RANLIB+:} false; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   if test -n "$RANLIB"; then
6475   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480   IFS=$as_save_IFS
6481   test -z "$as_dir" && as_dir=.
6482     for ac_exec_ext in '' $ac_executable_extensions; do
6483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486     break 2
6487   fi
6488 done
6489   done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 RANLIB=$ac_cv_prog_RANLIB
6495 if test -n "$RANLIB"; then
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6497 $as_echo "$RANLIB" >&6; }
6498 else
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503
6504 fi
6505 if test -z "$ac_cv_prog_RANLIB"; then
6506   ac_ct_RANLIB=$RANLIB
6507   # Extract the first word of "ranlib", so it can be a program name with args.
6508 set dummy ranlib; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6512   $as_echo_n "(cached) " >&6
6513 else
6514   if test -n "$ac_ct_RANLIB"; then
6515   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522     for ac_exec_ext in '' $ac_executable_extensions; do
6523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524     ac_cv_prog_ac_ct_RANLIB="ranlib"
6525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529   done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535 if test -n "$ac_ct_RANLIB"; then
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6537 $as_echo "$ac_ct_RANLIB" >&6; }
6538 else
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543   if test "x$ac_ct_RANLIB" = x; then
6544     RANLIB=":"
6545   else
6546     case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552     RANLIB=$ac_ct_RANLIB
6553   fi
6554 else
6555   RANLIB="$ac_cv_prog_RANLIB"
6556 fi
6557
6558 test -z "$RANLIB" && RANLIB=:
6559
6560
6561
6562
6563
6564
6565 # Determine commands to create old-style static archives.
6566 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6567 old_postinstall_cmds='chmod 644 $oldlib'
6568 old_postuninstall_cmds=
6569
6570 if test -n "$RANLIB"; then
6571   case $host_os in
6572   bitrig* | openbsd*)
6573     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6574     ;;
6575   *)
6576     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6577     ;;
6578   esac
6579   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6580 fi
6581
6582 case $host_os in
6583   darwin*)
6584     lock_old_archive_extraction=yes ;;
6585   *)
6586     lock_old_archive_extraction=no ;;
6587 esac
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627 # If no C compiler was specified, use CC.
6628 LTCC=${LTCC-"$CC"}
6629
6630 # If no C compiler flags were specified, use CFLAGS.
6631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6632
6633 # Allow CC to be a program name with arguments.
6634 compiler=$CC
6635
6636
6637 # Check for command to grab the raw symbol name followed by C symbol from nm.
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6639 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6640 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6641   $as_echo_n "(cached) " >&6
6642 else
6643
6644 # These are sane defaults that work on at least a few old systems.
6645 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6646
6647 # Character class describing NM global symbol codes.
6648 symcode='[BCDEGRST]'
6649
6650 # Regexp to match symbols that can be accessed directly from C.
6651 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6652
6653 # Define system-specific variables.
6654 case $host_os in
6655 aix*)
6656   symcode='[BCDT]'
6657   ;;
6658 cygwin* | mingw* | pw32* | cegcc*)
6659   symcode='[ABCDGISTW]'
6660   ;;
6661 hpux*)
6662   if test ia64 = "$host_cpu"; then
6663     symcode='[ABCDEGRST]'
6664   fi
6665   ;;
6666 irix* | nonstopux*)
6667   symcode='[BCDEGRST]'
6668   ;;
6669 osf*)
6670   symcode='[BCDEGQRST]'
6671   ;;
6672 solaris*)
6673   symcode='[BDRT]'
6674   ;;
6675 sco3.2v5*)
6676   symcode='[DT]'
6677   ;;
6678 sysv4.2uw2*)
6679   symcode='[DT]'
6680   ;;
6681 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6682   symcode='[ABDT]'
6683   ;;
6684 sysv4)
6685   symcode='[DFNSTU]'
6686   ;;
6687 esac
6688
6689 # If we're using GNU nm, then use its standard symbol codes.
6690 case `$NM -V 2>&1` in
6691 *GNU* | *'with BFD'*)
6692   symcode='[ABCDGIRSTW]' ;;
6693 esac
6694
6695 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6696   # Gets list of data symbols to import.
6697   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6698   # Adjust the below global symbol transforms to fixup imported variables.
6699   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6700   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6701   lt_c_name_lib_hook="\
6702   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6703   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6704 else
6705   # Disable hooks by default.
6706   lt_cv_sys_global_symbol_to_import=
6707   lt_cdecl_hook=
6708   lt_c_name_hook=
6709   lt_c_name_lib_hook=
6710 fi
6711
6712 # Transform an extracted symbol line into a proper C declaration.
6713 # Some systems (esp. on ia64) link data and code symbols differently,
6714 # so use this general approach.
6715 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6716 $lt_cdecl_hook\
6717 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6718 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6719
6720 # Transform an extracted symbol line into symbol name and symbol address
6721 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6722 $lt_c_name_hook\
6723 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6724 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6725
6726 # Transform an extracted symbol line into symbol name with lib prefix and
6727 # symbol address.
6728 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6729 $lt_c_name_lib_hook\
6730 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6731 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6732 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6733
6734 # Handle CRLF in mingw tool chain
6735 opt_cr=
6736 case $build_os in
6737 mingw*)
6738   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6739   ;;
6740 esac
6741
6742 # Try without a prefix underscore, then with it.
6743 for ac_symprfx in "" "_"; do
6744
6745   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6746   symxfrm="\\1 $ac_symprfx\\2 \\2"
6747
6748   # Write the raw and C identifiers.
6749   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6750     # Fake it for dumpbin and say T for any non-static function,
6751     # D for any global variable and I for any imported variable.
6752     # Also find C++ and __fastcall symbols from MSVC++,
6753     # which start with @ or ?.
6754     lt_cv_sys_global_symbol_pipe="$AWK '"\
6755 "     {last_section=section; section=\$ 3};"\
6756 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6757 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6758 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6759 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6760 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6761 "     \$ 0!~/External *\|/{next};"\
6762 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6763 "     {if(hide[section]) next};"\
6764 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6765 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6766 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6767 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6768 "     ' prfx=^$ac_symprfx"
6769   else
6770     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6771   fi
6772   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6773
6774   # Check to see that the pipe works correctly.
6775   pipe_works=no
6776
6777   rm -f conftest*
6778   cat > conftest.$ac_ext <<_LT_EOF
6779 #ifdef __cplusplus
6780 extern "C" {
6781 #endif
6782 char nm_test_var;
6783 void nm_test_func(void);
6784 void nm_test_func(void){}
6785 #ifdef __cplusplus
6786 }
6787 #endif
6788 int main(){nm_test_var='a';nm_test_func();return(0);}
6789 _LT_EOF
6790
6791   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6792   (eval $ac_compile) 2>&5
6793   ac_status=$?
6794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795   test $ac_status = 0; }; then
6796     # Now try to grab the symbols.
6797     nlist=conftest.nm
6798     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6799   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6800   ac_status=$?
6801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802   test $ac_status = 0; } && test -s "$nlist"; then
6803       # Try sorting and uniquifying the output.
6804       if sort "$nlist" | uniq > "$nlist"T; then
6805         mv -f "$nlist"T "$nlist"
6806       else
6807         rm -f "$nlist"T
6808       fi
6809
6810       # Make sure that we snagged all the symbols we need.
6811       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6812         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6813           cat <<_LT_EOF > conftest.$ac_ext
6814 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6815 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6816 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6817    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6818 # define LT_DLSYM_CONST
6819 #elif defined __osf__
6820 /* This system does not cope well with relocations in const data.  */
6821 # define LT_DLSYM_CONST
6822 #else
6823 # define LT_DLSYM_CONST const
6824 #endif
6825
6826 #ifdef __cplusplus
6827 extern "C" {
6828 #endif
6829
6830 _LT_EOF
6831           # Now generate the symbol file.
6832           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6833
6834           cat <<_LT_EOF >> conftest.$ac_ext
6835
6836 /* The mapping between symbol names and symbols.  */
6837 LT_DLSYM_CONST struct {
6838   const char *name;
6839   void       *address;
6840 }
6841 lt__PROGRAM__LTX_preloaded_symbols[] =
6842 {
6843   { "@PROGRAM@", (void *) 0 },
6844 _LT_EOF
6845           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6846           cat <<\_LT_EOF >> conftest.$ac_ext
6847   {0, (void *) 0}
6848 };
6849
6850 /* This works around a problem in FreeBSD linker */
6851 #ifdef FREEBSD_WORKAROUND
6852 static const void *lt_preloaded_setup() {
6853   return lt__PROGRAM__LTX_preloaded_symbols;
6854 }
6855 #endif
6856
6857 #ifdef __cplusplus
6858 }
6859 #endif
6860 _LT_EOF
6861           # Now try linking the two files.
6862           mv -f conftest.$ac_objext conftstm.$ac_objext
6863           lt_globsym_save_LIBS=$LIBS
6864           lt_globsym_save_CFLAGS=$CFLAGS
6865           LIBS=conftstm.$ac_objext
6866           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6867           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6868   (eval $ac_link) 2>&5
6869   ac_status=$?
6870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6872             pipe_works=yes
6873           fi
6874           LIBS=$lt_globsym_save_LIBS
6875           CFLAGS=$lt_globsym_save_CFLAGS
6876         else
6877           echo "cannot find nm_test_func in $nlist" >&5
6878         fi
6879       else
6880         echo "cannot find nm_test_var in $nlist" >&5
6881       fi
6882     else
6883       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6884     fi
6885   else
6886     echo "$progname: failed program was:" >&5
6887     cat conftest.$ac_ext >&5
6888   fi
6889   rm -rf conftest* conftst*
6890
6891   # Do not use the global_symbol_pipe unless it works.
6892   if test yes = "$pipe_works"; then
6893     break
6894   else
6895     lt_cv_sys_global_symbol_pipe=
6896   fi
6897 done
6898
6899 fi
6900
6901 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6902   lt_cv_sys_global_symbol_to_cdecl=
6903 fi
6904 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6906 $as_echo "failed" >&6; }
6907 else
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6909 $as_echo "ok" >&6; }
6910 fi
6911
6912 # Response file support.
6913 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6914   nm_file_list_spec='@'
6915 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6916   nm_file_list_spec='@'
6917 fi
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6956 $as_echo_n "checking for sysroot... " >&6; }
6957
6958 # Check whether --with-sysroot was given.
6959 if test "${with_sysroot+set}" = set; then :
6960   withval=$with_sysroot;
6961 else
6962   with_sysroot=no
6963 fi
6964
6965
6966 lt_sysroot=
6967 case $with_sysroot in #(
6968  yes)
6969    if test yes = "$GCC"; then
6970      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6971    fi
6972    ;; #(
6973  /*)
6974    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6975    ;; #(
6976  no|'')
6977    ;; #(
6978  *)
6979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6980 $as_echo "$with_sysroot" >&6; }
6981    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6982    ;;
6983 esac
6984
6985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6986 $as_echo "${lt_sysroot:-no}" >&6; }
6987
6988
6989
6990
6991
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6993 $as_echo_n "checking for a working dd... " >&6; }
6994 if ${ac_cv_path_lt_DD+:} false; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   printf 0123456789abcdef0123456789abcdef >conftest.i
6998 cat conftest.i conftest.i >conftest2.i
6999 : ${lt_DD:=$DD}
7000 if test -z "$lt_DD"; then
7001   ac_path_lt_DD_found=false
7002   # Loop through the user's path and test for each of PROGNAME-LIST
7003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006   IFS=$as_save_IFS
7007   test -z "$as_dir" && as_dir=.
7008     for ac_prog in dd; do
7009     for ac_exec_ext in '' $ac_executable_extensions; do
7010       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7011       as_fn_executable_p "$ac_path_lt_DD" || continue
7012 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7013   cmp -s conftest.i conftest.out \
7014   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7015 fi
7016       $ac_path_lt_DD_found && break 3
7017     done
7018   done
7019   done
7020 IFS=$as_save_IFS
7021   if test -z "$ac_cv_path_lt_DD"; then
7022     :
7023   fi
7024 else
7025   ac_cv_path_lt_DD=$lt_DD
7026 fi
7027
7028 rm -f conftest.i conftest2.i conftest.out
7029 fi
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7031 $as_echo "$ac_cv_path_lt_DD" >&6; }
7032
7033
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7035 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7036 if ${lt_cv_truncate_bin+:} false; then :
7037   $as_echo_n "(cached) " >&6
7038 else
7039   printf 0123456789abcdef0123456789abcdef >conftest.i
7040 cat conftest.i conftest.i >conftest2.i
7041 lt_cv_truncate_bin=
7042 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7043   cmp -s conftest.i conftest.out \
7044   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7045 fi
7046 rm -f conftest.i conftest2.i conftest.out
7047 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7050 $as_echo "$lt_cv_truncate_bin" >&6; }
7051
7052
7053
7054
7055
7056
7057
7058 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7059 func_cc_basename ()
7060 {
7061     for cc_temp in $*""; do
7062       case $cc_temp in
7063         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7064         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7065         \-*) ;;
7066         *) break;;
7067       esac
7068     done
7069     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7070 }
7071
7072 # Check whether --enable-libtool-lock was given.
7073 if test "${enable_libtool_lock+set}" = set; then :
7074   enableval=$enable_libtool_lock;
7075 fi
7076
7077 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7078
7079 # Some flags need to be propagated to the compiler or linker for good
7080 # libtool support.
7081 case $host in
7082 ia64-*-hpux*)
7083   # Find out what ABI is being produced by ac_compile, and set mode
7084   # options accordingly.
7085   echo 'int i;' > conftest.$ac_ext
7086   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7087   (eval $ac_compile) 2>&5
7088   ac_status=$?
7089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090   test $ac_status = 0; }; then
7091     case `/usr/bin/file conftest.$ac_objext` in
7092       *ELF-32*)
7093         HPUX_IA64_MODE=32
7094         ;;
7095       *ELF-64*)
7096         HPUX_IA64_MODE=64
7097         ;;
7098     esac
7099   fi
7100   rm -rf conftest*
7101   ;;
7102 *-*-irix6*)
7103   # Find out what ABI is being produced by ac_compile, and set linker
7104   # options accordingly.
7105   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7106   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7107   (eval $ac_compile) 2>&5
7108   ac_status=$?
7109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7110   test $ac_status = 0; }; then
7111     if test yes = "$lt_cv_prog_gnu_ld"; then
7112       case `/usr/bin/file conftest.$ac_objext` in
7113         *32-bit*)
7114           LD="${LD-ld} -melf32bsmip"
7115           ;;
7116         *N32*)
7117           LD="${LD-ld} -melf32bmipn32"
7118           ;;
7119         *64-bit*)
7120           LD="${LD-ld} -melf64bmip"
7121         ;;
7122       esac
7123     else
7124       case `/usr/bin/file conftest.$ac_objext` in
7125         *32-bit*)
7126           LD="${LD-ld} -32"
7127           ;;
7128         *N32*)
7129           LD="${LD-ld} -n32"
7130           ;;
7131         *64-bit*)
7132           LD="${LD-ld} -64"
7133           ;;
7134       esac
7135     fi
7136   fi
7137   rm -rf conftest*
7138   ;;
7139
7140 mips64*-*linux*)
7141   # Find out what ABI is being produced by ac_compile, and set linker
7142   # options accordingly.
7143   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7144   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145   (eval $ac_compile) 2>&5
7146   ac_status=$?
7147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148   test $ac_status = 0; }; then
7149     emul=elf
7150     case `/usr/bin/file conftest.$ac_objext` in
7151       *32-bit*)
7152         emul="${emul}32"
7153         ;;
7154       *64-bit*)
7155         emul="${emul}64"
7156         ;;
7157     esac
7158     case `/usr/bin/file conftest.$ac_objext` in
7159       *MSB*)
7160         emul="${emul}btsmip"
7161         ;;
7162       *LSB*)
7163         emul="${emul}ltsmip"
7164         ;;
7165     esac
7166     case `/usr/bin/file conftest.$ac_objext` in
7167       *N32*)
7168         emul="${emul}n32"
7169         ;;
7170     esac
7171     LD="${LD-ld} -m $emul"
7172   fi
7173   rm -rf conftest*
7174   ;;
7175
7176 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7177 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7178   # Find out what ABI is being produced by ac_compile, and set linker
7179   # options accordingly.  Note that the listed cases only cover the
7180   # situations where additional linker options are needed (such as when
7181   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7182   # vice versa); the common cases where no linker options are needed do
7183   # not appear in the list.
7184   echo 'int i;' > conftest.$ac_ext
7185   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7186   (eval $ac_compile) 2>&5
7187   ac_status=$?
7188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189   test $ac_status = 0; }; then
7190     case `/usr/bin/file conftest.o` in
7191       *32-bit*)
7192         case $host in
7193           x86_64-*kfreebsd*-gnu)
7194             LD="${LD-ld} -m elf_i386_fbsd"
7195             ;;
7196           x86_64-*linux*)
7197             case `/usr/bin/file conftest.o` in
7198               *x86-64*)
7199                 LD="${LD-ld} -m elf32_x86_64"
7200                 ;;
7201               *)
7202                 LD="${LD-ld} -m elf_i386"
7203                 ;;
7204             esac
7205             ;;
7206           powerpc64le-*linux*)
7207             LD="${LD-ld} -m elf32lppclinux"
7208             ;;
7209           powerpc64-*linux*)
7210             LD="${LD-ld} -m elf32ppclinux"
7211             ;;
7212           s390x-*linux*)
7213             LD="${LD-ld} -m elf_s390"
7214             ;;
7215           sparc64-*linux*)
7216             LD="${LD-ld} -m elf32_sparc"
7217             ;;
7218         esac
7219         ;;
7220       *64-bit*)
7221         case $host in
7222           x86_64-*kfreebsd*-gnu)
7223             LD="${LD-ld} -m elf_x86_64_fbsd"
7224             ;;
7225           x86_64-*linux*)
7226             LD="${LD-ld} -m elf_x86_64"
7227             ;;
7228           powerpcle-*linux*)
7229             LD="${LD-ld} -m elf64lppc"
7230             ;;
7231           powerpc-*linux*)
7232             LD="${LD-ld} -m elf64ppc"
7233             ;;
7234           s390*-*linux*|s390*-*tpf*)
7235             LD="${LD-ld} -m elf64_s390"
7236             ;;
7237           sparc*-*linux*)
7238             LD="${LD-ld} -m elf64_sparc"
7239             ;;
7240         esac
7241         ;;
7242     esac
7243   fi
7244   rm -rf conftest*
7245   ;;
7246
7247 *-*-sco3.2v5*)
7248   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7249   SAVE_CFLAGS=$CFLAGS
7250   CFLAGS="$CFLAGS -belf"
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7252 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7253 if ${lt_cv_cc_needs_belf+:} false; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   ac_ext=c
7257 ac_cpp='$CPP $CPPFLAGS'
7258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261
7262      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h.  */
7264
7265 int
7266 main ()
7267 {
7268
7269   ;
7270   return 0;
7271 }
7272 _ACEOF
7273 if ac_fn_c_try_link "$LINENO"; then :
7274   lt_cv_cc_needs_belf=yes
7275 else
7276   lt_cv_cc_needs_belf=no
7277 fi
7278 rm -f core conftest.err conftest.$ac_objext \
7279     conftest$ac_exeext conftest.$ac_ext
7280      ac_ext=c
7281 ac_cpp='$CPP $CPPFLAGS'
7282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285
7286 fi
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7288 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7289   if test yes != "$lt_cv_cc_needs_belf"; then
7290     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7291     CFLAGS=$SAVE_CFLAGS
7292   fi
7293   ;;
7294 *-*solaris*)
7295   # Find out what ABI is being produced by ac_compile, and set linker
7296   # options accordingly.
7297   echo 'int i;' > conftest.$ac_ext
7298   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7299   (eval $ac_compile) 2>&5
7300   ac_status=$?
7301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302   test $ac_status = 0; }; then
7303     case `/usr/bin/file conftest.o` in
7304     *64-bit*)
7305       case $lt_cv_prog_gnu_ld in
7306       yes*)
7307         case $host in
7308         i?86-*-solaris*|x86_64-*-solaris*)
7309           LD="${LD-ld} -m elf_x86_64"
7310           ;;
7311         sparc*-*-solaris*)
7312           LD="${LD-ld} -m elf64_sparc"
7313           ;;
7314         esac
7315         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7316         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7317           LD=${LD-ld}_sol2
7318         fi
7319         ;;
7320       *)
7321         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7322           LD="${LD-ld} -64"
7323         fi
7324         ;;
7325       esac
7326       ;;
7327     esac
7328   fi
7329   rm -rf conftest*
7330   ;;
7331 esac
7332
7333 need_locks=$enable_libtool_lock
7334
7335 if test -n "$ac_tool_prefix"; then
7336   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7337 set dummy ${ac_tool_prefix}mt; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7341   $as_echo_n "(cached) " >&6
7342 else
7343   if test -n "$MANIFEST_TOOL"; then
7344   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7345 else
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349   IFS=$as_save_IFS
7350   test -z "$as_dir" && as_dir=.
7351     for ac_exec_ext in '' $ac_executable_extensions; do
7352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355     break 2
7356   fi
7357 done
7358   done
7359 IFS=$as_save_IFS
7360
7361 fi
7362 fi
7363 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7364 if test -n "$MANIFEST_TOOL"; then
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7366 $as_echo "$MANIFEST_TOOL" >&6; }
7367 else
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7370 fi
7371
7372
7373 fi
7374 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7375   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7376   # Extract the first word of "mt", so it can be a program name with args.
7377 set dummy mt; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7381   $as_echo_n "(cached) " >&6
7382 else
7383   if test -n "$ac_ct_MANIFEST_TOOL"; then
7384   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389   IFS=$as_save_IFS
7390   test -z "$as_dir" && as_dir=.
7391     for ac_exec_ext in '' $ac_executable_extensions; do
7392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395     break 2
7396   fi
7397 done
7398   done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7404 if test -n "$ac_ct_MANIFEST_TOOL"; then
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7406 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7407 else
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7413     MANIFEST_TOOL=":"
7414   else
7415     case $cross_compiling:$ac_tool_warned in
7416 yes:)
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419 ac_tool_warned=yes ;;
7420 esac
7421     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7422   fi
7423 else
7424   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7425 fi
7426
7427 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7429 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7430 if ${lt_cv_path_mainfest_tool+:} false; then :
7431   $as_echo_n "(cached) " >&6
7432 else
7433   lt_cv_path_mainfest_tool=no
7434   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7435   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7436   cat conftest.err >&5
7437   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7438     lt_cv_path_mainfest_tool=yes
7439   fi
7440   rm -f conftest*
7441 fi
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7443 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7444 if test yes != "$lt_cv_path_mainfest_tool"; then
7445   MANIFEST_TOOL=:
7446 fi
7447
7448
7449
7450
7451
7452
7453   case $host_os in
7454     rhapsody* | darwin*)
7455     if test -n "$ac_tool_prefix"; then
7456   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7457 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   if test -n "$DSYMUTIL"; then
7464   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471     for ac_exec_ext in '' $ac_executable_extensions; do
7472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478   done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7484 if test -n "$DSYMUTIL"; then
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7486 $as_echo "$DSYMUTIL" >&6; }
7487 else
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491
7492
7493 fi
7494 if test -z "$ac_cv_prog_DSYMUTIL"; then
7495   ac_ct_DSYMUTIL=$DSYMUTIL
7496   # Extract the first word of "dsymutil", so it can be a program name with args.
7497 set dummy dsymutil; ac_word=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7501   $as_echo_n "(cached) " >&6
7502 else
7503   if test -n "$ac_ct_DSYMUTIL"; then
7504   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7505 else
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509   IFS=$as_save_IFS
7510   test -z "$as_dir" && as_dir=.
7511     for ac_exec_ext in '' $ac_executable_extensions; do
7512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7513     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515     break 2
7516   fi
7517 done
7518   done
7519 IFS=$as_save_IFS
7520
7521 fi
7522 fi
7523 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7524 if test -n "$ac_ct_DSYMUTIL"; then
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7526 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7527 else
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7530 fi
7531
7532   if test "x$ac_ct_DSYMUTIL" = x; then
7533     DSYMUTIL=":"
7534   else
7535     case $cross_compiling:$ac_tool_warned in
7536 yes:)
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539 ac_tool_warned=yes ;;
7540 esac
7541     DSYMUTIL=$ac_ct_DSYMUTIL
7542   fi
7543 else
7544   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7545 fi
7546
7547     if test -n "$ac_tool_prefix"; then
7548   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7549 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_NMEDIT+:} false; then :
7553   $as_echo_n "(cached) " >&6
7554 else
7555   if test -n "$NMEDIT"; then
7556   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563     for ac_exec_ext in '' $ac_executable_extensions; do
7564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570   done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 NMEDIT=$ac_cv_prog_NMEDIT
7576 if test -n "$NMEDIT"; then
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7578 $as_echo "$NMEDIT" >&6; }
7579 else
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7582 fi
7583
7584
7585 fi
7586 if test -z "$ac_cv_prog_NMEDIT"; then
7587   ac_ct_NMEDIT=$NMEDIT
7588   # Extract the first word of "nmedit", so it can be a program name with args.
7589 set dummy nmedit; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7593   $as_echo_n "(cached) " >&6
7594 else
7595   if test -n "$ac_ct_NMEDIT"; then
7596   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603     for ac_exec_ext in '' $ac_executable_extensions; do
7604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610   done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7616 if test -n "$ac_ct_NMEDIT"; then
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7618 $as_echo "$ac_ct_NMEDIT" >&6; }
7619 else
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622 fi
7623
7624   if test "x$ac_ct_NMEDIT" = x; then
7625     NMEDIT=":"
7626   else
7627     case $cross_compiling:$ac_tool_warned in
7628 yes:)
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631 ac_tool_warned=yes ;;
7632 esac
7633     NMEDIT=$ac_ct_NMEDIT
7634   fi
7635 else
7636   NMEDIT="$ac_cv_prog_NMEDIT"
7637 fi
7638
7639     if test -n "$ac_tool_prefix"; then
7640   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if ${ac_cv_prog_LIPO+:} false; then :
7645   $as_echo_n "(cached) " >&6
7646 else
7647   if test -n "$LIPO"; then
7648   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655     for ac_exec_ext in '' $ac_executable_extensions; do
7656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662   done
7663 IFS=$as_save_IFS
7664
7665 fi
7666 fi
7667 LIPO=$ac_cv_prog_LIPO
7668 if test -n "$LIPO"; then
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7670 $as_echo "$LIPO" >&6; }
7671 else
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7674 fi
7675
7676
7677 fi
7678 if test -z "$ac_cv_prog_LIPO"; then
7679   ac_ct_LIPO=$LIPO
7680   # Extract the first word of "lipo", so it can be a program name with args.
7681 set dummy lipo; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7685   $as_echo_n "(cached) " >&6
7686 else
7687   if test -n "$ac_ct_LIPO"; then
7688   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695     for ac_exec_ext in '' $ac_executable_extensions; do
7696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697     ac_cv_prog_ac_ct_LIPO="lipo"
7698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702   done
7703 IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7708 if test -n "$ac_ct_LIPO"; then
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7710 $as_echo "$ac_ct_LIPO" >&6; }
7711 else
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714 fi
7715
7716   if test "x$ac_ct_LIPO" = x; then
7717     LIPO=":"
7718   else
7719     case $cross_compiling:$ac_tool_warned in
7720 yes:)
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7723 ac_tool_warned=yes ;;
7724 esac
7725     LIPO=$ac_ct_LIPO
7726   fi
7727 else
7728   LIPO="$ac_cv_prog_LIPO"
7729 fi
7730
7731     if test -n "$ac_tool_prefix"; then
7732   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7733 set dummy ${ac_tool_prefix}otool; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if ${ac_cv_prog_OTOOL+:} false; then :
7737   $as_echo_n "(cached) " >&6
7738 else
7739   if test -n "$OTOOL"; then
7740   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747     for ac_exec_ext in '' $ac_executable_extensions; do
7748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754   done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 OTOOL=$ac_cv_prog_OTOOL
7760 if test -n "$OTOOL"; then
7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7762 $as_echo "$OTOOL" >&6; }
7763 else
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767
7768
7769 fi
7770 if test -z "$ac_cv_prog_OTOOL"; then
7771   ac_ct_OTOOL=$OTOOL
7772   # Extract the first word of "otool", so it can be a program name with args.
7773 set dummy otool; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7777   $as_echo_n "(cached) " >&6
7778 else
7779   if test -n "$ac_ct_OTOOL"; then
7780   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   test -z "$as_dir" && as_dir=.
7787     for ac_exec_ext in '' $ac_executable_extensions; do
7788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789     ac_cv_prog_ac_ct_OTOOL="otool"
7790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794   done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7800 if test -n "$ac_ct_OTOOL"; then
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7802 $as_echo "$ac_ct_OTOOL" >&6; }
7803 else
7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807
7808   if test "x$ac_ct_OTOOL" = x; then
7809     OTOOL=":"
7810   else
7811     case $cross_compiling:$ac_tool_warned in
7812 yes:)
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815 ac_tool_warned=yes ;;
7816 esac
7817     OTOOL=$ac_ct_OTOOL
7818   fi
7819 else
7820   OTOOL="$ac_cv_prog_OTOOL"
7821 fi
7822
7823     if test -n "$ac_tool_prefix"; then
7824   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7825 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_prog_OTOOL64+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   if test -n "$OTOOL64"; then
7832   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837   IFS=$as_save_IFS
7838   test -z "$as_dir" && as_dir=.
7839     for ac_exec_ext in '' $ac_executable_extensions; do
7840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7841     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843     break 2
7844   fi
7845 done
7846   done
7847 IFS=$as_save_IFS
7848
7849 fi
7850 fi
7851 OTOOL64=$ac_cv_prog_OTOOL64
7852 if test -n "$OTOOL64"; then
7853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7854 $as_echo "$OTOOL64" >&6; }
7855 else
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7858 fi
7859
7860
7861 fi
7862 if test -z "$ac_cv_prog_OTOOL64"; then
7863   ac_ct_OTOOL64=$OTOOL64
7864   # Extract the first word of "otool64", so it can be a program name with args.
7865 set dummy otool64; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7869   $as_echo_n "(cached) " >&6
7870 else
7871   if test -n "$ac_ct_OTOOL64"; then
7872   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7873 else
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7876 do
7877   IFS=$as_save_IFS
7878   test -z "$as_dir" && as_dir=.
7879     for ac_exec_ext in '' $ac_executable_extensions; do
7880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881     ac_cv_prog_ac_ct_OTOOL64="otool64"
7882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883     break 2
7884   fi
7885 done
7886   done
7887 IFS=$as_save_IFS
7888
7889 fi
7890 fi
7891 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7892 if test -n "$ac_ct_OTOOL64"; then
7893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7894 $as_echo "$ac_ct_OTOOL64" >&6; }
7895 else
7896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7898 fi
7899
7900   if test "x$ac_ct_OTOOL64" = x; then
7901     OTOOL64=":"
7902   else
7903     case $cross_compiling:$ac_tool_warned in
7904 yes:)
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7907 ac_tool_warned=yes ;;
7908 esac
7909     OTOOL64=$ac_ct_OTOOL64
7910   fi
7911 else
7912   OTOOL64="$ac_cv_prog_OTOOL64"
7913 fi
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7942 $as_echo_n "checking for -single_module linker flag... " >&6; }
7943 if ${lt_cv_apple_cc_single_mod+:} false; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946   lt_cv_apple_cc_single_mod=no
7947       if test -z "$LT_MULTI_MODULE"; then
7948         # By default we will add the -single_module flag. You can override
7949         # by either setting the environment variable LT_MULTI_MODULE
7950         # non-empty at configure time, or by adding -multi_module to the
7951         # link flags.
7952         rm -rf libconftest.dylib*
7953         echo "int foo(void){return 1;}" > conftest.c
7954         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7955 -dynamiclib -Wl,-single_module conftest.c" >&5
7956         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7957           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7958         _lt_result=$?
7959         # If there is a non-empty error log, and "single_module"
7960         # appears in it, assume the flag caused a linker warning
7961         if test -s conftest.err && $GREP single_module conftest.err; then
7962           cat conftest.err >&5
7963         # Otherwise, if the output was created with a 0 exit code from
7964         # the compiler, it worked.
7965         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7966           lt_cv_apple_cc_single_mod=yes
7967         else
7968           cat conftest.err >&5
7969         fi
7970         rm -rf libconftest.dylib*
7971         rm -f conftest.*
7972       fi
7973 fi
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7975 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7976
7977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7978 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7979 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7980   $as_echo_n "(cached) " >&6
7981 else
7982   lt_cv_ld_exported_symbols_list=no
7983       save_LDFLAGS=$LDFLAGS
7984       echo "_main" > conftest.sym
7985       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7986       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h.  */
7988
7989 int
7990 main ()
7991 {
7992
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 if ac_fn_c_try_link "$LINENO"; then :
7998   lt_cv_ld_exported_symbols_list=yes
7999 else
8000   lt_cv_ld_exported_symbols_list=no
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext \
8003     conftest$ac_exeext conftest.$ac_ext
8004         LDFLAGS=$save_LDFLAGS
8005
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8008 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8009
8010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8011 $as_echo_n "checking for -force_load linker flag... " >&6; }
8012 if ${lt_cv_ld_force_load+:} false; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   lt_cv_ld_force_load=no
8016       cat > conftest.c << _LT_EOF
8017 int forced_loaded() { return 2;}
8018 _LT_EOF
8019       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8020       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8021       echo "$AR cru libconftest.a conftest.o" >&5
8022       $AR cru libconftest.a conftest.o 2>&5
8023       echo "$RANLIB libconftest.a" >&5
8024       $RANLIB libconftest.a 2>&5
8025       cat > conftest.c << _LT_EOF
8026 int main() { return 0;}
8027 _LT_EOF
8028       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8029       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8030       _lt_result=$?
8031       if test -s conftest.err && $GREP force_load conftest.err; then
8032         cat conftest.err >&5
8033       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8034         lt_cv_ld_force_load=yes
8035       else
8036         cat conftest.err >&5
8037       fi
8038         rm -f conftest.err libconftest.a conftest conftest.c
8039         rm -rf conftest.dSYM
8040
8041 fi
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8043 $as_echo "$lt_cv_ld_force_load" >&6; }
8044     case $host_os in
8045     rhapsody* | darwin1.[012])
8046       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8047     darwin1.*)
8048       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8049     darwin*) # darwin 5.x on
8050       # if running on 10.5 or later, the deployment target defaults
8051       # to the OS version, if on x86, and 10.4, the deployment
8052       # target defaults to 10.4. Don't you love it?
8053       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8054         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8055           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8056         10.[012][,.]*)
8057           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8058         10.*)
8059           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8060       esac
8061     ;;
8062   esac
8063     if test yes = "$lt_cv_apple_cc_single_mod"; then
8064       _lt_dar_single_mod='$single_module'
8065     fi
8066     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8067       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8068     else
8069       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8070     fi
8071     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8072       _lt_dsymutil='~$DSYMUTIL $lib || :'
8073     else
8074       _lt_dsymutil=
8075     fi
8076     ;;
8077   esac
8078
8079 # func_munge_path_list VARIABLE PATH
8080 # -----------------------------------
8081 # VARIABLE is name of variable containing _space_ separated list of
8082 # directories to be munged by the contents of PATH, which is string
8083 # having a format:
8084 # "DIR[:DIR]:"
8085 #       string "DIR[ DIR]" will be prepended to VARIABLE
8086 # ":DIR[:DIR]"
8087 #       string "DIR[ DIR]" will be appended to VARIABLE
8088 # "DIRP[:DIRP]::[DIRA:]DIRA"
8089 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8090 #       "DIRA[ DIRA]" will be appended to VARIABLE
8091 # "DIR[:DIR]"
8092 #       VARIABLE will be replaced by "DIR[ DIR]"
8093 func_munge_path_list ()
8094 {
8095     case x$2 in
8096     x)
8097         ;;
8098     *:)
8099         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8100         ;;
8101     x:*)
8102         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8103         ;;
8104     *::*)
8105         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8106         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8107         ;;
8108     *)
8109         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8110         ;;
8111     esac
8112 }
8113
8114 ac_ext=c
8115 ac_cpp='$CPP $CPPFLAGS'
8116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8120 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8121 # On Suns, sometimes $CPP names a directory.
8122 if test -n "$CPP" && test -d "$CPP"; then
8123   CPP=
8124 fi
8125 if test -z "$CPP"; then
8126   if ${ac_cv_prog_CPP+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129       # Double quotes because CPP needs to be expanded
8130     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8131     do
8132       ac_preproc_ok=false
8133 for ac_c_preproc_warn_flag in '' yes
8134 do
8135   # Use a header file that comes with gcc, so configuring glibc
8136   # with a fresh cross-compiler works.
8137   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8138   # <limits.h> exists even on freestanding compilers.
8139   # On the NeXT, cc -E runs the code through the compiler's parser,
8140   # not just through cpp. "Syntax error" is here to catch this case.
8141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h.  */
8143 #ifdef __STDC__
8144 # include <limits.h>
8145 #else
8146 # include <assert.h>
8147 #endif
8148                      Syntax error
8149 _ACEOF
8150 if ac_fn_c_try_cpp "$LINENO"; then :
8151
8152 else
8153   # Broken: fails on valid input.
8154 continue
8155 fi
8156 rm -f conftest.err conftest.i conftest.$ac_ext
8157
8158   # OK, works on sane cases.  Now check whether nonexistent headers
8159   # can be detected and how.
8160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h.  */
8162 #include <ac_nonexistent.h>
8163 _ACEOF
8164 if ac_fn_c_try_cpp "$LINENO"; then :
8165   # Broken: success on invalid input.
8166 continue
8167 else
8168   # Passes both tests.
8169 ac_preproc_ok=:
8170 break
8171 fi
8172 rm -f conftest.err conftest.i conftest.$ac_ext
8173
8174 done
8175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8176 rm -f conftest.i conftest.err conftest.$ac_ext
8177 if $ac_preproc_ok; then :
8178   break
8179 fi
8180
8181     done
8182     ac_cv_prog_CPP=$CPP
8183
8184 fi
8185   CPP=$ac_cv_prog_CPP
8186 else
8187   ac_cv_prog_CPP=$CPP
8188 fi
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8190 $as_echo "$CPP" >&6; }
8191 ac_preproc_ok=false
8192 for ac_c_preproc_warn_flag in '' yes
8193 do
8194   # Use a header file that comes with gcc, so configuring glibc
8195   # with a fresh cross-compiler works.
8196   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8197   # <limits.h> exists even on freestanding compilers.
8198   # On the NeXT, cc -E runs the code through the compiler's parser,
8199   # not just through cpp. "Syntax error" is here to catch this case.
8200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h.  */
8202 #ifdef __STDC__
8203 # include <limits.h>
8204 #else
8205 # include <assert.h>
8206 #endif
8207                      Syntax error
8208 _ACEOF
8209 if ac_fn_c_try_cpp "$LINENO"; then :
8210
8211 else
8212   # Broken: fails on valid input.
8213 continue
8214 fi
8215 rm -f conftest.err conftest.i conftest.$ac_ext
8216
8217   # OK, works on sane cases.  Now check whether nonexistent headers
8218   # can be detected and how.
8219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h.  */
8221 #include <ac_nonexistent.h>
8222 _ACEOF
8223 if ac_fn_c_try_cpp "$LINENO"; then :
8224   # Broken: success on invalid input.
8225 continue
8226 else
8227   # Passes both tests.
8228 ac_preproc_ok=:
8229 break
8230 fi
8231 rm -f conftest.err conftest.i conftest.$ac_ext
8232
8233 done
8234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8235 rm -f conftest.i conftest.err conftest.$ac_ext
8236 if $ac_preproc_ok; then :
8237
8238 else
8239   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8241 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8242 See \`config.log' for more details" "$LINENO" 5; }
8243 fi
8244
8245 ac_ext=c
8246 ac_cpp='$CPP $CPPFLAGS'
8247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8250
8251
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8253 $as_echo_n "checking for ANSI C header files... " >&6; }
8254 if ${ac_cv_header_stdc+:} false; then :
8255   $as_echo_n "(cached) " >&6
8256 else
8257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h.  */
8259 #include <stdlib.h>
8260 #include <stdarg.h>
8261 #include <string.h>
8262 #include <float.h>
8263
8264 int
8265 main ()
8266 {
8267
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 if ac_fn_c_try_compile "$LINENO"; then :
8273   ac_cv_header_stdc=yes
8274 else
8275   ac_cv_header_stdc=no
8276 fi
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278
8279 if test $ac_cv_header_stdc = yes; then
8280   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h.  */
8283 #include <string.h>
8284
8285 _ACEOF
8286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8287   $EGREP "memchr" >/dev/null 2>&1; then :
8288
8289 else
8290   ac_cv_header_stdc=no
8291 fi
8292 rm -f conftest*
8293
8294 fi
8295
8296 if test $ac_cv_header_stdc = yes; then
8297   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h.  */
8300 #include <stdlib.h>
8301
8302 _ACEOF
8303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8304   $EGREP "free" >/dev/null 2>&1; then :
8305
8306 else
8307   ac_cv_header_stdc=no
8308 fi
8309 rm -f conftest*
8310
8311 fi
8312
8313 if test $ac_cv_header_stdc = yes; then
8314   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8315   if test "$cross_compiling" = yes; then :
8316   :
8317 else
8318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h.  */
8320 #include <ctype.h>
8321 #include <stdlib.h>
8322 #if ((' ' & 0x0FF) == 0x020)
8323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8325 #else
8326 # define ISLOWER(c) \
8327                    (('a' <= (c) && (c) <= 'i') \
8328                      || ('j' <= (c) && (c) <= 'r') \
8329                      || ('s' <= (c) && (c) <= 'z'))
8330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8331 #endif
8332
8333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8334 int
8335 main ()
8336 {
8337   int i;
8338   for (i = 0; i < 256; i++)
8339     if (XOR (islower (i), ISLOWER (i))
8340         || toupper (i) != TOUPPER (i))
8341       return 2;
8342   return 0;
8343 }
8344 _ACEOF
8345 if ac_fn_c_try_run "$LINENO"; then :
8346
8347 else
8348   ac_cv_header_stdc=no
8349 fi
8350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8351   conftest.$ac_objext conftest.beam conftest.$ac_ext
8352 fi
8353
8354 fi
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8357 $as_echo "$ac_cv_header_stdc" >&6; }
8358 if test $ac_cv_header_stdc = yes; then
8359
8360 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8361
8362 fi
8363
8364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8366                   inttypes.h stdint.h unistd.h
8367 do :
8368   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8370 "
8371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8372   cat >>confdefs.h <<_ACEOF
8373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8374 _ACEOF
8375
8376 fi
8377
8378 done
8379
8380
8381 for ac_header in dlfcn.h
8382 do :
8383   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8384 "
8385 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8386   cat >>confdefs.h <<_ACEOF
8387 #define HAVE_DLFCN_H 1
8388 _ACEOF
8389
8390 fi
8391
8392 done
8393
8394
8395
8396 func_stripname_cnf ()
8397 {
8398   case $2 in
8399   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8400   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8401   esac
8402 } # func_stripname_cnf
8403
8404
8405
8406
8407
8408 # Set options
8409
8410
8411
8412         enable_dlopen=no
8413
8414
8415   enable_win32_dll=no
8416
8417
8418             # Check whether --enable-shared was given.
8419 if test "${enable_shared+set}" = set; then :
8420   enableval=$enable_shared; p=${PACKAGE-default}
8421     case $enableval in
8422     yes) enable_shared=yes ;;
8423     no) enable_shared=no ;;
8424     *)
8425       enable_shared=no
8426       # Look at the argument we got.  We use all the common list separators.
8427       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8428       for pkg in $enableval; do
8429         IFS=$lt_save_ifs
8430         if test "X$pkg" = "X$p"; then
8431           enable_shared=yes
8432         fi
8433       done
8434       IFS=$lt_save_ifs
8435       ;;
8436     esac
8437 else
8438   enable_shared=yes
8439 fi
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449   # Check whether --enable-static was given.
8450 if test "${enable_static+set}" = set; then :
8451   enableval=$enable_static; p=${PACKAGE-default}
8452     case $enableval in
8453     yes) enable_static=yes ;;
8454     no) enable_static=no ;;
8455     *)
8456      enable_static=no
8457       # Look at the argument we got.  We use all the common list separators.
8458       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8459       for pkg in $enableval; do
8460         IFS=$lt_save_ifs
8461         if test "X$pkg" = "X$p"; then
8462           enable_static=yes
8463         fi
8464       done
8465       IFS=$lt_save_ifs
8466       ;;
8467     esac
8468 else
8469   enable_static=yes
8470 fi
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481 # Check whether --with-pic was given.
8482 if test "${with_pic+set}" = set; then :
8483   withval=$with_pic; lt_p=${PACKAGE-default}
8484     case $withval in
8485     yes|no) pic_mode=$withval ;;
8486     *)
8487       pic_mode=default
8488       # Look at the argument we got.  We use all the common list separators.
8489       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8490       for lt_pkg in $withval; do
8491         IFS=$lt_save_ifs
8492         if test "X$lt_pkg" = "X$lt_p"; then
8493           pic_mode=yes
8494         fi
8495       done
8496       IFS=$lt_save_ifs
8497       ;;
8498     esac
8499 else
8500   pic_mode=default
8501 fi
8502
8503
8504
8505
8506
8507
8508
8509
8510   # Check whether --enable-fast-install was given.
8511 if test "${enable_fast_install+set}" = set; then :
8512   enableval=$enable_fast_install; p=${PACKAGE-default}
8513     case $enableval in
8514     yes) enable_fast_install=yes ;;
8515     no) enable_fast_install=no ;;
8516     *)
8517       enable_fast_install=no
8518       # Look at the argument we got.  We use all the common list separators.
8519       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8520       for pkg in $enableval; do
8521         IFS=$lt_save_ifs
8522         if test "X$pkg" = "X$p"; then
8523           enable_fast_install=yes
8524         fi
8525       done
8526       IFS=$lt_save_ifs
8527       ;;
8528     esac
8529 else
8530   enable_fast_install=yes
8531 fi
8532
8533
8534
8535
8536
8537
8538
8539
8540   shared_archive_member_spec=
8541 case $host,$enable_shared in
8542 power*-*-aix[5-9]*,yes)
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8544 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8545
8546 # Check whether --with-aix-soname was given.
8547 if test "${with_aix_soname+set}" = set; then :
8548   withval=$with_aix_soname; case $withval in
8549     aix|svr4|both)
8550       ;;
8551     *)
8552       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8553       ;;
8554     esac
8555     lt_cv_with_aix_soname=$with_aix_soname
8556 else
8557   if ${lt_cv_with_aix_soname+:} false; then :
8558   $as_echo_n "(cached) " >&6
8559 else
8560   lt_cv_with_aix_soname=aix
8561 fi
8562
8563     with_aix_soname=$lt_cv_with_aix_soname
8564 fi
8565
8566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8567 $as_echo "$with_aix_soname" >&6; }
8568   if test aix != "$with_aix_soname"; then
8569     # For the AIX way of multilib, we name the shared archive member
8570     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8571     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8572     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8573     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8574     if test 64 = "${OBJECT_MODE-32}"; then
8575       shared_archive_member_spec=shr_64
8576     else
8577       shared_archive_member_spec=shr
8578     fi
8579   fi
8580   ;;
8581 *)
8582   with_aix_soname=aix
8583   ;;
8584 esac
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 # This can be used to rebuild libtool when needed
8596 LIBTOOL_DEPS=$ltmain
8597
8598 # Always use our own libtool.
8599 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630 test -z "$LN_S" && LN_S="ln -s"
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645 if test -n "${ZSH_VERSION+set}"; then
8646    setopt NO_GLOB_SUBST
8647 fi
8648
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8650 $as_echo_n "checking for objdir... " >&6; }
8651 if ${lt_cv_objdir+:} false; then :
8652   $as_echo_n "(cached) " >&6
8653 else
8654   rm -f .libs 2>/dev/null
8655 mkdir .libs 2>/dev/null
8656 if test -d .libs; then
8657   lt_cv_objdir=.libs
8658 else
8659   # MS-DOS does not allow filenames that begin with a dot.
8660   lt_cv_objdir=_libs
8661 fi
8662 rmdir .libs 2>/dev/null
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8665 $as_echo "$lt_cv_objdir" >&6; }
8666 objdir=$lt_cv_objdir
8667
8668
8669
8670
8671
8672 cat >>confdefs.h <<_ACEOF
8673 #define LT_OBJDIR "$lt_cv_objdir/"
8674 _ACEOF
8675
8676
8677
8678
8679 case $host_os in
8680 aix3*)
8681   # AIX sometimes has problems with the GCC collect2 program.  For some
8682   # reason, if we set the COLLECT_NAMES environment variable, the problems
8683   # vanish in a puff of smoke.
8684   if test set != "${COLLECT_NAMES+set}"; then
8685     COLLECT_NAMES=
8686     export COLLECT_NAMES
8687   fi
8688   ;;
8689 esac
8690
8691 # Global variables:
8692 ofile=libtool
8693 can_build_shared=yes
8694
8695 # All known linkers require a '.a' archive for static linking (except MSVC,
8696 # which needs '.lib').
8697 libext=a
8698
8699 with_gnu_ld=$lt_cv_prog_gnu_ld
8700
8701 old_CC=$CC
8702 old_CFLAGS=$CFLAGS
8703
8704 # Set sane defaults for various variables
8705 test -z "$CC" && CC=cc
8706 test -z "$LTCC" && LTCC=$CC
8707 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8708 test -z "$LD" && LD=ld
8709 test -z "$ac_objext" && ac_objext=o
8710
8711 func_cc_basename $compiler
8712 cc_basename=$func_cc_basename_result
8713
8714
8715 # Only perform the check for file, if the check method requires it
8716 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8717 case $deplibs_check_method in
8718 file_magic*)
8719   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8721 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8722 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   case $MAGIC_CMD in
8726 [\\/*] |  ?:[\\/]*)
8727   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8728   ;;
8729 *)
8730   lt_save_MAGIC_CMD=$MAGIC_CMD
8731   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8732   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8733   for ac_dir in $ac_dummy; do
8734     IFS=$lt_save_ifs
8735     test -z "$ac_dir" && ac_dir=.
8736     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8737       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8738       if test -n "$file_magic_test_file"; then
8739         case $deplibs_check_method in
8740         "file_magic "*)
8741           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8742           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8743           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8744             $EGREP "$file_magic_regex" > /dev/null; then
8745             :
8746           else
8747             cat <<_LT_EOF 1>&2
8748
8749 *** Warning: the command libtool uses to detect shared libraries,
8750 *** $file_magic_cmd, produces output that libtool cannot recognize.
8751 *** The result is that libtool may fail to recognize shared libraries
8752 *** as such.  This will affect the creation of libtool libraries that
8753 *** depend on shared libraries, but programs linked with such libtool
8754 *** libraries will work regardless of this problem.  Nevertheless, you
8755 *** may want to report the problem to your system manager and/or to
8756 *** bug-libtool@gnu.org
8757
8758 _LT_EOF
8759           fi ;;
8760         esac
8761       fi
8762       break
8763     fi
8764   done
8765   IFS=$lt_save_ifs
8766   MAGIC_CMD=$lt_save_MAGIC_CMD
8767   ;;
8768 esac
8769 fi
8770
8771 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8772 if test -n "$MAGIC_CMD"; then
8773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8774 $as_echo "$MAGIC_CMD" >&6; }
8775 else
8776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8778 fi
8779
8780
8781
8782
8783
8784 if test -z "$lt_cv_path_MAGIC_CMD"; then
8785   if test -n "$ac_tool_prefix"; then
8786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8787 $as_echo_n "checking for file... " >&6; }
8788 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8789   $as_echo_n "(cached) " >&6
8790 else
8791   case $MAGIC_CMD in
8792 [\\/*] |  ?:[\\/]*)
8793   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8794   ;;
8795 *)
8796   lt_save_MAGIC_CMD=$MAGIC_CMD
8797   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8798   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8799   for ac_dir in $ac_dummy; do
8800     IFS=$lt_save_ifs
8801     test -z "$ac_dir" && ac_dir=.
8802     if test -f "$ac_dir/file"; then
8803       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8804       if test -n "$file_magic_test_file"; then
8805         case $deplibs_check_method in
8806         "file_magic "*)
8807           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8808           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8809           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8810             $EGREP "$file_magic_regex" > /dev/null; then
8811             :
8812           else
8813             cat <<_LT_EOF 1>&2
8814
8815 *** Warning: the command libtool uses to detect shared libraries,
8816 *** $file_magic_cmd, produces output that libtool cannot recognize.
8817 *** The result is that libtool may fail to recognize shared libraries
8818 *** as such.  This will affect the creation of libtool libraries that
8819 *** depend on shared libraries, but programs linked with such libtool
8820 *** libraries will work regardless of this problem.  Nevertheless, you
8821 *** may want to report the problem to your system manager and/or to
8822 *** bug-libtool@gnu.org
8823
8824 _LT_EOF
8825           fi ;;
8826         esac
8827       fi
8828       break
8829     fi
8830   done
8831   IFS=$lt_save_ifs
8832   MAGIC_CMD=$lt_save_MAGIC_CMD
8833   ;;
8834 esac
8835 fi
8836
8837 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8838 if test -n "$MAGIC_CMD"; then
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8840 $as_echo "$MAGIC_CMD" >&6; }
8841 else
8842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843 $as_echo "no" >&6; }
8844 fi
8845
8846
8847   else
8848     MAGIC_CMD=:
8849   fi
8850 fi
8851
8852   fi
8853   ;;
8854 esac
8855
8856 # Use C for the default configuration in the libtool script
8857
8858 lt_save_CC=$CC
8859 ac_ext=c
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8864
8865
8866 # Source file extension for C test sources.
8867 ac_ext=c
8868
8869 # Object file extension for compiled C test sources.
8870 objext=o
8871 objext=$objext
8872
8873 # Code to be used in simple compile tests
8874 lt_simple_compile_test_code="int some_variable = 0;"
8875
8876 # Code to be used in simple link tests
8877 lt_simple_link_test_code='int main(){return(0);}'
8878
8879
8880
8881
8882
8883
8884
8885 # If no C compiler was specified, use CC.
8886 LTCC=${LTCC-"$CC"}
8887
8888 # If no C compiler flags were specified, use CFLAGS.
8889 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8890
8891 # Allow CC to be a program name with arguments.
8892 compiler=$CC
8893
8894 # Save the default compiler, since it gets overwritten when the other
8895 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8896 compiler_DEFAULT=$CC
8897
8898 # save warnings/boilerplate of simple test code
8899 ac_outfile=conftest.$ac_objext
8900 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8901 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8902 _lt_compiler_boilerplate=`cat conftest.err`
8903 $RM conftest*
8904
8905 ac_outfile=conftest.$ac_objext
8906 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8907 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8908 _lt_linker_boilerplate=`cat conftest.err`
8909 $RM -r conftest*
8910
8911
8912 ## CAVEAT EMPTOR:
8913 ## There is no encapsulation within the following macros, do not change
8914 ## the running order or otherwise move them around unless you know exactly
8915 ## what you are doing...
8916 if test -n "$compiler"; then
8917
8918 lt_prog_compiler_no_builtin_flag=
8919
8920 if test yes = "$GCC"; then
8921   case $cc_basename in
8922   nvcc*)
8923     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8924   *)
8925     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8926   esac
8927
8928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8929 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8930 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8931   $as_echo_n "(cached) " >&6
8932 else
8933   lt_cv_prog_compiler_rtti_exceptions=no
8934    ac_outfile=conftest.$ac_objext
8935    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8936    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8937    # Insert the option either (1) after the last *FLAGS variable, or
8938    # (2) before a word containing "conftest.", or (3) at the end.
8939    # Note that $ac_compile itself does not contain backslashes and begins
8940    # with a dollar sign (not a hyphen), so the echo should work correctly.
8941    # The option is referenced via a variable to avoid confusing sed.
8942    lt_compile=`echo "$ac_compile" | $SED \
8943    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8944    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8945    -e 's:$: $lt_compiler_flag:'`
8946    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8947    (eval "$lt_compile" 2>conftest.err)
8948    ac_status=$?
8949    cat conftest.err >&5
8950    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951    if (exit $ac_status) && test -s "$ac_outfile"; then
8952      # The compiler can only warn and ignore the option if not recognized
8953      # So say no if there are warnings other than the usual output.
8954      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8955      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8956      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8957        lt_cv_prog_compiler_rtti_exceptions=yes
8958      fi
8959    fi
8960    $RM conftest*
8961
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8964 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8965
8966 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8967     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8968 else
8969     :
8970 fi
8971
8972 fi
8973
8974
8975
8976
8977
8978
8979   lt_prog_compiler_wl=
8980 lt_prog_compiler_pic=
8981 lt_prog_compiler_static=
8982
8983
8984   if test yes = "$GCC"; then
8985     lt_prog_compiler_wl='-Wl,'
8986     lt_prog_compiler_static='-static'
8987
8988     case $host_os in
8989       aix*)
8990       # All AIX code is PIC.
8991       if test ia64 = "$host_cpu"; then
8992         # AIX 5 now supports IA64 processor
8993         lt_prog_compiler_static='-Bstatic'
8994       fi
8995       lt_prog_compiler_pic='-fPIC'
8996       ;;
8997
8998     amigaos*)
8999       case $host_cpu in
9000       powerpc)
9001             # see comment about AmigaOS4 .so support
9002             lt_prog_compiler_pic='-fPIC'
9003         ;;
9004       m68k)
9005             # FIXME: we need at least 68020 code to build shared libraries, but
9006             # adding the '-m68020' flag to GCC prevents building anything better,
9007             # like '-m68040'.
9008             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9009         ;;
9010       esac
9011       ;;
9012
9013     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9014       # PIC is the default for these OSes.
9015       ;;
9016
9017     mingw* | cygwin* | pw32* | os2* | cegcc*)
9018       # This hack is so that the source file can tell whether it is being
9019       # built for inclusion in a dll (and should export symbols for example).
9020       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9021       # (--disable-auto-import) libraries
9022       lt_prog_compiler_pic='-DDLL_EXPORT'
9023       case $host_os in
9024       os2*)
9025         lt_prog_compiler_static='$wl-static'
9026         ;;
9027       esac
9028       ;;
9029
9030     darwin* | rhapsody*)
9031       # PIC is the default on this platform
9032       # Common symbols not allowed in MH_DYLIB files
9033       lt_prog_compiler_pic='-fno-common'
9034       ;;
9035
9036     haiku*)
9037       # PIC is the default for Haiku.
9038       # The "-static" flag exists, but is broken.
9039       lt_prog_compiler_static=
9040       ;;
9041
9042     hpux*)
9043       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9044       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9045       # sets the default TLS model and affects inlining.
9046       case $host_cpu in
9047       hppa*64*)
9048         # +Z the default
9049         ;;
9050       *)
9051         lt_prog_compiler_pic='-fPIC'
9052         ;;
9053       esac
9054       ;;
9055
9056     interix[3-9]*)
9057       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9058       # Instead, we relocate shared libraries at runtime.
9059       ;;
9060
9061     msdosdjgpp*)
9062       # Just because we use GCC doesn't mean we suddenly get shared libraries
9063       # on systems that don't support them.
9064       lt_prog_compiler_can_build_shared=no
9065       enable_shared=no
9066       ;;
9067
9068     *nto* | *qnx*)
9069       # QNX uses GNU C++, but need to define -shared option too, otherwise
9070       # it will coredump.
9071       lt_prog_compiler_pic='-fPIC -shared'
9072       ;;
9073
9074     sysv4*MP*)
9075       if test -d /usr/nec; then
9076         lt_prog_compiler_pic=-Kconform_pic
9077       fi
9078       ;;
9079
9080     *)
9081       lt_prog_compiler_pic='-fPIC'
9082       ;;
9083     esac
9084
9085     case $cc_basename in
9086     nvcc*) # Cuda Compiler Driver 2.2
9087       lt_prog_compiler_wl='-Xlinker '
9088       if test -n "$lt_prog_compiler_pic"; then
9089         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9090       fi
9091       ;;
9092     esac
9093   else
9094     # PORTME Check for flag to pass linker flags through the system compiler.
9095     case $host_os in
9096     aix*)
9097       lt_prog_compiler_wl='-Wl,'
9098       if test ia64 = "$host_cpu"; then
9099         # AIX 5 now supports IA64 processor
9100         lt_prog_compiler_static='-Bstatic'
9101       else
9102         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9103       fi
9104       ;;
9105
9106     darwin* | rhapsody*)
9107       # PIC is the default on this platform
9108       # Common symbols not allowed in MH_DYLIB files
9109       lt_prog_compiler_pic='-fno-common'
9110       case $cc_basename in
9111       nagfor*)
9112         # NAG Fortran compiler
9113         lt_prog_compiler_wl='-Wl,-Wl,,'
9114         lt_prog_compiler_pic='-PIC'
9115         lt_prog_compiler_static='-Bstatic'
9116         ;;
9117       esac
9118       ;;
9119
9120     mingw* | cygwin* | pw32* | os2* | cegcc*)
9121       # This hack is so that the source file can tell whether it is being
9122       # built for inclusion in a dll (and should export symbols for example).
9123       lt_prog_compiler_pic='-DDLL_EXPORT'
9124       case $host_os in
9125       os2*)
9126         lt_prog_compiler_static='$wl-static'
9127         ;;
9128       esac
9129       ;;
9130
9131     hpux9* | hpux10* | hpux11*)
9132       lt_prog_compiler_wl='-Wl,'
9133       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9134       # not for PA HP-UX.
9135       case $host_cpu in
9136       hppa*64*|ia64*)
9137         # +Z the default
9138         ;;
9139       *)
9140         lt_prog_compiler_pic='+Z'
9141         ;;
9142       esac
9143       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9144       lt_prog_compiler_static='$wl-a ${wl}archive'
9145       ;;
9146
9147     irix5* | irix6* | nonstopux*)
9148       lt_prog_compiler_wl='-Wl,'
9149       # PIC (with -KPIC) is the default.
9150       lt_prog_compiler_static='-non_shared'
9151       ;;
9152
9153     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9154       case $cc_basename in
9155       # old Intel for x86_64, which still supported -KPIC.
9156       ecc*)
9157         lt_prog_compiler_wl='-Wl,'
9158         lt_prog_compiler_pic='-KPIC'
9159         lt_prog_compiler_static='-static'
9160         ;;
9161       # icc used to be incompatible with GCC.
9162       # ICC 10 doesn't accept -KPIC any more.
9163       icc* | ifort*)
9164         lt_prog_compiler_wl='-Wl,'
9165         lt_prog_compiler_pic='-fPIC'
9166         lt_prog_compiler_static='-static'
9167         ;;
9168       # Lahey Fortran 8.1.
9169       lf95*)
9170         lt_prog_compiler_wl='-Wl,'
9171         lt_prog_compiler_pic='--shared'
9172         lt_prog_compiler_static='--static'
9173         ;;
9174       nagfor*)
9175         # NAG Fortran compiler
9176         lt_prog_compiler_wl='-Wl,-Wl,,'
9177         lt_prog_compiler_pic='-PIC'
9178         lt_prog_compiler_static='-Bstatic'
9179         ;;
9180       tcc*)
9181         # Fabrice Bellard et al's Tiny C Compiler
9182         lt_prog_compiler_wl='-Wl,'
9183         lt_prog_compiler_pic='-fPIC'
9184         lt_prog_compiler_static='-static'
9185         ;;
9186       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9187         # Portland Group compilers (*not* the Pentium gcc compiler,
9188         # which looks to be a dead project)
9189         lt_prog_compiler_wl='-Wl,'
9190         lt_prog_compiler_pic='-fpic'
9191         lt_prog_compiler_static='-Bstatic'
9192         ;;
9193       ccc*)
9194         lt_prog_compiler_wl='-Wl,'
9195         # All Alpha code is PIC.
9196         lt_prog_compiler_static='-non_shared'
9197         ;;
9198       xl* | bgxl* | bgf* | mpixl*)
9199         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9200         lt_prog_compiler_wl='-Wl,'
9201         lt_prog_compiler_pic='-qpic'
9202         lt_prog_compiler_static='-qstaticlink'
9203         ;;
9204       *)
9205         case `$CC -V 2>&1 | sed 5q` in
9206         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9207           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9208           lt_prog_compiler_pic='-KPIC'
9209           lt_prog_compiler_static='-Bstatic'
9210           lt_prog_compiler_wl=''
9211           ;;
9212         *Sun\ F* | *Sun*Fortran*)
9213           lt_prog_compiler_pic='-KPIC'
9214           lt_prog_compiler_static='-Bstatic'
9215           lt_prog_compiler_wl='-Qoption ld '
9216           ;;
9217         *Sun\ C*)
9218           # Sun C 5.9
9219           lt_prog_compiler_pic='-KPIC'
9220           lt_prog_compiler_static='-Bstatic'
9221           lt_prog_compiler_wl='-Wl,'
9222           ;;
9223         *Intel*\ [CF]*Compiler*)
9224           lt_prog_compiler_wl='-Wl,'
9225           lt_prog_compiler_pic='-fPIC'
9226           lt_prog_compiler_static='-static'
9227           ;;
9228         *Portland\ Group*)
9229           lt_prog_compiler_wl='-Wl,'
9230           lt_prog_compiler_pic='-fpic'
9231           lt_prog_compiler_static='-Bstatic'
9232           ;;
9233         esac
9234         ;;
9235       esac
9236       ;;
9237
9238     newsos6)
9239       lt_prog_compiler_pic='-KPIC'
9240       lt_prog_compiler_static='-Bstatic'
9241       ;;
9242
9243     *nto* | *qnx*)
9244       # QNX uses GNU C++, but need to define -shared option too, otherwise
9245       # it will coredump.
9246       lt_prog_compiler_pic='-fPIC -shared'
9247       ;;
9248
9249     osf3* | osf4* | osf5*)
9250       lt_prog_compiler_wl='-Wl,'
9251       # All OSF/1 code is PIC.
9252       lt_prog_compiler_static='-non_shared'
9253       ;;
9254
9255     rdos*)
9256       lt_prog_compiler_static='-non_shared'
9257       ;;
9258
9259     solaris*)
9260       lt_prog_compiler_pic='-KPIC'
9261       lt_prog_compiler_static='-Bstatic'
9262       case $cc_basename in
9263       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9264         lt_prog_compiler_wl='-Qoption ld ';;
9265       *)
9266         lt_prog_compiler_wl='-Wl,';;
9267       esac
9268       ;;
9269
9270     sunos4*)
9271       lt_prog_compiler_wl='-Qoption ld '
9272       lt_prog_compiler_pic='-PIC'
9273       lt_prog_compiler_static='-Bstatic'
9274       ;;
9275
9276     sysv4 | sysv4.2uw2* | sysv4.3*)
9277       lt_prog_compiler_wl='-Wl,'
9278       lt_prog_compiler_pic='-KPIC'
9279       lt_prog_compiler_static='-Bstatic'
9280       ;;
9281
9282     sysv4*MP*)
9283       if test -d /usr/nec; then
9284         lt_prog_compiler_pic='-Kconform_pic'
9285         lt_prog_compiler_static='-Bstatic'
9286       fi
9287       ;;
9288
9289     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9290       lt_prog_compiler_wl='-Wl,'
9291       lt_prog_compiler_pic='-KPIC'
9292       lt_prog_compiler_static='-Bstatic'
9293       ;;
9294
9295     unicos*)
9296       lt_prog_compiler_wl='-Wl,'
9297       lt_prog_compiler_can_build_shared=no
9298       ;;
9299
9300     uts4*)
9301       lt_prog_compiler_pic='-pic'
9302       lt_prog_compiler_static='-Bstatic'
9303       ;;
9304
9305     *)
9306       lt_prog_compiler_can_build_shared=no
9307       ;;
9308     esac
9309   fi
9310
9311 case $host_os in
9312   # For platforms that do not support PIC, -DPIC is meaningless:
9313   *djgpp*)
9314     lt_prog_compiler_pic=
9315     ;;
9316   *)
9317     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9318     ;;
9319 esac
9320
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9322 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9323 if ${lt_cv_prog_compiler_pic+:} false; then :
9324   $as_echo_n "(cached) " >&6
9325 else
9326   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9329 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9330 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9331
9332 #
9333 # Check to make sure the PIC flag actually works.
9334 #
9335 if test -n "$lt_prog_compiler_pic"; then
9336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9337 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9338 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9339   $as_echo_n "(cached) " >&6
9340 else
9341   lt_cv_prog_compiler_pic_works=no
9342    ac_outfile=conftest.$ac_objext
9343    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9344    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9345    # Insert the option either (1) after the last *FLAGS variable, or
9346    # (2) before a word containing "conftest.", or (3) at the end.
9347    # Note that $ac_compile itself does not contain backslashes and begins
9348    # with a dollar sign (not a hyphen), so the echo should work correctly.
9349    # The option is referenced via a variable to avoid confusing sed.
9350    lt_compile=`echo "$ac_compile" | $SED \
9351    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9353    -e 's:$: $lt_compiler_flag:'`
9354    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9355    (eval "$lt_compile" 2>conftest.err)
9356    ac_status=$?
9357    cat conftest.err >&5
9358    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359    if (exit $ac_status) && test -s "$ac_outfile"; then
9360      # The compiler can only warn and ignore the option if not recognized
9361      # So say no if there are warnings other than the usual output.
9362      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9363      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9364      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9365        lt_cv_prog_compiler_pic_works=yes
9366      fi
9367    fi
9368    $RM conftest*
9369
9370 fi
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9372 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9373
9374 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9375     case $lt_prog_compiler_pic in
9376      "" | " "*) ;;
9377      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9378      esac
9379 else
9380     lt_prog_compiler_pic=
9381      lt_prog_compiler_can_build_shared=no
9382 fi
9383
9384 fi
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396 #
9397 # Check to make sure the static flag actually works.
9398 #
9399 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9401 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9402 if ${lt_cv_prog_compiler_static_works+:} false; then :
9403   $as_echo_n "(cached) " >&6
9404 else
9405   lt_cv_prog_compiler_static_works=no
9406    save_LDFLAGS=$LDFLAGS
9407    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9408    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9409    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9410      # The linker can only warn and ignore the option if not recognized
9411      # So say no if there are warnings
9412      if test -s conftest.err; then
9413        # Append any errors to the config.log.
9414        cat conftest.err 1>&5
9415        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9416        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9417        if diff conftest.exp conftest.er2 >/dev/null; then
9418          lt_cv_prog_compiler_static_works=yes
9419        fi
9420      else
9421        lt_cv_prog_compiler_static_works=yes
9422      fi
9423    fi
9424    $RM -r conftest*
9425    LDFLAGS=$save_LDFLAGS
9426
9427 fi
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9429 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9430
9431 if test yes = "$lt_cv_prog_compiler_static_works"; then
9432     :
9433 else
9434     lt_prog_compiler_static=
9435 fi
9436
9437
9438
9439
9440
9441
9442
9443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9444 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9445 if ${lt_cv_prog_compiler_c_o+:} false; then :
9446   $as_echo_n "(cached) " >&6
9447 else
9448   lt_cv_prog_compiler_c_o=no
9449    $RM -r conftest 2>/dev/null
9450    mkdir conftest
9451    cd conftest
9452    mkdir out
9453    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9454
9455    lt_compiler_flag="-o out/conftest2.$ac_objext"
9456    # Insert the option either (1) after the last *FLAGS variable, or
9457    # (2) before a word containing "conftest.", or (3) at the end.
9458    # Note that $ac_compile itself does not contain backslashes and begins
9459    # with a dollar sign (not a hyphen), so the echo should work correctly.
9460    lt_compile=`echo "$ac_compile" | $SED \
9461    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9463    -e 's:$: $lt_compiler_flag:'`
9464    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9465    (eval "$lt_compile" 2>out/conftest.err)
9466    ac_status=$?
9467    cat out/conftest.err >&5
9468    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9470    then
9471      # The compiler can only warn and ignore the option if not recognized
9472      # So say no if there are warnings
9473      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9474      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9475      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9476        lt_cv_prog_compiler_c_o=yes
9477      fi
9478    fi
9479    chmod u+w . 2>&5
9480    $RM conftest*
9481    # SGI C++ compiler will create directory out/ii_files/ for
9482    # template instantiation
9483    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9484    $RM out/* && rmdir out
9485    cd ..
9486    $RM -r conftest
9487    $RM conftest*
9488
9489 fi
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9491 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9492
9493
9494
9495
9496
9497
9498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9499 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9500 if ${lt_cv_prog_compiler_c_o+:} false; then :
9501   $as_echo_n "(cached) " >&6
9502 else
9503   lt_cv_prog_compiler_c_o=no
9504    $RM -r conftest 2>/dev/null
9505    mkdir conftest
9506    cd conftest
9507    mkdir out
9508    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9509
9510    lt_compiler_flag="-o out/conftest2.$ac_objext"
9511    # Insert the option either (1) after the last *FLAGS variable, or
9512    # (2) before a word containing "conftest.", or (3) at the end.
9513    # Note that $ac_compile itself does not contain backslashes and begins
9514    # with a dollar sign (not a hyphen), so the echo should work correctly.
9515    lt_compile=`echo "$ac_compile" | $SED \
9516    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9517    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9518    -e 's:$: $lt_compiler_flag:'`
9519    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9520    (eval "$lt_compile" 2>out/conftest.err)
9521    ac_status=$?
9522    cat out/conftest.err >&5
9523    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9525    then
9526      # The compiler can only warn and ignore the option if not recognized
9527      # So say no if there are warnings
9528      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9529      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9530      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9531        lt_cv_prog_compiler_c_o=yes
9532      fi
9533    fi
9534    chmod u+w . 2>&5
9535    $RM conftest*
9536    # SGI C++ compiler will create directory out/ii_files/ for
9537    # template instantiation
9538    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9539    $RM out/* && rmdir out
9540    cd ..
9541    $RM -r conftest
9542    $RM conftest*
9543
9544 fi
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9546 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9547
9548
9549
9550
9551 hard_links=nottested
9552 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9553   # do not overwrite the value of need_locks provided by the user
9554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9555 $as_echo_n "checking if we can lock with hard links... " >&6; }
9556   hard_links=yes
9557   $RM conftest*
9558   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9559   touch conftest.a
9560   ln conftest.a conftest.b 2>&5 || hard_links=no
9561   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9563 $as_echo "$hard_links" >&6; }
9564   if test no = "$hard_links"; then
9565     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9566 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9567     need_locks=warn
9568   fi
9569 else
9570   need_locks=no
9571 fi
9572
9573
9574
9575
9576
9577
9578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9579 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9580
9581   runpath_var=
9582   allow_undefined_flag=
9583   always_export_symbols=no
9584   archive_cmds=
9585   archive_expsym_cmds=
9586   compiler_needs_object=no
9587   enable_shared_with_static_runtimes=no
9588   export_dynamic_flag_spec=
9589   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9590   hardcode_automatic=no
9591   hardcode_direct=no
9592   hardcode_direct_absolute=no
9593   hardcode_libdir_flag_spec=
9594   hardcode_libdir_separator=
9595   hardcode_minus_L=no
9596   hardcode_shlibpath_var=unsupported
9597   inherit_rpath=no
9598   link_all_deplibs=unknown
9599   module_cmds=
9600   module_expsym_cmds=
9601   old_archive_from_new_cmds=
9602   old_archive_from_expsyms_cmds=
9603   thread_safe_flag_spec=
9604   whole_archive_flag_spec=
9605   # include_expsyms should be a list of space-separated symbols to be *always*
9606   # included in the symbol list
9607   include_expsyms=
9608   # exclude_expsyms can be an extended regexp of symbols to exclude
9609   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9610   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9611   # as well as any symbol that contains 'd'.
9612   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9613   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9614   # platforms (ab)use it in PIC code, but their linkers get confused if
9615   # the symbol is explicitly referenced.  Since portable code cannot
9616   # rely on this symbol name, it's probably fine to never include it in
9617   # preloaded symbol tables.
9618   # Exclude shared library initialization/finalization symbols.
9619   extract_expsyms_cmds=
9620
9621   case $host_os in
9622   cygwin* | mingw* | pw32* | cegcc*)
9623     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9624     # When not using gcc, we currently assume that we are using
9625     # Microsoft Visual C++.
9626     if test yes != "$GCC"; then
9627       with_gnu_ld=no
9628     fi
9629     ;;
9630   interix*)
9631     # we just hope/assume this is gcc and not c89 (= MSVC++)
9632     with_gnu_ld=yes
9633     ;;
9634   openbsd* | bitrig*)
9635     with_gnu_ld=no
9636     ;;
9637   linux* | k*bsd*-gnu | gnu*)
9638     link_all_deplibs=no
9639     ;;
9640   esac
9641
9642   ld_shlibs=yes
9643
9644   # On some targets, GNU ld is compatible enough with the native linker
9645   # that we're better off using the native interface for both.
9646   lt_use_gnu_ld_interface=no
9647   if test yes = "$with_gnu_ld"; then
9648     case $host_os in
9649       aix*)
9650         # The AIX port of GNU ld has always aspired to compatibility
9651         # with the native linker.  However, as the warning in the GNU ld
9652         # block says, versions before 2.19.5* couldn't really create working
9653         # shared libraries, regardless of the interface used.
9654         case `$LD -v 2>&1` in
9655           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9656           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9657           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9658           *)
9659             lt_use_gnu_ld_interface=yes
9660             ;;
9661         esac
9662         ;;
9663       *)
9664         lt_use_gnu_ld_interface=yes
9665         ;;
9666     esac
9667   fi
9668
9669   if test yes = "$lt_use_gnu_ld_interface"; then
9670     # If archive_cmds runs LD, not CC, wlarc should be empty
9671     wlarc='$wl'
9672
9673     # Set some defaults for GNU ld with shared library support. These
9674     # are reset later if shared libraries are not supported. Putting them
9675     # here allows them to be overridden if necessary.
9676     runpath_var=LD_RUN_PATH
9677     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9678     export_dynamic_flag_spec='$wl--export-dynamic'
9679     # ancient GNU ld didn't support --whole-archive et. al.
9680     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9681       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9682     else
9683       whole_archive_flag_spec=
9684     fi
9685     supports_anon_versioning=no
9686     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9687       *GNU\ gold*) supports_anon_versioning=yes ;;
9688       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9689       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9690       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9691       *\ 2.11.*) ;; # other 2.11 versions
9692       *) supports_anon_versioning=yes ;;
9693     esac
9694
9695     # See if GNU ld supports shared libraries.
9696     case $host_os in
9697     aix[3-9]*)
9698       # On AIX/PPC, the GNU linker is very broken
9699       if test ia64 != "$host_cpu"; then
9700         ld_shlibs=no
9701         cat <<_LT_EOF 1>&2
9702
9703 *** Warning: the GNU linker, at least up to release 2.19, is reported
9704 *** to be unable to reliably create shared libraries on AIX.
9705 *** Therefore, libtool is disabling shared libraries support.  If you
9706 *** really care for shared libraries, you may want to install binutils
9707 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9708 *** You will then need to restart the configuration process.
9709
9710 _LT_EOF
9711       fi
9712       ;;
9713
9714     amigaos*)
9715       case $host_cpu in
9716       powerpc)
9717             # see comment about AmigaOS4 .so support
9718             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9719             archive_expsym_cmds=''
9720         ;;
9721       m68k)
9722             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)'
9723             hardcode_libdir_flag_spec='-L$libdir'
9724             hardcode_minus_L=yes
9725         ;;
9726       esac
9727       ;;
9728
9729     beos*)
9730       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9731         allow_undefined_flag=unsupported
9732         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9733         # support --undefined.  This deserves some investigation.  FIXME
9734         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9735       else
9736         ld_shlibs=no
9737       fi
9738       ;;
9739
9740     cygwin* | mingw* | pw32* | cegcc*)
9741       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9742       # as there is no search path for DLLs.
9743       hardcode_libdir_flag_spec='-L$libdir'
9744       export_dynamic_flag_spec='$wl--export-all-symbols'
9745       allow_undefined_flag=unsupported
9746       always_export_symbols=no
9747       enable_shared_with_static_runtimes=yes
9748       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'
9749       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9750
9751       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9752         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9753         # If the export-symbols file already is a .def file, use it as
9754         # is; otherwise, prepend EXPORTS...
9755         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9756           cp $export_symbols $output_objdir/$soname.def;
9757         else
9758           echo EXPORTS > $output_objdir/$soname.def;
9759           cat $export_symbols >> $output_objdir/$soname.def;
9760         fi~
9761         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9762       else
9763         ld_shlibs=no
9764       fi
9765       ;;
9766
9767     haiku*)
9768       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9769       link_all_deplibs=yes
9770       ;;
9771
9772     os2*)
9773       hardcode_libdir_flag_spec='-L$libdir'
9774       hardcode_minus_L=yes
9775       allow_undefined_flag=unsupported
9776       shrext_cmds=.dll
9777       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9778         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9779         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9780         $ECHO EXPORTS >> $output_objdir/$libname.def~
9781         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9782         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9783         emximp -o $lib $output_objdir/$libname.def'
9784       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9785         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9786         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9787         $ECHO EXPORTS >> $output_objdir/$libname.def~
9788         prefix_cmds="$SED"~
9789         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9790           prefix_cmds="$prefix_cmds -e 1d";
9791         fi~
9792         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9793         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9794         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9795         emximp -o $lib $output_objdir/$libname.def'
9796       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9797       enable_shared_with_static_runtimes=yes
9798       ;;
9799
9800     interix[3-9]*)
9801       hardcode_direct=no
9802       hardcode_shlibpath_var=no
9803       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9804       export_dynamic_flag_spec='$wl-E'
9805       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9806       # Instead, shared libraries are loaded at an image base (0x10000000 by
9807       # default) and relocated if they conflict, which is a slow very memory
9808       # consuming and fragmenting process.  To avoid this, we pick a random,
9809       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9810       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9811       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9812       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'
9813       ;;
9814
9815     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9816       tmp_diet=no
9817       if test linux-dietlibc = "$host_os"; then
9818         case $cc_basename in
9819           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9820         esac
9821       fi
9822       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9823          && test no = "$tmp_diet"
9824       then
9825         tmp_addflag=' $pic_flag'
9826         tmp_sharedflag='-shared'
9827         case $cc_basename,$host_cpu in
9828         pgcc*)                          # Portland Group C compiler
9829           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'
9830           tmp_addflag=' $pic_flag'
9831           ;;
9832         pgf77* | pgf90* | pgf95* | pgfortran*)
9833                                         # Portland Group f77 and f90 compilers
9834           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'
9835           tmp_addflag=' $pic_flag -Mnomain' ;;
9836         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9837           tmp_addflag=' -i_dynamic' ;;
9838         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9839           tmp_addflag=' -i_dynamic -nofor_main' ;;
9840         ifc* | ifort*)                  # Intel Fortran compiler
9841           tmp_addflag=' -nofor_main' ;;
9842         lf95*)                          # Lahey Fortran 8.1
9843           whole_archive_flag_spec=
9844           tmp_sharedflag='--shared' ;;
9845         nagfor*)                        # NAGFOR 5.3
9846           tmp_sharedflag='-Wl,-shared' ;;
9847         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9848           tmp_sharedflag='-qmkshrobj'
9849           tmp_addflag= ;;
9850         nvcc*)  # Cuda Compiler Driver 2.2
9851           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'
9852           compiler_needs_object=yes
9853           ;;
9854         esac
9855         case `$CC -V 2>&1 | sed 5q` in
9856         *Sun\ C*)                       # Sun C 5.9
9857           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'
9858           compiler_needs_object=yes
9859           tmp_sharedflag='-G' ;;
9860         *Sun\ F*)                       # Sun Fortran 8.3
9861           tmp_sharedflag='-G' ;;
9862         esac
9863         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9864
9865         if test yes = "$supports_anon_versioning"; then
9866           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9867             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9868             echo "local: *; };" >> $output_objdir/$libname.ver~
9869             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9870         fi
9871
9872         case $cc_basename in
9873         tcc*)
9874           export_dynamic_flag_spec='-rdynamic'
9875           ;;
9876         xlf* | bgf* | bgxlf* | mpixlf*)
9877           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9878           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9879           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9880           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9881           if test yes = "$supports_anon_versioning"; then
9882             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9883               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9884               echo "local: *; };" >> $output_objdir/$libname.ver~
9885               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9886           fi
9887           ;;
9888         esac
9889       else
9890         ld_shlibs=no
9891       fi
9892       ;;
9893
9894     netbsd* | netbsdelf*-gnu)
9895       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9896         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9897         wlarc=
9898       else
9899         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9900         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9901       fi
9902       ;;
9903
9904     solaris*)
9905       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9906         ld_shlibs=no
9907         cat <<_LT_EOF 1>&2
9908
9909 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9910 *** create shared libraries on Solaris systems.  Therefore, libtool
9911 *** is disabling shared libraries support.  We urge you to upgrade GNU
9912 *** binutils to release 2.9.1 or newer.  Another option is to modify
9913 *** your PATH or compiler configuration so that the native linker is
9914 *** used, and then restart.
9915
9916 _LT_EOF
9917       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9918         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9919         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9920       else
9921         ld_shlibs=no
9922       fi
9923       ;;
9924
9925     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9926       case `$LD -v 2>&1` in
9927         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9928         ld_shlibs=no
9929         cat <<_LT_EOF 1>&2
9930
9931 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9932 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9933 *** is disabling shared libraries support.  We urge you to upgrade GNU
9934 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9935 *** your PATH or compiler configuration so that the native linker is
9936 *** used, and then restart.
9937
9938 _LT_EOF
9939         ;;
9940         *)
9941           # For security reasons, it is highly recommended that you always
9942           # use absolute paths for naming shared libraries, and exclude the
9943           # DT_RUNPATH tag from executables and libraries.  But doing so
9944           # requires that you compile everything twice, which is a pain.
9945           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9946             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9947             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9948             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9949           else
9950             ld_shlibs=no
9951           fi
9952         ;;
9953       esac
9954       ;;
9955
9956     sunos4*)
9957       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9958       wlarc=
9959       hardcode_direct=yes
9960       hardcode_shlibpath_var=no
9961       ;;
9962
9963     *)
9964       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9965         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9966         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9967       else
9968         ld_shlibs=no
9969       fi
9970       ;;
9971     esac
9972
9973     if test no = "$ld_shlibs"; then
9974       runpath_var=
9975       hardcode_libdir_flag_spec=
9976       export_dynamic_flag_spec=
9977       whole_archive_flag_spec=
9978     fi
9979   else
9980     # PORTME fill in a description of your system's linker (not GNU ld)
9981     case $host_os in
9982     aix3*)
9983       allow_undefined_flag=unsupported
9984       always_export_symbols=yes
9985       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'
9986       # Note: this linker hardcodes the directories in LIBPATH if there
9987       # are no directories specified by -L.
9988       hardcode_minus_L=yes
9989       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9990         # Neither direct hardcoding nor static linking is supported with a
9991         # broken collect2.
9992         hardcode_direct=unsupported
9993       fi
9994       ;;
9995
9996     aix[4-9]*)
9997       if test ia64 = "$host_cpu"; then
9998         # On IA64, the linker does run time linking by default, so we don't
9999         # have to do anything special.
10000         aix_use_runtimelinking=no
10001         exp_sym_flag='-Bexport'
10002         no_entry_flag=
10003       else
10004         # If we're using GNU nm, then we don't want the "-C" option.
10005         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10006         # Without the "-l" option, or with the "-B" option, AIX nm treats
10007         # weak defined symbols like other global defined symbols, whereas
10008         # GNU nm marks them as "W".
10009         # While the 'weak' keyword is ignored in the Export File, we need
10010         # it in the Import File for the 'aix-soname' feature, so we have
10011         # to replace the "-B" option with "-P" for AIX nm.
10012         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10013           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'
10014         else
10015           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'
10016         fi
10017         aix_use_runtimelinking=no
10018
10019         # Test if we are trying to use run time linking or normal
10020         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10021         # have runtime linking enabled, and use it for executables.
10022         # For shared libraries, we enable/disable runtime linking
10023         # depending on the kind of the shared library created -
10024         # when "with_aix_soname,aix_use_runtimelinking" is:
10025         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10026         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10027         #            lib.a           static archive
10028         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10029         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10030         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10031         #            lib.a(lib.so.V) shared, rtl:no
10032         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10033         #            lib.a           static archive
10034         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10035           for ld_flag in $LDFLAGS; do
10036           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10037             aix_use_runtimelinking=yes
10038             break
10039           fi
10040           done
10041           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10042             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10043             # so we don't have lib.a shared libs to link our executables.
10044             # We have to force runtime linking in this case.
10045             aix_use_runtimelinking=yes
10046             LDFLAGS="$LDFLAGS -Wl,-brtl"
10047           fi
10048           ;;
10049         esac
10050
10051         exp_sym_flag='-bexport'
10052         no_entry_flag='-bnoentry'
10053       fi
10054
10055       # When large executables or shared objects are built, AIX ld can
10056       # have problems creating the table of contents.  If linking a library
10057       # or program results in "error TOC overflow" add -mminimal-toc to
10058       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10059       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10060
10061       archive_cmds=''
10062       hardcode_direct=yes
10063       hardcode_direct_absolute=yes
10064       hardcode_libdir_separator=':'
10065       link_all_deplibs=yes
10066       file_list_spec='$wl-f,'
10067       case $with_aix_soname,$aix_use_runtimelinking in
10068       aix,*) ;; # traditional, no import file
10069       svr4,* | *,yes) # use import file
10070         # The Import File defines what to hardcode.
10071         hardcode_direct=no
10072         hardcode_direct_absolute=no
10073         ;;
10074       esac
10075
10076       if test yes = "$GCC"; then
10077         case $host_os in aix4.[012]|aix4.[012].*)
10078         # We only want to do this on AIX 4.2 and lower, the check
10079         # below for broken collect2 doesn't work under 4.3+
10080           collect2name=`$CC -print-prog-name=collect2`
10081           if test -f "$collect2name" &&
10082            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10083           then
10084           # We have reworked collect2
10085           :
10086           else
10087           # We have old collect2
10088           hardcode_direct=unsupported
10089           # It fails to find uninstalled libraries when the uninstalled
10090           # path is not listed in the libpath.  Setting hardcode_minus_L
10091           # to unsupported forces relinking
10092           hardcode_minus_L=yes
10093           hardcode_libdir_flag_spec='-L$libdir'
10094           hardcode_libdir_separator=
10095           fi
10096           ;;
10097         esac
10098         shared_flag='-shared'
10099         if test yes = "$aix_use_runtimelinking"; then
10100           shared_flag="$shared_flag "'$wl-G'
10101         fi
10102         # Need to ensure runtime linking is disabled for the traditional
10103         # shared library, or the linker may eventually find shared libraries
10104         # /with/ Import File - we do not want to mix them.
10105         shared_flag_aix='-shared'
10106         shared_flag_svr4='-shared $wl-G'
10107       else
10108         # not using gcc
10109         if test ia64 = "$host_cpu"; then
10110         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10111         # chokes on -Wl,-G. The following line is correct:
10112           shared_flag='-G'
10113         else
10114           if test yes = "$aix_use_runtimelinking"; then
10115             shared_flag='$wl-G'
10116           else
10117             shared_flag='$wl-bM:SRE'
10118           fi
10119           shared_flag_aix='$wl-bM:SRE'
10120           shared_flag_svr4='$wl-G'
10121         fi
10122       fi
10123
10124       export_dynamic_flag_spec='$wl-bexpall'
10125       # It seems that -bexpall does not export symbols beginning with
10126       # underscore (_), so it is better to generate a list of symbols to export.
10127       always_export_symbols=yes
10128       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10129         # Warning - without using the other runtime loading flags (-brtl),
10130         # -berok will link without error, but may produce a broken library.
10131         allow_undefined_flag='-berok'
10132         # Determine the default libpath from the value encoded in an
10133         # empty executable.
10134         if test set = "${lt_cv_aix_libpath+set}"; then
10135   aix_libpath=$lt_cv_aix_libpath
10136 else
10137   if ${lt_cv_aix_libpath_+:} false; then :
10138   $as_echo_n "(cached) " >&6
10139 else
10140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h.  */
10142
10143 int
10144 main ()
10145 {
10146
10147   ;
10148   return 0;
10149 }
10150 _ACEOF
10151 if ac_fn_c_try_link "$LINENO"; then :
10152
10153   lt_aix_libpath_sed='
10154       /Import File Strings/,/^$/ {
10155           /^0/ {
10156               s/^0  *\([^ ]*\) *$/\1/
10157               p
10158           }
10159       }'
10160   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10161   # Check for a 64-bit object if we didn't find anything.
10162   if test -z "$lt_cv_aix_libpath_"; then
10163     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10164   fi
10165 fi
10166 rm -f core conftest.err conftest.$ac_objext \
10167     conftest$ac_exeext conftest.$ac_ext
10168   if test -z "$lt_cv_aix_libpath_"; then
10169     lt_cv_aix_libpath_=/usr/lib:/lib
10170   fi
10171
10172 fi
10173
10174   aix_libpath=$lt_cv_aix_libpath_
10175 fi
10176
10177         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10178         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
10179       else
10180         if test ia64 = "$host_cpu"; then
10181           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10182           allow_undefined_flag="-z nodefs"
10183           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"
10184         else
10185          # Determine the default libpath from the value encoded in an
10186          # empty executable.
10187          if test set = "${lt_cv_aix_libpath+set}"; then
10188   aix_libpath=$lt_cv_aix_libpath
10189 else
10190   if ${lt_cv_aix_libpath_+:} false; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h.  */
10195
10196 int
10197 main ()
10198 {
10199
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 if ac_fn_c_try_link "$LINENO"; then :
10205
10206   lt_aix_libpath_sed='
10207       /Import File Strings/,/^$/ {
10208           /^0/ {
10209               s/^0  *\([^ ]*\) *$/\1/
10210               p
10211           }
10212       }'
10213   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10214   # Check for a 64-bit object if we didn't find anything.
10215   if test -z "$lt_cv_aix_libpath_"; then
10216     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10217   fi
10218 fi
10219 rm -f core conftest.err conftest.$ac_objext \
10220     conftest$ac_exeext conftest.$ac_ext
10221   if test -z "$lt_cv_aix_libpath_"; then
10222     lt_cv_aix_libpath_=/usr/lib:/lib
10223   fi
10224
10225 fi
10226
10227   aix_libpath=$lt_cv_aix_libpath_
10228 fi
10229
10230          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10231           # Warning - without using the other run time loading flags,
10232           # -berok will link without error, but may produce a broken library.
10233           no_undefined_flag=' $wl-bernotok'
10234           allow_undefined_flag=' $wl-berok'
10235           if test yes = "$with_gnu_ld"; then
10236             # We only use this code for GNU lds that support --whole-archive.
10237             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10238           else
10239             # Exported symbols can be pulled into shared objects from archives
10240             whole_archive_flag_spec='$convenience'
10241           fi
10242           archive_cmds_need_lc=yes
10243           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10244           # -brtl affects multiple linker settings, -berok does not and is overridden later
10245           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10246           if test svr4 != "$with_aix_soname"; then
10247             # This is similar to how AIX traditionally builds its shared libraries.
10248             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'
10249           fi
10250           if test aix != "$with_aix_soname"; then
10251             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'
10252           else
10253             # used by -dlpreopen to get the symbols
10254             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10255           fi
10256           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10257         fi
10258       fi
10259       ;;
10260
10261     amigaos*)
10262       case $host_cpu in
10263       powerpc)
10264             # see comment about AmigaOS4 .so support
10265             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10266             archive_expsym_cmds=''
10267         ;;
10268       m68k)
10269             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)'
10270             hardcode_libdir_flag_spec='-L$libdir'
10271             hardcode_minus_L=yes
10272         ;;
10273       esac
10274       ;;
10275
10276     bsdi[45]*)
10277       export_dynamic_flag_spec=-rdynamic
10278       ;;
10279
10280     cygwin* | mingw* | pw32* | cegcc*)
10281       # When not using gcc, we currently assume that we are using
10282       # Microsoft Visual C++.
10283       # hardcode_libdir_flag_spec is actually meaningless, as there is
10284       # no search path for DLLs.
10285       case $cc_basename in
10286       cl*)
10287         # Native MSVC
10288         hardcode_libdir_flag_spec=' '
10289         allow_undefined_flag=unsupported
10290         always_export_symbols=yes
10291         file_list_spec='@'
10292         # Tell ltmain to make .lib files, not .a files.
10293         libext=lib
10294         # Tell ltmain to make .dll files, not .so files.
10295         shrext_cmds=.dll
10296         # FIXME: Setting linknames here is a bad hack.
10297         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10298         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10299             cp "$export_symbols" "$output_objdir/$soname.def";
10300             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10301           else
10302             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10303           fi~
10304           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10305           linknames='
10306         # The linker will not automatically build a static lib if we build a DLL.
10307         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10308         enable_shared_with_static_runtimes=yes
10309         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10310         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10311         # Don't use ranlib
10312         old_postinstall_cmds='chmod 644 $oldlib'
10313         postlink_cmds='lt_outputfile="@OUTPUT@"~
10314           lt_tool_outputfile="@TOOL_OUTPUT@"~
10315           case $lt_outputfile in
10316             *.exe|*.EXE) ;;
10317             *)
10318               lt_outputfile=$lt_outputfile.exe
10319               lt_tool_outputfile=$lt_tool_outputfile.exe
10320               ;;
10321           esac~
10322           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10323             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10324             $RM "$lt_outputfile.manifest";
10325           fi'
10326         ;;
10327       *)
10328         # Assume MSVC wrapper
10329         hardcode_libdir_flag_spec=' '
10330         allow_undefined_flag=unsupported
10331         # Tell ltmain to make .lib files, not .a files.
10332         libext=lib
10333         # Tell ltmain to make .dll files, not .so files.
10334         shrext_cmds=.dll
10335         # FIXME: Setting linknames here is a bad hack.
10336         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10337         # The linker will automatically build a .lib file if we build a DLL.
10338         old_archive_from_new_cmds='true'
10339         # FIXME: Should let the user specify the lib program.
10340         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10341         enable_shared_with_static_runtimes=yes
10342         ;;
10343       esac
10344       ;;
10345
10346     darwin* | rhapsody*)
10347
10348
10349   archive_cmds_need_lc=no
10350   hardcode_direct=no
10351   hardcode_automatic=yes
10352   hardcode_shlibpath_var=unsupported
10353   if test yes = "$lt_cv_ld_force_load"; then
10354     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\"`'
10355
10356   else
10357     whole_archive_flag_spec=''
10358   fi
10359   link_all_deplibs=yes
10360   allow_undefined_flag=$_lt_dar_allow_undefined
10361   case $cc_basename in
10362      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10363      *) _lt_dar_can_shared=$GCC ;;
10364   esac
10365   if test yes = "$_lt_dar_can_shared"; then
10366     output_verbose_link_cmd=func_echo_all
10367     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10368     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10369     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"
10370     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"
10371
10372   else
10373   ld_shlibs=no
10374   fi
10375
10376       ;;
10377
10378     dgux*)
10379       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380       hardcode_libdir_flag_spec='-L$libdir'
10381       hardcode_shlibpath_var=no
10382       ;;
10383
10384     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10385     # support.  Future versions do this automatically, but an explicit c++rt0.o
10386     # does not break anything, and helps significantly (at the cost of a little
10387     # extra space).
10388     freebsd2.2*)
10389       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10390       hardcode_libdir_flag_spec='-R$libdir'
10391       hardcode_direct=yes
10392       hardcode_shlibpath_var=no
10393       ;;
10394
10395     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10396     freebsd2.*)
10397       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10398       hardcode_direct=yes
10399       hardcode_minus_L=yes
10400       hardcode_shlibpath_var=no
10401       ;;
10402
10403     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10404     freebsd* | dragonfly*)
10405       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406       hardcode_libdir_flag_spec='-R$libdir'
10407       hardcode_direct=yes
10408       hardcode_shlibpath_var=no
10409       ;;
10410
10411     hpux9*)
10412       if test yes = "$GCC"; then
10413         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 -f $output_objdir/$soname $lib'
10414       else
10415         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 -f $output_objdir/$soname $lib'
10416       fi
10417       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10418       hardcode_libdir_separator=:
10419       hardcode_direct=yes
10420
10421       # hardcode_minus_L: Not really in the search PATH,
10422       # but as the default location of the library.
10423       hardcode_minus_L=yes
10424       export_dynamic_flag_spec='$wl-E'
10425       ;;
10426
10427     hpux10*)
10428       if test yes,no = "$GCC,$with_gnu_ld"; then
10429         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10430       else
10431         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10432       fi
10433       if test no = "$with_gnu_ld"; then
10434         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10435         hardcode_libdir_separator=:
10436         hardcode_direct=yes
10437         hardcode_direct_absolute=yes
10438         export_dynamic_flag_spec='$wl-E'
10439         # hardcode_minus_L: Not really in the search PATH,
10440         # but as the default location of the library.
10441         hardcode_minus_L=yes
10442       fi
10443       ;;
10444
10445     hpux11*)
10446       if test yes,no = "$GCC,$with_gnu_ld"; then
10447         case $host_cpu in
10448         hppa*64*)
10449           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10450           ;;
10451         ia64*)
10452           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10453           ;;
10454         *)
10455           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10456           ;;
10457         esac
10458       else
10459         case $host_cpu in
10460         hppa*64*)
10461           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10462           ;;
10463         ia64*)
10464           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10465           ;;
10466         *)
10467
10468           # Older versions of the 11.00 compiler do not understand -b yet
10469           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10470           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10471 $as_echo_n "checking if $CC understands -b... " >&6; }
10472 if ${lt_cv_prog_compiler__b+:} false; then :
10473   $as_echo_n "(cached) " >&6
10474 else
10475   lt_cv_prog_compiler__b=no
10476    save_LDFLAGS=$LDFLAGS
10477    LDFLAGS="$LDFLAGS -b"
10478    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10479    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10480      # The linker can only warn and ignore the option if not recognized
10481      # So say no if there are warnings
10482      if test -s conftest.err; then
10483        # Append any errors to the config.log.
10484        cat conftest.err 1>&5
10485        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10486        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10487        if diff conftest.exp conftest.er2 >/dev/null; then
10488          lt_cv_prog_compiler__b=yes
10489        fi
10490      else
10491        lt_cv_prog_compiler__b=yes
10492      fi
10493    fi
10494    $RM -r conftest*
10495    LDFLAGS=$save_LDFLAGS
10496
10497 fi
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10499 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10500
10501 if test yes = "$lt_cv_prog_compiler__b"; then
10502     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10503 else
10504     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10505 fi
10506
10507           ;;
10508         esac
10509       fi
10510       if test no = "$with_gnu_ld"; then
10511         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10512         hardcode_libdir_separator=:
10513
10514         case $host_cpu in
10515         hppa*64*|ia64*)
10516           hardcode_direct=no
10517           hardcode_shlibpath_var=no
10518           ;;
10519         *)
10520           hardcode_direct=yes
10521           hardcode_direct_absolute=yes
10522           export_dynamic_flag_spec='$wl-E'
10523
10524           # hardcode_minus_L: Not really in the search PATH,
10525           # but as the default location of the library.
10526           hardcode_minus_L=yes
10527           ;;
10528         esac
10529       fi
10530       ;;
10531
10532     irix5* | irix6* | nonstopux*)
10533       if test yes = "$GCC"; then
10534         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'
10535         # Try to use the -exported_symbol ld option, if it does not
10536         # work, assume that -exports_file does not work either and
10537         # implicitly export all symbols.
10538         # This should be the same for all languages, so no per-tag cache variable.
10539         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10540 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10541 if ${lt_cv_irix_exported_symbol+:} false; then :
10542   $as_echo_n "(cached) " >&6
10543 else
10544   save_LDFLAGS=$LDFLAGS
10545            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10546            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h.  */
10548 int foo (void) { return 0; }
10549 _ACEOF
10550 if ac_fn_c_try_link "$LINENO"; then :
10551   lt_cv_irix_exported_symbol=yes
10552 else
10553   lt_cv_irix_exported_symbol=no
10554 fi
10555 rm -f core conftest.err conftest.$ac_objext \
10556     conftest$ac_exeext conftest.$ac_ext
10557            LDFLAGS=$save_LDFLAGS
10558 fi
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10560 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10561         if test yes = "$lt_cv_irix_exported_symbol"; then
10562           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'
10563         fi
10564         link_all_deplibs=no
10565       else
10566         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'
10567         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'
10568       fi
10569       archive_cmds_need_lc='no'
10570       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10571       hardcode_libdir_separator=:
10572       inherit_rpath=yes
10573       link_all_deplibs=yes
10574       ;;
10575
10576     linux*)
10577       case $cc_basename in
10578       tcc*)
10579         # Fabrice Bellard et al's Tiny C Compiler
10580         ld_shlibs=yes
10581         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10582         ;;
10583       esac
10584       ;;
10585
10586     netbsd* | netbsdelf*-gnu)
10587       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10588         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10589       else
10590         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10591       fi
10592       hardcode_libdir_flag_spec='-R$libdir'
10593       hardcode_direct=yes
10594       hardcode_shlibpath_var=no
10595       ;;
10596
10597     newsos6)
10598       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599       hardcode_direct=yes
10600       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10601       hardcode_libdir_separator=:
10602       hardcode_shlibpath_var=no
10603       ;;
10604
10605     *nto* | *qnx*)
10606       ;;
10607
10608     openbsd* | bitrig*)
10609       if test -f /usr/libexec/ld.so; then
10610         hardcode_direct=yes
10611         hardcode_shlibpath_var=no
10612         hardcode_direct_absolute=yes
10613         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10614           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10615           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10616           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10617           export_dynamic_flag_spec='$wl-E'
10618         else
10619           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10620           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10621         fi
10622       else
10623         ld_shlibs=no
10624       fi
10625       ;;
10626
10627     os2*)
10628       hardcode_libdir_flag_spec='-L$libdir'
10629       hardcode_minus_L=yes
10630       allow_undefined_flag=unsupported
10631       shrext_cmds=.dll
10632       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10633         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10634         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10635         $ECHO EXPORTS >> $output_objdir/$libname.def~
10636         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10637         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10638         emximp -o $lib $output_objdir/$libname.def'
10639       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10640         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10641         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10642         $ECHO EXPORTS >> $output_objdir/$libname.def~
10643         prefix_cmds="$SED"~
10644         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10645           prefix_cmds="$prefix_cmds -e 1d";
10646         fi~
10647         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10648         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10649         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10650         emximp -o $lib $output_objdir/$libname.def'
10651       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10652       enable_shared_with_static_runtimes=yes
10653       ;;
10654
10655     osf3*)
10656       if test yes = "$GCC"; then
10657         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10658         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'
10659       else
10660         allow_undefined_flag=' -expect_unresolved \*'
10661         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'
10662       fi
10663       archive_cmds_need_lc='no'
10664       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10665       hardcode_libdir_separator=:
10666       ;;
10667
10668     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10669       if test yes = "$GCC"; then
10670         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10671         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'
10672         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10673       else
10674         allow_undefined_flag=' -expect_unresolved \*'
10675         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'
10676         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~
10677           $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'
10678
10679         # Both c and cxx compiler support -rpath directly
10680         hardcode_libdir_flag_spec='-rpath $libdir'
10681       fi
10682       archive_cmds_need_lc='no'
10683       hardcode_libdir_separator=:
10684       ;;
10685
10686     solaris*)
10687       no_undefined_flag=' -z defs'
10688       if test yes = "$GCC"; then
10689         wlarc='$wl'
10690         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10691         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10692           $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'
10693       else
10694         case `$CC -V 2>&1` in
10695         *"Compilers 5.0"*)
10696           wlarc=''
10697           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10699             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10700           ;;
10701         *)
10702           wlarc='$wl'
10703           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10704           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10705             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10706           ;;
10707         esac
10708       fi
10709       hardcode_libdir_flag_spec='-R$libdir'
10710       hardcode_shlibpath_var=no
10711       case $host_os in
10712       solaris2.[0-5] | solaris2.[0-5].*) ;;
10713       *)
10714         # The compiler driver will combine and reorder linker options,
10715         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10716         # but is careful enough not to reorder.
10717         # Supported since Solaris 2.6 (maybe 2.5.1?)
10718         if test yes = "$GCC"; then
10719           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10720         else
10721           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10722         fi
10723         ;;
10724       esac
10725       link_all_deplibs=yes
10726       ;;
10727
10728     sunos4*)
10729       if test sequent = "$host_vendor"; then
10730         # Use $CC to link under sequent, because it throws in some extra .o
10731         # files that make .init and .fini sections work.
10732         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10733       else
10734         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10735       fi
10736       hardcode_libdir_flag_spec='-L$libdir'
10737       hardcode_direct=yes
10738       hardcode_minus_L=yes
10739       hardcode_shlibpath_var=no
10740       ;;
10741
10742     sysv4)
10743       case $host_vendor in
10744         sni)
10745           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746           hardcode_direct=yes # is this really true???
10747         ;;
10748         siemens)
10749           ## LD is ld it makes a PLAMLIB
10750           ## CC just makes a GrossModule.
10751           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10752           reload_cmds='$CC -r -o $output$reload_objs'
10753           hardcode_direct=no
10754         ;;
10755         motorola)
10756           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10758         ;;
10759       esac
10760       runpath_var='LD_RUN_PATH'
10761       hardcode_shlibpath_var=no
10762       ;;
10763
10764     sysv4.3*)
10765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766       hardcode_shlibpath_var=no
10767       export_dynamic_flag_spec='-Bexport'
10768       ;;
10769
10770     sysv4*MP*)
10771       if test -d /usr/nec; then
10772         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773         hardcode_shlibpath_var=no
10774         runpath_var=LD_RUN_PATH
10775         hardcode_runpath_var=yes
10776         ld_shlibs=yes
10777       fi
10778       ;;
10779
10780     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10781       no_undefined_flag='$wl-z,text'
10782       archive_cmds_need_lc=no
10783       hardcode_shlibpath_var=no
10784       runpath_var='LD_RUN_PATH'
10785
10786       if test yes = "$GCC"; then
10787         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789       else
10790         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792       fi
10793       ;;
10794
10795     sysv5* | sco3.2v5* | sco5v6*)
10796       # Note: We CANNOT use -z defs as we might desire, because we do not
10797       # link with -lc, and that would cause any symbols used from libc to
10798       # always be unresolved, which means just about no library would
10799       # ever link correctly.  If we're not using GNU ld we use -z text
10800       # though, which does catch some bad symbols but isn't as heavy-handed
10801       # as -z defs.
10802       no_undefined_flag='$wl-z,text'
10803       allow_undefined_flag='$wl-z,nodefs'
10804       archive_cmds_need_lc=no
10805       hardcode_shlibpath_var=no
10806       hardcode_libdir_flag_spec='$wl-R,$libdir'
10807       hardcode_libdir_separator=':'
10808       link_all_deplibs=yes
10809       export_dynamic_flag_spec='$wl-Bexport'
10810       runpath_var='LD_RUN_PATH'
10811
10812       if test yes = "$GCC"; then
10813         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10815       else
10816         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10818       fi
10819       ;;
10820
10821     uts4*)
10822       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10823       hardcode_libdir_flag_spec='-L$libdir'
10824       hardcode_shlibpath_var=no
10825       ;;
10826
10827     *)
10828       ld_shlibs=no
10829       ;;
10830     esac
10831
10832     if test sni = "$host_vendor"; then
10833       case $host in
10834       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10835         export_dynamic_flag_spec='$wl-Blargedynsym'
10836         ;;
10837       esac
10838     fi
10839   fi
10840
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10842 $as_echo "$ld_shlibs" >&6; }
10843 test no = "$ld_shlibs" && can_build_shared=no
10844
10845 with_gnu_ld=$with_gnu_ld
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861 #
10862 # Do we need to explicitly link libc?
10863 #
10864 case "x$archive_cmds_need_lc" in
10865 x|xyes)
10866   # Assume -lc should be added
10867   archive_cmds_need_lc=yes
10868
10869   if test yes,yes = "$GCC,$enable_shared"; then
10870     case $archive_cmds in
10871     *'~'*)
10872       # FIXME: we may have to deal with multi-command sequences.
10873       ;;
10874     '$CC '*)
10875       # Test whether the compiler implicitly links with -lc since on some
10876       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10877       # to ld, don't add -lc before -lgcc.
10878       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10879 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10880 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10881   $as_echo_n "(cached) " >&6
10882 else
10883   $RM conftest*
10884         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10885
10886         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10887   (eval $ac_compile) 2>&5
10888   ac_status=$?
10889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890   test $ac_status = 0; } 2>conftest.err; then
10891           soname=conftest
10892           lib=conftest
10893           libobjs=conftest.$ac_objext
10894           deplibs=
10895           wl=$lt_prog_compiler_wl
10896           pic_flag=$lt_prog_compiler_pic
10897           compiler_flags=-v
10898           linker_flags=-v
10899           verstring=
10900           output_objdir=.
10901           libname=conftest
10902           lt_save_allow_undefined_flag=$allow_undefined_flag
10903           allow_undefined_flag=
10904           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10905   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10906   ac_status=$?
10907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10908   test $ac_status = 0; }
10909           then
10910             lt_cv_archive_cmds_need_lc=no
10911           else
10912             lt_cv_archive_cmds_need_lc=yes
10913           fi
10914           allow_undefined_flag=$lt_save_allow_undefined_flag
10915         else
10916           cat conftest.err 1>&5
10917         fi
10918         $RM conftest*
10919
10920 fi
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10922 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10923       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10924       ;;
10925     esac
10926   fi
10927   ;;
10928 esac
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11082 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11083
11084 if test yes = "$GCC"; then
11085   case $host_os in
11086     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11087     *) lt_awk_arg='/^libraries:/' ;;
11088   esac
11089   case $host_os in
11090     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11091     *) lt_sed_strip_eq='s|=/|/|g' ;;
11092   esac
11093   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11094   case $lt_search_path_spec in
11095   *\;*)
11096     # if the path contains ";" then we assume it to be the separator
11097     # otherwise default to the standard path separator (i.e. ":") - it is
11098     # assumed that no part of a normal pathname contains ";" but that should
11099     # okay in the real world where ";" in dirpaths is itself problematic.
11100     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11101     ;;
11102   *)
11103     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11104     ;;
11105   esac
11106   # Ok, now we have the path, separated by spaces, we can step through it
11107   # and add multilib dir if necessary...
11108   lt_tmp_lt_search_path_spec=
11109   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11110   # ...but if some path component already ends with the multilib dir we assume
11111   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11112   case "$lt_multi_os_dir; $lt_search_path_spec " in
11113   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11114     lt_multi_os_dir=
11115     ;;
11116   esac
11117   for lt_sys_path in $lt_search_path_spec; do
11118     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11119       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11120     elif test -n "$lt_multi_os_dir"; then
11121       test -d "$lt_sys_path" && \
11122         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11123     fi
11124   done
11125   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11126 BEGIN {RS = " "; FS = "/|\n";} {
11127   lt_foo = "";
11128   lt_count = 0;
11129   for (lt_i = NF; lt_i > 0; lt_i--) {
11130     if ($lt_i != "" && $lt_i != ".") {
11131       if ($lt_i == "..") {
11132         lt_count++;
11133       } else {
11134         if (lt_count == 0) {
11135           lt_foo = "/" $lt_i lt_foo;
11136         } else {
11137           lt_count--;
11138         }
11139       }
11140     }
11141   }
11142   if (lt_foo != "") { lt_freq[lt_foo]++; }
11143   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11144 }'`
11145   # AWK program above erroneously prepends '/' to C:/dos/paths
11146   # for these hosts.
11147   case $host_os in
11148     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11149       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11150   esac
11151   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11152 else
11153   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11154 fi
11155 library_names_spec=
11156 libname_spec='lib$name'
11157 soname_spec=
11158 shrext_cmds=.so
11159 postinstall_cmds=
11160 postuninstall_cmds=
11161 finish_cmds=
11162 finish_eval=
11163 shlibpath_var=
11164 shlibpath_overrides_runpath=unknown
11165 version_type=none
11166 dynamic_linker="$host_os ld.so"
11167 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11168 need_lib_prefix=unknown
11169 hardcode_into_libs=no
11170
11171 # when you set need_version to no, make sure it does not cause -set_version
11172 # flags to be left without arguments
11173 need_version=unknown
11174
11175
11176
11177 case $host_os in
11178 aix3*)
11179   version_type=linux # correct to gnu/linux during the next big refactor
11180   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11181   shlibpath_var=LIBPATH
11182
11183   # AIX 3 has no versioning support, so we append a major version to the name.
11184   soname_spec='$libname$release$shared_ext$major'
11185   ;;
11186
11187 aix[4-9]*)
11188   version_type=linux # correct to gnu/linux during the next big refactor
11189   need_lib_prefix=no
11190   need_version=no
11191   hardcode_into_libs=yes
11192   if test ia64 = "$host_cpu"; then
11193     # AIX 5 supports IA64
11194     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11195     shlibpath_var=LD_LIBRARY_PATH
11196   else
11197     # With GCC up to 2.95.x, collect2 would create an import file
11198     # for dependence libraries.  The import file would start with
11199     # the line '#! .'.  This would cause the generated library to
11200     # depend on '.', always an invalid library.  This was fixed in
11201     # development snapshots of GCC prior to 3.0.
11202     case $host_os in
11203       aix4 | aix4.[01] | aix4.[01].*)
11204       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11205            echo ' yes '
11206            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11207         :
11208       else
11209         can_build_shared=no
11210       fi
11211       ;;
11212     esac
11213     # Using Import Files as archive members, it is possible to support
11214     # filename-based versioning of shared library archives on AIX. While
11215     # this would work for both with and without runtime linking, it will
11216     # prevent static linking of such archives. So we do filename-based
11217     # shared library versioning with .so extension only, which is used
11218     # when both runtime linking and shared linking is enabled.
11219     # Unfortunately, runtime linking may impact performance, so we do
11220     # not want this to be the default eventually. Also, we use the
11221     # versioned .so libs for executables only if there is the -brtl
11222     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11223     # To allow for filename-based versioning support, we need to create
11224     # libNAME.so.V as an archive file, containing:
11225     # *) an Import File, referring to the versioned filename of the
11226     #    archive as well as the shared archive member, telling the
11227     #    bitwidth (32 or 64) of that shared object, and providing the
11228     #    list of exported symbols of that shared object, eventually
11229     #    decorated with the 'weak' keyword
11230     # *) the shared object with the F_LOADONLY flag set, to really avoid
11231     #    it being seen by the linker.
11232     # At run time we better use the real file rather than another symlink,
11233     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11234
11235     case $with_aix_soname,$aix_use_runtimelinking in
11236     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11237     # soname into executable. Probably we can add versioning support to
11238     # collect2, so additional links can be useful in future.
11239     aix,yes) # traditional libtool
11240       dynamic_linker='AIX unversionable lib.so'
11241       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11242       # instead of lib<name>.a to let people know that these are not
11243       # typical AIX shared libraries.
11244       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11245       ;;
11246     aix,no) # traditional AIX only
11247       dynamic_linker='AIX lib.a(lib.so.V)'
11248       # We preserve .a as extension for shared libraries through AIX4.2
11249       # and later when we are not doing run time linking.
11250       library_names_spec='$libname$release.a $libname.a'
11251       soname_spec='$libname$release$shared_ext$major'
11252       ;;
11253     svr4,*) # full svr4 only
11254       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11255       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11256       # We do not specify a path in Import Files, so LIBPATH fires.
11257       shlibpath_overrides_runpath=yes
11258       ;;
11259     *,yes) # both, prefer svr4
11260       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11261       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11262       # unpreferred sharedlib libNAME.a needs extra handling
11263       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"'
11264       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"'
11265       # We do not specify a path in Import Files, so LIBPATH fires.
11266       shlibpath_overrides_runpath=yes
11267       ;;
11268     *,no) # both, prefer aix
11269       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11270       library_names_spec='$libname$release.a $libname.a'
11271       soname_spec='$libname$release$shared_ext$major'
11272       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11273       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)'
11274       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"'
11275       ;;
11276     esac
11277     shlibpath_var=LIBPATH
11278   fi
11279   ;;
11280
11281 amigaos*)
11282   case $host_cpu in
11283   powerpc)
11284     # Since July 2007 AmigaOS4 officially supports .so libraries.
11285     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11286     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11287     ;;
11288   m68k)
11289     library_names_spec='$libname.ixlibrary $libname.a'
11290     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11291     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'
11292     ;;
11293   esac
11294   ;;
11295
11296 beos*)
11297   library_names_spec='$libname$shared_ext'
11298   dynamic_linker="$host_os ld.so"
11299   shlibpath_var=LIBRARY_PATH
11300   ;;
11301
11302 bsdi[45]*)
11303   version_type=linux # correct to gnu/linux during the next big refactor
11304   need_version=no
11305   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11306   soname_spec='$libname$release$shared_ext$major'
11307   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11308   shlibpath_var=LD_LIBRARY_PATH
11309   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11310   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11311   # the default ld.so.conf also contains /usr/contrib/lib and
11312   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11313   # libtool to hard-code these into programs
11314   ;;
11315
11316 cygwin* | mingw* | pw32* | cegcc*)
11317   version_type=windows
11318   shrext_cmds=.dll
11319   need_version=no
11320   need_lib_prefix=no
11321
11322   case $GCC,$cc_basename in
11323   yes,*)
11324     # gcc
11325     library_names_spec='$libname.dll.a'
11326     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11327     postinstall_cmds='base_file=`basename \$file`~
11328       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11329       dldir=$destdir/`dirname \$dlpath`~
11330       test -d \$dldir || mkdir -p \$dldir~
11331       $install_prog $dir/$dlname \$dldir/$dlname~
11332       chmod a+x \$dldir/$dlname~
11333       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11334         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11335       fi'
11336     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11337       dlpath=$dir/\$dldll~
11338        $RM \$dlpath'
11339     shlibpath_overrides_runpath=yes
11340
11341     case $host_os in
11342     cygwin*)
11343       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11344       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11345
11346       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11347       ;;
11348     mingw* | cegcc*)
11349       # MinGW DLLs use traditional 'lib' prefix
11350       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11351       ;;
11352     pw32*)
11353       # pw32 DLLs use 'pw' prefix rather than 'lib'
11354       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11355       ;;
11356     esac
11357     dynamic_linker='Win32 ld.exe'
11358     ;;
11359
11360   *,cl*)
11361     # Native MSVC
11362     libname_spec='$name'
11363     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11364     library_names_spec='$libname.dll.lib'
11365
11366     case $build_os in
11367     mingw*)
11368       sys_lib_search_path_spec=
11369       lt_save_ifs=$IFS
11370       IFS=';'
11371       for lt_path in $LIB
11372       do
11373         IFS=$lt_save_ifs
11374         # Let DOS variable expansion print the short 8.3 style file name.
11375         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11376         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11377       done
11378       IFS=$lt_save_ifs
11379       # Convert to MSYS style.
11380       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11381       ;;
11382     cygwin*)
11383       # Convert to unix form, then to dos form, then back to unix form
11384       # but this time dos style (no spaces!) so that the unix form looks
11385       # like /cygdrive/c/PROGRA~1:/cygdr...
11386       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11387       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11388       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11389       ;;
11390     *)
11391       sys_lib_search_path_spec=$LIB
11392       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11393         # It is most probably a Windows format PATH.
11394         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11395       else
11396         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11397       fi
11398       # FIXME: find the short name or the path components, as spaces are
11399       # common. (e.g. "Program Files" -> "PROGRA~1")
11400       ;;
11401     esac
11402
11403     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11404     postinstall_cmds='base_file=`basename \$file`~
11405       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11406       dldir=$destdir/`dirname \$dlpath`~
11407       test -d \$dldir || mkdir -p \$dldir~
11408       $install_prog $dir/$dlname \$dldir/$dlname'
11409     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11410       dlpath=$dir/\$dldll~
11411        $RM \$dlpath'
11412     shlibpath_overrides_runpath=yes
11413     dynamic_linker='Win32 link.exe'
11414     ;;
11415
11416   *)
11417     # Assume MSVC wrapper
11418     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11419     dynamic_linker='Win32 ld.exe'
11420     ;;
11421   esac
11422   # FIXME: first we should search . and the directory the executable is in
11423   shlibpath_var=PATH
11424   ;;
11425
11426 darwin* | rhapsody*)
11427   dynamic_linker="$host_os dyld"
11428   version_type=darwin
11429   need_lib_prefix=no
11430   need_version=no
11431   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11432   soname_spec='$libname$release$major$shared_ext'
11433   shlibpath_overrides_runpath=yes
11434   shlibpath_var=DYLD_LIBRARY_PATH
11435   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11436
11437   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11438   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11439   ;;
11440
11441 dgux*)
11442   version_type=linux # correct to gnu/linux during the next big refactor
11443   need_lib_prefix=no
11444   need_version=no
11445   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11446   soname_spec='$libname$release$shared_ext$major'
11447   shlibpath_var=LD_LIBRARY_PATH
11448   ;;
11449
11450 freebsd* | dragonfly*)
11451   # DragonFly does not have aout.  When/if they implement a new
11452   # versioning mechanism, adjust this.
11453   if test -x /usr/bin/objformat; then
11454     objformat=`/usr/bin/objformat`
11455   else
11456     case $host_os in
11457     freebsd[23].*) objformat=aout ;;
11458     *) objformat=elf ;;
11459     esac
11460   fi
11461   version_type=freebsd-$objformat
11462   case $version_type in
11463     freebsd-elf*)
11464       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11465       soname_spec='$libname$release$shared_ext$major'
11466       need_version=no
11467       need_lib_prefix=no
11468       ;;
11469     freebsd-*)
11470       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11471       need_version=yes
11472       ;;
11473   esac
11474   shlibpath_var=LD_LIBRARY_PATH
11475   case $host_os in
11476   freebsd2.*)
11477     shlibpath_overrides_runpath=yes
11478     ;;
11479   freebsd3.[01]* | freebsdelf3.[01]*)
11480     shlibpath_overrides_runpath=yes
11481     hardcode_into_libs=yes
11482     ;;
11483   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11484   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11485     shlibpath_overrides_runpath=no
11486     hardcode_into_libs=yes
11487     ;;
11488   *) # from 4.6 on, and DragonFly
11489     shlibpath_overrides_runpath=yes
11490     hardcode_into_libs=yes
11491     ;;
11492   esac
11493   ;;
11494
11495 haiku*)
11496   version_type=linux # correct to gnu/linux during the next big refactor
11497   need_lib_prefix=no
11498   need_version=no
11499   dynamic_linker="$host_os runtime_loader"
11500   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11501   soname_spec='$libname$release$shared_ext$major'
11502   shlibpath_var=LIBRARY_PATH
11503   shlibpath_overrides_runpath=no
11504   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11505   hardcode_into_libs=yes
11506   ;;
11507
11508 hpux9* | hpux10* | hpux11*)
11509   # Give a soname corresponding to the major version so that dld.sl refuses to
11510   # link against other versions.
11511   version_type=sunos
11512   need_lib_prefix=no
11513   need_version=no
11514   case $host_cpu in
11515   ia64*)
11516     shrext_cmds='.so'
11517     hardcode_into_libs=yes
11518     dynamic_linker="$host_os dld.so"
11519     shlibpath_var=LD_LIBRARY_PATH
11520     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11521     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11522     soname_spec='$libname$release$shared_ext$major'
11523     if test 32 = "$HPUX_IA64_MODE"; then
11524       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11525       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11526     else
11527       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11528       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11529     fi
11530     ;;
11531   hppa*64*)
11532     shrext_cmds='.sl'
11533     hardcode_into_libs=yes
11534     dynamic_linker="$host_os dld.sl"
11535     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11536     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11537     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11538     soname_spec='$libname$release$shared_ext$major'
11539     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11540     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11541     ;;
11542   *)
11543     shrext_cmds='.sl'
11544     dynamic_linker="$host_os dld.sl"
11545     shlibpath_var=SHLIB_PATH
11546     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11547     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11548     soname_spec='$libname$release$shared_ext$major'
11549     ;;
11550   esac
11551   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11552   postinstall_cmds='chmod 555 $lib'
11553   # or fails outright, so override atomically:
11554   install_override_mode=555
11555   ;;
11556
11557 interix[3-9]*)
11558   version_type=linux # correct to gnu/linux during the next big refactor
11559   need_lib_prefix=no
11560   need_version=no
11561   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11562   soname_spec='$libname$release$shared_ext$major'
11563   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11564   shlibpath_var=LD_LIBRARY_PATH
11565   shlibpath_overrides_runpath=no
11566   hardcode_into_libs=yes
11567   ;;
11568
11569 irix5* | irix6* | nonstopux*)
11570   case $host_os in
11571     nonstopux*) version_type=nonstopux ;;
11572     *)
11573         if test yes = "$lt_cv_prog_gnu_ld"; then
11574                 version_type=linux # correct to gnu/linux during the next big refactor
11575         else
11576                 version_type=irix
11577         fi ;;
11578   esac
11579   need_lib_prefix=no
11580   need_version=no
11581   soname_spec='$libname$release$shared_ext$major'
11582   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11583   case $host_os in
11584   irix5* | nonstopux*)
11585     libsuff= shlibsuff=
11586     ;;
11587   *)
11588     case $LD in # libtool.m4 will add one of these switches to LD
11589     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11590       libsuff= shlibsuff= libmagic=32-bit;;
11591     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11592       libsuff=32 shlibsuff=N32 libmagic=N32;;
11593     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11594       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11595     *) libsuff= shlibsuff= libmagic=never-match;;
11596     esac
11597     ;;
11598   esac
11599   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11600   shlibpath_overrides_runpath=no
11601   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11602   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11603   hardcode_into_libs=yes
11604   ;;
11605
11606 # No shared lib support for Linux oldld, aout, or coff.
11607 linux*oldld* | linux*aout* | linux*coff*)
11608   dynamic_linker=no
11609   ;;
11610
11611 linux*android*)
11612   version_type=none # Android doesn't support versioned libraries.
11613   need_lib_prefix=no
11614   need_version=no
11615   library_names_spec='$libname$release$shared_ext'
11616   soname_spec='$libname$release$shared_ext'
11617   finish_cmds=
11618   shlibpath_var=LD_LIBRARY_PATH
11619   shlibpath_overrides_runpath=yes
11620
11621   # This implies no fast_install, which is unacceptable.
11622   # Some rework will be needed to allow for fast_install
11623   # before this can be enabled.
11624   hardcode_into_libs=yes
11625
11626   dynamic_linker='Android linker'
11627   # Don't embed -rpath directories since the linker doesn't support them.
11628   hardcode_libdir_flag_spec='-L$libdir'
11629   ;;
11630
11631 # This must be glibc/ELF.
11632 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11633   version_type=linux # correct to gnu/linux during the next big refactor
11634   need_lib_prefix=no
11635   need_version=no
11636   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637   soname_spec='$libname$release$shared_ext$major'
11638   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11639   shlibpath_var=LD_LIBRARY_PATH
11640   shlibpath_overrides_runpath=no
11641
11642   # Some binutils ld are patched to set DT_RUNPATH
11643   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646   lt_cv_shlibpath_overrides_runpath=no
11647     save_LDFLAGS=$LDFLAGS
11648     save_libdir=$libdir
11649     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11650          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11651     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h.  */
11653
11654 int
11655 main ()
11656 {
11657
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11664   lt_cv_shlibpath_overrides_runpath=yes
11665 fi
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668     conftest$ac_exeext conftest.$ac_ext
11669     LDFLAGS=$save_LDFLAGS
11670     libdir=$save_libdir
11671
11672 fi
11673
11674   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11675
11676   # This implies no fast_install, which is unacceptable.
11677   # Some rework will be needed to allow for fast_install
11678   # before this can be enabled.
11679   hardcode_into_libs=yes
11680
11681   # Ideally, we could use ldconfig to report *all* directores which are
11682   # searched for libraries, however this is still not possible.  Aside from not
11683   # being certain /sbin/ldconfig is available, command
11684   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11685   # even though it is searched at run-time.  Try to do the best guess by
11686   # appending ld.so.conf contents (and includes) to the search path.
11687   if test -f /etc/ld.so.conf; then
11688     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' ' '`
11689     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11690   fi
11691
11692   # We used to test for /lib/ld.so.1 and disable shared libraries on
11693   # powerpc, because MkLinux only supported shared libraries with the
11694   # GNU dynamic linker.  Since this was broken with cross compilers,
11695   # most powerpc-linux boxes support dynamic linking these days and
11696   # people can always --disable-shared, the test was removed, and we
11697   # assume the GNU/Linux dynamic linker is in use.
11698   dynamic_linker='GNU/Linux ld.so'
11699   ;;
11700
11701 netbsdelf*-gnu)
11702   version_type=linux
11703   need_lib_prefix=no
11704   need_version=no
11705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11706   soname_spec='${libname}${release}${shared_ext}$major'
11707   shlibpath_var=LD_LIBRARY_PATH
11708   shlibpath_overrides_runpath=no
11709   hardcode_into_libs=yes
11710   dynamic_linker='NetBSD ld.elf_so'
11711   ;;
11712
11713 netbsd*)
11714   version_type=sunos
11715   need_lib_prefix=no
11716   need_version=no
11717   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11718     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11719     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11720     dynamic_linker='NetBSD (a.out) ld.so'
11721   else
11722     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11723     soname_spec='$libname$release$shared_ext$major'
11724     dynamic_linker='NetBSD ld.elf_so'
11725   fi
11726   shlibpath_var=LD_LIBRARY_PATH
11727   shlibpath_overrides_runpath=yes
11728   hardcode_into_libs=yes
11729   ;;
11730
11731 newsos6)
11732   version_type=linux # correct to gnu/linux during the next big refactor
11733   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11734   shlibpath_var=LD_LIBRARY_PATH
11735   shlibpath_overrides_runpath=yes
11736   ;;
11737
11738 *nto* | *qnx*)
11739   version_type=qnx
11740   need_lib_prefix=no
11741   need_version=no
11742   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11743   soname_spec='$libname$release$shared_ext$major'
11744   shlibpath_var=LD_LIBRARY_PATH
11745   shlibpath_overrides_runpath=no
11746   hardcode_into_libs=yes
11747   dynamic_linker='ldqnx.so'
11748   ;;
11749
11750 openbsd* | bitrig*)
11751   version_type=sunos
11752   sys_lib_dlsearch_path_spec=/usr/lib
11753   need_lib_prefix=no
11754   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11755     need_version=no
11756   else
11757     need_version=yes
11758   fi
11759   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11760   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11761   shlibpath_var=LD_LIBRARY_PATH
11762   shlibpath_overrides_runpath=yes
11763   ;;
11764
11765 os2*)
11766   libname_spec='$name'
11767   version_type=windows
11768   shrext_cmds=.dll
11769   need_version=no
11770   need_lib_prefix=no
11771   # OS/2 can only load a DLL with a base name of 8 characters or less.
11772   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11773     v=$($ECHO $release$versuffix | tr -d .-);
11774     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11775     $ECHO $n$v`$shared_ext'
11776   library_names_spec='${libname}_dll.$libext'
11777   dynamic_linker='OS/2 ld.exe'
11778   shlibpath_var=BEGINLIBPATH
11779   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11780   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11781   postinstall_cmds='base_file=`basename \$file`~
11782     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11783     dldir=$destdir/`dirname \$dlpath`~
11784     test -d \$dldir || mkdir -p \$dldir~
11785     $install_prog $dir/$dlname \$dldir/$dlname~
11786     chmod a+x \$dldir/$dlname~
11787     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11788       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11789     fi'
11790   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11791     dlpath=$dir/\$dldll~
11792     $RM \$dlpath'
11793   ;;
11794
11795 osf3* | osf4* | osf5*)
11796   version_type=osf
11797   need_lib_prefix=no
11798   need_version=no
11799   soname_spec='$libname$release$shared_ext$major'
11800   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11801   shlibpath_var=LD_LIBRARY_PATH
11802   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11803   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11804   ;;
11805
11806 rdos*)
11807   dynamic_linker=no
11808   ;;
11809
11810 solaris*)
11811   version_type=linux # correct to gnu/linux during the next big refactor
11812   need_lib_prefix=no
11813   need_version=no
11814   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11815   soname_spec='$libname$release$shared_ext$major'
11816   shlibpath_var=LD_LIBRARY_PATH
11817   shlibpath_overrides_runpath=yes
11818   hardcode_into_libs=yes
11819   # ldd complains unless libraries are executable
11820   postinstall_cmds='chmod +x $lib'
11821   ;;
11822
11823 sunos4*)
11824   version_type=sunos
11825   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11826   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11827   shlibpath_var=LD_LIBRARY_PATH
11828   shlibpath_overrides_runpath=yes
11829   if test yes = "$with_gnu_ld"; then
11830     need_lib_prefix=no
11831   fi
11832   need_version=yes
11833   ;;
11834
11835 sysv4 | sysv4.3*)
11836   version_type=linux # correct to gnu/linux during the next big refactor
11837   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11838   soname_spec='$libname$release$shared_ext$major'
11839   shlibpath_var=LD_LIBRARY_PATH
11840   case $host_vendor in
11841     sni)
11842       shlibpath_overrides_runpath=no
11843       need_lib_prefix=no
11844       runpath_var=LD_RUN_PATH
11845       ;;
11846     siemens)
11847       need_lib_prefix=no
11848       ;;
11849     motorola)
11850       need_lib_prefix=no
11851       need_version=no
11852       shlibpath_overrides_runpath=no
11853       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11854       ;;
11855   esac
11856   ;;
11857
11858 sysv4*MP*)
11859   if test -d /usr/nec; then
11860     version_type=linux # correct to gnu/linux during the next big refactor
11861     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11862     soname_spec='$libname$shared_ext.$major'
11863     shlibpath_var=LD_LIBRARY_PATH
11864   fi
11865   ;;
11866
11867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11868   version_type=sco
11869   need_lib_prefix=no
11870   need_version=no
11871   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11872   soname_spec='$libname$release$shared_ext$major'
11873   shlibpath_var=LD_LIBRARY_PATH
11874   shlibpath_overrides_runpath=yes
11875   hardcode_into_libs=yes
11876   if test yes = "$with_gnu_ld"; then
11877     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11878   else
11879     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11880     case $host_os in
11881       sco3.2v5*)
11882         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11883         ;;
11884     esac
11885   fi
11886   sys_lib_dlsearch_path_spec='/usr/lib'
11887   ;;
11888
11889 tpf*)
11890   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11891   version_type=linux # correct to gnu/linux during the next big refactor
11892   need_lib_prefix=no
11893   need_version=no
11894   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11895   shlibpath_var=LD_LIBRARY_PATH
11896   shlibpath_overrides_runpath=no
11897   hardcode_into_libs=yes
11898   ;;
11899
11900 uts4*)
11901   version_type=linux # correct to gnu/linux during the next big refactor
11902   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11903   soname_spec='$libname$release$shared_ext$major'
11904   shlibpath_var=LD_LIBRARY_PATH
11905   ;;
11906
11907 *)
11908   dynamic_linker=no
11909   ;;
11910 esac
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11912 $as_echo "$dynamic_linker" >&6; }
11913 test no = "$dynamic_linker" && can_build_shared=no
11914
11915 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11916 if test yes = "$GCC"; then
11917   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11918 fi
11919
11920 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11921   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11922 fi
11923
11924 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11925   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11926 fi
11927
11928 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11929 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11930
11931 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11932 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11933
11934 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11935 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12034 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12035 hardcode_action=
12036 if test -n "$hardcode_libdir_flag_spec" ||
12037    test -n "$runpath_var" ||
12038    test yes = "$hardcode_automatic"; then
12039
12040   # We can hardcode non-existent directories.
12041   if test no != "$hardcode_direct" &&
12042      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12043      # have to relink, otherwise we might link with an installed library
12044      # when we should be linking with a yet-to-be-installed one
12045      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12046      test no != "$hardcode_minus_L"; then
12047     # Linking always hardcodes the temporary library directory.
12048     hardcode_action=relink
12049   else
12050     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12051     hardcode_action=immediate
12052   fi
12053 else
12054   # We cannot hardcode anything, or else we can only hardcode existing
12055   # directories.
12056   hardcode_action=unsupported
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12059 $as_echo "$hardcode_action" >&6; }
12060
12061 if test relink = "$hardcode_action" ||
12062    test yes = "$inherit_rpath"; then
12063   # Fast installation is not supported
12064   enable_fast_install=no
12065 elif test yes = "$shlibpath_overrides_runpath" ||
12066      test no = "$enable_shared"; then
12067   # Fast installation is not necessary
12068   enable_fast_install=needless
12069 fi
12070
12071
12072
12073
12074
12075
12076   if test yes != "$enable_dlopen"; then
12077   enable_dlopen=unknown
12078   enable_dlopen_self=unknown
12079   enable_dlopen_self_static=unknown
12080 else
12081   lt_cv_dlopen=no
12082   lt_cv_dlopen_libs=
12083
12084   case $host_os in
12085   beos*)
12086     lt_cv_dlopen=load_add_on
12087     lt_cv_dlopen_libs=
12088     lt_cv_dlopen_self=yes
12089     ;;
12090
12091   mingw* | pw32* | cegcc*)
12092     lt_cv_dlopen=LoadLibrary
12093     lt_cv_dlopen_libs=
12094     ;;
12095
12096   cygwin*)
12097     lt_cv_dlopen=dlopen
12098     lt_cv_dlopen_libs=
12099     ;;
12100
12101   darwin*)
12102     # if libdl is installed we need to link against it
12103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12104 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12105 if ${ac_cv_lib_dl_dlopen+:} false; then :
12106   $as_echo_n "(cached) " >&6
12107 else
12108   ac_check_lib_save_LIBS=$LIBS
12109 LIBS="-ldl  $LIBS"
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h.  */
12112
12113 /* Override any GCC internal prototype to avoid an error.
12114    Use char because int might match the return type of a GCC
12115    builtin and then its argument prototype would still apply.  */
12116 #ifdef __cplusplus
12117 extern "C"
12118 #endif
12119 char dlopen ();
12120 int
12121 main ()
12122 {
12123 return dlopen ();
12124   ;
12125   return 0;
12126 }
12127 _ACEOF
12128 if ac_fn_c_try_link "$LINENO"; then :
12129   ac_cv_lib_dl_dlopen=yes
12130 else
12131   ac_cv_lib_dl_dlopen=no
12132 fi
12133 rm -f core conftest.err conftest.$ac_objext \
12134     conftest$ac_exeext conftest.$ac_ext
12135 LIBS=$ac_check_lib_save_LIBS
12136 fi
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12138 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12139 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12140   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12141 else
12142
12143     lt_cv_dlopen=dyld
12144     lt_cv_dlopen_libs=
12145     lt_cv_dlopen_self=yes
12146
12147 fi
12148
12149     ;;
12150
12151   tpf*)
12152     # Don't try to run any link tests for TPF.  We know it's impossible
12153     # because TPF is a cross-compiler, and we know how we open DSOs.
12154     lt_cv_dlopen=dlopen
12155     lt_cv_dlopen_libs=
12156     lt_cv_dlopen_self=no
12157     ;;
12158
12159   *)
12160     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12161 if test "x$ac_cv_func_shl_load" = xyes; then :
12162   lt_cv_dlopen=shl_load
12163 else
12164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12165 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12166 if ${ac_cv_lib_dld_shl_load+:} false; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169   ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-ldld  $LIBS"
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h.  */
12173
12174 /* Override any GCC internal prototype to avoid an error.
12175    Use char because int might match the return type of a GCC
12176    builtin and then its argument prototype would still apply.  */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 char shl_load ();
12181 int
12182 main ()
12183 {
12184 return shl_load ();
12185   ;
12186   return 0;
12187 }
12188 _ACEOF
12189 if ac_fn_c_try_link "$LINENO"; then :
12190   ac_cv_lib_dld_shl_load=yes
12191 else
12192   ac_cv_lib_dld_shl_load=no
12193 fi
12194 rm -f core conftest.err conftest.$ac_objext \
12195     conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12199 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12200 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12201   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12202 else
12203   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12204 if test "x$ac_cv_func_dlopen" = xyes; then :
12205   lt_cv_dlopen=dlopen
12206 else
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12208 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12209 if ${ac_cv_lib_dl_dlopen+:} false; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-ldl  $LIBS"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h.  */
12216
12217 /* Override any GCC internal prototype to avoid an error.
12218    Use char because int might match the return type of a GCC
12219    builtin and then its argument prototype would still apply.  */
12220 #ifdef __cplusplus
12221 extern "C"
12222 #endif
12223 char dlopen ();
12224 int
12225 main ()
12226 {
12227 return dlopen ();
12228   ;
12229   return 0;
12230 }
12231 _ACEOF
12232 if ac_fn_c_try_link "$LINENO"; then :
12233   ac_cv_lib_dl_dlopen=yes
12234 else
12235   ac_cv_lib_dl_dlopen=no
12236 fi
12237 rm -f core conftest.err conftest.$ac_objext \
12238     conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12242 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12243 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12244   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12245 else
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12247 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12248 if ${ac_cv_lib_svld_dlopen+:} false; then :
12249   $as_echo_n "(cached) " >&6
12250 else
12251   ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lsvld  $LIBS"
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h.  */
12255
12256 /* Override any GCC internal prototype to avoid an error.
12257    Use char because int might match the return type of a GCC
12258    builtin and then its argument prototype would still apply.  */
12259 #ifdef __cplusplus
12260 extern "C"
12261 #endif
12262 char dlopen ();
12263 int
12264 main ()
12265 {
12266 return dlopen ();
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 if ac_fn_c_try_link "$LINENO"; then :
12272   ac_cv_lib_svld_dlopen=yes
12273 else
12274   ac_cv_lib_svld_dlopen=no
12275 fi
12276 rm -f core conftest.err conftest.$ac_objext \
12277     conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12281 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12282 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12283   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12284 else
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12286 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12287 if ${ac_cv_lib_dld_dld_link+:} false; then :
12288   $as_echo_n "(cached) " >&6
12289 else
12290   ac_check_lib_save_LIBS=$LIBS
12291 LIBS="-ldld  $LIBS"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h.  */
12294
12295 /* Override any GCC internal prototype to avoid an error.
12296    Use char because int might match the return type of a GCC
12297    builtin and then its argument prototype would still apply.  */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 char dld_link ();
12302 int
12303 main ()
12304 {
12305 return dld_link ();
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 if ac_fn_c_try_link "$LINENO"; then :
12311   ac_cv_lib_dld_dld_link=yes
12312 else
12313   ac_cv_lib_dld_dld_link=no
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext \
12316     conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12320 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12321 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12322   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12323 fi
12324
12325
12326 fi
12327
12328
12329 fi
12330
12331
12332 fi
12333
12334
12335 fi
12336
12337
12338 fi
12339
12340     ;;
12341   esac
12342
12343   if test no = "$lt_cv_dlopen"; then
12344     enable_dlopen=no
12345   else
12346     enable_dlopen=yes
12347   fi
12348
12349   case $lt_cv_dlopen in
12350   dlopen)
12351     save_CPPFLAGS=$CPPFLAGS
12352     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12353
12354     save_LDFLAGS=$LDFLAGS
12355     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12356
12357     save_LIBS=$LIBS
12358     LIBS="$lt_cv_dlopen_libs $LIBS"
12359
12360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12361 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12362 if ${lt_cv_dlopen_self+:} false; then :
12363   $as_echo_n "(cached) " >&6
12364 else
12365           if test yes = "$cross_compiling"; then :
12366   lt_cv_dlopen_self=cross
12367 else
12368   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12369   lt_status=$lt_dlunknown
12370   cat > conftest.$ac_ext <<_LT_EOF
12371 #line $LINENO "configure"
12372 #include "confdefs.h"
12373
12374 #if HAVE_DLFCN_H
12375 #include <dlfcn.h>
12376 #endif
12377
12378 #include <stdio.h>
12379
12380 #ifdef RTLD_GLOBAL
12381 #  define LT_DLGLOBAL           RTLD_GLOBAL
12382 #else
12383 #  ifdef DL_GLOBAL
12384 #    define LT_DLGLOBAL         DL_GLOBAL
12385 #  else
12386 #    define LT_DLGLOBAL         0
12387 #  endif
12388 #endif
12389
12390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12391    find out it does not work in some platform. */
12392 #ifndef LT_DLLAZY_OR_NOW
12393 #  ifdef RTLD_LAZY
12394 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12395 #  else
12396 #    ifdef DL_LAZY
12397 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12398 #    else
12399 #      ifdef RTLD_NOW
12400 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12401 #      else
12402 #        ifdef DL_NOW
12403 #          define LT_DLLAZY_OR_NOW      DL_NOW
12404 #        else
12405 #          define LT_DLLAZY_OR_NOW      0
12406 #        endif
12407 #      endif
12408 #    endif
12409 #  endif
12410 #endif
12411
12412 /* When -fvisibility=hidden is used, assume the code has been annotated
12413    correspondingly for the symbols needed.  */
12414 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12415 int fnord () __attribute__((visibility("default")));
12416 #endif
12417
12418 int fnord () { return 42; }
12419 int main ()
12420 {
12421   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12422   int status = $lt_dlunknown;
12423
12424   if (self)
12425     {
12426       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12427       else
12428         {
12429           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12430           else puts (dlerror ());
12431         }
12432       /* dlclose (self); */
12433     }
12434   else
12435     puts (dlerror ());
12436
12437   return status;
12438 }
12439 _LT_EOF
12440   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12441   (eval $ac_link) 2>&5
12442   ac_status=$?
12443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12445     (./conftest; exit; ) >&5 2>/dev/null
12446     lt_status=$?
12447     case x$lt_status in
12448       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12449       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12450       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12451     esac
12452   else :
12453     # compilation failed
12454     lt_cv_dlopen_self=no
12455   fi
12456 fi
12457 rm -fr conftest*
12458
12459
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12462 $as_echo "$lt_cv_dlopen_self" >&6; }
12463
12464     if test yes = "$lt_cv_dlopen_self"; then
12465       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12466       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12467 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12468 if ${lt_cv_dlopen_self_static+:} false; then :
12469   $as_echo_n "(cached) " >&6
12470 else
12471           if test yes = "$cross_compiling"; then :
12472   lt_cv_dlopen_self_static=cross
12473 else
12474   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12475   lt_status=$lt_dlunknown
12476   cat > conftest.$ac_ext <<_LT_EOF
12477 #line $LINENO "configure"
12478 #include "confdefs.h"
12479
12480 #if HAVE_DLFCN_H
12481 #include <dlfcn.h>
12482 #endif
12483
12484 #include <stdio.h>
12485
12486 #ifdef RTLD_GLOBAL
12487 #  define LT_DLGLOBAL           RTLD_GLOBAL
12488 #else
12489 #  ifdef DL_GLOBAL
12490 #    define LT_DLGLOBAL         DL_GLOBAL
12491 #  else
12492 #    define LT_DLGLOBAL         0
12493 #  endif
12494 #endif
12495
12496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12497    find out it does not work in some platform. */
12498 #ifndef LT_DLLAZY_OR_NOW
12499 #  ifdef RTLD_LAZY
12500 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12501 #  else
12502 #    ifdef DL_LAZY
12503 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12504 #    else
12505 #      ifdef RTLD_NOW
12506 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12507 #      else
12508 #        ifdef DL_NOW
12509 #          define LT_DLLAZY_OR_NOW      DL_NOW
12510 #        else
12511 #          define LT_DLLAZY_OR_NOW      0
12512 #        endif
12513 #      endif
12514 #    endif
12515 #  endif
12516 #endif
12517
12518 /* When -fvisibility=hidden is used, assume the code has been annotated
12519    correspondingly for the symbols needed.  */
12520 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12521 int fnord () __attribute__((visibility("default")));
12522 #endif
12523
12524 int fnord () { return 42; }
12525 int main ()
12526 {
12527   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12528   int status = $lt_dlunknown;
12529
12530   if (self)
12531     {
12532       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12533       else
12534         {
12535           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12536           else puts (dlerror ());
12537         }
12538       /* dlclose (self); */
12539     }
12540   else
12541     puts (dlerror ());
12542
12543   return status;
12544 }
12545 _LT_EOF
12546   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12547   (eval $ac_link) 2>&5
12548   ac_status=$?
12549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12550   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12551     (./conftest; exit; ) >&5 2>/dev/null
12552     lt_status=$?
12553     case x$lt_status in
12554       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12555       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12556       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12557     esac
12558   else :
12559     # compilation failed
12560     lt_cv_dlopen_self_static=no
12561   fi
12562 fi
12563 rm -fr conftest*
12564
12565
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12568 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12569     fi
12570
12571     CPPFLAGS=$save_CPPFLAGS
12572     LDFLAGS=$save_LDFLAGS
12573     LIBS=$save_LIBS
12574     ;;
12575   esac
12576
12577   case $lt_cv_dlopen_self in
12578   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12579   *) enable_dlopen_self=unknown ;;
12580   esac
12581
12582   case $lt_cv_dlopen_self_static in
12583   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12584   *) enable_dlopen_self_static=unknown ;;
12585   esac
12586 fi
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604 striplib=
12605 old_striplib=
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12607 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12608 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12609   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12610   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12612 $as_echo "yes" >&6; }
12613 else
12614 # FIXME - insert some real tests, host_os isn't really good enough
12615   case $host_os in
12616   darwin*)
12617     if test -n "$STRIP"; then
12618       striplib="$STRIP -x"
12619       old_striplib="$STRIP -S"
12620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12621 $as_echo "yes" >&6; }
12622     else
12623       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625     fi
12626     ;;
12627   *)
12628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12630     ;;
12631   esac
12632 fi
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645   # Report what library types will actually be built
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12647 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12649 $as_echo "$can_build_shared" >&6; }
12650
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12652 $as_echo_n "checking whether to build shared libraries... " >&6; }
12653   test no = "$can_build_shared" && enable_shared=no
12654
12655   # On AIX, shared libraries and static libraries use the same namespace, and
12656   # are all built from PIC.
12657   case $host_os in
12658   aix3*)
12659     test yes = "$enable_shared" && enable_static=no
12660     if test -n "$RANLIB"; then
12661       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12662       postinstall_cmds='$RANLIB $lib'
12663     fi
12664     ;;
12665
12666   aix[4-9]*)
12667     if test ia64 != "$host_cpu"; then
12668       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12669       yes,aix,yes) ;;                   # shared object as lib.so file only
12670       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12671       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12672       esac
12673     fi
12674     ;;
12675   esac
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12677 $as_echo "$enable_shared" >&6; }
12678
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12680 $as_echo_n "checking whether to build static libraries... " >&6; }
12681   # Make sure either enable_shared or enable_static is yes.
12682   test yes = "$enable_shared" || enable_static=yes
12683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12684 $as_echo "$enable_static" >&6; }
12685
12686
12687
12688
12689 fi
12690 ac_ext=c
12691 ac_cpp='$CPP $CPPFLAGS'
12692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12695
12696 CC=$lt_save_CC
12697
12698       if test -n "$CXX" && ( test no != "$CXX" &&
12699     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12700     (test g++ != "$CXX"))); then
12701   ac_ext=cpp
12702 ac_cpp='$CXXCPP $CPPFLAGS'
12703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12707 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12708 if test -z "$CXXCPP"; then
12709   if ${ac_cv_prog_CXXCPP+:} false; then :
12710   $as_echo_n "(cached) " >&6
12711 else
12712       # Double quotes because CXXCPP needs to be expanded
12713     for CXXCPP in "$CXX -E" "/lib/cpp"
12714     do
12715       ac_preproc_ok=false
12716 for ac_cxx_preproc_warn_flag in '' yes
12717 do
12718   # Use a header file that comes with gcc, so configuring glibc
12719   # with a fresh cross-compiler works.
12720   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12721   # <limits.h> exists even on freestanding compilers.
12722   # On the NeXT, cc -E runs the code through the compiler's parser,
12723   # not just through cpp. "Syntax error" is here to catch this case.
12724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h.  */
12726 #ifdef __STDC__
12727 # include <limits.h>
12728 #else
12729 # include <assert.h>
12730 #endif
12731                      Syntax error
12732 _ACEOF
12733 if ac_fn_cxx_try_cpp "$LINENO"; then :
12734
12735 else
12736   # Broken: fails on valid input.
12737 continue
12738 fi
12739 rm -f conftest.err conftest.i conftest.$ac_ext
12740
12741   # OK, works on sane cases.  Now check whether nonexistent headers
12742   # can be detected and how.
12743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h.  */
12745 #include <ac_nonexistent.h>
12746 _ACEOF
12747 if ac_fn_cxx_try_cpp "$LINENO"; then :
12748   # Broken: success on invalid input.
12749 continue
12750 else
12751   # Passes both tests.
12752 ac_preproc_ok=:
12753 break
12754 fi
12755 rm -f conftest.err conftest.i conftest.$ac_ext
12756
12757 done
12758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12759 rm -f conftest.i conftest.err conftest.$ac_ext
12760 if $ac_preproc_ok; then :
12761   break
12762 fi
12763
12764     done
12765     ac_cv_prog_CXXCPP=$CXXCPP
12766
12767 fi
12768   CXXCPP=$ac_cv_prog_CXXCPP
12769 else
12770   ac_cv_prog_CXXCPP=$CXXCPP
12771 fi
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12773 $as_echo "$CXXCPP" >&6; }
12774 ac_preproc_ok=false
12775 for ac_cxx_preproc_warn_flag in '' yes
12776 do
12777   # Use a header file that comes with gcc, so configuring glibc
12778   # with a fresh cross-compiler works.
12779   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12780   # <limits.h> exists even on freestanding compilers.
12781   # On the NeXT, cc -E runs the code through the compiler's parser,
12782   # not just through cpp. "Syntax error" is here to catch this case.
12783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h.  */
12785 #ifdef __STDC__
12786 # include <limits.h>
12787 #else
12788 # include <assert.h>
12789 #endif
12790                      Syntax error
12791 _ACEOF
12792 if ac_fn_cxx_try_cpp "$LINENO"; then :
12793
12794 else
12795   # Broken: fails on valid input.
12796 continue
12797 fi
12798 rm -f conftest.err conftest.i conftest.$ac_ext
12799
12800   # OK, works on sane cases.  Now check whether nonexistent headers
12801   # can be detected and how.
12802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h.  */
12804 #include <ac_nonexistent.h>
12805 _ACEOF
12806 if ac_fn_cxx_try_cpp "$LINENO"; then :
12807   # Broken: success on invalid input.
12808 continue
12809 else
12810   # Passes both tests.
12811 ac_preproc_ok=:
12812 break
12813 fi
12814 rm -f conftest.err conftest.i conftest.$ac_ext
12815
12816 done
12817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12818 rm -f conftest.i conftest.err conftest.$ac_ext
12819 if $ac_preproc_ok; then :
12820
12821 else
12822   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12824 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12825 See \`config.log' for more details" "$LINENO" 5; }
12826 fi
12827
12828 ac_ext=c
12829 ac_cpp='$CPP $CPPFLAGS'
12830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12833
12834 else
12835   _lt_caught_CXX_error=yes
12836 fi
12837
12838 ac_ext=cpp
12839 ac_cpp='$CXXCPP $CPPFLAGS'
12840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12843
12844 archive_cmds_need_lc_CXX=no
12845 allow_undefined_flag_CXX=
12846 always_export_symbols_CXX=no
12847 archive_expsym_cmds_CXX=
12848 compiler_needs_object_CXX=no
12849 export_dynamic_flag_spec_CXX=
12850 hardcode_direct_CXX=no
12851 hardcode_direct_absolute_CXX=no
12852 hardcode_libdir_flag_spec_CXX=
12853 hardcode_libdir_separator_CXX=
12854 hardcode_minus_L_CXX=no
12855 hardcode_shlibpath_var_CXX=unsupported
12856 hardcode_automatic_CXX=no
12857 inherit_rpath_CXX=no
12858 module_cmds_CXX=
12859 module_expsym_cmds_CXX=
12860 link_all_deplibs_CXX=unknown
12861 old_archive_cmds_CXX=$old_archive_cmds
12862 reload_flag_CXX=$reload_flag
12863 reload_cmds_CXX=$reload_cmds
12864 no_undefined_flag_CXX=
12865 whole_archive_flag_spec_CXX=
12866 enable_shared_with_static_runtimes_CXX=no
12867
12868 # Source file extension for C++ test sources.
12869 ac_ext=cpp
12870
12871 # Object file extension for compiled C++ test sources.
12872 objext=o
12873 objext_CXX=$objext
12874
12875 # No sense in running all these tests if we already determined that
12876 # the CXX compiler isn't working.  Some variables (like enable_shared)
12877 # are currently assumed to apply to all compilers on this platform,
12878 # and will be corrupted by setting them based on a non-working compiler.
12879 if test yes != "$_lt_caught_CXX_error"; then
12880   # Code to be used in simple compile tests
12881   lt_simple_compile_test_code="int some_variable = 0;"
12882
12883   # Code to be used in simple link tests
12884   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12885
12886   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12887
12888
12889
12890
12891
12892
12893 # If no C compiler was specified, use CC.
12894 LTCC=${LTCC-"$CC"}
12895
12896 # If no C compiler flags were specified, use CFLAGS.
12897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12898
12899 # Allow CC to be a program name with arguments.
12900 compiler=$CC
12901
12902
12903   # save warnings/boilerplate of simple test code
12904   ac_outfile=conftest.$ac_objext
12905 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12906 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12907 _lt_compiler_boilerplate=`cat conftest.err`
12908 $RM conftest*
12909
12910   ac_outfile=conftest.$ac_objext
12911 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12912 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12913 _lt_linker_boilerplate=`cat conftest.err`
12914 $RM -r conftest*
12915
12916
12917   # Allow CC to be a program name with arguments.
12918   lt_save_CC=$CC
12919   lt_save_CFLAGS=$CFLAGS
12920   lt_save_LD=$LD
12921   lt_save_GCC=$GCC
12922   GCC=$GXX
12923   lt_save_with_gnu_ld=$with_gnu_ld
12924   lt_save_path_LD=$lt_cv_path_LD
12925   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12926     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12927   else
12928     $as_unset lt_cv_prog_gnu_ld
12929   fi
12930   if test -n "${lt_cv_path_LDCXX+set}"; then
12931     lt_cv_path_LD=$lt_cv_path_LDCXX
12932   else
12933     $as_unset lt_cv_path_LD
12934   fi
12935   test -z "${LDCXX+set}" || LD=$LDCXX
12936   CC=${CXX-"c++"}
12937   CFLAGS=$CXXFLAGS
12938   compiler=$CC
12939   compiler_CXX=$CC
12940   func_cc_basename $compiler
12941 cc_basename=$func_cc_basename_result
12942
12943
12944   if test -n "$compiler"; then
12945     # We don't want -fno-exception when compiling C++ code, so set the
12946     # no_builtin_flag separately
12947     if test yes = "$GXX"; then
12948       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12949     else
12950       lt_prog_compiler_no_builtin_flag_CXX=
12951     fi
12952
12953     if test yes = "$GXX"; then
12954       # Set up default GNU C++ configuration
12955
12956
12957
12958 # Check whether --with-gnu-ld was given.
12959 if test "${with_gnu_ld+set}" = set; then :
12960   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12961 else
12962   with_gnu_ld=no
12963 fi
12964
12965 ac_prog=ld
12966 if test yes = "$GCC"; then
12967   # Check if gcc -print-prog-name=ld gives a path.
12968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12969 $as_echo_n "checking for ld used by $CC... " >&6; }
12970   case $host in
12971   *-*-mingw*)
12972     # gcc leaves a trailing carriage return, which upsets mingw
12973     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12974   *)
12975     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12976   esac
12977   case $ac_prog in
12978     # Accept absolute paths.
12979     [\\/]* | ?:[\\/]*)
12980       re_direlt='/[^/][^/]*/\.\./'
12981       # Canonicalize the pathname of ld
12982       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12983       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12984         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12985       done
12986       test -z "$LD" && LD=$ac_prog
12987       ;;
12988   "")
12989     # If it fails, then pretend we aren't using GCC.
12990     ac_prog=ld
12991     ;;
12992   *)
12993     # If it is relative, then search for the first ld in PATH.
12994     with_gnu_ld=unknown
12995     ;;
12996   esac
12997 elif test yes = "$with_gnu_ld"; then
12998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12999 $as_echo_n "checking for GNU ld... " >&6; }
13000 else
13001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13002 $as_echo_n "checking for non-GNU ld... " >&6; }
13003 fi
13004 if ${lt_cv_path_LD+:} false; then :
13005   $as_echo_n "(cached) " >&6
13006 else
13007   if test -z "$LD"; then
13008   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13009   for ac_dir in $PATH; do
13010     IFS=$lt_save_ifs
13011     test -z "$ac_dir" && ac_dir=.
13012     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13013       lt_cv_path_LD=$ac_dir/$ac_prog
13014       # Check to see if the program is GNU ld.  I'd rather use --version,
13015       # but apparently some variants of GNU ld only accept -v.
13016       # Break only if it was the GNU/non-GNU ld that we prefer.
13017       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13018       *GNU* | *'with BFD'*)
13019         test no != "$with_gnu_ld" && break
13020         ;;
13021       *)
13022         test yes != "$with_gnu_ld" && break
13023         ;;
13024       esac
13025     fi
13026   done
13027   IFS=$lt_save_ifs
13028 else
13029   lt_cv_path_LD=$LD # Let the user override the test with a path.
13030 fi
13031 fi
13032
13033 LD=$lt_cv_path_LD
13034 if test -n "$LD"; then
13035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13036 $as_echo "$LD" >&6; }
13037 else
13038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13040 fi
13041 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13043 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13044 if ${lt_cv_prog_gnu_ld+:} false; then :
13045   $as_echo_n "(cached) " >&6
13046 else
13047   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13048 case `$LD -v 2>&1 </dev/null` in
13049 *GNU* | *'with BFD'*)
13050   lt_cv_prog_gnu_ld=yes
13051   ;;
13052 *)
13053   lt_cv_prog_gnu_ld=no
13054   ;;
13055 esac
13056 fi
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13058 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13059 with_gnu_ld=$lt_cv_prog_gnu_ld
13060
13061
13062
13063
13064
13065
13066
13067       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13068       # archiving commands below assume that GNU ld is being used.
13069       if test yes = "$with_gnu_ld"; then
13070         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13071         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'
13072
13073         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13074         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13075
13076         # If archive_cmds runs LD, not CC, wlarc should be empty
13077         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13078         #     investigate it a little bit more. (MM)
13079         wlarc='$wl'
13080
13081         # ancient GNU ld didn't support --whole-archive et. al.
13082         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13083           $GREP 'no-whole-archive' > /dev/null; then
13084           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13085         else
13086           whole_archive_flag_spec_CXX=
13087         fi
13088       else
13089         with_gnu_ld=no
13090         wlarc=
13091
13092         # A generic and very simple default shared library creation
13093         # command for GNU C++ for the case where it uses the native
13094         # linker, instead of GNU ld.  If possible, this setting should
13095         # overridden to take advantage of the native linker features on
13096         # the platform it is being used on.
13097         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13098       fi
13099
13100       # Commands to make compiler produce verbose output that lists
13101       # what "hidden" libraries, object files and flags are used when
13102       # linking a shared library.
13103       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13104
13105     else
13106       GXX=no
13107       with_gnu_ld=no
13108       wlarc=
13109     fi
13110
13111     # PORTME: fill in a description of your system's C++ link characteristics
13112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13113 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13114     ld_shlibs_CXX=yes
13115     case $host_os in
13116       aix3*)
13117         # FIXME: insert proper C++ library support
13118         ld_shlibs_CXX=no
13119         ;;
13120       aix[4-9]*)
13121         if test ia64 = "$host_cpu"; then
13122           # On IA64, the linker does run time linking by default, so we don't
13123           # have to do anything special.
13124           aix_use_runtimelinking=no
13125           exp_sym_flag='-Bexport'
13126           no_entry_flag=
13127         else
13128           aix_use_runtimelinking=no
13129
13130           # Test if we are trying to use run time linking or normal
13131           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13132           # have runtime linking enabled, and use it for executables.
13133           # For shared libraries, we enable/disable runtime linking
13134           # depending on the kind of the shared library created -
13135           # when "with_aix_soname,aix_use_runtimelinking" is:
13136           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13137           # "aix,yes"  lib.so          shared, rtl:yes, for executables
13138           #            lib.a           static archive
13139           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13140           #            lib.a(lib.so.V) shared, rtl:no,  for executables
13141           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13142           #            lib.a(lib.so.V) shared, rtl:no
13143           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13144           #            lib.a           static archive
13145           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13146             for ld_flag in $LDFLAGS; do
13147               case $ld_flag in
13148               *-brtl*)
13149                 aix_use_runtimelinking=yes
13150                 break
13151                 ;;
13152               esac
13153             done
13154             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13155               # With aix-soname=svr4, we create the lib.so.V shared archives only,
13156               # so we don't have lib.a shared libs to link our executables.
13157               # We have to force runtime linking in this case.
13158               aix_use_runtimelinking=yes
13159               LDFLAGS="$LDFLAGS -Wl,-brtl"
13160             fi
13161             ;;
13162           esac
13163
13164           exp_sym_flag='-bexport'
13165           no_entry_flag='-bnoentry'
13166         fi
13167
13168         # When large executables or shared objects are built, AIX ld can
13169         # have problems creating the table of contents.  If linking a library
13170         # or program results in "error TOC overflow" add -mminimal-toc to
13171         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13172         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13173
13174         archive_cmds_CXX=''
13175         hardcode_direct_CXX=yes
13176         hardcode_direct_absolute_CXX=yes
13177         hardcode_libdir_separator_CXX=':'
13178         link_all_deplibs_CXX=yes
13179         file_list_spec_CXX='$wl-f,'
13180         case $with_aix_soname,$aix_use_runtimelinking in
13181         aix,*) ;;       # no import file
13182         svr4,* | *,yes) # use import file
13183           # The Import File defines what to hardcode.
13184           hardcode_direct_CXX=no
13185           hardcode_direct_absolute_CXX=no
13186           ;;
13187         esac
13188
13189         if test yes = "$GXX"; then
13190           case $host_os in aix4.[012]|aix4.[012].*)
13191           # We only want to do this on AIX 4.2 and lower, the check
13192           # below for broken collect2 doesn't work under 4.3+
13193           collect2name=`$CC -print-prog-name=collect2`
13194           if test -f "$collect2name" &&
13195              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13196           then
13197             # We have reworked collect2
13198             :
13199           else
13200             # We have old collect2
13201             hardcode_direct_CXX=unsupported
13202             # It fails to find uninstalled libraries when the uninstalled
13203             # path is not listed in the libpath.  Setting hardcode_minus_L
13204             # to unsupported forces relinking
13205             hardcode_minus_L_CXX=yes
13206             hardcode_libdir_flag_spec_CXX='-L$libdir'
13207             hardcode_libdir_separator_CXX=
13208           fi
13209           esac
13210           shared_flag='-shared'
13211           if test yes = "$aix_use_runtimelinking"; then
13212             shared_flag=$shared_flag' $wl-G'
13213           fi
13214           # Need to ensure runtime linking is disabled for the traditional
13215           # shared library, or the linker may eventually find shared libraries
13216           # /with/ Import File - we do not want to mix them.
13217           shared_flag_aix='-shared'
13218           shared_flag_svr4='-shared $wl-G'
13219         else
13220           # not using gcc
13221           if test ia64 = "$host_cpu"; then
13222           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13223           # chokes on -Wl,-G. The following line is correct:
13224           shared_flag='-G'
13225           else
13226             if test yes = "$aix_use_runtimelinking"; then
13227               shared_flag='$wl-G'
13228             else
13229               shared_flag='$wl-bM:SRE'
13230             fi
13231             shared_flag_aix='$wl-bM:SRE'
13232             shared_flag_svr4='$wl-G'
13233           fi
13234         fi
13235
13236         export_dynamic_flag_spec_CXX='$wl-bexpall'
13237         # It seems that -bexpall does not export symbols beginning with
13238         # underscore (_), so it is better to generate a list of symbols to
13239         # export.
13240         always_export_symbols_CXX=yes
13241         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13242           # Warning - without using the other runtime loading flags (-brtl),
13243           # -berok will link without error, but may produce a broken library.
13244           # The "-G" linker flag allows undefined symbols.
13245           no_undefined_flag_CXX='-bernotok'
13246           # Determine the default libpath from the value encoded in an empty
13247           # executable.
13248           if test set = "${lt_cv_aix_libpath+set}"; then
13249   aix_libpath=$lt_cv_aix_libpath
13250 else
13251   if ${lt_cv_aix_libpath__CXX+:} false; then :
13252   $as_echo_n "(cached) " >&6
13253 else
13254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h.  */
13256
13257 int
13258 main ()
13259 {
13260
13261   ;
13262   return 0;
13263 }
13264 _ACEOF
13265 if ac_fn_cxx_try_link "$LINENO"; then :
13266
13267   lt_aix_libpath_sed='
13268       /Import File Strings/,/^$/ {
13269           /^0/ {
13270               s/^0  *\([^ ]*\) *$/\1/
13271               p
13272           }
13273       }'
13274   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13275   # Check for a 64-bit object if we didn't find anything.
13276   if test -z "$lt_cv_aix_libpath__CXX"; then
13277     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13278   fi
13279 fi
13280 rm -f core conftest.err conftest.$ac_objext \
13281     conftest$ac_exeext conftest.$ac_ext
13282   if test -z "$lt_cv_aix_libpath__CXX"; then
13283     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13284   fi
13285
13286 fi
13287
13288   aix_libpath=$lt_cv_aix_libpath__CXX
13289 fi
13290
13291           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13292
13293           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
13294         else
13295           if test ia64 = "$host_cpu"; then
13296             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13297             allow_undefined_flag_CXX="-z nodefs"
13298             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"
13299           else
13300             # Determine the default libpath from the value encoded in an
13301             # empty executable.
13302             if test set = "${lt_cv_aix_libpath+set}"; then
13303   aix_libpath=$lt_cv_aix_libpath
13304 else
13305   if ${lt_cv_aix_libpath__CXX+:} false; then :
13306   $as_echo_n "(cached) " >&6
13307 else
13308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h.  */
13310
13311 int
13312 main ()
13313 {
13314
13315   ;
13316   return 0;
13317 }
13318 _ACEOF
13319 if ac_fn_cxx_try_link "$LINENO"; then :
13320
13321   lt_aix_libpath_sed='
13322       /Import File Strings/,/^$/ {
13323           /^0/ {
13324               s/^0  *\([^ ]*\) *$/\1/
13325               p
13326           }
13327       }'
13328   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13329   # Check for a 64-bit object if we didn't find anything.
13330   if test -z "$lt_cv_aix_libpath__CXX"; then
13331     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13332   fi
13333 fi
13334 rm -f core conftest.err conftest.$ac_objext \
13335     conftest$ac_exeext conftest.$ac_ext
13336   if test -z "$lt_cv_aix_libpath__CXX"; then
13337     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13338   fi
13339
13340 fi
13341
13342   aix_libpath=$lt_cv_aix_libpath__CXX
13343 fi
13344
13345             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13346             # Warning - without using the other run time loading flags,
13347             # -berok will link without error, but may produce a broken library.
13348             no_undefined_flag_CXX=' $wl-bernotok'
13349             allow_undefined_flag_CXX=' $wl-berok'
13350             if test yes = "$with_gnu_ld"; then
13351               # We only use this code for GNU lds that support --whole-archive.
13352               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13353             else
13354               # Exported symbols can be pulled into shared objects from archives
13355               whole_archive_flag_spec_CXX='$convenience'
13356             fi
13357             archive_cmds_need_lc_CXX=yes
13358             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13359             # -brtl affects multiple linker settings, -berok does not and is overridden later
13360             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13361             if test svr4 != "$with_aix_soname"; then
13362               # This is similar to how AIX traditionally builds its shared
13363               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13364               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'
13365             fi
13366             if test aix != "$with_aix_soname"; then
13367               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'
13368             else
13369               # used by -dlpreopen to get the symbols
13370               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13371             fi
13372             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13373           fi
13374         fi
13375         ;;
13376
13377       beos*)
13378         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13379           allow_undefined_flag_CXX=unsupported
13380           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13381           # support --undefined.  This deserves some investigation.  FIXME
13382           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13383         else
13384           ld_shlibs_CXX=no
13385         fi
13386         ;;
13387
13388       chorus*)
13389         case $cc_basename in
13390           *)
13391           # FIXME: insert proper C++ library support
13392           ld_shlibs_CXX=no
13393           ;;
13394         esac
13395         ;;
13396
13397       cygwin* | mingw* | pw32* | cegcc*)
13398         case $GXX,$cc_basename in
13399         ,cl* | no,cl*)
13400           # Native MSVC
13401           # hardcode_libdir_flag_spec is actually meaningless, as there is
13402           # no search path for DLLs.
13403           hardcode_libdir_flag_spec_CXX=' '
13404           allow_undefined_flag_CXX=unsupported
13405           always_export_symbols_CXX=yes
13406           file_list_spec_CXX='@'
13407           # Tell ltmain to make .lib files, not .a files.
13408           libext=lib
13409           # Tell ltmain to make .dll files, not .so files.
13410           shrext_cmds=.dll
13411           # FIXME: Setting linknames here is a bad hack.
13412           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13413           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13414               cp "$export_symbols" "$output_objdir/$soname.def";
13415               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13416             else
13417               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13418             fi~
13419             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13420             linknames='
13421           # The linker will not automatically build a static lib if we build a DLL.
13422           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13423           enable_shared_with_static_runtimes_CXX=yes
13424           # Don't use ranlib
13425           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13426           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13427             lt_tool_outputfile="@TOOL_OUTPUT@"~
13428             case $lt_outputfile in
13429               *.exe|*.EXE) ;;
13430               *)
13431                 lt_outputfile=$lt_outputfile.exe
13432                 lt_tool_outputfile=$lt_tool_outputfile.exe
13433                 ;;
13434             esac~
13435             func_to_tool_file "$lt_outputfile"~
13436             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13437               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13438               $RM "$lt_outputfile.manifest";
13439             fi'
13440           ;;
13441         *)
13442           # g++
13443           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13444           # as there is no search path for DLLs.
13445           hardcode_libdir_flag_spec_CXX='-L$libdir'
13446           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13447           allow_undefined_flag_CXX=unsupported
13448           always_export_symbols_CXX=no
13449           enable_shared_with_static_runtimes_CXX=yes
13450
13451           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13452             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'
13453             # If the export-symbols file already is a .def file, use it as
13454             # is; otherwise, prepend EXPORTS...
13455             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13456               cp $export_symbols $output_objdir/$soname.def;
13457             else
13458               echo EXPORTS > $output_objdir/$soname.def;
13459               cat $export_symbols >> $output_objdir/$soname.def;
13460             fi~
13461             $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'
13462           else
13463             ld_shlibs_CXX=no
13464           fi
13465           ;;
13466         esac
13467         ;;
13468       darwin* | rhapsody*)
13469
13470
13471   archive_cmds_need_lc_CXX=no
13472   hardcode_direct_CXX=no
13473   hardcode_automatic_CXX=yes
13474   hardcode_shlibpath_var_CXX=unsupported
13475   if test yes = "$lt_cv_ld_force_load"; then
13476     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\"`'
13477
13478   else
13479     whole_archive_flag_spec_CXX=''
13480   fi
13481   link_all_deplibs_CXX=yes
13482   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13483   case $cc_basename in
13484      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13485      *) _lt_dar_can_shared=$GCC ;;
13486   esac
13487   if test yes = "$_lt_dar_can_shared"; then
13488     output_verbose_link_cmd=func_echo_all
13489     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"
13490     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13491     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"
13492     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"
13493        if test yes != "$lt_cv_apple_cc_single_mod"; then
13494       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"
13495       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"
13496     fi
13497
13498   else
13499   ld_shlibs_CXX=no
13500   fi
13501
13502         ;;
13503
13504       os2*)
13505         hardcode_libdir_flag_spec_CXX='-L$libdir'
13506         hardcode_minus_L_CXX=yes
13507         allow_undefined_flag_CXX=unsupported
13508         shrext_cmds=.dll
13509         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13510           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13511           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13512           $ECHO EXPORTS >> $output_objdir/$libname.def~
13513           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13514           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13515           emximp -o $lib $output_objdir/$libname.def'
13516         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13517           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13518           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13519           $ECHO EXPORTS >> $output_objdir/$libname.def~
13520           prefix_cmds="$SED"~
13521           if test EXPORTS = "`$SED 1q $export_symbols`"; then
13522             prefix_cmds="$prefix_cmds -e 1d";
13523           fi~
13524           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13525           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13526           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13527           emximp -o $lib $output_objdir/$libname.def'
13528         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13529         enable_shared_with_static_runtimes_CXX=yes
13530         ;;
13531
13532       dgux*)
13533         case $cc_basename in
13534           ec++*)
13535             # FIXME: insert proper C++ library support
13536             ld_shlibs_CXX=no
13537             ;;
13538           ghcx*)
13539             # Green Hills C++ Compiler
13540             # FIXME: insert proper C++ library support
13541             ld_shlibs_CXX=no
13542             ;;
13543           *)
13544             # FIXME: insert proper C++ library support
13545             ld_shlibs_CXX=no
13546             ;;
13547         esac
13548         ;;
13549
13550       freebsd2.*)
13551         # C++ shared libraries reported to be fairly broken before
13552         # switch to ELF
13553         ld_shlibs_CXX=no
13554         ;;
13555
13556       freebsd-elf*)
13557         archive_cmds_need_lc_CXX=no
13558         ;;
13559
13560       freebsd* | dragonfly*)
13561         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13562         # conventions
13563         ld_shlibs_CXX=yes
13564         ;;
13565
13566       haiku*)
13567         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13568         link_all_deplibs_CXX=yes
13569         ;;
13570
13571       hpux9*)
13572         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13573         hardcode_libdir_separator_CXX=:
13574         export_dynamic_flag_spec_CXX='$wl-E'
13575         hardcode_direct_CXX=yes
13576         hardcode_minus_L_CXX=yes # Not in the search PATH,
13577                                              # but as the default
13578                                              # location of the library.
13579
13580         case $cc_basename in
13581           CC*)
13582             # FIXME: insert proper C++ library support
13583             ld_shlibs_CXX=no
13584             ;;
13585           aCC*)
13586             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 -f $output_objdir/$soname $lib'
13587             # Commands to make compiler produce verbose output that lists
13588             # what "hidden" libraries, object files and flags are used when
13589             # linking a shared library.
13590             #
13591             # There doesn't appear to be a way to prevent this compiler from
13592             # explicitly linking system object files so we need to strip them
13593             # from the output so that they don't get included in the library
13594             # dependencies.
13595             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"'
13596             ;;
13597           *)
13598             if test yes = "$GXX"; then
13599               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 -f $output_objdir/$soname $lib'
13600             else
13601               # FIXME: insert proper C++ library support
13602               ld_shlibs_CXX=no
13603             fi
13604             ;;
13605         esac
13606         ;;
13607
13608       hpux10*|hpux11*)
13609         if test no = "$with_gnu_ld"; then
13610           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13611           hardcode_libdir_separator_CXX=:
13612
13613           case $host_cpu in
13614             hppa*64*|ia64*)
13615               ;;
13616             *)
13617               export_dynamic_flag_spec_CXX='$wl-E'
13618               ;;
13619           esac
13620         fi
13621         case $host_cpu in
13622           hppa*64*|ia64*)
13623             hardcode_direct_CXX=no
13624             hardcode_shlibpath_var_CXX=no
13625             ;;
13626           *)
13627             hardcode_direct_CXX=yes
13628             hardcode_direct_absolute_CXX=yes
13629             hardcode_minus_L_CXX=yes # Not in the search PATH,
13630                                                  # but as the default
13631                                                  # location of the library.
13632             ;;
13633         esac
13634
13635         case $cc_basename in
13636           CC*)
13637             # FIXME: insert proper C++ library support
13638             ld_shlibs_CXX=no
13639             ;;
13640           aCC*)
13641             case $host_cpu in
13642               hppa*64*)
13643                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13644                 ;;
13645               ia64*)
13646                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647                 ;;
13648               *)
13649                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650                 ;;
13651             esac
13652             # Commands to make compiler produce verbose output that lists
13653             # what "hidden" libraries, object files and flags are used when
13654             # linking a shared library.
13655             #
13656             # There doesn't appear to be a way to prevent this compiler from
13657             # explicitly linking system object files so we need to strip them
13658             # from the output so that they don't get included in the library
13659             # dependencies.
13660             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"'
13661             ;;
13662           *)
13663             if test yes = "$GXX"; then
13664               if test no = "$with_gnu_ld"; then
13665                 case $host_cpu in
13666                   hppa*64*)
13667                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668                     ;;
13669                   ia64*)
13670                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671                     ;;
13672                   *)
13673                     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'
13674                     ;;
13675                 esac
13676               fi
13677             else
13678               # FIXME: insert proper C++ library support
13679               ld_shlibs_CXX=no
13680             fi
13681             ;;
13682         esac
13683         ;;
13684
13685       interix[3-9]*)
13686         hardcode_direct_CXX=no
13687         hardcode_shlibpath_var_CXX=no
13688         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13689         export_dynamic_flag_spec_CXX='$wl-E'
13690         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13691         # Instead, shared libraries are loaded at an image base (0x10000000 by
13692         # default) and relocated if they conflict, which is a slow very memory
13693         # consuming and fragmenting process.  To avoid this, we pick a random,
13694         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13695         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13696         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'
13697         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'
13698         ;;
13699       irix5* | irix6*)
13700         case $cc_basename in
13701           CC*)
13702             # SGI C++
13703             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'
13704
13705             # Archives containing C++ object files must be created using
13706             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13707             # necessary to make sure instantiated templates are included
13708             # in the archive.
13709             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13710             ;;
13711           *)
13712             if test yes = "$GXX"; then
13713               if test no = "$with_gnu_ld"; then
13714                 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'
13715               else
13716                 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'
13717               fi
13718             fi
13719             link_all_deplibs_CXX=yes
13720             ;;
13721         esac
13722         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13723         hardcode_libdir_separator_CXX=:
13724         inherit_rpath_CXX=yes
13725         ;;
13726
13727       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13728         case $cc_basename in
13729           KCC*)
13730             # Kuck and Associates, Inc. (KAI) C++ Compiler
13731
13732             # KCC will only create a shared library if the output file
13733             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13734             # to its proper name (with version) after linking.
13735             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 -f \$templib $lib'
13736             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 -f \$templib $lib'
13737             # Commands to make compiler produce verbose output that lists
13738             # what "hidden" libraries, object files and flags are used when
13739             # linking a shared library.
13740             #
13741             # There doesn't appear to be a way to prevent this compiler from
13742             # explicitly linking system object files so we need to strip them
13743             # from the output so that they don't get included in the library
13744             # dependencies.
13745             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"'
13746
13747             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13748             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13749
13750             # Archives containing C++ object files must be created using
13751             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13752             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13753             ;;
13754           icpc* | ecpc* )
13755             # Intel C++
13756             with_gnu_ld=yes
13757             # version 8.0 and above of icpc choke on multiply defined symbols
13758             # if we add $predep_objects and $postdep_objects, however 7.1 and
13759             # earlier do not add the objects themselves.
13760             case `$CC -V 2>&1` in
13761               *"Version 7."*)
13762                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13763                 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'
13764                 ;;
13765               *)  # Version 8.0 or newer
13766                 tmp_idyn=
13767                 case $host_cpu in
13768                   ia64*) tmp_idyn=' -i_dynamic';;
13769                 esac
13770                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13771                 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'
13772                 ;;
13773             esac
13774             archive_cmds_need_lc_CXX=no
13775             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13776             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13777             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13778             ;;
13779           pgCC* | pgcpp*)
13780             # Portland Group C++ compiler
13781             case `$CC -V` in
13782             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13783               prelink_cmds_CXX='tpldir=Template.dir~
13784                rm -rf $tpldir~
13785                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13786                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13787               old_archive_cmds_CXX='tpldir=Template.dir~
13788                 rm -rf $tpldir~
13789                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13790                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13791                 $RANLIB $oldlib'
13792               archive_cmds_CXX='tpldir=Template.dir~
13793                 rm -rf $tpldir~
13794                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13795                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13796               archive_expsym_cmds_CXX='tpldir=Template.dir~
13797                 rm -rf $tpldir~
13798                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13799                 $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'
13800               ;;
13801             *) # Version 6 and above use weak symbols
13802               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13803               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'
13804               ;;
13805             esac
13806
13807             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13808             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13809             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'
13810             ;;
13811           cxx*)
13812             # Compaq C++
13813             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13814             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'
13815
13816             runpath_var=LD_RUN_PATH
13817             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13818             hardcode_libdir_separator_CXX=:
13819
13820             # Commands to make compiler produce verbose output that lists
13821             # what "hidden" libraries, object files and flags are used when
13822             # linking a shared library.
13823             #
13824             # There doesn't appear to be a way to prevent this compiler from
13825             # explicitly linking system object files so we need to strip them
13826             # from the output so that they don't get included in the library
13827             # dependencies.
13828             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'
13829             ;;
13830           xl* | mpixl* | bgxl*)
13831             # IBM XL 8.0 on PPC, with GNU ld
13832             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13833             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13834             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13835             if test yes = "$supports_anon_versioning"; then
13836               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13837                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13838                 echo "local: *; };" >> $output_objdir/$libname.ver~
13839                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13840             fi
13841             ;;
13842           *)
13843             case `$CC -V 2>&1 | sed 5q` in
13844             *Sun\ C*)
13845               # Sun C++ 5.9
13846               no_undefined_flag_CXX=' -zdefs'
13847               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13848               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'
13849               hardcode_libdir_flag_spec_CXX='-R$libdir'
13850               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'
13851               compiler_needs_object_CXX=yes
13852
13853               # Not sure whether something based on
13854               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13855               # would be better.
13856               output_verbose_link_cmd='func_echo_all'
13857
13858               # Archives containing C++ object files must be created using
13859               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13860               # necessary to make sure instantiated templates are included
13861               # in the archive.
13862               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13863               ;;
13864             esac
13865             ;;
13866         esac
13867         ;;
13868
13869       lynxos*)
13870         # FIXME: insert proper C++ library support
13871         ld_shlibs_CXX=no
13872         ;;
13873
13874       m88k*)
13875         # FIXME: insert proper C++ library support
13876         ld_shlibs_CXX=no
13877         ;;
13878
13879       mvs*)
13880         case $cc_basename in
13881           cxx*)
13882             # FIXME: insert proper C++ library support
13883             ld_shlibs_CXX=no
13884             ;;
13885           *)
13886             # FIXME: insert proper C++ library support
13887             ld_shlibs_CXX=no
13888             ;;
13889         esac
13890         ;;
13891
13892       netbsd*)
13893         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13894           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13895           wlarc=
13896           hardcode_libdir_flag_spec_CXX='-R$libdir'
13897           hardcode_direct_CXX=yes
13898           hardcode_shlibpath_var_CXX=no
13899         fi
13900         # Workaround some broken pre-1.5 toolchains
13901         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13902         ;;
13903
13904       *nto* | *qnx*)
13905         ld_shlibs_CXX=yes
13906         ;;
13907
13908       openbsd* | bitrig*)
13909         if test -f /usr/libexec/ld.so; then
13910           hardcode_direct_CXX=yes
13911           hardcode_shlibpath_var_CXX=no
13912           hardcode_direct_absolute_CXX=yes
13913           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13914           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13915           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13916             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13917             export_dynamic_flag_spec_CXX='$wl-E'
13918             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13919           fi
13920           output_verbose_link_cmd=func_echo_all
13921         else
13922           ld_shlibs_CXX=no
13923         fi
13924         ;;
13925
13926       osf3* | osf4* | osf5*)
13927         case $cc_basename in
13928           KCC*)
13929             # Kuck and Associates, Inc. (KAI) C++ Compiler
13930
13931             # KCC will only create a shared library if the output file
13932             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13933             # to its proper name (with version) after linking.
13934             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 -f \$templib $lib'
13935
13936             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13937             hardcode_libdir_separator_CXX=:
13938
13939             # Archives containing C++ object files must be created using
13940             # the KAI C++ compiler.
13941             case $host in
13942               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13943               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13944             esac
13945             ;;
13946           RCC*)
13947             # Rational C++ 2.4.1
13948             # FIXME: insert proper C++ library support
13949             ld_shlibs_CXX=no
13950             ;;
13951           cxx*)
13952             case $host in
13953               osf3*)
13954                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13955                 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'
13956                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13957                 ;;
13958               *)
13959                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13960                 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'
13961                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13962                   echo "-hidden">> $lib.exp~
13963                   $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~
13964                   $RM $lib.exp'
13965                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13966                 ;;
13967             esac
13968
13969             hardcode_libdir_separator_CXX=:
13970
13971             # Commands to make compiler produce verbose output that lists
13972             # what "hidden" libraries, object files and flags are used when
13973             # linking a shared library.
13974             #
13975             # There doesn't appear to be a way to prevent this compiler from
13976             # explicitly linking system object files so we need to strip them
13977             # from the output so that they don't get included in the library
13978             # dependencies.
13979             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"'
13980             ;;
13981           *)
13982             if test yes,no = "$GXX,$with_gnu_ld"; then
13983               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13984               case $host in
13985                 osf3*)
13986                   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'
13987                   ;;
13988                 *)
13989                   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'
13990                   ;;
13991               esac
13992
13993               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13994               hardcode_libdir_separator_CXX=:
13995
13996               # Commands to make compiler produce verbose output that lists
13997               # what "hidden" libraries, object files and flags are used when
13998               # linking a shared library.
13999               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14000
14001             else
14002               # FIXME: insert proper C++ library support
14003               ld_shlibs_CXX=no
14004             fi
14005             ;;
14006         esac
14007         ;;
14008
14009       psos*)
14010         # FIXME: insert proper C++ library support
14011         ld_shlibs_CXX=no
14012         ;;
14013
14014       sunos4*)
14015         case $cc_basename in
14016           CC*)
14017             # Sun C++ 4.x
14018             # FIXME: insert proper C++ library support
14019             ld_shlibs_CXX=no
14020             ;;
14021           lcc*)
14022             # Lucid
14023             # FIXME: insert proper C++ library support
14024             ld_shlibs_CXX=no
14025             ;;
14026           *)
14027             # FIXME: insert proper C++ library support
14028             ld_shlibs_CXX=no
14029             ;;
14030         esac
14031         ;;
14032
14033       solaris*)
14034         case $cc_basename in
14035           CC* | sunCC*)
14036             # Sun C++ 4.2, 5.x and Centerline C++
14037             archive_cmds_need_lc_CXX=yes
14038             no_undefined_flag_CXX=' -zdefs'
14039             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14040             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14041               $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'
14042
14043             hardcode_libdir_flag_spec_CXX='-R$libdir'
14044             hardcode_shlibpath_var_CXX=no
14045             case $host_os in
14046               solaris2.[0-5] | solaris2.[0-5].*) ;;
14047               *)
14048                 # The compiler driver will combine and reorder linker options,
14049                 # but understands '-z linker_flag'.
14050                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14051                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14052                 ;;
14053             esac
14054             link_all_deplibs_CXX=yes
14055
14056             output_verbose_link_cmd='func_echo_all'
14057
14058             # Archives containing C++ object files must be created using
14059             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14060             # necessary to make sure instantiated templates are included
14061             # in the archive.
14062             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14063             ;;
14064           gcx*)
14065             # Green Hills C++ Compiler
14066             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14067
14068             # The C++ compiler must be used to create the archive.
14069             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14070             ;;
14071           *)
14072             # GNU C++ compiler with Solaris linker
14073             if test yes,no = "$GXX,$with_gnu_ld"; then
14074               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14075               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14076                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14077                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14078                   $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'
14079
14080                 # Commands to make compiler produce verbose output that lists
14081                 # what "hidden" libraries, object files and flags are used when
14082                 # linking a shared library.
14083                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14084               else
14085                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14086                 # platform.
14087                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14088                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14089                   $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'
14090
14091                 # Commands to make compiler produce verbose output that lists
14092                 # what "hidden" libraries, object files and flags are used when
14093                 # linking a shared library.
14094                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14095               fi
14096
14097               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14098               case $host_os in
14099                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14100                 *)
14101                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14102                   ;;
14103               esac
14104             fi
14105             ;;
14106         esac
14107         ;;
14108
14109     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14110       no_undefined_flag_CXX='$wl-z,text'
14111       archive_cmds_need_lc_CXX=no
14112       hardcode_shlibpath_var_CXX=no
14113       runpath_var='LD_RUN_PATH'
14114
14115       case $cc_basename in
14116         CC*)
14117           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14118           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14119           ;;
14120         *)
14121           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14122           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123           ;;
14124       esac
14125       ;;
14126
14127       sysv5* | sco3.2v5* | sco5v6*)
14128         # Note: We CANNOT use -z defs as we might desire, because we do not
14129         # link with -lc, and that would cause any symbols used from libc to
14130         # always be unresolved, which means just about no library would
14131         # ever link correctly.  If we're not using GNU ld we use -z text
14132         # though, which does catch some bad symbols but isn't as heavy-handed
14133         # as -z defs.
14134         no_undefined_flag_CXX='$wl-z,text'
14135         allow_undefined_flag_CXX='$wl-z,nodefs'
14136         archive_cmds_need_lc_CXX=no
14137         hardcode_shlibpath_var_CXX=no
14138         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14139         hardcode_libdir_separator_CXX=':'
14140         link_all_deplibs_CXX=yes
14141         export_dynamic_flag_spec_CXX='$wl-Bexport'
14142         runpath_var='LD_RUN_PATH'
14143
14144         case $cc_basename in
14145           CC*)
14146             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14147             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14149               '"$old_archive_cmds_CXX"
14150             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14151               '"$reload_cmds_CXX"
14152             ;;
14153           *)
14154             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14155             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14156             ;;
14157         esac
14158       ;;
14159
14160       tandem*)
14161         case $cc_basename in
14162           NCC*)
14163             # NonStop-UX NCC 3.20
14164             # FIXME: insert proper C++ library support
14165             ld_shlibs_CXX=no
14166             ;;
14167           *)
14168             # FIXME: insert proper C++ library support
14169             ld_shlibs_CXX=no
14170             ;;
14171         esac
14172         ;;
14173
14174       vxworks*)
14175         # FIXME: insert proper C++ library support
14176         ld_shlibs_CXX=no
14177         ;;
14178
14179       *)
14180         # FIXME: insert proper C++ library support
14181         ld_shlibs_CXX=no
14182         ;;
14183     esac
14184
14185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14186 $as_echo "$ld_shlibs_CXX" >&6; }
14187     test no = "$ld_shlibs_CXX" && can_build_shared=no
14188
14189     GCC_CXX=$GXX
14190     LD_CXX=$LD
14191
14192     ## CAVEAT EMPTOR:
14193     ## There is no encapsulation within the following macros, do not change
14194     ## the running order or otherwise move them around unless you know exactly
14195     ## what you are doing...
14196     # Dependencies to place before and after the object being linked:
14197 predep_objects_CXX=
14198 postdep_objects_CXX=
14199 predeps_CXX=
14200 postdeps_CXX=
14201 compiler_lib_search_path_CXX=
14202
14203 cat > conftest.$ac_ext <<_LT_EOF
14204 class Foo
14205 {
14206 public:
14207   Foo (void) { a = 0; }
14208 private:
14209   int a;
14210 };
14211 _LT_EOF
14212
14213
14214 _lt_libdeps_save_CFLAGS=$CFLAGS
14215 case "$CC $CFLAGS " in #(
14216 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14217 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14218 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14219 esac
14220
14221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14222   (eval $ac_compile) 2>&5
14223   ac_status=$?
14224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225   test $ac_status = 0; }; then
14226   # Parse the compiler output and extract the necessary
14227   # objects, libraries and library flags.
14228
14229   # Sentinel used to keep track of whether or not we are before
14230   # the conftest object file.
14231   pre_test_object_deps_done=no
14232
14233   for p in `eval "$output_verbose_link_cmd"`; do
14234     case $prev$p in
14235
14236     -L* | -R* | -l*)
14237        # Some compilers place space between "-{L,R}" and the path.
14238        # Remove the space.
14239        if test x-L = "$p" ||
14240           test x-R = "$p"; then
14241          prev=$p
14242          continue
14243        fi
14244
14245        # Expand the sysroot to ease extracting the directories later.
14246        if test -z "$prev"; then
14247          case $p in
14248          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14249          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14250          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14251          esac
14252        fi
14253        case $p in
14254        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14255        esac
14256        if test no = "$pre_test_object_deps_done"; then
14257          case $prev in
14258          -L | -R)
14259            # Internal compiler library paths should come after those
14260            # provided the user.  The postdeps already come after the
14261            # user supplied libs so there is no need to process them.
14262            if test -z "$compiler_lib_search_path_CXX"; then
14263              compiler_lib_search_path_CXX=$prev$p
14264            else
14265              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14266            fi
14267            ;;
14268          # The "-l" case would never come before the object being
14269          # linked, so don't bother handling this case.
14270          esac
14271        else
14272          if test -z "$postdeps_CXX"; then
14273            postdeps_CXX=$prev$p
14274          else
14275            postdeps_CXX="${postdeps_CXX} $prev$p"
14276          fi
14277        fi
14278        prev=
14279        ;;
14280
14281     *.lto.$objext) ;; # Ignore GCC LTO objects
14282     *.$objext)
14283        # This assumes that the test object file only shows up
14284        # once in the compiler output.
14285        if test "$p" = "conftest.$objext"; then
14286          pre_test_object_deps_done=yes
14287          continue
14288        fi
14289
14290        if test no = "$pre_test_object_deps_done"; then
14291          if test -z "$predep_objects_CXX"; then
14292            predep_objects_CXX=$p
14293          else
14294            predep_objects_CXX="$predep_objects_CXX $p"
14295          fi
14296        else
14297          if test -z "$postdep_objects_CXX"; then
14298            postdep_objects_CXX=$p
14299          else
14300            postdep_objects_CXX="$postdep_objects_CXX $p"
14301          fi
14302        fi
14303        ;;
14304
14305     *) ;; # Ignore the rest.
14306
14307     esac
14308   done
14309
14310   # Clean up.
14311   rm -f a.out a.exe
14312 else
14313   echo "libtool.m4: error: problem compiling CXX test program"
14314 fi
14315
14316 $RM -f confest.$objext
14317 CFLAGS=$_lt_libdeps_save_CFLAGS
14318
14319 # PORTME: override above test on systems where it is broken
14320 case $host_os in
14321 interix[3-9]*)
14322   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14323   # hack all around it, let's just trust "g++" to DTRT.
14324   predep_objects_CXX=
14325   postdep_objects_CXX=
14326   postdeps_CXX=
14327   ;;
14328 esac
14329
14330
14331 case " $postdeps_CXX " in
14332 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14333 esac
14334  compiler_lib_search_dirs_CXX=
14335 if test -n "${compiler_lib_search_path_CXX}"; then
14336  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14337 fi
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369     lt_prog_compiler_wl_CXX=
14370 lt_prog_compiler_pic_CXX=
14371 lt_prog_compiler_static_CXX=
14372
14373
14374   # C++ specific cases for pic, static, wl, etc.
14375   if test yes = "$GXX"; then
14376     lt_prog_compiler_wl_CXX='-Wl,'
14377     lt_prog_compiler_static_CXX='-static'
14378
14379     case $host_os in
14380     aix*)
14381       # All AIX code is PIC.
14382       if test ia64 = "$host_cpu"; then
14383         # AIX 5 now supports IA64 processor
14384         lt_prog_compiler_static_CXX='-Bstatic'
14385       fi
14386       lt_prog_compiler_pic_CXX='-fPIC'
14387       ;;
14388
14389     amigaos*)
14390       case $host_cpu in
14391       powerpc)
14392             # see comment about AmigaOS4 .so support
14393             lt_prog_compiler_pic_CXX='-fPIC'
14394         ;;
14395       m68k)
14396             # FIXME: we need at least 68020 code to build shared libraries, but
14397             # adding the '-m68020' flag to GCC prevents building anything better,
14398             # like '-m68040'.
14399             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14400         ;;
14401       esac
14402       ;;
14403
14404     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14405       # PIC is the default for these OSes.
14406       ;;
14407     mingw* | cygwin* | os2* | pw32* | cegcc*)
14408       # This hack is so that the source file can tell whether it is being
14409       # built for inclusion in a dll (and should export symbols for example).
14410       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14411       # (--disable-auto-import) libraries
14412       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14413       case $host_os in
14414       os2*)
14415         lt_prog_compiler_static_CXX='$wl-static'
14416         ;;
14417       esac
14418       ;;
14419     darwin* | rhapsody*)
14420       # PIC is the default on this platform
14421       # Common symbols not allowed in MH_DYLIB files
14422       lt_prog_compiler_pic_CXX='-fno-common'
14423       ;;
14424     *djgpp*)
14425       # DJGPP does not support shared libraries at all
14426       lt_prog_compiler_pic_CXX=
14427       ;;
14428     haiku*)
14429       # PIC is the default for Haiku.
14430       # The "-static" flag exists, but is broken.
14431       lt_prog_compiler_static_CXX=
14432       ;;
14433     interix[3-9]*)
14434       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14435       # Instead, we relocate shared libraries at runtime.
14436       ;;
14437     sysv4*MP*)
14438       if test -d /usr/nec; then
14439         lt_prog_compiler_pic_CXX=-Kconform_pic
14440       fi
14441       ;;
14442     hpux*)
14443       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14444       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14445       # sets the default TLS model and affects inlining.
14446       case $host_cpu in
14447       hppa*64*)
14448         ;;
14449       *)
14450         lt_prog_compiler_pic_CXX='-fPIC'
14451         ;;
14452       esac
14453       ;;
14454     *qnx* | *nto*)
14455       # QNX uses GNU C++, but need to define -shared option too, otherwise
14456       # it will coredump.
14457       lt_prog_compiler_pic_CXX='-fPIC -shared'
14458       ;;
14459     *)
14460       lt_prog_compiler_pic_CXX='-fPIC'
14461       ;;
14462     esac
14463   else
14464     case $host_os in
14465       aix[4-9]*)
14466         # All AIX code is PIC.
14467         if test ia64 = "$host_cpu"; then
14468           # AIX 5 now supports IA64 processor
14469           lt_prog_compiler_static_CXX='-Bstatic'
14470         else
14471           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14472         fi
14473         ;;
14474       chorus*)
14475         case $cc_basename in
14476         cxch68*)
14477           # Green Hills C++ Compiler
14478           # _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"
14479           ;;
14480         esac
14481         ;;
14482       mingw* | cygwin* | os2* | pw32* | cegcc*)
14483         # This hack is so that the source file can tell whether it is being
14484         # built for inclusion in a dll (and should export symbols for example).
14485         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14486         ;;
14487       dgux*)
14488         case $cc_basename in
14489           ec++*)
14490             lt_prog_compiler_pic_CXX='-KPIC'
14491             ;;
14492           ghcx*)
14493             # Green Hills C++ Compiler
14494             lt_prog_compiler_pic_CXX='-pic'
14495             ;;
14496           *)
14497             ;;
14498         esac
14499         ;;
14500       freebsd* | dragonfly*)
14501         # FreeBSD uses GNU C++
14502         ;;
14503       hpux9* | hpux10* | hpux11*)
14504         case $cc_basename in
14505           CC*)
14506             lt_prog_compiler_wl_CXX='-Wl,'
14507             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14508             if test ia64 != "$host_cpu"; then
14509               lt_prog_compiler_pic_CXX='+Z'
14510             fi
14511             ;;
14512           aCC*)
14513             lt_prog_compiler_wl_CXX='-Wl,'
14514             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14515             case $host_cpu in
14516             hppa*64*|ia64*)
14517               # +Z the default
14518               ;;
14519             *)
14520               lt_prog_compiler_pic_CXX='+Z'
14521               ;;
14522             esac
14523             ;;
14524           *)
14525             ;;
14526         esac
14527         ;;
14528       interix*)
14529         # This is c89, which is MS Visual C++ (no shared libs)
14530         # Anyone wants to do a port?
14531         ;;
14532       irix5* | irix6* | nonstopux*)
14533         case $cc_basename in
14534           CC*)
14535             lt_prog_compiler_wl_CXX='-Wl,'
14536             lt_prog_compiler_static_CXX='-non_shared'
14537             # CC pic flag -KPIC is the default.
14538             ;;
14539           *)
14540             ;;
14541         esac
14542         ;;
14543       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14544         case $cc_basename in
14545           KCC*)
14546             # KAI C++ Compiler
14547             lt_prog_compiler_wl_CXX='--backend -Wl,'
14548             lt_prog_compiler_pic_CXX='-fPIC'
14549             ;;
14550           ecpc* )
14551             # old Intel C++ for x86_64, which still supported -KPIC.
14552             lt_prog_compiler_wl_CXX='-Wl,'
14553             lt_prog_compiler_pic_CXX='-KPIC'
14554             lt_prog_compiler_static_CXX='-static'
14555             ;;
14556           icpc* )
14557             # Intel C++, used to be incompatible with GCC.
14558             # ICC 10 doesn't accept -KPIC any more.
14559             lt_prog_compiler_wl_CXX='-Wl,'
14560             lt_prog_compiler_pic_CXX='-fPIC'
14561             lt_prog_compiler_static_CXX='-static'
14562             ;;
14563           pgCC* | pgcpp*)
14564             # Portland Group C++ compiler
14565             lt_prog_compiler_wl_CXX='-Wl,'
14566             lt_prog_compiler_pic_CXX='-fpic'
14567             lt_prog_compiler_static_CXX='-Bstatic'
14568             ;;
14569           cxx*)
14570             # Compaq C++
14571             # Make sure the PIC flag is empty.  It appears that all Alpha
14572             # Linux and Compaq Tru64 Unix objects are PIC.
14573             lt_prog_compiler_pic_CXX=
14574             lt_prog_compiler_static_CXX='-non_shared'
14575             ;;
14576           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14577             # IBM XL 8.0, 9.0 on PPC and BlueGene
14578             lt_prog_compiler_wl_CXX='-Wl,'
14579             lt_prog_compiler_pic_CXX='-qpic'
14580             lt_prog_compiler_static_CXX='-qstaticlink'
14581             ;;
14582           *)
14583             case `$CC -V 2>&1 | sed 5q` in
14584             *Sun\ C*)
14585               # Sun C++ 5.9
14586               lt_prog_compiler_pic_CXX='-KPIC'
14587               lt_prog_compiler_static_CXX='-Bstatic'
14588               lt_prog_compiler_wl_CXX='-Qoption ld '
14589               ;;
14590             esac
14591             ;;
14592         esac
14593         ;;
14594       lynxos*)
14595         ;;
14596       m88k*)
14597         ;;
14598       mvs*)
14599         case $cc_basename in
14600           cxx*)
14601             lt_prog_compiler_pic_CXX='-W c,exportall'
14602             ;;
14603           *)
14604             ;;
14605         esac
14606         ;;
14607       netbsd* | netbsdelf*-gnu)
14608         ;;
14609       *qnx* | *nto*)
14610         # QNX uses GNU C++, but need to define -shared option too, otherwise
14611         # it will coredump.
14612         lt_prog_compiler_pic_CXX='-fPIC -shared'
14613         ;;
14614       osf3* | osf4* | osf5*)
14615         case $cc_basename in
14616           KCC*)
14617             lt_prog_compiler_wl_CXX='--backend -Wl,'
14618             ;;
14619           RCC*)
14620             # Rational C++ 2.4.1
14621             lt_prog_compiler_pic_CXX='-pic'
14622             ;;
14623           cxx*)
14624             # Digital/Compaq C++
14625             lt_prog_compiler_wl_CXX='-Wl,'
14626             # Make sure the PIC flag is empty.  It appears that all Alpha
14627             # Linux and Compaq Tru64 Unix objects are PIC.
14628             lt_prog_compiler_pic_CXX=
14629             lt_prog_compiler_static_CXX='-non_shared'
14630             ;;
14631           *)
14632             ;;
14633         esac
14634         ;;
14635       psos*)
14636         ;;
14637       solaris*)
14638         case $cc_basename in
14639           CC* | sunCC*)
14640             # Sun C++ 4.2, 5.x and Centerline C++
14641             lt_prog_compiler_pic_CXX='-KPIC'
14642             lt_prog_compiler_static_CXX='-Bstatic'
14643             lt_prog_compiler_wl_CXX='-Qoption ld '
14644             ;;
14645           gcx*)
14646             # Green Hills C++ Compiler
14647             lt_prog_compiler_pic_CXX='-PIC'
14648             ;;
14649           *)
14650             ;;
14651         esac
14652         ;;
14653       sunos4*)
14654         case $cc_basename in
14655           CC*)
14656             # Sun C++ 4.x
14657             lt_prog_compiler_pic_CXX='-pic'
14658             lt_prog_compiler_static_CXX='-Bstatic'
14659             ;;
14660           lcc*)
14661             # Lucid
14662             lt_prog_compiler_pic_CXX='-pic'
14663             ;;
14664           *)
14665             ;;
14666         esac
14667         ;;
14668       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14669         case $cc_basename in
14670           CC*)
14671             lt_prog_compiler_wl_CXX='-Wl,'
14672             lt_prog_compiler_pic_CXX='-KPIC'
14673             lt_prog_compiler_static_CXX='-Bstatic'
14674             ;;
14675         esac
14676         ;;
14677       tandem*)
14678         case $cc_basename in
14679           NCC*)
14680             # NonStop-UX NCC 3.20
14681             lt_prog_compiler_pic_CXX='-KPIC'
14682             ;;
14683           *)
14684             ;;
14685         esac
14686         ;;
14687       vxworks*)
14688         ;;
14689       *)
14690         lt_prog_compiler_can_build_shared_CXX=no
14691         ;;
14692     esac
14693   fi
14694
14695 case $host_os in
14696   # For platforms that do not support PIC, -DPIC is meaningless:
14697   *djgpp*)
14698     lt_prog_compiler_pic_CXX=
14699     ;;
14700   *)
14701     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14702     ;;
14703 esac
14704
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14706 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14707 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14708   $as_echo_n "(cached) " >&6
14709 else
14710   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14711 fi
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14713 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14714 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14715
14716 #
14717 # Check to make sure the PIC flag actually works.
14718 #
14719 if test -n "$lt_prog_compiler_pic_CXX"; then
14720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14721 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14722 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14723   $as_echo_n "(cached) " >&6
14724 else
14725   lt_cv_prog_compiler_pic_works_CXX=no
14726    ac_outfile=conftest.$ac_objext
14727    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14728    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14729    # Insert the option either (1) after the last *FLAGS variable, or
14730    # (2) before a word containing "conftest.", or (3) at the end.
14731    # Note that $ac_compile itself does not contain backslashes and begins
14732    # with a dollar sign (not a hyphen), so the echo should work correctly.
14733    # The option is referenced via a variable to avoid confusing sed.
14734    lt_compile=`echo "$ac_compile" | $SED \
14735    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14736    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14737    -e 's:$: $lt_compiler_flag:'`
14738    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14739    (eval "$lt_compile" 2>conftest.err)
14740    ac_status=$?
14741    cat conftest.err >&5
14742    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743    if (exit $ac_status) && test -s "$ac_outfile"; then
14744      # The compiler can only warn and ignore the option if not recognized
14745      # So say no if there are warnings other than the usual output.
14746      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14747      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14748      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14749        lt_cv_prog_compiler_pic_works_CXX=yes
14750      fi
14751    fi
14752    $RM conftest*
14753
14754 fi
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14756 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14757
14758 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14759     case $lt_prog_compiler_pic_CXX in
14760      "" | " "*) ;;
14761      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14762      esac
14763 else
14764     lt_prog_compiler_pic_CXX=
14765      lt_prog_compiler_can_build_shared_CXX=no
14766 fi
14767
14768 fi
14769
14770
14771
14772
14773
14774 #
14775 # Check to make sure the static flag actually works.
14776 #
14777 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14779 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14780 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14781   $as_echo_n "(cached) " >&6
14782 else
14783   lt_cv_prog_compiler_static_works_CXX=no
14784    save_LDFLAGS=$LDFLAGS
14785    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14786    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14787    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14788      # The linker can only warn and ignore the option if not recognized
14789      # So say no if there are warnings
14790      if test -s conftest.err; then
14791        # Append any errors to the config.log.
14792        cat conftest.err 1>&5
14793        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14794        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14795        if diff conftest.exp conftest.er2 >/dev/null; then
14796          lt_cv_prog_compiler_static_works_CXX=yes
14797        fi
14798      else
14799        lt_cv_prog_compiler_static_works_CXX=yes
14800      fi
14801    fi
14802    $RM -r conftest*
14803    LDFLAGS=$save_LDFLAGS
14804
14805 fi
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14807 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14808
14809 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14810     :
14811 else
14812     lt_prog_compiler_static_CXX=
14813 fi
14814
14815
14816
14817
14818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14819 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14820 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14821   $as_echo_n "(cached) " >&6
14822 else
14823   lt_cv_prog_compiler_c_o_CXX=no
14824    $RM -r conftest 2>/dev/null
14825    mkdir conftest
14826    cd conftest
14827    mkdir out
14828    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14829
14830    lt_compiler_flag="-o out/conftest2.$ac_objext"
14831    # Insert the option either (1) after the last *FLAGS variable, or
14832    # (2) before a word containing "conftest.", or (3) at the end.
14833    # Note that $ac_compile itself does not contain backslashes and begins
14834    # with a dollar sign (not a hyphen), so the echo should work correctly.
14835    lt_compile=`echo "$ac_compile" | $SED \
14836    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14837    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14838    -e 's:$: $lt_compiler_flag:'`
14839    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14840    (eval "$lt_compile" 2>out/conftest.err)
14841    ac_status=$?
14842    cat out/conftest.err >&5
14843    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14845    then
14846      # The compiler can only warn and ignore the option if not recognized
14847      # So say no if there are warnings
14848      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14849      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14850      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14851        lt_cv_prog_compiler_c_o_CXX=yes
14852      fi
14853    fi
14854    chmod u+w . 2>&5
14855    $RM conftest*
14856    # SGI C++ compiler will create directory out/ii_files/ for
14857    # template instantiation
14858    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14859    $RM out/* && rmdir out
14860    cd ..
14861    $RM -r conftest
14862    $RM conftest*
14863
14864 fi
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14866 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14867
14868
14869
14870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14871 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14872 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14873   $as_echo_n "(cached) " >&6
14874 else
14875   lt_cv_prog_compiler_c_o_CXX=no
14876    $RM -r conftest 2>/dev/null
14877    mkdir conftest
14878    cd conftest
14879    mkdir out
14880    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14881
14882    lt_compiler_flag="-o out/conftest2.$ac_objext"
14883    # Insert the option either (1) after the last *FLAGS variable, or
14884    # (2) before a word containing "conftest.", or (3) at the end.
14885    # Note that $ac_compile itself does not contain backslashes and begins
14886    # with a dollar sign (not a hyphen), so the echo should work correctly.
14887    lt_compile=`echo "$ac_compile" | $SED \
14888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14890    -e 's:$: $lt_compiler_flag:'`
14891    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14892    (eval "$lt_compile" 2>out/conftest.err)
14893    ac_status=$?
14894    cat out/conftest.err >&5
14895    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14897    then
14898      # The compiler can only warn and ignore the option if not recognized
14899      # So say no if there are warnings
14900      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14901      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14902      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14903        lt_cv_prog_compiler_c_o_CXX=yes
14904      fi
14905    fi
14906    chmod u+w . 2>&5
14907    $RM conftest*
14908    # SGI C++ compiler will create directory out/ii_files/ for
14909    # template instantiation
14910    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14911    $RM out/* && rmdir out
14912    cd ..
14913    $RM -r conftest
14914    $RM conftest*
14915
14916 fi
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14918 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14919
14920
14921
14922
14923 hard_links=nottested
14924 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14925   # do not overwrite the value of need_locks provided by the user
14926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14927 $as_echo_n "checking if we can lock with hard links... " >&6; }
14928   hard_links=yes
14929   $RM conftest*
14930   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14931   touch conftest.a
14932   ln conftest.a conftest.b 2>&5 || hard_links=no
14933   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14935 $as_echo "$hard_links" >&6; }
14936   if test no = "$hard_links"; then
14937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14938 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14939     need_locks=warn
14940   fi
14941 else
14942   need_locks=no
14943 fi
14944
14945
14946
14947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14948 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14949
14950   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14951   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14952   case $host_os in
14953   aix[4-9]*)
14954     # If we're using GNU nm, then we don't want the "-C" option.
14955     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14956     # Without the "-l" option, or with the "-B" option, AIX nm treats
14957     # weak defined symbols like other global defined symbols, whereas
14958     # GNU nm marks them as "W".
14959     # While the 'weak' keyword is ignored in the Export File, we need
14960     # it in the Import File for the 'aix-soname' feature, so we have
14961     # to replace the "-B" option with "-P" for AIX nm.
14962     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14963       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'
14964     else
14965       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'
14966     fi
14967     ;;
14968   pw32*)
14969     export_symbols_cmds_CXX=$ltdll_cmds
14970     ;;
14971   cygwin* | mingw* | cegcc*)
14972     case $cc_basename in
14973     cl*)
14974       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14975       ;;
14976     *)
14977       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'
14978       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14979       ;;
14980     esac
14981     ;;
14982   linux* | k*bsd*-gnu | gnu*)
14983     link_all_deplibs_CXX=no
14984     ;;
14985   *)
14986     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14987     ;;
14988   esac
14989
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14991 $as_echo "$ld_shlibs_CXX" >&6; }
14992 test no = "$ld_shlibs_CXX" && can_build_shared=no
14993
14994 with_gnu_ld_CXX=$with_gnu_ld
14995
14996
14997
14998
14999
15000
15001 #
15002 # Do we need to explicitly link libc?
15003 #
15004 case "x$archive_cmds_need_lc_CXX" in
15005 x|xyes)
15006   # Assume -lc should be added
15007   archive_cmds_need_lc_CXX=yes
15008
15009   if test yes,yes = "$GCC,$enable_shared"; then
15010     case $archive_cmds_CXX in
15011     *'~'*)
15012       # FIXME: we may have to deal with multi-command sequences.
15013       ;;
15014     '$CC '*)
15015       # Test whether the compiler implicitly links with -lc since on some
15016       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15017       # to ld, don't add -lc before -lgcc.
15018       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15019 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15020 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15021   $as_echo_n "(cached) " >&6
15022 else
15023   $RM conftest*
15024         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15025
15026         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15027   (eval $ac_compile) 2>&5
15028   ac_status=$?
15029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030   test $ac_status = 0; } 2>conftest.err; then
15031           soname=conftest
15032           lib=conftest
15033           libobjs=conftest.$ac_objext
15034           deplibs=
15035           wl=$lt_prog_compiler_wl_CXX
15036           pic_flag=$lt_prog_compiler_pic_CXX
15037           compiler_flags=-v
15038           linker_flags=-v
15039           verstring=
15040           output_objdir=.
15041           libname=conftest
15042           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15043           allow_undefined_flag_CXX=
15044           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15045   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15046   ac_status=$?
15047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15048   test $ac_status = 0; }
15049           then
15050             lt_cv_archive_cmds_need_lc_CXX=no
15051           else
15052             lt_cv_archive_cmds_need_lc_CXX=yes
15053           fi
15054           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15055         else
15056           cat conftest.err 1>&5
15057         fi
15058         $RM conftest*
15059
15060 fi
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15062 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15063       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15064       ;;
15065     esac
15066   fi
15067   ;;
15068 esac
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15132 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15133
15134 library_names_spec=
15135 libname_spec='lib$name'
15136 soname_spec=
15137 shrext_cmds=.so
15138 postinstall_cmds=
15139 postuninstall_cmds=
15140 finish_cmds=
15141 finish_eval=
15142 shlibpath_var=
15143 shlibpath_overrides_runpath=unknown
15144 version_type=none
15145 dynamic_linker="$host_os ld.so"
15146 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15147 need_lib_prefix=unknown
15148 hardcode_into_libs=no
15149
15150 # when you set need_version to no, make sure it does not cause -set_version
15151 # flags to be left without arguments
15152 need_version=unknown
15153
15154
15155
15156 case $host_os in
15157 aix3*)
15158   version_type=linux # correct to gnu/linux during the next big refactor
15159   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15160   shlibpath_var=LIBPATH
15161
15162   # AIX 3 has no versioning support, so we append a major version to the name.
15163   soname_spec='$libname$release$shared_ext$major'
15164   ;;
15165
15166 aix[4-9]*)
15167   version_type=linux # correct to gnu/linux during the next big refactor
15168   need_lib_prefix=no
15169   need_version=no
15170   hardcode_into_libs=yes
15171   if test ia64 = "$host_cpu"; then
15172     # AIX 5 supports IA64
15173     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15174     shlibpath_var=LD_LIBRARY_PATH
15175   else
15176     # With GCC up to 2.95.x, collect2 would create an import file
15177     # for dependence libraries.  The import file would start with
15178     # the line '#! .'.  This would cause the generated library to
15179     # depend on '.', always an invalid library.  This was fixed in
15180     # development snapshots of GCC prior to 3.0.
15181     case $host_os in
15182       aix4 | aix4.[01] | aix4.[01].*)
15183       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15184            echo ' yes '
15185            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15186         :
15187       else
15188         can_build_shared=no
15189       fi
15190       ;;
15191     esac
15192     # Using Import Files as archive members, it is possible to support
15193     # filename-based versioning of shared library archives on AIX. While
15194     # this would work for both with and without runtime linking, it will
15195     # prevent static linking of such archives. So we do filename-based
15196     # shared library versioning with .so extension only, which is used
15197     # when both runtime linking and shared linking is enabled.
15198     # Unfortunately, runtime linking may impact performance, so we do
15199     # not want this to be the default eventually. Also, we use the
15200     # versioned .so libs for executables only if there is the -brtl
15201     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15202     # To allow for filename-based versioning support, we need to create
15203     # libNAME.so.V as an archive file, containing:
15204     # *) an Import File, referring to the versioned filename of the
15205     #    archive as well as the shared archive member, telling the
15206     #    bitwidth (32 or 64) of that shared object, and providing the
15207     #    list of exported symbols of that shared object, eventually
15208     #    decorated with the 'weak' keyword
15209     # *) the shared object with the F_LOADONLY flag set, to really avoid
15210     #    it being seen by the linker.
15211     # At run time we better use the real file rather than another symlink,
15212     # but for link time we create the symlink libNAME.so -> libNAME.so.V
15213
15214     case $with_aix_soname,$aix_use_runtimelinking in
15215     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15216     # soname into executable. Probably we can add versioning support to
15217     # collect2, so additional links can be useful in future.
15218     aix,yes) # traditional libtool
15219       dynamic_linker='AIX unversionable lib.so'
15220       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15221       # instead of lib<name>.a to let people know that these are not
15222       # typical AIX shared libraries.
15223       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15224       ;;
15225     aix,no) # traditional AIX only
15226       dynamic_linker='AIX lib.a(lib.so.V)'
15227       # We preserve .a as extension for shared libraries through AIX4.2
15228       # and later when we are not doing run time linking.
15229       library_names_spec='$libname$release.a $libname.a'
15230       soname_spec='$libname$release$shared_ext$major'
15231       ;;
15232     svr4,*) # full svr4 only
15233       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15234       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15235       # We do not specify a path in Import Files, so LIBPATH fires.
15236       shlibpath_overrides_runpath=yes
15237       ;;
15238     *,yes) # both, prefer svr4
15239       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15240       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15241       # unpreferred sharedlib libNAME.a needs extra handling
15242       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"'
15243       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"'
15244       # We do not specify a path in Import Files, so LIBPATH fires.
15245       shlibpath_overrides_runpath=yes
15246       ;;
15247     *,no) # both, prefer aix
15248       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15249       library_names_spec='$libname$release.a $libname.a'
15250       soname_spec='$libname$release$shared_ext$major'
15251       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15252       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)'
15253       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"'
15254       ;;
15255     esac
15256     shlibpath_var=LIBPATH
15257   fi
15258   ;;
15259
15260 amigaos*)
15261   case $host_cpu in
15262   powerpc)
15263     # Since July 2007 AmigaOS4 officially supports .so libraries.
15264     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15265     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15266     ;;
15267   m68k)
15268     library_names_spec='$libname.ixlibrary $libname.a'
15269     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15270     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'
15271     ;;
15272   esac
15273   ;;
15274
15275 beos*)
15276   library_names_spec='$libname$shared_ext'
15277   dynamic_linker="$host_os ld.so"
15278   shlibpath_var=LIBRARY_PATH
15279   ;;
15280
15281 bsdi[45]*)
15282   version_type=linux # correct to gnu/linux during the next big refactor
15283   need_version=no
15284   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15285   soname_spec='$libname$release$shared_ext$major'
15286   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15287   shlibpath_var=LD_LIBRARY_PATH
15288   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15289   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15290   # the default ld.so.conf also contains /usr/contrib/lib and
15291   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15292   # libtool to hard-code these into programs
15293   ;;
15294
15295 cygwin* | mingw* | pw32* | cegcc*)
15296   version_type=windows
15297   shrext_cmds=.dll
15298   need_version=no
15299   need_lib_prefix=no
15300
15301   case $GCC,$cc_basename in
15302   yes,*)
15303     # gcc
15304     library_names_spec='$libname.dll.a'
15305     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15306     postinstall_cmds='base_file=`basename \$file`~
15307       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15308       dldir=$destdir/`dirname \$dlpath`~
15309       test -d \$dldir || mkdir -p \$dldir~
15310       $install_prog $dir/$dlname \$dldir/$dlname~
15311       chmod a+x \$dldir/$dlname~
15312       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15313         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15314       fi'
15315     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15316       dlpath=$dir/\$dldll~
15317        $RM \$dlpath'
15318     shlibpath_overrides_runpath=yes
15319
15320     case $host_os in
15321     cygwin*)
15322       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15323       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15324
15325       ;;
15326     mingw* | cegcc*)
15327       # MinGW DLLs use traditional 'lib' prefix
15328       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15329       ;;
15330     pw32*)
15331       # pw32 DLLs use 'pw' prefix rather than 'lib'
15332       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15333       ;;
15334     esac
15335     dynamic_linker='Win32 ld.exe'
15336     ;;
15337
15338   *,cl*)
15339     # Native MSVC
15340     libname_spec='$name'
15341     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15342     library_names_spec='$libname.dll.lib'
15343
15344     case $build_os in
15345     mingw*)
15346       sys_lib_search_path_spec=
15347       lt_save_ifs=$IFS
15348       IFS=';'
15349       for lt_path in $LIB
15350       do
15351         IFS=$lt_save_ifs
15352         # Let DOS variable expansion print the short 8.3 style file name.
15353         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15354         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15355       done
15356       IFS=$lt_save_ifs
15357       # Convert to MSYS style.
15358       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15359       ;;
15360     cygwin*)
15361       # Convert to unix form, then to dos form, then back to unix form
15362       # but this time dos style (no spaces!) so that the unix form looks
15363       # like /cygdrive/c/PROGRA~1:/cygdr...
15364       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15365       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15366       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15367       ;;
15368     *)
15369       sys_lib_search_path_spec=$LIB
15370       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15371         # It is most probably a Windows format PATH.
15372         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15373       else
15374         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15375       fi
15376       # FIXME: find the short name or the path components, as spaces are
15377       # common. (e.g. "Program Files" -> "PROGRA~1")
15378       ;;
15379     esac
15380
15381     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15382     postinstall_cmds='base_file=`basename \$file`~
15383       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15384       dldir=$destdir/`dirname \$dlpath`~
15385       test -d \$dldir || mkdir -p \$dldir~
15386       $install_prog $dir/$dlname \$dldir/$dlname'
15387     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15388       dlpath=$dir/\$dldll~
15389        $RM \$dlpath'
15390     shlibpath_overrides_runpath=yes
15391     dynamic_linker='Win32 link.exe'
15392     ;;
15393
15394   *)
15395     # Assume MSVC wrapper
15396     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15397     dynamic_linker='Win32 ld.exe'
15398     ;;
15399   esac
15400   # FIXME: first we should search . and the directory the executable is in
15401   shlibpath_var=PATH
15402   ;;
15403
15404 darwin* | rhapsody*)
15405   dynamic_linker="$host_os dyld"
15406   version_type=darwin
15407   need_lib_prefix=no
15408   need_version=no
15409   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15410   soname_spec='$libname$release$major$shared_ext'
15411   shlibpath_overrides_runpath=yes
15412   shlibpath_var=DYLD_LIBRARY_PATH
15413   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15414
15415   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15416   ;;
15417
15418 dgux*)
15419   version_type=linux # correct to gnu/linux during the next big refactor
15420   need_lib_prefix=no
15421   need_version=no
15422   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15423   soname_spec='$libname$release$shared_ext$major'
15424   shlibpath_var=LD_LIBRARY_PATH
15425   ;;
15426
15427 freebsd* | dragonfly*)
15428   # DragonFly does not have aout.  When/if they implement a new
15429   # versioning mechanism, adjust this.
15430   if test -x /usr/bin/objformat; then
15431     objformat=`/usr/bin/objformat`
15432   else
15433     case $host_os in
15434     freebsd[23].*) objformat=aout ;;
15435     *) objformat=elf ;;
15436     esac
15437   fi
15438   version_type=freebsd-$objformat
15439   case $version_type in
15440     freebsd-elf*)
15441       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15442       soname_spec='$libname$release$shared_ext$major'
15443       need_version=no
15444       need_lib_prefix=no
15445       ;;
15446     freebsd-*)
15447       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15448       need_version=yes
15449       ;;
15450   esac
15451   shlibpath_var=LD_LIBRARY_PATH
15452   case $host_os in
15453   freebsd2.*)
15454     shlibpath_overrides_runpath=yes
15455     ;;
15456   freebsd3.[01]* | freebsdelf3.[01]*)
15457     shlibpath_overrides_runpath=yes
15458     hardcode_into_libs=yes
15459     ;;
15460   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15461   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15462     shlibpath_overrides_runpath=no
15463     hardcode_into_libs=yes
15464     ;;
15465   *) # from 4.6 on, and DragonFly
15466     shlibpath_overrides_runpath=yes
15467     hardcode_into_libs=yes
15468     ;;
15469   esac
15470   ;;
15471
15472 haiku*)
15473   version_type=linux # correct to gnu/linux during the next big refactor
15474   need_lib_prefix=no
15475   need_version=no
15476   dynamic_linker="$host_os runtime_loader"
15477   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15478   soname_spec='$libname$release$shared_ext$major'
15479   shlibpath_var=LIBRARY_PATH
15480   shlibpath_overrides_runpath=no
15481   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15482   hardcode_into_libs=yes
15483   ;;
15484
15485 hpux9* | hpux10* | hpux11*)
15486   # Give a soname corresponding to the major version so that dld.sl refuses to
15487   # link against other versions.
15488   version_type=sunos
15489   need_lib_prefix=no
15490   need_version=no
15491   case $host_cpu in
15492   ia64*)
15493     shrext_cmds='.so'
15494     hardcode_into_libs=yes
15495     dynamic_linker="$host_os dld.so"
15496     shlibpath_var=LD_LIBRARY_PATH
15497     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15498     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15499     soname_spec='$libname$release$shared_ext$major'
15500     if test 32 = "$HPUX_IA64_MODE"; then
15501       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15502       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15503     else
15504       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15505       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15506     fi
15507     ;;
15508   hppa*64*)
15509     shrext_cmds='.sl'
15510     hardcode_into_libs=yes
15511     dynamic_linker="$host_os dld.sl"
15512     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15513     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15514     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15515     soname_spec='$libname$release$shared_ext$major'
15516     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15517     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15518     ;;
15519   *)
15520     shrext_cmds='.sl'
15521     dynamic_linker="$host_os dld.sl"
15522     shlibpath_var=SHLIB_PATH
15523     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15524     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15525     soname_spec='$libname$release$shared_ext$major'
15526     ;;
15527   esac
15528   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15529   postinstall_cmds='chmod 555 $lib'
15530   # or fails outright, so override atomically:
15531   install_override_mode=555
15532   ;;
15533
15534 interix[3-9]*)
15535   version_type=linux # correct to gnu/linux during the next big refactor
15536   need_lib_prefix=no
15537   need_version=no
15538   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15539   soname_spec='$libname$release$shared_ext$major'
15540   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15541   shlibpath_var=LD_LIBRARY_PATH
15542   shlibpath_overrides_runpath=no
15543   hardcode_into_libs=yes
15544   ;;
15545
15546 irix5* | irix6* | nonstopux*)
15547   case $host_os in
15548     nonstopux*) version_type=nonstopux ;;
15549     *)
15550         if test yes = "$lt_cv_prog_gnu_ld"; then
15551                 version_type=linux # correct to gnu/linux during the next big refactor
15552         else
15553                 version_type=irix
15554         fi ;;
15555   esac
15556   need_lib_prefix=no
15557   need_version=no
15558   soname_spec='$libname$release$shared_ext$major'
15559   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15560   case $host_os in
15561   irix5* | nonstopux*)
15562     libsuff= shlibsuff=
15563     ;;
15564   *)
15565     case $LD in # libtool.m4 will add one of these switches to LD
15566     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15567       libsuff= shlibsuff= libmagic=32-bit;;
15568     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15569       libsuff=32 shlibsuff=N32 libmagic=N32;;
15570     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15571       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15572     *) libsuff= shlibsuff= libmagic=never-match;;
15573     esac
15574     ;;
15575   esac
15576   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15577   shlibpath_overrides_runpath=no
15578   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15579   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15580   hardcode_into_libs=yes
15581   ;;
15582
15583 # No shared lib support for Linux oldld, aout, or coff.
15584 linux*oldld* | linux*aout* | linux*coff*)
15585   dynamic_linker=no
15586   ;;
15587
15588 linux*android*)
15589   version_type=none # Android doesn't support versioned libraries.
15590   need_lib_prefix=no
15591   need_version=no
15592   library_names_spec='$libname$release$shared_ext'
15593   soname_spec='$libname$release$shared_ext'
15594   finish_cmds=
15595   shlibpath_var=LD_LIBRARY_PATH
15596   shlibpath_overrides_runpath=yes
15597
15598   # This implies no fast_install, which is unacceptable.
15599   # Some rework will be needed to allow for fast_install
15600   # before this can be enabled.
15601   hardcode_into_libs=yes
15602
15603   dynamic_linker='Android linker'
15604   # Don't embed -rpath directories since the linker doesn't support them.
15605   hardcode_libdir_flag_spec_CXX='-L$libdir'
15606   ;;
15607
15608 # This must be glibc/ELF.
15609 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15610   version_type=linux # correct to gnu/linux during the next big refactor
15611   need_lib_prefix=no
15612   need_version=no
15613   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15614   soname_spec='$libname$release$shared_ext$major'
15615   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15616   shlibpath_var=LD_LIBRARY_PATH
15617   shlibpath_overrides_runpath=no
15618
15619   # Some binutils ld are patched to set DT_RUNPATH
15620   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15621   $as_echo_n "(cached) " >&6
15622 else
15623   lt_cv_shlibpath_overrides_runpath=no
15624     save_LDFLAGS=$LDFLAGS
15625     save_libdir=$libdir
15626     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15627          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629 /* end confdefs.h.  */
15630
15631 int
15632 main ()
15633 {
15634
15635   ;
15636   return 0;
15637 }
15638 _ACEOF
15639 if ac_fn_cxx_try_link "$LINENO"; then :
15640   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15641   lt_cv_shlibpath_overrides_runpath=yes
15642 fi
15643 fi
15644 rm -f core conftest.err conftest.$ac_objext \
15645     conftest$ac_exeext conftest.$ac_ext
15646     LDFLAGS=$save_LDFLAGS
15647     libdir=$save_libdir
15648
15649 fi
15650
15651   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15652
15653   # This implies no fast_install, which is unacceptable.
15654   # Some rework will be needed to allow for fast_install
15655   # before this can be enabled.
15656   hardcode_into_libs=yes
15657
15658   # Ideally, we could use ldconfig to report *all* directores which are
15659   # searched for libraries, however this is still not possible.  Aside from not
15660   # being certain /sbin/ldconfig is available, command
15661   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15662   # even though it is searched at run-time.  Try to do the best guess by
15663   # appending ld.so.conf contents (and includes) to the search path.
15664   if test -f /etc/ld.so.conf; then
15665     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' ' '`
15666     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15667   fi
15668
15669   # We used to test for /lib/ld.so.1 and disable shared libraries on
15670   # powerpc, because MkLinux only supported shared libraries with the
15671   # GNU dynamic linker.  Since this was broken with cross compilers,
15672   # most powerpc-linux boxes support dynamic linking these days and
15673   # people can always --disable-shared, the test was removed, and we
15674   # assume the GNU/Linux dynamic linker is in use.
15675   dynamic_linker='GNU/Linux ld.so'
15676   ;;
15677
15678 netbsdelf*-gnu)
15679   version_type=linux
15680   need_lib_prefix=no
15681   need_version=no
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15683   soname_spec='${libname}${release}${shared_ext}$major'
15684   shlibpath_var=LD_LIBRARY_PATH
15685   shlibpath_overrides_runpath=no
15686   hardcode_into_libs=yes
15687   dynamic_linker='NetBSD ld.elf_so'
15688   ;;
15689
15690 netbsd*)
15691   version_type=sunos
15692   need_lib_prefix=no
15693   need_version=no
15694   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15695     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15696     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15697     dynamic_linker='NetBSD (a.out) ld.so'
15698   else
15699     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15700     soname_spec='$libname$release$shared_ext$major'
15701     dynamic_linker='NetBSD ld.elf_so'
15702   fi
15703   shlibpath_var=LD_LIBRARY_PATH
15704   shlibpath_overrides_runpath=yes
15705   hardcode_into_libs=yes
15706   ;;
15707
15708 newsos6)
15709   version_type=linux # correct to gnu/linux during the next big refactor
15710   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15711   shlibpath_var=LD_LIBRARY_PATH
15712   shlibpath_overrides_runpath=yes
15713   ;;
15714
15715 *nto* | *qnx*)
15716   version_type=qnx
15717   need_lib_prefix=no
15718   need_version=no
15719   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15720   soname_spec='$libname$release$shared_ext$major'
15721   shlibpath_var=LD_LIBRARY_PATH
15722   shlibpath_overrides_runpath=no
15723   hardcode_into_libs=yes
15724   dynamic_linker='ldqnx.so'
15725   ;;
15726
15727 openbsd* | bitrig*)
15728   version_type=sunos
15729   sys_lib_dlsearch_path_spec=/usr/lib
15730   need_lib_prefix=no
15731   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15732     need_version=no
15733   else
15734     need_version=yes
15735   fi
15736   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15737   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15738   shlibpath_var=LD_LIBRARY_PATH
15739   shlibpath_overrides_runpath=yes
15740   ;;
15741
15742 os2*)
15743   libname_spec='$name'
15744   version_type=windows
15745   shrext_cmds=.dll
15746   need_version=no
15747   need_lib_prefix=no
15748   # OS/2 can only load a DLL with a base name of 8 characters or less.
15749   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15750     v=$($ECHO $release$versuffix | tr -d .-);
15751     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15752     $ECHO $n$v`$shared_ext'
15753   library_names_spec='${libname}_dll.$libext'
15754   dynamic_linker='OS/2 ld.exe'
15755   shlibpath_var=BEGINLIBPATH
15756   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15757   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15758   postinstall_cmds='base_file=`basename \$file`~
15759     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15760     dldir=$destdir/`dirname \$dlpath`~
15761     test -d \$dldir || mkdir -p \$dldir~
15762     $install_prog $dir/$dlname \$dldir/$dlname~
15763     chmod a+x \$dldir/$dlname~
15764     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15765       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15766     fi'
15767   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15768     dlpath=$dir/\$dldll~
15769     $RM \$dlpath'
15770   ;;
15771
15772 osf3* | osf4* | osf5*)
15773   version_type=osf
15774   need_lib_prefix=no
15775   need_version=no
15776   soname_spec='$libname$release$shared_ext$major'
15777   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15778   shlibpath_var=LD_LIBRARY_PATH
15779   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15780   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15781   ;;
15782
15783 rdos*)
15784   dynamic_linker=no
15785   ;;
15786
15787 solaris*)
15788   version_type=linux # correct to gnu/linux during the next big refactor
15789   need_lib_prefix=no
15790   need_version=no
15791   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15792   soname_spec='$libname$release$shared_ext$major'
15793   shlibpath_var=LD_LIBRARY_PATH
15794   shlibpath_overrides_runpath=yes
15795   hardcode_into_libs=yes
15796   # ldd complains unless libraries are executable
15797   postinstall_cmds='chmod +x $lib'
15798   ;;
15799
15800 sunos4*)
15801   version_type=sunos
15802   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15803   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15804   shlibpath_var=LD_LIBRARY_PATH
15805   shlibpath_overrides_runpath=yes
15806   if test yes = "$with_gnu_ld"; then
15807     need_lib_prefix=no
15808   fi
15809   need_version=yes
15810   ;;
15811
15812 sysv4 | sysv4.3*)
15813   version_type=linux # correct to gnu/linux during the next big refactor
15814   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15815   soname_spec='$libname$release$shared_ext$major'
15816   shlibpath_var=LD_LIBRARY_PATH
15817   case $host_vendor in
15818     sni)
15819       shlibpath_overrides_runpath=no
15820       need_lib_prefix=no
15821       runpath_var=LD_RUN_PATH
15822       ;;
15823     siemens)
15824       need_lib_prefix=no
15825       ;;
15826     motorola)
15827       need_lib_prefix=no
15828       need_version=no
15829       shlibpath_overrides_runpath=no
15830       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15831       ;;
15832   esac
15833   ;;
15834
15835 sysv4*MP*)
15836   if test -d /usr/nec; then
15837     version_type=linux # correct to gnu/linux during the next big refactor
15838     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15839     soname_spec='$libname$shared_ext.$major'
15840     shlibpath_var=LD_LIBRARY_PATH
15841   fi
15842   ;;
15843
15844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15845   version_type=sco
15846   need_lib_prefix=no
15847   need_version=no
15848   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15849   soname_spec='$libname$release$shared_ext$major'
15850   shlibpath_var=LD_LIBRARY_PATH
15851   shlibpath_overrides_runpath=yes
15852   hardcode_into_libs=yes
15853   if test yes = "$with_gnu_ld"; then
15854     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15855   else
15856     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15857     case $host_os in
15858       sco3.2v5*)
15859         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15860         ;;
15861     esac
15862   fi
15863   sys_lib_dlsearch_path_spec='/usr/lib'
15864   ;;
15865
15866 tpf*)
15867   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15868   version_type=linux # correct to gnu/linux during the next big refactor
15869   need_lib_prefix=no
15870   need_version=no
15871   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15872   shlibpath_var=LD_LIBRARY_PATH
15873   shlibpath_overrides_runpath=no
15874   hardcode_into_libs=yes
15875   ;;
15876
15877 uts4*)
15878   version_type=linux # correct to gnu/linux during the next big refactor
15879   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15880   soname_spec='$libname$release$shared_ext$major'
15881   shlibpath_var=LD_LIBRARY_PATH
15882   ;;
15883
15884 *)
15885   dynamic_linker=no
15886   ;;
15887 esac
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15889 $as_echo "$dynamic_linker" >&6; }
15890 test no = "$dynamic_linker" && can_build_shared=no
15891
15892 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15893 if test yes = "$GCC"; then
15894   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15895 fi
15896
15897 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15898   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15899 fi
15900
15901 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15902   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15903 fi
15904
15905 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15906 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15907
15908 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15909 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15910
15911 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15912 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15954 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15955 hardcode_action_CXX=
15956 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15957    test -n "$runpath_var_CXX" ||
15958    test yes = "$hardcode_automatic_CXX"; then
15959
15960   # We can hardcode non-existent directories.
15961   if test no != "$hardcode_direct_CXX" &&
15962      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15963      # have to relink, otherwise we might link with an installed library
15964      # when we should be linking with a yet-to-be-installed one
15965      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15966      test no != "$hardcode_minus_L_CXX"; then
15967     # Linking always hardcodes the temporary library directory.
15968     hardcode_action_CXX=relink
15969   else
15970     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15971     hardcode_action_CXX=immediate
15972   fi
15973 else
15974   # We cannot hardcode anything, or else we can only hardcode existing
15975   # directories.
15976   hardcode_action_CXX=unsupported
15977 fi
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15979 $as_echo "$hardcode_action_CXX" >&6; }
15980
15981 if test relink = "$hardcode_action_CXX" ||
15982    test yes = "$inherit_rpath_CXX"; then
15983   # Fast installation is not supported
15984   enable_fast_install=no
15985 elif test yes = "$shlibpath_overrides_runpath" ||
15986      test no = "$enable_shared"; then
15987   # Fast installation is not necessary
15988   enable_fast_install=needless
15989 fi
15990
15991
15992
15993
15994
15995
15996
15997   fi # test -n "$compiler"
15998
15999   CC=$lt_save_CC
16000   CFLAGS=$lt_save_CFLAGS
16001   LDCXX=$LD
16002   LD=$lt_save_LD
16003   GCC=$lt_save_GCC
16004   with_gnu_ld=$lt_save_with_gnu_ld
16005   lt_cv_path_LDCXX=$lt_cv_path_LD
16006   lt_cv_path_LD=$lt_save_path_LD
16007   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16008   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16009 fi # test yes != "$_lt_caught_CXX_error"
16010
16011 ac_ext=c
16012 ac_cpp='$CPP $CPPFLAGS'
16013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031         ac_config_commands="$ac_config_commands libtool"
16032
16033
16034
16035
16036 # Only expand once:
16037
16038
16039
16040
16041
16042 ac_ext=c
16043 ac_cpp='$CPP $CPPFLAGS'
16044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16047
16048 ax_pthread_ok=no
16049
16050 # We used to check for pthread.h first, but this fails if pthread.h
16051 # requires special compiler flags (e.g. on True64 or Sequent).
16052 # It gets checked for in the link test anyway.
16053
16054 # First of all, check if the user has set any of the PTHREAD_LIBS,
16055 # etcetera environment variables, and if threads linking works using
16056 # them:
16057 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16058         save_CFLAGS="$CFLAGS"
16059         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16060         save_LIBS="$LIBS"
16061         LIBS="$PTHREAD_LIBS $LIBS"
16062         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16063 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16064         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065 /* end confdefs.h.  */
16066
16067 /* Override any GCC internal prototype to avoid an error.
16068    Use char because int might match the return type of a GCC
16069    builtin and then its argument prototype would still apply.  */
16070 #ifdef __cplusplus
16071 extern "C"
16072 #endif
16073 char pthread_join ();
16074 int
16075 main ()
16076 {
16077 return pthread_join ();
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 if ac_fn_c_try_link "$LINENO"; then :
16083   ax_pthread_ok=yes
16084 fi
16085 rm -f core conftest.err conftest.$ac_objext \
16086     conftest$ac_exeext conftest.$ac_ext
16087         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16088 $as_echo "$ax_pthread_ok" >&6; }
16089         if test x"$ax_pthread_ok" = xno; then
16090                 PTHREAD_LIBS=""
16091                 PTHREAD_CFLAGS=""
16092         fi
16093         LIBS="$save_LIBS"
16094         CFLAGS="$save_CFLAGS"
16095 fi
16096
16097 # We must check for the threads library under a number of different
16098 # names; the ordering is very important because some systems
16099 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16100 # libraries is broken (non-POSIX).
16101
16102 # Create a list of thread flags to try.  Items starting with a "-" are
16103 # C compiler flags, and other items are library names, except for "none"
16104 # which indicates that we try without any flags at all, and "pthread-config"
16105 # which is a program returning the flags for the Pth emulation library.
16106
16107 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16108
16109 # The ordering *is* (sometimes) important.  Some notes on the
16110 # individual items follow:
16111
16112 # pthreads: AIX (must check this before -lpthread)
16113 # none: in case threads are in libc; should be tried before -Kthread and
16114 #       other compiler flags to prevent continual compiler warnings
16115 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16116 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16117 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16118 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16119 # -pthreads: Solaris/gcc
16120 # -mthreads: Mingw32/gcc, Lynx/gcc
16121 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16122 #      doesn't hurt to check since this sometimes defines pthreads too;
16123 #      also defines -D_REENTRANT)
16124 #      ... -mt is also the pthreads flag for HP/aCC
16125 # pthread: Linux, etcetera
16126 # --thread-safe: KAI C++
16127 # pthread-config: use pthread-config program (for GNU Pth library)
16128
16129 case ${host_os} in
16130         solaris*)
16131
16132         # On Solaris (at least, for some versions), libc contains stubbed
16133         # (non-functional) versions of the pthreads routines, so link-based
16134         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16135         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16136         # a function called by this macro, so we could check for that, but
16137         # who knows whether they'll stub that too in a future libc.)  So,
16138         # we'll just look for -pthreads and -lpthread first:
16139
16140         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16141         ;;
16142
16143         darwin*)
16144         ax_pthread_flags="-pthread $ax_pthread_flags"
16145         ;;
16146 esac
16147
16148 # Clang doesn't consider unrecognized options an error unless we specify
16149 # -Werror. We throw in some extra Clang-specific options to ensure that
16150 # this doesn't happen for GCC, which also accepts -Werror.
16151
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16153 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16154 save_CFLAGS="$CFLAGS"
16155 ax_pthread_extra_flags="-Werror"
16156 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h.  */
16159 int foo(void);
16160 int
16161 main ()
16162 {
16163 foo()
16164   ;
16165   return 0;
16166 }
16167 _ACEOF
16168 if ac_fn_c_try_compile "$LINENO"; then :
16169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16170 $as_echo "yes" >&6; }
16171 else
16172   ax_pthread_extra_flags=
16173                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16174 $as_echo "no" >&6; }
16175 fi
16176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177 CFLAGS="$save_CFLAGS"
16178
16179 if test x"$ax_pthread_ok" = xno; then
16180 for flag in $ax_pthread_flags; do
16181
16182         case $flag in
16183                 none)
16184                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16185 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16186                 ;;
16187
16188                 -*)
16189                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16190 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16191                 PTHREAD_CFLAGS="$flag"
16192                 ;;
16193
16194                 pthread-config)
16195                 # Extract the first word of "pthread-config", so it can be a program name with args.
16196 set dummy pthread-config; ac_word=$2
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16198 $as_echo_n "checking for $ac_word... " >&6; }
16199 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16200   $as_echo_n "(cached) " >&6
16201 else
16202   if test -n "$ax_pthread_config"; then
16203   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16204 else
16205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16206 for as_dir in $PATH
16207 do
16208   IFS=$as_save_IFS
16209   test -z "$as_dir" && as_dir=.
16210     for ac_exec_ext in '' $ac_executable_extensions; do
16211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16212     ac_cv_prog_ax_pthread_config="yes"
16213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16214     break 2
16215   fi
16216 done
16217   done
16218 IFS=$as_save_IFS
16219
16220   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16221 fi
16222 fi
16223 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16224 if test -n "$ax_pthread_config"; then
16225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16226 $as_echo "$ax_pthread_config" >&6; }
16227 else
16228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16230 fi
16231
16232
16233                 if test x"$ax_pthread_config" = xno; then continue; fi
16234                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16235                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16236                 ;;
16237
16238                 *)
16239                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16240 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16241                 PTHREAD_LIBS="-l$flag"
16242                 ;;
16243         esac
16244
16245         save_LIBS="$LIBS"
16246         save_CFLAGS="$CFLAGS"
16247         LIBS="$PTHREAD_LIBS $LIBS"
16248         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16249
16250         # Check for various functions.  We must include pthread.h,
16251         # since some functions may be macros.  (On the Sequent, we
16252         # need a special flag -Kthread to make this header compile.)
16253         # We check for pthread_join because it is in -lpthread on IRIX
16254         # while pthread_create is in libc.  We check for pthread_attr_init
16255         # due to DEC craziness with -lpthreads.  We check for
16256         # pthread_cleanup_push because it is one of the few pthread
16257         # functions on Solaris that doesn't have a non-functional libc stub.
16258         # We try pthread_create on general principles.
16259         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h.  */
16261 #include <pthread.h>
16262                         static void routine(void *a) { a = 0; }
16263                         static void *start_routine(void *a) { return a; }
16264 int
16265 main ()
16266 {
16267 pthread_t th; pthread_attr_t attr;
16268                         pthread_create(&th, 0, start_routine, 0);
16269                         pthread_join(th, 0);
16270                         pthread_attr_init(&attr);
16271                         pthread_cleanup_push(routine, 0);
16272                         pthread_cleanup_pop(0) /* ; */
16273   ;
16274   return 0;
16275 }
16276 _ACEOF
16277 if ac_fn_c_try_link "$LINENO"; then :
16278   ax_pthread_ok=yes
16279 fi
16280 rm -f core conftest.err conftest.$ac_objext \
16281     conftest$ac_exeext conftest.$ac_ext
16282
16283         LIBS="$save_LIBS"
16284         CFLAGS="$save_CFLAGS"
16285
16286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16287 $as_echo "$ax_pthread_ok" >&6; }
16288         if test "x$ax_pthread_ok" = xyes; then
16289                 break;
16290         fi
16291
16292         PTHREAD_LIBS=""
16293         PTHREAD_CFLAGS=""
16294 done
16295 fi
16296
16297 # Various other checks:
16298 if test "x$ax_pthread_ok" = xyes; then
16299         save_LIBS="$LIBS"
16300         LIBS="$PTHREAD_LIBS $LIBS"
16301         save_CFLAGS="$CFLAGS"
16302         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16303
16304         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16306 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16307         attr_name=unknown
16308         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16309             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h.  */
16311 #include <pthread.h>
16312 int
16313 main ()
16314 {
16315 int attr = $attr; return attr /* ; */
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 if ac_fn_c_try_link "$LINENO"; then :
16321   attr_name=$attr; break
16322 fi
16323 rm -f core conftest.err conftest.$ac_objext \
16324     conftest$ac_exeext conftest.$ac_ext
16325         done
16326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16327 $as_echo "$attr_name" >&6; }
16328         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16329
16330 cat >>confdefs.h <<_ACEOF
16331 #define PTHREAD_CREATE_JOINABLE $attr_name
16332 _ACEOF
16333
16334         fi
16335
16336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16337 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16338         flag=no
16339         case ${host_os} in
16340             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16341             osf* | hpux*) flag="-D_REENTRANT";;
16342             solaris*)
16343             if test "$GCC" = "yes"; then
16344                 flag="-D_REENTRANT"
16345             else
16346                 # TODO: What about Clang on Solaris?
16347                 flag="-mt -D_REENTRANT"
16348             fi
16349             ;;
16350         esac
16351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16352 $as_echo "$flag" >&6; }
16353         if test "x$flag" != xno; then
16354             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16355         fi
16356
16357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16358 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16359 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16360   $as_echo_n "(cached) " >&6
16361 else
16362
16363                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364 /* end confdefs.h.  */
16365 #include <pthread.h>
16366 int
16367 main ()
16368 {
16369 int i = PTHREAD_PRIO_INHERIT;
16370   ;
16371   return 0;
16372 }
16373 _ACEOF
16374 if ac_fn_c_try_link "$LINENO"; then :
16375   ax_cv_PTHREAD_PRIO_INHERIT=yes
16376 else
16377   ax_cv_PTHREAD_PRIO_INHERIT=no
16378 fi
16379 rm -f core conftest.err conftest.$ac_objext \
16380     conftest$ac_exeext conftest.$ac_ext
16381
16382 fi
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16384 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16385         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16386
16387 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16388
16389 fi
16390
16391         LIBS="$save_LIBS"
16392         CFLAGS="$save_CFLAGS"
16393
16394         # More AIX lossage: compile with *_r variant
16395         if test "x$GCC" != xyes; then
16396             case $host_os in
16397                 aix*)
16398                 case "x/$CC" in #(
16399   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16400     #handle absolute path differently from PATH based program lookup
16401                    case "x$CC" in #(
16402   x/*) :
16403     if as_fn_executable_p ${CC}_r; then :
16404   PTHREAD_CC="${CC}_r"
16405 fi ;; #(
16406   *) :
16407     for ac_prog in ${CC}_r
16408 do
16409   # Extract the first word of "$ac_prog", so it can be a program name with args.
16410 set dummy $ac_prog; ac_word=$2
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16412 $as_echo_n "checking for $ac_word... " >&6; }
16413 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16414   $as_echo_n "(cached) " >&6
16415 else
16416   if test -n "$PTHREAD_CC"; then
16417   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16418 else
16419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16420 for as_dir in $PATH
16421 do
16422   IFS=$as_save_IFS
16423   test -z "$as_dir" && as_dir=.
16424     for ac_exec_ext in '' $ac_executable_extensions; do
16425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16426     ac_cv_prog_PTHREAD_CC="$ac_prog"
16427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16428     break 2
16429   fi
16430 done
16431   done
16432 IFS=$as_save_IFS
16433
16434 fi
16435 fi
16436 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16437 if test -n "$PTHREAD_CC"; then
16438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16439 $as_echo "$PTHREAD_CC" >&6; }
16440 else
16441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442 $as_echo "no" >&6; }
16443 fi
16444
16445
16446   test -n "$PTHREAD_CC" && break
16447 done
16448 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16449  ;;
16450 esac ;; #(
16451   *) :
16452      ;;
16453 esac
16454                 ;;
16455             esac
16456         fi
16457 fi
16458
16459 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16460
16461
16462
16463
16464
16465 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16466 if test x"$ax_pthread_ok" = xyes; then
16467
16468 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16469
16470         :
16471 else
16472         ax_pthread_ok=no
16473
16474 fi
16475 ac_ext=c
16476 ac_cpp='$CPP $CPPFLAGS'
16477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16480
16481
16482
16483
16484
16485         # allow to override gcov location
16486
16487 # Check whether --with-gcov was given.
16488 if test "${with_gcov+set}" = set; then :
16489   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
16490 else
16491   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
16492 fi
16493
16494
16495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
16496 $as_echo_n "checking whether to build with code coverage support... " >&6; }
16497         # Check whether --enable-code-coverage was given.
16498 if test "${enable_code_coverage+set}" = set; then :
16499   enableval=$enable_code_coverage;
16500 else
16501   enable_code_coverage=no
16502 fi
16503
16504
16505          if test x$enable_code_coverage = xyes; then
16506   CODE_COVERAGE_ENABLED_TRUE=
16507   CODE_COVERAGE_ENABLED_FALSE='#'
16508 else
16509   CODE_COVERAGE_ENABLED_TRUE='#'
16510   CODE_COVERAGE_ENABLED_FALSE=
16511 fi
16512
16513         CODE_COVERAGE_ENABLED=$enable_code_coverage
16514
16515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
16516 $as_echo "$enable_code_coverage" >&6; }
16517
16518         if  test "$enable_code_coverage" = "yes" ; then :
16519
16520                 # check for gcov
16521                 if test -n "$ac_tool_prefix"; then
16522   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16523 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16525 $as_echo_n "checking for $ac_word... " >&6; }
16526 if ${ac_cv_prog_GCOV+:} false; then :
16527   $as_echo_n "(cached) " >&6
16528 else
16529   if test -n "$GCOV"; then
16530   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
16531 else
16532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16533 for as_dir in $PATH
16534 do
16535   IFS=$as_save_IFS
16536   test -z "$as_dir" && as_dir=.
16537     for ac_exec_ext in '' $ac_executable_extensions; do
16538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16539     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16541     break 2
16542   fi
16543 done
16544   done
16545 IFS=$as_save_IFS
16546
16547 fi
16548 fi
16549 GCOV=$ac_cv_prog_GCOV
16550 if test -n "$GCOV"; then
16551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
16552 $as_echo "$GCOV" >&6; }
16553 else
16554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16555 $as_echo "no" >&6; }
16556 fi
16557
16558
16559 fi
16560 if test -z "$ac_cv_prog_GCOV"; then
16561   ac_ct_GCOV=$GCOV
16562   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16563 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16565 $as_echo_n "checking for $ac_word... " >&6; }
16566 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
16567   $as_echo_n "(cached) " >&6
16568 else
16569   if test -n "$ac_ct_GCOV"; then
16570   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
16571 else
16572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16573 for as_dir in $PATH
16574 do
16575   IFS=$as_save_IFS
16576   test -z "$as_dir" && as_dir=.
16577     for ac_exec_ext in '' $ac_executable_extensions; do
16578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16579     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16581     break 2
16582   fi
16583 done
16584   done
16585 IFS=$as_save_IFS
16586
16587 fi
16588 fi
16589 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
16590 if test -n "$ac_ct_GCOV"; then
16591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
16592 $as_echo "$ac_ct_GCOV" >&6; }
16593 else
16594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595 $as_echo "no" >&6; }
16596 fi
16597
16598   if test "x$ac_ct_GCOV" = x; then
16599     GCOV=":"
16600   else
16601     case $cross_compiling:$ac_tool_warned in
16602 yes:)
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16605 ac_tool_warned=yes ;;
16606 esac
16607     GCOV=$ac_ct_GCOV
16608   fi
16609 else
16610   GCOV="$ac_cv_prog_GCOV"
16611 fi
16612
16613                 if test "X$GCOV" = "X:"; then :
16614   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
16615 fi
16616
16617
16618                                 if  test "$GCC" = "no" ; then :
16619
16620                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
16621
16622 fi
16623
16624                 # List of supported lcov versions.
16625                 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
16626
16627                 # Extract the first word of "lcov", so it can be a program name with args.
16628 set dummy lcov; ac_word=$2
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16630 $as_echo_n "checking for $ac_word... " >&6; }
16631 if ${ac_cv_prog_LCOV+:} false; then :
16632   $as_echo_n "(cached) " >&6
16633 else
16634   if test -n "$LCOV"; then
16635   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
16636 else
16637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16638 for as_dir in $PATH
16639 do
16640   IFS=$as_save_IFS
16641   test -z "$as_dir" && as_dir=.
16642     for ac_exec_ext in '' $ac_executable_extensions; do
16643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16644     ac_cv_prog_LCOV="lcov"
16645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16646     break 2
16647   fi
16648 done
16649   done
16650 IFS=$as_save_IFS
16651
16652 fi
16653 fi
16654 LCOV=$ac_cv_prog_LCOV
16655 if test -n "$LCOV"; then
16656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
16657 $as_echo "$LCOV" >&6; }
16658 else
16659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16660 $as_echo "no" >&6; }
16661 fi
16662
16663
16664                 # Extract the first word of "genhtml", so it can be a program name with args.
16665 set dummy genhtml; ac_word=$2
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16667 $as_echo_n "checking for $ac_word... " >&6; }
16668 if ${ac_cv_prog_GENHTML+:} false; then :
16669   $as_echo_n "(cached) " >&6
16670 else
16671   if test -n "$GENHTML"; then
16672   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
16673 else
16674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16675 for as_dir in $PATH
16676 do
16677   IFS=$as_save_IFS
16678   test -z "$as_dir" && as_dir=.
16679     for ac_exec_ext in '' $ac_executable_extensions; do
16680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16681     ac_cv_prog_GENHTML="genhtml"
16682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16683     break 2
16684   fi
16685 done
16686   done
16687 IFS=$as_save_IFS
16688
16689 fi
16690 fi
16691 GENHTML=$ac_cv_prog_GENHTML
16692 if test -n "$GENHTML"; then
16693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
16694 $as_echo "$GENHTML" >&6; }
16695 else
16696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697 $as_echo "no" >&6; }
16698 fi
16699
16700
16701
16702                 if  test "$LCOV" ; then :
16703
16704                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
16705 $as_echo_n "checking for lcov version... " >&6; }
16706 if ${ax_cv_lcov_version+:} false; then :
16707   $as_echo_n "(cached) " >&6
16708 else
16709
16710                                 ax_cv_lcov_version=invalid
16711                                 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
16712                                 for lcov_check_version in $lcov_version_list; do
16713                                         if test "$lcov_version" = "$lcov_check_version"; then
16714                                                 ax_cv_lcov_version="$lcov_check_version (ok)"
16715                                         fi
16716                                 done
16717
16718 fi
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
16720 $as_echo "$ax_cv_lcov_version" >&6; }
16721
16722 else
16723
16724                         lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
16725                         as_fn_error $? "$lcov_msg" "$LINENO" 5
16726
16727 fi
16728
16729                 case $ax_cv_lcov_version in
16730                         ""|invalid)
16731                                 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
16732                                 as_fn_error $? "$lcov_msg" "$LINENO" 5
16733                                 LCOV="exit 0;"
16734                         ;;
16735                 esac
16736
16737                 if  test -z "$GENHTML" ; then :
16738
16739                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
16740
16741 fi
16742
16743                                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
16744                 CODE_COVERAGE_LDFLAGS="-lgcov"
16745
16746
16747
16748
16749 CODE_COVERAGE_RULES='
16750 # Code coverage
16751 #
16752 # Optional:
16753 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
16754 #    (Default: $(top_builddir))
16755 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
16756 #    by lcov for code coverage. (Default:
16757 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
16758 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
16759 #    reports to be created. (Default:
16760 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
16761 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
16762 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
16763 #    (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16764 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
16765 #    (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16766 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
16767 #    instance. (Default: empty)
16768 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
16769 #
16770 # The generated report will be titled using the $(PACKAGE_NAME) and
16771 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
16772 # use the git-version-gen script, available online.
16773
16774 # Optional variables
16775 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
16776 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
16777 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
16778 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
16779 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16780 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16781 CODE_COVERAGE_GENHTML_OPTIONS ?=
16782 CODE_COVERAGE_IGNORE_PATTERN ?=
16783
16784 code_coverage_quiet = $(code_coverage_quiet_$(V))
16785 code_coverage_quiet_ =
16786 code_coverage_quiet_0 = --quiet
16787
16788 # Use recursive makes in order to ignore errors during check
16789 check-code-coverage:
16790         -$(MAKE) $(AM_MAKEFLAGS) -k check
16791         $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
16792
16793 # Capture code coverage data
16794 code-coverage-capture: code-coverage-capture-hook
16795         $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
16796         $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
16797         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
16798         LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
16799         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
16800
16801 # Hook rule executed before code-coverage-capture, overridable by the user
16802 code-coverage-capture-hook:
16803
16804 clean: code-coverage-clean
16805 code-coverage-clean:
16806         -$(LCOV) --directory $(top_builddir) -z
16807         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16808         -find . -name "*.gcda" -o -name "*.gcov" -delete
16809
16810 GITIGNOREFILES ?=
16811 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16812
16813 DISTCHECK_CONFIGURE_FLAGS ?=
16814 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
16815
16816 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
16817 '
16818
16819
16820 fi
16821
16822
16823
16824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user namespaces are supported" >&5
16825 $as_echo_n "checking whether user namespaces are supported... " >&6; }
16826 if ${ax_cv_user_namespace+:} false; then :
16827   $as_echo_n "(cached) " >&6
16828 else
16829
16830   ac_ext=c
16831 ac_cpp='$CPP $CPPFLAGS'
16832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16835
16836   if test "$cross_compiling" = yes; then :
16837   ax_cv_user_namespace=no
16838 else
16839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840 /* end confdefs.h.  */
16841
16842 #define _GNU_SOURCE
16843 #include <fcntl.h>
16844 #include <sched.h>
16845 #include <signal.h>
16846 #include <stdio.h>
16847 #include <string.h>
16848 #include <sys/types.h>
16849 #include <sys/wait.h>
16850
16851 int userfn(void *d) {
16852   usleep(100000);  /* synchronize by sleep */
16853   return (getuid() != 0);
16854 }
16855 char userst[1024*1024];
16856 int main() {
16857   char buffer[1024];
16858   int rc, status, fd;
16859   pid_t child = clone(userfn, userst + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
16860   if (child < 0) return 1;
16861
16862   sprintf(buffer, "/proc/%d/uid_map", child);
16863   fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
16864   sprintf(buffer, "0 %d 1\n", getuid());
16865   write(fd, buffer, strlen(buffer));
16866   close(fd);
16867
16868   rc = waitpid(child, &status, 0);
16869   if (rc <= 0) return 1;
16870   if (!WIFEXITED(status)) return 1;
16871   return WEXITSTATUS(status);
16872 }
16873
16874 _ACEOF
16875 if ac_fn_c_try_run "$LINENO"; then :
16876   ax_cv_user_namespace=yes
16877 else
16878   ax_cv_user_namespace=no
16879 fi
16880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16881   conftest.$ac_objext conftest.beam conftest.$ac_ext
16882 fi
16883
16884  ac_ext=c
16885 ac_cpp='$CPP $CPPFLAGS'
16886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16889
16890
16891 fi
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_user_namespace" >&5
16893 $as_echo "$ax_cv_user_namespace" >&6; }
16894  if test "$ax_cv_user_namespace" = yes; then
16895
16896 $as_echo "#define HAVE_USER_NAMESPACE 1" >>confdefs.h
16897
16898  fi
16899
16900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UTS namespaces are supported" >&5
16901 $as_echo_n "checking whether UTS namespaces are supported... " >&6; }
16902 if ${ax_cv_uts_namespace+:} false; then :
16903   $as_echo_n "(cached) " >&6
16904 else
16905
16906   ac_ext=c
16907 ac_cpp='$CPP $CPPFLAGS'
16908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16911
16912   if test "$cross_compiling" = yes; then :
16913   ax_cv_uts_namespace=no
16914 else
16915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h.  */
16917
16918 #define _GNU_SOURCE
16919 #include <sched.h>
16920 #include <signal.h>
16921 #include <stdio.h>
16922 #include <string.h>
16923 #include <fcntl.h>
16924 #include <unistd.h>
16925 #include <sys/types.h>
16926 #include <sys/wait.h>
16927
16928 int utsfn(void *d) {
16929   char buffer[1024];
16930   const char *name = "autoconftest";
16931   int rc = sethostname(name, strlen(name));
16932   if (rc != 0) return 1;
16933   gethostname(buffer, 1024);
16934   return (strcmp(buffer, name) != 0);
16935 }
16936
16937 char st2[1024*1024];
16938 int fn(void *d) {
16939   pid_t child;
16940   int rc, status;
16941   usleep(100000);  /* synchronize by sleep */
16942   if (getuid() != 0) return 1;
16943   child = clone(utsfn, st2 + 1024*1024, CLONE_NEWUTS|SIGCHLD, 0);
16944   if (child < 0) return 1;
16945   rc = waitpid(child, &status, 0);
16946   if (rc <= 0) return 1;
16947   if (!WIFEXITED(status)) return 1;
16948   return WEXITSTATUS(status);
16949 }
16950 char st[1024*1024];
16951 int main() {
16952   char buffer[1024];
16953   int rc, status, fd;
16954   pid_t child = clone(fn, st + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0);
16955   if (child < 0) return 1;
16956
16957   sprintf(buffer, "/proc/%d/uid_map", child);
16958   fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755);
16959   sprintf(buffer, "0 %d 1\n", getuid());
16960   write(fd, buffer, strlen(buffer));
16961   close(fd);
16962
16963   rc = waitpid(child, &status, 0);
16964   if (rc <= 0) return 1;
16965   if (!WIFEXITED(status)) return 1;
16966   return WEXITSTATUS(status);
16967 }
16968
16969
16970 _ACEOF
16971 if ac_fn_c_try_run "$LINENO"; then :
16972   ax_cv_uts_namespace=yes
16973 else
16974   ax_cv_uts_namespace=no
16975 fi
16976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16977   conftest.$ac_objext conftest.beam conftest.$ac_ext
16978 fi
16979
16980  ac_ext=c
16981 ac_cpp='$CPP $CPPFLAGS'
16982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16985
16986
16987 fi
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_uts_namespace" >&5
16989 $as_echo "$ax_cv_uts_namespace" >&6; }
16990  if test "$ax_cv_uts_namespace" = yes; then
16991
16992 $as_echo "#define HAVE_UTS_NAMESPACE 1" >>confdefs.h
16993
16994  fi
16995
16996
16997 for ac_header in netdb.h netinet/tcp.h
16998 do :
16999   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17000 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17001 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17002   cat >>confdefs.h <<_ACEOF
17003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17004 _ACEOF
17005
17006 fi
17007
17008 done
17009
17010 ac_config_headers="$ac_config_headers config.h"
17011
17012 ac_config_files="$ac_config_files Makefile"
17013
17014 cat >confcache <<\_ACEOF
17015 # This file is a shell script that caches the results of configure
17016 # tests run on this system so they can be shared between configure
17017 # scripts and configure runs, see configure's option --config-cache.
17018 # It is not useful on other systems.  If it contains results you don't
17019 # want to keep, you may remove or edit it.
17020 #
17021 # config.status only pays attention to the cache file if you give it
17022 # the --recheck option to rerun configure.
17023 #
17024 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17025 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17026 # following values.
17027
17028 _ACEOF
17029
17030 # The following way of writing the cache mishandles newlines in values,
17031 # but we know of no workaround that is simple, portable, and efficient.
17032 # So, we kill variables containing newlines.
17033 # Ultrix sh set writes to stderr and can't be redirected directly,
17034 # and sets the high bit in the cache file unless we assign to the vars.
17035 (
17036   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17037     eval ac_val=\$$ac_var
17038     case $ac_val in #(
17039     *${as_nl}*)
17040       case $ac_var in #(
17041       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17042 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17043       esac
17044       case $ac_var in #(
17045       _ | IFS | as_nl) ;; #(
17046       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17047       *) { eval $ac_var=; unset $ac_var;} ;;
17048       esac ;;
17049     esac
17050   done
17051
17052   (set) 2>&1 |
17053     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17054     *${as_nl}ac_space=\ *)
17055       # `set' does not quote correctly, so add quotes: double-quote
17056       # substitution turns \\\\ into \\, and sed turns \\ into \.
17057       sed -n \
17058         "s/'/'\\\\''/g;
17059           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17060       ;; #(
17061     *)
17062       # `set' quotes correctly as required by POSIX, so do not add quotes.
17063       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17064       ;;
17065     esac |
17066     sort
17067 ) |
17068   sed '
17069      /^ac_cv_env_/b end
17070      t clear
17071      :clear
17072      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17073      t end
17074      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17075      :end' >>confcache
17076 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17077   if test -w "$cache_file"; then
17078     if test "x$cache_file" != "x/dev/null"; then
17079       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17080 $as_echo "$as_me: updating cache $cache_file" >&6;}
17081       if test ! -f "$cache_file" || test -h "$cache_file"; then
17082         cat confcache >"$cache_file"
17083       else
17084         case $cache_file in #(
17085         */* | ?:*)
17086           mv -f confcache "$cache_file"$$ &&
17087           mv -f "$cache_file"$$ "$cache_file" ;; #(
17088         *)
17089           mv -f confcache "$cache_file" ;;
17090         esac
17091       fi
17092     fi
17093   else
17094     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17095 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17096   fi
17097 fi
17098 rm -f confcache
17099
17100 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17101 # Let make expand exec_prefix.
17102 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17103
17104 DEFS=-DHAVE_CONFIG_H
17105
17106 ac_libobjs=
17107 ac_ltlibobjs=
17108 U=
17109 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17110   # 1. Remove the extension, and $U if already installed.
17111   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17112   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17113   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17114   #    will be set to the directory where LIBOBJS objects are built.
17115   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17116   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17117 done
17118 LIBOBJS=$ac_libobjs
17119
17120 LTLIBOBJS=$ac_ltlibobjs
17121
17122
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17124 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17125    if test -n "$am_sleep_pid"; then
17126      # Hide warnings about reused PIDs.
17127      wait $am_sleep_pid 2>/dev/null
17128    fi
17129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17130 $as_echo "done" >&6; }
17131  if test -n "$EXEEXT"; then
17132   am__EXEEXT_TRUE=
17133   am__EXEEXT_FALSE='#'
17134 else
17135   am__EXEEXT_TRUE='#'
17136   am__EXEEXT_FALSE=
17137 fi
17138
17139 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17140   as_fn_error $? "conditional \"AMDEP\" was never defined.
17141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17142 fi
17143 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17144   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17146 fi
17147 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17148   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17150 fi
17151 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
17152   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
17153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17154 fi
17155
17156 : "${CONFIG_STATUS=./config.status}"
17157 ac_write_fail=0
17158 ac_clean_files_save=$ac_clean_files
17159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17161 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17162 as_write_fail=0
17163 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17164 #! $SHELL
17165 # Generated by $as_me.
17166 # Run this file to recreate the current configuration.
17167 # Compiler output produced by configure, useful for debugging
17168 # configure, is in config.log if it exists.
17169
17170 debug=false
17171 ac_cs_recheck=false
17172 ac_cs_silent=false
17173
17174 SHELL=\${CONFIG_SHELL-$SHELL}
17175 export SHELL
17176 _ASEOF
17177 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17178 ## -------------------- ##
17179 ## M4sh Initialization. ##
17180 ## -------------------- ##
17181
17182 # Be more Bourne compatible
17183 DUALCASE=1; export DUALCASE # for MKS sh
17184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17185   emulate sh
17186   NULLCMD=:
17187   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17188   # is contrary to our usage.  Disable this feature.
17189   alias -g '${1+"$@"}'='"$@"'
17190   setopt NO_GLOB_SUBST
17191 else
17192   case `(set -o) 2>/dev/null` in #(
17193   *posix*) :
17194     set -o posix ;; #(
17195   *) :
17196      ;;
17197 esac
17198 fi
17199
17200
17201 as_nl='
17202 '
17203 export as_nl
17204 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17205 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17208 # Prefer a ksh shell builtin over an external printf program on Solaris,
17209 # but without wasting forks for bash or zsh.
17210 if test -z "$BASH_VERSION$ZSH_VERSION" \
17211     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17212   as_echo='print -r --'
17213   as_echo_n='print -rn --'
17214 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17215   as_echo='printf %s\n'
17216   as_echo_n='printf %s'
17217 else
17218   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17219     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17220     as_echo_n='/usr/ucb/echo -n'
17221   else
17222     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17223     as_echo_n_body='eval
17224       arg=$1;
17225       case $arg in #(
17226       *"$as_nl"*)
17227         expr "X$arg" : "X\\(.*\\)$as_nl";
17228         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17229       esac;
17230       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17231     '
17232     export as_echo_n_body
17233     as_echo_n='sh -c $as_echo_n_body as_echo'
17234   fi
17235   export as_echo_body
17236   as_echo='sh -c $as_echo_body as_echo'
17237 fi
17238
17239 # The user is always right.
17240 if test "${PATH_SEPARATOR+set}" != set; then
17241   PATH_SEPARATOR=:
17242   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17243     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17244       PATH_SEPARATOR=';'
17245   }
17246 fi
17247
17248
17249 # IFS
17250 # We need space, tab and new line, in precisely that order.  Quoting is
17251 # there to prevent editors from complaining about space-tab.
17252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17253 # splitting by setting IFS to empty value.)
17254 IFS=" ""        $as_nl"
17255
17256 # Find who we are.  Look in the path if we contain no directory separator.
17257 as_myself=
17258 case $0 in #((
17259   *[\\/]* ) as_myself=$0 ;;
17260   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17261 for as_dir in $PATH
17262 do
17263   IFS=$as_save_IFS
17264   test -z "$as_dir" && as_dir=.
17265     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17266   done
17267 IFS=$as_save_IFS
17268
17269      ;;
17270 esac
17271 # We did not find ourselves, most probably we were run as `sh COMMAND'
17272 # in which case we are not to be found in the path.
17273 if test "x$as_myself" = x; then
17274   as_myself=$0
17275 fi
17276 if test ! -f "$as_myself"; then
17277   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17278   exit 1
17279 fi
17280
17281 # Unset variables that we do not need and which cause bugs (e.g. in
17282 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17283 # suppresses any "Segmentation fault" message there.  '((' could
17284 # trigger a bug in pdksh 5.2.14.
17285 for as_var in BASH_ENV ENV MAIL MAILPATH
17286 do eval test x\${$as_var+set} = xset \
17287   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17288 done
17289 PS1='$ '
17290 PS2='> '
17291 PS4='+ '
17292
17293 # NLS nuisances.
17294 LC_ALL=C
17295 export LC_ALL
17296 LANGUAGE=C
17297 export LANGUAGE
17298
17299 # CDPATH.
17300 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17301
17302
17303 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17304 # ----------------------------------------
17305 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17306 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17307 # script with STATUS, using 1 if that was 0.
17308 as_fn_error ()
17309 {
17310   as_status=$1; test $as_status -eq 0 && as_status=1
17311   if test "$4"; then
17312     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17313     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17314   fi
17315   $as_echo "$as_me: error: $2" >&2
17316   as_fn_exit $as_status
17317 } # as_fn_error
17318
17319
17320 # as_fn_set_status STATUS
17321 # -----------------------
17322 # Set $? to STATUS, without forking.
17323 as_fn_set_status ()
17324 {
17325   return $1
17326 } # as_fn_set_status
17327
17328 # as_fn_exit STATUS
17329 # -----------------
17330 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17331 as_fn_exit ()
17332 {
17333   set +e
17334   as_fn_set_status $1
17335   exit $1
17336 } # as_fn_exit
17337
17338 # as_fn_unset VAR
17339 # ---------------
17340 # Portably unset VAR.
17341 as_fn_unset ()
17342 {
17343   { eval $1=; unset $1;}
17344 }
17345 as_unset=as_fn_unset
17346 # as_fn_append VAR VALUE
17347 # ----------------------
17348 # Append the text in VALUE to the end of the definition contained in VAR. Take
17349 # advantage of any shell optimizations that allow amortized linear growth over
17350 # repeated appends, instead of the typical quadratic growth present in naive
17351 # implementations.
17352 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17353   eval 'as_fn_append ()
17354   {
17355     eval $1+=\$2
17356   }'
17357 else
17358   as_fn_append ()
17359   {
17360     eval $1=\$$1\$2
17361   }
17362 fi # as_fn_append
17363
17364 # as_fn_arith ARG...
17365 # ------------------
17366 # Perform arithmetic evaluation on the ARGs, and store the result in the
17367 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17368 # must be portable across $(()) and expr.
17369 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17370   eval 'as_fn_arith ()
17371   {
17372     as_val=$(( $* ))
17373   }'
17374 else
17375   as_fn_arith ()
17376   {
17377     as_val=`expr "$@" || test $? -eq 1`
17378   }
17379 fi # as_fn_arith
17380
17381
17382 if expr a : '\(a\)' >/dev/null 2>&1 &&
17383    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17384   as_expr=expr
17385 else
17386   as_expr=false
17387 fi
17388
17389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17390   as_basename=basename
17391 else
17392   as_basename=false
17393 fi
17394
17395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17396   as_dirname=dirname
17397 else
17398   as_dirname=false
17399 fi
17400
17401 as_me=`$as_basename -- "$0" ||
17402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17403          X"$0" : 'X\(//\)$' \| \
17404          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17405 $as_echo X/"$0" |
17406     sed '/^.*\/\([^/][^/]*\)\/*$/{
17407             s//\1/
17408             q
17409           }
17410           /^X\/\(\/\/\)$/{
17411             s//\1/
17412             q
17413           }
17414           /^X\/\(\/\).*/{
17415             s//\1/
17416             q
17417           }
17418           s/.*/./; q'`
17419
17420 # Avoid depending upon Character Ranges.
17421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17424 as_cr_digits='0123456789'
17425 as_cr_alnum=$as_cr_Letters$as_cr_digits
17426
17427 ECHO_C= ECHO_N= ECHO_T=
17428 case `echo -n x` in #(((((
17429 -n*)
17430   case `echo 'xy\c'` in
17431   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17432   xy)  ECHO_C='\c';;
17433   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17434        ECHO_T=' ';;
17435   esac;;
17436 *)
17437   ECHO_N='-n';;
17438 esac
17439
17440 rm -f conf$$ conf$$.exe conf$$.file
17441 if test -d conf$$.dir; then
17442   rm -f conf$$.dir/conf$$.file
17443 else
17444   rm -f conf$$.dir
17445   mkdir conf$$.dir 2>/dev/null
17446 fi
17447 if (echo >conf$$.file) 2>/dev/null; then
17448   if ln -s conf$$.file conf$$ 2>/dev/null; then
17449     as_ln_s='ln -s'
17450     # ... but there are two gotchas:
17451     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17452     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17453     # In both cases, we have to default to `cp -pR'.
17454     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17455       as_ln_s='cp -pR'
17456   elif ln conf$$.file conf$$ 2>/dev/null; then
17457     as_ln_s=ln
17458   else
17459     as_ln_s='cp -pR'
17460   fi
17461 else
17462   as_ln_s='cp -pR'
17463 fi
17464 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17465 rmdir conf$$.dir 2>/dev/null
17466
17467
17468 # as_fn_mkdir_p
17469 # -------------
17470 # Create "$as_dir" as a directory, including parents if necessary.
17471 as_fn_mkdir_p ()
17472 {
17473
17474   case $as_dir in #(
17475   -*) as_dir=./$as_dir;;
17476   esac
17477   test -d "$as_dir" || eval $as_mkdir_p || {
17478     as_dirs=
17479     while :; do
17480       case $as_dir in #(
17481       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17482       *) as_qdir=$as_dir;;
17483       esac
17484       as_dirs="'$as_qdir' $as_dirs"
17485       as_dir=`$as_dirname -- "$as_dir" ||
17486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17487          X"$as_dir" : 'X\(//\)[^/]' \| \
17488          X"$as_dir" : 'X\(//\)$' \| \
17489          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17490 $as_echo X"$as_dir" |
17491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17492             s//\1/
17493             q
17494           }
17495           /^X\(\/\/\)[^/].*/{
17496             s//\1/
17497             q
17498           }
17499           /^X\(\/\/\)$/{
17500             s//\1/
17501             q
17502           }
17503           /^X\(\/\).*/{
17504             s//\1/
17505             q
17506           }
17507           s/.*/./; q'`
17508       test -d "$as_dir" && break
17509     done
17510     test -z "$as_dirs" || eval "mkdir $as_dirs"
17511   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17512
17513
17514 } # as_fn_mkdir_p
17515 if mkdir -p . 2>/dev/null; then
17516   as_mkdir_p='mkdir -p "$as_dir"'
17517 else
17518   test -d ./-p && rmdir ./-p
17519   as_mkdir_p=false
17520 fi
17521
17522
17523 # as_fn_executable_p FILE
17524 # -----------------------
17525 # Test if FILE is an executable regular file.
17526 as_fn_executable_p ()
17527 {
17528   test -f "$1" && test -x "$1"
17529 } # as_fn_executable_p
17530 as_test_x='test -x'
17531 as_executable_p=as_fn_executable_p
17532
17533 # Sed expression to map a string onto a valid CPP name.
17534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17535
17536 # Sed expression to map a string onto a valid variable name.
17537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17538
17539
17540 exec 6>&1
17541 ## ----------------------------------- ##
17542 ## Main body of $CONFIG_STATUS script. ##
17543 ## ----------------------------------- ##
17544 _ASEOF
17545 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17546
17547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17548 # Save the log message, to keep $0 and so on meaningful, and to
17549 # report actual input values of CONFIG_FILES etc. instead of their
17550 # values after options handling.
17551 ac_log="
17552 This file was extended by c-ares-test $as_me -, which was
17553 generated by GNU Autoconf 2.69.  Invocation command line was
17554
17555   CONFIG_FILES    = $CONFIG_FILES
17556   CONFIG_HEADERS  = $CONFIG_HEADERS
17557   CONFIG_LINKS    = $CONFIG_LINKS
17558   CONFIG_COMMANDS = $CONFIG_COMMANDS
17559   $ $0 $@
17560
17561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17562 "
17563
17564 _ACEOF
17565
17566 case $ac_config_files in *"
17567 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17568 esac
17569
17570 case $ac_config_headers in *"
17571 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17572 esac
17573
17574
17575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17576 # Files that config.status was made for.
17577 config_files="$ac_config_files"
17578 config_headers="$ac_config_headers"
17579 config_commands="$ac_config_commands"
17580
17581 _ACEOF
17582
17583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17584 ac_cs_usage="\
17585 \`$as_me' instantiates files and other configuration actions
17586 from templates according to the current configuration.  Unless the files
17587 and actions are specified as TAGs, all are instantiated by default.
17588
17589 Usage: $0 [OPTION]... [TAG]...
17590
17591   -h, --help       print this help, then exit
17592   -V, --version    print version number and configuration settings, then exit
17593       --config     print configuration, then exit
17594   -q, --quiet, --silent
17595                    do not print progress messages
17596   -d, --debug      don't remove temporary files
17597       --recheck    update $as_me by reconfiguring in the same conditions
17598       --file=FILE[:TEMPLATE]
17599                    instantiate the configuration file FILE
17600       --header=FILE[:TEMPLATE]
17601                    instantiate the configuration header FILE
17602
17603 Configuration files:
17604 $config_files
17605
17606 Configuration headers:
17607 $config_headers
17608
17609 Configuration commands:
17610 $config_commands
17611
17612 Report bugs to <->."
17613
17614 _ACEOF
17615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17616 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17617 ac_cs_version="\\
17618 c-ares-test config.status -
17619 configured by $0, generated by GNU Autoconf 2.69,
17620   with options \\"\$ac_cs_config\\"
17621
17622 Copyright (C) 2012 Free Software Foundation, Inc.
17623 This config.status script is free software; the Free Software Foundation
17624 gives unlimited permission to copy, distribute and modify it."
17625
17626 ac_pwd='$ac_pwd'
17627 srcdir='$srcdir'
17628 INSTALL='$INSTALL'
17629 MKDIR_P='$MKDIR_P'
17630 AWK='$AWK'
17631 test -n "\$AWK" || AWK=awk
17632 _ACEOF
17633
17634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17635 # The default lists apply if the user does not specify any file.
17636 ac_need_defaults=:
17637 while test $# != 0
17638 do
17639   case $1 in
17640   --*=?*)
17641     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17642     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17643     ac_shift=:
17644     ;;
17645   --*=)
17646     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17647     ac_optarg=
17648     ac_shift=:
17649     ;;
17650   *)
17651     ac_option=$1
17652     ac_optarg=$2
17653     ac_shift=shift
17654     ;;
17655   esac
17656
17657   case $ac_option in
17658   # Handling of the options.
17659   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17660     ac_cs_recheck=: ;;
17661   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17662     $as_echo "$ac_cs_version"; exit ;;
17663   --config | --confi | --conf | --con | --co | --c )
17664     $as_echo "$ac_cs_config"; exit ;;
17665   --debug | --debu | --deb | --de | --d | -d )
17666     debug=: ;;
17667   --file | --fil | --fi | --f )
17668     $ac_shift
17669     case $ac_optarg in
17670     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17671     '') as_fn_error $? "missing file argument" ;;
17672     esac
17673     as_fn_append CONFIG_FILES " '$ac_optarg'"
17674     ac_need_defaults=false;;
17675   --header | --heade | --head | --hea )
17676     $ac_shift
17677     case $ac_optarg in
17678     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17679     esac
17680     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17681     ac_need_defaults=false;;
17682   --he | --h)
17683     # Conflict between --help and --header
17684     as_fn_error $? "ambiguous option: \`$1'
17685 Try \`$0 --help' for more information.";;
17686   --help | --hel | -h )
17687     $as_echo "$ac_cs_usage"; exit ;;
17688   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17689   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17690     ac_cs_silent=: ;;
17691
17692   # This is an error.
17693   -*) as_fn_error $? "unrecognized option: \`$1'
17694 Try \`$0 --help' for more information." ;;
17695
17696   *) as_fn_append ac_config_targets " $1"
17697      ac_need_defaults=false ;;
17698
17699   esac
17700   shift
17701 done
17702
17703 ac_configure_extra_args=
17704
17705 if $ac_cs_silent; then
17706   exec 6>/dev/null
17707   ac_configure_extra_args="$ac_configure_extra_args --silent"
17708 fi
17709
17710 _ACEOF
17711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17712 if \$ac_cs_recheck; then
17713   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17714   shift
17715   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17716   CONFIG_SHELL='$SHELL'
17717   export CONFIG_SHELL
17718   exec "\$@"
17719 fi
17720
17721 _ACEOF
17722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17723 exec 5>>config.log
17724 {
17725   echo
17726   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17727 ## Running $as_me. ##
17728 _ASBOX
17729   $as_echo "$ac_log"
17730 } >&5
17731
17732 _ACEOF
17733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17734 #
17735 # INIT-COMMANDS
17736 #
17737 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17738
17739
17740 # The HP-UX ksh and POSIX shell print the target directory to stdout
17741 # if CDPATH is set.
17742 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17743
17744 sed_quote_subst='$sed_quote_subst'
17745 double_quote_subst='$double_quote_subst'
17746 delay_variable_subst='$delay_variable_subst'
17747 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17748 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17749 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17750 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17751 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17752 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17753 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17754 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17755 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17756 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17757 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17758 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17759 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17760 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17761 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17762 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17763 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17764 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17765 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17766 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17767 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17768 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17769 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17770 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17771 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17772 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17773 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17774 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17775 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17776 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17777 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17778 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17779 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17780 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17781 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17782 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17783 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17784 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17785 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17786 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17787 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17788 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17789 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17790 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17791 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17792 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17793 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17794 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17795 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17796 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17797 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17798 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17799 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17800 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17801 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17802 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17803 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17804 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17805 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"`'
17806 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17807 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17808 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17809 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17810 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17811 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17812 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17813 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17814 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17815 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17816 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17817 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17818 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17819 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17820 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17821 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17822 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17823 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17824 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17825 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17826 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17827 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17828 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17829 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17830 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17831 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17832 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17833 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17834 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17835 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17836 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17837 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17838 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17839 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17840 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17841 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17842 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17843 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17844 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17845 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17846 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17847 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17848 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17849 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17850 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17851 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17852 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17853 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17854 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17855 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17856 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17857 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17858 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17859 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17860 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17861 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17862 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17863 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17864 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17865 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17866 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17867 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17868 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17869 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17870 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17871 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17872 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17873 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17874 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17875 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17876 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17877 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17878 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17879 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17880 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17881 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17882 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17883 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17884 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17885 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17886 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17887 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17888 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17889 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17890 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17891 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17892 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17893 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17894 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17895 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17896 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17897 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17898 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17899 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17900 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17901 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17902 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17903 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17904 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17905 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17906 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17907 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17908 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17909 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17910 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17911 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17912 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17913 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17914 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17915 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17916 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17917 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17918 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17919 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17920 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17921 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17922 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17923 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17924 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17925 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17926 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17927 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17928 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17929 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17930 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17931 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17932 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17933 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17934 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17935 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17936
17937 LTCC='$LTCC'
17938 LTCFLAGS='$LTCFLAGS'
17939 compiler='$compiler_DEFAULT'
17940
17941 # A function that is used when there is no print builtin or printf.
17942 func_fallback_echo ()
17943 {
17944   eval 'cat <<_LTECHO_EOF
17945 \$1
17946 _LTECHO_EOF'
17947 }
17948
17949 # Quote evaled strings.
17950 for var in SHELL \
17951 ECHO \
17952 PATH_SEPARATOR \
17953 SED \
17954 GREP \
17955 EGREP \
17956 FGREP \
17957 LD \
17958 NM \
17959 LN_S \
17960 lt_SP2NL \
17961 lt_NL2SP \
17962 reload_flag \
17963 OBJDUMP \
17964 deplibs_check_method \
17965 file_magic_cmd \
17966 file_magic_glob \
17967 want_nocaseglob \
17968 DLLTOOL \
17969 sharedlib_from_linklib_cmd \
17970 AR \
17971 AR_FLAGS \
17972 archiver_list_spec \
17973 STRIP \
17974 RANLIB \
17975 CC \
17976 CFLAGS \
17977 compiler \
17978 lt_cv_sys_global_symbol_pipe \
17979 lt_cv_sys_global_symbol_to_cdecl \
17980 lt_cv_sys_global_symbol_to_import \
17981 lt_cv_sys_global_symbol_to_c_name_address \
17982 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17983 lt_cv_nm_interface \
17984 nm_file_list_spec \
17985 lt_cv_truncate_bin \
17986 lt_prog_compiler_no_builtin_flag \
17987 lt_prog_compiler_pic \
17988 lt_prog_compiler_wl \
17989 lt_prog_compiler_static \
17990 lt_cv_prog_compiler_c_o \
17991 need_locks \
17992 MANIFEST_TOOL \
17993 DSYMUTIL \
17994 NMEDIT \
17995 LIPO \
17996 OTOOL \
17997 OTOOL64 \
17998 shrext_cmds \
17999 export_dynamic_flag_spec \
18000 whole_archive_flag_spec \
18001 compiler_needs_object \
18002 with_gnu_ld \
18003 allow_undefined_flag \
18004 no_undefined_flag \
18005 hardcode_libdir_flag_spec \
18006 hardcode_libdir_separator \
18007 exclude_expsyms \
18008 include_expsyms \
18009 file_list_spec \
18010 variables_saved_for_relink \
18011 libname_spec \
18012 library_names_spec \
18013 soname_spec \
18014 install_override_mode \
18015 finish_eval \
18016 old_striplib \
18017 striplib \
18018 compiler_lib_search_dirs \
18019 predep_objects \
18020 postdep_objects \
18021 predeps \
18022 postdeps \
18023 compiler_lib_search_path \
18024 LD_CXX \
18025 reload_flag_CXX \
18026 compiler_CXX \
18027 lt_prog_compiler_no_builtin_flag_CXX \
18028 lt_prog_compiler_pic_CXX \
18029 lt_prog_compiler_wl_CXX \
18030 lt_prog_compiler_static_CXX \
18031 lt_cv_prog_compiler_c_o_CXX \
18032 export_dynamic_flag_spec_CXX \
18033 whole_archive_flag_spec_CXX \
18034 compiler_needs_object_CXX \
18035 with_gnu_ld_CXX \
18036 allow_undefined_flag_CXX \
18037 no_undefined_flag_CXX \
18038 hardcode_libdir_flag_spec_CXX \
18039 hardcode_libdir_separator_CXX \
18040 exclude_expsyms_CXX \
18041 include_expsyms_CXX \
18042 file_list_spec_CXX \
18043 compiler_lib_search_dirs_CXX \
18044 predep_objects_CXX \
18045 postdep_objects_CXX \
18046 predeps_CXX \
18047 postdeps_CXX \
18048 compiler_lib_search_path_CXX; do
18049     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18050     *[\\\\\\\`\\"\\\$]*)
18051       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18052       ;;
18053     *)
18054       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18055       ;;
18056     esac
18057 done
18058
18059 # Double-quote double-evaled strings.
18060 for var in reload_cmds \
18061 old_postinstall_cmds \
18062 old_postuninstall_cmds \
18063 old_archive_cmds \
18064 extract_expsyms_cmds \
18065 old_archive_from_new_cmds \
18066 old_archive_from_expsyms_cmds \
18067 archive_cmds \
18068 archive_expsym_cmds \
18069 module_cmds \
18070 module_expsym_cmds \
18071 export_symbols_cmds \
18072 prelink_cmds \
18073 postlink_cmds \
18074 postinstall_cmds \
18075 postuninstall_cmds \
18076 finish_cmds \
18077 sys_lib_search_path_spec \
18078 configure_time_dlsearch_path \
18079 configure_time_lt_sys_library_path \
18080 reload_cmds_CXX \
18081 old_archive_cmds_CXX \
18082 old_archive_from_new_cmds_CXX \
18083 old_archive_from_expsyms_cmds_CXX \
18084 archive_cmds_CXX \
18085 archive_expsym_cmds_CXX \
18086 module_cmds_CXX \
18087 module_expsym_cmds_CXX \
18088 export_symbols_cmds_CXX \
18089 prelink_cmds_CXX \
18090 postlink_cmds_CXX; do
18091     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18092     *[\\\\\\\`\\"\\\$]*)
18093       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18094       ;;
18095     *)
18096       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18097       ;;
18098     esac
18099 done
18100
18101 ac_aux_dir='$ac_aux_dir'
18102
18103 # See if we are running on zsh, and set the options that allow our
18104 # commands through without removal of \ escapes INIT.
18105 if test -n "\${ZSH_VERSION+set}"; then
18106    setopt NO_GLOB_SUBST
18107 fi
18108
18109
18110     PACKAGE='$PACKAGE'
18111     VERSION='$VERSION'
18112     RM='$RM'
18113     ofile='$ofile'
18114
18115
18116
18117
18118
18119
18120 _ACEOF
18121
18122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18123
18124 # Handling of arguments.
18125 for ac_config_target in $ac_config_targets
18126 do
18127   case $ac_config_target in
18128     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18129     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18130     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18131     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18132
18133   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18134   esac
18135 done
18136
18137
18138 # If the user did not use the arguments to specify the items to instantiate,
18139 # then the envvar interface is used.  Set only those that are not.
18140 # We use the long form for the default assignment because of an extremely
18141 # bizarre bug on SunOS 4.1.3.
18142 if $ac_need_defaults; then
18143   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18144   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18145   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18146 fi
18147
18148 # Have a temporary directory for convenience.  Make it in the build tree
18149 # simply because there is no reason against having it here, and in addition,
18150 # creating and moving files from /tmp can sometimes cause problems.
18151 # Hook for its removal unless debugging.
18152 # Note that there is a small window in which the directory will not be cleaned:
18153 # after its creation but before its name has been assigned to `$tmp'.
18154 $debug ||
18155 {
18156   tmp= ac_tmp=
18157   trap 'exit_status=$?
18158   : "${ac_tmp:=$tmp}"
18159   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18160 ' 0
18161   trap 'as_fn_exit 1' 1 2 13 15
18162 }
18163 # Create a (secure) tmp directory for tmp files.
18164
18165 {
18166   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18167   test -d "$tmp"
18168 }  ||
18169 {
18170   tmp=./conf$$-$RANDOM
18171   (umask 077 && mkdir "$tmp")
18172 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18173 ac_tmp=$tmp
18174
18175 # Set up the scripts for CONFIG_FILES section.
18176 # No need to generate them if there are no CONFIG_FILES.
18177 # This happens for instance with `./config.status config.h'.
18178 if test -n "$CONFIG_FILES"; then
18179
18180
18181 ac_cr=`echo X | tr X '\015'`
18182 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18183 # But we know of no other shell where ac_cr would be empty at this
18184 # point, so we can use a bashism as a fallback.
18185 if test "x$ac_cr" = x; then
18186   eval ac_cr=\$\'\\r\'
18187 fi
18188 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18189 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18190   ac_cs_awk_cr='\\r'
18191 else
18192   ac_cs_awk_cr=$ac_cr
18193 fi
18194
18195 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18196 _ACEOF
18197
18198
18199 {
18200   echo "cat >conf$$subs.awk <<_ACEOF" &&
18201   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18202   echo "_ACEOF"
18203 } >conf$$subs.sh ||
18204   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18205 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18206 ac_delim='%!_!# '
18207 for ac_last_try in false false false false false :; do
18208   . ./conf$$subs.sh ||
18209     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18210
18211   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18212   if test $ac_delim_n = $ac_delim_num; then
18213     break
18214   elif $ac_last_try; then
18215     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18216   else
18217     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18218   fi
18219 done
18220 rm -f conf$$subs.sh
18221
18222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18223 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18224 _ACEOF
18225 sed -n '
18226 h
18227 s/^/S["/; s/!.*/"]=/
18228 p
18229 g
18230 s/^[^!]*!//
18231 :repl
18232 t repl
18233 s/'"$ac_delim"'$//
18234 t delim
18235 :nl
18236 h
18237 s/\(.\{148\}\)..*/\1/
18238 t more1
18239 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18240 p
18241 n
18242 b repl
18243 :more1
18244 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18245 p
18246 g
18247 s/.\{148\}//
18248 t nl
18249 :delim
18250 h
18251 s/\(.\{148\}\)..*/\1/
18252 t more2
18253 s/["\\]/\\&/g; s/^/"/; s/$/"/
18254 p
18255 b
18256 :more2
18257 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18258 p
18259 g
18260 s/.\{148\}//
18261 t delim
18262 ' <conf$$subs.awk | sed '
18263 /^[^""]/{
18264   N
18265   s/\n//
18266 }
18267 ' >>$CONFIG_STATUS || ac_write_fail=1
18268 rm -f conf$$subs.awk
18269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18270 _ACAWK
18271 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18272   for (key in S) S_is_set[key] = 1
18273   FS = "\a"
18274
18275 }
18276 {
18277   line = $ 0
18278   nfields = split(line, field, "@")
18279   substed = 0
18280   len = length(field[1])
18281   for (i = 2; i < nfields; i++) {
18282     key = field[i]
18283     keylen = length(key)
18284     if (S_is_set[key]) {
18285       value = S[key]
18286       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18287       len += length(value) + length(field[++i])
18288       substed = 1
18289     } else
18290       len += 1 + keylen
18291   }
18292
18293   print line
18294 }
18295
18296 _ACAWK
18297 _ACEOF
18298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18299 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18300   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18301 else
18302   cat
18303 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18304   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18305 _ACEOF
18306
18307 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18308 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18309 # trailing colons and then remove the whole line if VPATH becomes empty
18310 # (actually we leave an empty line to preserve line numbers).
18311 if test "x$srcdir" = x.; then
18312   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18313 h
18314 s///
18315 s/^/:/
18316 s/[      ]*$/:/
18317 s/:\$(srcdir):/:/g
18318 s/:\${srcdir}:/:/g
18319 s/:@srcdir@:/:/g
18320 s/^:*//
18321 s/:*$//
18322 x
18323 s/\(=[   ]*\).*/\1/
18324 G
18325 s/\n//
18326 s/^[^=]*=[       ]*$//
18327 }'
18328 fi
18329
18330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18331 fi # test -n "$CONFIG_FILES"
18332
18333 # Set up the scripts for CONFIG_HEADERS section.
18334 # No need to generate them if there are no CONFIG_HEADERS.
18335 # This happens for instance with `./config.status Makefile'.
18336 if test -n "$CONFIG_HEADERS"; then
18337 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18338 BEGIN {
18339 _ACEOF
18340
18341 # Transform confdefs.h into an awk script `defines.awk', embedded as
18342 # here-document in config.status, that substitutes the proper values into
18343 # config.h.in to produce config.h.
18344
18345 # Create a delimiter string that does not exist in confdefs.h, to ease
18346 # handling of long lines.
18347 ac_delim='%!_!# '
18348 for ac_last_try in false false :; do
18349   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18350   if test -z "$ac_tt"; then
18351     break
18352   elif $ac_last_try; then
18353     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18354   else
18355     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18356   fi
18357 done
18358
18359 # For the awk script, D is an array of macro values keyed by name,
18360 # likewise P contains macro parameters if any.  Preserve backslash
18361 # newline sequences.
18362
18363 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18364 sed -n '
18365 s/.\{148\}/&'"$ac_delim"'/g
18366 t rset
18367 :rset
18368 s/^[     ]*#[    ]*define[       ][      ]*/ /
18369 t def
18370 d
18371 :def
18372 s/\\$//
18373 t bsnl
18374 s/["\\]/\\&/g
18375 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18376 D["\1"]=" \3"/p
18377 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18378 d
18379 :bsnl
18380 s/["\\]/\\&/g
18381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18382 D["\1"]=" \3\\\\\\n"\\/p
18383 t cont
18384 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18385 t cont
18386 d
18387 :cont
18388 n
18389 s/.\{148\}/&'"$ac_delim"'/g
18390 t clear
18391 :clear
18392 s/\\$//
18393 t bsnlc
18394 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18395 d
18396 :bsnlc
18397 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18398 b cont
18399 ' <confdefs.h | sed '
18400 s/'"$ac_delim"'/"\\\
18401 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18402
18403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18404   for (key in D) D_is_set[key] = 1
18405   FS = "\a"
18406 }
18407 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18408   line = \$ 0
18409   split(line, arg, " ")
18410   if (arg[1] == "#") {
18411     defundef = arg[2]
18412     mac1 = arg[3]
18413   } else {
18414     defundef = substr(arg[1], 2)
18415     mac1 = arg[2]
18416   }
18417   split(mac1, mac2, "(") #)
18418   macro = mac2[1]
18419   prefix = substr(line, 1, index(line, defundef) - 1)
18420   if (D_is_set[macro]) {
18421     # Preserve the white space surrounding the "#".
18422     print prefix "define", macro P[macro] D[macro]
18423     next
18424   } else {
18425     # Replace #undef with comments.  This is necessary, for example,
18426     # in the case of _POSIX_SOURCE, which is predefined and required
18427     # on some systems where configure will not decide to define it.
18428     if (defundef == "undef") {
18429       print "/*", prefix defundef, macro, "*/"
18430       next
18431     }
18432   }
18433 }
18434 { print }
18435 _ACAWK
18436 _ACEOF
18437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18438   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18439 fi # test -n "$CONFIG_HEADERS"
18440
18441
18442 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18443 shift
18444 for ac_tag
18445 do
18446   case $ac_tag in
18447   :[FHLC]) ac_mode=$ac_tag; continue;;
18448   esac
18449   case $ac_mode$ac_tag in
18450   :[FHL]*:*);;
18451   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18452   :[FH]-) ac_tag=-:-;;
18453   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18454   esac
18455   ac_save_IFS=$IFS
18456   IFS=:
18457   set x $ac_tag
18458   IFS=$ac_save_IFS
18459   shift
18460   ac_file=$1
18461   shift
18462
18463   case $ac_mode in
18464   :L) ac_source=$1;;
18465   :[FH])
18466     ac_file_inputs=
18467     for ac_f
18468     do
18469       case $ac_f in
18470       -) ac_f="$ac_tmp/stdin";;
18471       *) # Look for the file first in the build tree, then in the source tree
18472          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18473          # because $ac_f cannot contain `:'.
18474          test -f "$ac_f" ||
18475            case $ac_f in
18476            [\\/$]*) false;;
18477            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18478            esac ||
18479            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18480       esac
18481       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18482       as_fn_append ac_file_inputs " '$ac_f'"
18483     done
18484
18485     # Let's still pretend it is `configure' which instantiates (i.e., don't
18486     # use $as_me), people would be surprised to read:
18487     #    /* config.h.  Generated by config.status.  */
18488     configure_input='Generated from '`
18489           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18490         `' by configure.'
18491     if test x"$ac_file" != x-; then
18492       configure_input="$ac_file.  $configure_input"
18493       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18494 $as_echo "$as_me: creating $ac_file" >&6;}
18495     fi
18496     # Neutralize special characters interpreted by sed in replacement strings.
18497     case $configure_input in #(
18498     *\&* | *\|* | *\\* )
18499        ac_sed_conf_input=`$as_echo "$configure_input" |
18500        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18501     *) ac_sed_conf_input=$configure_input;;
18502     esac
18503
18504     case $ac_tag in
18505     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18506       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18507     esac
18508     ;;
18509   esac
18510
18511   ac_dir=`$as_dirname -- "$ac_file" ||
18512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18513          X"$ac_file" : 'X\(//\)[^/]' \| \
18514          X"$ac_file" : 'X\(//\)$' \| \
18515          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18516 $as_echo X"$ac_file" |
18517     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18518             s//\1/
18519             q
18520           }
18521           /^X\(\/\/\)[^/].*/{
18522             s//\1/
18523             q
18524           }
18525           /^X\(\/\/\)$/{
18526             s//\1/
18527             q
18528           }
18529           /^X\(\/\).*/{
18530             s//\1/
18531             q
18532           }
18533           s/.*/./; q'`
18534   as_dir="$ac_dir"; as_fn_mkdir_p
18535   ac_builddir=.
18536
18537 case "$ac_dir" in
18538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18539 *)
18540   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18541   # A ".." for each directory in $ac_dir_suffix.
18542   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18543   case $ac_top_builddir_sub in
18544   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18545   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18546   esac ;;
18547 esac
18548 ac_abs_top_builddir=$ac_pwd
18549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18550 # for backward compatibility:
18551 ac_top_builddir=$ac_top_build_prefix
18552
18553 case $srcdir in
18554   .)  # We are building in place.
18555     ac_srcdir=.
18556     ac_top_srcdir=$ac_top_builddir_sub
18557     ac_abs_top_srcdir=$ac_pwd ;;
18558   [\\/]* | ?:[\\/]* )  # Absolute name.
18559     ac_srcdir=$srcdir$ac_dir_suffix;
18560     ac_top_srcdir=$srcdir
18561     ac_abs_top_srcdir=$srcdir ;;
18562   *) # Relative name.
18563     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18564     ac_top_srcdir=$ac_top_build_prefix$srcdir
18565     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18566 esac
18567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18568
18569
18570   case $ac_mode in
18571   :F)
18572   #
18573   # CONFIG_FILE
18574   #
18575
18576   case $INSTALL in
18577   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18578   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18579   esac
18580   ac_MKDIR_P=$MKDIR_P
18581   case $MKDIR_P in
18582   [\\/$]* | ?:[\\/]* ) ;;
18583   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18584   esac
18585 _ACEOF
18586
18587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18588 # If the template does not know about datarootdir, expand it.
18589 # FIXME: This hack should be removed a few years after 2.60.
18590 ac_datarootdir_hack=; ac_datarootdir_seen=
18591 ac_sed_dataroot='
18592 /datarootdir/ {
18593   p
18594   q
18595 }
18596 /@datadir@/p
18597 /@docdir@/p
18598 /@infodir@/p
18599 /@localedir@/p
18600 /@mandir@/p'
18601 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18602 *datarootdir*) ac_datarootdir_seen=yes;;
18603 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18604   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18605 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18606 _ACEOF
18607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18608   ac_datarootdir_hack='
18609   s&@datadir@&$datadir&g
18610   s&@docdir@&$docdir&g
18611   s&@infodir@&$infodir&g
18612   s&@localedir@&$localedir&g
18613   s&@mandir@&$mandir&g
18614   s&\\\${datarootdir}&$datarootdir&g' ;;
18615 esac
18616 _ACEOF
18617
18618 # Neutralize VPATH when `$srcdir' = `.'.
18619 # Shell code in configure.ac might set extrasub.
18620 # FIXME: do we really want to maintain this feature?
18621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18622 ac_sed_extra="$ac_vpsub
18623 $extrasub
18624 _ACEOF
18625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18626 :t
18627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18628 s|@configure_input@|$ac_sed_conf_input|;t t
18629 s&@top_builddir@&$ac_top_builddir_sub&;t t
18630 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18631 s&@srcdir@&$ac_srcdir&;t t
18632 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18633 s&@top_srcdir@&$ac_top_srcdir&;t t
18634 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18635 s&@builddir@&$ac_builddir&;t t
18636 s&@abs_builddir@&$ac_abs_builddir&;t t
18637 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18638 s&@INSTALL@&$ac_INSTALL&;t t
18639 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18640 $ac_datarootdir_hack
18641 "
18642 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18643   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18644
18645 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18646   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18647   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18648       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18649   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18650 which seems to be undefined.  Please make sure it is defined" >&5
18651 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18652 which seems to be undefined.  Please make sure it is defined" >&2;}
18653
18654   rm -f "$ac_tmp/stdin"
18655   case $ac_file in
18656   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18657   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18658   esac \
18659   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18660  ;;
18661   :H)
18662   #
18663   # CONFIG_HEADER
18664   #
18665   if test x"$ac_file" != x-; then
18666     {
18667       $as_echo "/* $configure_input  */" \
18668       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18669     } >"$ac_tmp/config.h" \
18670       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18671     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18672       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18673 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18674     else
18675       rm -f "$ac_file"
18676       mv "$ac_tmp/config.h" "$ac_file" \
18677         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18678     fi
18679   else
18680     $as_echo "/* $configure_input  */" \
18681       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18682       || as_fn_error $? "could not create -" "$LINENO" 5
18683   fi
18684 # Compute "$ac_file"'s index in $config_headers.
18685 _am_arg="$ac_file"
18686 _am_stamp_count=1
18687 for _am_header in $config_headers :; do
18688   case $_am_header in
18689     $_am_arg | $_am_arg:* )
18690       break ;;
18691     * )
18692       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18693   esac
18694 done
18695 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18696 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18697          X"$_am_arg" : 'X\(//\)[^/]' \| \
18698          X"$_am_arg" : 'X\(//\)$' \| \
18699          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18700 $as_echo X"$_am_arg" |
18701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18702             s//\1/
18703             q
18704           }
18705           /^X\(\/\/\)[^/].*/{
18706             s//\1/
18707             q
18708           }
18709           /^X\(\/\/\)$/{
18710             s//\1/
18711             q
18712           }
18713           /^X\(\/\).*/{
18714             s//\1/
18715             q
18716           }
18717           s/.*/./; q'`/stamp-h$_am_stamp_count
18718  ;;
18719
18720   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18721 $as_echo "$as_me: executing $ac_file commands" >&6;}
18722  ;;
18723   esac
18724
18725
18726   case $ac_file$ac_mode in
18727     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18728   # Older Autoconf quotes --file arguments for eval, but not when files
18729   # are listed without --file.  Let's play safe and only enable the eval
18730   # if we detect the quoting.
18731   case $CONFIG_FILES in
18732   *\'*) eval set x "$CONFIG_FILES" ;;
18733   *)   set x $CONFIG_FILES ;;
18734   esac
18735   shift
18736   for mf
18737   do
18738     # Strip MF so we end up with the name of the file.
18739     mf=`echo "$mf" | sed -e 's/:.*$//'`
18740     # Check whether this is an Automake generated Makefile or not.
18741     # We used to match only the files named 'Makefile.in', but
18742     # some people rename them; so instead we look at the file content.
18743     # Grep'ing the first line is not enough: some people post-process
18744     # each Makefile.in and add a new line on top of each file to say so.
18745     # Grep'ing the whole file is not good either: AIX grep has a line
18746     # limit of 2048, but all sed's we know have understand at least 4000.
18747     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18748       dirpart=`$as_dirname -- "$mf" ||
18749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18750          X"$mf" : 'X\(//\)[^/]' \| \
18751          X"$mf" : 'X\(//\)$' \| \
18752          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18753 $as_echo X"$mf" |
18754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18755             s//\1/
18756             q
18757           }
18758           /^X\(\/\/\)[^/].*/{
18759             s//\1/
18760             q
18761           }
18762           /^X\(\/\/\)$/{
18763             s//\1/
18764             q
18765           }
18766           /^X\(\/\).*/{
18767             s//\1/
18768             q
18769           }
18770           s/.*/./; q'`
18771     else
18772       continue
18773     fi
18774     # Extract the definition of DEPDIR, am__include, and am__quote
18775     # from the Makefile without running 'make'.
18776     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18777     test -z "$DEPDIR" && continue
18778     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18779     test -z "$am__include" && continue
18780     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18781     # Find all dependency output files, they are included files with
18782     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18783     # simplest approach to changing $(DEPDIR) to its actual value in the
18784     # expansion.
18785     for file in `sed -n "
18786       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18787          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18788       # Make sure the directory exists.
18789       test -f "$dirpart/$file" && continue
18790       fdir=`$as_dirname -- "$file" ||
18791 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18792          X"$file" : 'X\(//\)[^/]' \| \
18793          X"$file" : 'X\(//\)$' \| \
18794          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18795 $as_echo X"$file" |
18796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18797             s//\1/
18798             q
18799           }
18800           /^X\(\/\/\)[^/].*/{
18801             s//\1/
18802             q
18803           }
18804           /^X\(\/\/\)$/{
18805             s//\1/
18806             q
18807           }
18808           /^X\(\/\).*/{
18809             s//\1/
18810             q
18811           }
18812           s/.*/./; q'`
18813       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18814       # echo "creating $dirpart/$file"
18815       echo '# dummy' > "$dirpart/$file"
18816     done
18817   done
18818 }
18819  ;;
18820     "libtool":C)
18821
18822     # See if we are running on zsh, and set the options that allow our
18823     # commands through without removal of \ escapes.
18824     if test -n "${ZSH_VERSION+set}"; then
18825       setopt NO_GLOB_SUBST
18826     fi
18827
18828     cfgfile=${ofile}T
18829     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18830     $RM "$cfgfile"
18831
18832     cat <<_LT_EOF >> "$cfgfile"
18833 #! $SHELL
18834 # Generated automatically by $as_me ($PACKAGE) $VERSION
18835 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18836 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18837
18838 # Provide generalized library-building support services.
18839 # Written by Gordon Matzigkeit, 1996
18840
18841 # Copyright (C) 2014 Free Software Foundation, Inc.
18842 # This is free software; see the source for copying conditions.  There is NO
18843 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18844
18845 # GNU Libtool is free software; you can redistribute it and/or modify
18846 # it under the terms of the GNU General Public License as published by
18847 # the Free Software Foundation; either version 2 of of the License, or
18848 # (at your option) any later version.
18849 #
18850 # As a special exception to the GNU General Public License, if you
18851 # distribute this file as part of a program or library that is built
18852 # using GNU Libtool, you may include this file under the  same
18853 # distribution terms that you use for the rest of that program.
18854 #
18855 # GNU Libtool is distributed in the hope that it will be useful, but
18856 # WITHOUT ANY WARRANTY; without even the implied warranty of
18857 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18858 # GNU General Public License for more details.
18859 #
18860 # You should have received a copy of the GNU General Public License
18861 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18862
18863
18864 # The names of the tagged configurations supported by this script.
18865 available_tags='CXX '
18866
18867 # Configured defaults for sys_lib_dlsearch_path munging.
18868 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18869
18870 # ### BEGIN LIBTOOL CONFIG
18871
18872 # Which release of libtool.m4 was used?
18873 macro_version=$macro_version
18874 macro_revision=$macro_revision
18875
18876 # Whether or not to build shared libraries.
18877 build_libtool_libs=$enable_shared
18878
18879 # Whether or not to build static libraries.
18880 build_old_libs=$enable_static
18881
18882 # What type of objects to build.
18883 pic_mode=$pic_mode
18884
18885 # Whether or not to optimize for fast installation.
18886 fast_install=$enable_fast_install
18887
18888 # Shared archive member basename,for filename based shared library versioning on AIX.
18889 shared_archive_member_spec=$shared_archive_member_spec
18890
18891 # Shell to use when invoking shell scripts.
18892 SHELL=$lt_SHELL
18893
18894 # An echo program that protects backslashes.
18895 ECHO=$lt_ECHO
18896
18897 # The PATH separator for the build system.
18898 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18899
18900 # The host system.
18901 host_alias=$host_alias
18902 host=$host
18903 host_os=$host_os
18904
18905 # The build system.
18906 build_alias=$build_alias
18907 build=$build
18908 build_os=$build_os
18909
18910 # A sed program that does not truncate output.
18911 SED=$lt_SED
18912
18913 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18914 Xsed="\$SED -e 1s/^X//"
18915
18916 # A grep program that handles long lines.
18917 GREP=$lt_GREP
18918
18919 # An ERE matcher.
18920 EGREP=$lt_EGREP
18921
18922 # A literal string matcher.
18923 FGREP=$lt_FGREP
18924
18925 # A BSD- or MS-compatible name lister.
18926 NM=$lt_NM
18927
18928 # Whether we need soft or hard links.
18929 LN_S=$lt_LN_S
18930
18931 # What is the maximum length of a command?
18932 max_cmd_len=$max_cmd_len
18933
18934 # Object file suffix (normally "o").
18935 objext=$ac_objext
18936
18937 # Executable file suffix (normally "").
18938 exeext=$exeext
18939
18940 # whether the shell understands "unset".
18941 lt_unset=$lt_unset
18942
18943 # turn spaces into newlines.
18944 SP2NL=$lt_lt_SP2NL
18945
18946 # turn newlines into spaces.
18947 NL2SP=$lt_lt_NL2SP
18948
18949 # convert \$build file names to \$host format.
18950 to_host_file_cmd=$lt_cv_to_host_file_cmd
18951
18952 # convert \$build files to toolchain format.
18953 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18954
18955 # An object symbol dumper.
18956 OBJDUMP=$lt_OBJDUMP
18957
18958 # Method to check whether dependent libraries are shared objects.
18959 deplibs_check_method=$lt_deplibs_check_method
18960
18961 # Command to use when deplibs_check_method = "file_magic".
18962 file_magic_cmd=$lt_file_magic_cmd
18963
18964 # How to find potential files when deplibs_check_method = "file_magic".
18965 file_magic_glob=$lt_file_magic_glob
18966
18967 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18968 want_nocaseglob=$lt_want_nocaseglob
18969
18970 # DLL creation program.
18971 DLLTOOL=$lt_DLLTOOL
18972
18973 # Command to associate shared and link libraries.
18974 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18975
18976 # The archiver.
18977 AR=$lt_AR
18978
18979 # Flags to create an archive.
18980 AR_FLAGS=$lt_AR_FLAGS
18981
18982 # How to feed a file listing to the archiver.
18983 archiver_list_spec=$lt_archiver_list_spec
18984
18985 # A symbol stripping program.
18986 STRIP=$lt_STRIP
18987
18988 # Commands used to install an old-style archive.
18989 RANLIB=$lt_RANLIB
18990 old_postinstall_cmds=$lt_old_postinstall_cmds
18991 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18992
18993 # Whether to use a lock for old archive extraction.
18994 lock_old_archive_extraction=$lock_old_archive_extraction
18995
18996 # A C compiler.
18997 LTCC=$lt_CC
18998
18999 # LTCC compiler flags.
19000 LTCFLAGS=$lt_CFLAGS
19001
19002 # Take the output of nm and produce a listing of raw symbols and C names.
19003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19004
19005 # Transform the output of nm in a proper C declaration.
19006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19007
19008 # Transform the output of nm into a list of symbols to manually relocate.
19009 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19010
19011 # Transform the output of nm in a C name address pair.
19012 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19013
19014 # Transform the output of nm in a C name address pair when lib prefix is needed.
19015 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19016
19017 # The name lister interface.
19018 nm_interface=$lt_lt_cv_nm_interface
19019
19020 # Specify filename containing input files for \$NM.
19021 nm_file_list_spec=$lt_nm_file_list_spec
19022
19023 # The root where to search for dependent libraries,and where our libraries should be installed.
19024 lt_sysroot=$lt_sysroot
19025
19026 # Command to truncate a binary pipe.
19027 lt_truncate_bin=$lt_lt_cv_truncate_bin
19028
19029 # The name of the directory that contains temporary libtool files.
19030 objdir=$objdir
19031
19032 # Used to examine libraries when file_magic_cmd begins with "file".
19033 MAGIC_CMD=$MAGIC_CMD
19034
19035 # Must we lock files when doing compilation?
19036 need_locks=$lt_need_locks
19037
19038 # Manifest tool.
19039 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19040
19041 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19042 DSYMUTIL=$lt_DSYMUTIL
19043
19044 # Tool to change global to local symbols on Mac OS X.
19045 NMEDIT=$lt_NMEDIT
19046
19047 # Tool to manipulate fat objects and archives on Mac OS X.
19048 LIPO=$lt_LIPO
19049
19050 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19051 OTOOL=$lt_OTOOL
19052
19053 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19054 OTOOL64=$lt_OTOOL64
19055
19056 # Old archive suffix (normally "a").
19057 libext=$libext
19058
19059 # Shared library suffix (normally ".so").
19060 shrext_cmds=$lt_shrext_cmds
19061
19062 # The commands to extract the exported symbol list from a shared archive.
19063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19064
19065 # Variables whose values should be saved in libtool wrapper scripts and
19066 # restored at link time.
19067 variables_saved_for_relink=$lt_variables_saved_for_relink
19068
19069 # Do we need the "lib" prefix for modules?
19070 need_lib_prefix=$need_lib_prefix
19071
19072 # Do we need a version for libraries?
19073 need_version=$need_version
19074
19075 # Library versioning type.
19076 version_type=$version_type
19077
19078 # Shared library runtime path variable.
19079 runpath_var=$runpath_var
19080
19081 # Shared library path variable.
19082 shlibpath_var=$shlibpath_var
19083
19084 # Is shlibpath searched before the hard-coded library search path?
19085 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19086
19087 # Format of library name prefix.
19088 libname_spec=$lt_libname_spec
19089
19090 # List of archive names.  First name is the real one, the rest are links.
19091 # The last name is the one that the linker finds with -lNAME
19092 library_names_spec=$lt_library_names_spec
19093
19094 # The coded name of the library, if different from the real name.
19095 soname_spec=$lt_soname_spec
19096
19097 # Permission mode override for installation of shared libraries.
19098 install_override_mode=$lt_install_override_mode
19099
19100 # Command to use after installation of a shared archive.
19101 postinstall_cmds=$lt_postinstall_cmds
19102
19103 # Command to use after uninstallation of a shared archive.
19104 postuninstall_cmds=$lt_postuninstall_cmds
19105
19106 # Commands used to finish a libtool library installation in a directory.
19107 finish_cmds=$lt_finish_cmds
19108
19109 # As "finish_cmds", except a single script fragment to be evaled but
19110 # not shown.
19111 finish_eval=$lt_finish_eval
19112
19113 # Whether we should hardcode library paths into libraries.
19114 hardcode_into_libs=$hardcode_into_libs
19115
19116 # Compile-time system search path for libraries.
19117 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19118
19119 # Detected run-time system search path for libraries.
19120 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19121
19122 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19123 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19124
19125 # Whether dlopen is supported.
19126 dlopen_support=$enable_dlopen
19127
19128 # Whether dlopen of programs is supported.
19129 dlopen_self=$enable_dlopen_self
19130
19131 # Whether dlopen of statically linked programs is supported.
19132 dlopen_self_static=$enable_dlopen_self_static
19133
19134 # Commands to strip libraries.
19135 old_striplib=$lt_old_striplib
19136 striplib=$lt_striplib
19137
19138
19139 # The linker used to build libraries.
19140 LD=$lt_LD
19141
19142 # How to create reloadable object files.
19143 reload_flag=$lt_reload_flag
19144 reload_cmds=$lt_reload_cmds
19145
19146 # Commands used to build an old-style archive.
19147 old_archive_cmds=$lt_old_archive_cmds
19148
19149 # A language specific compiler.
19150 CC=$lt_compiler
19151
19152 # Is the compiler the GNU compiler?
19153 with_gcc=$GCC
19154
19155 # Compiler flag to turn off builtin functions.
19156 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19157
19158 # Additional compiler flags for building library objects.
19159 pic_flag=$lt_lt_prog_compiler_pic
19160
19161 # How to pass a linker flag through the compiler.
19162 wl=$lt_lt_prog_compiler_wl
19163
19164 # Compiler flag to prevent dynamic linking.
19165 link_static_flag=$lt_lt_prog_compiler_static
19166
19167 # Does compiler simultaneously support -c and -o options?
19168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19169
19170 # Whether or not to add -lc for building shared libraries.
19171 build_libtool_need_lc=$archive_cmds_need_lc
19172
19173 # Whether or not to disallow shared libs when runtime libs are static.
19174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19175
19176 # Compiler flag to allow reflexive dlopens.
19177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19178
19179 # Compiler flag to generate shared objects directly from archives.
19180 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19181
19182 # Whether the compiler copes with passing no objects directly.
19183 compiler_needs_object=$lt_compiler_needs_object
19184
19185 # Create an old-style archive from a shared archive.
19186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19187
19188 # Create a temporary old-style archive to link instead of a shared archive.
19189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19190
19191 # Commands used to build a shared archive.
19192 archive_cmds=$lt_archive_cmds
19193 archive_expsym_cmds=$lt_archive_expsym_cmds
19194
19195 # Commands used to build a loadable module if different from building
19196 # a shared archive.
19197 module_cmds=$lt_module_cmds
19198 module_expsym_cmds=$lt_module_expsym_cmds
19199
19200 # Whether we are building with GNU ld or not.
19201 with_gnu_ld=$lt_with_gnu_ld
19202
19203 # Flag that allows shared libraries with undefined symbols to be built.
19204 allow_undefined_flag=$lt_allow_undefined_flag
19205
19206 # Flag that enforces no undefined symbols.
19207 no_undefined_flag=$lt_no_undefined_flag
19208
19209 # Flag to hardcode \$libdir into a binary during linking.
19210 # This must work even if \$libdir does not exist
19211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19212
19213 # Whether we need a single "-rpath" flag with a separated argument.
19214 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19215
19216 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19217 # DIR into the resulting binary.
19218 hardcode_direct=$hardcode_direct
19219
19220 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19221 # DIR into the resulting binary and the resulting library dependency is
19222 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19223 # library is relocated.
19224 hardcode_direct_absolute=$hardcode_direct_absolute
19225
19226 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19227 # into the resulting binary.
19228 hardcode_minus_L=$hardcode_minus_L
19229
19230 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19231 # into the resulting binary.
19232 hardcode_shlibpath_var=$hardcode_shlibpath_var
19233
19234 # Set to "yes" if building a shared library automatically hardcodes DIR
19235 # into the library and all subsequent libraries and executables linked
19236 # against it.
19237 hardcode_automatic=$hardcode_automatic
19238
19239 # Set to yes if linker adds runtime paths of dependent libraries
19240 # to runtime path list.
19241 inherit_rpath=$inherit_rpath
19242
19243 # Whether libtool must link a program against all its dependency libraries.
19244 link_all_deplibs=$link_all_deplibs
19245
19246 # Set to "yes" if exported symbols are required.
19247 always_export_symbols=$always_export_symbols
19248
19249 # The commands to list exported symbols.
19250 export_symbols_cmds=$lt_export_symbols_cmds
19251
19252 # Symbols that should not be listed in the preloaded symbols.
19253 exclude_expsyms=$lt_exclude_expsyms
19254
19255 # Symbols that must always be exported.
19256 include_expsyms=$lt_include_expsyms
19257
19258 # Commands necessary for linking programs (against libraries) with templates.
19259 prelink_cmds=$lt_prelink_cmds
19260
19261 # Commands necessary for finishing linking programs.
19262 postlink_cmds=$lt_postlink_cmds
19263
19264 # Specify filename containing input files.
19265 file_list_spec=$lt_file_list_spec
19266
19267 # How to hardcode a shared library path into an executable.
19268 hardcode_action=$hardcode_action
19269
19270 # The directories searched by this compiler when creating a shared library.
19271 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19272
19273 # Dependencies to place before and after the objects being linked to
19274 # create a shared library.
19275 predep_objects=$lt_predep_objects
19276 postdep_objects=$lt_postdep_objects
19277 predeps=$lt_predeps
19278 postdeps=$lt_postdeps
19279
19280 # The library search path used internally by the compiler when linking
19281 # a shared library.
19282 compiler_lib_search_path=$lt_compiler_lib_search_path
19283
19284 # ### END LIBTOOL CONFIG
19285
19286 _LT_EOF
19287
19288     cat <<'_LT_EOF' >> "$cfgfile"
19289
19290 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19291
19292 # func_munge_path_list VARIABLE PATH
19293 # -----------------------------------
19294 # VARIABLE is name of variable containing _space_ separated list of
19295 # directories to be munged by the contents of PATH, which is string
19296 # having a format:
19297 # "DIR[:DIR]:"
19298 #       string "DIR[ DIR]" will be prepended to VARIABLE
19299 # ":DIR[:DIR]"
19300 #       string "DIR[ DIR]" will be appended to VARIABLE
19301 # "DIRP[:DIRP]::[DIRA:]DIRA"
19302 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19303 #       "DIRA[ DIRA]" will be appended to VARIABLE
19304 # "DIR[:DIR]"
19305 #       VARIABLE will be replaced by "DIR[ DIR]"
19306 func_munge_path_list ()
19307 {
19308     case x$2 in
19309     x)
19310         ;;
19311     *:)
19312         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19313         ;;
19314     x:*)
19315         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19316         ;;
19317     *::*)
19318         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19319         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19320         ;;
19321     *)
19322         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19323         ;;
19324     esac
19325 }
19326
19327
19328 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19329 func_cc_basename ()
19330 {
19331     for cc_temp in $*""; do
19332       case $cc_temp in
19333         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19334         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19335         \-*) ;;
19336         *) break;;
19337       esac
19338     done
19339     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19340 }
19341
19342
19343 # ### END FUNCTIONS SHARED WITH CONFIGURE
19344
19345 _LT_EOF
19346
19347   case $host_os in
19348   aix3*)
19349     cat <<\_LT_EOF >> "$cfgfile"
19350 # AIX sometimes has problems with the GCC collect2 program.  For some
19351 # reason, if we set the COLLECT_NAMES environment variable, the problems
19352 # vanish in a puff of smoke.
19353 if test set != "${COLLECT_NAMES+set}"; then
19354   COLLECT_NAMES=
19355   export COLLECT_NAMES
19356 fi
19357 _LT_EOF
19358     ;;
19359   esac
19360
19361
19362 ltmain=$ac_aux_dir/ltmain.sh
19363
19364
19365   # We use sed instead of cat because bash on DJGPP gets confused if
19366   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19367   # text mode, it properly converts lines to CR/LF.  This bash problem
19368   # is reportedly fixed, but why not run on old versions too?
19369   sed '$q' "$ltmain" >> "$cfgfile" \
19370      || (rm -f "$cfgfile"; exit 1)
19371
19372    mv -f "$cfgfile" "$ofile" ||
19373     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19374   chmod +x "$ofile"
19375
19376
19377     cat <<_LT_EOF >> "$ofile"
19378
19379 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19380
19381 # The linker used to build libraries.
19382 LD=$lt_LD_CXX
19383
19384 # How to create reloadable object files.
19385 reload_flag=$lt_reload_flag_CXX
19386 reload_cmds=$lt_reload_cmds_CXX
19387
19388 # Commands used to build an old-style archive.
19389 old_archive_cmds=$lt_old_archive_cmds_CXX
19390
19391 # A language specific compiler.
19392 CC=$lt_compiler_CXX
19393
19394 # Is the compiler the GNU compiler?
19395 with_gcc=$GCC_CXX
19396
19397 # Compiler flag to turn off builtin functions.
19398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19399
19400 # Additional compiler flags for building library objects.
19401 pic_flag=$lt_lt_prog_compiler_pic_CXX
19402
19403 # How to pass a linker flag through the compiler.
19404 wl=$lt_lt_prog_compiler_wl_CXX
19405
19406 # Compiler flag to prevent dynamic linking.
19407 link_static_flag=$lt_lt_prog_compiler_static_CXX
19408
19409 # Does compiler simultaneously support -c and -o options?
19410 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19411
19412 # Whether or not to add -lc for building shared libraries.
19413 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19414
19415 # Whether or not to disallow shared libs when runtime libs are static.
19416 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19417
19418 # Compiler flag to allow reflexive dlopens.
19419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19420
19421 # Compiler flag to generate shared objects directly from archives.
19422 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19423
19424 # Whether the compiler copes with passing no objects directly.
19425 compiler_needs_object=$lt_compiler_needs_object_CXX
19426
19427 # Create an old-style archive from a shared archive.
19428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19429
19430 # Create a temporary old-style archive to link instead of a shared archive.
19431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19432
19433 # Commands used to build a shared archive.
19434 archive_cmds=$lt_archive_cmds_CXX
19435 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19436
19437 # Commands used to build a loadable module if different from building
19438 # a shared archive.
19439 module_cmds=$lt_module_cmds_CXX
19440 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19441
19442 # Whether we are building with GNU ld or not.
19443 with_gnu_ld=$lt_with_gnu_ld_CXX
19444
19445 # Flag that allows shared libraries with undefined symbols to be built.
19446 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19447
19448 # Flag that enforces no undefined symbols.
19449 no_undefined_flag=$lt_no_undefined_flag_CXX
19450
19451 # Flag to hardcode \$libdir into a binary during linking.
19452 # This must work even if \$libdir does not exist
19453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19454
19455 # Whether we need a single "-rpath" flag with a separated argument.
19456 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19457
19458 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19459 # DIR into the resulting binary.
19460 hardcode_direct=$hardcode_direct_CXX
19461
19462 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19463 # DIR into the resulting binary and the resulting library dependency is
19464 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19465 # library is relocated.
19466 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19467
19468 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19469 # into the resulting binary.
19470 hardcode_minus_L=$hardcode_minus_L_CXX
19471
19472 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19473 # into the resulting binary.
19474 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19475
19476 # Set to "yes" if building a shared library automatically hardcodes DIR
19477 # into the library and all subsequent libraries and executables linked
19478 # against it.
19479 hardcode_automatic=$hardcode_automatic_CXX
19480
19481 # Set to yes if linker adds runtime paths of dependent libraries
19482 # to runtime path list.
19483 inherit_rpath=$inherit_rpath_CXX
19484
19485 # Whether libtool must link a program against all its dependency libraries.
19486 link_all_deplibs=$link_all_deplibs_CXX
19487
19488 # Set to "yes" if exported symbols are required.
19489 always_export_symbols=$always_export_symbols_CXX
19490
19491 # The commands to list exported symbols.
19492 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19493
19494 # Symbols that should not be listed in the preloaded symbols.
19495 exclude_expsyms=$lt_exclude_expsyms_CXX
19496
19497 # Symbols that must always be exported.
19498 include_expsyms=$lt_include_expsyms_CXX
19499
19500 # Commands necessary for linking programs (against libraries) with templates.
19501 prelink_cmds=$lt_prelink_cmds_CXX
19502
19503 # Commands necessary for finishing linking programs.
19504 postlink_cmds=$lt_postlink_cmds_CXX
19505
19506 # Specify filename containing input files.
19507 file_list_spec=$lt_file_list_spec_CXX
19508
19509 # How to hardcode a shared library path into an executable.
19510 hardcode_action=$hardcode_action_CXX
19511
19512 # The directories searched by this compiler when creating a shared library.
19513 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19514
19515 # Dependencies to place before and after the objects being linked to
19516 # create a shared library.
19517 predep_objects=$lt_predep_objects_CXX
19518 postdep_objects=$lt_postdep_objects_CXX
19519 predeps=$lt_predeps_CXX
19520 postdeps=$lt_postdeps_CXX
19521
19522 # The library search path used internally by the compiler when linking
19523 # a shared library.
19524 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19525
19526 # ### END LIBTOOL TAG CONFIG: CXX
19527 _LT_EOF
19528
19529  ;;
19530
19531   esac
19532 done # for ac_tag
19533
19534
19535 as_fn_exit 0
19536 _ACEOF
19537 ac_clean_files=$ac_clean_files_save
19538
19539 test $ac_write_fail = 0 ||
19540   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19541
19542
19543 # configure is writing to config.log, and then calls config.status.
19544 # config.status does its own redirection, appending to config.log.
19545 # Unfortunately, on DOS this fails, as config.log is still kept open
19546 # by configure, so config.status won't be able to write to it; its
19547 # output is simply discarded.  So we exec the FD to /dev/null,
19548 # effectively closing config.log, so it can be properly (re)opened and
19549 # appended to by config.status.  When coming back to configure, we
19550 # need to make the FD available again.
19551 if test "$no_create" != yes; then
19552   ac_cs_success=:
19553   ac_config_status_args=
19554   test "$silent" = yes &&
19555     ac_config_status_args="$ac_config_status_args --quiet"
19556   exec 5>/dev/null
19557   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19558   exec 5>>config.log
19559   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19560   # would make configure fail if this is the last instruction.
19561   $ac_cs_success || as_fn_exit 1
19562 fi
19563 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19564   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19565 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19566 fi
19567