Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / tagdemo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for tagdemo 1.0.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='tagdemo'
572 PACKAGE_TARNAME='tagdemo'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='tagdemo 1.0'
575 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
576 PACKAGE_URL=''
577
578 ac_unique_file="foo.cpp"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 LIBM
620 OTOOL64
621 OTOOL
622 LIPO
623 NMEDIT
624 DSYMUTIL
625 MANIFEST_TOOL
626 RANLIB
627 ac_ct_AR
628 AR
629 DLLTOOL
630 OBJDUMP
631 LN_S
632 NM
633 ac_ct_DUMPBIN
634 DUMPBIN
635 LD
636 FGREP
637 EGREP
638 GREP
639 SED
640 LIBTOOL
641 CXXCPP
642 am__fastdepCXX_FALSE
643 am__fastdepCXX_TRUE
644 CXXDEPMODE
645 ac_ct_CXX
646 CXXFLAGS
647 CXX
648 CPP
649 am__fastdepCC_FALSE
650 am__fastdepCC_TRUE
651 CCDEPMODE
652 AMDEPBACKSLASH
653 AMDEP_FALSE
654 AMDEP_TRUE
655 am__quote
656 am__include
657 DEPDIR
658 OBJEXT
659 EXEEXT
660 ac_ct_CC
661 CPPFLAGS
662 LDFLAGS
663 CFLAGS
664 CC
665 am__untar
666 am__tar
667 AMTAR
668 am__leading_dot
669 SET_MAKE
670 AWK
671 mkdir_p
672 MKDIR_P
673 INSTALL_STRIP_PROGRAM
674 STRIP
675 install_sh
676 MAKEINFO
677 AUTOHEADER
678 AUTOMAKE
679 AUTOCONF
680 ACLOCAL
681 VERSION
682 PACKAGE
683 CYGPATH_W
684 am__isrc
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files=''
739 ac_user_opts='
740 enable_option_checking
741 enable_dependency_tracking
742 enable_shared
743 enable_static
744 with_pic
745 enable_fast_install
746 with_gnu_ld
747 with_sysroot
748 enable_libtool_lock
749 '
750       ac_precious_vars='build_alias
751 host_alias
752 target_alias
753 CC
754 CFLAGS
755 LDFLAGS
756 LIBS
757 CPPFLAGS
758 CPP
759 CXX
760 CXXFLAGS
761 CCC
762 CXXCPP'
763
764
765 # Initialize some variables set by options.
766 ac_init_help=
767 ac_init_version=false
768 ac_unrecognized_opts=
769 ac_unrecognized_sep=
770 # The variables have the same names as the options, with
771 # dashes changed to underlines.
772 cache_file=/dev/null
773 exec_prefix=NONE
774 no_create=
775 no_recursion=
776 prefix=NONE
777 program_prefix=NONE
778 program_suffix=NONE
779 program_transform_name=s,x,x,
780 silent=
781 site=
782 srcdir=
783 verbose=
784 x_includes=NONE
785 x_libraries=NONE
786
787 # Installation directory options.
788 # These are left unexpanded so users can "make install exec_prefix=/foo"
789 # and all the variables that are supposed to be based on exec_prefix
790 # by default will actually change.
791 # Use braces instead of parens because sh, perl, etc. also accept them.
792 # (The list follows the same order as the GNU Coding Standards.)
793 bindir='${exec_prefix}/bin'
794 sbindir='${exec_prefix}/sbin'
795 libexecdir='${exec_prefix}/libexec'
796 datarootdir='${prefix}/share'
797 datadir='${datarootdir}'
798 sysconfdir='${prefix}/etc'
799 sharedstatedir='${prefix}/com'
800 localstatedir='${prefix}/var'
801 includedir='${prefix}/include'
802 oldincludedir='/usr/include'
803 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804 infodir='${datarootdir}/info'
805 htmldir='${docdir}'
806 dvidir='${docdir}'
807 pdfdir='${docdir}'
808 psdir='${docdir}'
809 libdir='${exec_prefix}/lib'
810 localedir='${datarootdir}/locale'
811 mandir='${datarootdir}/man'
812
813 ac_prev=
814 ac_dashdash=
815 for ac_option
816 do
817   # If the previous option needs an argument, assign it.
818   if test -n "$ac_prev"; then
819     eval $ac_prev=\$ac_option
820     ac_prev=
821     continue
822   fi
823
824   case $ac_option in
825   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826   *=)   ac_optarg= ;;
827   *)    ac_optarg=yes ;;
828   esac
829
830   # Accept the important Cygnus configure options, so we can diagnose typos.
831
832   case $ac_dashdash$ac_option in
833   --)
834     ac_dashdash=yes ;;
835
836   -bindir | --bindir | --bindi | --bind | --bin | --bi)
837     ac_prev=bindir ;;
838   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839     bindir=$ac_optarg ;;
840
841   -build | --build | --buil | --bui | --bu)
842     ac_prev=build_alias ;;
843   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844     build_alias=$ac_optarg ;;
845
846   -cache-file | --cache-file | --cache-fil | --cache-fi \
847   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848     ac_prev=cache_file ;;
849   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851     cache_file=$ac_optarg ;;
852
853   --config-cache | -C)
854     cache_file=config.cache ;;
855
856   -datadir | --datadir | --datadi | --datad)
857     ac_prev=datadir ;;
858   -datadir=* | --datadir=* | --datadi=* | --datad=*)
859     datadir=$ac_optarg ;;
860
861   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862   | --dataroo | --dataro | --datar)
863     ac_prev=datarootdir ;;
864   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866     datarootdir=$ac_optarg ;;
867
868   -disable-* | --disable-*)
869     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870     # Reject names that are not valid shell variable names.
871     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872       as_fn_error $? "invalid feature name: $ac_useropt"
873     ac_useropt_orig=$ac_useropt
874     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875     case $ac_user_opts in
876       *"
877 "enable_$ac_useropt"
878 "*) ;;
879       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880          ac_unrecognized_sep=', ';;
881     esac
882     eval enable_$ac_useropt=no ;;
883
884   -docdir | --docdir | --docdi | --doc | --do)
885     ac_prev=docdir ;;
886   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887     docdir=$ac_optarg ;;
888
889   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890     ac_prev=dvidir ;;
891   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892     dvidir=$ac_optarg ;;
893
894   -enable-* | --enable-*)
895     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896     # Reject names that are not valid shell variable names.
897     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898       as_fn_error $? "invalid feature name: $ac_useropt"
899     ac_useropt_orig=$ac_useropt
900     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901     case $ac_user_opts in
902       *"
903 "enable_$ac_useropt"
904 "*) ;;
905       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906          ac_unrecognized_sep=', ';;
907     esac
908     eval enable_$ac_useropt=\$ac_optarg ;;
909
910   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912   | --exec | --exe | --ex)
913     ac_prev=exec_prefix ;;
914   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916   | --exec=* | --exe=* | --ex=*)
917     exec_prefix=$ac_optarg ;;
918
919   -gas | --gas | --ga | --g)
920     # Obsolete; use --with-gas.
921     with_gas=yes ;;
922
923   -help | --help | --hel | --he | -h)
924     ac_init_help=long ;;
925   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926     ac_init_help=recursive ;;
927   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928     ac_init_help=short ;;
929
930   -host | --host | --hos | --ho)
931     ac_prev=host_alias ;;
932   -host=* | --host=* | --hos=* | --ho=*)
933     host_alias=$ac_optarg ;;
934
935   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936     ac_prev=htmldir ;;
937   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938   | --ht=*)
939     htmldir=$ac_optarg ;;
940
941   -includedir | --includedir | --includedi | --included | --include \
942   | --includ | --inclu | --incl | --inc)
943     ac_prev=includedir ;;
944   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945   | --includ=* | --inclu=* | --incl=* | --inc=*)
946     includedir=$ac_optarg ;;
947
948   -infodir | --infodir | --infodi | --infod | --info | --inf)
949     ac_prev=infodir ;;
950   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951     infodir=$ac_optarg ;;
952
953   -libdir | --libdir | --libdi | --libd)
954     ac_prev=libdir ;;
955   -libdir=* | --libdir=* | --libdi=* | --libd=*)
956     libdir=$ac_optarg ;;
957
958   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959   | --libexe | --libex | --libe)
960     ac_prev=libexecdir ;;
961   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962   | --libexe=* | --libex=* | --libe=*)
963     libexecdir=$ac_optarg ;;
964
965   -localedir | --localedir | --localedi | --localed | --locale)
966     ac_prev=localedir ;;
967   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968     localedir=$ac_optarg ;;
969
970   -localstatedir | --localstatedir | --localstatedi | --localstated \
971   | --localstate | --localstat | --localsta | --localst | --locals)
972     ac_prev=localstatedir ;;
973   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975     localstatedir=$ac_optarg ;;
976
977   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978     ac_prev=mandir ;;
979   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980     mandir=$ac_optarg ;;
981
982   -nfp | --nfp | --nf)
983     # Obsolete; use --without-fp.
984     with_fp=no ;;
985
986   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987   | --no-cr | --no-c | -n)
988     no_create=yes ;;
989
990   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992     no_recursion=yes ;;
993
994   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996   | --oldin | --oldi | --old | --ol | --o)
997     ac_prev=oldincludedir ;;
998   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001     oldincludedir=$ac_optarg ;;
1002
1003   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004     ac_prev=prefix ;;
1005   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006     prefix=$ac_optarg ;;
1007
1008   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009   | --program-pre | --program-pr | --program-p)
1010     ac_prev=program_prefix ;;
1011   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013     program_prefix=$ac_optarg ;;
1014
1015   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016   | --program-suf | --program-su | --program-s)
1017     ac_prev=program_suffix ;;
1018   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020     program_suffix=$ac_optarg ;;
1021
1022   -program-transform-name | --program-transform-name \
1023   | --program-transform-nam | --program-transform-na \
1024   | --program-transform-n | --program-transform- \
1025   | --program-transform | --program-transfor \
1026   | --program-transfo | --program-transf \
1027   | --program-trans | --program-tran \
1028   | --progr-tra | --program-tr | --program-t)
1029     ac_prev=program_transform_name ;;
1030   -program-transform-name=* | --program-transform-name=* \
1031   | --program-transform-nam=* | --program-transform-na=* \
1032   | --program-transform-n=* | --program-transform-=* \
1033   | --program-transform=* | --program-transfor=* \
1034   | --program-transfo=* | --program-transf=* \
1035   | --program-trans=* | --program-tran=* \
1036   | --progr-tra=* | --program-tr=* | --program-t=*)
1037     program_transform_name=$ac_optarg ;;
1038
1039   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040     ac_prev=pdfdir ;;
1041   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042     pdfdir=$ac_optarg ;;
1043
1044   -psdir | --psdir | --psdi | --psd | --ps)
1045     ac_prev=psdir ;;
1046   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047     psdir=$ac_optarg ;;
1048
1049   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050   | -silent | --silent | --silen | --sile | --sil)
1051     silent=yes ;;
1052
1053   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054     ac_prev=sbindir ;;
1055   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056   | --sbi=* | --sb=*)
1057     sbindir=$ac_optarg ;;
1058
1059   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061   | --sharedst | --shareds | --shared | --share | --shar \
1062   | --sha | --sh)
1063     ac_prev=sharedstatedir ;;
1064   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067   | --sha=* | --sh=*)
1068     sharedstatedir=$ac_optarg ;;
1069
1070   -site | --site | --sit)
1071     ac_prev=site ;;
1072   -site=* | --site=* | --sit=*)
1073     site=$ac_optarg ;;
1074
1075   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076     ac_prev=srcdir ;;
1077   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078     srcdir=$ac_optarg ;;
1079
1080   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081   | --syscon | --sysco | --sysc | --sys | --sy)
1082     ac_prev=sysconfdir ;;
1083   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085     sysconfdir=$ac_optarg ;;
1086
1087   -target | --target | --targe | --targ | --tar | --ta | --t)
1088     ac_prev=target_alias ;;
1089   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090     target_alias=$ac_optarg ;;
1091
1092   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093     verbose=yes ;;
1094
1095   -version | --version | --versio | --versi | --vers | -V)
1096     ac_init_version=: ;;
1097
1098   -with-* | --with-*)
1099     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100     # Reject names that are not valid shell variable names.
1101     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102       as_fn_error $? "invalid package name: $ac_useropt"
1103     ac_useropt_orig=$ac_useropt
1104     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105     case $ac_user_opts in
1106       *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110          ac_unrecognized_sep=', ';;
1111     esac
1112     eval with_$ac_useropt=\$ac_optarg ;;
1113
1114   -without-* | --without-*)
1115     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118       as_fn_error $? "invalid package name: $ac_useropt"
1119     ac_useropt_orig=$ac_useropt
1120     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121     case $ac_user_opts in
1122       *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126          ac_unrecognized_sep=', ';;
1127     esac
1128     eval with_$ac_useropt=no ;;
1129
1130   --x)
1131     # Obsolete; use --with-x.
1132     with_x=yes ;;
1133
1134   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135   | --x-incl | --x-inc | --x-in | --x-i)
1136     ac_prev=x_includes ;;
1137   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139     x_includes=$ac_optarg ;;
1140
1141   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143     ac_prev=x_libraries ;;
1144   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146     x_libraries=$ac_optarg ;;
1147
1148   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1149 Try \`$0 --help' for more information"
1150     ;;
1151
1152   *=*)
1153     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154     # Reject names that are not valid shell variable names.
1155     case $ac_envvar in #(
1156       '' | [0-9]* | *[!_$as_cr_alnum]* )
1157       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1158     esac
1159     eval $ac_envvar=\$ac_optarg
1160     export $ac_envvar ;;
1161
1162   *)
1163     # FIXME: should be removed in autoconf 3.0.
1164     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1168     ;;
1169
1170   esac
1171 done
1172
1173 if test -n "$ac_prev"; then
1174   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175   as_fn_error $? "missing argument to $ac_option"
1176 fi
1177
1178 if test -n "$ac_unrecognized_opts"; then
1179   case $enable_option_checking in
1180     no) ;;
1181     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1182     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183   esac
1184 fi
1185
1186 # Check all directory arguments for consistency.
1187 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188                 datadir sysconfdir sharedstatedir localstatedir includedir \
1189                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190                 libdir localedir mandir
1191 do
1192   eval ac_val=\$$ac_var
1193   # Remove trailing slashes.
1194   case $ac_val in
1195     */ )
1196       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1197       eval $ac_var=\$ac_val;;
1198   esac
1199   # Be sure to have absolute directory names.
1200   case $ac_val in
1201     [\\/$]* | ?:[\\/]* )  continue;;
1202     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1203   esac
1204   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1205 done
1206
1207 # There might be people who depend on the old broken behavior: `$host'
1208 # used to hold the argument of --host etc.
1209 # FIXME: To remove some day.
1210 build=$build_alias
1211 host=$host_alias
1212 target=$target_alias
1213
1214 # FIXME: To remove some day.
1215 if test "x$host_alias" != x; then
1216   if test "x$build_alias" = x; then
1217     cross_compiling=maybe
1218     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1219     If a cross compiler is detected then cross compile mode will be used" >&2
1220   elif test "x$build_alias" != "x$host_alias"; then
1221     cross_compiling=yes
1222   fi
1223 fi
1224
1225 ac_tool_prefix=
1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227
1228 test "$silent" = yes && exec 6>/dev/null
1229
1230
1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232 ac_ls_di=`ls -di .` &&
1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234   as_fn_error $? "working directory cannot be determined"
1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236   as_fn_error $? "pwd does not report name of working directory"
1237
1238
1239 # Find the source files, if location was not specified.
1240 if test -z "$srcdir"; then
1241   ac_srcdir_defaulted=yes
1242   # Try the directory containing this script, then the parent directory.
1243   ac_confdir=`$as_dirname -- "$as_myself" ||
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245          X"$as_myself" : 'X\(//\)[^/]' \| \
1246          X"$as_myself" : 'X\(//\)$' \| \
1247          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248 $as_echo X"$as_myself" |
1249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250             s//\1/
1251             q
1252           }
1253           /^X\(\/\/\)[^/].*/{
1254             s//\1/
1255             q
1256           }
1257           /^X\(\/\/\)$/{
1258             s//\1/
1259             q
1260           }
1261           /^X\(\/\).*/{
1262             s//\1/
1263             q
1264           }
1265           s/.*/./; q'`
1266   srcdir=$ac_confdir
1267   if test ! -r "$srcdir/$ac_unique_file"; then
1268     srcdir=..
1269   fi
1270 else
1271   ac_srcdir_defaulted=no
1272 fi
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1276 fi
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 ac_abs_confdir=`(
1279         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280         pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283   srcdir=.
1284 fi
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293   eval ac_env_${ac_var}_value=\$${ac_var}
1294   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1297
1298 #
1299 # Report the --help message.
1300 #
1301 if test "$ac_init_help" = "long"; then
1302   # Omit some internal or obsolete options to make the list less imposing.
1303   # This message is too long to be a string in the A/UX 3.1 sh.
1304   cat <<_ACEOF
1305 \`configure' configures tagdemo 1.0 to adapt to many kinds of systems.
1306
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE.  See below for descriptions of some of the useful variables.
1311
1312 Defaults for the options are specified in brackets.
1313
1314 Configuration:
1315   -h, --help              display this help and exit
1316       --help=short        display options specific to this package
1317       --help=recursive    display the short help of all the included packages
1318   -V, --version           display version information and exit
1319   -q, --quiet, --silent   do not print \`checking ...' messages
1320       --cache-file=FILE   cache test results in FILE [disabled]
1321   -C, --config-cache      alias for \`--cache-file=config.cache'
1322   -n, --no-create         do not create output files
1323       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1324
1325 Installation directories:
1326   --prefix=PREFIX         install architecture-independent files in PREFIX
1327                           [$ac_default_prefix]
1328   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1329                           [PREFIX]
1330
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1335
1336 For better control, use the options below.
1337
1338 Fine tuning of the installation directories:
1339   --bindir=DIR            user executables [EPREFIX/bin]
1340   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1341   --libexecdir=DIR        program executables [EPREFIX/libexec]
1342   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1343   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1344   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1345   --libdir=DIR            object code libraries [EPREFIX/lib]
1346   --includedir=DIR        C header files [PREFIX/include]
1347   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1348   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1349   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1350   --infodir=DIR           info documentation [DATAROOTDIR/info]
1351   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1352   --mandir=DIR            man documentation [DATAROOTDIR/man]
1353   --docdir=DIR            documentation root [DATAROOTDIR/doc/tagdemo]
1354   --htmldir=DIR           html documentation [DOCDIR]
1355   --dvidir=DIR            dvi documentation [DOCDIR]
1356   --pdfdir=DIR            pdf documentation [DOCDIR]
1357   --psdir=DIR             ps documentation [DOCDIR]
1358 _ACEOF
1359
1360   cat <<\_ACEOF
1361
1362 Program names:
1363   --program-prefix=PREFIX            prepend PREFIX to installed program names
1364   --program-suffix=SUFFIX            append SUFFIX to installed program names
1365   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1366
1367 System types:
1368   --build=BUILD     configure for building on BUILD [guessed]
1369   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1370   --target=TARGET   configure for building compilers for TARGET [HOST]
1371 _ACEOF
1372 fi
1373
1374 if test -n "$ac_init_help"; then
1375   case $ac_init_help in
1376      short | recursive ) echo "Configuration of tagdemo 1.0:";;
1377    esac
1378   cat <<\_ACEOF
1379
1380 Optional Features:
1381   --disable-option-checking  ignore unrecognized --enable/--with options
1382   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1383   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1384   --disable-dependency-tracking  speeds up one-time build
1385   --enable-dependency-tracking   do not reject slow dependency extractors
1386   --enable-shared[=PKGS]  build shared libraries [default=yes]
1387   --enable-static[=PKGS]  build static libraries [default=yes]
1388   --enable-fast-install[=PKGS]
1389                           optimize for fast installation [default=yes]
1390   --disable-libtool-lock  avoid locking (might break parallel builds)
1391
1392 Optional Packages:
1393   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1394   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1395   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1396                           both]
1397   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1398   --with-sysroot=DIR Search for dependent libraries within DIR
1399                         (or the compiler's sysroot if not specified).
1400
1401 Some influential environment variables:
1402   CC          C compiler command
1403   CFLAGS      C compiler flags
1404   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405               nonstandard directory <lib dir>
1406   LIBS        libraries to pass to the linker, e.g. -l<library>
1407   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408               you have headers in a nonstandard directory <include dir>
1409   CPP         C preprocessor
1410   CXX         C++ compiler command
1411   CXXFLAGS    C++ compiler flags
1412   CXXCPP      C++ preprocessor
1413
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1416
1417 Report bugs to <bug-libtool@gnu.org>.
1418 _ACEOF
1419 ac_status=$?
1420 fi
1421
1422 if test "$ac_init_help" = "recursive"; then
1423   # If there are subdirs, report their specific --help.
1424   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425     test -d "$ac_dir" ||
1426       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427       continue
1428     ac_builddir=.
1429
1430 case "$ac_dir" in
1431 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *)
1433   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434   # A ".." for each directory in $ac_dir_suffix.
1435   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436   case $ac_top_builddir_sub in
1437   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439   esac ;;
1440 esac
1441 ac_abs_top_builddir=$ac_pwd
1442 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443 # for backward compatibility:
1444 ac_top_builddir=$ac_top_build_prefix
1445
1446 case $srcdir in
1447   .)  # We are building in place.
1448     ac_srcdir=.
1449     ac_top_srcdir=$ac_top_builddir_sub
1450     ac_abs_top_srcdir=$ac_pwd ;;
1451   [\\/]* | ?:[\\/]* )  # Absolute name.
1452     ac_srcdir=$srcdir$ac_dir_suffix;
1453     ac_top_srcdir=$srcdir
1454     ac_abs_top_srcdir=$srcdir ;;
1455   *) # Relative name.
1456     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457     ac_top_srcdir=$ac_top_build_prefix$srcdir
1458     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1459 esac
1460 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1461
1462     cd "$ac_dir" || { ac_status=$?; continue; }
1463     # Check for guested configure.
1464     if test -f "$ac_srcdir/configure.gnu"; then
1465       echo &&
1466       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467     elif test -f "$ac_srcdir/configure"; then
1468       echo &&
1469       $SHELL "$ac_srcdir/configure" --help=recursive
1470     else
1471       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1472     fi || ac_status=$?
1473     cd "$ac_pwd" || { ac_status=$?; break; }
1474   done
1475 fi
1476
1477 test -n "$ac_init_help" && exit $ac_status
1478 if $ac_init_version; then
1479   cat <<\_ACEOF
1480 tagdemo configure 1.0
1481 generated by GNU Autoconf 2.68
1482
1483 Copyright (C) 2010 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1486 _ACEOF
1487   exit
1488 fi
1489
1490 ## ------------------------ ##
1491 ## Autoconf initialization. ##
1492 ## ------------------------ ##
1493
1494 # ac_fn_c_try_compile LINENO
1495 # --------------------------
1496 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1497 ac_fn_c_try_compile ()
1498 {
1499   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500   rm -f conftest.$ac_objext
1501   if { { ac_try="$ac_compile"
1502 case "(($ac_try" in
1503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504   *) ac_try_echo=$ac_try;;
1505 esac
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508   (eval "$ac_compile") 2>conftest.err
1509   ac_status=$?
1510   if test -s conftest.err; then
1511     grep -v '^ *+' conftest.err >conftest.er1
1512     cat conftest.er1 >&5
1513     mv -f conftest.er1 conftest.err
1514   fi
1515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516   test $ac_status = 0; } && {
1517          test -z "$ac_c_werror_flag" ||
1518          test ! -s conftest.err
1519        } && test -s conftest.$ac_objext; then :
1520   ac_retval=0
1521 else
1522   $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1524
1525         ac_retval=1
1526 fi
1527   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528   as_fn_set_status $ac_retval
1529
1530 } # ac_fn_c_try_compile
1531
1532 # ac_fn_c_try_cpp LINENO
1533 # ----------------------
1534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_cpp ()
1536 {
1537   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538   if { { ac_try="$ac_cpp conftest.$ac_ext"
1539 case "(($ac_try" in
1540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541   *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1546   ac_status=$?
1547   if test -s conftest.err; then
1548     grep -v '^ *+' conftest.err >conftest.er1
1549     cat conftest.er1 >&5
1550     mv -f conftest.er1 conftest.err
1551   fi
1552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553   test $ac_status = 0; } > conftest.i && {
1554          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1555          test ! -s conftest.err
1556        }; then :
1557   ac_retval=0
1558 else
1559   $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562     ac_retval=1
1563 fi
1564   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565   as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_cpp
1568
1569 # ac_fn_cxx_try_compile LINENO
1570 # ----------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_cxx_try_compile ()
1573 {
1574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575   rm -f conftest.$ac_objext
1576   if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579   *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583   (eval "$ac_compile") 2>conftest.err
1584   ac_status=$?
1585   if test -s conftest.err; then
1586     grep -v '^ *+' conftest.err >conftest.er1
1587     cat conftest.er1 >&5
1588     mv -f conftest.er1 conftest.err
1589   fi
1590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591   test $ac_status = 0; } && {
1592          test -z "$ac_cxx_werror_flag" ||
1593          test ! -s conftest.err
1594        } && test -s conftest.$ac_objext; then :
1595   ac_retval=0
1596 else
1597   $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600         ac_retval=1
1601 fi
1602   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603   as_fn_set_status $ac_retval
1604
1605 } # ac_fn_cxx_try_compile
1606
1607 # ac_fn_cxx_try_cpp LINENO
1608 # ------------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_cxx_try_cpp ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   if { { ac_try="$ac_cpp conftest.$ac_ext"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621   ac_status=$?
1622   if test -s conftest.err; then
1623     grep -v '^ *+' conftest.err >conftest.er1
1624     cat conftest.er1 >&5
1625     mv -f conftest.er1 conftest.err
1626   fi
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; } > conftest.i && {
1629          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1630          test ! -s conftest.err
1631        }; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637     ac_retval=1
1638 fi
1639   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640   as_fn_set_status $ac_retval
1641
1642 } # ac_fn_cxx_try_cpp
1643
1644 # ac_fn_c_try_link LINENO
1645 # -----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_link ()
1648 {
1649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650   rm -f conftest.$ac_objext conftest$ac_exeext
1651   if { { ac_try="$ac_link"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_link") 2>conftest.err
1659   ac_status=$?
1660   if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664   fi
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; } && {
1667          test -z "$ac_c_werror_flag" ||
1668          test ! -s conftest.err
1669        } && test -s conftest$ac_exeext && {
1670          test "$cross_compiling" = yes ||
1671          $as_test_x conftest$ac_exeext
1672        }; then :
1673   ac_retval=0
1674 else
1675   $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678         ac_retval=1
1679 fi
1680   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1681   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1682   # interfere with the next link command; also delete a directory that is
1683   # left behind by Apple's compiler.  We do this before executing the actions.
1684   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686   as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_link
1689
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700   $as_echo_n "(cached) " >&6
1701 else
1702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h.  */
1704 $4
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708   eval "$3=yes"
1709 else
1710   eval "$3=no"
1711 fi
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 fi
1714 eval ac_res=\$$3
1715                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719 } # ac_fn_c_check_header_compile
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731   *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735   (eval "$ac_link") 2>&5
1736   ac_status=$?
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739   { { case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_try") 2>&5
1746   ac_status=$?
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; }; }; then :
1749   ac_retval=0
1750 else
1751   $as_echo "$as_me: program exited with status $ac_status" >&5
1752        $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755        ac_retval=$ac_status
1756 fi
1757   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759   as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_func LINENO FUNC VAR
1764 # ----------------------------------
1765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1766 ac_fn_c_check_func ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772   $as_echo_n "(cached) " >&6
1773 else
1774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h.  */
1776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1778 #define $2 innocuous_$2
1779
1780 /* System header to define __stub macros and hopefully few prototypes,
1781     which can conflict with char $2 (); below.
1782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783     <limits.h> exists even on freestanding compilers.  */
1784
1785 #ifdef __STDC__
1786 # include <limits.h>
1787 #else
1788 # include <assert.h>
1789 #endif
1790
1791 #undef $2
1792
1793 /* Override any GCC internal prototype to avoid an error.
1794    Use char because int might match the return type of a GCC
1795    builtin and then its argument prototype would still apply.  */
1796 #ifdef __cplusplus
1797 extern "C"
1798 #endif
1799 char $2 ();
1800 /* The GNU C library defines this for functions which it implements
1801     to always fail with ENOSYS.  Some functions are actually named
1802     something starting with __ and the normal name is an alias.  */
1803 #if defined __stub_$2 || defined __stub___$2
1804 choke me
1805 #endif
1806
1807 int
1808 main ()
1809 {
1810 return $2 ();
1811   ;
1812   return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_link "$LINENO"; then :
1816   eval "$3=yes"
1817 else
1818   eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext \
1821     conftest$ac_exeext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_c_check_func
1829
1830 # ac_fn_cxx_try_link LINENO
1831 # -------------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_cxx_try_link ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   rm -f conftest.$ac_objext conftest$ac_exeext
1837   if { { ac_try="$ac_link"
1838 case "(($ac_try" in
1839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840   *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844   (eval "$ac_link") 2>conftest.err
1845   ac_status=$?
1846   if test -s conftest.err; then
1847     grep -v '^ *+' conftest.err >conftest.er1
1848     cat conftest.er1 >&5
1849     mv -f conftest.er1 conftest.err
1850   fi
1851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852   test $ac_status = 0; } && {
1853          test -z "$ac_cxx_werror_flag" ||
1854          test ! -s conftest.err
1855        } && test -s conftest$ac_exeext && {
1856          test "$cross_compiling" = yes ||
1857          $as_test_x conftest$ac_exeext
1858        }; then :
1859   ac_retval=0
1860 else
1861   $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864         ac_retval=1
1865 fi
1866   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868   # interfere with the next link command; also delete a directory that is
1869   # left behind by Apple's compiler.  We do this before executing the actions.
1870   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872   as_fn_set_status $ac_retval
1873
1874 } # ac_fn_cxx_try_link
1875 cat >config.log <<_ACEOF
1876 This file contains any messages produced by compilers while
1877 running configure, to aid debugging if configure makes a mistake.
1878
1879 It was created by tagdemo $as_me 1.0, which was
1880 generated by GNU Autoconf 2.68.  Invocation command line was
1881
1882   $ $0 $@
1883
1884 _ACEOF
1885 exec 5>>config.log
1886 {
1887 cat <<_ASUNAME
1888 ## --------- ##
1889 ## Platform. ##
1890 ## --------- ##
1891
1892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897
1898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1900
1901 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1902 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1905 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1906 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1907 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1908
1909 _ASUNAME
1910
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914   IFS=$as_save_IFS
1915   test -z "$as_dir" && as_dir=.
1916     $as_echo "PATH: $as_dir"
1917   done
1918 IFS=$as_save_IFS
1919
1920 } >&5
1921
1922 cat >&5 <<_ACEOF
1923
1924
1925 ## ----------- ##
1926 ## Core tests. ##
1927 ## ----------- ##
1928
1929 _ACEOF
1930
1931
1932 # Keep a trace of the command line.
1933 # Strip out --no-create and --no-recursion so they do not pile up.
1934 # Strip out --silent because we don't want to record it for future runs.
1935 # Also quote any args containing shell meta-characters.
1936 # Make two passes to allow for proper duplicate-argument suppression.
1937 ac_configure_args=
1938 ac_configure_args0=
1939 ac_configure_args1=
1940 ac_must_keep_next=false
1941 for ac_pass in 1 2
1942 do
1943   for ac_arg
1944   do
1945     case $ac_arg in
1946     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1947     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1948     | -silent | --silent | --silen | --sile | --sil)
1949       continue ;;
1950     *\'*)
1951       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1952     esac
1953     case $ac_pass in
1954     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1955     2)
1956       as_fn_append ac_configure_args1 " '$ac_arg'"
1957       if test $ac_must_keep_next = true; then
1958         ac_must_keep_next=false # Got value, back to normal.
1959       else
1960         case $ac_arg in
1961           *=* | --config-cache | -C | -disable-* | --disable-* \
1962           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1963           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1964           | -with-* | --with-* | -without-* | --without-* | --x)
1965             case "$ac_configure_args0 " in
1966               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1967             esac
1968             ;;
1969           -* ) ac_must_keep_next=true ;;
1970         esac
1971       fi
1972       as_fn_append ac_configure_args " '$ac_arg'"
1973       ;;
1974     esac
1975   done
1976 done
1977 { ac_configure_args0=; unset ac_configure_args0;}
1978 { ac_configure_args1=; unset ac_configure_args1;}
1979
1980 # When interrupted or exit'd, cleanup temporary files, and complete
1981 # config.log.  We remove comments because anyway the quotes in there
1982 # would cause problems or look ugly.
1983 # WARNING: Use '\'' to represent an apostrophe within the trap.
1984 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1985 trap 'exit_status=$?
1986   # Save into config.log some information that might help in debugging.
1987   {
1988     echo
1989
1990     $as_echo "## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##"
1993     echo
1994     # The following way of writing the cache mishandles newlines in values,
1995 (
1996   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997     eval ac_val=\$$ac_var
1998     case $ac_val in #(
1999     *${as_nl}*)
2000       case $ac_var in #(
2001       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003       esac
2004       case $ac_var in #(
2005       _ | IFS | as_nl) ;; #(
2006       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007       *) { eval $ac_var=; unset $ac_var;} ;;
2008       esac ;;
2009     esac
2010   done
2011   (set) 2>&1 |
2012     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013     *${as_nl}ac_space=\ *)
2014       sed -n \
2015         "s/'\''/'\''\\\\'\'''\''/g;
2016           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017       ;; #(
2018     *)
2019       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2020       ;;
2021     esac |
2022     sort
2023 )
2024     echo
2025
2026     $as_echo "## ----------------- ##
2027 ## Output variables. ##
2028 ## ----------------- ##"
2029     echo
2030     for ac_var in $ac_subst_vars
2031     do
2032       eval ac_val=\$$ac_var
2033       case $ac_val in
2034       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035       esac
2036       $as_echo "$ac_var='\''$ac_val'\''"
2037     done | sort
2038     echo
2039
2040     if test -n "$ac_subst_files"; then
2041       $as_echo "## ------------------- ##
2042 ## File substitutions. ##
2043 ## ------------------- ##"
2044       echo
2045       for ac_var in $ac_subst_files
2046       do
2047         eval ac_val=\$$ac_var
2048         case $ac_val in
2049         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050         esac
2051         $as_echo "$ac_var='\''$ac_val'\''"
2052       done | sort
2053       echo
2054     fi
2055
2056     if test -s confdefs.h; then
2057       $as_echo "## ----------- ##
2058 ## confdefs.h. ##
2059 ## ----------- ##"
2060       echo
2061       cat confdefs.h
2062       echo
2063     fi
2064     test "$ac_signal" != 0 &&
2065       $as_echo "$as_me: caught signal $ac_signal"
2066     $as_echo "$as_me: exit $exit_status"
2067   } >&5
2068   rm -f core *.core core.conftest.* &&
2069     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2070     exit $exit_status
2071 ' 0
2072 for ac_signal in 1 2 13 15; do
2073   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2074 done
2075 ac_signal=0
2076
2077 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2078 rm -f -r conftest* confdefs.h
2079
2080 $as_echo "/* confdefs.h */" > confdefs.h
2081
2082 # Predefined preprocessor variables.
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_NAME "$PACKAGE_NAME"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_STRING "$PACKAGE_STRING"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_URL "$PACKAGE_URL"
2106 _ACEOF
2107
2108
2109 # Let the site file select an alternate cache file if it wants to.
2110 # Prefer an explicitly selected file to automatically selected ones.
2111 ac_site_file1=NONE
2112 ac_site_file2=NONE
2113 if test -n "$CONFIG_SITE"; then
2114   # We do not want a PATH search for config.site.
2115   case $CONFIG_SITE in #((
2116     -*)  ac_site_file1=./$CONFIG_SITE;;
2117     */*) ac_site_file1=$CONFIG_SITE;;
2118     *)   ac_site_file1=./$CONFIG_SITE;;
2119   esac
2120 elif test "x$prefix" != xNONE; then
2121   ac_site_file1=$prefix/share/config.site
2122   ac_site_file2=$prefix/etc/config.site
2123 else
2124   ac_site_file1=$ac_default_prefix/share/config.site
2125   ac_site_file2=$ac_default_prefix/etc/config.site
2126 fi
2127 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2128 do
2129   test "x$ac_site_file" = xNONE && continue
2130   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2131     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2132 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2133     sed 's/^/| /' "$ac_site_file" >&5
2134     . "$ac_site_file" \
2135       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137 as_fn_error $? "failed to load site script $ac_site_file
2138 See \`config.log' for more details" "$LINENO" 5; }
2139   fi
2140 done
2141
2142 if test -r "$cache_file"; then
2143   # Some versions of bash will fail to source /dev/null (special files
2144   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2145   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2146     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2147 $as_echo "$as_me: loading cache $cache_file" >&6;}
2148     case $cache_file in
2149       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2150       *)                      . "./$cache_file";;
2151     esac
2152   fi
2153 else
2154   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2155 $as_echo "$as_me: creating cache $cache_file" >&6;}
2156   >$cache_file
2157 fi
2158
2159 # Check that the precious variables saved in the cache have kept the same
2160 # value.
2161 ac_cache_corrupted=false
2162 for ac_var in $ac_precious_vars; do
2163   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2164   eval ac_new_set=\$ac_env_${ac_var}_set
2165   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2166   eval ac_new_val=\$ac_env_${ac_var}_value
2167   case $ac_old_set,$ac_new_set in
2168     set,)
2169       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2171       ac_cache_corrupted=: ;;
2172     ,set)
2173       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2175       ac_cache_corrupted=: ;;
2176     ,);;
2177     *)
2178       if test "x$ac_old_val" != "x$ac_new_val"; then
2179         # differences in whitespace do not lead to failure.
2180         ac_old_val_w=`echo x $ac_old_val`
2181         ac_new_val_w=`echo x $ac_new_val`
2182         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2183           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2184 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2185           ac_cache_corrupted=:
2186         else
2187           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2188 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2189           eval $ac_var=\$ac_old_val
2190         fi
2191         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2192 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2193         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2194 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2195       fi;;
2196   esac
2197   # Pass precious variables to config.status.
2198   if test "$ac_new_set" = set; then
2199     case $ac_new_val in
2200     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2201     *) ac_arg=$ac_var=$ac_new_val ;;
2202     esac
2203     case " $ac_configure_args " in
2204       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2205       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2206     esac
2207   fi
2208 done
2209 if $ac_cache_corrupted; then
2210   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2213 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2214   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2215 fi
2216 ## -------------------- ##
2217 ## Main body of script. ##
2218 ## -------------------- ##
2219
2220 ac_ext=c
2221 ac_cpp='$CPP $CPPFLAGS'
2222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225
2226
2227
2228 ac_aux_dir=
2229 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2230   if test -f "$ac_dir/install-sh"; then
2231     ac_aux_dir=$ac_dir
2232     ac_install_sh="$ac_aux_dir/install-sh -c"
2233     break
2234   elif test -f "$ac_dir/install.sh"; then
2235     ac_aux_dir=$ac_dir
2236     ac_install_sh="$ac_aux_dir/install.sh -c"
2237     break
2238   elif test -f "$ac_dir/shtool"; then
2239     ac_aux_dir=$ac_dir
2240     ac_install_sh="$ac_aux_dir/shtool install -c"
2241     break
2242   fi
2243 done
2244 if test -z "$ac_aux_dir"; then
2245   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2246 fi
2247
2248 # These three variables are undocumented and unsupported,
2249 # and are intended to be withdrawn in a future Autoconf release.
2250 # They can cause serious problems if a builder's source tree is in a directory
2251 # whose full name contains unusual characters.
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2254 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2255
2256
2257
2258 # Make sure we can run config.sub.
2259 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2260   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2261
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2263 $as_echo_n "checking build system type... " >&6; }
2264 if ${ac_cv_build+:} false; then :
2265   $as_echo_n "(cached) " >&6
2266 else
2267   ac_build_alias=$build_alias
2268 test "x$ac_build_alias" = x &&
2269   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2270 test "x$ac_build_alias" = x &&
2271   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2272 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2273   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2274
2275 fi
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2277 $as_echo "$ac_cv_build" >&6; }
2278 case $ac_cv_build in
2279 *-*-*) ;;
2280 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2281 esac
2282 build=$ac_cv_build
2283 ac_save_IFS=$IFS; IFS='-'
2284 set x $ac_cv_build
2285 shift
2286 build_cpu=$1
2287 build_vendor=$2
2288 shift; shift
2289 # Remember, the first character of IFS is used to create $*,
2290 # except with old shells:
2291 build_os=$*
2292 IFS=$ac_save_IFS
2293 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2294
2295
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2297 $as_echo_n "checking host system type... " >&6; }
2298 if ${ac_cv_host+:} false; then :
2299   $as_echo_n "(cached) " >&6
2300 else
2301   if test "x$host_alias" = x; then
2302   ac_cv_host=$ac_cv_build
2303 else
2304   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2305     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2306 fi
2307
2308 fi
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2310 $as_echo "$ac_cv_host" >&6; }
2311 case $ac_cv_host in
2312 *-*-*) ;;
2313 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2314 esac
2315 host=$ac_cv_host
2316 ac_save_IFS=$IFS; IFS='-'
2317 set x $ac_cv_host
2318 shift
2319 host_cpu=$1
2320 host_vendor=$2
2321 shift; shift
2322 # Remember, the first character of IFS is used to create $*,
2323 # except with old shells:
2324 host_os=$*
2325 IFS=$ac_save_IFS
2326 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2327
2328
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2330 $as_echo_n "checking target system type... " >&6; }
2331 if ${ac_cv_target+:} false; then :
2332   $as_echo_n "(cached) " >&6
2333 else
2334   if test "x$target_alias" = x; then
2335   ac_cv_target=$ac_cv_host
2336 else
2337   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2338     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2339 fi
2340
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2343 $as_echo "$ac_cv_target" >&6; }
2344 case $ac_cv_target in
2345 *-*-*) ;;
2346 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2347 esac
2348 target=$ac_cv_target
2349 ac_save_IFS=$IFS; IFS='-'
2350 set x $ac_cv_target
2351 shift
2352 target_cpu=$1
2353 target_vendor=$2
2354 shift; shift
2355 # Remember, the first character of IFS is used to create $*,
2356 # except with old shells:
2357 target_os=$*
2358 IFS=$ac_save_IFS
2359 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2360
2361
2362 # The aliases save the names the user supplied, while $host etc.
2363 # will get canonicalized.
2364 test -n "$target_alias" &&
2365   test "$program_prefix$program_suffix$program_transform_name" = \
2366     NONENONEs,x,x, &&
2367   program_prefix=${target_alias}-
2368
2369
2370 ## ------------------------ ##
2371 ## Automake Initialisation. ##
2372 ## ------------------------ ##
2373 am__api_version='1.11'
2374
2375 # Find a good install program.  We prefer a C program (faster),
2376 # so one script is as good as another.  But avoid the broken or
2377 # incompatible versions:
2378 # SysV /etc/install, /usr/sbin/install
2379 # SunOS /usr/etc/install
2380 # IRIX /sbin/install
2381 # AIX /bin/install
2382 # AmigaOS /C/install, which installs bootblocks on floppy discs
2383 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2384 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2385 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2386 # OS/2's system install, which has a completely different semantic
2387 # ./install, which can be erroneously created by make from ./install.sh.
2388 # Reject install programs that cannot install multiple files.
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2390 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2391 if test -z "$INSTALL"; then
2392 if ${ac_cv_path_install+:} false; then :
2393   $as_echo_n "(cached) " >&6
2394 else
2395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400     # Account for people who put trailing slashes in PATH elements.
2401 case $as_dir/ in #((
2402   ./ | .// | /[cC]/* | \
2403   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2404   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2405   /usr/ucb/* ) ;;
2406   *)
2407     # OSF1 and SCO ODT 3.0 have their own names for install.
2408     # Don't use installbsd from OSF since it installs stuff as root
2409     # by default.
2410     for ac_prog in ginstall scoinst install; do
2411       for ac_exec_ext in '' $ac_executable_extensions; do
2412         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2413           if test $ac_prog = install &&
2414             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415             # AIX install.  It has an incompatible calling convention.
2416             :
2417           elif test $ac_prog = install &&
2418             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419             # program-specific install script used by HP pwplus--don't use.
2420             :
2421           else
2422             rm -rf conftest.one conftest.two conftest.dir
2423             echo one > conftest.one
2424             echo two > conftest.two
2425             mkdir conftest.dir
2426             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2427               test -s conftest.one && test -s conftest.two &&
2428               test -s conftest.dir/conftest.one &&
2429               test -s conftest.dir/conftest.two
2430             then
2431               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2432               break 3
2433             fi
2434           fi
2435         fi
2436       done
2437     done
2438     ;;
2439 esac
2440
2441   done
2442 IFS=$as_save_IFS
2443
2444 rm -rf conftest.one conftest.two conftest.dir
2445
2446 fi
2447   if test "${ac_cv_path_install+set}" = set; then
2448     INSTALL=$ac_cv_path_install
2449   else
2450     # As a last resort, use the slow shell script.  Don't cache a
2451     # value for INSTALL within a source directory, because that will
2452     # break other packages using the cache if that directory is
2453     # removed, or if the value is a relative name.
2454     INSTALL=$ac_install_sh
2455   fi
2456 fi
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2458 $as_echo "$INSTALL" >&6; }
2459
2460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2461 # It thinks the first close brace ends the variable substitution.
2462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2463
2464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2465
2466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2467
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2469 $as_echo_n "checking whether build environment is sane... " >&6; }
2470 # Just in case
2471 sleep 1
2472 echo timestamp > conftest.file
2473 # Reject unsafe characters in $srcdir or the absolute working directory
2474 # name.  Accept space and tab only in the latter.
2475 am_lf='
2476 '
2477 case `pwd` in
2478   *[\\\"\#\$\&\'\`$am_lf]*)
2479     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2480 esac
2481 case $srcdir in
2482   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2483     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2484 esac
2485
2486 # Do `set' in a subshell so we don't clobber the current shell's
2487 # arguments.  Must try -L first in case configure is actually a
2488 # symlink; some systems play weird games with the mod time of symlinks
2489 # (eg FreeBSD returns the mod time of the symlink's containing
2490 # directory).
2491 if (
2492    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2493    if test "$*" = "X"; then
2494       # -L didn't work.
2495       set X `ls -t "$srcdir/configure" conftest.file`
2496    fi
2497    rm -f conftest.file
2498    if test "$*" != "X $srcdir/configure conftest.file" \
2499       && test "$*" != "X conftest.file $srcdir/configure"; then
2500
2501       # If neither matched, then we have a broken ls.  This can happen
2502       # if, for instance, CONFIG_SHELL is bash and it inherits a
2503       # broken ls alias from the environment.  This has actually
2504       # happened.  Such a system could not be considered "sane".
2505       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2506 alias in your environment" "$LINENO" 5
2507    fi
2508
2509    test "$2" = conftest.file
2510    )
2511 then
2512    # Ok.
2513    :
2514 else
2515    as_fn_error $? "newly created file is older than distributed files!
2516 Check your system clock" "$LINENO" 5
2517 fi
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2519 $as_echo "yes" >&6; }
2520 test "$program_prefix" != NONE &&
2521   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522 # Use a double $ so make ignores it.
2523 test "$program_suffix" != NONE &&
2524   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525 # Double any \ or $.
2526 # By default was `s,x,x', remove it if useless.
2527 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2529
2530 # expand $ac_aux_dir to an absolute path
2531 am_aux_dir=`cd $ac_aux_dir && pwd`
2532
2533 if test x"${MISSING+set}" != xset; then
2534   case $am_aux_dir in
2535   *\ * | *\     *)
2536     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2537   *)
2538     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2539   esac
2540 fi
2541 # Use eval to expand $SHELL
2542 if eval "$MISSING --run true"; then
2543   am_missing_run="$MISSING --run "
2544 else
2545   am_missing_run=
2546   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2547 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2548 fi
2549
2550 if test x"${install_sh}" != xset; then
2551   case $am_aux_dir in
2552   *\ * | *\     *)
2553     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2554   *)
2555     install_sh="\${SHELL} $am_aux_dir/install-sh"
2556   esac
2557 fi
2558
2559 # Installed binaries are usually stripped using `strip' when the user
2560 # run `make install-strip'.  However `strip' might not be the right
2561 # tool to use in cross-compilation environments, therefore Automake
2562 # will honor the `STRIP' environment variable to overrule this program.
2563 if test "$cross_compiling" != no; then
2564   if test -n "$ac_tool_prefix"; then
2565   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566 set dummy ${ac_tool_prefix}strip; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if ${ac_cv_prog_STRIP+:} false; then :
2570   $as_echo_n "(cached) " >&6
2571 else
2572   if test -n "$STRIP"; then
2573   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578   IFS=$as_save_IFS
2579   test -z "$as_dir" && as_dir=.
2580     for ac_exec_ext in '' $ac_executable_extensions; do
2581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584     break 2
2585   fi
2586 done
2587   done
2588 IFS=$as_save_IFS
2589
2590 fi
2591 fi
2592 STRIP=$ac_cv_prog_STRIP
2593 if test -n "$STRIP"; then
2594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2595 $as_echo "$STRIP" >&6; }
2596 else
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2600
2601
2602 fi
2603 if test -z "$ac_cv_prog_STRIP"; then
2604   ac_ct_STRIP=$STRIP
2605   # Extract the first word of "strip", so it can be a program name with args.
2606 set dummy strip; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2610   $as_echo_n "(cached) " >&6
2611 else
2612   if test -n "$ac_ct_STRIP"; then
2613   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620     for ac_exec_ext in '' $ac_executable_extensions; do
2621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622     ac_cv_prog_ac_ct_STRIP="strip"
2623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627   done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633 if test -n "$ac_ct_STRIP"; then
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2635 $as_echo "$ac_ct_STRIP" >&6; }
2636 else
2637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2639 fi
2640
2641   if test "x$ac_ct_STRIP" = x; then
2642     STRIP=":"
2643   else
2644     case $cross_compiling:$ac_tool_warned in
2645 yes:)
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648 ac_tool_warned=yes ;;
2649 esac
2650     STRIP=$ac_ct_STRIP
2651   fi
2652 else
2653   STRIP="$ac_cv_prog_STRIP"
2654 fi
2655
2656 fi
2657 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2660 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2661 if test -z "$MKDIR_P"; then
2662   if ${ac_cv_path_mkdir+:} false; then :
2663   $as_echo_n "(cached) " >&6
2664 else
2665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2667 do
2668   IFS=$as_save_IFS
2669   test -z "$as_dir" && as_dir=.
2670     for ac_prog in mkdir gmkdir; do
2671          for ac_exec_ext in '' $ac_executable_extensions; do
2672            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2673            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2674              'mkdir (GNU coreutils) '* | \
2675              'mkdir (coreutils) '* | \
2676              'mkdir (fileutils) '4.1*)
2677                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2678                break 3;;
2679            esac
2680          done
2681        done
2682   done
2683 IFS=$as_save_IFS
2684
2685 fi
2686
2687   test -d ./--version && rmdir ./--version
2688   if test "${ac_cv_path_mkdir+set}" = set; then
2689     MKDIR_P="$ac_cv_path_mkdir -p"
2690   else
2691     # As a last resort, use the slow shell script.  Don't cache a
2692     # value for MKDIR_P within a source directory, because that will
2693     # break other packages using the cache if that directory is
2694     # removed, or if the value is a relative name.
2695     MKDIR_P="$ac_install_sh -d"
2696   fi
2697 fi
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2699 $as_echo "$MKDIR_P" >&6; }
2700
2701 mkdir_p="$MKDIR_P"
2702 case $mkdir_p in
2703   [\\/$]* | ?:[\\/]*) ;;
2704   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2705 esac
2706
2707 for ac_prog in gawk mawk nawk awk
2708 do
2709   # Extract the first word of "$ac_prog", so it can be a program name with args.
2710 set dummy $ac_prog; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_AWK+:} false; then :
2714   $as_echo_n "(cached) " >&6
2715 else
2716   if test -n "$AWK"; then
2717   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722   IFS=$as_save_IFS
2723   test -z "$as_dir" && as_dir=.
2724     for ac_exec_ext in '' $ac_executable_extensions; do
2725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726     ac_cv_prog_AWK="$ac_prog"
2727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728     break 2
2729   fi
2730 done
2731   done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 AWK=$ac_cv_prog_AWK
2737 if test -n "$AWK"; then
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739 $as_echo "$AWK" >&6; }
2740 else
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745
2746   test -n "$AWK" && break
2747 done
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2750 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2751 set x ${MAKE-make}
2752 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2753 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2754   $as_echo_n "(cached) " >&6
2755 else
2756   cat >conftest.make <<\_ACEOF
2757 SHELL = /bin/sh
2758 all:
2759         @echo '@@@%%%=$(MAKE)=@@@%%%'
2760 _ACEOF
2761 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2762 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2763   *@@@%%%=?*=@@@%%%*)
2764     eval ac_cv_prog_make_${ac_make}_set=yes;;
2765   *)
2766     eval ac_cv_prog_make_${ac_make}_set=no;;
2767 esac
2768 rm -f conftest.make
2769 fi
2770 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 $as_echo "yes" >&6; }
2773   SET_MAKE=
2774 else
2775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777   SET_MAKE="MAKE=${MAKE-make}"
2778 fi
2779
2780 rm -rf .tst 2>/dev/null
2781 mkdir .tst 2>/dev/null
2782 if test -d .tst; then
2783   am__leading_dot=.
2784 else
2785   am__leading_dot=_
2786 fi
2787 rmdir .tst 2>/dev/null
2788
2789 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2790   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2791   # is not polluted with repeated "-I."
2792   am__isrc=' -I$(srcdir)'
2793   # test to see if srcdir already configured
2794   if test -f $srcdir/config.status; then
2795     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2796   fi
2797 fi
2798
2799 # test whether we have cygpath
2800 if test -z "$CYGPATH_W"; then
2801   if (cygpath --version) >/dev/null 2>/dev/null; then
2802     CYGPATH_W='cygpath -w'
2803   else
2804     CYGPATH_W=echo
2805   fi
2806 fi
2807
2808
2809 # Define the identity of the package.
2810  PACKAGE='tagdemo'
2811  VERSION='1.0'
2812
2813
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE "$PACKAGE"
2816 _ACEOF
2817
2818
2819 cat >>confdefs.h <<_ACEOF
2820 #define VERSION "$VERSION"
2821 _ACEOF
2822
2823 # Some tools Automake needs.
2824
2825 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2826
2827
2828 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2829
2830
2831 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2832
2833
2834 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2835
2836
2837 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2838
2839 # We need awk for the "check" target.  The system "awk" is bad on
2840 # some platforms.
2841 # Always define AMTAR for backward compatibility.
2842
2843 AMTAR=${AMTAR-"${am_missing_run}tar"}
2844
2845 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2846
2847
2848
2849
2850
2851
2852
2853 ## ---------------- ##
2854 ## Compiler checks. ##
2855 ## ---------------- ##
2856 ac_ext=c
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861 if test -n "$ac_tool_prefix"; then
2862   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_CC+:} false; then :
2867   $as_echo_n "(cached) " >&6
2868 else
2869   if test -n "$CC"; then
2870   ac_cv_prog_CC="$CC" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875   IFS=$as_save_IFS
2876   test -z "$as_dir" && as_dir=.
2877     for ac_exec_ext in '' $ac_executable_extensions; do
2878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881     break 2
2882   fi
2883 done
2884   done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 CC=$ac_cv_prog_CC
2890 if test -n "$CC"; then
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2893 else
2894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898
2899 fi
2900 if test -z "$ac_cv_prog_CC"; then
2901   ac_ct_CC=$CC
2902   # Extract the first word of "gcc", so it can be a program name with args.
2903 set dummy gcc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   if test -n "$ac_ct_CC"; then
2910   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915   IFS=$as_save_IFS
2916   test -z "$as_dir" && as_dir=.
2917     for ac_exec_ext in '' $ac_executable_extensions; do
2918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919     ac_cv_prog_ac_ct_CC="gcc"
2920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921     break 2
2922   fi
2923 done
2924   done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2930 if test -n "$ac_ct_CC"; then
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2932 $as_echo "$ac_ct_CC" >&6; }
2933 else
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938   if test "x$ac_ct_CC" = x; then
2939     CC=""
2940   else
2941     case $cross_compiling:$ac_tool_warned in
2942 yes:)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2946 esac
2947     CC=$ac_ct_CC
2948   fi
2949 else
2950   CC="$ac_cv_prog_CC"
2951 fi
2952
2953 if test -z "$CC"; then
2954           if test -n "$ac_tool_prefix"; then
2955     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}cc; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_CC+:} false; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   if test -n "$CC"; then
2963   ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968   IFS=$as_save_IFS
2969   test -z "$as_dir" && as_dir=.
2970     for ac_exec_ext in '' $ac_executable_extensions; do
2971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972     ac_cv_prog_CC="${ac_tool_prefix}cc"
2973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974     break 2
2975   fi
2976 done
2977   done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 CC=$ac_cv_prog_CC
2983 if test -n "$CC"; then
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985 $as_echo "$CC" >&6; }
2986 else
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992   fi
2993 fi
2994 if test -z "$CC"; then
2995   # Extract the first word of "cc", so it can be a program name with args.
2996 set dummy cc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_CC+:} false; then :
3000   $as_echo_n "(cached) " >&6
3001 else
3002   if test -n "$CC"; then
3003   ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005   ac_prog_rejected=no
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011     for ac_exec_ext in '' $ac_executable_extensions; do
3012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3014        ac_prog_rejected=yes
3015        continue
3016      fi
3017     ac_cv_prog_CC="cc"
3018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022   done
3023 IFS=$as_save_IFS
3024
3025 if test $ac_prog_rejected = yes; then
3026   # We found a bogon in the path, so make sure we never use it.
3027   set dummy $ac_cv_prog_CC
3028   shift
3029   if test $# != 0; then
3030     # We chose a different compiler from the bogus one.
3031     # However, it has the same basename, so the bogon will be chosen
3032     # first if we set CC to just the basename; use the full file name.
3033     shift
3034     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3035   fi
3036 fi
3037 fi
3038 fi
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 $as_echo "$CC" >&6; }
3043 else
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048
3049 fi
3050 if test -z "$CC"; then
3051   if test -n "$ac_tool_prefix"; then
3052   for ac_prog in cl.exe
3053   do
3054     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_CC+:} false; then :
3059   $as_echo_n "(cached) " >&6
3060 else
3061   if test -n "$CC"; then
3062   ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069     for ac_exec_ext in '' $ac_executable_extensions; do
3070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073     break 2
3074   fi
3075 done
3076   done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3089
3090
3091     test -n "$CC" && break
3092   done
3093 fi
3094 if test -z "$CC"; then
3095   ac_ct_CC=$CC
3096   for ac_prog in cl.exe
3097 do
3098   # Extract the first word of "$ac_prog", so it can be a program name with args.
3099 set dummy $ac_prog; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3103   $as_echo_n "(cached) " >&6
3104 else
3105   if test -n "$ac_ct_CC"; then
3106   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113     for ac_exec_ext in '' $ac_executable_extensions; do
3114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115     ac_cv_prog_ac_ct_CC="$ac_prog"
3116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117     break 2
3118   fi
3119 done
3120   done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3126 if test -n "$ac_ct_CC"; then
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3128 $as_echo "$ac_ct_CC" >&6; }
3129 else
3130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 fi
3133
3134
3135   test -n "$ac_ct_CC" && break
3136 done
3137
3138   if test "x$ac_ct_CC" = x; then
3139     CC=""
3140   else
3141     case $cross_compiling:$ac_tool_warned in
3142 yes:)
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3145 ac_tool_warned=yes ;;
3146 esac
3147     CC=$ac_ct_CC
3148   fi
3149 fi
3150
3151 fi
3152
3153
3154 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error $? "no acceptable C compiler found in \$PATH
3157 See \`config.log' for more details" "$LINENO" 5; }
3158
3159 # Provide some information about the compiler.
3160 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3161 set X $ac_compile
3162 ac_compiler=$2
3163 for ac_option in --version -v -V -qversion; do
3164   { { ac_try="$ac_compiler $ac_option >&5"
3165 case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3172   ac_status=$?
3173   if test -s conftest.err; then
3174     sed '10a\
3175 ... rest of stderr output deleted ...
3176          10q' conftest.err >conftest.er1
3177     cat conftest.er1 >&5
3178   fi
3179   rm -f conftest.er1 conftest.err
3180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181   test $ac_status = 0; }
3182 done
3183
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h.  */
3186
3187 int
3188 main ()
3189 {
3190
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 ac_clean_files_save=$ac_clean_files
3196 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3197 # Try to create an executable without -o first, disregard a.out.
3198 # It will help us diagnose broken compilers, and finding out an intuition
3199 # of exeext.
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3201 $as_echo_n "checking whether the C compiler works... " >&6; }
3202 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3203
3204 # The possible output files:
3205 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3206
3207 ac_rmfiles=
3208 for ac_file in $ac_files
3209 do
3210   case $ac_file in
3211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3212     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3213   esac
3214 done
3215 rm -f $ac_rmfiles
3216
3217 if { { ac_try="$ac_link_default"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224   (eval "$ac_link_default") 2>&5
3225   ac_status=$?
3226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227   test $ac_status = 0; }; then :
3228   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3229 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3230 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3231 # so that the user can short-circuit this test for compilers unknown to
3232 # Autoconf.
3233 for ac_file in $ac_files ''
3234 do
3235   test -f "$ac_file" || continue
3236   case $ac_file in
3237     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3238         ;;
3239     [ab].out )
3240         # We found the default executable, but exeext='' is most
3241         # certainly right.
3242         break;;
3243     *.* )
3244         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3245         then :; else
3246            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247         fi
3248         # We set ac_cv_exeext here because the later test for it is not
3249         # safe: cross compilers may not add the suffix if given an `-o'
3250         # argument, so we may need to know it at that point already.
3251         # Even if this section looks crufty: it has the advantage of
3252         # actually working.
3253         break;;
3254     * )
3255         break;;
3256   esac
3257 done
3258 test "$ac_cv_exeext" = no && ac_cv_exeext=
3259
3260 else
3261   ac_file=''
3262 fi
3263 if test -z "$ac_file"; then :
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 $as_echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 as_fn_error 77 "C compiler cannot create executables
3272 See \`config.log' for more details" "$LINENO" 5; }
3273 else
3274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3276 fi
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3278 $as_echo_n "checking for C compiler default output file name... " >&6; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3280 $as_echo "$ac_file" >&6; }
3281 ac_exeext=$ac_cv_exeext
3282
3283 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3284 ac_clean_files=$ac_clean_files_save
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3286 $as_echo_n "checking for suffix of executables... " >&6; }
3287 if { { ac_try="$ac_link"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294   (eval "$ac_link") 2>&5
3295   ac_status=$?
3296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297   test $ac_status = 0; }; then :
3298   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3299 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3300 # work properly (i.e., refer to `conftest.exe'), while it won't with
3301 # `rm'.
3302 for ac_file in conftest.exe conftest conftest.*; do
3303   test -f "$ac_file" || continue
3304   case $ac_file in
3305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307           break;;
3308     * ) break;;
3309   esac
3310 done
3311 else
3312   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3315 See \`config.log' for more details" "$LINENO" 5; }
3316 fi
3317 rm -f conftest conftest$ac_cv_exeext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3319 $as_echo "$ac_cv_exeext" >&6; }
3320
3321 rm -f conftest.$ac_ext
3322 EXEEXT=$ac_cv_exeext
3323 ac_exeext=$EXEEXT
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h.  */
3326 #include <stdio.h>
3327 int
3328 main ()
3329 {
3330 FILE *f = fopen ("conftest.out", "w");
3331  return ferror (f) || fclose (f) != 0;
3332
3333   ;
3334   return 0;
3335 }
3336 _ACEOF
3337 ac_clean_files="$ac_clean_files conftest.out"
3338 # Check that the compiler produces executables we can run.  If not, either
3339 # the compiler is broken, or we cross compile.
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3341 $as_echo_n "checking whether we are cross compiling... " >&6; }
3342 if test "$cross_compiling" != yes; then
3343   { { ac_try="$ac_link"
3344 case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350   (eval "$ac_link") 2>&5
3351   ac_status=$?
3352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353   test $ac_status = 0; }
3354   if { ac_try='./conftest$ac_cv_exeext'
3355   { { case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361   (eval "$ac_try") 2>&5
3362   ac_status=$?
3363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364   test $ac_status = 0; }; }; then
3365     cross_compiling=no
3366   else
3367     if test "$cross_compiling" = maybe; then
3368         cross_compiling=yes
3369     else
3370         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "cannot run C compiled programs.
3373 If you meant to cross compile, use \`--host'.
3374 See \`config.log' for more details" "$LINENO" 5; }
3375     fi
3376   fi
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3379 $as_echo "$cross_compiling" >&6; }
3380
3381 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3382 ac_clean_files=$ac_clean_files_save
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3384 $as_echo_n "checking for suffix of object files... " >&6; }
3385 if ${ac_cv_objext+:} false; then :
3386   $as_echo_n "(cached) " >&6
3387 else
3388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h.  */
3390
3391 int
3392 main ()
3393 {
3394
3395   ;
3396   return 0;
3397 }
3398 _ACEOF
3399 rm -f conftest.o conftest.obj
3400 if { { ac_try="$ac_compile"
3401 case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407   (eval "$ac_compile") 2>&5
3408   ac_status=$?
3409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410   test $ac_status = 0; }; then :
3411   for ac_file in conftest.o conftest.obj conftest.*; do
3412   test -f "$ac_file" || continue;
3413   case $ac_file in
3414     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3415     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3416        break;;
3417   esac
3418 done
3419 else
3420   $as_echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error $? "cannot compute suffix of object files: cannot compile
3426 See \`config.log' for more details" "$LINENO" 5; }
3427 fi
3428 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3431 $as_echo "$ac_cv_objext" >&6; }
3432 OBJEXT=$ac_cv_objext
3433 ac_objext=$OBJEXT
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3435 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3436 if ${ac_cv_c_compiler_gnu+:} false; then :
3437   $as_echo_n "(cached) " >&6
3438 else
3439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h.  */
3441
3442 int
3443 main ()
3444 {
3445 #ifndef __GNUC__
3446        choke me
3447 #endif
3448
3449   ;
3450   return 0;
3451 }
3452 _ACEOF
3453 if ac_fn_c_try_compile "$LINENO"; then :
3454   ac_compiler_gnu=yes
3455 else
3456   ac_compiler_gnu=no
3457 fi
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3460
3461 fi
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3463 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3464 if test $ac_compiler_gnu = yes; then
3465   GCC=yes
3466 else
3467   GCC=
3468 fi
3469 ac_test_CFLAGS=${CFLAGS+set}
3470 ac_save_CFLAGS=$CFLAGS
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3472 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3473 if ${ac_cv_prog_cc_g+:} false; then :
3474   $as_echo_n "(cached) " >&6
3475 else
3476   ac_save_c_werror_flag=$ac_c_werror_flag
3477    ac_c_werror_flag=yes
3478    ac_cv_prog_cc_g=no
3479    CFLAGS="-g"
3480    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h.  */
3482
3483 int
3484 main ()
3485 {
3486
3487   ;
3488   return 0;
3489 }
3490 _ACEOF
3491 if ac_fn_c_try_compile "$LINENO"; then :
3492   ac_cv_prog_cc_g=yes
3493 else
3494   CFLAGS=""
3495       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h.  */
3497
3498 int
3499 main ()
3500 {
3501
3502   ;
3503   return 0;
3504 }
3505 _ACEOF
3506 if ac_fn_c_try_compile "$LINENO"; then :
3507
3508 else
3509   ac_c_werror_flag=$ac_save_c_werror_flag
3510          CFLAGS="-g"
3511          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h.  */
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523   ac_cv_prog_cc_g=yes
3524 fi
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 fi
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 fi
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530    ac_c_werror_flag=$ac_save_c_werror_flag
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3533 $as_echo "$ac_cv_prog_cc_g" >&6; }
3534 if test "$ac_test_CFLAGS" = set; then
3535   CFLAGS=$ac_save_CFLAGS
3536 elif test $ac_cv_prog_cc_g = yes; then
3537   if test "$GCC" = yes; then
3538     CFLAGS="-g -O2"
3539   else
3540     CFLAGS="-g"
3541   fi
3542 else
3543   if test "$GCC" = yes; then
3544     CFLAGS="-O2"
3545   else
3546     CFLAGS=
3547   fi
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3550 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3551 if ${ac_cv_prog_cc_c89+:} false; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   ac_cv_prog_cc_c89=no
3555 ac_save_CC=$CC
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h.  */
3558 #include <stdarg.h>
3559 #include <stdio.h>
3560 #include <sys/types.h>
3561 #include <sys/stat.h>
3562 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3563 struct buf { int x; };
3564 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3565 static char *e (p, i)
3566      char **p;
3567      int i;
3568 {
3569   return p[i];
3570 }
3571 static char *f (char * (*g) (char **, int), char **p, ...)
3572 {
3573   char *s;
3574   va_list v;
3575   va_start (v,p);
3576   s = g (p, va_arg (v,int));
3577   va_end (v);
3578   return s;
3579 }
3580
3581 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3582    function prototypes and stuff, but not '\xHH' hex character constants.
3583    These don't provoke an error unfortunately, instead are silently treated
3584    as 'x'.  The following induces an error, until -std is added to get
3585    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3586    array size at least.  It's necessary to write '\x00'==0 to get something
3587    that's true only with -std.  */
3588 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3589
3590 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3591    inside strings and character constants.  */
3592 #define FOO(x) 'x'
3593 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3594
3595 int test (int i, double x);
3596 struct s1 {int (*f) (int a);};
3597 struct s2 {int (*f) (double a);};
3598 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3599 int argc;
3600 char **argv;
3601 int
3602 main ()
3603 {
3604 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3605   ;
3606   return 0;
3607 }
3608 _ACEOF
3609 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3610         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3611 do
3612   CC="$ac_save_CC $ac_arg"
3613   if ac_fn_c_try_compile "$LINENO"; then :
3614   ac_cv_prog_cc_c89=$ac_arg
3615 fi
3616 rm -f core conftest.err conftest.$ac_objext
3617   test "x$ac_cv_prog_cc_c89" != "xno" && break
3618 done
3619 rm -f conftest.$ac_ext
3620 CC=$ac_save_CC
3621
3622 fi
3623 # AC_CACHE_VAL
3624 case "x$ac_cv_prog_cc_c89" in
3625   x)
3626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3627 $as_echo "none needed" >&6; } ;;
3628   xno)
3629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3630 $as_echo "unsupported" >&6; } ;;
3631   *)
3632     CC="$CC $ac_cv_prog_cc_c89"
3633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3634 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3635 esac
3636 if test "x$ac_cv_prog_cc_c89" != xno; then :
3637
3638 fi
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 DEPDIR="${am__leading_dot}deps"
3646
3647 ac_config_commands="$ac_config_commands depfiles"
3648
3649
3650 am_make=${MAKE-make}
3651 cat > confinc << 'END'
3652 am__doit:
3653         @echo this is the am__doit target
3654 .PHONY: am__doit
3655 END
3656 # If we don't find an include directive, just comment out the code.
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3658 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3659 am__include="#"
3660 am__quote=
3661 _am_result=none
3662 # First try GNU make style include.
3663 echo "include confinc" > confmf
3664 # Ignore all kinds of additional output from `make'.
3665 case `$am_make -s -f confmf 2> /dev/null` in #(
3666 *the\ am__doit\ target*)
3667   am__include=include
3668   am__quote=
3669   _am_result=GNU
3670   ;;
3671 esac
3672 # Now try BSD make style include.
3673 if test "$am__include" = "#"; then
3674    echo '.include "confinc"' > confmf
3675    case `$am_make -s -f confmf 2> /dev/null` in #(
3676    *the\ am__doit\ target*)
3677      am__include=.include
3678      am__quote="\""
3679      _am_result=BSD
3680      ;;
3681    esac
3682 fi
3683
3684
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3686 $as_echo "$_am_result" >&6; }
3687 rm -f confinc confmf
3688
3689 # Check whether --enable-dependency-tracking was given.
3690 if test "${enable_dependency_tracking+set}" = set; then :
3691   enableval=$enable_dependency_tracking;
3692 fi
3693
3694 if test "x$enable_dependency_tracking" != xno; then
3695   am_depcomp="$ac_aux_dir/depcomp"
3696   AMDEPBACKSLASH='\'
3697 fi
3698  if test "x$enable_dependency_tracking" != xno; then
3699   AMDEP_TRUE=
3700   AMDEP_FALSE='#'
3701 else
3702   AMDEP_TRUE='#'
3703   AMDEP_FALSE=
3704 fi
3705
3706
3707
3708 depcc="$CC"   am_compiler_list=
3709
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3711 $as_echo_n "checking dependency style of $depcc... " >&6; }
3712 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3713   $as_echo_n "(cached) " >&6
3714 else
3715   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716   # We make a subdir and do the tests there.  Otherwise we can end up
3717   # making bogus files that we don't know about and never remove.  For
3718   # instance it was reported that on HP-UX the gcc test will end up
3719   # making a dummy file named `D' -- because `-MD' means `put the output
3720   # in D'.
3721   mkdir conftest.dir
3722   # Copy depcomp to subdir because otherwise we won't find it if we're
3723   # using a relative directory.
3724   cp "$am_depcomp" conftest.dir
3725   cd conftest.dir
3726   # We will build objects and dependencies in a subdirectory because
3727   # it helps to detect inapplicable dependency modes.  For instance
3728   # both Tru64's cc and ICC support -MD to output dependencies as a
3729   # side effect of compilation, but ICC will put the dependencies in
3730   # the current directory while Tru64 will put them in the object
3731   # directory.
3732   mkdir sub
3733
3734   am_cv_CC_dependencies_compiler_type=none
3735   if test "$am_compiler_list" = ""; then
3736      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737   fi
3738   am__universal=false
3739   case " $depcc " in #(
3740      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3741      esac
3742
3743   for depmode in $am_compiler_list; do
3744     # Setup a source with many dependencies, because some compilers
3745     # like to wrap large dependency lists on column 80 (with \), and
3746     # we should not choose a depcomp mode which is confused by this.
3747     #
3748     # We need to recreate these files for each test, as the compiler may
3749     # overwrite some of them when testing with obscure command lines.
3750     # This happens at least with the AIX C compiler.
3751     : > sub/conftest.c
3752     for i in 1 2 3 4 5 6; do
3753       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3754       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3755       # Solaris 8's {/usr,}/bin/sh.
3756       touch sub/conftst$i.h
3757     done
3758     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3759
3760     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3761     # mode.  It turns out that the SunPro C++ compiler does not properly
3762     # handle `-M -o', and we need to detect this.  Also, some Intel
3763     # versions had trouble with output in subdirs
3764     am__obj=sub/conftest.${OBJEXT-o}
3765     am__minus_obj="-o $am__obj"
3766     case $depmode in
3767     gcc)
3768       # This depmode causes a compiler race in universal mode.
3769       test "$am__universal" = false || continue
3770       ;;
3771     nosideeffect)
3772       # after this tag, mechanisms are not by side-effect, so they'll
3773       # only be used when explicitly requested
3774       if test "x$enable_dependency_tracking" = xyes; then
3775         continue
3776       else
3777         break
3778       fi
3779       ;;
3780     msvisualcpp | msvcmsys)
3781       # This compiler won't grok `-c -o', but also, the minuso test has
3782       # not run yet.  These depmodes are late enough in the game, and
3783       # so weak that their functioning should not be impacted.
3784       am__obj=conftest.${OBJEXT-o}
3785       am__minus_obj=
3786       ;;
3787     none) break ;;
3788     esac
3789     if depmode=$depmode \
3790        source=sub/conftest.c object=$am__obj \
3791        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3792        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3793          >/dev/null 2>conftest.err &&
3794        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3795        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3796        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3797        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3798       # icc doesn't choke on unknown options, it will just issue warnings
3799       # or remarks (even with -Werror).  So we grep stderr for any message
3800       # that says an option was ignored or not supported.
3801       # When given -MP, icc 7.0 and 7.1 complain thusly:
3802       #   icc: Command line warning: ignoring option '-M'; no argument required
3803       # The diagnosis changed in icc 8.0:
3804       #   icc: Command line remark: option '-MP' not supported
3805       if (grep 'ignoring option' conftest.err ||
3806           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3807         am_cv_CC_dependencies_compiler_type=$depmode
3808         break
3809       fi
3810     fi
3811   done
3812
3813   cd ..
3814   rm -rf conftest.dir
3815 else
3816   am_cv_CC_dependencies_compiler_type=none
3817 fi
3818
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3821 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3822 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3823
3824  if
3825   test "x$enable_dependency_tracking" != xno \
3826   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3827   am__fastdepCC_TRUE=
3828   am__fastdepCC_FALSE='#'
3829 else
3830   am__fastdepCC_TRUE='#'
3831   am__fastdepCC_FALSE=
3832 fi
3833
3834
3835 ac_ext=c
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3841 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3842 # On Suns, sometimes $CPP names a directory.
3843 if test -n "$CPP" && test -d "$CPP"; then
3844   CPP=
3845 fi
3846 if test -z "$CPP"; then
3847   if ${ac_cv_prog_CPP+:} false; then :
3848   $as_echo_n "(cached) " >&6
3849 else
3850       # Double quotes because CPP needs to be expanded
3851     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3852     do
3853       ac_preproc_ok=false
3854 for ac_c_preproc_warn_flag in '' yes
3855 do
3856   # Use a header file that comes with gcc, so configuring glibc
3857   # with a fresh cross-compiler works.
3858   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3859   # <limits.h> exists even on freestanding compilers.
3860   # On the NeXT, cc -E runs the code through the compiler's parser,
3861   # not just through cpp. "Syntax error" is here to catch this case.
3862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h.  */
3864 #ifdef __STDC__
3865 # include <limits.h>
3866 #else
3867 # include <assert.h>
3868 #endif
3869                      Syntax error
3870 _ACEOF
3871 if ac_fn_c_try_cpp "$LINENO"; then :
3872
3873 else
3874   # Broken: fails on valid input.
3875 continue
3876 fi
3877 rm -f conftest.err conftest.i conftest.$ac_ext
3878
3879   # OK, works on sane cases.  Now check whether nonexistent headers
3880   # can be detected and how.
3881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h.  */
3883 #include <ac_nonexistent.h>
3884 _ACEOF
3885 if ac_fn_c_try_cpp "$LINENO"; then :
3886   # Broken: success on invalid input.
3887 continue
3888 else
3889   # Passes both tests.
3890 ac_preproc_ok=:
3891 break
3892 fi
3893 rm -f conftest.err conftest.i conftest.$ac_ext
3894
3895 done
3896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3897 rm -f conftest.i conftest.err conftest.$ac_ext
3898 if $ac_preproc_ok; then :
3899   break
3900 fi
3901
3902     done
3903     ac_cv_prog_CPP=$CPP
3904
3905 fi
3906   CPP=$ac_cv_prog_CPP
3907 else
3908   ac_cv_prog_CPP=$CPP
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3911 $as_echo "$CPP" >&6; }
3912 ac_preproc_ok=false
3913 for ac_c_preproc_warn_flag in '' yes
3914 do
3915   # Use a header file that comes with gcc, so configuring glibc
3916   # with a fresh cross-compiler works.
3917   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3918   # <limits.h> exists even on freestanding compilers.
3919   # On the NeXT, cc -E runs the code through the compiler's parser,
3920   # not just through cpp. "Syntax error" is here to catch this case.
3921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h.  */
3923 #ifdef __STDC__
3924 # include <limits.h>
3925 #else
3926 # include <assert.h>
3927 #endif
3928                      Syntax error
3929 _ACEOF
3930 if ac_fn_c_try_cpp "$LINENO"; then :
3931
3932 else
3933   # Broken: fails on valid input.
3934 continue
3935 fi
3936 rm -f conftest.err conftest.i conftest.$ac_ext
3937
3938   # OK, works on sane cases.  Now check whether nonexistent headers
3939   # can be detected and how.
3940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h.  */
3942 #include <ac_nonexistent.h>
3943 _ACEOF
3944 if ac_fn_c_try_cpp "$LINENO"; then :
3945   # Broken: success on invalid input.
3946 continue
3947 else
3948   # Passes both tests.
3949 ac_preproc_ok=:
3950 break
3951 fi
3952 rm -f conftest.err conftest.i conftest.$ac_ext
3953
3954 done
3955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956 rm -f conftest.i conftest.err conftest.$ac_ext
3957 if $ac_preproc_ok; then :
3958
3959 else
3960   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details" "$LINENO" 5; }
3964 fi
3965
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971
3972 if test "x$CC" != xcc; then
3973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3974 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3975 else
3976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3977 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3978 fi
3979 set dummy $CC; ac_cc=`$as_echo "$2" |
3980                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3981 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3982   $as_echo_n "(cached) " >&6
3983 else
3984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h.  */
3986
3987 int
3988 main ()
3989 {
3990
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 # Make sure it works both with $CC and with simple cc.
3996 # We do the test twice because some compilers refuse to overwrite an
3997 # existing .o file with -o, though they will create one.
3998 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3999 rm -f conftest2.*
4000 if { { case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006   (eval "$ac_try") 2>&5
4007   ac_status=$?
4008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009   test $ac_status = 0; } &&
4010    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012   *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016   (eval "$ac_try") 2>&5
4017   ac_status=$?
4018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019   test $ac_status = 0; };
4020 then
4021   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4022   if test "x$CC" != xcc; then
4023     # Test first that cc exists at all.
4024     if { ac_try='cc -c conftest.$ac_ext >&5'
4025   { { case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
4028 esac
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030 $as_echo "$ac_try_echo"; } >&5
4031   (eval "$ac_try") 2>&5
4032   ac_status=$?
4033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034   test $ac_status = 0; }; }; then
4035       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4036       rm -f conftest2.*
4037       if { { case "(($ac_try" in
4038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039   *) ac_try_echo=$ac_try;;
4040 esac
4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 $as_echo "$ac_try_echo"; } >&5
4043   (eval "$ac_try") 2>&5
4044   ac_status=$?
4045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046   test $ac_status = 0; } &&
4047          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049   *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053   (eval "$ac_try") 2>&5
4054   ac_status=$?
4055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056   test $ac_status = 0; };
4057       then
4058         # cc works too.
4059         :
4060       else
4061         # cc exists but doesn't like -o.
4062         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4063       fi
4064     fi
4065   fi
4066 else
4067   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4068 fi
4069 rm -f core conftest*
4070
4071 fi
4072 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4074 $as_echo "yes" >&6; }
4075 else
4076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4078
4079 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4080
4081 fi
4082
4083
4084 ac_ext=cpp
4085 ac_cpp='$CXXCPP $CPPFLAGS'
4086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4089 if test -z "$CXX"; then
4090   if test -n "$CCC"; then
4091     CXX=$CCC
4092   else
4093     if test -n "$ac_tool_prefix"; then
4094   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4095   do
4096     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if ${ac_cv_prog_CXX+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   if test -n "$CXX"; then
4104   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109   IFS=$as_save_IFS
4110   test -z "$as_dir" && as_dir=.
4111     for ac_exec_ext in '' $ac_executable_extensions; do
4112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4113     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115     break 2
4116   fi
4117 done
4118   done
4119 IFS=$as_save_IFS
4120
4121 fi
4122 fi
4123 CXX=$ac_cv_prog_CXX
4124 if test -n "$CXX"; then
4125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4126 $as_echo "$CXX" >&6; }
4127 else
4128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4130 fi
4131
4132
4133     test -n "$CXX" && break
4134   done
4135 fi
4136 if test -z "$CXX"; then
4137   ac_ct_CXX=$CXX
4138   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4139 do
4140   # Extract the first word of "$ac_prog", so it can be a program name with args.
4141 set dummy $ac_prog; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4145   $as_echo_n "(cached) " >&6
4146 else
4147   if test -n "$ac_ct_CXX"; then
4148   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155     for ac_exec_ext in '' $ac_executable_extensions; do
4156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157     ac_cv_prog_ac_ct_CXX="$ac_prog"
4158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162   done
4163 IFS=$as_save_IFS
4164
4165 fi
4166 fi
4167 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4168 if test -n "$ac_ct_CXX"; then
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4170 $as_echo "$ac_ct_CXX" >&6; }
4171 else
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 fi
4175
4176
4177   test -n "$ac_ct_CXX" && break
4178 done
4179
4180   if test "x$ac_ct_CXX" = x; then
4181     CXX="g++"
4182   else
4183     case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4188 esac
4189     CXX=$ac_ct_CXX
4190   fi
4191 fi
4192
4193   fi
4194 fi
4195 # Provide some information about the compiler.
4196 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4197 set X $ac_compile
4198 ac_compiler=$2
4199 for ac_option in --version -v -V -qversion; do
4200   { { ac_try="$ac_compiler $ac_option >&5"
4201 case "(($ac_try" in
4202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203   *) ac_try_echo=$ac_try;;
4204 esac
4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4206 $as_echo "$ac_try_echo"; } >&5
4207   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4208   ac_status=$?
4209   if test -s conftest.err; then
4210     sed '10a\
4211 ... rest of stderr output deleted ...
4212          10q' conftest.err >conftest.er1
4213     cat conftest.er1 >&5
4214   fi
4215   rm -f conftest.er1 conftest.err
4216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217   test $ac_status = 0; }
4218 done
4219
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4221 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4222 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h.  */
4227
4228 int
4229 main ()
4230 {
4231 #ifndef __GNUC__
4232        choke me
4233 #endif
4234
4235   ;
4236   return 0;
4237 }
4238 _ACEOF
4239 if ac_fn_cxx_try_compile "$LINENO"; then :
4240   ac_compiler_gnu=yes
4241 else
4242   ac_compiler_gnu=no
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4246
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4249 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4250 if test $ac_compiler_gnu = yes; then
4251   GXX=yes
4252 else
4253   GXX=
4254 fi
4255 ac_test_CXXFLAGS=${CXXFLAGS+set}
4256 ac_save_CXXFLAGS=$CXXFLAGS
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4258 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4259 if ${ac_cv_prog_cxx_g+:} false; then :
4260   $as_echo_n "(cached) " >&6
4261 else
4262   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4263    ac_cxx_werror_flag=yes
4264    ac_cv_prog_cxx_g=no
4265    CXXFLAGS="-g"
4266    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 if ac_fn_cxx_try_compile "$LINENO"; then :
4278   ac_cv_prog_cxx_g=yes
4279 else
4280   CXXFLAGS=""
4281       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h.  */
4283
4284 int
4285 main ()
4286 {
4287
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292 if ac_fn_cxx_try_compile "$LINENO"; then :
4293
4294 else
4295   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4296          CXXFLAGS="-g"
4297          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h.  */
4299
4300 int
4301 main ()
4302 {
4303
4304   ;
4305   return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_cxx_try_compile "$LINENO"; then :
4309   ac_cv_prog_cxx_g=yes
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 fi
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4319 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4320 if test "$ac_test_CXXFLAGS" = set; then
4321   CXXFLAGS=$ac_save_CXXFLAGS
4322 elif test $ac_cv_prog_cxx_g = yes; then
4323   if test "$GXX" = yes; then
4324     CXXFLAGS="-g -O2"
4325   else
4326     CXXFLAGS="-g"
4327   fi
4328 else
4329   if test "$GXX" = yes; then
4330     CXXFLAGS="-O2"
4331   else
4332     CXXFLAGS=
4333   fi
4334 fi
4335 ac_ext=c
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340
4341 depcc="$CXX"  am_compiler_list=
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4344 $as_echo_n "checking dependency style of $depcc... " >&6; }
4345 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4346   $as_echo_n "(cached) " >&6
4347 else
4348   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4349   # We make a subdir and do the tests there.  Otherwise we can end up
4350   # making bogus files that we don't know about and never remove.  For
4351   # instance it was reported that on HP-UX the gcc test will end up
4352   # making a dummy file named `D' -- because `-MD' means `put the output
4353   # in D'.
4354   mkdir conftest.dir
4355   # Copy depcomp to subdir because otherwise we won't find it if we're
4356   # using a relative directory.
4357   cp "$am_depcomp" conftest.dir
4358   cd conftest.dir
4359   # We will build objects and dependencies in a subdirectory because
4360   # it helps to detect inapplicable dependency modes.  For instance
4361   # both Tru64's cc and ICC support -MD to output dependencies as a
4362   # side effect of compilation, but ICC will put the dependencies in
4363   # the current directory while Tru64 will put them in the object
4364   # directory.
4365   mkdir sub
4366
4367   am_cv_CXX_dependencies_compiler_type=none
4368   if test "$am_compiler_list" = ""; then
4369      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4370   fi
4371   am__universal=false
4372   case " $depcc " in #(
4373      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4374      esac
4375
4376   for depmode in $am_compiler_list; do
4377     # Setup a source with many dependencies, because some compilers
4378     # like to wrap large dependency lists on column 80 (with \), and
4379     # we should not choose a depcomp mode which is confused by this.
4380     #
4381     # We need to recreate these files for each test, as the compiler may
4382     # overwrite some of them when testing with obscure command lines.
4383     # This happens at least with the AIX C compiler.
4384     : > sub/conftest.c
4385     for i in 1 2 3 4 5 6; do
4386       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4387       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4388       # Solaris 8's {/usr,}/bin/sh.
4389       touch sub/conftst$i.h
4390     done
4391     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4392
4393     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4394     # mode.  It turns out that the SunPro C++ compiler does not properly
4395     # handle `-M -o', and we need to detect this.  Also, some Intel
4396     # versions had trouble with output in subdirs
4397     am__obj=sub/conftest.${OBJEXT-o}
4398     am__minus_obj="-o $am__obj"
4399     case $depmode in
4400     gcc)
4401       # This depmode causes a compiler race in universal mode.
4402       test "$am__universal" = false || continue
4403       ;;
4404     nosideeffect)
4405       # after this tag, mechanisms are not by side-effect, so they'll
4406       # only be used when explicitly requested
4407       if test "x$enable_dependency_tracking" = xyes; then
4408         continue
4409       else
4410         break
4411       fi
4412       ;;
4413     msvisualcpp | msvcmsys)
4414       # This compiler won't grok `-c -o', but also, the minuso test has
4415       # not run yet.  These depmodes are late enough in the game, and
4416       # so weak that their functioning should not be impacted.
4417       am__obj=conftest.${OBJEXT-o}
4418       am__minus_obj=
4419       ;;
4420     none) break ;;
4421     esac
4422     if depmode=$depmode \
4423        source=sub/conftest.c object=$am__obj \
4424        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4425        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4426          >/dev/null 2>conftest.err &&
4427        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4428        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4429        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4430        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4431       # icc doesn't choke on unknown options, it will just issue warnings
4432       # or remarks (even with -Werror).  So we grep stderr for any message
4433       # that says an option was ignored or not supported.
4434       # When given -MP, icc 7.0 and 7.1 complain thusly:
4435       #   icc: Command line warning: ignoring option '-M'; no argument required
4436       # The diagnosis changed in icc 8.0:
4437       #   icc: Command line remark: option '-MP' not supported
4438       if (grep 'ignoring option' conftest.err ||
4439           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4440         am_cv_CXX_dependencies_compiler_type=$depmode
4441         break
4442       fi
4443     fi
4444   done
4445
4446   cd ..
4447   rm -rf conftest.dir
4448 else
4449   am_cv_CXX_dependencies_compiler_type=none
4450 fi
4451
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4454 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4455 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4456
4457  if
4458   test "x$enable_dependency_tracking" != xno \
4459   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4460   am__fastdepCXX_TRUE=
4461   am__fastdepCXX_FALSE='#'
4462 else
4463   am__fastdepCXX_TRUE='#'
4464   am__fastdepCXX_FALSE=
4465 fi
4466
4467
4468 ac_ext=cpp
4469 ac_cpp='$CXXCPP $CPPFLAGS'
4470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4474 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4475 if test -z "$CXXCPP"; then
4476   if ${ac_cv_prog_CXXCPP+:} false; then :
4477   $as_echo_n "(cached) " >&6
4478 else
4479       # Double quotes because CXXCPP needs to be expanded
4480     for CXXCPP in "$CXX -E" "/lib/cpp"
4481     do
4482       ac_preproc_ok=false
4483 for ac_cxx_preproc_warn_flag in '' yes
4484 do
4485   # Use a header file that comes with gcc, so configuring glibc
4486   # with a fresh cross-compiler works.
4487   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4488   # <limits.h> exists even on freestanding compilers.
4489   # On the NeXT, cc -E runs the code through the compiler's parser,
4490   # not just through cpp. "Syntax error" is here to catch this case.
4491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h.  */
4493 #ifdef __STDC__
4494 # include <limits.h>
4495 #else
4496 # include <assert.h>
4497 #endif
4498                      Syntax error
4499 _ACEOF
4500 if ac_fn_cxx_try_cpp "$LINENO"; then :
4501
4502 else
4503   # Broken: fails on valid input.
4504 continue
4505 fi
4506 rm -f conftest.err conftest.i conftest.$ac_ext
4507
4508   # OK, works on sane cases.  Now check whether nonexistent headers
4509   # can be detected and how.
4510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h.  */
4512 #include <ac_nonexistent.h>
4513 _ACEOF
4514 if ac_fn_cxx_try_cpp "$LINENO"; then :
4515   # Broken: success on invalid input.
4516 continue
4517 else
4518   # Passes both tests.
4519 ac_preproc_ok=:
4520 break
4521 fi
4522 rm -f conftest.err conftest.i conftest.$ac_ext
4523
4524 done
4525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4526 rm -f conftest.i conftest.err conftest.$ac_ext
4527 if $ac_preproc_ok; then :
4528   break
4529 fi
4530
4531     done
4532     ac_cv_prog_CXXCPP=$CXXCPP
4533
4534 fi
4535   CXXCPP=$ac_cv_prog_CXXCPP
4536 else
4537   ac_cv_prog_CXXCPP=$CXXCPP
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4540 $as_echo "$CXXCPP" >&6; }
4541 ac_preproc_ok=false
4542 for ac_cxx_preproc_warn_flag in '' yes
4543 do
4544   # Use a header file that comes with gcc, so configuring glibc
4545   # with a fresh cross-compiler works.
4546   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4547   # <limits.h> exists even on freestanding compilers.
4548   # On the NeXT, cc -E runs the code through the compiler's parser,
4549   # not just through cpp. "Syntax error" is here to catch this case.
4550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h.  */
4552 #ifdef __STDC__
4553 # include <limits.h>
4554 #else
4555 # include <assert.h>
4556 #endif
4557                      Syntax error
4558 _ACEOF
4559 if ac_fn_cxx_try_cpp "$LINENO"; then :
4560
4561 else
4562   # Broken: fails on valid input.
4563 continue
4564 fi
4565 rm -f conftest.err conftest.i conftest.$ac_ext
4566
4567   # OK, works on sane cases.  Now check whether nonexistent headers
4568   # can be detected and how.
4569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h.  */
4571 #include <ac_nonexistent.h>
4572 _ACEOF
4573 if ac_fn_cxx_try_cpp "$LINENO"; then :
4574   # Broken: success on invalid input.
4575 continue
4576 else
4577   # Passes both tests.
4578 ac_preproc_ok=:
4579 break
4580 fi
4581 rm -f conftest.err conftest.i conftest.$ac_ext
4582
4583 done
4584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4585 rm -f conftest.i conftest.err conftest.$ac_ext
4586 if $ac_preproc_ok; then :
4587
4588 else
4589   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4591 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4592 See \`config.log' for more details" "$LINENO" 5; }
4593 fi
4594
4595 ac_ext=c
4596 ac_cpp='$CPP $CPPFLAGS'
4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600
4601
4602 # Check for namespace support and new-style headers
4603 ac_ext=cpp
4604 ac_cpp='$CXXCPP $CPPFLAGS'
4605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4608
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
4610 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
4611
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h.  */
4614 namespace A { namespace B { int i = 0; }}
4615 int
4616 main ()
4617 {
4618 using namespace A::B; return i;
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 if ac_fn_cxx_try_compile "$LINENO"; then :
4624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4625 $as_echo "yes" >&6; }
4626
4627 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
4628
4629 else
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has ISO C++ iostream" >&5
4636 $as_echo_n "checking whether the compiler has ISO C++ iostream... " >&6; }
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h.  */
4639 #include <iostream>
4640 #ifdef HAVE_NAMESPACES
4641 using namespace std;
4642 #endif
4643 int
4644 main ()
4645 {
4646 cout << "bingo\n"; return 0;
4647   ;
4648   return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_cxx_try_compile "$LINENO"; then :
4652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4653 $as_echo "yes" >&6; }
4654
4655 $as_echo "#define HAVE_IOSTREAM 1" >>confdefs.h
4656
4657 else
4658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4659 $as_echo "no" >&6; }
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 ac_ext=c
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667
4668
4669
4670 ## ----------------------- ##
4671 ## Libtool initialisation. ##
4672 ## ----------------------- ##
4673
4674 # Set the test language to C++.
4675 ac_ext=cpp
4676 ac_cpp='$CXXCPP $CPPFLAGS'
4677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4680
4681 case `pwd` in
4682   *\ * | *\     *)
4683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4684 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4685 esac
4686
4687
4688
4689 macro_version='2.4.2'
4690 macro_revision='1.3337'
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704 ltmain="$ac_aux_dir/ltmain.sh"
4705
4706 # Backslashify metacharacters that are still active within
4707 # double-quoted strings.
4708 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4709
4710 # Same as above, but do not quote variable references.
4711 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4712
4713 # Sed substitution to delay expansion of an escaped shell variable in a
4714 # double_quote_subst'ed string.
4715 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4716
4717 # Sed substitution to delay expansion of an escaped single quote.
4718 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4719
4720 # Sed substitution to avoid accidental globbing in evaled expressions
4721 no_glob_subst='s/\*/\\\*/g'
4722
4723 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4724 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4725 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4728 $as_echo_n "checking how to print strings... " >&6; }
4729 # Test print first, because it will be a builtin if present.
4730 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4731    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4732   ECHO='print -r --'
4733 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4734   ECHO='printf %s\n'
4735 else
4736   # Use this function as a fallback that always works.
4737   func_fallback_echo ()
4738   {
4739     eval 'cat <<_LTECHO_EOF
4740 $1
4741 _LTECHO_EOF'
4742   }
4743   ECHO='func_fallback_echo'
4744 fi
4745
4746 # func_echo_all arg...
4747 # Invoke $ECHO with all args, space-separated.
4748 func_echo_all ()
4749 {
4750     $ECHO ""
4751 }
4752
4753 case "$ECHO" in
4754   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4755 $as_echo "printf" >&6; } ;;
4756   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4757 $as_echo "print -r" >&6; } ;;
4758   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4759 $as_echo "cat" >&6; } ;;
4760 esac
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4776 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4777 if ${ac_cv_path_SED+:} false; then :
4778   $as_echo_n "(cached) " >&6
4779 else
4780             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4781      for ac_i in 1 2 3 4 5 6 7; do
4782        ac_script="$ac_script$as_nl$ac_script"
4783      done
4784      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4785      { ac_script=; unset ac_script;}
4786      if test -z "$SED"; then
4787   ac_path_SED_found=false
4788   # Loop through the user's path and test for each of PROGNAME-LIST
4789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794     for ac_prog in sed gsed; do
4795     for ac_exec_ext in '' $ac_executable_extensions; do
4796       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4797       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4798 # Check for GNU ac_path_SED and select it if it is found.
4799   # Check for GNU $ac_path_SED
4800 case `"$ac_path_SED" --version 2>&1` in
4801 *GNU*)
4802   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4803 *)
4804   ac_count=0
4805   $as_echo_n 0123456789 >"conftest.in"
4806   while :
4807   do
4808     cat "conftest.in" "conftest.in" >"conftest.tmp"
4809     mv "conftest.tmp" "conftest.in"
4810     cp "conftest.in" "conftest.nl"
4811     $as_echo '' >> "conftest.nl"
4812     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4813     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4814     as_fn_arith $ac_count + 1 && ac_count=$as_val
4815     if test $ac_count -gt ${ac_path_SED_max-0}; then
4816       # Best one so far, save it but keep looking for a better one
4817       ac_cv_path_SED="$ac_path_SED"
4818       ac_path_SED_max=$ac_count
4819     fi
4820     # 10*(2^10) chars as input seems more than enough
4821     test $ac_count -gt 10 && break
4822   done
4823   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4824 esac
4825
4826       $ac_path_SED_found && break 3
4827     done
4828   done
4829   done
4830 IFS=$as_save_IFS
4831   if test -z "$ac_cv_path_SED"; then
4832     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4833   fi
4834 else
4835   ac_cv_path_SED=$SED
4836 fi
4837
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4840 $as_echo "$ac_cv_path_SED" >&6; }
4841  SED="$ac_cv_path_SED"
4842   rm -f conftest.sed
4843
4844 test -z "$SED" && SED=sed
4845 Xsed="$SED -e 1s/^X//"
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4858 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4859 if ${ac_cv_path_GREP+:} false; then :
4860   $as_echo_n "(cached) " >&6
4861 else
4862   if test -z "$GREP"; then
4863   ac_path_GREP_found=false
4864   # Loop through the user's path and test for each of PROGNAME-LIST
4865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870     for ac_prog in grep ggrep; do
4871     for ac_exec_ext in '' $ac_executable_extensions; do
4872       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4873       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4874 # Check for GNU ac_path_GREP and select it if it is found.
4875   # Check for GNU $ac_path_GREP
4876 case `"$ac_path_GREP" --version 2>&1` in
4877 *GNU*)
4878   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4879 *)
4880   ac_count=0
4881   $as_echo_n 0123456789 >"conftest.in"
4882   while :
4883   do
4884     cat "conftest.in" "conftest.in" >"conftest.tmp"
4885     mv "conftest.tmp" "conftest.in"
4886     cp "conftest.in" "conftest.nl"
4887     $as_echo 'GREP' >> "conftest.nl"
4888     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4889     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4890     as_fn_arith $ac_count + 1 && ac_count=$as_val
4891     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4892       # Best one so far, save it but keep looking for a better one
4893       ac_cv_path_GREP="$ac_path_GREP"
4894       ac_path_GREP_max=$ac_count
4895     fi
4896     # 10*(2^10) chars as input seems more than enough
4897     test $ac_count -gt 10 && break
4898   done
4899   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4900 esac
4901
4902       $ac_path_GREP_found && break 3
4903     done
4904   done
4905   done
4906 IFS=$as_save_IFS
4907   if test -z "$ac_cv_path_GREP"; then
4908     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4909   fi
4910 else
4911   ac_cv_path_GREP=$GREP
4912 fi
4913
4914 fi
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4916 $as_echo "$ac_cv_path_GREP" >&6; }
4917  GREP="$ac_cv_path_GREP"
4918
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4921 $as_echo_n "checking for egrep... " >&6; }
4922 if ${ac_cv_path_EGREP+:} false; then :
4923   $as_echo_n "(cached) " >&6
4924 else
4925   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4926    then ac_cv_path_EGREP="$GREP -E"
4927    else
4928      if test -z "$EGREP"; then
4929   ac_path_EGREP_found=false
4930   # Loop through the user's path and test for each of PROGNAME-LIST
4931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4933 do
4934   IFS=$as_save_IFS
4935   test -z "$as_dir" && as_dir=.
4936     for ac_prog in egrep; do
4937     for ac_exec_ext in '' $ac_executable_extensions; do
4938       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4939       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4940 # Check for GNU ac_path_EGREP and select it if it is found.
4941   # Check for GNU $ac_path_EGREP
4942 case `"$ac_path_EGREP" --version 2>&1` in
4943 *GNU*)
4944   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4945 *)
4946   ac_count=0
4947   $as_echo_n 0123456789 >"conftest.in"
4948   while :
4949   do
4950     cat "conftest.in" "conftest.in" >"conftest.tmp"
4951     mv "conftest.tmp" "conftest.in"
4952     cp "conftest.in" "conftest.nl"
4953     $as_echo 'EGREP' >> "conftest.nl"
4954     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4955     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4956     as_fn_arith $ac_count + 1 && ac_count=$as_val
4957     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4958       # Best one so far, save it but keep looking for a better one
4959       ac_cv_path_EGREP="$ac_path_EGREP"
4960       ac_path_EGREP_max=$ac_count
4961     fi
4962     # 10*(2^10) chars as input seems more than enough
4963     test $ac_count -gt 10 && break
4964   done
4965   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4966 esac
4967
4968       $ac_path_EGREP_found && break 3
4969     done
4970   done
4971   done
4972 IFS=$as_save_IFS
4973   if test -z "$ac_cv_path_EGREP"; then
4974     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4975   fi
4976 else
4977   ac_cv_path_EGREP=$EGREP
4978 fi
4979
4980    fi
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4983 $as_echo "$ac_cv_path_EGREP" >&6; }
4984  EGREP="$ac_cv_path_EGREP"
4985
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4988 $as_echo_n "checking for fgrep... " >&6; }
4989 if ${ac_cv_path_FGREP+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4993    then ac_cv_path_FGREP="$GREP -F"
4994    else
4995      if test -z "$FGREP"; then
4996   ac_path_FGREP_found=false
4997   # Loop through the user's path and test for each of PROGNAME-LIST
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003     for ac_prog in fgrep; do
5004     for ac_exec_ext in '' $ac_executable_extensions; do
5005       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5006       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5007 # Check for GNU ac_path_FGREP and select it if it is found.
5008   # Check for GNU $ac_path_FGREP
5009 case `"$ac_path_FGREP" --version 2>&1` in
5010 *GNU*)
5011   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5012 *)
5013   ac_count=0
5014   $as_echo_n 0123456789 >"conftest.in"
5015   while :
5016   do
5017     cat "conftest.in" "conftest.in" >"conftest.tmp"
5018     mv "conftest.tmp" "conftest.in"
5019     cp "conftest.in" "conftest.nl"
5020     $as_echo 'FGREP' >> "conftest.nl"
5021     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5022     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5023     as_fn_arith $ac_count + 1 && ac_count=$as_val
5024     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5025       # Best one so far, save it but keep looking for a better one
5026       ac_cv_path_FGREP="$ac_path_FGREP"
5027       ac_path_FGREP_max=$ac_count
5028     fi
5029     # 10*(2^10) chars as input seems more than enough
5030     test $ac_count -gt 10 && break
5031   done
5032   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5033 esac
5034
5035       $ac_path_FGREP_found && break 3
5036     done
5037   done
5038   done
5039 IFS=$as_save_IFS
5040   if test -z "$ac_cv_path_FGREP"; then
5041     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5042   fi
5043 else
5044   ac_cv_path_FGREP=$FGREP
5045 fi
5046
5047    fi
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5050 $as_echo "$ac_cv_path_FGREP" >&6; }
5051  FGREP="$ac_cv_path_FGREP"
5052
5053
5054 test -z "$GREP" && GREP=grep
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 # Check whether --with-gnu-ld was given.
5075 if test "${with_gnu_ld+set}" = set; then :
5076   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5077 else
5078   with_gnu_ld=no
5079 fi
5080
5081 ac_prog=ld
5082 if test "$GCC" = yes; then
5083   # Check if gcc -print-prog-name=ld gives a path.
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5085 $as_echo_n "checking for ld used by $CC... " >&6; }
5086   case $host in
5087   *-*-mingw*)
5088     # gcc leaves a trailing carriage return which upsets mingw
5089     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5090   *)
5091     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5092   esac
5093   case $ac_prog in
5094     # Accept absolute paths.
5095     [\\/]* | ?:[\\/]*)
5096       re_direlt='/[^/][^/]*/\.\./'
5097       # Canonicalize the pathname of ld
5098       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5099       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5100         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5101       done
5102       test -z "$LD" && LD="$ac_prog"
5103       ;;
5104   "")
5105     # If it fails, then pretend we aren't using GCC.
5106     ac_prog=ld
5107     ;;
5108   *)
5109     # If it is relative, then search for the first ld in PATH.
5110     with_gnu_ld=unknown
5111     ;;
5112   esac
5113 elif test "$with_gnu_ld" = yes; then
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5115 $as_echo_n "checking for GNU ld... " >&6; }
5116 else
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5118 $as_echo_n "checking for non-GNU ld... " >&6; }
5119 fi
5120 if ${lt_cv_path_LD+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123   if test -z "$LD"; then
5124   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5125   for ac_dir in $PATH; do
5126     IFS="$lt_save_ifs"
5127     test -z "$ac_dir" && ac_dir=.
5128     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5129       lt_cv_path_LD="$ac_dir/$ac_prog"
5130       # Check to see if the program is GNU ld.  I'd rather use --version,
5131       # but apparently some variants of GNU ld only accept -v.
5132       # Break only if it was the GNU/non-GNU ld that we prefer.
5133       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5134       *GNU* | *'with BFD'*)
5135         test "$with_gnu_ld" != no && break
5136         ;;
5137       *)
5138         test "$with_gnu_ld" != yes && break
5139         ;;
5140       esac
5141     fi
5142   done
5143   IFS="$lt_save_ifs"
5144 else
5145   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5146 fi
5147 fi
5148
5149 LD="$lt_cv_path_LD"
5150 if test -n "$LD"; then
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5152 $as_echo "$LD" >&6; }
5153 else
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5156 fi
5157 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5159 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5160 if ${lt_cv_prog_gnu_ld+:} false; then :
5161   $as_echo_n "(cached) " >&6
5162 else
5163   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5164 case `$LD -v 2>&1 </dev/null` in
5165 *GNU* | *'with BFD'*)
5166   lt_cv_prog_gnu_ld=yes
5167   ;;
5168 *)
5169   lt_cv_prog_gnu_ld=no
5170   ;;
5171 esac
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5174 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5175 with_gnu_ld=$lt_cv_prog_gnu_ld
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5186 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5187 if ${lt_cv_path_NM+:} false; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   if test -n "$NM"; then
5191   # Let the user override the test.
5192   lt_cv_path_NM="$NM"
5193 else
5194   lt_nm_to_check="${ac_tool_prefix}nm"
5195   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5196     lt_nm_to_check="$lt_nm_to_check nm"
5197   fi
5198   for lt_tmp_nm in $lt_nm_to_check; do
5199     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5200     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5201       IFS="$lt_save_ifs"
5202       test -z "$ac_dir" && ac_dir=.
5203       tmp_nm="$ac_dir/$lt_tmp_nm"
5204       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5205         # Check to see if the nm accepts a BSD-compat flag.
5206         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5207         #   nm: unknown option "B" ignored
5208         # Tru64's nm complains that /dev/null is an invalid object file
5209         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5210         */dev/null* | *'Invalid file or object type'*)
5211           lt_cv_path_NM="$tmp_nm -B"
5212           break
5213           ;;
5214         *)
5215           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5216           */dev/null*)
5217             lt_cv_path_NM="$tmp_nm -p"
5218             break
5219             ;;
5220           *)
5221             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5222             continue # so that we can try to find one that supports BSD flags
5223             ;;
5224           esac
5225           ;;
5226         esac
5227       fi
5228     done
5229     IFS="$lt_save_ifs"
5230   done
5231   : ${lt_cv_path_NM=no}
5232 fi
5233 fi
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5235 $as_echo "$lt_cv_path_NM" >&6; }
5236 if test "$lt_cv_path_NM" != "no"; then
5237   NM="$lt_cv_path_NM"
5238 else
5239   # Didn't find any BSD compatible name lister, look for dumpbin.
5240   if test -n "$DUMPBIN"; then :
5241     # Let the user override the test.
5242   else
5243     if test -n "$ac_tool_prefix"; then
5244   for ac_prog in dumpbin "link -dump"
5245   do
5246     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_prog_DUMPBIN+:} false; then :
5251   $as_echo_n "(cached) " >&6
5252 else
5253   if test -n "$DUMPBIN"; then
5254   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259   IFS=$as_save_IFS
5260   test -z "$as_dir" && as_dir=.
5261     for ac_exec_ext in '' $ac_executable_extensions; do
5262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265     break 2
5266   fi
5267 done
5268   done
5269 IFS=$as_save_IFS
5270
5271 fi
5272 fi
5273 DUMPBIN=$ac_cv_prog_DUMPBIN
5274 if test -n "$DUMPBIN"; then
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5276 $as_echo "$DUMPBIN" >&6; }
5277 else
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5280 fi
5281
5282
5283     test -n "$DUMPBIN" && break
5284   done
5285 fi
5286 if test -z "$DUMPBIN"; then
5287   ac_ct_DUMPBIN=$DUMPBIN
5288   for ac_prog in dumpbin "link -dump"
5289 do
5290   # Extract the first word of "$ac_prog", so it can be a program name with args.
5291 set dummy $ac_prog; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   if test -n "$ac_ct_DUMPBIN"; then
5298   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312   done
5313 IFS=$as_save_IFS
5314
5315 fi
5316 fi
5317 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5318 if test -n "$ac_ct_DUMPBIN"; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5320 $as_echo "$ac_ct_DUMPBIN" >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326
5327   test -n "$ac_ct_DUMPBIN" && break
5328 done
5329
5330   if test "x$ac_ct_DUMPBIN" = x; then
5331     DUMPBIN=":"
5332   else
5333     case $cross_compiling:$ac_tool_warned in
5334 yes:)
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337 ac_tool_warned=yes ;;
5338 esac
5339     DUMPBIN=$ac_ct_DUMPBIN
5340   fi
5341 fi
5342
5343     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5344     *COFF*)
5345       DUMPBIN="$DUMPBIN -symbols"
5346       ;;
5347     *)
5348       DUMPBIN=:
5349       ;;
5350     esac
5351   fi
5352
5353   if test "$DUMPBIN" != ":"; then
5354     NM="$DUMPBIN"
5355   fi
5356 fi
5357 test -z "$NM" && NM=nm
5358
5359
5360
5361
5362
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5365 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5366 if ${lt_cv_nm_interface+:} false; then :
5367   $as_echo_n "(cached) " >&6
5368 else
5369   lt_cv_nm_interface="BSD nm"
5370   echo "int some_variable = 0;" > conftest.$ac_ext
5371   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5372   (eval "$ac_compile" 2>conftest.err)
5373   cat conftest.err >&5
5374   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5375   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5376   cat conftest.err >&5
5377   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5378   cat conftest.out >&5
5379   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5380     lt_cv_nm_interface="MS dumpbin"
5381   fi
5382   rm -f conftest*
5383 fi
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5385 $as_echo "$lt_cv_nm_interface" >&6; }
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5388 $as_echo_n "checking whether ln -s works... " >&6; }
5389 LN_S=$as_ln_s
5390 if test "$LN_S" = "ln -s"; then
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392 $as_echo "yes" >&6; }
5393 else
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5395 $as_echo "no, using $LN_S" >&6; }
5396 fi
5397
5398 # find the maximum length of command line arguments
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5400 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5401 if ${lt_cv_sys_max_cmd_len+:} false; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404     i=0
5405   teststring="ABCD"
5406
5407   case $build_os in
5408   msdosdjgpp*)
5409     # On DJGPP, this test can blow up pretty badly due to problems in libc
5410     # (any single argument exceeding 2000 bytes causes a buffer overrun
5411     # during glob expansion).  Even if it were fixed, the result of this
5412     # check would be larger than it should be.
5413     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5414     ;;
5415
5416   gnu*)
5417     # Under GNU Hurd, this test is not required because there is
5418     # no limit to the length of command line arguments.
5419     # Libtool will interpret -1 as no limit whatsoever
5420     lt_cv_sys_max_cmd_len=-1;
5421     ;;
5422
5423   cygwin* | mingw* | cegcc*)
5424     # On Win9x/ME, this test blows up -- it succeeds, but takes
5425     # about 5 minutes as the teststring grows exponentially.
5426     # Worse, since 9x/ME are not pre-emptively multitasking,
5427     # you end up with a "frozen" computer, even though with patience
5428     # the test eventually succeeds (with a max line length of 256k).
5429     # Instead, let's just punt: use the minimum linelength reported by
5430     # all of the supported platforms: 8192 (on NT/2K/XP).
5431     lt_cv_sys_max_cmd_len=8192;
5432     ;;
5433
5434   mint*)
5435     # On MiNT this can take a long time and run out of memory.
5436     lt_cv_sys_max_cmd_len=8192;
5437     ;;
5438
5439   amigaos*)
5440     # On AmigaOS with pdksh, this test takes hours, literally.
5441     # So we just punt and use a minimum line length of 8192.
5442     lt_cv_sys_max_cmd_len=8192;
5443     ;;
5444
5445   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5446     # This has been around since 386BSD, at least.  Likely further.
5447     if test -x /sbin/sysctl; then
5448       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5449     elif test -x /usr/sbin/sysctl; then
5450       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5451     else
5452       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5453     fi
5454     # And add a safety zone
5455     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5456     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5457     ;;
5458
5459   interix*)
5460     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5461     lt_cv_sys_max_cmd_len=196608
5462     ;;
5463
5464   os2*)
5465     # The test takes a long time on OS/2.
5466     lt_cv_sys_max_cmd_len=8192
5467     ;;
5468
5469   osf*)
5470     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5471     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5472     # nice to cause kernel panics so lets avoid the loop below.
5473     # First set a reasonable default.
5474     lt_cv_sys_max_cmd_len=16384
5475     #
5476     if test -x /sbin/sysconfig; then
5477       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5478         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5479       esac
5480     fi
5481     ;;
5482   sco3.2v5*)
5483     lt_cv_sys_max_cmd_len=102400
5484     ;;
5485   sysv5* | sco5v6* | sysv4.2uw2*)
5486     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5487     if test -n "$kargmax"; then
5488       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5489     else
5490       lt_cv_sys_max_cmd_len=32768
5491     fi
5492     ;;
5493   *)
5494     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5495     if test -n "$lt_cv_sys_max_cmd_len"; then
5496       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5497       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5498     else
5499       # Make teststring a little bigger before we do anything with it.
5500       # a 1K string should be a reasonable start.
5501       for i in 1 2 3 4 5 6 7 8 ; do
5502         teststring=$teststring$teststring
5503       done
5504       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5505       # If test is not a shell built-in, we'll probably end up computing a
5506       # maximum length that is only half of the actual maximum length, but
5507       # we can't tell.
5508       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5509                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5510               test $i != 17 # 1/2 MB should be enough
5511       do
5512         i=`expr $i + 1`
5513         teststring=$teststring$teststring
5514       done
5515       # Only check the string length outside the loop.
5516       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5517       teststring=
5518       # Add a significant safety factor because C++ compilers can tack on
5519       # massive amounts of additional arguments before passing them to the
5520       # linker.  It appears as though 1/2 is a usable value.
5521       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5522     fi
5523     ;;
5524   esac
5525
5526 fi
5527
5528 if test -n $lt_cv_sys_max_cmd_len ; then
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5530 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5531 else
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5533 $as_echo "none" >&6; }
5534 fi
5535 max_cmd_len=$lt_cv_sys_max_cmd_len
5536
5537
5538
5539
5540
5541
5542 : ${CP="cp -f"}
5543 : ${MV="mv -f"}
5544 : ${RM="rm -f"}
5545
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5547 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5548 # Try some XSI features
5549 xsi_shell=no
5550 ( _lt_dummy="a/b/c"
5551   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5552       = c,a/b,b/c, \
5553     && eval 'test $(( 1 + 1 )) -eq 2 \
5554     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5555   && xsi_shell=yes
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5557 $as_echo "$xsi_shell" >&6; }
5558
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5561 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5562 lt_shell_append=no
5563 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5564     >/dev/null 2>&1 \
5565   && lt_shell_append=yes
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5567 $as_echo "$lt_shell_append" >&6; }
5568
5569
5570 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5571   lt_unset=unset
5572 else
5573   lt_unset=false
5574 fi
5575
5576
5577
5578
5579
5580 # test EBCDIC or ASCII
5581 case `echo X|tr X '\101'` in
5582  A) # ASCII based system
5583     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5584   lt_SP2NL='tr \040 \012'
5585   lt_NL2SP='tr \015\012 \040\040'
5586   ;;
5587  *) # EBCDIC based system
5588   lt_SP2NL='tr \100 \n'
5589   lt_NL2SP='tr \r\n \100\100'
5590   ;;
5591 esac
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5602 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5603 if ${lt_cv_to_host_file_cmd+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   case $host in
5607   *-*-mingw* )
5608     case $build in
5609       *-*-mingw* ) # actually msys
5610         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5611         ;;
5612       *-*-cygwin* )
5613         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5614         ;;
5615       * ) # otherwise, assume *nix
5616         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5617         ;;
5618     esac
5619     ;;
5620   *-*-cygwin* )
5621     case $build in
5622       *-*-mingw* ) # actually msys
5623         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5624         ;;
5625       *-*-cygwin* )
5626         lt_cv_to_host_file_cmd=func_convert_file_noop
5627         ;;
5628       * ) # otherwise, assume *nix
5629         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5630         ;;
5631     esac
5632     ;;
5633   * ) # unhandled hosts (and "normal" native builds)
5634     lt_cv_to_host_file_cmd=func_convert_file_noop
5635     ;;
5636 esac
5637
5638 fi
5639
5640 to_host_file_cmd=$lt_cv_to_host_file_cmd
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5642 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5643
5644
5645
5646
5647
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5649 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5650 if ${lt_cv_to_tool_file_cmd+:} false; then :
5651   $as_echo_n "(cached) " >&6
5652 else
5653   #assume ordinary cross tools, or native build.
5654 lt_cv_to_tool_file_cmd=func_convert_file_noop
5655 case $host in
5656   *-*-mingw* )
5657     case $build in
5658       *-*-mingw* ) # actually msys
5659         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5660         ;;
5661     esac
5662     ;;
5663 esac
5664
5665 fi
5666
5667 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5669 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5670
5671
5672
5673
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5676 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5677 if ${lt_cv_ld_reload_flag+:} false; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   lt_cv_ld_reload_flag='-r'
5681 fi
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5683 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5684 reload_flag=$lt_cv_ld_reload_flag
5685 case $reload_flag in
5686 "" | " "*) ;;
5687 *) reload_flag=" $reload_flag" ;;
5688 esac
5689 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5690 case $host_os in
5691   cygwin* | mingw* | pw32* | cegcc*)
5692     if test "$GCC" != yes; then
5693       reload_cmds=false
5694     fi
5695     ;;
5696   darwin*)
5697     if test "$GCC" = yes; then
5698       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5699     else
5700       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5701     fi
5702     ;;
5703 esac
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713 if test -n "$ac_tool_prefix"; then
5714   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5715 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_OBJDUMP+:} false; then :
5719   $as_echo_n "(cached) " >&6
5720 else
5721   if test -n "$OBJDUMP"; then
5722   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5726 do
5727   IFS=$as_save_IFS
5728   test -z "$as_dir" && as_dir=.
5729     for ac_exec_ext in '' $ac_executable_extensions; do
5730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5731     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733     break 2
5734   fi
5735 done
5736   done
5737 IFS=$as_save_IFS
5738
5739 fi
5740 fi
5741 OBJDUMP=$ac_cv_prog_OBJDUMP
5742 if test -n "$OBJDUMP"; then
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5744 $as_echo "$OBJDUMP" >&6; }
5745 else
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749
5750
5751 fi
5752 if test -z "$ac_cv_prog_OBJDUMP"; then
5753   ac_ct_OBJDUMP=$OBJDUMP
5754   # Extract the first word of "objdump", so it can be a program name with args.
5755 set dummy objdump; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   if test -n "$ac_ct_OBJDUMP"; then
5762   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769     for ac_exec_ext in '' $ac_executable_extensions; do
5770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776   done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5782 if test -n "$ac_ct_OBJDUMP"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5784 $as_echo "$ac_ct_OBJDUMP" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790   if test "x$ac_ct_OBJDUMP" = x; then
5791     OBJDUMP="false"
5792   else
5793     case $cross_compiling:$ac_tool_warned in
5794 yes:)
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5797 ac_tool_warned=yes ;;
5798 esac
5799     OBJDUMP=$ac_ct_OBJDUMP
5800   fi
5801 else
5802   OBJDUMP="$ac_cv_prog_OBJDUMP"
5803 fi
5804
5805 test -z "$OBJDUMP" && OBJDUMP=objdump
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5816 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5817 if ${lt_cv_deplibs_check_method+:} false; then :
5818   $as_echo_n "(cached) " >&6
5819 else
5820   lt_cv_file_magic_cmd='$MAGIC_CMD'
5821 lt_cv_file_magic_test_file=
5822 lt_cv_deplibs_check_method='unknown'
5823 # Need to set the preceding variable on all platforms that support
5824 # interlibrary dependencies.
5825 # 'none' -- dependencies not supported.
5826 # `unknown' -- same as none, but documents that we really don't know.
5827 # 'pass_all' -- all dependencies passed with no checks.
5828 # 'test_compile' -- check by making test program.
5829 # 'file_magic [[regex]]' -- check by looking for files in library path
5830 # which responds to the $file_magic_cmd with a given extended regex.
5831 # If you have `file' or equivalent on your system and you're not sure
5832 # whether `pass_all' will *always* work, you probably want this one.
5833
5834 case $host_os in
5835 aix[4-9]*)
5836   lt_cv_deplibs_check_method=pass_all
5837   ;;
5838
5839 beos*)
5840   lt_cv_deplibs_check_method=pass_all
5841   ;;
5842
5843 bsdi[45]*)
5844   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5845   lt_cv_file_magic_cmd='/usr/bin/file -L'
5846   lt_cv_file_magic_test_file=/shlib/libc.so
5847   ;;
5848
5849 cygwin*)
5850   # func_win32_libid is a shell function defined in ltmain.sh
5851   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5852   lt_cv_file_magic_cmd='func_win32_libid'
5853   ;;
5854
5855 mingw* | pw32*)
5856   # Base MSYS/MinGW do not provide the 'file' command needed by
5857   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5858   # unless we find 'file', for example because we are cross-compiling.
5859   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5860   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5861     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5862     lt_cv_file_magic_cmd='func_win32_libid'
5863   else
5864     # Keep this pattern in sync with the one in func_win32_libid.
5865     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5866     lt_cv_file_magic_cmd='$OBJDUMP -f'
5867   fi
5868   ;;
5869
5870 cegcc*)
5871   # use the weaker test based on 'objdump'. See mingw*.
5872   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5873   lt_cv_file_magic_cmd='$OBJDUMP -f'
5874   ;;
5875
5876 darwin* | rhapsody*)
5877   lt_cv_deplibs_check_method=pass_all
5878   ;;
5879
5880 freebsd* | dragonfly*)
5881   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5882     case $host_cpu in
5883     i*86 )
5884       # Not sure whether the presence of OpenBSD here was a mistake.
5885       # Let's accept both of them until this is cleared up.
5886       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5887       lt_cv_file_magic_cmd=/usr/bin/file
5888       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5889       ;;
5890     esac
5891   else
5892     lt_cv_deplibs_check_method=pass_all
5893   fi
5894   ;;
5895
5896 gnu*)
5897   lt_cv_deplibs_check_method=pass_all
5898   ;;
5899
5900 haiku*)
5901   lt_cv_deplibs_check_method=pass_all
5902   ;;
5903
5904 hpux10.20* | hpux11*)
5905   lt_cv_file_magic_cmd=/usr/bin/file
5906   case $host_cpu in
5907   ia64*)
5908     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5909     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5910     ;;
5911   hppa*64*)
5912     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]'
5913     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5914     ;;
5915   *)
5916     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5917     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5918     ;;
5919   esac
5920   ;;
5921
5922 interix[3-9]*)
5923   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5924   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5925   ;;
5926
5927 irix5* | irix6* | nonstopux*)
5928   case $LD in
5929   *-32|*"-32 ") libmagic=32-bit;;
5930   *-n32|*"-n32 ") libmagic=N32;;
5931   *-64|*"-64 ") libmagic=64-bit;;
5932   *) libmagic=never-match;;
5933   esac
5934   lt_cv_deplibs_check_method=pass_all
5935   ;;
5936
5937 # This must be glibc/ELF.
5938 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5939   lt_cv_deplibs_check_method=pass_all
5940   ;;
5941
5942 netbsd*)
5943   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5944     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5945   else
5946     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5947   fi
5948   ;;
5949
5950 newos6*)
5951   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5952   lt_cv_file_magic_cmd=/usr/bin/file
5953   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5954   ;;
5955
5956 *nto* | *qnx*)
5957   lt_cv_deplibs_check_method=pass_all
5958   ;;
5959
5960 openbsd*)
5961   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5962     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5963   else
5964     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5965   fi
5966   ;;
5967
5968 osf3* | osf4* | osf5*)
5969   lt_cv_deplibs_check_method=pass_all
5970   ;;
5971
5972 rdos*)
5973   lt_cv_deplibs_check_method=pass_all
5974   ;;
5975
5976 solaris*)
5977   lt_cv_deplibs_check_method=pass_all
5978   ;;
5979
5980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5981   lt_cv_deplibs_check_method=pass_all
5982   ;;
5983
5984 sysv4 | sysv4.3*)
5985   case $host_vendor in
5986   motorola)
5987     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]'
5988     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5989     ;;
5990   ncr)
5991     lt_cv_deplibs_check_method=pass_all
5992     ;;
5993   sequent)
5994     lt_cv_file_magic_cmd='/bin/file'
5995     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5996     ;;
5997   sni)
5998     lt_cv_file_magic_cmd='/bin/file'
5999     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6000     lt_cv_file_magic_test_file=/lib/libc.so
6001     ;;
6002   siemens)
6003     lt_cv_deplibs_check_method=pass_all
6004     ;;
6005   pc)
6006     lt_cv_deplibs_check_method=pass_all
6007     ;;
6008   esac
6009   ;;
6010
6011 tpf*)
6012   lt_cv_deplibs_check_method=pass_all
6013   ;;
6014 esac
6015
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6018 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6019
6020 file_magic_glob=
6021 want_nocaseglob=no
6022 if test "$build" = "$host"; then
6023   case $host_os in
6024   mingw* | pw32*)
6025     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6026       want_nocaseglob=yes
6027     else
6028       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6029     fi
6030     ;;
6031   esac
6032 fi
6033
6034 file_magic_cmd=$lt_cv_file_magic_cmd
6035 deplibs_check_method=$lt_cv_deplibs_check_method
6036 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059 if test -n "$ac_tool_prefix"; then
6060   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6061 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if ${ac_cv_prog_DLLTOOL+:} false; then :
6065   $as_echo_n "(cached) " >&6
6066 else
6067   if test -n "$DLLTOOL"; then
6068   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073   IFS=$as_save_IFS
6074   test -z "$as_dir" && as_dir=.
6075     for ac_exec_ext in '' $ac_executable_extensions; do
6076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079     break 2
6080   fi
6081 done
6082   done
6083 IFS=$as_save_IFS
6084
6085 fi
6086 fi
6087 DLLTOOL=$ac_cv_prog_DLLTOOL
6088 if test -n "$DLLTOOL"; then
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6090 $as_echo "$DLLTOOL" >&6; }
6091 else
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095
6096
6097 fi
6098 if test -z "$ac_cv_prog_DLLTOOL"; then
6099   ac_ct_DLLTOOL=$DLLTOOL
6100   # Extract the first word of "dlltool", so it can be a program name with args.
6101 set dummy dlltool; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6105   $as_echo_n "(cached) " >&6
6106 else
6107   if test -n "$ac_ct_DLLTOOL"; then
6108   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113   IFS=$as_save_IFS
6114   test -z "$as_dir" && as_dir=.
6115     for ac_exec_ext in '' $ac_executable_extensions; do
6116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119     break 2
6120   fi
6121 done
6122   done
6123 IFS=$as_save_IFS
6124
6125 fi
6126 fi
6127 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6128 if test -n "$ac_ct_DLLTOOL"; then
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6130 $as_echo "$ac_ct_DLLTOOL" >&6; }
6131 else
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6134 fi
6135
6136   if test "x$ac_ct_DLLTOOL" = x; then
6137     DLLTOOL="false"
6138   else
6139     case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6144 esac
6145     DLLTOOL=$ac_ct_DLLTOOL
6146   fi
6147 else
6148   DLLTOOL="$ac_cv_prog_DLLTOOL"
6149 fi
6150
6151 test -z "$DLLTOOL" && DLLTOOL=dlltool
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6163 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6164 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6165   $as_echo_n "(cached) " >&6
6166 else
6167   lt_cv_sharedlib_from_linklib_cmd='unknown'
6168
6169 case $host_os in
6170 cygwin* | mingw* | pw32* | cegcc*)
6171   # two different shell functions defined in ltmain.sh
6172   # decide which to use based on capabilities of $DLLTOOL
6173   case `$DLLTOOL --help 2>&1` in
6174   *--identify-strict*)
6175     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6176     ;;
6177   *)
6178     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6179     ;;
6180   esac
6181   ;;
6182 *)
6183   # fallback: assume linklib IS sharedlib
6184   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6185   ;;
6186 esac
6187
6188 fi
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6190 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6191 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6192 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6193
6194
6195
6196
6197
6198
6199
6200 if test -n "$ac_tool_prefix"; then
6201   for ac_prog in ar
6202   do
6203     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if ${ac_cv_prog_AR+:} false; then :
6208   $as_echo_n "(cached) " >&6
6209 else
6210   if test -n "$AR"; then
6211   ac_cv_prog_AR="$AR" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216   IFS=$as_save_IFS
6217   test -z "$as_dir" && as_dir=.
6218     for ac_exec_ext in '' $ac_executable_extensions; do
6219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222     break 2
6223   fi
6224 done
6225   done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 AR=$ac_cv_prog_AR
6231 if test -n "$AR"; then
6232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6233 $as_echo "$AR" >&6; }
6234 else
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6237 fi
6238
6239
6240     test -n "$AR" && break
6241   done
6242 fi
6243 if test -z "$AR"; then
6244   ac_ct_AR=$AR
6245   for ac_prog in ar
6246 do
6247   # Extract the first word of "$ac_prog", so it can be a program name with args.
6248 set dummy $ac_prog; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   if test -n "$ac_ct_AR"; then
6255   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260   IFS=$as_save_IFS
6261   test -z "$as_dir" && as_dir=.
6262     for ac_exec_ext in '' $ac_executable_extensions; do
6263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264     ac_cv_prog_ac_ct_AR="$ac_prog"
6265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266     break 2
6267   fi
6268 done
6269   done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6275 if test -n "$ac_ct_AR"; then
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6277 $as_echo "$ac_ct_AR" >&6; }
6278 else
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282
6283
6284   test -n "$ac_ct_AR" && break
6285 done
6286
6287   if test "x$ac_ct_AR" = x; then
6288     AR="false"
6289   else
6290     case $cross_compiling:$ac_tool_warned in
6291 yes:)
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6294 ac_tool_warned=yes ;;
6295 esac
6296     AR=$ac_ct_AR
6297   fi
6298 fi
6299
6300 : ${AR=ar}
6301 : ${AR_FLAGS=cru}
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6314 $as_echo_n "checking for archiver @FILE support... " >&6; }
6315 if ${lt_cv_ar_at_file+:} false; then :
6316   $as_echo_n "(cached) " >&6
6317 else
6318   lt_cv_ar_at_file=no
6319    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h.  */
6321
6322 int
6323 main ()
6324 {
6325
6326   ;
6327   return 0;
6328 }
6329 _ACEOF
6330 if ac_fn_cxx_try_compile "$LINENO"; then :
6331   echo conftest.$ac_objext > conftest.lst
6332       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6333       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6334   (eval $lt_ar_try) 2>&5
6335   ac_status=$?
6336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6337   test $ac_status = 0; }
6338       if test "$ac_status" -eq 0; then
6339         # Ensure the archiver fails upon bogus file names.
6340         rm -f conftest.$ac_objext libconftest.a
6341         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6342   (eval $lt_ar_try) 2>&5
6343   ac_status=$?
6344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6345   test $ac_status = 0; }
6346         if test "$ac_status" -ne 0; then
6347           lt_cv_ar_at_file=@
6348         fi
6349       fi
6350       rm -f conftest.* libconftest.a
6351
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6357 $as_echo "$lt_cv_ar_at_file" >&6; }
6358
6359 if test "x$lt_cv_ar_at_file" = xno; then
6360   archiver_list_spec=
6361 else
6362   archiver_list_spec=$lt_cv_ar_at_file
6363 fi
6364
6365
6366
6367
6368
6369
6370
6371 if test -n "$ac_tool_prefix"; then
6372   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}strip; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_STRIP+:} false; then :
6377   $as_echo_n "(cached) " >&6
6378 else
6379   if test -n "$STRIP"; then
6380   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387     for ac_exec_ext in '' $ac_executable_extensions; do
6388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394   done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 STRIP=$ac_cv_prog_STRIP
6400 if test -n "$STRIP"; then
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6402 $as_echo "$STRIP" >&6; }
6403 else
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408
6409 fi
6410 if test -z "$ac_cv_prog_STRIP"; then
6411   ac_ct_STRIP=$STRIP
6412   # Extract the first word of "strip", so it can be a program name with args.
6413 set dummy strip; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6417   $as_echo_n "(cached) " >&6
6418 else
6419   if test -n "$ac_ct_STRIP"; then
6420   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   test -z "$as_dir" && as_dir=.
6427     for ac_exec_ext in '' $ac_executable_extensions; do
6428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429     ac_cv_prog_ac_ct_STRIP="strip"
6430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431     break 2
6432   fi
6433 done
6434   done
6435 IFS=$as_save_IFS
6436
6437 fi
6438 fi
6439 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6440 if test -n "$ac_ct_STRIP"; then
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6442 $as_echo "$ac_ct_STRIP" >&6; }
6443 else
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6446 fi
6447
6448   if test "x$ac_ct_STRIP" = x; then
6449     STRIP=":"
6450   else
6451     case $cross_compiling:$ac_tool_warned in
6452 yes:)
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455 ac_tool_warned=yes ;;
6456 esac
6457     STRIP=$ac_ct_STRIP
6458   fi
6459 else
6460   STRIP="$ac_cv_prog_STRIP"
6461 fi
6462
6463 test -z "$STRIP" && STRIP=:
6464
6465
6466
6467
6468
6469
6470 if test -n "$ac_tool_prefix"; then
6471   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_RANLIB+:} false; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   if test -n "$RANLIB"; then
6479   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486     for ac_exec_ext in '' $ac_executable_extensions; do
6487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493   done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 RANLIB=$ac_cv_prog_RANLIB
6499 if test -n "$RANLIB"; then
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6501 $as_echo "$RANLIB" >&6; }
6502 else
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507
6508 fi
6509 if test -z "$ac_cv_prog_RANLIB"; then
6510   ac_ct_RANLIB=$RANLIB
6511   # Extract the first word of "ranlib", so it can be a program name with args.
6512 set dummy ranlib; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   if test -n "$ac_ct_RANLIB"; then
6519   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526     for ac_exec_ext in '' $ac_executable_extensions; do
6527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528     ac_cv_prog_ac_ct_RANLIB="ranlib"
6529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533   done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6539 if test -n "$ac_ct_RANLIB"; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6541 $as_echo "$ac_ct_RANLIB" >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546
6547   if test "x$ac_ct_RANLIB" = x; then
6548     RANLIB=":"
6549   else
6550     case $cross_compiling:$ac_tool_warned in
6551 yes:)
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554 ac_tool_warned=yes ;;
6555 esac
6556     RANLIB=$ac_ct_RANLIB
6557   fi
6558 else
6559   RANLIB="$ac_cv_prog_RANLIB"
6560 fi
6561
6562 test -z "$RANLIB" && RANLIB=:
6563
6564
6565
6566
6567
6568
6569 # Determine commands to create old-style static archives.
6570 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6571 old_postinstall_cmds='chmod 644 $oldlib'
6572 old_postuninstall_cmds=
6573
6574 if test -n "$RANLIB"; then
6575   case $host_os in
6576   openbsd*)
6577     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6578     ;;
6579   *)
6580     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6581     ;;
6582   esac
6583   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6584 fi
6585
6586 case $host_os in
6587   darwin*)
6588     lock_old_archive_extraction=yes ;;
6589   *)
6590     lock_old_archive_extraction=no ;;
6591 esac
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
6628
6629
6630
6631 # If no C compiler was specified, use CC.
6632 LTCC=${LTCC-"$CC"}
6633
6634 # If no C compiler flags were specified, use CFLAGS.
6635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6636
6637 # Allow CC to be a program name with arguments.
6638 compiler=$CC
6639
6640
6641 # Check for command to grab the raw symbol name followed by C symbol from nm.
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6643 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6644 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6645   $as_echo_n "(cached) " >&6
6646 else
6647
6648 # These are sane defaults that work on at least a few old systems.
6649 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6650
6651 # Character class describing NM global symbol codes.
6652 symcode='[BCDEGRST]'
6653
6654 # Regexp to match symbols that can be accessed directly from C.
6655 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6656
6657 # Define system-specific variables.
6658 case $host_os in
6659 aix*)
6660   symcode='[BCDT]'
6661   ;;
6662 cygwin* | mingw* | pw32* | cegcc*)
6663   symcode='[ABCDGISTW]'
6664   ;;
6665 hpux*)
6666   if test "$host_cpu" = ia64; then
6667     symcode='[ABCDEGRST]'
6668   fi
6669   ;;
6670 irix* | nonstopux*)
6671   symcode='[BCDEGRST]'
6672   ;;
6673 osf*)
6674   symcode='[BCDEGQRST]'
6675   ;;
6676 solaris*)
6677   symcode='[BDRT]'
6678   ;;
6679 sco3.2v5*)
6680   symcode='[DT]'
6681   ;;
6682 sysv4.2uw2*)
6683   symcode='[DT]'
6684   ;;
6685 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6686   symcode='[ABDT]'
6687   ;;
6688 sysv4)
6689   symcode='[DFNSTU]'
6690   ;;
6691 esac
6692
6693 # If we're using GNU nm, then use its standard symbol codes.
6694 case `$NM -V 2>&1` in
6695 *GNU* | *'with BFD'*)
6696   symcode='[ABCDGIRSTW]' ;;
6697 esac
6698
6699 # Transform an extracted symbol line into a proper C declaration.
6700 # Some systems (esp. on ia64) link data and code symbols differently,
6701 # so use this general approach.
6702 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6703
6704 # Transform an extracted symbol line into symbol name and symbol address
6705 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6706 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6707
6708 # Handle CRLF in mingw tool chain
6709 opt_cr=
6710 case $build_os in
6711 mingw*)
6712   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6713   ;;
6714 esac
6715
6716 # Try without a prefix underscore, then with it.
6717 for ac_symprfx in "" "_"; do
6718
6719   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6720   symxfrm="\\1 $ac_symprfx\\2 \\2"
6721
6722   # Write the raw and C identifiers.
6723   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6724     # Fake it for dumpbin and say T for any non-static function
6725     # and D for any global variable.
6726     # Also find C++ and __fastcall symbols from MSVC++,
6727     # which start with @ or ?.
6728     lt_cv_sys_global_symbol_pipe="$AWK '"\
6729 "     {last_section=section; section=\$ 3};"\
6730 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6731 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6732 "     \$ 0!~/External *\|/{next};"\
6733 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6734 "     {if(hide[section]) next};"\
6735 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6736 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6737 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6738 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6739 "     ' prfx=^$ac_symprfx"
6740   else
6741     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6742   fi
6743   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6744
6745   # Check to see that the pipe works correctly.
6746   pipe_works=no
6747
6748   rm -f conftest*
6749   cat > conftest.$ac_ext <<_LT_EOF
6750 #ifdef __cplusplus
6751 extern "C" {
6752 #endif
6753 char nm_test_var;
6754 void nm_test_func(void);
6755 void nm_test_func(void){}
6756 #ifdef __cplusplus
6757 }
6758 #endif
6759 int main(){nm_test_var='a';nm_test_func();return(0);}
6760 _LT_EOF
6761
6762   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6763   (eval $ac_compile) 2>&5
6764   ac_status=$?
6765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766   test $ac_status = 0; }; then
6767     # Now try to grab the symbols.
6768     nlist=conftest.nm
6769     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6770   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6771   ac_status=$?
6772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773   test $ac_status = 0; } && test -s "$nlist"; then
6774       # Try sorting and uniquifying the output.
6775       if sort "$nlist" | uniq > "$nlist"T; then
6776         mv -f "$nlist"T "$nlist"
6777       else
6778         rm -f "$nlist"T
6779       fi
6780
6781       # Make sure that we snagged all the symbols we need.
6782       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6783         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6784           cat <<_LT_EOF > conftest.$ac_ext
6785 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6786 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6787 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6788    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6789 # define LT_DLSYM_CONST
6790 #elif defined(__osf__)
6791 /* This system does not cope well with relocations in const data.  */
6792 # define LT_DLSYM_CONST
6793 #else
6794 # define LT_DLSYM_CONST const
6795 #endif
6796
6797 #ifdef __cplusplus
6798 extern "C" {
6799 #endif
6800
6801 _LT_EOF
6802           # Now generate the symbol file.
6803           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6804
6805           cat <<_LT_EOF >> conftest.$ac_ext
6806
6807 /* The mapping between symbol names and symbols.  */
6808 LT_DLSYM_CONST struct {
6809   const char *name;
6810   void       *address;
6811 }
6812 lt__PROGRAM__LTX_preloaded_symbols[] =
6813 {
6814   { "@PROGRAM@", (void *) 0 },
6815 _LT_EOF
6816           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6817           cat <<\_LT_EOF >> conftest.$ac_ext
6818   {0, (void *) 0}
6819 };
6820
6821 /* This works around a problem in FreeBSD linker */
6822 #ifdef FREEBSD_WORKAROUND
6823 static const void *lt_preloaded_setup() {
6824   return lt__PROGRAM__LTX_preloaded_symbols;
6825 }
6826 #endif
6827
6828 #ifdef __cplusplus
6829 }
6830 #endif
6831 _LT_EOF
6832           # Now try linking the two files.
6833           mv conftest.$ac_objext conftstm.$ac_objext
6834           lt_globsym_save_LIBS=$LIBS
6835           lt_globsym_save_CFLAGS=$CFLAGS
6836           LIBS="conftstm.$ac_objext"
6837           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6838           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6839   (eval $ac_link) 2>&5
6840   ac_status=$?
6841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6842   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6843             pipe_works=yes
6844           fi
6845           LIBS=$lt_globsym_save_LIBS
6846           CFLAGS=$lt_globsym_save_CFLAGS
6847         else
6848           echo "cannot find nm_test_func in $nlist" >&5
6849         fi
6850       else
6851         echo "cannot find nm_test_var in $nlist" >&5
6852       fi
6853     else
6854       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6855     fi
6856   else
6857     echo "$progname: failed program was:" >&5
6858     cat conftest.$ac_ext >&5
6859   fi
6860   rm -rf conftest* conftst*
6861
6862   # Do not use the global_symbol_pipe unless it works.
6863   if test "$pipe_works" = yes; then
6864     break
6865   else
6866     lt_cv_sys_global_symbol_pipe=
6867   fi
6868 done
6869
6870 fi
6871
6872 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6873   lt_cv_sys_global_symbol_to_cdecl=
6874 fi
6875 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6877 $as_echo "failed" >&6; }
6878 else
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6880 $as_echo "ok" >&6; }
6881 fi
6882
6883 # Response file support.
6884 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6885   nm_file_list_spec='@'
6886 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6887   nm_file_list_spec='@'
6888 fi
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6917 $as_echo_n "checking for sysroot... " >&6; }
6918
6919 # Check whether --with-sysroot was given.
6920 if test "${with_sysroot+set}" = set; then :
6921   withval=$with_sysroot;
6922 else
6923   with_sysroot=no
6924 fi
6925
6926
6927 lt_sysroot=
6928 case ${with_sysroot} in #(
6929  yes)
6930    if test "$GCC" = yes; then
6931      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6932    fi
6933    ;; #(
6934  /*)
6935    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6936    ;; #(
6937  no|'')
6938    ;; #(
6939  *)
6940    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6941 $as_echo "${with_sysroot}" >&6; }
6942    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6943    ;;
6944 esac
6945
6946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6947 $as_echo "${lt_sysroot:-no}" >&6; }
6948
6949
6950
6951
6952
6953
6954 # Check whether --enable-libtool-lock was given.
6955 if test "${enable_libtool_lock+set}" = set; then :
6956   enableval=$enable_libtool_lock;
6957 fi
6958
6959 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6960
6961 # Some flags need to be propagated to the compiler or linker for good
6962 # libtool support.
6963 case $host in
6964 ia64-*-hpux*)
6965   # Find out which ABI we are using.
6966   echo 'int i;' > conftest.$ac_ext
6967   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6968   (eval $ac_compile) 2>&5
6969   ac_status=$?
6970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6971   test $ac_status = 0; }; then
6972     case `/usr/bin/file conftest.$ac_objext` in
6973       *ELF-32*)
6974         HPUX_IA64_MODE="32"
6975         ;;
6976       *ELF-64*)
6977         HPUX_IA64_MODE="64"
6978         ;;
6979     esac
6980   fi
6981   rm -rf conftest*
6982   ;;
6983 *-*-irix6*)
6984   # Find out which ABI we are using.
6985   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6986   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6987   (eval $ac_compile) 2>&5
6988   ac_status=$?
6989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990   test $ac_status = 0; }; then
6991     if test "$lt_cv_prog_gnu_ld" = yes; then
6992       case `/usr/bin/file conftest.$ac_objext` in
6993         *32-bit*)
6994           LD="${LD-ld} -melf32bsmip"
6995           ;;
6996         *N32*)
6997           LD="${LD-ld} -melf32bmipn32"
6998           ;;
6999         *64-bit*)
7000           LD="${LD-ld} -melf64bmip"
7001         ;;
7002       esac
7003     else
7004       case `/usr/bin/file conftest.$ac_objext` in
7005         *32-bit*)
7006           LD="${LD-ld} -32"
7007           ;;
7008         *N32*)
7009           LD="${LD-ld} -n32"
7010           ;;
7011         *64-bit*)
7012           LD="${LD-ld} -64"
7013           ;;
7014       esac
7015     fi
7016   fi
7017   rm -rf conftest*
7018   ;;
7019
7020 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7021 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7022   # Find out which ABI we are using.
7023   echo 'int i;' > conftest.$ac_ext
7024   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7025   (eval $ac_compile) 2>&5
7026   ac_status=$?
7027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028   test $ac_status = 0; }; then
7029     case `/usr/bin/file conftest.o` in
7030       *32-bit*)
7031         case $host in
7032           x86_64-*kfreebsd*-gnu)
7033             LD="${LD-ld} -m elf_i386_fbsd"
7034             ;;
7035           x86_64-*linux*)
7036             LD="${LD-ld} -m elf_i386"
7037             ;;
7038           ppc64-*linux*|powerpc64-*linux*)
7039             LD="${LD-ld} -m elf32ppclinux"
7040             ;;
7041           s390x-*linux*)
7042             LD="${LD-ld} -m elf_s390"
7043             ;;
7044           sparc64-*linux*)
7045             LD="${LD-ld} -m elf32_sparc"
7046             ;;
7047         esac
7048         ;;
7049       *64-bit*)
7050         case $host in
7051           x86_64-*kfreebsd*-gnu)
7052             LD="${LD-ld} -m elf_x86_64_fbsd"
7053             ;;
7054           x86_64-*linux*)
7055             LD="${LD-ld} -m elf_x86_64"
7056             ;;
7057           ppc*-*linux*|powerpc*-*linux*)
7058             LD="${LD-ld} -m elf64ppc"
7059             ;;
7060           s390*-*linux*|s390*-*tpf*)
7061             LD="${LD-ld} -m elf64_s390"
7062             ;;
7063           sparc*-*linux*)
7064             LD="${LD-ld} -m elf64_sparc"
7065             ;;
7066         esac
7067         ;;
7068     esac
7069   fi
7070   rm -rf conftest*
7071   ;;
7072
7073 *-*-sco3.2v5*)
7074   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7075   SAVE_CFLAGS="$CFLAGS"
7076   CFLAGS="$CFLAGS -belf"
7077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7078 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7079 if ${lt_cv_cc_needs_belf+:} false; then :
7080   $as_echo_n "(cached) " >&6
7081 else
7082   ac_ext=c
7083 ac_cpp='$CPP $CPPFLAGS'
7084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7087
7088      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h.  */
7090
7091 int
7092 main ()
7093 {
7094
7095   ;
7096   return 0;
7097 }
7098 _ACEOF
7099 if ac_fn_c_try_link "$LINENO"; then :
7100   lt_cv_cc_needs_belf=yes
7101 else
7102   lt_cv_cc_needs_belf=no
7103 fi
7104 rm -f core conftest.err conftest.$ac_objext \
7105     conftest$ac_exeext conftest.$ac_ext
7106      ac_ext=c
7107 ac_cpp='$CPP $CPPFLAGS'
7108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7111
7112 fi
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7114 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7115   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7116     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7117     CFLAGS="$SAVE_CFLAGS"
7118   fi
7119   ;;
7120 *-*solaris*)
7121   # Find out which ABI we are using.
7122   echo 'int i;' > conftest.$ac_ext
7123   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7124   (eval $ac_compile) 2>&5
7125   ac_status=$?
7126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7127   test $ac_status = 0; }; then
7128     case `/usr/bin/file conftest.o` in
7129     *64-bit*)
7130       case $lt_cv_prog_gnu_ld in
7131       yes*)
7132         case $host in
7133         i?86-*-solaris*)
7134           LD="${LD-ld} -m elf_x86_64"
7135           ;;
7136         sparc*-*-solaris*)
7137           LD="${LD-ld} -m elf64_sparc"
7138           ;;
7139         esac
7140         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7141         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7142           LD="${LD-ld}_sol2"
7143         fi
7144         ;;
7145       *)
7146         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7147           LD="${LD-ld} -64"
7148         fi
7149         ;;
7150       esac
7151       ;;
7152     esac
7153   fi
7154   rm -rf conftest*
7155   ;;
7156 esac
7157
7158 need_locks="$enable_libtool_lock"
7159
7160 if test -n "$ac_tool_prefix"; then
7161   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}mt; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7166   $as_echo_n "(cached) " >&6
7167 else
7168   if test -n "$MANIFEST_TOOL"; then
7169   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176     for ac_exec_ext in '' $ac_executable_extensions; do
7177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183   done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7189 if test -n "$MANIFEST_TOOL"; then
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7191 $as_echo "$MANIFEST_TOOL" >&6; }
7192 else
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197
7198 fi
7199 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7200   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7201   # Extract the first word of "mt", so it can be a program name with args.
7202 set dummy mt; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7206   $as_echo_n "(cached) " >&6
7207 else
7208   if test -n "$ac_ct_MANIFEST_TOOL"; then
7209   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216     for ac_exec_ext in '' $ac_executable_extensions; do
7217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221   fi
7222 done
7223   done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7229 if test -n "$ac_ct_MANIFEST_TOOL"; then
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7231 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7232 else
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7238     MANIFEST_TOOL=":"
7239   else
7240     case $cross_compiling:$ac_tool_warned in
7241 yes:)
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7245 esac
7246     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7247   fi
7248 else
7249   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7250 fi
7251
7252 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7254 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7255 if ${lt_cv_path_mainfest_tool+:} false; then :
7256   $as_echo_n "(cached) " >&6
7257 else
7258   lt_cv_path_mainfest_tool=no
7259   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7260   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7261   cat conftest.err >&5
7262   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7263     lt_cv_path_mainfest_tool=yes
7264   fi
7265   rm -f conftest*
7266 fi
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7268 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7269 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7270   MANIFEST_TOOL=:
7271 fi
7272
7273
7274
7275
7276
7277
7278   case $host_os in
7279     rhapsody* | darwin*)
7280     if test -n "$ac_tool_prefix"; then
7281   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   if test -n "$DSYMUTIL"; then
7289   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294   IFS=$as_save_IFS
7295   test -z "$as_dir" && as_dir=.
7296     for ac_exec_ext in '' $ac_executable_extensions; do
7297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300     break 2
7301   fi
7302 done
7303   done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7309 if test -n "$DSYMUTIL"; then
7310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7311 $as_echo "$DSYMUTIL" >&6; }
7312 else
7313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317
7318 fi
7319 if test -z "$ac_cv_prog_DSYMUTIL"; then
7320   ac_ct_DSYMUTIL=$DSYMUTIL
7321   # Extract the first word of "dsymutil", so it can be a program name with args.
7322 set dummy dsymutil; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7326   $as_echo_n "(cached) " >&6
7327 else
7328   if test -n "$ac_ct_DSYMUTIL"; then
7329   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336     for ac_exec_ext in '' $ac_executable_extensions; do
7337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343   done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7349 if test -n "$ac_ct_DSYMUTIL"; then
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7351 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7352 else
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357   if test "x$ac_ct_DSYMUTIL" = x; then
7358     DSYMUTIL=":"
7359   else
7360     case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366     DSYMUTIL=$ac_ct_DSYMUTIL
7367   fi
7368 else
7369   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7370 fi
7371
7372     if test -n "$ac_tool_prefix"; then
7373   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_NMEDIT+:} false; then :
7378   $as_echo_n "(cached) " >&6
7379 else
7380   if test -n "$NMEDIT"; then
7381   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388     for ac_exec_ext in '' $ac_executable_extensions; do
7389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7390     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395   done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 NMEDIT=$ac_cv_prog_NMEDIT
7401 if test -n "$NMEDIT"; then
7402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7403 $as_echo "$NMEDIT" >&6; }
7404 else
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409
7410 fi
7411 if test -z "$ac_cv_prog_NMEDIT"; then
7412   ac_ct_NMEDIT=$NMEDIT
7413   # Extract the first word of "nmedit", so it can be a program name with args.
7414 set dummy nmedit; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7418   $as_echo_n "(cached) " >&6
7419 else
7420   if test -n "$ac_ct_NMEDIT"; then
7421   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426   IFS=$as_save_IFS
7427   test -z "$as_dir" && as_dir=.
7428     for ac_exec_ext in '' $ac_executable_extensions; do
7429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432     break 2
7433   fi
7434 done
7435   done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7441 if test -n "$ac_ct_NMEDIT"; then
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7443 $as_echo "$ac_ct_NMEDIT" >&6; }
7444 else
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448
7449   if test "x$ac_ct_NMEDIT" = x; then
7450     NMEDIT=":"
7451   else
7452     case $cross_compiling:$ac_tool_warned in
7453 yes:)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456 ac_tool_warned=yes ;;
7457 esac
7458     NMEDIT=$ac_ct_NMEDIT
7459   fi
7460 else
7461   NMEDIT="$ac_cv_prog_NMEDIT"
7462 fi
7463
7464     if test -n "$ac_tool_prefix"; then
7465   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7466 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_LIPO+:} false; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   if test -n "$LIPO"; then
7473   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480     for ac_exec_ext in '' $ac_executable_extensions; do
7481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7482     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487   done
7488 IFS=$as_save_IFS
7489
7490 fi
7491 fi
7492 LIPO=$ac_cv_prog_LIPO
7493 if test -n "$LIPO"; then
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7495 $as_echo "$LIPO" >&6; }
7496 else
7497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 fi
7500
7501
7502 fi
7503 if test -z "$ac_cv_prog_LIPO"; then
7504   ac_ct_LIPO=$LIPO
7505   # Extract the first word of "lipo", so it can be a program name with args.
7506 set dummy lipo; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7510   $as_echo_n "(cached) " >&6
7511 else
7512   if test -n "$ac_ct_LIPO"; then
7513   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520     for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_prog_ac_ct_LIPO="lipo"
7523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527   done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7533 if test -n "$ac_ct_LIPO"; then
7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7535 $as_echo "$ac_ct_LIPO" >&6; }
7536 else
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 fi
7540
7541   if test "x$ac_ct_LIPO" = x; then
7542     LIPO=":"
7543   else
7544     case $cross_compiling:$ac_tool_warned in
7545 yes:)
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548 ac_tool_warned=yes ;;
7549 esac
7550     LIPO=$ac_ct_LIPO
7551   fi
7552 else
7553   LIPO="$ac_cv_prog_LIPO"
7554 fi
7555
7556     if test -n "$ac_tool_prefix"; then
7557   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7558 set dummy ${ac_tool_prefix}otool; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_prog_OTOOL+:} false; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   if test -n "$OTOOL"; then
7565   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570   IFS=$as_save_IFS
7571   test -z "$as_dir" && as_dir=.
7572     for ac_exec_ext in '' $ac_executable_extensions; do
7573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7574     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576     break 2
7577   fi
7578 done
7579   done
7580 IFS=$as_save_IFS
7581
7582 fi
7583 fi
7584 OTOOL=$ac_cv_prog_OTOOL
7585 if test -n "$OTOOL"; then
7586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7587 $as_echo "$OTOOL" >&6; }
7588 else
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 fi
7592
7593
7594 fi
7595 if test -z "$ac_cv_prog_OTOOL"; then
7596   ac_ct_OTOOL=$OTOOL
7597   # Extract the first word of "otool", so it can be a program name with args.
7598 set dummy otool; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7602   $as_echo_n "(cached) " >&6
7603 else
7604   if test -n "$ac_ct_OTOOL"; then
7605   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614     ac_cv_prog_ac_ct_OTOOL="otool"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621
7622 fi
7623 fi
7624 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7625 if test -n "$ac_ct_OTOOL"; then
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7627 $as_echo "$ac_ct_OTOOL" >&6; }
7628 else
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632
7633   if test "x$ac_ct_OTOOL" = x; then
7634     OTOOL=":"
7635   else
7636     case $cross_compiling:$ac_tool_warned in
7637 yes:)
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7640 ac_tool_warned=yes ;;
7641 esac
7642     OTOOL=$ac_ct_OTOOL
7643   fi
7644 else
7645   OTOOL="$ac_cv_prog_OTOOL"
7646 fi
7647
7648     if test -n "$ac_tool_prefix"; then
7649   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7650 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if ${ac_cv_prog_OTOOL64+:} false; then :
7654   $as_echo_n "(cached) " >&6
7655 else
7656   if test -n "$OTOOL64"; then
7657   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662   IFS=$as_save_IFS
7663   test -z "$as_dir" && as_dir=.
7664     for ac_exec_ext in '' $ac_executable_extensions; do
7665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7666     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668     break 2
7669   fi
7670 done
7671   done
7672 IFS=$as_save_IFS
7673
7674 fi
7675 fi
7676 OTOOL64=$ac_cv_prog_OTOOL64
7677 if test -n "$OTOOL64"; then
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7679 $as_echo "$OTOOL64" >&6; }
7680 else
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7683 fi
7684
7685
7686 fi
7687 if test -z "$ac_cv_prog_OTOOL64"; then
7688   ac_ct_OTOOL64=$OTOOL64
7689   # Extract the first word of "otool64", so it can be a program name with args.
7690 set dummy otool64; ac_word=$2
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692 $as_echo_n "checking for $ac_word... " >&6; }
7693 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7694   $as_echo_n "(cached) " >&6
7695 else
7696   if test -n "$ac_ct_OTOOL64"; then
7697   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702   IFS=$as_save_IFS
7703   test -z "$as_dir" && as_dir=.
7704     for ac_exec_ext in '' $ac_executable_extensions; do
7705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7706     ac_cv_prog_ac_ct_OTOOL64="otool64"
7707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708     break 2
7709   fi
7710 done
7711   done
7712 IFS=$as_save_IFS
7713
7714 fi
7715 fi
7716 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7717 if test -n "$ac_ct_OTOOL64"; then
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7719 $as_echo "$ac_ct_OTOOL64" >&6; }
7720 else
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722 $as_echo "no" >&6; }
7723 fi
7724
7725   if test "x$ac_ct_OTOOL64" = x; then
7726     OTOOL64=":"
7727   else
7728     case $cross_compiling:$ac_tool_warned in
7729 yes:)
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7732 ac_tool_warned=yes ;;
7733 esac
7734     OTOOL64=$ac_ct_OTOOL64
7735   fi
7736 else
7737   OTOOL64="$ac_cv_prog_OTOOL64"
7738 fi
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7767 $as_echo_n "checking for -single_module linker flag... " >&6; }
7768 if ${lt_cv_apple_cc_single_mod+:} false; then :
7769   $as_echo_n "(cached) " >&6
7770 else
7771   lt_cv_apple_cc_single_mod=no
7772       if test -z "${LT_MULTI_MODULE}"; then
7773         # By default we will add the -single_module flag. You can override
7774         # by either setting the environment variable LT_MULTI_MODULE
7775         # non-empty at configure time, or by adding -multi_module to the
7776         # link flags.
7777         rm -rf libconftest.dylib*
7778         echo "int foo(void){return 1;}" > conftest.c
7779         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7780 -dynamiclib -Wl,-single_module conftest.c" >&5
7781         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7782           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7783         _lt_result=$?
7784         # If there is a non-empty error log, and "single_module"
7785         # appears in it, assume the flag caused a linker warning
7786         if test -s conftest.err && $GREP single_module conftest.err; then
7787           cat conftest.err >&5
7788         # Otherwise, if the output was created with a 0 exit code from
7789         # the compiler, it worked.
7790         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7791           lt_cv_apple_cc_single_mod=yes
7792         else
7793           cat conftest.err >&5
7794         fi
7795         rm -rf libconftest.dylib*
7796         rm -f conftest.*
7797       fi
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7800 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7801
7802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7803 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7804 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7805   $as_echo_n "(cached) " >&6
7806 else
7807   lt_cv_ld_exported_symbols_list=no
7808       save_LDFLAGS=$LDFLAGS
7809       echo "_main" > conftest.sym
7810       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7811       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h.  */
7813
7814 int
7815 main ()
7816 {
7817
7818   ;
7819   return 0;
7820 }
7821 _ACEOF
7822 if ac_fn_c_try_link "$LINENO"; then :
7823   lt_cv_ld_exported_symbols_list=yes
7824 else
7825   lt_cv_ld_exported_symbols_list=no
7826 fi
7827 rm -f core conftest.err conftest.$ac_objext \
7828     conftest$ac_exeext conftest.$ac_ext
7829         LDFLAGS="$save_LDFLAGS"
7830
7831 fi
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7833 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7834
7835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7836 $as_echo_n "checking for -force_load linker flag... " >&6; }
7837 if ${lt_cv_ld_force_load+:} false; then :
7838   $as_echo_n "(cached) " >&6
7839 else
7840   lt_cv_ld_force_load=no
7841       cat > conftest.c << _LT_EOF
7842 int forced_loaded() { return 2;}
7843 _LT_EOF
7844       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7845       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7846       echo "$AR cru libconftest.a conftest.o" >&5
7847       $AR cru libconftest.a conftest.o 2>&5
7848       echo "$RANLIB libconftest.a" >&5
7849       $RANLIB libconftest.a 2>&5
7850       cat > conftest.c << _LT_EOF
7851 int main() { return 0;}
7852 _LT_EOF
7853       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7854       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7855       _lt_result=$?
7856       if test -s conftest.err && $GREP force_load conftest.err; then
7857         cat conftest.err >&5
7858       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7859         lt_cv_ld_force_load=yes
7860       else
7861         cat conftest.err >&5
7862       fi
7863         rm -f conftest.err libconftest.a conftest conftest.c
7864         rm -rf conftest.dSYM
7865
7866 fi
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7868 $as_echo "$lt_cv_ld_force_load" >&6; }
7869     case $host_os in
7870     rhapsody* | darwin1.[012])
7871       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7872     darwin1.*)
7873       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7874     darwin*) # darwin 5.x on
7875       # if running on 10.5 or later, the deployment target defaults
7876       # to the OS version, if on x86, and 10.4, the deployment
7877       # target defaults to 10.4. Don't you love it?
7878       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7879         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7880           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7881         10.[012]*)
7882           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7883         10.*)
7884           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7885       esac
7886     ;;
7887   esac
7888     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7889       _lt_dar_single_mod='$single_module'
7890     fi
7891     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7892       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7893     else
7894       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7895     fi
7896     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7897       _lt_dsymutil='~$DSYMUTIL $lib || :'
7898     else
7899       _lt_dsymutil=
7900     fi
7901     ;;
7902   esac
7903
7904
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7906 $as_echo_n "checking for ANSI C header files... " >&6; }
7907 if ${ac_cv_header_stdc+:} false; then :
7908   $as_echo_n "(cached) " >&6
7909 else
7910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h.  */
7912 #include <stdlib.h>
7913 #include <stdarg.h>
7914 #include <string.h>
7915 #include <float.h>
7916
7917 int
7918 main ()
7919 {
7920
7921   ;
7922   return 0;
7923 }
7924 _ACEOF
7925 if ac_fn_c_try_compile "$LINENO"; then :
7926   ac_cv_header_stdc=yes
7927 else
7928   ac_cv_header_stdc=no
7929 fi
7930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931
7932 if test $ac_cv_header_stdc = yes; then
7933   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h.  */
7936 #include <string.h>
7937
7938 _ACEOF
7939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7940   $EGREP "memchr" >/dev/null 2>&1; then :
7941
7942 else
7943   ac_cv_header_stdc=no
7944 fi
7945 rm -f conftest*
7946
7947 fi
7948
7949 if test $ac_cv_header_stdc = yes; then
7950   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h.  */
7953 #include <stdlib.h>
7954
7955 _ACEOF
7956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7957   $EGREP "free" >/dev/null 2>&1; then :
7958
7959 else
7960   ac_cv_header_stdc=no
7961 fi
7962 rm -f conftest*
7963
7964 fi
7965
7966 if test $ac_cv_header_stdc = yes; then
7967   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7968   if test "$cross_compiling" = yes; then :
7969   :
7970 else
7971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h.  */
7973 #include <ctype.h>
7974 #include <stdlib.h>
7975 #if ((' ' & 0x0FF) == 0x020)
7976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7978 #else
7979 # define ISLOWER(c) \
7980                    (('a' <= (c) && (c) <= 'i') \
7981                      || ('j' <= (c) && (c) <= 'r') \
7982                      || ('s' <= (c) && (c) <= 'z'))
7983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7984 #endif
7985
7986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7987 int
7988 main ()
7989 {
7990   int i;
7991   for (i = 0; i < 256; i++)
7992     if (XOR (islower (i), ISLOWER (i))
7993         || toupper (i) != TOUPPER (i))
7994       return 2;
7995   return 0;
7996 }
7997 _ACEOF
7998 if ac_fn_c_try_run "$LINENO"; then :
7999
8000 else
8001   ac_cv_header_stdc=no
8002 fi
8003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8004   conftest.$ac_objext conftest.beam conftest.$ac_ext
8005 fi
8006
8007 fi
8008 fi
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8010 $as_echo "$ac_cv_header_stdc" >&6; }
8011 if test $ac_cv_header_stdc = yes; then
8012
8013 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8014
8015 fi
8016
8017 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8018 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8019                   inttypes.h stdint.h unistd.h
8020 do :
8021   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8022 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8023 "
8024 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8025   cat >>confdefs.h <<_ACEOF
8026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8027 _ACEOF
8028
8029 fi
8030
8031 done
8032
8033
8034 for ac_header in dlfcn.h
8035 do :
8036   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8037 "
8038 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8039   cat >>confdefs.h <<_ACEOF
8040 #define HAVE_DLFCN_H 1
8041 _ACEOF
8042
8043 fi
8044
8045 done
8046
8047
8048
8049 func_stripname_cnf ()
8050 {
8051   case ${2} in
8052   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8053   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8054   esac
8055 } # func_stripname_cnf
8056
8057
8058
8059
8060
8061 # Set options
8062
8063
8064
8065         enable_dlopen=no
8066
8067
8068   enable_win32_dll=no
8069
8070
8071             # Check whether --enable-shared was given.
8072 if test "${enable_shared+set}" = set; then :
8073   enableval=$enable_shared; p=${PACKAGE-default}
8074     case $enableval in
8075     yes) enable_shared=yes ;;
8076     no) enable_shared=no ;;
8077     *)
8078       enable_shared=no
8079       # Look at the argument we got.  We use all the common list separators.
8080       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8081       for pkg in $enableval; do
8082         IFS="$lt_save_ifs"
8083         if test "X$pkg" = "X$p"; then
8084           enable_shared=yes
8085         fi
8086       done
8087       IFS="$lt_save_ifs"
8088       ;;
8089     esac
8090 else
8091   enable_shared=yes
8092 fi
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102   # Check whether --enable-static was given.
8103 if test "${enable_static+set}" = set; then :
8104   enableval=$enable_static; p=${PACKAGE-default}
8105     case $enableval in
8106     yes) enable_static=yes ;;
8107     no) enable_static=no ;;
8108     *)
8109      enable_static=no
8110       # Look at the argument we got.  We use all the common list separators.
8111       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8112       for pkg in $enableval; do
8113         IFS="$lt_save_ifs"
8114         if test "X$pkg" = "X$p"; then
8115           enable_static=yes
8116         fi
8117       done
8118       IFS="$lt_save_ifs"
8119       ;;
8120     esac
8121 else
8122   enable_static=yes
8123 fi
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134 # Check whether --with-pic was given.
8135 if test "${with_pic+set}" = set; then :
8136   withval=$with_pic; lt_p=${PACKAGE-default}
8137     case $withval in
8138     yes|no) pic_mode=$withval ;;
8139     *)
8140       pic_mode=default
8141       # Look at the argument we got.  We use all the common list separators.
8142       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8143       for lt_pkg in $withval; do
8144         IFS="$lt_save_ifs"
8145         if test "X$lt_pkg" = "X$lt_p"; then
8146           pic_mode=yes
8147         fi
8148       done
8149       IFS="$lt_save_ifs"
8150       ;;
8151     esac
8152 else
8153   pic_mode=default
8154 fi
8155
8156
8157 test -z "$pic_mode" && pic_mode=default
8158
8159
8160
8161
8162
8163
8164
8165   # Check whether --enable-fast-install was given.
8166 if test "${enable_fast_install+set}" = set; then :
8167   enableval=$enable_fast_install; p=${PACKAGE-default}
8168     case $enableval in
8169     yes) enable_fast_install=yes ;;
8170     no) enable_fast_install=no ;;
8171     *)
8172       enable_fast_install=no
8173       # Look at the argument we got.  We use all the common list separators.
8174       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8175       for pkg in $enableval; do
8176         IFS="$lt_save_ifs"
8177         if test "X$pkg" = "X$p"; then
8178           enable_fast_install=yes
8179         fi
8180       done
8181       IFS="$lt_save_ifs"
8182       ;;
8183     esac
8184 else
8185   enable_fast_install=yes
8186 fi
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198 # This can be used to rebuild libtool when needed
8199 LIBTOOL_DEPS="$ltmain"
8200
8201 # Always use our own libtool.
8202 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233 test -z "$LN_S" && LN_S="ln -s"
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248 if test -n "${ZSH_VERSION+set}" ; then
8249    setopt NO_GLOB_SUBST
8250 fi
8251
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8253 $as_echo_n "checking for objdir... " >&6; }
8254 if ${lt_cv_objdir+:} false; then :
8255   $as_echo_n "(cached) " >&6
8256 else
8257   rm -f .libs 2>/dev/null
8258 mkdir .libs 2>/dev/null
8259 if test -d .libs; then
8260   lt_cv_objdir=.libs
8261 else
8262   # MS-DOS does not allow filenames that begin with a dot.
8263   lt_cv_objdir=_libs
8264 fi
8265 rmdir .libs 2>/dev/null
8266 fi
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8268 $as_echo "$lt_cv_objdir" >&6; }
8269 objdir=$lt_cv_objdir
8270
8271
8272
8273
8274
8275 cat >>confdefs.h <<_ACEOF
8276 #define LT_OBJDIR "$lt_cv_objdir/"
8277 _ACEOF
8278
8279
8280
8281
8282 case $host_os in
8283 aix3*)
8284   # AIX sometimes has problems with the GCC collect2 program.  For some
8285   # reason, if we set the COLLECT_NAMES environment variable, the problems
8286   # vanish in a puff of smoke.
8287   if test "X${COLLECT_NAMES+set}" != Xset; then
8288     COLLECT_NAMES=
8289     export COLLECT_NAMES
8290   fi
8291   ;;
8292 esac
8293
8294 # Global variables:
8295 ofile=libtool
8296 can_build_shared=yes
8297
8298 # All known linkers require a `.a' archive for static linking (except MSVC,
8299 # which needs '.lib').
8300 libext=a
8301
8302 with_gnu_ld="$lt_cv_prog_gnu_ld"
8303
8304 old_CC="$CC"
8305 old_CFLAGS="$CFLAGS"
8306
8307 # Set sane defaults for various variables
8308 test -z "$CC" && CC=cc
8309 test -z "$LTCC" && LTCC=$CC
8310 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8311 test -z "$LD" && LD=ld
8312 test -z "$ac_objext" && ac_objext=o
8313
8314 for cc_temp in $compiler""; do
8315   case $cc_temp in
8316     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8317     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8318     \-*) ;;
8319     *) break;;
8320   esac
8321 done
8322 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8323
8324
8325 # Only perform the check for file, if the check method requires it
8326 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8327 case $deplibs_check_method in
8328 file_magic*)
8329   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8331 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8332 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8333   $as_echo_n "(cached) " >&6
8334 else
8335   case $MAGIC_CMD in
8336 [\\/*] |  ?:[\\/]*)
8337   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8338   ;;
8339 *)
8340   lt_save_MAGIC_CMD="$MAGIC_CMD"
8341   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8342   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8343   for ac_dir in $ac_dummy; do
8344     IFS="$lt_save_ifs"
8345     test -z "$ac_dir" && ac_dir=.
8346     if test -f $ac_dir/${ac_tool_prefix}file; then
8347       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8348       if test -n "$file_magic_test_file"; then
8349         case $deplibs_check_method in
8350         "file_magic "*)
8351           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8352           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8353           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8354             $EGREP "$file_magic_regex" > /dev/null; then
8355             :
8356           else
8357             cat <<_LT_EOF 1>&2
8358
8359 *** Warning: the command libtool uses to detect shared libraries,
8360 *** $file_magic_cmd, produces output that libtool cannot recognize.
8361 *** The result is that libtool may fail to recognize shared libraries
8362 *** as such.  This will affect the creation of libtool libraries that
8363 *** depend on shared libraries, but programs linked with such libtool
8364 *** libraries will work regardless of this problem.  Nevertheless, you
8365 *** may want to report the problem to your system manager and/or to
8366 *** bug-libtool@gnu.org
8367
8368 _LT_EOF
8369           fi ;;
8370         esac
8371       fi
8372       break
8373     fi
8374   done
8375   IFS="$lt_save_ifs"
8376   MAGIC_CMD="$lt_save_MAGIC_CMD"
8377   ;;
8378 esac
8379 fi
8380
8381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382 if test -n "$MAGIC_CMD"; then
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8384 $as_echo "$MAGIC_CMD" >&6; }
8385 else
8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8388 fi
8389
8390
8391
8392
8393
8394 if test -z "$lt_cv_path_MAGIC_CMD"; then
8395   if test -n "$ac_tool_prefix"; then
8396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8397 $as_echo_n "checking for file... " >&6; }
8398 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8399   $as_echo_n "(cached) " >&6
8400 else
8401   case $MAGIC_CMD in
8402 [\\/*] |  ?:[\\/]*)
8403   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8404   ;;
8405 *)
8406   lt_save_MAGIC_CMD="$MAGIC_CMD"
8407   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8408   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8409   for ac_dir in $ac_dummy; do
8410     IFS="$lt_save_ifs"
8411     test -z "$ac_dir" && ac_dir=.
8412     if test -f $ac_dir/file; then
8413       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8414       if test -n "$file_magic_test_file"; then
8415         case $deplibs_check_method in
8416         "file_magic "*)
8417           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8418           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8419           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8420             $EGREP "$file_magic_regex" > /dev/null; then
8421             :
8422           else
8423             cat <<_LT_EOF 1>&2
8424
8425 *** Warning: the command libtool uses to detect shared libraries,
8426 *** $file_magic_cmd, produces output that libtool cannot recognize.
8427 *** The result is that libtool may fail to recognize shared libraries
8428 *** as such.  This will affect the creation of libtool libraries that
8429 *** depend on shared libraries, but programs linked with such libtool
8430 *** libraries will work regardless of this problem.  Nevertheless, you
8431 *** may want to report the problem to your system manager and/or to
8432 *** bug-libtool@gnu.org
8433
8434 _LT_EOF
8435           fi ;;
8436         esac
8437       fi
8438       break
8439     fi
8440   done
8441   IFS="$lt_save_ifs"
8442   MAGIC_CMD="$lt_save_MAGIC_CMD"
8443   ;;
8444 esac
8445 fi
8446
8447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8448 if test -n "$MAGIC_CMD"; then
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8450 $as_echo "$MAGIC_CMD" >&6; }
8451 else
8452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8454 fi
8455
8456
8457   else
8458     MAGIC_CMD=:
8459   fi
8460 fi
8461
8462   fi
8463   ;;
8464 esac
8465
8466 # Use C for the default configuration in the libtool script
8467
8468 lt_save_CC="$CC"
8469 ac_ext=c
8470 ac_cpp='$CPP $CPPFLAGS'
8471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8474
8475
8476 # Source file extension for C test sources.
8477 ac_ext=c
8478
8479 # Object file extension for compiled C test sources.
8480 objext=o
8481 objext=$objext
8482
8483 # Code to be used in simple compile tests
8484 lt_simple_compile_test_code="int some_variable = 0;"
8485
8486 # Code to be used in simple link tests
8487 lt_simple_link_test_code='int main(){return(0);}'
8488
8489
8490
8491
8492
8493
8494
8495 # If no C compiler was specified, use CC.
8496 LTCC=${LTCC-"$CC"}
8497
8498 # If no C compiler flags were specified, use CFLAGS.
8499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8500
8501 # Allow CC to be a program name with arguments.
8502 compiler=$CC
8503
8504 # Save the default compiler, since it gets overwritten when the other
8505 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8506 compiler_DEFAULT=$CC
8507
8508 # save warnings/boilerplate of simple test code
8509 ac_outfile=conftest.$ac_objext
8510 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8511 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8512 _lt_compiler_boilerplate=`cat conftest.err`
8513 $RM conftest*
8514
8515 ac_outfile=conftest.$ac_objext
8516 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8517 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8518 _lt_linker_boilerplate=`cat conftest.err`
8519 $RM -r conftest*
8520
8521
8522 ## CAVEAT EMPTOR:
8523 ## There is no encapsulation within the following macros, do not change
8524 ## the running order or otherwise move them around unless you know exactly
8525 ## what you are doing...
8526 if test -n "$compiler"; then
8527
8528 lt_prog_compiler_no_builtin_flag=
8529
8530 if test "$GCC" = yes; then
8531   case $cc_basename in
8532   nvcc*)
8533     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8534   *)
8535     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8536   esac
8537
8538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8539 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8540 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8541   $as_echo_n "(cached) " >&6
8542 else
8543   lt_cv_prog_compiler_rtti_exceptions=no
8544    ac_outfile=conftest.$ac_objext
8545    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8546    lt_compiler_flag="-fno-rtti -fno-exceptions"
8547    # Insert the option either (1) after the last *FLAGS variable, or
8548    # (2) before a word containing "conftest.", or (3) at the end.
8549    # Note that $ac_compile itself does not contain backslashes and begins
8550    # with a dollar sign (not a hyphen), so the echo should work correctly.
8551    # The option is referenced via a variable to avoid confusing sed.
8552    lt_compile=`echo "$ac_compile" | $SED \
8553    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8554    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8555    -e 's:$: $lt_compiler_flag:'`
8556    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8557    (eval "$lt_compile" 2>conftest.err)
8558    ac_status=$?
8559    cat conftest.err >&5
8560    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561    if (exit $ac_status) && test -s "$ac_outfile"; then
8562      # The compiler can only warn and ignore the option if not recognized
8563      # So say no if there are warnings other than the usual output.
8564      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8565      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8566      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8567        lt_cv_prog_compiler_rtti_exceptions=yes
8568      fi
8569    fi
8570    $RM conftest*
8571
8572 fi
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8574 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8575
8576 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8577     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8578 else
8579     :
8580 fi
8581
8582 fi
8583
8584
8585
8586
8587
8588
8589   lt_prog_compiler_wl=
8590 lt_prog_compiler_pic=
8591 lt_prog_compiler_static=
8592
8593
8594   if test "$GCC" = yes; then
8595     lt_prog_compiler_wl='-Wl,'
8596     lt_prog_compiler_static='-static'
8597
8598     case $host_os in
8599       aix*)
8600       # All AIX code is PIC.
8601       if test "$host_cpu" = ia64; then
8602         # AIX 5 now supports IA64 processor
8603         lt_prog_compiler_static='-Bstatic'
8604       fi
8605       ;;
8606
8607     amigaos*)
8608       case $host_cpu in
8609       powerpc)
8610             # see comment about AmigaOS4 .so support
8611             lt_prog_compiler_pic='-fPIC'
8612         ;;
8613       m68k)
8614             # FIXME: we need at least 68020 code to build shared libraries, but
8615             # adding the `-m68020' flag to GCC prevents building anything better,
8616             # like `-m68040'.
8617             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8618         ;;
8619       esac
8620       ;;
8621
8622     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8623       # PIC is the default for these OSes.
8624       ;;
8625
8626     mingw* | cygwin* | pw32* | os2* | cegcc*)
8627       # This hack is so that the source file can tell whether it is being
8628       # built for inclusion in a dll (and should export symbols for example).
8629       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8630       # (--disable-auto-import) libraries
8631       lt_prog_compiler_pic='-DDLL_EXPORT'
8632       ;;
8633
8634     darwin* | rhapsody*)
8635       # PIC is the default on this platform
8636       # Common symbols not allowed in MH_DYLIB files
8637       lt_prog_compiler_pic='-fno-common'
8638       ;;
8639
8640     haiku*)
8641       # PIC is the default for Haiku.
8642       # The "-static" flag exists, but is broken.
8643       lt_prog_compiler_static=
8644       ;;
8645
8646     hpux*)
8647       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8648       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8649       # sets the default TLS model and affects inlining.
8650       case $host_cpu in
8651       hppa*64*)
8652         # +Z the default
8653         ;;
8654       *)
8655         lt_prog_compiler_pic='-fPIC'
8656         ;;
8657       esac
8658       ;;
8659
8660     interix[3-9]*)
8661       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8662       # Instead, we relocate shared libraries at runtime.
8663       ;;
8664
8665     msdosdjgpp*)
8666       # Just because we use GCC doesn't mean we suddenly get shared libraries
8667       # on systems that don't support them.
8668       lt_prog_compiler_can_build_shared=no
8669       enable_shared=no
8670       ;;
8671
8672     *nto* | *qnx*)
8673       # QNX uses GNU C++, but need to define -shared option too, otherwise
8674       # it will coredump.
8675       lt_prog_compiler_pic='-fPIC -shared'
8676       ;;
8677
8678     sysv4*MP*)
8679       if test -d /usr/nec; then
8680         lt_prog_compiler_pic=-Kconform_pic
8681       fi
8682       ;;
8683
8684     *)
8685       lt_prog_compiler_pic='-fPIC'
8686       ;;
8687     esac
8688
8689     case $cc_basename in
8690     nvcc*) # Cuda Compiler Driver 2.2
8691       lt_prog_compiler_wl='-Xlinker '
8692       if test -n "$lt_prog_compiler_pic"; then
8693         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8694       fi
8695       ;;
8696     esac
8697   else
8698     # PORTME Check for flag to pass linker flags through the system compiler.
8699     case $host_os in
8700     aix*)
8701       lt_prog_compiler_wl='-Wl,'
8702       if test "$host_cpu" = ia64; then
8703         # AIX 5 now supports IA64 processor
8704         lt_prog_compiler_static='-Bstatic'
8705       else
8706         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8707       fi
8708       ;;
8709
8710     mingw* | cygwin* | pw32* | os2* | cegcc*)
8711       # This hack is so that the source file can tell whether it is being
8712       # built for inclusion in a dll (and should export symbols for example).
8713       lt_prog_compiler_pic='-DDLL_EXPORT'
8714       ;;
8715
8716     hpux9* | hpux10* | hpux11*)
8717       lt_prog_compiler_wl='-Wl,'
8718       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8719       # not for PA HP-UX.
8720       case $host_cpu in
8721       hppa*64*|ia64*)
8722         # +Z the default
8723         ;;
8724       *)
8725         lt_prog_compiler_pic='+Z'
8726         ;;
8727       esac
8728       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8729       lt_prog_compiler_static='${wl}-a ${wl}archive'
8730       ;;
8731
8732     irix5* | irix6* | nonstopux*)
8733       lt_prog_compiler_wl='-Wl,'
8734       # PIC (with -KPIC) is the default.
8735       lt_prog_compiler_static='-non_shared'
8736       ;;
8737
8738     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8739       case $cc_basename in
8740       # old Intel for x86_64 which still supported -KPIC.
8741       ecc*)
8742         lt_prog_compiler_wl='-Wl,'
8743         lt_prog_compiler_pic='-KPIC'
8744         lt_prog_compiler_static='-static'
8745         ;;
8746       # icc used to be incompatible with GCC.
8747       # ICC 10 doesn't accept -KPIC any more.
8748       icc* | ifort*)
8749         lt_prog_compiler_wl='-Wl,'
8750         lt_prog_compiler_pic='-fPIC'
8751         lt_prog_compiler_static='-static'
8752         ;;
8753       # Lahey Fortran 8.1.
8754       lf95*)
8755         lt_prog_compiler_wl='-Wl,'
8756         lt_prog_compiler_pic='--shared'
8757         lt_prog_compiler_static='--static'
8758         ;;
8759       nagfor*)
8760         # NAG Fortran compiler
8761         lt_prog_compiler_wl='-Wl,-Wl,,'
8762         lt_prog_compiler_pic='-PIC'
8763         lt_prog_compiler_static='-Bstatic'
8764         ;;
8765       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8766         # Portland Group compilers (*not* the Pentium gcc compiler,
8767         # which looks to be a dead project)
8768         lt_prog_compiler_wl='-Wl,'
8769         lt_prog_compiler_pic='-fpic'
8770         lt_prog_compiler_static='-Bstatic'
8771         ;;
8772       ccc*)
8773         lt_prog_compiler_wl='-Wl,'
8774         # All Alpha code is PIC.
8775         lt_prog_compiler_static='-non_shared'
8776         ;;
8777       xl* | bgxl* | bgf* | mpixl*)
8778         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8779         lt_prog_compiler_wl='-Wl,'
8780         lt_prog_compiler_pic='-qpic'
8781         lt_prog_compiler_static='-qstaticlink'
8782         ;;
8783       *)
8784         case `$CC -V 2>&1 | sed 5q` in
8785         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8786           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8787           lt_prog_compiler_pic='-KPIC'
8788           lt_prog_compiler_static='-Bstatic'
8789           lt_prog_compiler_wl=''
8790           ;;
8791         *Sun\ F* | *Sun*Fortran*)
8792           lt_prog_compiler_pic='-KPIC'
8793           lt_prog_compiler_static='-Bstatic'
8794           lt_prog_compiler_wl='-Qoption ld '
8795           ;;
8796         *Sun\ C*)
8797           # Sun C 5.9
8798           lt_prog_compiler_pic='-KPIC'
8799           lt_prog_compiler_static='-Bstatic'
8800           lt_prog_compiler_wl='-Wl,'
8801           ;;
8802         *Intel*\ [CF]*Compiler*)
8803           lt_prog_compiler_wl='-Wl,'
8804           lt_prog_compiler_pic='-fPIC'
8805           lt_prog_compiler_static='-static'
8806           ;;
8807         *Portland\ Group*)
8808           lt_prog_compiler_wl='-Wl,'
8809           lt_prog_compiler_pic='-fpic'
8810           lt_prog_compiler_static='-Bstatic'
8811           ;;
8812         esac
8813         ;;
8814       esac
8815       ;;
8816
8817     newsos6)
8818       lt_prog_compiler_pic='-KPIC'
8819       lt_prog_compiler_static='-Bstatic'
8820       ;;
8821
8822     *nto* | *qnx*)
8823       # QNX uses GNU C++, but need to define -shared option too, otherwise
8824       # it will coredump.
8825       lt_prog_compiler_pic='-fPIC -shared'
8826       ;;
8827
8828     osf3* | osf4* | osf5*)
8829       lt_prog_compiler_wl='-Wl,'
8830       # All OSF/1 code is PIC.
8831       lt_prog_compiler_static='-non_shared'
8832       ;;
8833
8834     rdos*)
8835       lt_prog_compiler_static='-non_shared'
8836       ;;
8837
8838     solaris*)
8839       lt_prog_compiler_pic='-KPIC'
8840       lt_prog_compiler_static='-Bstatic'
8841       case $cc_basename in
8842       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8843         lt_prog_compiler_wl='-Qoption ld ';;
8844       *)
8845         lt_prog_compiler_wl='-Wl,';;
8846       esac
8847       ;;
8848
8849     sunos4*)
8850       lt_prog_compiler_wl='-Qoption ld '
8851       lt_prog_compiler_pic='-PIC'
8852       lt_prog_compiler_static='-Bstatic'
8853       ;;
8854
8855     sysv4 | sysv4.2uw2* | sysv4.3*)
8856       lt_prog_compiler_wl='-Wl,'
8857       lt_prog_compiler_pic='-KPIC'
8858       lt_prog_compiler_static='-Bstatic'
8859       ;;
8860
8861     sysv4*MP*)
8862       if test -d /usr/nec ;then
8863         lt_prog_compiler_pic='-Kconform_pic'
8864         lt_prog_compiler_static='-Bstatic'
8865       fi
8866       ;;
8867
8868     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8869       lt_prog_compiler_wl='-Wl,'
8870       lt_prog_compiler_pic='-KPIC'
8871       lt_prog_compiler_static='-Bstatic'
8872       ;;
8873
8874     unicos*)
8875       lt_prog_compiler_wl='-Wl,'
8876       lt_prog_compiler_can_build_shared=no
8877       ;;
8878
8879     uts4*)
8880       lt_prog_compiler_pic='-pic'
8881       lt_prog_compiler_static='-Bstatic'
8882       ;;
8883
8884     *)
8885       lt_prog_compiler_can_build_shared=no
8886       ;;
8887     esac
8888   fi
8889
8890 case $host_os in
8891   # For platforms which do not support PIC, -DPIC is meaningless:
8892   *djgpp*)
8893     lt_prog_compiler_pic=
8894     ;;
8895   *)
8896     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8897     ;;
8898 esac
8899
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8901 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8902 if ${lt_cv_prog_compiler_pic+:} false; then :
8903   $as_echo_n "(cached) " >&6
8904 else
8905   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8906 fi
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8908 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8909 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8910
8911 #
8912 # Check to make sure the PIC flag actually works.
8913 #
8914 if test -n "$lt_prog_compiler_pic"; then
8915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8916 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8917 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8918   $as_echo_n "(cached) " >&6
8919 else
8920   lt_cv_prog_compiler_pic_works=no
8921    ac_outfile=conftest.$ac_objext
8922    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8923    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8924    # Insert the option either (1) after the last *FLAGS variable, or
8925    # (2) before a word containing "conftest.", or (3) at the end.
8926    # Note that $ac_compile itself does not contain backslashes and begins
8927    # with a dollar sign (not a hyphen), so the echo should work correctly.
8928    # The option is referenced via a variable to avoid confusing sed.
8929    lt_compile=`echo "$ac_compile" | $SED \
8930    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8931    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8932    -e 's:$: $lt_compiler_flag:'`
8933    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8934    (eval "$lt_compile" 2>conftest.err)
8935    ac_status=$?
8936    cat conftest.err >&5
8937    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938    if (exit $ac_status) && test -s "$ac_outfile"; then
8939      # The compiler can only warn and ignore the option if not recognized
8940      # So say no if there are warnings other than the usual output.
8941      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8942      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8943      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8944        lt_cv_prog_compiler_pic_works=yes
8945      fi
8946    fi
8947    $RM conftest*
8948
8949 fi
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8951 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8952
8953 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8954     case $lt_prog_compiler_pic in
8955      "" | " "*) ;;
8956      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8957      esac
8958 else
8959     lt_prog_compiler_pic=
8960      lt_prog_compiler_can_build_shared=no
8961 fi
8962
8963 fi
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975 #
8976 # Check to make sure the static flag actually works.
8977 #
8978 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8980 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8981 if ${lt_cv_prog_compiler_static_works+:} false; then :
8982   $as_echo_n "(cached) " >&6
8983 else
8984   lt_cv_prog_compiler_static_works=no
8985    save_LDFLAGS="$LDFLAGS"
8986    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8987    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8988    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8989      # The linker can only warn and ignore the option if not recognized
8990      # So say no if there are warnings
8991      if test -s conftest.err; then
8992        # Append any errors to the config.log.
8993        cat conftest.err 1>&5
8994        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8995        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8996        if diff conftest.exp conftest.er2 >/dev/null; then
8997          lt_cv_prog_compiler_static_works=yes
8998        fi
8999      else
9000        lt_cv_prog_compiler_static_works=yes
9001      fi
9002    fi
9003    $RM -r conftest*
9004    LDFLAGS="$save_LDFLAGS"
9005
9006 fi
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9008 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9009
9010 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9011     :
9012 else
9013     lt_prog_compiler_static=
9014 fi
9015
9016
9017
9018
9019
9020
9021
9022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9023 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9024 if ${lt_cv_prog_compiler_c_o+:} false; then :
9025   $as_echo_n "(cached) " >&6
9026 else
9027   lt_cv_prog_compiler_c_o=no
9028    $RM -r conftest 2>/dev/null
9029    mkdir conftest
9030    cd conftest
9031    mkdir out
9032    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9033
9034    lt_compiler_flag="-o out/conftest2.$ac_objext"
9035    # Insert the option either (1) after the last *FLAGS variable, or
9036    # (2) before a word containing "conftest.", or (3) at the end.
9037    # Note that $ac_compile itself does not contain backslashes and begins
9038    # with a dollar sign (not a hyphen), so the echo should work correctly.
9039    lt_compile=`echo "$ac_compile" | $SED \
9040    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9041    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9042    -e 's:$: $lt_compiler_flag:'`
9043    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9044    (eval "$lt_compile" 2>out/conftest.err)
9045    ac_status=$?
9046    cat out/conftest.err >&5
9047    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9049    then
9050      # The compiler can only warn and ignore the option if not recognized
9051      # So say no if there are warnings
9052      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9053      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9054      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9055        lt_cv_prog_compiler_c_o=yes
9056      fi
9057    fi
9058    chmod u+w . 2>&5
9059    $RM conftest*
9060    # SGI C++ compiler will create directory out/ii_files/ for
9061    # template instantiation
9062    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9063    $RM out/* && rmdir out
9064    cd ..
9065    $RM -r conftest
9066    $RM conftest*
9067
9068 fi
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9070 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9071
9072
9073
9074
9075
9076
9077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9078 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9079 if ${lt_cv_prog_compiler_c_o+:} false; then :
9080   $as_echo_n "(cached) " >&6
9081 else
9082   lt_cv_prog_compiler_c_o=no
9083    $RM -r conftest 2>/dev/null
9084    mkdir conftest
9085    cd conftest
9086    mkdir out
9087    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9088
9089    lt_compiler_flag="-o out/conftest2.$ac_objext"
9090    # Insert the option either (1) after the last *FLAGS variable, or
9091    # (2) before a word containing "conftest.", or (3) at the end.
9092    # Note that $ac_compile itself does not contain backslashes and begins
9093    # with a dollar sign (not a hyphen), so the echo should work correctly.
9094    lt_compile=`echo "$ac_compile" | $SED \
9095    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9096    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9097    -e 's:$: $lt_compiler_flag:'`
9098    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9099    (eval "$lt_compile" 2>out/conftest.err)
9100    ac_status=$?
9101    cat out/conftest.err >&5
9102    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9104    then
9105      # The compiler can only warn and ignore the option if not recognized
9106      # So say no if there are warnings
9107      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9108      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9109      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9110        lt_cv_prog_compiler_c_o=yes
9111      fi
9112    fi
9113    chmod u+w . 2>&5
9114    $RM conftest*
9115    # SGI C++ compiler will create directory out/ii_files/ for
9116    # template instantiation
9117    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9118    $RM out/* && rmdir out
9119    cd ..
9120    $RM -r conftest
9121    $RM conftest*
9122
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9125 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9126
9127
9128
9129
9130 hard_links="nottested"
9131 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9132   # do not overwrite the value of need_locks provided by the user
9133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9134 $as_echo_n "checking if we can lock with hard links... " >&6; }
9135   hard_links=yes
9136   $RM conftest*
9137   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9138   touch conftest.a
9139   ln conftest.a conftest.b 2>&5 || hard_links=no
9140   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9142 $as_echo "$hard_links" >&6; }
9143   if test "$hard_links" = no; then
9144     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9145 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9146     need_locks=warn
9147   fi
9148 else
9149   need_locks=no
9150 fi
9151
9152
9153
9154
9155
9156
9157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9158 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9159
9160   runpath_var=
9161   allow_undefined_flag=
9162   always_export_symbols=no
9163   archive_cmds=
9164   archive_expsym_cmds=
9165   compiler_needs_object=no
9166   enable_shared_with_static_runtimes=no
9167   export_dynamic_flag_spec=
9168   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9169   hardcode_automatic=no
9170   hardcode_direct=no
9171   hardcode_direct_absolute=no
9172   hardcode_libdir_flag_spec=
9173   hardcode_libdir_separator=
9174   hardcode_minus_L=no
9175   hardcode_shlibpath_var=unsupported
9176   inherit_rpath=no
9177   link_all_deplibs=unknown
9178   module_cmds=
9179   module_expsym_cmds=
9180   old_archive_from_new_cmds=
9181   old_archive_from_expsyms_cmds=
9182   thread_safe_flag_spec=
9183   whole_archive_flag_spec=
9184   # include_expsyms should be a list of space-separated symbols to be *always*
9185   # included in the symbol list
9186   include_expsyms=
9187   # exclude_expsyms can be an extended regexp of symbols to exclude
9188   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9189   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9190   # as well as any symbol that contains `d'.
9191   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9192   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9193   # platforms (ab)use it in PIC code, but their linkers get confused if
9194   # the symbol is explicitly referenced.  Since portable code cannot
9195   # rely on this symbol name, it's probably fine to never include it in
9196   # preloaded symbol tables.
9197   # Exclude shared library initialization/finalization symbols.
9198   extract_expsyms_cmds=
9199
9200   case $host_os in
9201   cygwin* | mingw* | pw32* | cegcc*)
9202     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9203     # When not using gcc, we currently assume that we are using
9204     # Microsoft Visual C++.
9205     if test "$GCC" != yes; then
9206       with_gnu_ld=no
9207     fi
9208     ;;
9209   interix*)
9210     # we just hope/assume this is gcc and not c89 (= MSVC++)
9211     with_gnu_ld=yes
9212     ;;
9213   openbsd*)
9214     with_gnu_ld=no
9215     ;;
9216   esac
9217
9218   ld_shlibs=yes
9219
9220   # On some targets, GNU ld is compatible enough with the native linker
9221   # that we're better off using the native interface for both.
9222   lt_use_gnu_ld_interface=no
9223   if test "$with_gnu_ld" = yes; then
9224     case $host_os in
9225       aix*)
9226         # The AIX port of GNU ld has always aspired to compatibility
9227         # with the native linker.  However, as the warning in the GNU ld
9228         # block says, versions before 2.19.5* couldn't really create working
9229         # shared libraries, regardless of the interface used.
9230         case `$LD -v 2>&1` in
9231           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9232           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9233           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9234           *)
9235             lt_use_gnu_ld_interface=yes
9236             ;;
9237         esac
9238         ;;
9239       *)
9240         lt_use_gnu_ld_interface=yes
9241         ;;
9242     esac
9243   fi
9244
9245   if test "$lt_use_gnu_ld_interface" = yes; then
9246     # If archive_cmds runs LD, not CC, wlarc should be empty
9247     wlarc='${wl}'
9248
9249     # Set some defaults for GNU ld with shared library support. These
9250     # are reset later if shared libraries are not supported. Putting them
9251     # here allows them to be overridden if necessary.
9252     runpath_var=LD_RUN_PATH
9253     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254     export_dynamic_flag_spec='${wl}--export-dynamic'
9255     # ancient GNU ld didn't support --whole-archive et. al.
9256     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9257       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9258     else
9259       whole_archive_flag_spec=
9260     fi
9261     supports_anon_versioning=no
9262     case `$LD -v 2>&1` in
9263       *GNU\ gold*) supports_anon_versioning=yes ;;
9264       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9265       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9266       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9267       *\ 2.11.*) ;; # other 2.11 versions
9268       *) supports_anon_versioning=yes ;;
9269     esac
9270
9271     # See if GNU ld supports shared libraries.
9272     case $host_os in
9273     aix[3-9]*)
9274       # On AIX/PPC, the GNU linker is very broken
9275       if test "$host_cpu" != ia64; then
9276         ld_shlibs=no
9277         cat <<_LT_EOF 1>&2
9278
9279 *** Warning: the GNU linker, at least up to release 2.19, is reported
9280 *** to be unable to reliably create shared libraries on AIX.
9281 *** Therefore, libtool is disabling shared libraries support.  If you
9282 *** really care for shared libraries, you may want to install binutils
9283 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9284 *** You will then need to restart the configuration process.
9285
9286 _LT_EOF
9287       fi
9288       ;;
9289
9290     amigaos*)
9291       case $host_cpu in
9292       powerpc)
9293             # see comment about AmigaOS4 .so support
9294             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295             archive_expsym_cmds=''
9296         ;;
9297       m68k)
9298             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)'
9299             hardcode_libdir_flag_spec='-L$libdir'
9300             hardcode_minus_L=yes
9301         ;;
9302       esac
9303       ;;
9304
9305     beos*)
9306       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9307         allow_undefined_flag=unsupported
9308         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9309         # support --undefined.  This deserves some investigation.  FIXME
9310         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311       else
9312         ld_shlibs=no
9313       fi
9314       ;;
9315
9316     cygwin* | mingw* | pw32* | cegcc*)
9317       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9318       # as there is no search path for DLLs.
9319       hardcode_libdir_flag_spec='-L$libdir'
9320       export_dynamic_flag_spec='${wl}--export-all-symbols'
9321       allow_undefined_flag=unsupported
9322       always_export_symbols=no
9323       enable_shared_with_static_runtimes=yes
9324       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'
9325       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9326
9327       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9328         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9329         # If the export-symbols file already is a .def file (1st line
9330         # is EXPORTS), use it as is; otherwise, prepend...
9331         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9332           cp $export_symbols $output_objdir/$soname.def;
9333         else
9334           echo EXPORTS > $output_objdir/$soname.def;
9335           cat $export_symbols >> $output_objdir/$soname.def;
9336         fi~
9337         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9338       else
9339         ld_shlibs=no
9340       fi
9341       ;;
9342
9343     haiku*)
9344       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9345       link_all_deplibs=yes
9346       ;;
9347
9348     interix[3-9]*)
9349       hardcode_direct=no
9350       hardcode_shlibpath_var=no
9351       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9352       export_dynamic_flag_spec='${wl}-E'
9353       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9354       # Instead, shared libraries are loaded at an image base (0x10000000 by
9355       # default) and relocated if they conflict, which is a slow very memory
9356       # consuming and fragmenting process.  To avoid this, we pick a random,
9357       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9358       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9359       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9360       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'
9361       ;;
9362
9363     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9364       tmp_diet=no
9365       if test "$host_os" = linux-dietlibc; then
9366         case $cc_basename in
9367           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9368         esac
9369       fi
9370       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9371          && test "$tmp_diet" = no
9372       then
9373         tmp_addflag=' $pic_flag'
9374         tmp_sharedflag='-shared'
9375         case $cc_basename,$host_cpu in
9376         pgcc*)                          # Portland Group C compiler
9377           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'
9378           tmp_addflag=' $pic_flag'
9379           ;;
9380         pgf77* | pgf90* | pgf95* | pgfortran*)
9381                                         # Portland Group f77 and f90 compilers
9382           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'
9383           tmp_addflag=' $pic_flag -Mnomain' ;;
9384         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9385           tmp_addflag=' -i_dynamic' ;;
9386         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9387           tmp_addflag=' -i_dynamic -nofor_main' ;;
9388         ifc* | ifort*)                  # Intel Fortran compiler
9389           tmp_addflag=' -nofor_main' ;;
9390         lf95*)                          # Lahey Fortran 8.1
9391           whole_archive_flag_spec=
9392           tmp_sharedflag='--shared' ;;
9393         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9394           tmp_sharedflag='-qmkshrobj'
9395           tmp_addflag= ;;
9396         nvcc*)  # Cuda Compiler Driver 2.2
9397           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'
9398           compiler_needs_object=yes
9399           ;;
9400         esac
9401         case `$CC -V 2>&1 | sed 5q` in
9402         *Sun\ C*)                       # Sun C 5.9
9403           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'
9404           compiler_needs_object=yes
9405           tmp_sharedflag='-G' ;;
9406         *Sun\ F*)                       # Sun Fortran 8.3
9407           tmp_sharedflag='-G' ;;
9408         esac
9409         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410
9411         if test "x$supports_anon_versioning" = xyes; then
9412           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9413             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9414             echo "local: *; };" >> $output_objdir/$libname.ver~
9415             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9416         fi
9417
9418         case $cc_basename in
9419         xlf* | bgf* | bgxlf* | mpixlf*)
9420           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9421           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9422           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9423           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9424           if test "x$supports_anon_versioning" = xyes; then
9425             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9426               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9427               echo "local: *; };" >> $output_objdir/$libname.ver~
9428               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9429           fi
9430           ;;
9431         esac
9432       else
9433         ld_shlibs=no
9434       fi
9435       ;;
9436
9437     netbsd*)
9438       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9439         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9440         wlarc=
9441       else
9442         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9444       fi
9445       ;;
9446
9447     solaris*)
9448       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9449         ld_shlibs=no
9450         cat <<_LT_EOF 1>&2
9451
9452 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9453 *** create shared libraries on Solaris systems.  Therefore, libtool
9454 *** is disabling shared libraries support.  We urge you to upgrade GNU
9455 *** binutils to release 2.9.1 or newer.  Another option is to modify
9456 *** your PATH or compiler configuration so that the native linker is
9457 *** used, and then restart.
9458
9459 _LT_EOF
9460       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9461         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9463       else
9464         ld_shlibs=no
9465       fi
9466       ;;
9467
9468     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9469       case `$LD -v 2>&1` in
9470         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9471         ld_shlibs=no
9472         cat <<_LT_EOF 1>&2
9473
9474 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9475 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9476 *** is disabling shared libraries support.  We urge you to upgrade GNU
9477 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9478 *** your PATH or compiler configuration so that the native linker is
9479 *** used, and then restart.
9480
9481 _LT_EOF
9482         ;;
9483         *)
9484           # For security reasons, it is highly recommended that you always
9485           # use absolute paths for naming shared libraries, and exclude the
9486           # DT_RUNPATH tag from executables and libraries.  But doing so
9487           # requires that you compile everything twice, which is a pain.
9488           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9489             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9490             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9492           else
9493             ld_shlibs=no
9494           fi
9495         ;;
9496       esac
9497       ;;
9498
9499     sunos4*)
9500       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9501       wlarc=
9502       hardcode_direct=yes
9503       hardcode_shlibpath_var=no
9504       ;;
9505
9506     *)
9507       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9508         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9510       else
9511         ld_shlibs=no
9512       fi
9513       ;;
9514     esac
9515
9516     if test "$ld_shlibs" = no; then
9517       runpath_var=
9518       hardcode_libdir_flag_spec=
9519       export_dynamic_flag_spec=
9520       whole_archive_flag_spec=
9521     fi
9522   else
9523     # PORTME fill in a description of your system's linker (not GNU ld)
9524     case $host_os in
9525     aix3*)
9526       allow_undefined_flag=unsupported
9527       always_export_symbols=yes
9528       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'
9529       # Note: this linker hardcodes the directories in LIBPATH if there
9530       # are no directories specified by -L.
9531       hardcode_minus_L=yes
9532       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9533         # Neither direct hardcoding nor static linking is supported with a
9534         # broken collect2.
9535         hardcode_direct=unsupported
9536       fi
9537       ;;
9538
9539     aix[4-9]*)
9540       if test "$host_cpu" = ia64; then
9541         # On IA64, the linker does run time linking by default, so we don't
9542         # have to do anything special.
9543         aix_use_runtimelinking=no
9544         exp_sym_flag='-Bexport'
9545         no_entry_flag=""
9546       else
9547         # If we're using GNU nm, then we don't want the "-C" option.
9548         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9549         # Also, AIX nm treats weak defined symbols like other global
9550         # defined symbols, whereas GNU nm marks them as "W".
9551         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9552           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9553         else
9554           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9555         fi
9556         aix_use_runtimelinking=no
9557
9558         # Test if we are trying to use run time linking or normal
9559         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9560         # need to do runtime linking.
9561         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9562           for ld_flag in $LDFLAGS; do
9563           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9564             aix_use_runtimelinking=yes
9565             break
9566           fi
9567           done
9568           ;;
9569         esac
9570
9571         exp_sym_flag='-bexport'
9572         no_entry_flag='-bnoentry'
9573       fi
9574
9575       # When large executables or shared objects are built, AIX ld can
9576       # have problems creating the table of contents.  If linking a library
9577       # or program results in "error TOC overflow" add -mminimal-toc to
9578       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9579       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9580
9581       archive_cmds=''
9582       hardcode_direct=yes
9583       hardcode_direct_absolute=yes
9584       hardcode_libdir_separator=':'
9585       link_all_deplibs=yes
9586       file_list_spec='${wl}-f,'
9587
9588       if test "$GCC" = yes; then
9589         case $host_os in aix4.[012]|aix4.[012].*)
9590         # We only want to do this on AIX 4.2 and lower, the check
9591         # below for broken collect2 doesn't work under 4.3+
9592           collect2name=`${CC} -print-prog-name=collect2`
9593           if test -f "$collect2name" &&
9594            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9595           then
9596           # We have reworked collect2
9597           :
9598           else
9599           # We have old collect2
9600           hardcode_direct=unsupported
9601           # It fails to find uninstalled libraries when the uninstalled
9602           # path is not listed in the libpath.  Setting hardcode_minus_L
9603           # to unsupported forces relinking
9604           hardcode_minus_L=yes
9605           hardcode_libdir_flag_spec='-L$libdir'
9606           hardcode_libdir_separator=
9607           fi
9608           ;;
9609         esac
9610         shared_flag='-shared'
9611         if test "$aix_use_runtimelinking" = yes; then
9612           shared_flag="$shared_flag "'${wl}-G'
9613         fi
9614       else
9615         # not using gcc
9616         if test "$host_cpu" = ia64; then
9617         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9618         # chokes on -Wl,-G. The following line is correct:
9619           shared_flag='-G'
9620         else
9621           if test "$aix_use_runtimelinking" = yes; then
9622             shared_flag='${wl}-G'
9623           else
9624             shared_flag='${wl}-bM:SRE'
9625           fi
9626         fi
9627       fi
9628
9629       export_dynamic_flag_spec='${wl}-bexpall'
9630       # It seems that -bexpall does not export symbols beginning with
9631       # underscore (_), so it is better to generate a list of symbols to export.
9632       always_export_symbols=yes
9633       if test "$aix_use_runtimelinking" = yes; then
9634         # Warning - without using the other runtime loading flags (-brtl),
9635         # -berok will link without error, but may produce a broken library.
9636         allow_undefined_flag='-berok'
9637         # Determine the default libpath from the value encoded in an
9638         # empty executable.
9639         if test "${lt_cv_aix_libpath+set}" = set; then
9640   aix_libpath=$lt_cv_aix_libpath
9641 else
9642   if ${lt_cv_aix_libpath_+:} false; then :
9643   $as_echo_n "(cached) " >&6
9644 else
9645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h.  */
9647
9648 int
9649 main ()
9650 {
9651
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 if ac_fn_c_try_link "$LINENO"; then :
9657
9658   lt_aix_libpath_sed='
9659       /Import File Strings/,/^$/ {
9660           /^0/ {
9661               s/^0  *\([^ ]*\) *$/\1/
9662               p
9663           }
9664       }'
9665   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9666   # Check for a 64-bit object if we didn't find anything.
9667   if test -z "$lt_cv_aix_libpath_"; then
9668     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9669   fi
9670 fi
9671 rm -f core conftest.err conftest.$ac_objext \
9672     conftest$ac_exeext conftest.$ac_ext
9673   if test -z "$lt_cv_aix_libpath_"; then
9674     lt_cv_aix_libpath_="/usr/lib:/lib"
9675   fi
9676
9677 fi
9678
9679   aix_libpath=$lt_cv_aix_libpath_
9680 fi
9681
9682         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9683         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9684       else
9685         if test "$host_cpu" = ia64; then
9686           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9687           allow_undefined_flag="-z nodefs"
9688           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"
9689         else
9690          # Determine the default libpath from the value encoded in an
9691          # empty executable.
9692          if test "${lt_cv_aix_libpath+set}" = set; then
9693   aix_libpath=$lt_cv_aix_libpath
9694 else
9695   if ${lt_cv_aix_libpath_+:} false; then :
9696   $as_echo_n "(cached) " >&6
9697 else
9698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h.  */
9700
9701 int
9702 main ()
9703 {
9704
9705   ;
9706   return 0;
9707 }
9708 _ACEOF
9709 if ac_fn_c_try_link "$LINENO"; then :
9710
9711   lt_aix_libpath_sed='
9712       /Import File Strings/,/^$/ {
9713           /^0/ {
9714               s/^0  *\([^ ]*\) *$/\1/
9715               p
9716           }
9717       }'
9718   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9719   # Check for a 64-bit object if we didn't find anything.
9720   if test -z "$lt_cv_aix_libpath_"; then
9721     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9722   fi
9723 fi
9724 rm -f core conftest.err conftest.$ac_objext \
9725     conftest$ac_exeext conftest.$ac_ext
9726   if test -z "$lt_cv_aix_libpath_"; then
9727     lt_cv_aix_libpath_="/usr/lib:/lib"
9728   fi
9729
9730 fi
9731
9732   aix_libpath=$lt_cv_aix_libpath_
9733 fi
9734
9735          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9736           # Warning - without using the other run time loading flags,
9737           # -berok will link without error, but may produce a broken library.
9738           no_undefined_flag=' ${wl}-bernotok'
9739           allow_undefined_flag=' ${wl}-berok'
9740           if test "$with_gnu_ld" = yes; then
9741             # We only use this code for GNU lds that support --whole-archive.
9742             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9743           else
9744             # Exported symbols can be pulled into shared objects from archives
9745             whole_archive_flag_spec='$convenience'
9746           fi
9747           archive_cmds_need_lc=yes
9748           # This is similar to how AIX traditionally builds its shared libraries.
9749           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9750         fi
9751       fi
9752       ;;
9753
9754     amigaos*)
9755       case $host_cpu in
9756       powerpc)
9757             # see comment about AmigaOS4 .so support
9758             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9759             archive_expsym_cmds=''
9760         ;;
9761       m68k)
9762             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)'
9763             hardcode_libdir_flag_spec='-L$libdir'
9764             hardcode_minus_L=yes
9765         ;;
9766       esac
9767       ;;
9768
9769     bsdi[45]*)
9770       export_dynamic_flag_spec=-rdynamic
9771       ;;
9772
9773     cygwin* | mingw* | pw32* | cegcc*)
9774       # When not using gcc, we currently assume that we are using
9775       # Microsoft Visual C++.
9776       # hardcode_libdir_flag_spec is actually meaningless, as there is
9777       # no search path for DLLs.
9778       case $cc_basename in
9779       cl*)
9780         # Native MSVC
9781         hardcode_libdir_flag_spec=' '
9782         allow_undefined_flag=unsupported
9783         always_export_symbols=yes
9784         file_list_spec='@'
9785         # Tell ltmain to make .lib files, not .a files.
9786         libext=lib
9787         # Tell ltmain to make .dll files, not .so files.
9788         shrext_cmds=".dll"
9789         # FIXME: Setting linknames here is a bad hack.
9790         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9791         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9792             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9793           else
9794             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9795           fi~
9796           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9797           linknames='
9798         # The linker will not automatically build a static lib if we build a DLL.
9799         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9800         enable_shared_with_static_runtimes=yes
9801         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9802         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9803         # Don't use ranlib
9804         old_postinstall_cmds='chmod 644 $oldlib'
9805         postlink_cmds='lt_outputfile="@OUTPUT@"~
9806           lt_tool_outputfile="@TOOL_OUTPUT@"~
9807           case $lt_outputfile in
9808             *.exe|*.EXE) ;;
9809             *)
9810               lt_outputfile="$lt_outputfile.exe"
9811               lt_tool_outputfile="$lt_tool_outputfile.exe"
9812               ;;
9813           esac~
9814           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9815             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9816             $RM "$lt_outputfile.manifest";
9817           fi'
9818         ;;
9819       *)
9820         # Assume MSVC wrapper
9821         hardcode_libdir_flag_spec=' '
9822         allow_undefined_flag=unsupported
9823         # Tell ltmain to make .lib files, not .a files.
9824         libext=lib
9825         # Tell ltmain to make .dll files, not .so files.
9826         shrext_cmds=".dll"
9827         # FIXME: Setting linknames here is a bad hack.
9828         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9829         # The linker will automatically build a .lib file if we build a DLL.
9830         old_archive_from_new_cmds='true'
9831         # FIXME: Should let the user specify the lib program.
9832         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9833         enable_shared_with_static_runtimes=yes
9834         ;;
9835       esac
9836       ;;
9837
9838     darwin* | rhapsody*)
9839
9840
9841   archive_cmds_need_lc=no
9842   hardcode_direct=no
9843   hardcode_automatic=yes
9844   hardcode_shlibpath_var=unsupported
9845   if test "$lt_cv_ld_force_load" = "yes"; then
9846     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\"`'
9847
9848   else
9849     whole_archive_flag_spec=''
9850   fi
9851   link_all_deplibs=yes
9852   allow_undefined_flag="$_lt_dar_allow_undefined"
9853   case $cc_basename in
9854      ifort*) _lt_dar_can_shared=yes ;;
9855      *) _lt_dar_can_shared=$GCC ;;
9856   esac
9857   if test "$_lt_dar_can_shared" = "yes"; then
9858     output_verbose_link_cmd=func_echo_all
9859     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9860     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9861     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}"
9862     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}"
9863
9864   else
9865   ld_shlibs=no
9866   fi
9867
9868       ;;
9869
9870     dgux*)
9871       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9872       hardcode_libdir_flag_spec='-L$libdir'
9873       hardcode_shlibpath_var=no
9874       ;;
9875
9876     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9877     # support.  Future versions do this automatically, but an explicit c++rt0.o
9878     # does not break anything, and helps significantly (at the cost of a little
9879     # extra space).
9880     freebsd2.2*)
9881       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9882       hardcode_libdir_flag_spec='-R$libdir'
9883       hardcode_direct=yes
9884       hardcode_shlibpath_var=no
9885       ;;
9886
9887     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9888     freebsd2.*)
9889       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9890       hardcode_direct=yes
9891       hardcode_minus_L=yes
9892       hardcode_shlibpath_var=no
9893       ;;
9894
9895     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9896     freebsd* | dragonfly*)
9897       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9898       hardcode_libdir_flag_spec='-R$libdir'
9899       hardcode_direct=yes
9900       hardcode_shlibpath_var=no
9901       ;;
9902
9903     hpux9*)
9904       if test "$GCC" = yes; then
9905         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9906       else
9907         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9908       fi
9909       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9910       hardcode_libdir_separator=:
9911       hardcode_direct=yes
9912
9913       # hardcode_minus_L: Not really in the search PATH,
9914       # but as the default location of the library.
9915       hardcode_minus_L=yes
9916       export_dynamic_flag_spec='${wl}-E'
9917       ;;
9918
9919     hpux10*)
9920       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9921         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9922       else
9923         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9924       fi
9925       if test "$with_gnu_ld" = no; then
9926         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9927         hardcode_libdir_separator=:
9928         hardcode_direct=yes
9929         hardcode_direct_absolute=yes
9930         export_dynamic_flag_spec='${wl}-E'
9931         # hardcode_minus_L: Not really in the search PATH,
9932         # but as the default location of the library.
9933         hardcode_minus_L=yes
9934       fi
9935       ;;
9936
9937     hpux11*)
9938       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9939         case $host_cpu in
9940         hppa*64*)
9941           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9942           ;;
9943         ia64*)
9944           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9945           ;;
9946         *)
9947           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9948           ;;
9949         esac
9950       else
9951         case $host_cpu in
9952         hppa*64*)
9953           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9954           ;;
9955         ia64*)
9956           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9957           ;;
9958         *)
9959
9960           # Older versions of the 11.00 compiler do not understand -b yet
9961           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9962           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9963 $as_echo_n "checking if $CC understands -b... " >&6; }
9964 if ${lt_cv_prog_compiler__b+:} false; then :
9965   $as_echo_n "(cached) " >&6
9966 else
9967   lt_cv_prog_compiler__b=no
9968    save_LDFLAGS="$LDFLAGS"
9969    LDFLAGS="$LDFLAGS -b"
9970    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9971    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9972      # The linker can only warn and ignore the option if not recognized
9973      # So say no if there are warnings
9974      if test -s conftest.err; then
9975        # Append any errors to the config.log.
9976        cat conftest.err 1>&5
9977        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9978        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9979        if diff conftest.exp conftest.er2 >/dev/null; then
9980          lt_cv_prog_compiler__b=yes
9981        fi
9982      else
9983        lt_cv_prog_compiler__b=yes
9984      fi
9985    fi
9986    $RM -r conftest*
9987    LDFLAGS="$save_LDFLAGS"
9988
9989 fi
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9991 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9992
9993 if test x"$lt_cv_prog_compiler__b" = xyes; then
9994     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9995 else
9996     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9997 fi
9998
9999           ;;
10000         esac
10001       fi
10002       if test "$with_gnu_ld" = no; then
10003         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10004         hardcode_libdir_separator=:
10005
10006         case $host_cpu in
10007         hppa*64*|ia64*)
10008           hardcode_direct=no
10009           hardcode_shlibpath_var=no
10010           ;;
10011         *)
10012           hardcode_direct=yes
10013           hardcode_direct_absolute=yes
10014           export_dynamic_flag_spec='${wl}-E'
10015
10016           # hardcode_minus_L: Not really in the search PATH,
10017           # but as the default location of the library.
10018           hardcode_minus_L=yes
10019           ;;
10020         esac
10021       fi
10022       ;;
10023
10024     irix5* | irix6* | nonstopux*)
10025       if test "$GCC" = yes; then
10026         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'
10027         # Try to use the -exported_symbol ld option, if it does not
10028         # work, assume that -exports_file does not work either and
10029         # implicitly export all symbols.
10030         # This should be the same for all languages, so no per-tag cache variable.
10031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10032 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10033 if ${lt_cv_irix_exported_symbol+:} false; then :
10034   $as_echo_n "(cached) " >&6
10035 else
10036   save_LDFLAGS="$LDFLAGS"
10037            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10038            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h.  */
10040 int foo (void) { return 0; }
10041 _ACEOF
10042 if ac_fn_c_try_link "$LINENO"; then :
10043   lt_cv_irix_exported_symbol=yes
10044 else
10045   lt_cv_irix_exported_symbol=no
10046 fi
10047 rm -f core conftest.err conftest.$ac_objext \
10048     conftest$ac_exeext conftest.$ac_ext
10049            LDFLAGS="$save_LDFLAGS"
10050 fi
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10052 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10053         if test "$lt_cv_irix_exported_symbol" = yes; then
10054           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'
10055         fi
10056       else
10057         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'
10058         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'
10059       fi
10060       archive_cmds_need_lc='no'
10061       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10062       hardcode_libdir_separator=:
10063       inherit_rpath=yes
10064       link_all_deplibs=yes
10065       ;;
10066
10067     netbsd*)
10068       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10069         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10070       else
10071         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10072       fi
10073       hardcode_libdir_flag_spec='-R$libdir'
10074       hardcode_direct=yes
10075       hardcode_shlibpath_var=no
10076       ;;
10077
10078     newsos6)
10079       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080       hardcode_direct=yes
10081       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10082       hardcode_libdir_separator=:
10083       hardcode_shlibpath_var=no
10084       ;;
10085
10086     *nto* | *qnx*)
10087       ;;
10088
10089     openbsd*)
10090       if test -f /usr/libexec/ld.so; then
10091         hardcode_direct=yes
10092         hardcode_shlibpath_var=no
10093         hardcode_direct_absolute=yes
10094         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10095           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10096           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10097           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10098           export_dynamic_flag_spec='${wl}-E'
10099         else
10100           case $host_os in
10101            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10102              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10103              hardcode_libdir_flag_spec='-R$libdir'
10104              ;;
10105            *)
10106              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10107              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10108              ;;
10109           esac
10110         fi
10111       else
10112         ld_shlibs=no
10113       fi
10114       ;;
10115
10116     os2*)
10117       hardcode_libdir_flag_spec='-L$libdir'
10118       hardcode_minus_L=yes
10119       allow_undefined_flag=unsupported
10120       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10121       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10122       ;;
10123
10124     osf3*)
10125       if test "$GCC" = yes; then
10126         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10127         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'
10128       else
10129         allow_undefined_flag=' -expect_unresolved \*'
10130         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'
10131       fi
10132       archive_cmds_need_lc='no'
10133       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10134       hardcode_libdir_separator=:
10135       ;;
10136
10137     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10138       if test "$GCC" = yes; then
10139         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10140         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'
10141         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10142       else
10143         allow_undefined_flag=' -expect_unresolved \*'
10144         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'
10145         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~
10146         $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'
10147
10148         # Both c and cxx compiler support -rpath directly
10149         hardcode_libdir_flag_spec='-rpath $libdir'
10150       fi
10151       archive_cmds_need_lc='no'
10152       hardcode_libdir_separator=:
10153       ;;
10154
10155     solaris*)
10156       no_undefined_flag=' -z defs'
10157       if test "$GCC" = yes; then
10158         wlarc='${wl}'
10159         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10160         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10161           $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'
10162       else
10163         case `$CC -V 2>&1` in
10164         *"Compilers 5.0"*)
10165           wlarc=''
10166           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10168           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10169           ;;
10170         *)
10171           wlarc='${wl}'
10172           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10173           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10174           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10175           ;;
10176         esac
10177       fi
10178       hardcode_libdir_flag_spec='-R$libdir'
10179       hardcode_shlibpath_var=no
10180       case $host_os in
10181       solaris2.[0-5] | solaris2.[0-5].*) ;;
10182       *)
10183         # The compiler driver will combine and reorder linker options,
10184         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10185         # but is careful enough not to reorder.
10186         # Supported since Solaris 2.6 (maybe 2.5.1?)
10187         if test "$GCC" = yes; then
10188           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10189         else
10190           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10191         fi
10192         ;;
10193       esac
10194       link_all_deplibs=yes
10195       ;;
10196
10197     sunos4*)
10198       if test "x$host_vendor" = xsequent; then
10199         # Use $CC to link under sequent, because it throws in some extra .o
10200         # files that make .init and .fini sections work.
10201         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10202       else
10203         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10204       fi
10205       hardcode_libdir_flag_spec='-L$libdir'
10206       hardcode_direct=yes
10207       hardcode_minus_L=yes
10208       hardcode_shlibpath_var=no
10209       ;;
10210
10211     sysv4)
10212       case $host_vendor in
10213         sni)
10214           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215           hardcode_direct=yes # is this really true???
10216         ;;
10217         siemens)
10218           ## LD is ld it makes a PLAMLIB
10219           ## CC just makes a GrossModule.
10220           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10221           reload_cmds='$CC -r -o $output$reload_objs'
10222           hardcode_direct=no
10223         ;;
10224         motorola)
10225           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10227         ;;
10228       esac
10229       runpath_var='LD_RUN_PATH'
10230       hardcode_shlibpath_var=no
10231       ;;
10232
10233     sysv4.3*)
10234       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235       hardcode_shlibpath_var=no
10236       export_dynamic_flag_spec='-Bexport'
10237       ;;
10238
10239     sysv4*MP*)
10240       if test -d /usr/nec; then
10241         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10242         hardcode_shlibpath_var=no
10243         runpath_var=LD_RUN_PATH
10244         hardcode_runpath_var=yes
10245         ld_shlibs=yes
10246       fi
10247       ;;
10248
10249     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10250       no_undefined_flag='${wl}-z,text'
10251       archive_cmds_need_lc=no
10252       hardcode_shlibpath_var=no
10253       runpath_var='LD_RUN_PATH'
10254
10255       if test "$GCC" = yes; then
10256         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258       else
10259         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261       fi
10262       ;;
10263
10264     sysv5* | sco3.2v5* | sco5v6*)
10265       # Note: We can NOT use -z defs as we might desire, because we do not
10266       # link with -lc, and that would cause any symbols used from libc to
10267       # always be unresolved, which means just about no library would
10268       # ever link correctly.  If we're not using GNU ld we use -z text
10269       # though, which does catch some bad symbols but isn't as heavy-handed
10270       # as -z defs.
10271       no_undefined_flag='${wl}-z,text'
10272       allow_undefined_flag='${wl}-z,nodefs'
10273       archive_cmds_need_lc=no
10274       hardcode_shlibpath_var=no
10275       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10276       hardcode_libdir_separator=':'
10277       link_all_deplibs=yes
10278       export_dynamic_flag_spec='${wl}-Bexport'
10279       runpath_var='LD_RUN_PATH'
10280
10281       if test "$GCC" = yes; then
10282         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10284       else
10285         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287       fi
10288       ;;
10289
10290     uts4*)
10291       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292       hardcode_libdir_flag_spec='-L$libdir'
10293       hardcode_shlibpath_var=no
10294       ;;
10295
10296     *)
10297       ld_shlibs=no
10298       ;;
10299     esac
10300
10301     if test x$host_vendor = xsni; then
10302       case $host in
10303       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10304         export_dynamic_flag_spec='${wl}-Blargedynsym'
10305         ;;
10306       esac
10307     fi
10308   fi
10309
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10311 $as_echo "$ld_shlibs" >&6; }
10312 test "$ld_shlibs" = no && can_build_shared=no
10313
10314 with_gnu_ld=$with_gnu_ld
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330 #
10331 # Do we need to explicitly link libc?
10332 #
10333 case "x$archive_cmds_need_lc" in
10334 x|xyes)
10335   # Assume -lc should be added
10336   archive_cmds_need_lc=yes
10337
10338   if test "$enable_shared" = yes && test "$GCC" = yes; then
10339     case $archive_cmds in
10340     *'~'*)
10341       # FIXME: we may have to deal with multi-command sequences.
10342       ;;
10343     '$CC '*)
10344       # Test whether the compiler implicitly links with -lc since on some
10345       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10346       # to ld, don't add -lc before -lgcc.
10347       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10348 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10349 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352   $RM conftest*
10353         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10354
10355         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10356   (eval $ac_compile) 2>&5
10357   ac_status=$?
10358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10359   test $ac_status = 0; } 2>conftest.err; then
10360           soname=conftest
10361           lib=conftest
10362           libobjs=conftest.$ac_objext
10363           deplibs=
10364           wl=$lt_prog_compiler_wl
10365           pic_flag=$lt_prog_compiler_pic
10366           compiler_flags=-v
10367           linker_flags=-v
10368           verstring=
10369           output_objdir=.
10370           libname=conftest
10371           lt_save_allow_undefined_flag=$allow_undefined_flag
10372           allow_undefined_flag=
10373           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10374   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10375   ac_status=$?
10376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10377   test $ac_status = 0; }
10378           then
10379             lt_cv_archive_cmds_need_lc=no
10380           else
10381             lt_cv_archive_cmds_need_lc=yes
10382           fi
10383           allow_undefined_flag=$lt_save_allow_undefined_flag
10384         else
10385           cat conftest.err 1>&5
10386         fi
10387         $RM conftest*
10388
10389 fi
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10391 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10392       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10393       ;;
10394     esac
10395   fi
10396   ;;
10397 esac
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10551 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10552
10553 if test "$GCC" = yes; then
10554   case $host_os in
10555     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10556     *) lt_awk_arg="/^libraries:/" ;;
10557   esac
10558   case $host_os in
10559     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10560     *) lt_sed_strip_eq="s,=/,/,g" ;;
10561   esac
10562   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10563   case $lt_search_path_spec in
10564   *\;*)
10565     # if the path contains ";" then we assume it to be the separator
10566     # otherwise default to the standard path separator (i.e. ":") - it is
10567     # assumed that no part of a normal pathname contains ";" but that should
10568     # okay in the real world where ";" in dirpaths is itself problematic.
10569     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10570     ;;
10571   *)
10572     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10573     ;;
10574   esac
10575   # Ok, now we have the path, separated by spaces, we can step through it
10576   # and add multilib dir if necessary.
10577   lt_tmp_lt_search_path_spec=
10578   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10579   for lt_sys_path in $lt_search_path_spec; do
10580     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10581       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10582     else
10583       test -d "$lt_sys_path" && \
10584         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10585     fi
10586   done
10587   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10588 BEGIN {RS=" "; FS="/|\n";} {
10589   lt_foo="";
10590   lt_count=0;
10591   for (lt_i = NF; lt_i > 0; lt_i--) {
10592     if ($lt_i != "" && $lt_i != ".") {
10593       if ($lt_i == "..") {
10594         lt_count++;
10595       } else {
10596         if (lt_count == 0) {
10597           lt_foo="/" $lt_i lt_foo;
10598         } else {
10599           lt_count--;
10600         }
10601       }
10602     }
10603   }
10604   if (lt_foo != "") { lt_freq[lt_foo]++; }
10605   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10606 }'`
10607   # AWK program above erroneously prepends '/' to C:/dos/paths
10608   # for these hosts.
10609   case $host_os in
10610     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10611       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10612   esac
10613   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10614 else
10615   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10616 fi
10617 library_names_spec=
10618 libname_spec='lib$name'
10619 soname_spec=
10620 shrext_cmds=".so"
10621 postinstall_cmds=
10622 postuninstall_cmds=
10623 finish_cmds=
10624 finish_eval=
10625 shlibpath_var=
10626 shlibpath_overrides_runpath=unknown
10627 version_type=none
10628 dynamic_linker="$host_os ld.so"
10629 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10630 need_lib_prefix=unknown
10631 hardcode_into_libs=no
10632
10633 # when you set need_version to no, make sure it does not cause -set_version
10634 # flags to be left without arguments
10635 need_version=unknown
10636
10637 case $host_os in
10638 aix3*)
10639   version_type=linux # correct to gnu/linux during the next big refactor
10640   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10641   shlibpath_var=LIBPATH
10642
10643   # AIX 3 has no versioning support, so we append a major version to the name.
10644   soname_spec='${libname}${release}${shared_ext}$major'
10645   ;;
10646
10647 aix[4-9]*)
10648   version_type=linux # correct to gnu/linux during the next big refactor
10649   need_lib_prefix=no
10650   need_version=no
10651   hardcode_into_libs=yes
10652   if test "$host_cpu" = ia64; then
10653     # AIX 5 supports IA64
10654     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10655     shlibpath_var=LD_LIBRARY_PATH
10656   else
10657     # With GCC up to 2.95.x, collect2 would create an import file
10658     # for dependence libraries.  The import file would start with
10659     # the line `#! .'.  This would cause the generated library to
10660     # depend on `.', always an invalid library.  This was fixed in
10661     # development snapshots of GCC prior to 3.0.
10662     case $host_os in
10663       aix4 | aix4.[01] | aix4.[01].*)
10664       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10665            echo ' yes '
10666            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10667         :
10668       else
10669         can_build_shared=no
10670       fi
10671       ;;
10672     esac
10673     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10674     # soname into executable. Probably we can add versioning support to
10675     # collect2, so additional links can be useful in future.
10676     if test "$aix_use_runtimelinking" = yes; then
10677       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10678       # instead of lib<name>.a to let people know that these are not
10679       # typical AIX shared libraries.
10680       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681     else
10682       # We preserve .a as extension for shared libraries through AIX4.2
10683       # and later when we are not doing run time linking.
10684       library_names_spec='${libname}${release}.a $libname.a'
10685       soname_spec='${libname}${release}${shared_ext}$major'
10686     fi
10687     shlibpath_var=LIBPATH
10688   fi
10689   ;;
10690
10691 amigaos*)
10692   case $host_cpu in
10693   powerpc)
10694     # Since July 2007 AmigaOS4 officially supports .so libraries.
10695     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697     ;;
10698   m68k)
10699     library_names_spec='$libname.ixlibrary $libname.a'
10700     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10701     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10702     ;;
10703   esac
10704   ;;
10705
10706 beos*)
10707   library_names_spec='${libname}${shared_ext}'
10708   dynamic_linker="$host_os ld.so"
10709   shlibpath_var=LIBRARY_PATH
10710   ;;
10711
10712 bsdi[45]*)
10713   version_type=linux # correct to gnu/linux during the next big refactor
10714   need_version=no
10715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716   soname_spec='${libname}${release}${shared_ext}$major'
10717   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10718   shlibpath_var=LD_LIBRARY_PATH
10719   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10720   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10721   # the default ld.so.conf also contains /usr/contrib/lib and
10722   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10723   # libtool to hard-code these into programs
10724   ;;
10725
10726 cygwin* | mingw* | pw32* | cegcc*)
10727   version_type=windows
10728   shrext_cmds=".dll"
10729   need_version=no
10730   need_lib_prefix=no
10731
10732   case $GCC,$cc_basename in
10733   yes,*)
10734     # gcc
10735     library_names_spec='$libname.dll.a'
10736     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10737     postinstall_cmds='base_file=`basename \${file}`~
10738       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10739       dldir=$destdir/`dirname \$dlpath`~
10740       test -d \$dldir || mkdir -p \$dldir~
10741       $install_prog $dir/$dlname \$dldir/$dlname~
10742       chmod a+x \$dldir/$dlname~
10743       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10744         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10745       fi'
10746     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10747       dlpath=$dir/\$dldll~
10748        $RM \$dlpath'
10749     shlibpath_overrides_runpath=yes
10750
10751     case $host_os in
10752     cygwin*)
10753       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10754       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10755
10756       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10757       ;;
10758     mingw* | cegcc*)
10759       # MinGW DLLs use traditional 'lib' prefix
10760       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10761       ;;
10762     pw32*)
10763       # pw32 DLLs use 'pw' prefix rather than 'lib'
10764       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10765       ;;
10766     esac
10767     dynamic_linker='Win32 ld.exe'
10768     ;;
10769
10770   *,cl*)
10771     # Native MSVC
10772     libname_spec='$name'
10773     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10774     library_names_spec='${libname}.dll.lib'
10775
10776     case $build_os in
10777     mingw*)
10778       sys_lib_search_path_spec=
10779       lt_save_ifs=$IFS
10780       IFS=';'
10781       for lt_path in $LIB
10782       do
10783         IFS=$lt_save_ifs
10784         # Let DOS variable expansion print the short 8.3 style file name.
10785         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10786         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10787       done
10788       IFS=$lt_save_ifs
10789       # Convert to MSYS style.
10790       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10791       ;;
10792     cygwin*)
10793       # Convert to unix form, then to dos form, then back to unix form
10794       # but this time dos style (no spaces!) so that the unix form looks
10795       # like /cygdrive/c/PROGRA~1:/cygdr...
10796       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10797       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10798       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10799       ;;
10800     *)
10801       sys_lib_search_path_spec="$LIB"
10802       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10803         # It is most probably a Windows format PATH.
10804         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10805       else
10806         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10807       fi
10808       # FIXME: find the short name or the path components, as spaces are
10809       # common. (e.g. "Program Files" -> "PROGRA~1")
10810       ;;
10811     esac
10812
10813     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10814     postinstall_cmds='base_file=`basename \${file}`~
10815       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10816       dldir=$destdir/`dirname \$dlpath`~
10817       test -d \$dldir || mkdir -p \$dldir~
10818       $install_prog $dir/$dlname \$dldir/$dlname'
10819     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10820       dlpath=$dir/\$dldll~
10821        $RM \$dlpath'
10822     shlibpath_overrides_runpath=yes
10823     dynamic_linker='Win32 link.exe'
10824     ;;
10825
10826   *)
10827     # Assume MSVC wrapper
10828     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10829     dynamic_linker='Win32 ld.exe'
10830     ;;
10831   esac
10832   # FIXME: first we should search . and the directory the executable is in
10833   shlibpath_var=PATH
10834   ;;
10835
10836 darwin* | rhapsody*)
10837   dynamic_linker="$host_os dyld"
10838   version_type=darwin
10839   need_lib_prefix=no
10840   need_version=no
10841   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10842   soname_spec='${libname}${release}${major}$shared_ext'
10843   shlibpath_overrides_runpath=yes
10844   shlibpath_var=DYLD_LIBRARY_PATH
10845   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10846
10847   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10848   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10849   ;;
10850
10851 dgux*)
10852   version_type=linux # correct to gnu/linux during the next big refactor
10853   need_lib_prefix=no
10854   need_version=no
10855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10856   soname_spec='${libname}${release}${shared_ext}$major'
10857   shlibpath_var=LD_LIBRARY_PATH
10858   ;;
10859
10860 freebsd* | dragonfly*)
10861   # DragonFly does not have aout.  When/if they implement a new
10862   # versioning mechanism, adjust this.
10863   if test -x /usr/bin/objformat; then
10864     objformat=`/usr/bin/objformat`
10865   else
10866     case $host_os in
10867     freebsd[23].*) objformat=aout ;;
10868     *) objformat=elf ;;
10869     esac
10870   fi
10871   version_type=freebsd-$objformat
10872   case $version_type in
10873     freebsd-elf*)
10874       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10875       need_version=no
10876       need_lib_prefix=no
10877       ;;
10878     freebsd-*)
10879       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10880       need_version=yes
10881       ;;
10882   esac
10883   shlibpath_var=LD_LIBRARY_PATH
10884   case $host_os in
10885   freebsd2.*)
10886     shlibpath_overrides_runpath=yes
10887     ;;
10888   freebsd3.[01]* | freebsdelf3.[01]*)
10889     shlibpath_overrides_runpath=yes
10890     hardcode_into_libs=yes
10891     ;;
10892   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10893   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10894     shlibpath_overrides_runpath=no
10895     hardcode_into_libs=yes
10896     ;;
10897   *) # from 4.6 on, and DragonFly
10898     shlibpath_overrides_runpath=yes
10899     hardcode_into_libs=yes
10900     ;;
10901   esac
10902   ;;
10903
10904 gnu*)
10905   version_type=linux # correct to gnu/linux during the next big refactor
10906   need_lib_prefix=no
10907   need_version=no
10908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10909   soname_spec='${libname}${release}${shared_ext}$major'
10910   shlibpath_var=LD_LIBRARY_PATH
10911   shlibpath_overrides_runpath=no
10912   hardcode_into_libs=yes
10913   ;;
10914
10915 haiku*)
10916   version_type=linux # correct to gnu/linux during the next big refactor
10917   need_lib_prefix=no
10918   need_version=no
10919   dynamic_linker="$host_os runtime_loader"
10920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10921   soname_spec='${libname}${release}${shared_ext}$major'
10922   shlibpath_var=LIBRARY_PATH
10923   shlibpath_overrides_runpath=yes
10924   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10925   hardcode_into_libs=yes
10926   ;;
10927
10928 hpux9* | hpux10* | hpux11*)
10929   # Give a soname corresponding to the major version so that dld.sl refuses to
10930   # link against other versions.
10931   version_type=sunos
10932   need_lib_prefix=no
10933   need_version=no
10934   case $host_cpu in
10935   ia64*)
10936     shrext_cmds='.so'
10937     hardcode_into_libs=yes
10938     dynamic_linker="$host_os dld.so"
10939     shlibpath_var=LD_LIBRARY_PATH
10940     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942     soname_spec='${libname}${release}${shared_ext}$major'
10943     if test "X$HPUX_IA64_MODE" = X32; then
10944       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10945     else
10946       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10947     fi
10948     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10949     ;;
10950   hppa*64*)
10951     shrext_cmds='.sl'
10952     hardcode_into_libs=yes
10953     dynamic_linker="$host_os dld.sl"
10954     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10955     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10956     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957     soname_spec='${libname}${release}${shared_ext}$major'
10958     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10959     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10960     ;;
10961   *)
10962     shrext_cmds='.sl'
10963     dynamic_linker="$host_os dld.sl"
10964     shlibpath_var=SHLIB_PATH
10965     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967     soname_spec='${libname}${release}${shared_ext}$major'
10968     ;;
10969   esac
10970   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10971   postinstall_cmds='chmod 555 $lib'
10972   # or fails outright, so override atomically:
10973   install_override_mode=555
10974   ;;
10975
10976 interix[3-9]*)
10977   version_type=linux # correct to gnu/linux during the next big refactor
10978   need_lib_prefix=no
10979   need_version=no
10980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10981   soname_spec='${libname}${release}${shared_ext}$major'
10982   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10983   shlibpath_var=LD_LIBRARY_PATH
10984   shlibpath_overrides_runpath=no
10985   hardcode_into_libs=yes
10986   ;;
10987
10988 irix5* | irix6* | nonstopux*)
10989   case $host_os in
10990     nonstopux*) version_type=nonstopux ;;
10991     *)
10992         if test "$lt_cv_prog_gnu_ld" = yes; then
10993                 version_type=linux # correct to gnu/linux during the next big refactor
10994         else
10995                 version_type=irix
10996         fi ;;
10997   esac
10998   need_lib_prefix=no
10999   need_version=no
11000   soname_spec='${libname}${release}${shared_ext}$major'
11001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11002   case $host_os in
11003   irix5* | nonstopux*)
11004     libsuff= shlibsuff=
11005     ;;
11006   *)
11007     case $LD in # libtool.m4 will add one of these switches to LD
11008     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11009       libsuff= shlibsuff= libmagic=32-bit;;
11010     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11011       libsuff=32 shlibsuff=N32 libmagic=N32;;
11012     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11013       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11014     *) libsuff= shlibsuff= libmagic=never-match;;
11015     esac
11016     ;;
11017   esac
11018   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11019   shlibpath_overrides_runpath=no
11020   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11021   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11022   hardcode_into_libs=yes
11023   ;;
11024
11025 # No shared lib support for Linux oldld, aout, or coff.
11026 linux*oldld* | linux*aout* | linux*coff*)
11027   dynamic_linker=no
11028   ;;
11029
11030 # This must be glibc/ELF.
11031 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11032   version_type=linux # correct to gnu/linux during the next big refactor
11033   need_lib_prefix=no
11034   need_version=no
11035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036   soname_spec='${libname}${release}${shared_ext}$major'
11037   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11038   shlibpath_var=LD_LIBRARY_PATH
11039   shlibpath_overrides_runpath=no
11040
11041   # Some binutils ld are patched to set DT_RUNPATH
11042   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11043   $as_echo_n "(cached) " >&6
11044 else
11045   lt_cv_shlibpath_overrides_runpath=no
11046     save_LDFLAGS=$LDFLAGS
11047     save_libdir=$libdir
11048     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11049          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h.  */
11052
11053 int
11054 main ()
11055 {
11056
11057   ;
11058   return 0;
11059 }
11060 _ACEOF
11061 if ac_fn_c_try_link "$LINENO"; then :
11062   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11063   lt_cv_shlibpath_overrides_runpath=yes
11064 fi
11065 fi
11066 rm -f core conftest.err conftest.$ac_objext \
11067     conftest$ac_exeext conftest.$ac_ext
11068     LDFLAGS=$save_LDFLAGS
11069     libdir=$save_libdir
11070
11071 fi
11072
11073   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11074
11075   # This implies no fast_install, which is unacceptable.
11076   # Some rework will be needed to allow for fast_install
11077   # before this can be enabled.
11078   hardcode_into_libs=yes
11079
11080   # Append ld.so.conf contents to the search path
11081   if test -f /etc/ld.so.conf; then
11082     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' ' '`
11083     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11084   fi
11085
11086   # We used to test for /lib/ld.so.1 and disable shared libraries on
11087   # powerpc, because MkLinux only supported shared libraries with the
11088   # GNU dynamic linker.  Since this was broken with cross compilers,
11089   # most powerpc-linux boxes support dynamic linking these days and
11090   # people can always --disable-shared, the test was removed, and we
11091   # assume the GNU/Linux dynamic linker is in use.
11092   dynamic_linker='GNU/Linux ld.so'
11093   ;;
11094
11095 netbsd*)
11096   version_type=sunos
11097   need_lib_prefix=no
11098   need_version=no
11099   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11100     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11101     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11102     dynamic_linker='NetBSD (a.out) ld.so'
11103   else
11104     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11105     soname_spec='${libname}${release}${shared_ext}$major'
11106     dynamic_linker='NetBSD ld.elf_so'
11107   fi
11108   shlibpath_var=LD_LIBRARY_PATH
11109   shlibpath_overrides_runpath=yes
11110   hardcode_into_libs=yes
11111   ;;
11112
11113 newsos6)
11114   version_type=linux # correct to gnu/linux during the next big refactor
11115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116   shlibpath_var=LD_LIBRARY_PATH
11117   shlibpath_overrides_runpath=yes
11118   ;;
11119
11120 *nto* | *qnx*)
11121   version_type=qnx
11122   need_lib_prefix=no
11123   need_version=no
11124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125   soname_spec='${libname}${release}${shared_ext}$major'
11126   shlibpath_var=LD_LIBRARY_PATH
11127   shlibpath_overrides_runpath=no
11128   hardcode_into_libs=yes
11129   dynamic_linker='ldqnx.so'
11130   ;;
11131
11132 openbsd*)
11133   version_type=sunos
11134   sys_lib_dlsearch_path_spec="/usr/lib"
11135   need_lib_prefix=no
11136   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11137   case $host_os in
11138     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11139     *)                          need_version=no  ;;
11140   esac
11141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11142   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11143   shlibpath_var=LD_LIBRARY_PATH
11144   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11145     case $host_os in
11146       openbsd2.[89] | openbsd2.[89].*)
11147         shlibpath_overrides_runpath=no
11148         ;;
11149       *)
11150         shlibpath_overrides_runpath=yes
11151         ;;
11152       esac
11153   else
11154     shlibpath_overrides_runpath=yes
11155   fi
11156   ;;
11157
11158 os2*)
11159   libname_spec='$name'
11160   shrext_cmds=".dll"
11161   need_lib_prefix=no
11162   library_names_spec='$libname${shared_ext} $libname.a'
11163   dynamic_linker='OS/2 ld.exe'
11164   shlibpath_var=LIBPATH
11165   ;;
11166
11167 osf3* | osf4* | osf5*)
11168   version_type=osf
11169   need_lib_prefix=no
11170   need_version=no
11171   soname_spec='${libname}${release}${shared_ext}$major'
11172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173   shlibpath_var=LD_LIBRARY_PATH
11174   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11175   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11176   ;;
11177
11178 rdos*)
11179   dynamic_linker=no
11180   ;;
11181
11182 solaris*)
11183   version_type=linux # correct to gnu/linux during the next big refactor
11184   need_lib_prefix=no
11185   need_version=no
11186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187   soname_spec='${libname}${release}${shared_ext}$major'
11188   shlibpath_var=LD_LIBRARY_PATH
11189   shlibpath_overrides_runpath=yes
11190   hardcode_into_libs=yes
11191   # ldd complains unless libraries are executable
11192   postinstall_cmds='chmod +x $lib'
11193   ;;
11194
11195 sunos4*)
11196   version_type=sunos
11197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11198   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11199   shlibpath_var=LD_LIBRARY_PATH
11200   shlibpath_overrides_runpath=yes
11201   if test "$with_gnu_ld" = yes; then
11202     need_lib_prefix=no
11203   fi
11204   need_version=yes
11205   ;;
11206
11207 sysv4 | sysv4.3*)
11208   version_type=linux # correct to gnu/linux during the next big refactor
11209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210   soname_spec='${libname}${release}${shared_ext}$major'
11211   shlibpath_var=LD_LIBRARY_PATH
11212   case $host_vendor in
11213     sni)
11214       shlibpath_overrides_runpath=no
11215       need_lib_prefix=no
11216       runpath_var=LD_RUN_PATH
11217       ;;
11218     siemens)
11219       need_lib_prefix=no
11220       ;;
11221     motorola)
11222       need_lib_prefix=no
11223       need_version=no
11224       shlibpath_overrides_runpath=no
11225       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11226       ;;
11227   esac
11228   ;;
11229
11230 sysv4*MP*)
11231   if test -d /usr/nec ;then
11232     version_type=linux # correct to gnu/linux during the next big refactor
11233     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11234     soname_spec='$libname${shared_ext}.$major'
11235     shlibpath_var=LD_LIBRARY_PATH
11236   fi
11237   ;;
11238
11239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11240   version_type=freebsd-elf
11241   need_lib_prefix=no
11242   need_version=no
11243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11244   soname_spec='${libname}${release}${shared_ext}$major'
11245   shlibpath_var=LD_LIBRARY_PATH
11246   shlibpath_overrides_runpath=yes
11247   hardcode_into_libs=yes
11248   if test "$with_gnu_ld" = yes; then
11249     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11250   else
11251     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11252     case $host_os in
11253       sco3.2v5*)
11254         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11255         ;;
11256     esac
11257   fi
11258   sys_lib_dlsearch_path_spec='/usr/lib'
11259   ;;
11260
11261 tpf*)
11262   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11263   version_type=linux # correct to gnu/linux during the next big refactor
11264   need_lib_prefix=no
11265   need_version=no
11266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267   shlibpath_var=LD_LIBRARY_PATH
11268   shlibpath_overrides_runpath=no
11269   hardcode_into_libs=yes
11270   ;;
11271
11272 uts4*)
11273   version_type=linux # correct to gnu/linux during the next big refactor
11274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275   soname_spec='${libname}${release}${shared_ext}$major'
11276   shlibpath_var=LD_LIBRARY_PATH
11277   ;;
11278
11279 *)
11280   dynamic_linker=no
11281   ;;
11282 esac
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11284 $as_echo "$dynamic_linker" >&6; }
11285 test "$dynamic_linker" = no && can_build_shared=no
11286
11287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11288 if test "$GCC" = yes; then
11289   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11290 fi
11291
11292 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11293   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11294 fi
11295 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11296   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11297 fi
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11391 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11392 hardcode_action=
11393 if test -n "$hardcode_libdir_flag_spec" ||
11394    test -n "$runpath_var" ||
11395    test "X$hardcode_automatic" = "Xyes" ; then
11396
11397   # We can hardcode non-existent directories.
11398   if test "$hardcode_direct" != no &&
11399      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11400      # have to relink, otherwise we might link with an installed library
11401      # when we should be linking with a yet-to-be-installed one
11402      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11403      test "$hardcode_minus_L" != no; then
11404     # Linking always hardcodes the temporary library directory.
11405     hardcode_action=relink
11406   else
11407     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11408     hardcode_action=immediate
11409   fi
11410 else
11411   # We cannot hardcode anything, or else we can only hardcode existing
11412   # directories.
11413   hardcode_action=unsupported
11414 fi
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11416 $as_echo "$hardcode_action" >&6; }
11417
11418 if test "$hardcode_action" = relink ||
11419    test "$inherit_rpath" = yes; then
11420   # Fast installation is not supported
11421   enable_fast_install=no
11422 elif test "$shlibpath_overrides_runpath" = yes ||
11423      test "$enable_shared" = no; then
11424   # Fast installation is not necessary
11425   enable_fast_install=needless
11426 fi
11427
11428
11429
11430
11431
11432
11433   if test "x$enable_dlopen" != xyes; then
11434   enable_dlopen=unknown
11435   enable_dlopen_self=unknown
11436   enable_dlopen_self_static=unknown
11437 else
11438   lt_cv_dlopen=no
11439   lt_cv_dlopen_libs=
11440
11441   case $host_os in
11442   beos*)
11443     lt_cv_dlopen="load_add_on"
11444     lt_cv_dlopen_libs=
11445     lt_cv_dlopen_self=yes
11446     ;;
11447
11448   mingw* | pw32* | cegcc*)
11449     lt_cv_dlopen="LoadLibrary"
11450     lt_cv_dlopen_libs=
11451     ;;
11452
11453   cygwin*)
11454     lt_cv_dlopen="dlopen"
11455     lt_cv_dlopen_libs=
11456     ;;
11457
11458   darwin*)
11459   # if libdl is installed we need to link against it
11460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11461 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11462 if ${ac_cv_lib_dl_dlopen+:} false; then :
11463   $as_echo_n "(cached) " >&6
11464 else
11465   ac_check_lib_save_LIBS=$LIBS
11466 LIBS="-ldl  $LIBS"
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h.  */
11469
11470 /* Override any GCC internal prototype to avoid an error.
11471    Use char because int might match the return type of a GCC
11472    builtin and then its argument prototype would still apply.  */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 char dlopen ();
11477 int
11478 main ()
11479 {
11480 return dlopen ();
11481   ;
11482   return 0;
11483 }
11484 _ACEOF
11485 if ac_fn_c_try_link "$LINENO"; then :
11486   ac_cv_lib_dl_dlopen=yes
11487 else
11488   ac_cv_lib_dl_dlopen=no
11489 fi
11490 rm -f core conftest.err conftest.$ac_objext \
11491     conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_check_lib_save_LIBS
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11495 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11496 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11497   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11498 else
11499
11500     lt_cv_dlopen="dyld"
11501     lt_cv_dlopen_libs=
11502     lt_cv_dlopen_self=yes
11503
11504 fi
11505
11506     ;;
11507
11508   *)
11509     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11510 if test "x$ac_cv_func_shl_load" = xyes; then :
11511   lt_cv_dlopen="shl_load"
11512 else
11513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11514 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11515 if ${ac_cv_lib_dld_shl_load+:} false; then :
11516   $as_echo_n "(cached) " >&6
11517 else
11518   ac_check_lib_save_LIBS=$LIBS
11519 LIBS="-ldld  $LIBS"
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h.  */
11522
11523 /* Override any GCC internal prototype to avoid an error.
11524    Use char because int might match the return type of a GCC
11525    builtin and then its argument prototype would still apply.  */
11526 #ifdef __cplusplus
11527 extern "C"
11528 #endif
11529 char shl_load ();
11530 int
11531 main ()
11532 {
11533 return shl_load ();
11534   ;
11535   return 0;
11536 }
11537 _ACEOF
11538 if ac_fn_c_try_link "$LINENO"; then :
11539   ac_cv_lib_dld_shl_load=yes
11540 else
11541   ac_cv_lib_dld_shl_load=no
11542 fi
11543 rm -f core conftest.err conftest.$ac_objext \
11544     conftest$ac_exeext conftest.$ac_ext
11545 LIBS=$ac_check_lib_save_LIBS
11546 fi
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11548 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11549 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11550   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11551 else
11552   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11553 if test "x$ac_cv_func_dlopen" = xyes; then :
11554   lt_cv_dlopen="dlopen"
11555 else
11556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11557 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11558 if ${ac_cv_lib_dl_dlopen+:} false; then :
11559   $as_echo_n "(cached) " >&6
11560 else
11561   ac_check_lib_save_LIBS=$LIBS
11562 LIBS="-ldl  $LIBS"
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h.  */
11565
11566 /* Override any GCC internal prototype to avoid an error.
11567    Use char because int might match the return type of a GCC
11568    builtin and then its argument prototype would still apply.  */
11569 #ifdef __cplusplus
11570 extern "C"
11571 #endif
11572 char dlopen ();
11573 int
11574 main ()
11575 {
11576 return dlopen ();
11577   ;
11578   return 0;
11579 }
11580 _ACEOF
11581 if ac_fn_c_try_link "$LINENO"; then :
11582   ac_cv_lib_dl_dlopen=yes
11583 else
11584   ac_cv_lib_dl_dlopen=no
11585 fi
11586 rm -f core conftest.err conftest.$ac_objext \
11587     conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11589 fi
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11591 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11592 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11593   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11594 else
11595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11596 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11597 if ${ac_cv_lib_svld_dlopen+:} false; then :
11598   $as_echo_n "(cached) " >&6
11599 else
11600   ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-lsvld  $LIBS"
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h.  */
11604
11605 /* Override any GCC internal prototype to avoid an error.
11606    Use char because int might match the return type of a GCC
11607    builtin and then its argument prototype would still apply.  */
11608 #ifdef __cplusplus
11609 extern "C"
11610 #endif
11611 char dlopen ();
11612 int
11613 main ()
11614 {
11615 return dlopen ();
11616   ;
11617   return 0;
11618 }
11619 _ACEOF
11620 if ac_fn_c_try_link "$LINENO"; then :
11621   ac_cv_lib_svld_dlopen=yes
11622 else
11623   ac_cv_lib_svld_dlopen=no
11624 fi
11625 rm -f core conftest.err conftest.$ac_objext \
11626     conftest$ac_exeext conftest.$ac_ext
11627 LIBS=$ac_check_lib_save_LIBS
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11630 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11631 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11633 else
11634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11635 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11636 if ${ac_cv_lib_dld_dld_link+:} false; then :
11637   $as_echo_n "(cached) " >&6
11638 else
11639   ac_check_lib_save_LIBS=$LIBS
11640 LIBS="-ldld  $LIBS"
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h.  */
11643
11644 /* Override any GCC internal prototype to avoid an error.
11645    Use char because int might match the return type of a GCC
11646    builtin and then its argument prototype would still apply.  */
11647 #ifdef __cplusplus
11648 extern "C"
11649 #endif
11650 char dld_link ();
11651 int
11652 main ()
11653 {
11654 return dld_link ();
11655   ;
11656   return 0;
11657 }
11658 _ACEOF
11659 if ac_fn_c_try_link "$LINENO"; then :
11660   ac_cv_lib_dld_dld_link=yes
11661 else
11662   ac_cv_lib_dld_dld_link=no
11663 fi
11664 rm -f core conftest.err conftest.$ac_objext \
11665     conftest$ac_exeext conftest.$ac_ext
11666 LIBS=$ac_check_lib_save_LIBS
11667 fi
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11669 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11670 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11671   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11672 fi
11673
11674
11675 fi
11676
11677
11678 fi
11679
11680
11681 fi
11682
11683
11684 fi
11685
11686
11687 fi
11688
11689     ;;
11690   esac
11691
11692   if test "x$lt_cv_dlopen" != xno; then
11693     enable_dlopen=yes
11694   else
11695     enable_dlopen=no
11696   fi
11697
11698   case $lt_cv_dlopen in
11699   dlopen)
11700     save_CPPFLAGS="$CPPFLAGS"
11701     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11702
11703     save_LDFLAGS="$LDFLAGS"
11704     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11705
11706     save_LIBS="$LIBS"
11707     LIBS="$lt_cv_dlopen_libs $LIBS"
11708
11709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11710 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11711 if ${lt_cv_dlopen_self+:} false; then :
11712   $as_echo_n "(cached) " >&6
11713 else
11714           if test "$cross_compiling" = yes; then :
11715   lt_cv_dlopen_self=cross
11716 else
11717   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11718   lt_status=$lt_dlunknown
11719   cat > conftest.$ac_ext <<_LT_EOF
11720 #line $LINENO "configure"
11721 #include "confdefs.h"
11722
11723 #if HAVE_DLFCN_H
11724 #include <dlfcn.h>
11725 #endif
11726
11727 #include <stdio.h>
11728
11729 #ifdef RTLD_GLOBAL
11730 #  define LT_DLGLOBAL           RTLD_GLOBAL
11731 #else
11732 #  ifdef DL_GLOBAL
11733 #    define LT_DLGLOBAL         DL_GLOBAL
11734 #  else
11735 #    define LT_DLGLOBAL         0
11736 #  endif
11737 #endif
11738
11739 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11740    find out it does not work in some platform. */
11741 #ifndef LT_DLLAZY_OR_NOW
11742 #  ifdef RTLD_LAZY
11743 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11744 #  else
11745 #    ifdef DL_LAZY
11746 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11747 #    else
11748 #      ifdef RTLD_NOW
11749 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11750 #      else
11751 #        ifdef DL_NOW
11752 #          define LT_DLLAZY_OR_NOW      DL_NOW
11753 #        else
11754 #          define LT_DLLAZY_OR_NOW      0
11755 #        endif
11756 #      endif
11757 #    endif
11758 #  endif
11759 #endif
11760
11761 /* When -fvisbility=hidden is used, assume the code has been annotated
11762    correspondingly for the symbols needed.  */
11763 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11764 int fnord () __attribute__((visibility("default")));
11765 #endif
11766
11767 int fnord () { return 42; }
11768 int main ()
11769 {
11770   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11771   int status = $lt_dlunknown;
11772
11773   if (self)
11774     {
11775       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11776       else
11777         {
11778           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11779           else puts (dlerror ());
11780         }
11781       /* dlclose (self); */
11782     }
11783   else
11784     puts (dlerror ());
11785
11786   return status;
11787 }
11788 _LT_EOF
11789   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11790   (eval $ac_link) 2>&5
11791   ac_status=$?
11792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11793   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11794     (./conftest; exit; ) >&5 2>/dev/null
11795     lt_status=$?
11796     case x$lt_status in
11797       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11798       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11799       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11800     esac
11801   else :
11802     # compilation failed
11803     lt_cv_dlopen_self=no
11804   fi
11805 fi
11806 rm -fr conftest*
11807
11808
11809 fi
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11811 $as_echo "$lt_cv_dlopen_self" >&6; }
11812
11813     if test "x$lt_cv_dlopen_self" = xyes; then
11814       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11815       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11816 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11817 if ${lt_cv_dlopen_self_static+:} false; then :
11818   $as_echo_n "(cached) " >&6
11819 else
11820           if test "$cross_compiling" = yes; then :
11821   lt_cv_dlopen_self_static=cross
11822 else
11823   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11824   lt_status=$lt_dlunknown
11825   cat > conftest.$ac_ext <<_LT_EOF
11826 #line $LINENO "configure"
11827 #include "confdefs.h"
11828
11829 #if HAVE_DLFCN_H
11830 #include <dlfcn.h>
11831 #endif
11832
11833 #include <stdio.h>
11834
11835 #ifdef RTLD_GLOBAL
11836 #  define LT_DLGLOBAL           RTLD_GLOBAL
11837 #else
11838 #  ifdef DL_GLOBAL
11839 #    define LT_DLGLOBAL         DL_GLOBAL
11840 #  else
11841 #    define LT_DLGLOBAL         0
11842 #  endif
11843 #endif
11844
11845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11846    find out it does not work in some platform. */
11847 #ifndef LT_DLLAZY_OR_NOW
11848 #  ifdef RTLD_LAZY
11849 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11850 #  else
11851 #    ifdef DL_LAZY
11852 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11853 #    else
11854 #      ifdef RTLD_NOW
11855 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11856 #      else
11857 #        ifdef DL_NOW
11858 #          define LT_DLLAZY_OR_NOW      DL_NOW
11859 #        else
11860 #          define LT_DLLAZY_OR_NOW      0
11861 #        endif
11862 #      endif
11863 #    endif
11864 #  endif
11865 #endif
11866
11867 /* When -fvisbility=hidden is used, assume the code has been annotated
11868    correspondingly for the symbols needed.  */
11869 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11870 int fnord () __attribute__((visibility("default")));
11871 #endif
11872
11873 int fnord () { return 42; }
11874 int main ()
11875 {
11876   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11877   int status = $lt_dlunknown;
11878
11879   if (self)
11880     {
11881       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11882       else
11883         {
11884           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11885           else puts (dlerror ());
11886         }
11887       /* dlclose (self); */
11888     }
11889   else
11890     puts (dlerror ());
11891
11892   return status;
11893 }
11894 _LT_EOF
11895   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11896   (eval $ac_link) 2>&5
11897   ac_status=$?
11898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11899   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11900     (./conftest; exit; ) >&5 2>/dev/null
11901     lt_status=$?
11902     case x$lt_status in
11903       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11904       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11905       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11906     esac
11907   else :
11908     # compilation failed
11909     lt_cv_dlopen_self_static=no
11910   fi
11911 fi
11912 rm -fr conftest*
11913
11914
11915 fi
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11917 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11918     fi
11919
11920     CPPFLAGS="$save_CPPFLAGS"
11921     LDFLAGS="$save_LDFLAGS"
11922     LIBS="$save_LIBS"
11923     ;;
11924   esac
11925
11926   case $lt_cv_dlopen_self in
11927   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11928   *) enable_dlopen_self=unknown ;;
11929   esac
11930
11931   case $lt_cv_dlopen_self_static in
11932   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11933   *) enable_dlopen_self_static=unknown ;;
11934   esac
11935 fi
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953 striplib=
11954 old_striplib=
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11956 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11957 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11958   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11959   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961 $as_echo "yes" >&6; }
11962 else
11963 # FIXME - insert some real tests, host_os isn't really good enough
11964   case $host_os in
11965   darwin*)
11966     if test -n "$STRIP" ; then
11967       striplib="$STRIP -x"
11968       old_striplib="$STRIP -S"
11969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11970 $as_echo "yes" >&6; }
11971     else
11972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974     fi
11975     ;;
11976   *)
11977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11979     ;;
11980   esac
11981 fi
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994   # Report which library types will actually be built
11995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11996 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11998 $as_echo "$can_build_shared" >&6; }
11999
12000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12001 $as_echo_n "checking whether to build shared libraries... " >&6; }
12002   test "$can_build_shared" = "no" && enable_shared=no
12003
12004   # On AIX, shared libraries and static libraries use the same namespace, and
12005   # are all built from PIC.
12006   case $host_os in
12007   aix3*)
12008     test "$enable_shared" = yes && enable_static=no
12009     if test -n "$RANLIB"; then
12010       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12011       postinstall_cmds='$RANLIB $lib'
12012     fi
12013     ;;
12014
12015   aix[4-9]*)
12016     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12017       test "$enable_shared" = yes && enable_static=no
12018     fi
12019     ;;
12020   esac
12021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12022 $as_echo "$enable_shared" >&6; }
12023
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12025 $as_echo_n "checking whether to build static libraries... " >&6; }
12026   # Make sure either enable_shared or enable_static is yes.
12027   test "$enable_shared" = yes || enable_static=yes
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12029 $as_echo "$enable_static" >&6; }
12030
12031
12032
12033
12034 fi
12035 ac_ext=cpp
12036 ac_cpp='$CXXCPP $CPPFLAGS'
12037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12040
12041 CC="$lt_save_CC"
12042
12043       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12044     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12045     (test "X$CXX" != "Xg++"))) ; then
12046   ac_ext=cpp
12047 ac_cpp='$CXXCPP $CPPFLAGS'
12048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12052 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12053 if test -z "$CXXCPP"; then
12054   if ${ac_cv_prog_CXXCPP+:} false; then :
12055   $as_echo_n "(cached) " >&6
12056 else
12057       # Double quotes because CXXCPP needs to be expanded
12058     for CXXCPP in "$CXX -E" "/lib/cpp"
12059     do
12060       ac_preproc_ok=false
12061 for ac_cxx_preproc_warn_flag in '' yes
12062 do
12063   # Use a header file that comes with gcc, so configuring glibc
12064   # with a fresh cross-compiler works.
12065   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066   # <limits.h> exists even on freestanding compilers.
12067   # On the NeXT, cc -E runs the code through the compiler's parser,
12068   # not just through cpp. "Syntax error" is here to catch this case.
12069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h.  */
12071 #ifdef __STDC__
12072 # include <limits.h>
12073 #else
12074 # include <assert.h>
12075 #endif
12076                      Syntax error
12077 _ACEOF
12078 if ac_fn_cxx_try_cpp "$LINENO"; then :
12079
12080 else
12081   # Broken: fails on valid input.
12082 continue
12083 fi
12084 rm -f conftest.err conftest.i conftest.$ac_ext
12085
12086   # OK, works on sane cases.  Now check whether nonexistent headers
12087   # can be detected and how.
12088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h.  */
12090 #include <ac_nonexistent.h>
12091 _ACEOF
12092 if ac_fn_cxx_try_cpp "$LINENO"; then :
12093   # Broken: success on invalid input.
12094 continue
12095 else
12096   # Passes both tests.
12097 ac_preproc_ok=:
12098 break
12099 fi
12100 rm -f conftest.err conftest.i conftest.$ac_ext
12101
12102 done
12103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12104 rm -f conftest.i conftest.err conftest.$ac_ext
12105 if $ac_preproc_ok; then :
12106   break
12107 fi
12108
12109     done
12110     ac_cv_prog_CXXCPP=$CXXCPP
12111
12112 fi
12113   CXXCPP=$ac_cv_prog_CXXCPP
12114 else
12115   ac_cv_prog_CXXCPP=$CXXCPP
12116 fi
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12118 $as_echo "$CXXCPP" >&6; }
12119 ac_preproc_ok=false
12120 for ac_cxx_preproc_warn_flag in '' yes
12121 do
12122   # Use a header file that comes with gcc, so configuring glibc
12123   # with a fresh cross-compiler works.
12124   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12125   # <limits.h> exists even on freestanding compilers.
12126   # On the NeXT, cc -E runs the code through the compiler's parser,
12127   # not just through cpp. "Syntax error" is here to catch this case.
12128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h.  */
12130 #ifdef __STDC__
12131 # include <limits.h>
12132 #else
12133 # include <assert.h>
12134 #endif
12135                      Syntax error
12136 _ACEOF
12137 if ac_fn_cxx_try_cpp "$LINENO"; then :
12138
12139 else
12140   # Broken: fails on valid input.
12141 continue
12142 fi
12143 rm -f conftest.err conftest.i conftest.$ac_ext
12144
12145   # OK, works on sane cases.  Now check whether nonexistent headers
12146   # can be detected and how.
12147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h.  */
12149 #include <ac_nonexistent.h>
12150 _ACEOF
12151 if ac_fn_cxx_try_cpp "$LINENO"; then :
12152   # Broken: success on invalid input.
12153 continue
12154 else
12155   # Passes both tests.
12156 ac_preproc_ok=:
12157 break
12158 fi
12159 rm -f conftest.err conftest.i conftest.$ac_ext
12160
12161 done
12162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12163 rm -f conftest.i conftest.err conftest.$ac_ext
12164 if $ac_preproc_ok; then :
12165
12166 else
12167   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12169 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12170 See \`config.log' for more details" "$LINENO" 5; }
12171 fi
12172
12173 ac_ext=cpp
12174 ac_cpp='$CXXCPP $CPPFLAGS'
12175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12178
12179 else
12180   _lt_caught_CXX_error=yes
12181 fi
12182
12183 ac_ext=cpp
12184 ac_cpp='$CXXCPP $CPPFLAGS'
12185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12188
12189 archive_cmds_need_lc_CXX=no
12190 allow_undefined_flag_CXX=
12191 always_export_symbols_CXX=no
12192 archive_expsym_cmds_CXX=
12193 compiler_needs_object_CXX=no
12194 export_dynamic_flag_spec_CXX=
12195 hardcode_direct_CXX=no
12196 hardcode_direct_absolute_CXX=no
12197 hardcode_libdir_flag_spec_CXX=
12198 hardcode_libdir_separator_CXX=
12199 hardcode_minus_L_CXX=no
12200 hardcode_shlibpath_var_CXX=unsupported
12201 hardcode_automatic_CXX=no
12202 inherit_rpath_CXX=no
12203 module_cmds_CXX=
12204 module_expsym_cmds_CXX=
12205 link_all_deplibs_CXX=unknown
12206 old_archive_cmds_CXX=$old_archive_cmds
12207 reload_flag_CXX=$reload_flag
12208 reload_cmds_CXX=$reload_cmds
12209 no_undefined_flag_CXX=
12210 whole_archive_flag_spec_CXX=
12211 enable_shared_with_static_runtimes_CXX=no
12212
12213 # Source file extension for C++ test sources.
12214 ac_ext=cpp
12215
12216 # Object file extension for compiled C++ test sources.
12217 objext=o
12218 objext_CXX=$objext
12219
12220 # No sense in running all these tests if we already determined that
12221 # the CXX compiler isn't working.  Some variables (like enable_shared)
12222 # are currently assumed to apply to all compilers on this platform,
12223 # and will be corrupted by setting them based on a non-working compiler.
12224 if test "$_lt_caught_CXX_error" != yes; then
12225   # Code to be used in simple compile tests
12226   lt_simple_compile_test_code="int some_variable = 0;"
12227
12228   # Code to be used in simple link tests
12229   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12230
12231   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12232
12233
12234
12235
12236
12237
12238 # If no C compiler was specified, use CC.
12239 LTCC=${LTCC-"$CC"}
12240
12241 # If no C compiler flags were specified, use CFLAGS.
12242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12243
12244 # Allow CC to be a program name with arguments.
12245 compiler=$CC
12246
12247
12248   # save warnings/boilerplate of simple test code
12249   ac_outfile=conftest.$ac_objext
12250 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12251 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12252 _lt_compiler_boilerplate=`cat conftest.err`
12253 $RM conftest*
12254
12255   ac_outfile=conftest.$ac_objext
12256 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12257 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12258 _lt_linker_boilerplate=`cat conftest.err`
12259 $RM -r conftest*
12260
12261
12262   # Allow CC to be a program name with arguments.
12263   lt_save_CC=$CC
12264   lt_save_CFLAGS=$CFLAGS
12265   lt_save_LD=$LD
12266   lt_save_GCC=$GCC
12267   GCC=$GXX
12268   lt_save_with_gnu_ld=$with_gnu_ld
12269   lt_save_path_LD=$lt_cv_path_LD
12270   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12271     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12272   else
12273     $as_unset lt_cv_prog_gnu_ld
12274   fi
12275   if test -n "${lt_cv_path_LDCXX+set}"; then
12276     lt_cv_path_LD=$lt_cv_path_LDCXX
12277   else
12278     $as_unset lt_cv_path_LD
12279   fi
12280   test -z "${LDCXX+set}" || LD=$LDCXX
12281   CC=${CXX-"c++"}
12282   CFLAGS=$CXXFLAGS
12283   compiler=$CC
12284   compiler_CXX=$CC
12285   for cc_temp in $compiler""; do
12286   case $cc_temp in
12287     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12288     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12289     \-*) ;;
12290     *) break;;
12291   esac
12292 done
12293 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12294
12295
12296   if test -n "$compiler"; then
12297     # We don't want -fno-exception when compiling C++ code, so set the
12298     # no_builtin_flag separately
12299     if test "$GXX" = yes; then
12300       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12301     else
12302       lt_prog_compiler_no_builtin_flag_CXX=
12303     fi
12304
12305     if test "$GXX" = yes; then
12306       # Set up default GNU C++ configuration
12307
12308
12309
12310 # Check whether --with-gnu-ld was given.
12311 if test "${with_gnu_ld+set}" = set; then :
12312   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12313 else
12314   with_gnu_ld=no
12315 fi
12316
12317 ac_prog=ld
12318 if test "$GCC" = yes; then
12319   # Check if gcc -print-prog-name=ld gives a path.
12320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12321 $as_echo_n "checking for ld used by $CC... " >&6; }
12322   case $host in
12323   *-*-mingw*)
12324     # gcc leaves a trailing carriage return which upsets mingw
12325     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12326   *)
12327     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12328   esac
12329   case $ac_prog in
12330     # Accept absolute paths.
12331     [\\/]* | ?:[\\/]*)
12332       re_direlt='/[^/][^/]*/\.\./'
12333       # Canonicalize the pathname of ld
12334       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12335       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12336         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12337       done
12338       test -z "$LD" && LD="$ac_prog"
12339       ;;
12340   "")
12341     # If it fails, then pretend we aren't using GCC.
12342     ac_prog=ld
12343     ;;
12344   *)
12345     # If it is relative, then search for the first ld in PATH.
12346     with_gnu_ld=unknown
12347     ;;
12348   esac
12349 elif test "$with_gnu_ld" = yes; then
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12351 $as_echo_n "checking for GNU ld... " >&6; }
12352 else
12353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12354 $as_echo_n "checking for non-GNU ld... " >&6; }
12355 fi
12356 if ${lt_cv_path_LD+:} false; then :
12357   $as_echo_n "(cached) " >&6
12358 else
12359   if test -z "$LD"; then
12360   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12361   for ac_dir in $PATH; do
12362     IFS="$lt_save_ifs"
12363     test -z "$ac_dir" && ac_dir=.
12364     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12365       lt_cv_path_LD="$ac_dir/$ac_prog"
12366       # Check to see if the program is GNU ld.  I'd rather use --version,
12367       # but apparently some variants of GNU ld only accept -v.
12368       # Break only if it was the GNU/non-GNU ld that we prefer.
12369       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12370       *GNU* | *'with BFD'*)
12371         test "$with_gnu_ld" != no && break
12372         ;;
12373       *)
12374         test "$with_gnu_ld" != yes && break
12375         ;;
12376       esac
12377     fi
12378   done
12379   IFS="$lt_save_ifs"
12380 else
12381   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12382 fi
12383 fi
12384
12385 LD="$lt_cv_path_LD"
12386 if test -n "$LD"; then
12387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12388 $as_echo "$LD" >&6; }
12389 else
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12392 fi
12393 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12395 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12396 if ${lt_cv_prog_gnu_ld+:} false; then :
12397   $as_echo_n "(cached) " >&6
12398 else
12399   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12400 case `$LD -v 2>&1 </dev/null` in
12401 *GNU* | *'with BFD'*)
12402   lt_cv_prog_gnu_ld=yes
12403   ;;
12404 *)
12405   lt_cv_prog_gnu_ld=no
12406   ;;
12407 esac
12408 fi
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12410 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12411 with_gnu_ld=$lt_cv_prog_gnu_ld
12412
12413
12414
12415
12416
12417
12418
12419       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12420       # archiving commands below assume that GNU ld is being used.
12421       if test "$with_gnu_ld" = yes; then
12422         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12423         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'
12424
12425         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12426         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12427
12428         # If archive_cmds runs LD, not CC, wlarc should be empty
12429         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12430         #     investigate it a little bit more. (MM)
12431         wlarc='${wl}'
12432
12433         # ancient GNU ld didn't support --whole-archive et. al.
12434         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12435           $GREP 'no-whole-archive' > /dev/null; then
12436           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12437         else
12438           whole_archive_flag_spec_CXX=
12439         fi
12440       else
12441         with_gnu_ld=no
12442         wlarc=
12443
12444         # A generic and very simple default shared library creation
12445         # command for GNU C++ for the case where it uses the native
12446         # linker, instead of GNU ld.  If possible, this setting should
12447         # overridden to take advantage of the native linker features on
12448         # the platform it is being used on.
12449         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12450       fi
12451
12452       # Commands to make compiler produce verbose output that lists
12453       # what "hidden" libraries, object files and flags are used when
12454       # linking a shared library.
12455       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12456
12457     else
12458       GXX=no
12459       with_gnu_ld=no
12460       wlarc=
12461     fi
12462
12463     # PORTME: fill in a description of your system's C++ link characteristics
12464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12465 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12466     ld_shlibs_CXX=yes
12467     case $host_os in
12468       aix3*)
12469         # FIXME: insert proper C++ library support
12470         ld_shlibs_CXX=no
12471         ;;
12472       aix[4-9]*)
12473         if test "$host_cpu" = ia64; then
12474           # On IA64, the linker does run time linking by default, so we don't
12475           # have to do anything special.
12476           aix_use_runtimelinking=no
12477           exp_sym_flag='-Bexport'
12478           no_entry_flag=""
12479         else
12480           aix_use_runtimelinking=no
12481
12482           # Test if we are trying to use run time linking or normal
12483           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12484           # need to do runtime linking.
12485           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12486             for ld_flag in $LDFLAGS; do
12487               case $ld_flag in
12488               *-brtl*)
12489                 aix_use_runtimelinking=yes
12490                 break
12491                 ;;
12492               esac
12493             done
12494             ;;
12495           esac
12496
12497           exp_sym_flag='-bexport'
12498           no_entry_flag='-bnoentry'
12499         fi
12500
12501         # When large executables or shared objects are built, AIX ld can
12502         # have problems creating the table of contents.  If linking a library
12503         # or program results in "error TOC overflow" add -mminimal-toc to
12504         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12505         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12506
12507         archive_cmds_CXX=''
12508         hardcode_direct_CXX=yes
12509         hardcode_direct_absolute_CXX=yes
12510         hardcode_libdir_separator_CXX=':'
12511         link_all_deplibs_CXX=yes
12512         file_list_spec_CXX='${wl}-f,'
12513
12514         if test "$GXX" = yes; then
12515           case $host_os in aix4.[012]|aix4.[012].*)
12516           # We only want to do this on AIX 4.2 and lower, the check
12517           # below for broken collect2 doesn't work under 4.3+
12518           collect2name=`${CC} -print-prog-name=collect2`
12519           if test -f "$collect2name" &&
12520              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12521           then
12522             # We have reworked collect2
12523             :
12524           else
12525             # We have old collect2
12526             hardcode_direct_CXX=unsupported
12527             # It fails to find uninstalled libraries when the uninstalled
12528             # path is not listed in the libpath.  Setting hardcode_minus_L
12529             # to unsupported forces relinking
12530             hardcode_minus_L_CXX=yes
12531             hardcode_libdir_flag_spec_CXX='-L$libdir'
12532             hardcode_libdir_separator_CXX=
12533           fi
12534           esac
12535           shared_flag='-shared'
12536           if test "$aix_use_runtimelinking" = yes; then
12537             shared_flag="$shared_flag "'${wl}-G'
12538           fi
12539         else
12540           # not using gcc
12541           if test "$host_cpu" = ia64; then
12542           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12543           # chokes on -Wl,-G. The following line is correct:
12544           shared_flag='-G'
12545           else
12546             if test "$aix_use_runtimelinking" = yes; then
12547               shared_flag='${wl}-G'
12548             else
12549               shared_flag='${wl}-bM:SRE'
12550             fi
12551           fi
12552         fi
12553
12554         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12555         # It seems that -bexpall does not export symbols beginning with
12556         # underscore (_), so it is better to generate a list of symbols to
12557         # export.
12558         always_export_symbols_CXX=yes
12559         if test "$aix_use_runtimelinking" = yes; then
12560           # Warning - without using the other runtime loading flags (-brtl),
12561           # -berok will link without error, but may produce a broken library.
12562           allow_undefined_flag_CXX='-berok'
12563           # Determine the default libpath from the value encoded in an empty
12564           # executable.
12565           if test "${lt_cv_aix_libpath+set}" = set; then
12566   aix_libpath=$lt_cv_aix_libpath
12567 else
12568   if ${lt_cv_aix_libpath__CXX+:} false; then :
12569   $as_echo_n "(cached) " >&6
12570 else
12571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h.  */
12573
12574 int
12575 main ()
12576 {
12577
12578   ;
12579   return 0;
12580 }
12581 _ACEOF
12582 if ac_fn_cxx_try_link "$LINENO"; then :
12583
12584   lt_aix_libpath_sed='
12585       /Import File Strings/,/^$/ {
12586           /^0/ {
12587               s/^0  *\([^ ]*\) *$/\1/
12588               p
12589           }
12590       }'
12591   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12592   # Check for a 64-bit object if we didn't find anything.
12593   if test -z "$lt_cv_aix_libpath__CXX"; then
12594     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12595   fi
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext \
12598     conftest$ac_exeext conftest.$ac_ext
12599   if test -z "$lt_cv_aix_libpath__CXX"; then
12600     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12601   fi
12602
12603 fi
12604
12605   aix_libpath=$lt_cv_aix_libpath__CXX
12606 fi
12607
12608           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12609
12610           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12611         else
12612           if test "$host_cpu" = ia64; then
12613             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12614             allow_undefined_flag_CXX="-z nodefs"
12615             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"
12616           else
12617             # Determine the default libpath from the value encoded in an
12618             # empty executable.
12619             if test "${lt_cv_aix_libpath+set}" = set; then
12620   aix_libpath=$lt_cv_aix_libpath
12621 else
12622   if ${lt_cv_aix_libpath__CXX+:} false; then :
12623   $as_echo_n "(cached) " >&6
12624 else
12625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h.  */
12627
12628 int
12629 main ()
12630 {
12631
12632   ;
12633   return 0;
12634 }
12635 _ACEOF
12636 if ac_fn_cxx_try_link "$LINENO"; then :
12637
12638   lt_aix_libpath_sed='
12639       /Import File Strings/,/^$/ {
12640           /^0/ {
12641               s/^0  *\([^ ]*\) *$/\1/
12642               p
12643           }
12644       }'
12645   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12646   # Check for a 64-bit object if we didn't find anything.
12647   if test -z "$lt_cv_aix_libpath__CXX"; then
12648     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12649   fi
12650 fi
12651 rm -f core conftest.err conftest.$ac_objext \
12652     conftest$ac_exeext conftest.$ac_ext
12653   if test -z "$lt_cv_aix_libpath__CXX"; then
12654     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12655   fi
12656
12657 fi
12658
12659   aix_libpath=$lt_cv_aix_libpath__CXX
12660 fi
12661
12662             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12663             # Warning - without using the other run time loading flags,
12664             # -berok will link without error, but may produce a broken library.
12665             no_undefined_flag_CXX=' ${wl}-bernotok'
12666             allow_undefined_flag_CXX=' ${wl}-berok'
12667             if test "$with_gnu_ld" = yes; then
12668               # We only use this code for GNU lds that support --whole-archive.
12669               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12670             else
12671               # Exported symbols can be pulled into shared objects from archives
12672               whole_archive_flag_spec_CXX='$convenience'
12673             fi
12674             archive_cmds_need_lc_CXX=yes
12675             # This is similar to how AIX traditionally builds its shared
12676             # libraries.
12677             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12678           fi
12679         fi
12680         ;;
12681
12682       beos*)
12683         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12684           allow_undefined_flag_CXX=unsupported
12685           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12686           # support --undefined.  This deserves some investigation.  FIXME
12687           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12688         else
12689           ld_shlibs_CXX=no
12690         fi
12691         ;;
12692
12693       chorus*)
12694         case $cc_basename in
12695           *)
12696           # FIXME: insert proper C++ library support
12697           ld_shlibs_CXX=no
12698           ;;
12699         esac
12700         ;;
12701
12702       cygwin* | mingw* | pw32* | cegcc*)
12703         case $GXX,$cc_basename in
12704         ,cl* | no,cl*)
12705           # Native MSVC
12706           # hardcode_libdir_flag_spec is actually meaningless, as there is
12707           # no search path for DLLs.
12708           hardcode_libdir_flag_spec_CXX=' '
12709           allow_undefined_flag_CXX=unsupported
12710           always_export_symbols_CXX=yes
12711           file_list_spec_CXX='@'
12712           # Tell ltmain to make .lib files, not .a files.
12713           libext=lib
12714           # Tell ltmain to make .dll files, not .so files.
12715           shrext_cmds=".dll"
12716           # FIXME: Setting linknames here is a bad hack.
12717           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12718           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12719               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12720             else
12721               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12722             fi~
12723             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12724             linknames='
12725           # The linker will not automatically build a static lib if we build a DLL.
12726           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12727           enable_shared_with_static_runtimes_CXX=yes
12728           # Don't use ranlib
12729           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12730           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12731             lt_tool_outputfile="@TOOL_OUTPUT@"~
12732             case $lt_outputfile in
12733               *.exe|*.EXE) ;;
12734               *)
12735                 lt_outputfile="$lt_outputfile.exe"
12736                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12737                 ;;
12738             esac~
12739             func_to_tool_file "$lt_outputfile"~
12740             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12741               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12742               $RM "$lt_outputfile.manifest";
12743             fi'
12744           ;;
12745         *)
12746           # g++
12747           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12748           # as there is no search path for DLLs.
12749           hardcode_libdir_flag_spec_CXX='-L$libdir'
12750           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12751           allow_undefined_flag_CXX=unsupported
12752           always_export_symbols_CXX=no
12753           enable_shared_with_static_runtimes_CXX=yes
12754
12755           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12756             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'
12757             # If the export-symbols file already is a .def file (1st line
12758             # is EXPORTS), use it as is; otherwise, prepend...
12759             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12760               cp $export_symbols $output_objdir/$soname.def;
12761             else
12762               echo EXPORTS > $output_objdir/$soname.def;
12763               cat $export_symbols >> $output_objdir/$soname.def;
12764             fi~
12765             $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'
12766           else
12767             ld_shlibs_CXX=no
12768           fi
12769           ;;
12770         esac
12771         ;;
12772       darwin* | rhapsody*)
12773
12774
12775   archive_cmds_need_lc_CXX=no
12776   hardcode_direct_CXX=no
12777   hardcode_automatic_CXX=yes
12778   hardcode_shlibpath_var_CXX=unsupported
12779   if test "$lt_cv_ld_force_load" = "yes"; then
12780     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\"`'
12781
12782   else
12783     whole_archive_flag_spec_CXX=''
12784   fi
12785   link_all_deplibs_CXX=yes
12786   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12787   case $cc_basename in
12788      ifort*) _lt_dar_can_shared=yes ;;
12789      *) _lt_dar_can_shared=$GCC ;;
12790   esac
12791   if test "$_lt_dar_can_shared" = "yes"; then
12792     output_verbose_link_cmd=func_echo_all
12793     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}"
12794     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12795     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}"
12796     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}"
12797        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12798       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}"
12799       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}"
12800     fi
12801
12802   else
12803   ld_shlibs_CXX=no
12804   fi
12805
12806         ;;
12807
12808       dgux*)
12809         case $cc_basename in
12810           ec++*)
12811             # FIXME: insert proper C++ library support
12812             ld_shlibs_CXX=no
12813             ;;
12814           ghcx*)
12815             # Green Hills C++ Compiler
12816             # FIXME: insert proper C++ library support
12817             ld_shlibs_CXX=no
12818             ;;
12819           *)
12820             # FIXME: insert proper C++ library support
12821             ld_shlibs_CXX=no
12822             ;;
12823         esac
12824         ;;
12825
12826       freebsd2.*)
12827         # C++ shared libraries reported to be fairly broken before
12828         # switch to ELF
12829         ld_shlibs_CXX=no
12830         ;;
12831
12832       freebsd-elf*)
12833         archive_cmds_need_lc_CXX=no
12834         ;;
12835
12836       freebsd* | dragonfly*)
12837         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12838         # conventions
12839         ld_shlibs_CXX=yes
12840         ;;
12841
12842       gnu*)
12843         ;;
12844
12845       haiku*)
12846         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12847         link_all_deplibs_CXX=yes
12848         ;;
12849
12850       hpux9*)
12851         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12852         hardcode_libdir_separator_CXX=:
12853         export_dynamic_flag_spec_CXX='${wl}-E'
12854         hardcode_direct_CXX=yes
12855         hardcode_minus_L_CXX=yes # Not in the search PATH,
12856                                              # but as the default
12857                                              # location of the library.
12858
12859         case $cc_basename in
12860           CC*)
12861             # FIXME: insert proper C++ library support
12862             ld_shlibs_CXX=no
12863             ;;
12864           aCC*)
12865             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12866             # Commands to make compiler produce verbose output that lists
12867             # what "hidden" libraries, object files and flags are used when
12868             # linking a shared library.
12869             #
12870             # There doesn't appear to be a way to prevent this compiler from
12871             # explicitly linking system object files so we need to strip them
12872             # from the output so that they don't get included in the library
12873             # dependencies.
12874             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"'
12875             ;;
12876           *)
12877             if test "$GXX" = yes; then
12878               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12879             else
12880               # FIXME: insert proper C++ library support
12881               ld_shlibs_CXX=no
12882             fi
12883             ;;
12884         esac
12885         ;;
12886
12887       hpux10*|hpux11*)
12888         if test $with_gnu_ld = no; then
12889           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12890           hardcode_libdir_separator_CXX=:
12891
12892           case $host_cpu in
12893             hppa*64*|ia64*)
12894               ;;
12895             *)
12896               export_dynamic_flag_spec_CXX='${wl}-E'
12897               ;;
12898           esac
12899         fi
12900         case $host_cpu in
12901           hppa*64*|ia64*)
12902             hardcode_direct_CXX=no
12903             hardcode_shlibpath_var_CXX=no
12904             ;;
12905           *)
12906             hardcode_direct_CXX=yes
12907             hardcode_direct_absolute_CXX=yes
12908             hardcode_minus_L_CXX=yes # Not in the search PATH,
12909                                                  # but as the default
12910                                                  # location of the library.
12911             ;;
12912         esac
12913
12914         case $cc_basename in
12915           CC*)
12916             # FIXME: insert proper C++ library support
12917             ld_shlibs_CXX=no
12918             ;;
12919           aCC*)
12920             case $host_cpu in
12921               hppa*64*)
12922                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12923                 ;;
12924               ia64*)
12925                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12926                 ;;
12927               *)
12928                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929                 ;;
12930             esac
12931             # Commands to make compiler produce verbose output that lists
12932             # what "hidden" libraries, object files and flags are used when
12933             # linking a shared library.
12934             #
12935             # There doesn't appear to be a way to prevent this compiler from
12936             # explicitly linking system object files so we need to strip them
12937             # from the output so that they don't get included in the library
12938             # dependencies.
12939             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"'
12940             ;;
12941           *)
12942             if test "$GXX" = yes; then
12943               if test $with_gnu_ld = no; then
12944                 case $host_cpu in
12945                   hppa*64*)
12946                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12947                     ;;
12948                   ia64*)
12949                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12950                     ;;
12951                   *)
12952                     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'
12953                     ;;
12954                 esac
12955               fi
12956             else
12957               # FIXME: insert proper C++ library support
12958               ld_shlibs_CXX=no
12959             fi
12960             ;;
12961         esac
12962         ;;
12963
12964       interix[3-9]*)
12965         hardcode_direct_CXX=no
12966         hardcode_shlibpath_var_CXX=no
12967         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12968         export_dynamic_flag_spec_CXX='${wl}-E'
12969         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12970         # Instead, shared libraries are loaded at an image base (0x10000000 by
12971         # default) and relocated if they conflict, which is a slow very memory
12972         # consuming and fragmenting process.  To avoid this, we pick a random,
12973         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12974         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12975         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'
12976         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'
12977         ;;
12978       irix5* | irix6*)
12979         case $cc_basename in
12980           CC*)
12981             # SGI C++
12982             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'
12983
12984             # Archives containing C++ object files must be created using
12985             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12986             # necessary to make sure instantiated templates are included
12987             # in the archive.
12988             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12989             ;;
12990           *)
12991             if test "$GXX" = yes; then
12992               if test "$with_gnu_ld" = no; then
12993                 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'
12994               else
12995                 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'
12996               fi
12997             fi
12998             link_all_deplibs_CXX=yes
12999             ;;
13000         esac
13001         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13002         hardcode_libdir_separator_CXX=:
13003         inherit_rpath_CXX=yes
13004         ;;
13005
13006       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13007         case $cc_basename in
13008           KCC*)
13009             # Kuck and Associates, Inc. (KAI) C++ Compiler
13010
13011             # KCC will only create a shared library if the output file
13012             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13013             # to its proper name (with version) after linking.
13014             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13015             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13016             # Commands to make compiler produce verbose output that lists
13017             # what "hidden" libraries, object files and flags are used when
13018             # linking a shared library.
13019             #
13020             # There doesn't appear to be a way to prevent this compiler from
13021             # explicitly linking system object files so we need to strip them
13022             # from the output so that they don't get included in the library
13023             # dependencies.
13024             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"'
13025
13026             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13027             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13028
13029             # Archives containing C++ object files must be created using
13030             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13031             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13032             ;;
13033           icpc* | ecpc* )
13034             # Intel C++
13035             with_gnu_ld=yes
13036             # version 8.0 and above of icpc choke on multiply defined symbols
13037             # if we add $predep_objects and $postdep_objects, however 7.1 and
13038             # earlier do not add the objects themselves.
13039             case `$CC -V 2>&1` in
13040               *"Version 7."*)
13041                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13042                 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'
13043                 ;;
13044               *)  # Version 8.0 or newer
13045                 tmp_idyn=
13046                 case $host_cpu in
13047                   ia64*) tmp_idyn=' -i_dynamic';;
13048                 esac
13049                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13050                 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'
13051                 ;;
13052             esac
13053             archive_cmds_need_lc_CXX=no
13054             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13055             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13056             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13057             ;;
13058           pgCC* | pgcpp*)
13059             # Portland Group C++ compiler
13060             case `$CC -V` in
13061             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13062               prelink_cmds_CXX='tpldir=Template.dir~
13063                 rm -rf $tpldir~
13064                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13065                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13066               old_archive_cmds_CXX='tpldir=Template.dir~
13067                 rm -rf $tpldir~
13068                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13069                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13070                 $RANLIB $oldlib'
13071               archive_cmds_CXX='tpldir=Template.dir~
13072                 rm -rf $tpldir~
13073                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13074                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13075               archive_expsym_cmds_CXX='tpldir=Template.dir~
13076                 rm -rf $tpldir~
13077                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13078                 $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'
13079               ;;
13080             *) # Version 6 and above use weak symbols
13081               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13082               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'
13083               ;;
13084             esac
13085
13086             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13087             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13088             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'
13089             ;;
13090           cxx*)
13091             # Compaq C++
13092             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13093             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'
13094
13095             runpath_var=LD_RUN_PATH
13096             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13097             hardcode_libdir_separator_CXX=:
13098
13099             # Commands to make compiler produce verbose output that lists
13100             # what "hidden" libraries, object files and flags are used when
13101             # linking a shared library.
13102             #
13103             # There doesn't appear to be a way to prevent this compiler from
13104             # explicitly linking system object files so we need to strip them
13105             # from the output so that they don't get included in the library
13106             # dependencies.
13107             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'
13108             ;;
13109           xl* | mpixl* | bgxl*)
13110             # IBM XL 8.0 on PPC, with GNU ld
13111             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13112             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13113             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13114             if test "x$supports_anon_versioning" = xyes; then
13115               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13116                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13117                 echo "local: *; };" >> $output_objdir/$libname.ver~
13118                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13119             fi
13120             ;;
13121           *)
13122             case `$CC -V 2>&1 | sed 5q` in
13123             *Sun\ C*)
13124               # Sun C++ 5.9
13125               no_undefined_flag_CXX=' -zdefs'
13126               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13127               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'
13128               hardcode_libdir_flag_spec_CXX='-R$libdir'
13129               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'
13130               compiler_needs_object_CXX=yes
13131
13132               # Not sure whether something based on
13133               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13134               # would be better.
13135               output_verbose_link_cmd='func_echo_all'
13136
13137               # Archives containing C++ object files must be created using
13138               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13139               # necessary to make sure instantiated templates are included
13140               # in the archive.
13141               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13142               ;;
13143             esac
13144             ;;
13145         esac
13146         ;;
13147
13148       lynxos*)
13149         # FIXME: insert proper C++ library support
13150         ld_shlibs_CXX=no
13151         ;;
13152
13153       m88k*)
13154         # FIXME: insert proper C++ library support
13155         ld_shlibs_CXX=no
13156         ;;
13157
13158       mvs*)
13159         case $cc_basename in
13160           cxx*)
13161             # FIXME: insert proper C++ library support
13162             ld_shlibs_CXX=no
13163             ;;
13164           *)
13165             # FIXME: insert proper C++ library support
13166             ld_shlibs_CXX=no
13167             ;;
13168         esac
13169         ;;
13170
13171       netbsd*)
13172         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13173           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13174           wlarc=
13175           hardcode_libdir_flag_spec_CXX='-R$libdir'
13176           hardcode_direct_CXX=yes
13177           hardcode_shlibpath_var_CXX=no
13178         fi
13179         # Workaround some broken pre-1.5 toolchains
13180         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13181         ;;
13182
13183       *nto* | *qnx*)
13184         ld_shlibs_CXX=yes
13185         ;;
13186
13187       openbsd2*)
13188         # C++ shared libraries are fairly broken
13189         ld_shlibs_CXX=no
13190         ;;
13191
13192       openbsd*)
13193         if test -f /usr/libexec/ld.so; then
13194           hardcode_direct_CXX=yes
13195           hardcode_shlibpath_var_CXX=no
13196           hardcode_direct_absolute_CXX=yes
13197           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13198           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13199           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13200             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13201             export_dynamic_flag_spec_CXX='${wl}-E'
13202             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13203           fi
13204           output_verbose_link_cmd=func_echo_all
13205         else
13206           ld_shlibs_CXX=no
13207         fi
13208         ;;
13209
13210       osf3* | osf4* | osf5*)
13211         case $cc_basename in
13212           KCC*)
13213             # Kuck and Associates, Inc. (KAI) C++ Compiler
13214
13215             # KCC will only create a shared library if the output file
13216             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13217             # to its proper name (with version) after linking.
13218             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13219
13220             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13221             hardcode_libdir_separator_CXX=:
13222
13223             # Archives containing C++ object files must be created using
13224             # the KAI C++ compiler.
13225             case $host in
13226               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13227               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13228             esac
13229             ;;
13230           RCC*)
13231             # Rational C++ 2.4.1
13232             # FIXME: insert proper C++ library support
13233             ld_shlibs_CXX=no
13234             ;;
13235           cxx*)
13236             case $host in
13237               osf3*)
13238                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13239                 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'
13240                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13241                 ;;
13242               *)
13243                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13244                 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'
13245                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13246                   echo "-hidden">> $lib.exp~
13247                   $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~
13248                   $RM $lib.exp'
13249                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13250                 ;;
13251             esac
13252
13253             hardcode_libdir_separator_CXX=:
13254
13255             # Commands to make compiler produce verbose output that lists
13256             # what "hidden" libraries, object files and flags are used when
13257             # linking a shared library.
13258             #
13259             # There doesn't appear to be a way to prevent this compiler from
13260             # explicitly linking system object files so we need to strip them
13261             # from the output so that they don't get included in the library
13262             # dependencies.
13263             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"'
13264             ;;
13265           *)
13266             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13267               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13268               case $host in
13269                 osf3*)
13270                   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'
13271                   ;;
13272                 *)
13273                   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'
13274                   ;;
13275               esac
13276
13277               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13278               hardcode_libdir_separator_CXX=:
13279
13280               # Commands to make compiler produce verbose output that lists
13281               # what "hidden" libraries, object files and flags are used when
13282               # linking a shared library.
13283               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13284
13285             else
13286               # FIXME: insert proper C++ library support
13287               ld_shlibs_CXX=no
13288             fi
13289             ;;
13290         esac
13291         ;;
13292
13293       psos*)
13294         # FIXME: insert proper C++ library support
13295         ld_shlibs_CXX=no
13296         ;;
13297
13298       sunos4*)
13299         case $cc_basename in
13300           CC*)
13301             # Sun C++ 4.x
13302             # FIXME: insert proper C++ library support
13303             ld_shlibs_CXX=no
13304             ;;
13305           lcc*)
13306             # Lucid
13307             # FIXME: insert proper C++ library support
13308             ld_shlibs_CXX=no
13309             ;;
13310           *)
13311             # FIXME: insert proper C++ library support
13312             ld_shlibs_CXX=no
13313             ;;
13314         esac
13315         ;;
13316
13317       solaris*)
13318         case $cc_basename in
13319           CC* | sunCC*)
13320             # Sun C++ 4.2, 5.x and Centerline C++
13321             archive_cmds_need_lc_CXX=yes
13322             no_undefined_flag_CXX=' -zdefs'
13323             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13324             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13325               $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'
13326
13327             hardcode_libdir_flag_spec_CXX='-R$libdir'
13328             hardcode_shlibpath_var_CXX=no
13329             case $host_os in
13330               solaris2.[0-5] | solaris2.[0-5].*) ;;
13331               *)
13332                 # The compiler driver will combine and reorder linker options,
13333                 # but understands `-z linker_flag'.
13334                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13335                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13336                 ;;
13337             esac
13338             link_all_deplibs_CXX=yes
13339
13340             output_verbose_link_cmd='func_echo_all'
13341
13342             # Archives containing C++ object files must be created using
13343             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13344             # necessary to make sure instantiated templates are included
13345             # in the archive.
13346             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13347             ;;
13348           gcx*)
13349             # Green Hills C++ Compiler
13350             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13351
13352             # The C++ compiler must be used to create the archive.
13353             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13354             ;;
13355           *)
13356             # GNU C++ compiler with Solaris linker
13357             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13358               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13359               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13360                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13361                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13362                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13363
13364                 # Commands to make compiler produce verbose output that lists
13365                 # what "hidden" libraries, object files and flags are used when
13366                 # linking a shared library.
13367                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13368               else
13369                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13370                 # platform.
13371                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13372                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13373                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13374
13375                 # Commands to make compiler produce verbose output that lists
13376                 # what "hidden" libraries, object files and flags are used when
13377                 # linking a shared library.
13378                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13379               fi
13380
13381               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13382               case $host_os in
13383                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13384                 *)
13385                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13386                   ;;
13387               esac
13388             fi
13389             ;;
13390         esac
13391         ;;
13392
13393     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13394       no_undefined_flag_CXX='${wl}-z,text'
13395       archive_cmds_need_lc_CXX=no
13396       hardcode_shlibpath_var_CXX=no
13397       runpath_var='LD_RUN_PATH'
13398
13399       case $cc_basename in
13400         CC*)
13401           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13402           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13403           ;;
13404         *)
13405           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13406           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13407           ;;
13408       esac
13409       ;;
13410
13411       sysv5* | sco3.2v5* | sco5v6*)
13412         # Note: We can NOT use -z defs as we might desire, because we do not
13413         # link with -lc, and that would cause any symbols used from libc to
13414         # always be unresolved, which means just about no library would
13415         # ever link correctly.  If we're not using GNU ld we use -z text
13416         # though, which does catch some bad symbols but isn't as heavy-handed
13417         # as -z defs.
13418         no_undefined_flag_CXX='${wl}-z,text'
13419         allow_undefined_flag_CXX='${wl}-z,nodefs'
13420         archive_cmds_need_lc_CXX=no
13421         hardcode_shlibpath_var_CXX=no
13422         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13423         hardcode_libdir_separator_CXX=':'
13424         link_all_deplibs_CXX=yes
13425         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13426         runpath_var='LD_RUN_PATH'
13427
13428         case $cc_basename in
13429           CC*)
13430             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13431             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13432             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13433               '"$old_archive_cmds_CXX"
13434             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13435               '"$reload_cmds_CXX"
13436             ;;
13437           *)
13438             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13439             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13440             ;;
13441         esac
13442       ;;
13443
13444       tandem*)
13445         case $cc_basename in
13446           NCC*)
13447             # NonStop-UX NCC 3.20
13448             # FIXME: insert proper C++ library support
13449             ld_shlibs_CXX=no
13450             ;;
13451           *)
13452             # FIXME: insert proper C++ library support
13453             ld_shlibs_CXX=no
13454             ;;
13455         esac
13456         ;;
13457
13458       vxworks*)
13459         # FIXME: insert proper C++ library support
13460         ld_shlibs_CXX=no
13461         ;;
13462
13463       *)
13464         # FIXME: insert proper C++ library support
13465         ld_shlibs_CXX=no
13466         ;;
13467     esac
13468
13469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13470 $as_echo "$ld_shlibs_CXX" >&6; }
13471     test "$ld_shlibs_CXX" = no && can_build_shared=no
13472
13473     GCC_CXX="$GXX"
13474     LD_CXX="$LD"
13475
13476     ## CAVEAT EMPTOR:
13477     ## There is no encapsulation within the following macros, do not change
13478     ## the running order or otherwise move them around unless you know exactly
13479     ## what you are doing...
13480     # Dependencies to place before and after the object being linked:
13481 predep_objects_CXX=
13482 postdep_objects_CXX=
13483 predeps_CXX=
13484 postdeps_CXX=
13485 compiler_lib_search_path_CXX=
13486
13487 cat > conftest.$ac_ext <<_LT_EOF
13488 class Foo
13489 {
13490 public:
13491   Foo (void) { a = 0; }
13492 private:
13493   int a;
13494 };
13495 _LT_EOF
13496
13497
13498 _lt_libdeps_save_CFLAGS=$CFLAGS
13499 case "$CC $CFLAGS " in #(
13500 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13501 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13502 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13503 esac
13504
13505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13506   (eval $ac_compile) 2>&5
13507   ac_status=$?
13508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13509   test $ac_status = 0; }; then
13510   # Parse the compiler output and extract the necessary
13511   # objects, libraries and library flags.
13512
13513   # Sentinel used to keep track of whether or not we are before
13514   # the conftest object file.
13515   pre_test_object_deps_done=no
13516
13517   for p in `eval "$output_verbose_link_cmd"`; do
13518     case ${prev}${p} in
13519
13520     -L* | -R* | -l*)
13521        # Some compilers place space between "-{L,R}" and the path.
13522        # Remove the space.
13523        if test $p = "-L" ||
13524           test $p = "-R"; then
13525          prev=$p
13526          continue
13527        fi
13528
13529        # Expand the sysroot to ease extracting the directories later.
13530        if test -z "$prev"; then
13531          case $p in
13532          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13533          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13534          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13535          esac
13536        fi
13537        case $p in
13538        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13539        esac
13540        if test "$pre_test_object_deps_done" = no; then
13541          case ${prev} in
13542          -L | -R)
13543            # Internal compiler library paths should come after those
13544            # provided the user.  The postdeps already come after the
13545            # user supplied libs so there is no need to process them.
13546            if test -z "$compiler_lib_search_path_CXX"; then
13547              compiler_lib_search_path_CXX="${prev}${p}"
13548            else
13549              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13550            fi
13551            ;;
13552          # The "-l" case would never come before the object being
13553          # linked, so don't bother handling this case.
13554          esac
13555        else
13556          if test -z "$postdeps_CXX"; then
13557            postdeps_CXX="${prev}${p}"
13558          else
13559            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13560          fi
13561        fi
13562        prev=
13563        ;;
13564
13565     *.lto.$objext) ;; # Ignore GCC LTO objects
13566     *.$objext)
13567        # This assumes that the test object file only shows up
13568        # once in the compiler output.
13569        if test "$p" = "conftest.$objext"; then
13570          pre_test_object_deps_done=yes
13571          continue
13572        fi
13573
13574        if test "$pre_test_object_deps_done" = no; then
13575          if test -z "$predep_objects_CXX"; then
13576            predep_objects_CXX="$p"
13577          else
13578            predep_objects_CXX="$predep_objects_CXX $p"
13579          fi
13580        else
13581          if test -z "$postdep_objects_CXX"; then
13582            postdep_objects_CXX="$p"
13583          else
13584            postdep_objects_CXX="$postdep_objects_CXX $p"
13585          fi
13586        fi
13587        ;;
13588
13589     *) ;; # Ignore the rest.
13590
13591     esac
13592   done
13593
13594   # Clean up.
13595   rm -f a.out a.exe
13596 else
13597   echo "libtool.m4: error: problem compiling CXX test program"
13598 fi
13599
13600 $RM -f confest.$objext
13601 CFLAGS=$_lt_libdeps_save_CFLAGS
13602
13603 # PORTME: override above test on systems where it is broken
13604 case $host_os in
13605 interix[3-9]*)
13606   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13607   # hack all around it, let's just trust "g++" to DTRT.
13608   predep_objects_CXX=
13609   postdep_objects_CXX=
13610   postdeps_CXX=
13611   ;;
13612
13613 linux*)
13614   case `$CC -V 2>&1 | sed 5q` in
13615   *Sun\ C*)
13616     # Sun C++ 5.9
13617
13618     # The more standards-conforming stlport4 library is
13619     # incompatible with the Cstd library. Avoid specifying
13620     # it if it's in CXXFLAGS. Ignore libCrun as
13621     # -library=stlport4 depends on it.
13622     case " $CXX $CXXFLAGS " in
13623     *" -library=stlport4 "*)
13624       solaris_use_stlport4=yes
13625       ;;
13626     esac
13627
13628     if test "$solaris_use_stlport4" != yes; then
13629       postdeps_CXX='-library=Cstd -library=Crun'
13630     fi
13631     ;;
13632   esac
13633   ;;
13634
13635 solaris*)
13636   case $cc_basename in
13637   CC* | sunCC*)
13638     # The more standards-conforming stlport4 library is
13639     # incompatible with the Cstd library. Avoid specifying
13640     # it if it's in CXXFLAGS. Ignore libCrun as
13641     # -library=stlport4 depends on it.
13642     case " $CXX $CXXFLAGS " in
13643     *" -library=stlport4 "*)
13644       solaris_use_stlport4=yes
13645       ;;
13646     esac
13647
13648     # Adding this requires a known-good setup of shared libraries for
13649     # Sun compiler versions before 5.6, else PIC objects from an old
13650     # archive will be linked into the output, leading to subtle bugs.
13651     if test "$solaris_use_stlport4" != yes; then
13652       postdeps_CXX='-library=Cstd -library=Crun'
13653     fi
13654     ;;
13655   esac
13656   ;;
13657 esac
13658
13659
13660 case " $postdeps_CXX " in
13661 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13662 esac
13663  compiler_lib_search_dirs_CXX=
13664 if test -n "${compiler_lib_search_path_CXX}"; then
13665  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13666 fi
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698     lt_prog_compiler_wl_CXX=
13699 lt_prog_compiler_pic_CXX=
13700 lt_prog_compiler_static_CXX=
13701
13702
13703   # C++ specific cases for pic, static, wl, etc.
13704   if test "$GXX" = yes; then
13705     lt_prog_compiler_wl_CXX='-Wl,'
13706     lt_prog_compiler_static_CXX='-static'
13707
13708     case $host_os in
13709     aix*)
13710       # All AIX code is PIC.
13711       if test "$host_cpu" = ia64; then
13712         # AIX 5 now supports IA64 processor
13713         lt_prog_compiler_static_CXX='-Bstatic'
13714       fi
13715       ;;
13716
13717     amigaos*)
13718       case $host_cpu in
13719       powerpc)
13720             # see comment about AmigaOS4 .so support
13721             lt_prog_compiler_pic_CXX='-fPIC'
13722         ;;
13723       m68k)
13724             # FIXME: we need at least 68020 code to build shared libraries, but
13725             # adding the `-m68020' flag to GCC prevents building anything better,
13726             # like `-m68040'.
13727             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13728         ;;
13729       esac
13730       ;;
13731
13732     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13733       # PIC is the default for these OSes.
13734       ;;
13735     mingw* | cygwin* | os2* | pw32* | cegcc*)
13736       # This hack is so that the source file can tell whether it is being
13737       # built for inclusion in a dll (and should export symbols for example).
13738       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13739       # (--disable-auto-import) libraries
13740       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13741       ;;
13742     darwin* | rhapsody*)
13743       # PIC is the default on this platform
13744       # Common symbols not allowed in MH_DYLIB files
13745       lt_prog_compiler_pic_CXX='-fno-common'
13746       ;;
13747     *djgpp*)
13748       # DJGPP does not support shared libraries at all
13749       lt_prog_compiler_pic_CXX=
13750       ;;
13751     haiku*)
13752       # PIC is the default for Haiku.
13753       # The "-static" flag exists, but is broken.
13754       lt_prog_compiler_static_CXX=
13755       ;;
13756     interix[3-9]*)
13757       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13758       # Instead, we relocate shared libraries at runtime.
13759       ;;
13760     sysv4*MP*)
13761       if test -d /usr/nec; then
13762         lt_prog_compiler_pic_CXX=-Kconform_pic
13763       fi
13764       ;;
13765     hpux*)
13766       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13767       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13768       # sets the default TLS model and affects inlining.
13769       case $host_cpu in
13770       hppa*64*)
13771         ;;
13772       *)
13773         lt_prog_compiler_pic_CXX='-fPIC'
13774         ;;
13775       esac
13776       ;;
13777     *qnx* | *nto*)
13778       # QNX uses GNU C++, but need to define -shared option too, otherwise
13779       # it will coredump.
13780       lt_prog_compiler_pic_CXX='-fPIC -shared'
13781       ;;
13782     *)
13783       lt_prog_compiler_pic_CXX='-fPIC'
13784       ;;
13785     esac
13786   else
13787     case $host_os in
13788       aix[4-9]*)
13789         # All AIX code is PIC.
13790         if test "$host_cpu" = ia64; then
13791           # AIX 5 now supports IA64 processor
13792           lt_prog_compiler_static_CXX='-Bstatic'
13793         else
13794           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13795         fi
13796         ;;
13797       chorus*)
13798         case $cc_basename in
13799         cxch68*)
13800           # Green Hills C++ Compiler
13801           # _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"
13802           ;;
13803         esac
13804         ;;
13805       mingw* | cygwin* | os2* | pw32* | cegcc*)
13806         # This hack is so that the source file can tell whether it is being
13807         # built for inclusion in a dll (and should export symbols for example).
13808         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13809         ;;
13810       dgux*)
13811         case $cc_basename in
13812           ec++*)
13813             lt_prog_compiler_pic_CXX='-KPIC'
13814             ;;
13815           ghcx*)
13816             # Green Hills C++ Compiler
13817             lt_prog_compiler_pic_CXX='-pic'
13818             ;;
13819           *)
13820             ;;
13821         esac
13822         ;;
13823       freebsd* | dragonfly*)
13824         # FreeBSD uses GNU C++
13825         ;;
13826       hpux9* | hpux10* | hpux11*)
13827         case $cc_basename in
13828           CC*)
13829             lt_prog_compiler_wl_CXX='-Wl,'
13830             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13831             if test "$host_cpu" != ia64; then
13832               lt_prog_compiler_pic_CXX='+Z'
13833             fi
13834             ;;
13835           aCC*)
13836             lt_prog_compiler_wl_CXX='-Wl,'
13837             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13838             case $host_cpu in
13839             hppa*64*|ia64*)
13840               # +Z the default
13841               ;;
13842             *)
13843               lt_prog_compiler_pic_CXX='+Z'
13844               ;;
13845             esac
13846             ;;
13847           *)
13848             ;;
13849         esac
13850         ;;
13851       interix*)
13852         # This is c89, which is MS Visual C++ (no shared libs)
13853         # Anyone wants to do a port?
13854         ;;
13855       irix5* | irix6* | nonstopux*)
13856         case $cc_basename in
13857           CC*)
13858             lt_prog_compiler_wl_CXX='-Wl,'
13859             lt_prog_compiler_static_CXX='-non_shared'
13860             # CC pic flag -KPIC is the default.
13861             ;;
13862           *)
13863             ;;
13864         esac
13865         ;;
13866       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13867         case $cc_basename in
13868           KCC*)
13869             # KAI C++ Compiler
13870             lt_prog_compiler_wl_CXX='--backend -Wl,'
13871             lt_prog_compiler_pic_CXX='-fPIC'
13872             ;;
13873           ecpc* )
13874             # old Intel C++ for x86_64 which still supported -KPIC.
13875             lt_prog_compiler_wl_CXX='-Wl,'
13876             lt_prog_compiler_pic_CXX='-KPIC'
13877             lt_prog_compiler_static_CXX='-static'
13878             ;;
13879           icpc* )
13880             # Intel C++, used to be incompatible with GCC.
13881             # ICC 10 doesn't accept -KPIC any more.
13882             lt_prog_compiler_wl_CXX='-Wl,'
13883             lt_prog_compiler_pic_CXX='-fPIC'
13884             lt_prog_compiler_static_CXX='-static'
13885             ;;
13886           pgCC* | pgcpp*)
13887             # Portland Group C++ compiler
13888             lt_prog_compiler_wl_CXX='-Wl,'
13889             lt_prog_compiler_pic_CXX='-fpic'
13890             lt_prog_compiler_static_CXX='-Bstatic'
13891             ;;
13892           cxx*)
13893             # Compaq C++
13894             # Make sure the PIC flag is empty.  It appears that all Alpha
13895             # Linux and Compaq Tru64 Unix objects are PIC.
13896             lt_prog_compiler_pic_CXX=
13897             lt_prog_compiler_static_CXX='-non_shared'
13898             ;;
13899           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13900             # IBM XL 8.0, 9.0 on PPC and BlueGene
13901             lt_prog_compiler_wl_CXX='-Wl,'
13902             lt_prog_compiler_pic_CXX='-qpic'
13903             lt_prog_compiler_static_CXX='-qstaticlink'
13904             ;;
13905           *)
13906             case `$CC -V 2>&1 | sed 5q` in
13907             *Sun\ C*)
13908               # Sun C++ 5.9
13909               lt_prog_compiler_pic_CXX='-KPIC'
13910               lt_prog_compiler_static_CXX='-Bstatic'
13911               lt_prog_compiler_wl_CXX='-Qoption ld '
13912               ;;
13913             esac
13914             ;;
13915         esac
13916         ;;
13917       lynxos*)
13918         ;;
13919       m88k*)
13920         ;;
13921       mvs*)
13922         case $cc_basename in
13923           cxx*)
13924             lt_prog_compiler_pic_CXX='-W c,exportall'
13925             ;;
13926           *)
13927             ;;
13928         esac
13929         ;;
13930       netbsd*)
13931         ;;
13932       *qnx* | *nto*)
13933         # QNX uses GNU C++, but need to define -shared option too, otherwise
13934         # it will coredump.
13935         lt_prog_compiler_pic_CXX='-fPIC -shared'
13936         ;;
13937       osf3* | osf4* | osf5*)
13938         case $cc_basename in
13939           KCC*)
13940             lt_prog_compiler_wl_CXX='--backend -Wl,'
13941             ;;
13942           RCC*)
13943             # Rational C++ 2.4.1
13944             lt_prog_compiler_pic_CXX='-pic'
13945             ;;
13946           cxx*)
13947             # Digital/Compaq C++
13948             lt_prog_compiler_wl_CXX='-Wl,'
13949             # Make sure the PIC flag is empty.  It appears that all Alpha
13950             # Linux and Compaq Tru64 Unix objects are PIC.
13951             lt_prog_compiler_pic_CXX=
13952             lt_prog_compiler_static_CXX='-non_shared'
13953             ;;
13954           *)
13955             ;;
13956         esac
13957         ;;
13958       psos*)
13959         ;;
13960       solaris*)
13961         case $cc_basename in
13962           CC* | sunCC*)
13963             # Sun C++ 4.2, 5.x and Centerline C++
13964             lt_prog_compiler_pic_CXX='-KPIC'
13965             lt_prog_compiler_static_CXX='-Bstatic'
13966             lt_prog_compiler_wl_CXX='-Qoption ld '
13967             ;;
13968           gcx*)
13969             # Green Hills C++ Compiler
13970             lt_prog_compiler_pic_CXX='-PIC'
13971             ;;
13972           *)
13973             ;;
13974         esac
13975         ;;
13976       sunos4*)
13977         case $cc_basename in
13978           CC*)
13979             # Sun C++ 4.x
13980             lt_prog_compiler_pic_CXX='-pic'
13981             lt_prog_compiler_static_CXX='-Bstatic'
13982             ;;
13983           lcc*)
13984             # Lucid
13985             lt_prog_compiler_pic_CXX='-pic'
13986             ;;
13987           *)
13988             ;;
13989         esac
13990         ;;
13991       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13992         case $cc_basename in
13993           CC*)
13994             lt_prog_compiler_wl_CXX='-Wl,'
13995             lt_prog_compiler_pic_CXX='-KPIC'
13996             lt_prog_compiler_static_CXX='-Bstatic'
13997             ;;
13998         esac
13999         ;;
14000       tandem*)
14001         case $cc_basename in
14002           NCC*)
14003             # NonStop-UX NCC 3.20
14004             lt_prog_compiler_pic_CXX='-KPIC'
14005             ;;
14006           *)
14007             ;;
14008         esac
14009         ;;
14010       vxworks*)
14011         ;;
14012       *)
14013         lt_prog_compiler_can_build_shared_CXX=no
14014         ;;
14015     esac
14016   fi
14017
14018 case $host_os in
14019   # For platforms which do not support PIC, -DPIC is meaningless:
14020   *djgpp*)
14021     lt_prog_compiler_pic_CXX=
14022     ;;
14023   *)
14024     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14025     ;;
14026 esac
14027
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14029 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14030 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14031   $as_echo_n "(cached) " >&6
14032 else
14033   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14034 fi
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14036 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14037 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14038
14039 #
14040 # Check to make sure the PIC flag actually works.
14041 #
14042 if test -n "$lt_prog_compiler_pic_CXX"; then
14043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14044 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14045 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14046   $as_echo_n "(cached) " >&6
14047 else
14048   lt_cv_prog_compiler_pic_works_CXX=no
14049    ac_outfile=conftest.$ac_objext
14050    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14051    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14052    # Insert the option either (1) after the last *FLAGS variable, or
14053    # (2) before a word containing "conftest.", or (3) at the end.
14054    # Note that $ac_compile itself does not contain backslashes and begins
14055    # with a dollar sign (not a hyphen), so the echo should work correctly.
14056    # The option is referenced via a variable to avoid confusing sed.
14057    lt_compile=`echo "$ac_compile" | $SED \
14058    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14059    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14060    -e 's:$: $lt_compiler_flag:'`
14061    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14062    (eval "$lt_compile" 2>conftest.err)
14063    ac_status=$?
14064    cat conftest.err >&5
14065    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066    if (exit $ac_status) && test -s "$ac_outfile"; then
14067      # The compiler can only warn and ignore the option if not recognized
14068      # So say no if there are warnings other than the usual output.
14069      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14070      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14071      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14072        lt_cv_prog_compiler_pic_works_CXX=yes
14073      fi
14074    fi
14075    $RM conftest*
14076
14077 fi
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14079 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14080
14081 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14082     case $lt_prog_compiler_pic_CXX in
14083      "" | " "*) ;;
14084      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14085      esac
14086 else
14087     lt_prog_compiler_pic_CXX=
14088      lt_prog_compiler_can_build_shared_CXX=no
14089 fi
14090
14091 fi
14092
14093
14094
14095
14096
14097 #
14098 # Check to make sure the static flag actually works.
14099 #
14100 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14102 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14103 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14104   $as_echo_n "(cached) " >&6
14105 else
14106   lt_cv_prog_compiler_static_works_CXX=no
14107    save_LDFLAGS="$LDFLAGS"
14108    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14109    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14110    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14111      # The linker can only warn and ignore the option if not recognized
14112      # So say no if there are warnings
14113      if test -s conftest.err; then
14114        # Append any errors to the config.log.
14115        cat conftest.err 1>&5
14116        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14117        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14118        if diff conftest.exp conftest.er2 >/dev/null; then
14119          lt_cv_prog_compiler_static_works_CXX=yes
14120        fi
14121      else
14122        lt_cv_prog_compiler_static_works_CXX=yes
14123      fi
14124    fi
14125    $RM -r conftest*
14126    LDFLAGS="$save_LDFLAGS"
14127
14128 fi
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14130 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14131
14132 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14133     :
14134 else
14135     lt_prog_compiler_static_CXX=
14136 fi
14137
14138
14139
14140
14141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14143 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14144   $as_echo_n "(cached) " >&6
14145 else
14146   lt_cv_prog_compiler_c_o_CXX=no
14147    $RM -r conftest 2>/dev/null
14148    mkdir conftest
14149    cd conftest
14150    mkdir out
14151    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14152
14153    lt_compiler_flag="-o out/conftest2.$ac_objext"
14154    # Insert the option either (1) after the last *FLAGS variable, or
14155    # (2) before a word containing "conftest.", or (3) at the end.
14156    # Note that $ac_compile itself does not contain backslashes and begins
14157    # with a dollar sign (not a hyphen), so the echo should work correctly.
14158    lt_compile=`echo "$ac_compile" | $SED \
14159    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14160    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14161    -e 's:$: $lt_compiler_flag:'`
14162    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14163    (eval "$lt_compile" 2>out/conftest.err)
14164    ac_status=$?
14165    cat out/conftest.err >&5
14166    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14168    then
14169      # The compiler can only warn and ignore the option if not recognized
14170      # So say no if there are warnings
14171      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14172      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14173      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14174        lt_cv_prog_compiler_c_o_CXX=yes
14175      fi
14176    fi
14177    chmod u+w . 2>&5
14178    $RM conftest*
14179    # SGI C++ compiler will create directory out/ii_files/ for
14180    # template instantiation
14181    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14182    $RM out/* && rmdir out
14183    cd ..
14184    $RM -r conftest
14185    $RM conftest*
14186
14187 fi
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14189 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14190
14191
14192
14193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14195 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14196   $as_echo_n "(cached) " >&6
14197 else
14198   lt_cv_prog_compiler_c_o_CXX=no
14199    $RM -r conftest 2>/dev/null
14200    mkdir conftest
14201    cd conftest
14202    mkdir out
14203    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14204
14205    lt_compiler_flag="-o out/conftest2.$ac_objext"
14206    # Insert the option either (1) after the last *FLAGS variable, or
14207    # (2) before a word containing "conftest.", or (3) at the end.
14208    # Note that $ac_compile itself does not contain backslashes and begins
14209    # with a dollar sign (not a hyphen), so the echo should work correctly.
14210    lt_compile=`echo "$ac_compile" | $SED \
14211    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14212    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14213    -e 's:$: $lt_compiler_flag:'`
14214    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14215    (eval "$lt_compile" 2>out/conftest.err)
14216    ac_status=$?
14217    cat out/conftest.err >&5
14218    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14220    then
14221      # The compiler can only warn and ignore the option if not recognized
14222      # So say no if there are warnings
14223      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14224      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14225      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14226        lt_cv_prog_compiler_c_o_CXX=yes
14227      fi
14228    fi
14229    chmod u+w . 2>&5
14230    $RM conftest*
14231    # SGI C++ compiler will create directory out/ii_files/ for
14232    # template instantiation
14233    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14234    $RM out/* && rmdir out
14235    cd ..
14236    $RM -r conftest
14237    $RM conftest*
14238
14239 fi
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14241 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14242
14243
14244
14245
14246 hard_links="nottested"
14247 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14248   # do not overwrite the value of need_locks provided by the user
14249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14250 $as_echo_n "checking if we can lock with hard links... " >&6; }
14251   hard_links=yes
14252   $RM conftest*
14253   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14254   touch conftest.a
14255   ln conftest.a conftest.b 2>&5 || hard_links=no
14256   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14258 $as_echo "$hard_links" >&6; }
14259   if test "$hard_links" = no; then
14260     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14261 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14262     need_locks=warn
14263   fi
14264 else
14265   need_locks=no
14266 fi
14267
14268
14269
14270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14271 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14272
14273   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14274   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14275   case $host_os in
14276   aix[4-9]*)
14277     # If we're using GNU nm, then we don't want the "-C" option.
14278     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14279     # Also, AIX nm treats weak defined symbols like other global defined
14280     # symbols, whereas GNU nm marks them as "W".
14281     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14282       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14283     else
14284       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14285     fi
14286     ;;
14287   pw32*)
14288     export_symbols_cmds_CXX="$ltdll_cmds"
14289     ;;
14290   cygwin* | mingw* | cegcc*)
14291     case $cc_basename in
14292     cl*)
14293       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14294       ;;
14295     *)
14296       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'
14297       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14298       ;;
14299     esac
14300     ;;
14301   *)
14302     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14303     ;;
14304   esac
14305
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14307 $as_echo "$ld_shlibs_CXX" >&6; }
14308 test "$ld_shlibs_CXX" = no && can_build_shared=no
14309
14310 with_gnu_ld_CXX=$with_gnu_ld
14311
14312
14313
14314
14315
14316
14317 #
14318 # Do we need to explicitly link libc?
14319 #
14320 case "x$archive_cmds_need_lc_CXX" in
14321 x|xyes)
14322   # Assume -lc should be added
14323   archive_cmds_need_lc_CXX=yes
14324
14325   if test "$enable_shared" = yes && test "$GCC" = yes; then
14326     case $archive_cmds_CXX in
14327     *'~'*)
14328       # FIXME: we may have to deal with multi-command sequences.
14329       ;;
14330     '$CC '*)
14331       # Test whether the compiler implicitly links with -lc since on some
14332       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14333       # to ld, don't add -lc before -lgcc.
14334       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14335 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14336 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14337   $as_echo_n "(cached) " >&6
14338 else
14339   $RM conftest*
14340         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14341
14342         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14343   (eval $ac_compile) 2>&5
14344   ac_status=$?
14345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14346   test $ac_status = 0; } 2>conftest.err; then
14347           soname=conftest
14348           lib=conftest
14349           libobjs=conftest.$ac_objext
14350           deplibs=
14351           wl=$lt_prog_compiler_wl_CXX
14352           pic_flag=$lt_prog_compiler_pic_CXX
14353           compiler_flags=-v
14354           linker_flags=-v
14355           verstring=
14356           output_objdir=.
14357           libname=conftest
14358           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14359           allow_undefined_flag_CXX=
14360           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14361   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14362   ac_status=$?
14363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14364   test $ac_status = 0; }
14365           then
14366             lt_cv_archive_cmds_need_lc_CXX=no
14367           else
14368             lt_cv_archive_cmds_need_lc_CXX=yes
14369           fi
14370           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14371         else
14372           cat conftest.err 1>&5
14373         fi
14374         $RM conftest*
14375
14376 fi
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14378 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14379       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14380       ;;
14381     esac
14382   fi
14383   ;;
14384 esac
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14448 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14449
14450 library_names_spec=
14451 libname_spec='lib$name'
14452 soname_spec=
14453 shrext_cmds=".so"
14454 postinstall_cmds=
14455 postuninstall_cmds=
14456 finish_cmds=
14457 finish_eval=
14458 shlibpath_var=
14459 shlibpath_overrides_runpath=unknown
14460 version_type=none
14461 dynamic_linker="$host_os ld.so"
14462 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14463 need_lib_prefix=unknown
14464 hardcode_into_libs=no
14465
14466 # when you set need_version to no, make sure it does not cause -set_version
14467 # flags to be left without arguments
14468 need_version=unknown
14469
14470 case $host_os in
14471 aix3*)
14472   version_type=linux # correct to gnu/linux during the next big refactor
14473   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14474   shlibpath_var=LIBPATH
14475
14476   # AIX 3 has no versioning support, so we append a major version to the name.
14477   soname_spec='${libname}${release}${shared_ext}$major'
14478   ;;
14479
14480 aix[4-9]*)
14481   version_type=linux # correct to gnu/linux during the next big refactor
14482   need_lib_prefix=no
14483   need_version=no
14484   hardcode_into_libs=yes
14485   if test "$host_cpu" = ia64; then
14486     # AIX 5 supports IA64
14487     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14488     shlibpath_var=LD_LIBRARY_PATH
14489   else
14490     # With GCC up to 2.95.x, collect2 would create an import file
14491     # for dependence libraries.  The import file would start with
14492     # the line `#! .'.  This would cause the generated library to
14493     # depend on `.', always an invalid library.  This was fixed in
14494     # development snapshots of GCC prior to 3.0.
14495     case $host_os in
14496       aix4 | aix4.[01] | aix4.[01].*)
14497       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14498            echo ' yes '
14499            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14500         :
14501       else
14502         can_build_shared=no
14503       fi
14504       ;;
14505     esac
14506     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14507     # soname into executable. Probably we can add versioning support to
14508     # collect2, so additional links can be useful in future.
14509     if test "$aix_use_runtimelinking" = yes; then
14510       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14511       # instead of lib<name>.a to let people know that these are not
14512       # typical AIX shared libraries.
14513       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514     else
14515       # We preserve .a as extension for shared libraries through AIX4.2
14516       # and later when we are not doing run time linking.
14517       library_names_spec='${libname}${release}.a $libname.a'
14518       soname_spec='${libname}${release}${shared_ext}$major'
14519     fi
14520     shlibpath_var=LIBPATH
14521   fi
14522   ;;
14523
14524 amigaos*)
14525   case $host_cpu in
14526   powerpc)
14527     # Since July 2007 AmigaOS4 officially supports .so libraries.
14528     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530     ;;
14531   m68k)
14532     library_names_spec='$libname.ixlibrary $libname.a'
14533     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14534     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14535     ;;
14536   esac
14537   ;;
14538
14539 beos*)
14540   library_names_spec='${libname}${shared_ext}'
14541   dynamic_linker="$host_os ld.so"
14542   shlibpath_var=LIBRARY_PATH
14543   ;;
14544
14545 bsdi[45]*)
14546   version_type=linux # correct to gnu/linux during the next big refactor
14547   need_version=no
14548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549   soname_spec='${libname}${release}${shared_ext}$major'
14550   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14551   shlibpath_var=LD_LIBRARY_PATH
14552   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14553   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14554   # the default ld.so.conf also contains /usr/contrib/lib and
14555   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14556   # libtool to hard-code these into programs
14557   ;;
14558
14559 cygwin* | mingw* | pw32* | cegcc*)
14560   version_type=windows
14561   shrext_cmds=".dll"
14562   need_version=no
14563   need_lib_prefix=no
14564
14565   case $GCC,$cc_basename in
14566   yes,*)
14567     # gcc
14568     library_names_spec='$libname.dll.a'
14569     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14570     postinstall_cmds='base_file=`basename \${file}`~
14571       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14572       dldir=$destdir/`dirname \$dlpath`~
14573       test -d \$dldir || mkdir -p \$dldir~
14574       $install_prog $dir/$dlname \$dldir/$dlname~
14575       chmod a+x \$dldir/$dlname~
14576       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14577         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14578       fi'
14579     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14580       dlpath=$dir/\$dldll~
14581        $RM \$dlpath'
14582     shlibpath_overrides_runpath=yes
14583
14584     case $host_os in
14585     cygwin*)
14586       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14587       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14588
14589       ;;
14590     mingw* | cegcc*)
14591       # MinGW DLLs use traditional 'lib' prefix
14592       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14593       ;;
14594     pw32*)
14595       # pw32 DLLs use 'pw' prefix rather than 'lib'
14596       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14597       ;;
14598     esac
14599     dynamic_linker='Win32 ld.exe'
14600     ;;
14601
14602   *,cl*)
14603     # Native MSVC
14604     libname_spec='$name'
14605     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14606     library_names_spec='${libname}.dll.lib'
14607
14608     case $build_os in
14609     mingw*)
14610       sys_lib_search_path_spec=
14611       lt_save_ifs=$IFS
14612       IFS=';'
14613       for lt_path in $LIB
14614       do
14615         IFS=$lt_save_ifs
14616         # Let DOS variable expansion print the short 8.3 style file name.
14617         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14618         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14619       done
14620       IFS=$lt_save_ifs
14621       # Convert to MSYS style.
14622       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14623       ;;
14624     cygwin*)
14625       # Convert to unix form, then to dos form, then back to unix form
14626       # but this time dos style (no spaces!) so that the unix form looks
14627       # like /cygdrive/c/PROGRA~1:/cygdr...
14628       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14629       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14630       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14631       ;;
14632     *)
14633       sys_lib_search_path_spec="$LIB"
14634       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14635         # It is most probably a Windows format PATH.
14636         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14637       else
14638         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14639       fi
14640       # FIXME: find the short name or the path components, as spaces are
14641       # common. (e.g. "Program Files" -> "PROGRA~1")
14642       ;;
14643     esac
14644
14645     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14646     postinstall_cmds='base_file=`basename \${file}`~
14647       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14648       dldir=$destdir/`dirname \$dlpath`~
14649       test -d \$dldir || mkdir -p \$dldir~
14650       $install_prog $dir/$dlname \$dldir/$dlname'
14651     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14652       dlpath=$dir/\$dldll~
14653        $RM \$dlpath'
14654     shlibpath_overrides_runpath=yes
14655     dynamic_linker='Win32 link.exe'
14656     ;;
14657
14658   *)
14659     # Assume MSVC wrapper
14660     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14661     dynamic_linker='Win32 ld.exe'
14662     ;;
14663   esac
14664   # FIXME: first we should search . and the directory the executable is in
14665   shlibpath_var=PATH
14666   ;;
14667
14668 darwin* | rhapsody*)
14669   dynamic_linker="$host_os dyld"
14670   version_type=darwin
14671   need_lib_prefix=no
14672   need_version=no
14673   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14674   soname_spec='${libname}${release}${major}$shared_ext'
14675   shlibpath_overrides_runpath=yes
14676   shlibpath_var=DYLD_LIBRARY_PATH
14677   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14678
14679   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14680   ;;
14681
14682 dgux*)
14683   version_type=linux # correct to gnu/linux during the next big refactor
14684   need_lib_prefix=no
14685   need_version=no
14686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14687   soname_spec='${libname}${release}${shared_ext}$major'
14688   shlibpath_var=LD_LIBRARY_PATH
14689   ;;
14690
14691 freebsd* | dragonfly*)
14692   # DragonFly does not have aout.  When/if they implement a new
14693   # versioning mechanism, adjust this.
14694   if test -x /usr/bin/objformat; then
14695     objformat=`/usr/bin/objformat`
14696   else
14697     case $host_os in
14698     freebsd[23].*) objformat=aout ;;
14699     *) objformat=elf ;;
14700     esac
14701   fi
14702   version_type=freebsd-$objformat
14703   case $version_type in
14704     freebsd-elf*)
14705       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14706       need_version=no
14707       need_lib_prefix=no
14708       ;;
14709     freebsd-*)
14710       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14711       need_version=yes
14712       ;;
14713   esac
14714   shlibpath_var=LD_LIBRARY_PATH
14715   case $host_os in
14716   freebsd2.*)
14717     shlibpath_overrides_runpath=yes
14718     ;;
14719   freebsd3.[01]* | freebsdelf3.[01]*)
14720     shlibpath_overrides_runpath=yes
14721     hardcode_into_libs=yes
14722     ;;
14723   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14724   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14725     shlibpath_overrides_runpath=no
14726     hardcode_into_libs=yes
14727     ;;
14728   *) # from 4.6 on, and DragonFly
14729     shlibpath_overrides_runpath=yes
14730     hardcode_into_libs=yes
14731     ;;
14732   esac
14733   ;;
14734
14735 gnu*)
14736   version_type=linux # correct to gnu/linux during the next big refactor
14737   need_lib_prefix=no
14738   need_version=no
14739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14740   soname_spec='${libname}${release}${shared_ext}$major'
14741   shlibpath_var=LD_LIBRARY_PATH
14742   shlibpath_overrides_runpath=no
14743   hardcode_into_libs=yes
14744   ;;
14745
14746 haiku*)
14747   version_type=linux # correct to gnu/linux during the next big refactor
14748   need_lib_prefix=no
14749   need_version=no
14750   dynamic_linker="$host_os runtime_loader"
14751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14752   soname_spec='${libname}${release}${shared_ext}$major'
14753   shlibpath_var=LIBRARY_PATH
14754   shlibpath_overrides_runpath=yes
14755   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14756   hardcode_into_libs=yes
14757   ;;
14758
14759 hpux9* | hpux10* | hpux11*)
14760   # Give a soname corresponding to the major version so that dld.sl refuses to
14761   # link against other versions.
14762   version_type=sunos
14763   need_lib_prefix=no
14764   need_version=no
14765   case $host_cpu in
14766   ia64*)
14767     shrext_cmds='.so'
14768     hardcode_into_libs=yes
14769     dynamic_linker="$host_os dld.so"
14770     shlibpath_var=LD_LIBRARY_PATH
14771     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773     soname_spec='${libname}${release}${shared_ext}$major'
14774     if test "X$HPUX_IA64_MODE" = X32; then
14775       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14776     else
14777       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14778     fi
14779     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14780     ;;
14781   hppa*64*)
14782     shrext_cmds='.sl'
14783     hardcode_into_libs=yes
14784     dynamic_linker="$host_os dld.sl"
14785     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788     soname_spec='${libname}${release}${shared_ext}$major'
14789     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14790     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14791     ;;
14792   *)
14793     shrext_cmds='.sl'
14794     dynamic_linker="$host_os dld.sl"
14795     shlibpath_var=SHLIB_PATH
14796     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798     soname_spec='${libname}${release}${shared_ext}$major'
14799     ;;
14800   esac
14801   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14802   postinstall_cmds='chmod 555 $lib'
14803   # or fails outright, so override atomically:
14804   install_override_mode=555
14805   ;;
14806
14807 interix[3-9]*)
14808   version_type=linux # correct to gnu/linux during the next big refactor
14809   need_lib_prefix=no
14810   need_version=no
14811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14812   soname_spec='${libname}${release}${shared_ext}$major'
14813   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14814   shlibpath_var=LD_LIBRARY_PATH
14815   shlibpath_overrides_runpath=no
14816   hardcode_into_libs=yes
14817   ;;
14818
14819 irix5* | irix6* | nonstopux*)
14820   case $host_os in
14821     nonstopux*) version_type=nonstopux ;;
14822     *)
14823         if test "$lt_cv_prog_gnu_ld" = yes; then
14824                 version_type=linux # correct to gnu/linux during the next big refactor
14825         else
14826                 version_type=irix
14827         fi ;;
14828   esac
14829   need_lib_prefix=no
14830   need_version=no
14831   soname_spec='${libname}${release}${shared_ext}$major'
14832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14833   case $host_os in
14834   irix5* | nonstopux*)
14835     libsuff= shlibsuff=
14836     ;;
14837   *)
14838     case $LD in # libtool.m4 will add one of these switches to LD
14839     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14840       libsuff= shlibsuff= libmagic=32-bit;;
14841     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14842       libsuff=32 shlibsuff=N32 libmagic=N32;;
14843     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14844       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14845     *) libsuff= shlibsuff= libmagic=never-match;;
14846     esac
14847     ;;
14848   esac
14849   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14850   shlibpath_overrides_runpath=no
14851   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14852   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14853   hardcode_into_libs=yes
14854   ;;
14855
14856 # No shared lib support for Linux oldld, aout, or coff.
14857 linux*oldld* | linux*aout* | linux*coff*)
14858   dynamic_linker=no
14859   ;;
14860
14861 # This must be glibc/ELF.
14862 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14863   version_type=linux # correct to gnu/linux during the next big refactor
14864   need_lib_prefix=no
14865   need_version=no
14866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867   soname_spec='${libname}${release}${shared_ext}$major'
14868   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14869   shlibpath_var=LD_LIBRARY_PATH
14870   shlibpath_overrides_runpath=no
14871
14872   # Some binutils ld are patched to set DT_RUNPATH
14873   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14874   $as_echo_n "(cached) " >&6
14875 else
14876   lt_cv_shlibpath_overrides_runpath=no
14877     save_LDFLAGS=$LDFLAGS
14878     save_libdir=$libdir
14879     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14880          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14881     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h.  */
14883
14884 int
14885 main ()
14886 {
14887
14888   ;
14889   return 0;
14890 }
14891 _ACEOF
14892 if ac_fn_cxx_try_link "$LINENO"; then :
14893   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14894   lt_cv_shlibpath_overrides_runpath=yes
14895 fi
14896 fi
14897 rm -f core conftest.err conftest.$ac_objext \
14898     conftest$ac_exeext conftest.$ac_ext
14899     LDFLAGS=$save_LDFLAGS
14900     libdir=$save_libdir
14901
14902 fi
14903
14904   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14905
14906   # This implies no fast_install, which is unacceptable.
14907   # Some rework will be needed to allow for fast_install
14908   # before this can be enabled.
14909   hardcode_into_libs=yes
14910
14911   # Append ld.so.conf contents to the search path
14912   if test -f /etc/ld.so.conf; then
14913     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' ' '`
14914     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14915   fi
14916
14917   # We used to test for /lib/ld.so.1 and disable shared libraries on
14918   # powerpc, because MkLinux only supported shared libraries with the
14919   # GNU dynamic linker.  Since this was broken with cross compilers,
14920   # most powerpc-linux boxes support dynamic linking these days and
14921   # people can always --disable-shared, the test was removed, and we
14922   # assume the GNU/Linux dynamic linker is in use.
14923   dynamic_linker='GNU/Linux ld.so'
14924   ;;
14925
14926 netbsd*)
14927   version_type=sunos
14928   need_lib_prefix=no
14929   need_version=no
14930   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14932     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14933     dynamic_linker='NetBSD (a.out) ld.so'
14934   else
14935     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14936     soname_spec='${libname}${release}${shared_ext}$major'
14937     dynamic_linker='NetBSD ld.elf_so'
14938   fi
14939   shlibpath_var=LD_LIBRARY_PATH
14940   shlibpath_overrides_runpath=yes
14941   hardcode_into_libs=yes
14942   ;;
14943
14944 newsos6)
14945   version_type=linux # correct to gnu/linux during the next big refactor
14946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947   shlibpath_var=LD_LIBRARY_PATH
14948   shlibpath_overrides_runpath=yes
14949   ;;
14950
14951 *nto* | *qnx*)
14952   version_type=qnx
14953   need_lib_prefix=no
14954   need_version=no
14955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956   soname_spec='${libname}${release}${shared_ext}$major'
14957   shlibpath_var=LD_LIBRARY_PATH
14958   shlibpath_overrides_runpath=no
14959   hardcode_into_libs=yes
14960   dynamic_linker='ldqnx.so'
14961   ;;
14962
14963 openbsd*)
14964   version_type=sunos
14965   sys_lib_dlsearch_path_spec="/usr/lib"
14966   need_lib_prefix=no
14967   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14968   case $host_os in
14969     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14970     *)                          need_version=no  ;;
14971   esac
14972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14973   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14974   shlibpath_var=LD_LIBRARY_PATH
14975   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14976     case $host_os in
14977       openbsd2.[89] | openbsd2.[89].*)
14978         shlibpath_overrides_runpath=no
14979         ;;
14980       *)
14981         shlibpath_overrides_runpath=yes
14982         ;;
14983       esac
14984   else
14985     shlibpath_overrides_runpath=yes
14986   fi
14987   ;;
14988
14989 os2*)
14990   libname_spec='$name'
14991   shrext_cmds=".dll"
14992   need_lib_prefix=no
14993   library_names_spec='$libname${shared_ext} $libname.a'
14994   dynamic_linker='OS/2 ld.exe'
14995   shlibpath_var=LIBPATH
14996   ;;
14997
14998 osf3* | osf4* | osf5*)
14999   version_type=osf
15000   need_lib_prefix=no
15001   need_version=no
15002   soname_spec='${libname}${release}${shared_ext}$major'
15003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004   shlibpath_var=LD_LIBRARY_PATH
15005   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15006   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15007   ;;
15008
15009 rdos*)
15010   dynamic_linker=no
15011   ;;
15012
15013 solaris*)
15014   version_type=linux # correct to gnu/linux during the next big refactor
15015   need_lib_prefix=no
15016   need_version=no
15017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15018   soname_spec='${libname}${release}${shared_ext}$major'
15019   shlibpath_var=LD_LIBRARY_PATH
15020   shlibpath_overrides_runpath=yes
15021   hardcode_into_libs=yes
15022   # ldd complains unless libraries are executable
15023   postinstall_cmds='chmod +x $lib'
15024   ;;
15025
15026 sunos4*)
15027   version_type=sunos
15028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15029   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15030   shlibpath_var=LD_LIBRARY_PATH
15031   shlibpath_overrides_runpath=yes
15032   if test "$with_gnu_ld" = yes; then
15033     need_lib_prefix=no
15034   fi
15035   need_version=yes
15036   ;;
15037
15038 sysv4 | sysv4.3*)
15039   version_type=linux # correct to gnu/linux during the next big refactor
15040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041   soname_spec='${libname}${release}${shared_ext}$major'
15042   shlibpath_var=LD_LIBRARY_PATH
15043   case $host_vendor in
15044     sni)
15045       shlibpath_overrides_runpath=no
15046       need_lib_prefix=no
15047       runpath_var=LD_RUN_PATH
15048       ;;
15049     siemens)
15050       need_lib_prefix=no
15051       ;;
15052     motorola)
15053       need_lib_prefix=no
15054       need_version=no
15055       shlibpath_overrides_runpath=no
15056       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15057       ;;
15058   esac
15059   ;;
15060
15061 sysv4*MP*)
15062   if test -d /usr/nec ;then
15063     version_type=linux # correct to gnu/linux during the next big refactor
15064     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15065     soname_spec='$libname${shared_ext}.$major'
15066     shlibpath_var=LD_LIBRARY_PATH
15067   fi
15068   ;;
15069
15070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15071   version_type=freebsd-elf
15072   need_lib_prefix=no
15073   need_version=no
15074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15075   soname_spec='${libname}${release}${shared_ext}$major'
15076   shlibpath_var=LD_LIBRARY_PATH
15077   shlibpath_overrides_runpath=yes
15078   hardcode_into_libs=yes
15079   if test "$with_gnu_ld" = yes; then
15080     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15081   else
15082     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15083     case $host_os in
15084       sco3.2v5*)
15085         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15086         ;;
15087     esac
15088   fi
15089   sys_lib_dlsearch_path_spec='/usr/lib'
15090   ;;
15091
15092 tpf*)
15093   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15094   version_type=linux # correct to gnu/linux during the next big refactor
15095   need_lib_prefix=no
15096   need_version=no
15097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098   shlibpath_var=LD_LIBRARY_PATH
15099   shlibpath_overrides_runpath=no
15100   hardcode_into_libs=yes
15101   ;;
15102
15103 uts4*)
15104   version_type=linux # correct to gnu/linux during the next big refactor
15105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106   soname_spec='${libname}${release}${shared_ext}$major'
15107   shlibpath_var=LD_LIBRARY_PATH
15108   ;;
15109
15110 *)
15111   dynamic_linker=no
15112   ;;
15113 esac
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15115 $as_echo "$dynamic_linker" >&6; }
15116 test "$dynamic_linker" = no && can_build_shared=no
15117
15118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15119 if test "$GCC" = yes; then
15120   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15121 fi
15122
15123 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15124   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15125 fi
15126 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15127   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15128 fi
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15168 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15169 hardcode_action_CXX=
15170 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15171    test -n "$runpath_var_CXX" ||
15172    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15173
15174   # We can hardcode non-existent directories.
15175   if test "$hardcode_direct_CXX" != no &&
15176      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15177      # have to relink, otherwise we might link with an installed library
15178      # when we should be linking with a yet-to-be-installed one
15179      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15180      test "$hardcode_minus_L_CXX" != no; then
15181     # Linking always hardcodes the temporary library directory.
15182     hardcode_action_CXX=relink
15183   else
15184     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15185     hardcode_action_CXX=immediate
15186   fi
15187 else
15188   # We cannot hardcode anything, or else we can only hardcode existing
15189   # directories.
15190   hardcode_action_CXX=unsupported
15191 fi
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15193 $as_echo "$hardcode_action_CXX" >&6; }
15194
15195 if test "$hardcode_action_CXX" = relink ||
15196    test "$inherit_rpath_CXX" = yes; then
15197   # Fast installation is not supported
15198   enable_fast_install=no
15199 elif test "$shlibpath_overrides_runpath" = yes ||
15200      test "$enable_shared" = no; then
15201   # Fast installation is not necessary
15202   enable_fast_install=needless
15203 fi
15204
15205
15206
15207
15208
15209
15210
15211   fi # test -n "$compiler"
15212
15213   CC=$lt_save_CC
15214   CFLAGS=$lt_save_CFLAGS
15215   LDCXX=$LD
15216   LD=$lt_save_LD
15217   GCC=$lt_save_GCC
15218   with_gnu_ld=$lt_save_with_gnu_ld
15219   lt_cv_path_LDCXX=$lt_cv_path_LD
15220   lt_cv_path_LD=$lt_save_path_LD
15221   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15222   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15223 fi # test "$_lt_caught_CXX_error" != yes
15224
15225 ac_ext=cpp
15226 ac_cpp='$CXXCPP $CPPFLAGS'
15227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245         ac_config_commands="$ac_config_commands libtool"
15246
15247
15248
15249
15250 # Only expand once:
15251
15252
15253
15254
15255 ## ------------------------------ ##
15256 ## Libraries required by tagdemo. ##
15257 ## ------------------------------ ##
15258 LIBM=
15259 case $host in
15260 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
15261   # These system don't have libm, or don't need it
15262   ;;
15263 *-ncr-sysv4.3*)
15264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
15265 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
15266 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
15267   $as_echo_n "(cached) " >&6
15268 else
15269   ac_check_lib_save_LIBS=$LIBS
15270 LIBS="-lmw  $LIBS"
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h.  */
15273
15274 /* Override any GCC internal prototype to avoid an error.
15275    Use char because int might match the return type of a GCC
15276    builtin and then its argument prototype would still apply.  */
15277 #ifdef __cplusplus
15278 extern "C"
15279 #endif
15280 char _mwvalidcheckl ();
15281 int
15282 main ()
15283 {
15284 return _mwvalidcheckl ();
15285   ;
15286   return 0;
15287 }
15288 _ACEOF
15289 if ac_fn_cxx_try_link "$LINENO"; then :
15290   ac_cv_lib_mw__mwvalidcheckl=yes
15291 else
15292   ac_cv_lib_mw__mwvalidcheckl=no
15293 fi
15294 rm -f core conftest.err conftest.$ac_objext \
15295     conftest$ac_exeext conftest.$ac_ext
15296 LIBS=$ac_check_lib_save_LIBS
15297 fi
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
15299 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
15300 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
15301   LIBM="-lmw"
15302 fi
15303
15304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15305 $as_echo_n "checking for cos in -lm... " >&6; }
15306 if ${ac_cv_lib_m_cos+:} false; then :
15307   $as_echo_n "(cached) " >&6
15308 else
15309   ac_check_lib_save_LIBS=$LIBS
15310 LIBS="-lm  $LIBS"
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h.  */
15313
15314 /* Override any GCC internal prototype to avoid an error.
15315    Use char because int might match the return type of a GCC
15316    builtin and then its argument prototype would still apply.  */
15317 #ifdef __cplusplus
15318 extern "C"
15319 #endif
15320 char cos ();
15321 int
15322 main ()
15323 {
15324 return cos ();
15325   ;
15326   return 0;
15327 }
15328 _ACEOF
15329 if ac_fn_cxx_try_link "$LINENO"; then :
15330   ac_cv_lib_m_cos=yes
15331 else
15332   ac_cv_lib_m_cos=no
15333 fi
15334 rm -f core conftest.err conftest.$ac_objext \
15335     conftest$ac_exeext conftest.$ac_ext
15336 LIBS=$ac_check_lib_save_LIBS
15337 fi
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15339 $as_echo "$ac_cv_lib_m_cos" >&6; }
15340 if test "x$ac_cv_lib_m_cos" = xyes; then :
15341   LIBM="$LIBM -lm"
15342 fi
15343
15344   ;;
15345 *)
15346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15347 $as_echo_n "checking for cos in -lm... " >&6; }
15348 if ${ac_cv_lib_m_cos+:} false; then :
15349   $as_echo_n "(cached) " >&6
15350 else
15351   ac_check_lib_save_LIBS=$LIBS
15352 LIBS="-lm  $LIBS"
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h.  */
15355
15356 /* Override any GCC internal prototype to avoid an error.
15357    Use char because int might match the return type of a GCC
15358    builtin and then its argument prototype would still apply.  */
15359 #ifdef __cplusplus
15360 extern "C"
15361 #endif
15362 char cos ();
15363 int
15364 main ()
15365 {
15366 return cos ();
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 if ac_fn_cxx_try_link "$LINENO"; then :
15372   ac_cv_lib_m_cos=yes
15373 else
15374   ac_cv_lib_m_cos=no
15375 fi
15376 rm -f core conftest.err conftest.$ac_objext \
15377     conftest$ac_exeext conftest.$ac_ext
15378 LIBS=$ac_check_lib_save_LIBS
15379 fi
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15381 $as_echo "$ac_cv_lib_m_cos" >&6; }
15382 if test "x$ac_cv_lib_m_cos" = xyes; then :
15383   LIBM="-lm"
15384 fi
15385
15386   ;;
15387 esac
15388
15389
15390
15391
15392 ## -------- ##
15393 ## Outputs. ##
15394 ## -------- ##
15395 ac_config_files="$ac_config_files Makefile"
15396
15397 cat >confcache <<\_ACEOF
15398 # This file is a shell script that caches the results of configure
15399 # tests run on this system so they can be shared between configure
15400 # scripts and configure runs, see configure's option --config-cache.
15401 # It is not useful on other systems.  If it contains results you don't
15402 # want to keep, you may remove or edit it.
15403 #
15404 # config.status only pays attention to the cache file if you give it
15405 # the --recheck option to rerun configure.
15406 #
15407 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15408 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15409 # following values.
15410
15411 _ACEOF
15412
15413 # The following way of writing the cache mishandles newlines in values,
15414 # but we know of no workaround that is simple, portable, and efficient.
15415 # So, we kill variables containing newlines.
15416 # Ultrix sh set writes to stderr and can't be redirected directly,
15417 # and sets the high bit in the cache file unless we assign to the vars.
15418 (
15419   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15420     eval ac_val=\$$ac_var
15421     case $ac_val in #(
15422     *${as_nl}*)
15423       case $ac_var in #(
15424       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15425 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15426       esac
15427       case $ac_var in #(
15428       _ | IFS | as_nl) ;; #(
15429       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15430       *) { eval $ac_var=; unset $ac_var;} ;;
15431       esac ;;
15432     esac
15433   done
15434
15435   (set) 2>&1 |
15436     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15437     *${as_nl}ac_space=\ *)
15438       # `set' does not quote correctly, so add quotes: double-quote
15439       # substitution turns \\\\ into \\, and sed turns \\ into \.
15440       sed -n \
15441         "s/'/'\\\\''/g;
15442           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15443       ;; #(
15444     *)
15445       # `set' quotes correctly as required by POSIX, so do not add quotes.
15446       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15447       ;;
15448     esac |
15449     sort
15450 ) |
15451   sed '
15452      /^ac_cv_env_/b end
15453      t clear
15454      :clear
15455      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15456      t end
15457      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15458      :end' >>confcache
15459 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15460   if test -w "$cache_file"; then
15461     if test "x$cache_file" != "x/dev/null"; then
15462       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15463 $as_echo "$as_me: updating cache $cache_file" >&6;}
15464       if test ! -f "$cache_file" || test -h "$cache_file"; then
15465         cat confcache >"$cache_file"
15466       else
15467         case $cache_file in #(
15468         */* | ?:*)
15469           mv -f confcache "$cache_file"$$ &&
15470           mv -f "$cache_file"$$ "$cache_file" ;; #(
15471         *)
15472           mv -f confcache "$cache_file" ;;
15473         esac
15474       fi
15475     fi
15476   else
15477     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15478 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15479   fi
15480 fi
15481 rm -f confcache
15482
15483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15484 # Let make expand exec_prefix.
15485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15486
15487 # Transform confdefs.h into DEFS.
15488 # Protect against shell expansion while executing Makefile rules.
15489 # Protect against Makefile macro expansion.
15490 #
15491 # If the first sed substitution is executed (which looks for macros that
15492 # take arguments), then branch to the quote section.  Otherwise,
15493 # look for a macro that doesn't take arguments.
15494 ac_script='
15495 :mline
15496 /\\$/{
15497  N
15498  s,\\\n,,
15499  b mline
15500 }
15501 t clear
15502 :clear
15503 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
15504 t quote
15505 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
15506 t quote
15507 b any
15508 :quote
15509 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15510 s/\[/\\&/g
15511 s/\]/\\&/g
15512 s/\$/$$/g
15513 H
15514 :any
15515 ${
15516         g
15517         s/^\n//
15518         s/\n/ /g
15519         p
15520 }
15521 '
15522 DEFS=`sed -n "$ac_script" confdefs.h`
15523
15524
15525 ac_libobjs=
15526 ac_ltlibobjs=
15527 U=
15528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15529   # 1. Remove the extension, and $U if already installed.
15530   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15531   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15532   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15533   #    will be set to the directory where LIBOBJS objects are built.
15534   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15535   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15536 done
15537 LIBOBJS=$ac_libobjs
15538
15539 LTLIBOBJS=$ac_ltlibobjs
15540
15541
15542  if test -n "$EXEEXT"; then
15543   am__EXEEXT_TRUE=
15544   am__EXEEXT_FALSE='#'
15545 else
15546   am__EXEEXT_TRUE='#'
15547   am__EXEEXT_FALSE=
15548 fi
15549
15550 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15551   as_fn_error $? "conditional \"AMDEP\" was never defined.
15552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15553 fi
15554 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15555   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15557 fi
15558 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15559   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15561 fi
15562
15563 : "${CONFIG_STATUS=./config.status}"
15564 ac_write_fail=0
15565 ac_clean_files_save=$ac_clean_files
15566 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15568 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15569 as_write_fail=0
15570 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15571 #! $SHELL
15572 # Generated by $as_me.
15573 # Run this file to recreate the current configuration.
15574 # Compiler output produced by configure, useful for debugging
15575 # configure, is in config.log if it exists.
15576
15577 debug=false
15578 ac_cs_recheck=false
15579 ac_cs_silent=false
15580
15581 SHELL=\${CONFIG_SHELL-$SHELL}
15582 export SHELL
15583 _ASEOF
15584 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15585 ## -------------------- ##
15586 ## M4sh Initialization. ##
15587 ## -------------------- ##
15588
15589 # Be more Bourne compatible
15590 DUALCASE=1; export DUALCASE # for MKS sh
15591 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15592   emulate sh
15593   NULLCMD=:
15594   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15595   # is contrary to our usage.  Disable this feature.
15596   alias -g '${1+"$@"}'='"$@"'
15597   setopt NO_GLOB_SUBST
15598 else
15599   case `(set -o) 2>/dev/null` in #(
15600   *posix*) :
15601     set -o posix ;; #(
15602   *) :
15603      ;;
15604 esac
15605 fi
15606
15607
15608 as_nl='
15609 '
15610 export as_nl
15611 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15612 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15613 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15614 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15615 # Prefer a ksh shell builtin over an external printf program on Solaris,
15616 # but without wasting forks for bash or zsh.
15617 if test -z "$BASH_VERSION$ZSH_VERSION" \
15618     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15619   as_echo='print -r --'
15620   as_echo_n='print -rn --'
15621 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15622   as_echo='printf %s\n'
15623   as_echo_n='printf %s'
15624 else
15625   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15626     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15627     as_echo_n='/usr/ucb/echo -n'
15628   else
15629     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15630     as_echo_n_body='eval
15631       arg=$1;
15632       case $arg in #(
15633       *"$as_nl"*)
15634         expr "X$arg" : "X\\(.*\\)$as_nl";
15635         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15636       esac;
15637       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15638     '
15639     export as_echo_n_body
15640     as_echo_n='sh -c $as_echo_n_body as_echo'
15641   fi
15642   export as_echo_body
15643   as_echo='sh -c $as_echo_body as_echo'
15644 fi
15645
15646 # The user is always right.
15647 if test "${PATH_SEPARATOR+set}" != set; then
15648   PATH_SEPARATOR=:
15649   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15650     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15651       PATH_SEPARATOR=';'
15652   }
15653 fi
15654
15655
15656 # IFS
15657 # We need space, tab and new line, in precisely that order.  Quoting is
15658 # there to prevent editors from complaining about space-tab.
15659 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15660 # splitting by setting IFS to empty value.)
15661 IFS=" ""        $as_nl"
15662
15663 # Find who we are.  Look in the path if we contain no directory separator.
15664 as_myself=
15665 case $0 in #((
15666   *[\\/]* ) as_myself=$0 ;;
15667   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15668 for as_dir in $PATH
15669 do
15670   IFS=$as_save_IFS
15671   test -z "$as_dir" && as_dir=.
15672     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15673   done
15674 IFS=$as_save_IFS
15675
15676      ;;
15677 esac
15678 # We did not find ourselves, most probably we were run as `sh COMMAND'
15679 # in which case we are not to be found in the path.
15680 if test "x$as_myself" = x; then
15681   as_myself=$0
15682 fi
15683 if test ! -f "$as_myself"; then
15684   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15685   exit 1
15686 fi
15687
15688 # Unset variables that we do not need and which cause bugs (e.g. in
15689 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15690 # suppresses any "Segmentation fault" message there.  '((' could
15691 # trigger a bug in pdksh 5.2.14.
15692 for as_var in BASH_ENV ENV MAIL MAILPATH
15693 do eval test x\${$as_var+set} = xset \
15694   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15695 done
15696 PS1='$ '
15697 PS2='> '
15698 PS4='+ '
15699
15700 # NLS nuisances.
15701 LC_ALL=C
15702 export LC_ALL
15703 LANGUAGE=C
15704 export LANGUAGE
15705
15706 # CDPATH.
15707 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15708
15709
15710 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15711 # ----------------------------------------
15712 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15713 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15714 # script with STATUS, using 1 if that was 0.
15715 as_fn_error ()
15716 {
15717   as_status=$1; test $as_status -eq 0 && as_status=1
15718   if test "$4"; then
15719     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15720     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15721   fi
15722   $as_echo "$as_me: error: $2" >&2
15723   as_fn_exit $as_status
15724 } # as_fn_error
15725
15726
15727 # as_fn_set_status STATUS
15728 # -----------------------
15729 # Set $? to STATUS, without forking.
15730 as_fn_set_status ()
15731 {
15732   return $1
15733 } # as_fn_set_status
15734
15735 # as_fn_exit STATUS
15736 # -----------------
15737 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15738 as_fn_exit ()
15739 {
15740   set +e
15741   as_fn_set_status $1
15742   exit $1
15743 } # as_fn_exit
15744
15745 # as_fn_unset VAR
15746 # ---------------
15747 # Portably unset VAR.
15748 as_fn_unset ()
15749 {
15750   { eval $1=; unset $1;}
15751 }
15752 as_unset=as_fn_unset
15753 # as_fn_append VAR VALUE
15754 # ----------------------
15755 # Append the text in VALUE to the end of the definition contained in VAR. Take
15756 # advantage of any shell optimizations that allow amortized linear growth over
15757 # repeated appends, instead of the typical quadratic growth present in naive
15758 # implementations.
15759 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15760   eval 'as_fn_append ()
15761   {
15762     eval $1+=\$2
15763   }'
15764 else
15765   as_fn_append ()
15766   {
15767     eval $1=\$$1\$2
15768   }
15769 fi # as_fn_append
15770
15771 # as_fn_arith ARG...
15772 # ------------------
15773 # Perform arithmetic evaluation on the ARGs, and store the result in the
15774 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15775 # must be portable across $(()) and expr.
15776 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15777   eval 'as_fn_arith ()
15778   {
15779     as_val=$(( $* ))
15780   }'
15781 else
15782   as_fn_arith ()
15783   {
15784     as_val=`expr "$@" || test $? -eq 1`
15785   }
15786 fi # as_fn_arith
15787
15788
15789 if expr a : '\(a\)' >/dev/null 2>&1 &&
15790    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15791   as_expr=expr
15792 else
15793   as_expr=false
15794 fi
15795
15796 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15797   as_basename=basename
15798 else
15799   as_basename=false
15800 fi
15801
15802 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15803   as_dirname=dirname
15804 else
15805   as_dirname=false
15806 fi
15807
15808 as_me=`$as_basename -- "$0" ||
15809 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15810          X"$0" : 'X\(//\)$' \| \
15811          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15812 $as_echo X/"$0" |
15813     sed '/^.*\/\([^/][^/]*\)\/*$/{
15814             s//\1/
15815             q
15816           }
15817           /^X\/\(\/\/\)$/{
15818             s//\1/
15819             q
15820           }
15821           /^X\/\(\/\).*/{
15822             s//\1/
15823             q
15824           }
15825           s/.*/./; q'`
15826
15827 # Avoid depending upon Character Ranges.
15828 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15829 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15830 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15831 as_cr_digits='0123456789'
15832 as_cr_alnum=$as_cr_Letters$as_cr_digits
15833
15834 ECHO_C= ECHO_N= ECHO_T=
15835 case `echo -n x` in #(((((
15836 -n*)
15837   case `echo 'xy\c'` in
15838   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15839   xy)  ECHO_C='\c';;
15840   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15841        ECHO_T=' ';;
15842   esac;;
15843 *)
15844   ECHO_N='-n';;
15845 esac
15846
15847 rm -f conf$$ conf$$.exe conf$$.file
15848 if test -d conf$$.dir; then
15849   rm -f conf$$.dir/conf$$.file
15850 else
15851   rm -f conf$$.dir
15852   mkdir conf$$.dir 2>/dev/null
15853 fi
15854 if (echo >conf$$.file) 2>/dev/null; then
15855   if ln -s conf$$.file conf$$ 2>/dev/null; then
15856     as_ln_s='ln -s'
15857     # ... but there are two gotchas:
15858     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15859     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15860     # In both cases, we have to default to `cp -p'.
15861     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15862       as_ln_s='cp -p'
15863   elif ln conf$$.file conf$$ 2>/dev/null; then
15864     as_ln_s=ln
15865   else
15866     as_ln_s='cp -p'
15867   fi
15868 else
15869   as_ln_s='cp -p'
15870 fi
15871 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15872 rmdir conf$$.dir 2>/dev/null
15873
15874
15875 # as_fn_mkdir_p
15876 # -------------
15877 # Create "$as_dir" as a directory, including parents if necessary.
15878 as_fn_mkdir_p ()
15879 {
15880
15881   case $as_dir in #(
15882   -*) as_dir=./$as_dir;;
15883   esac
15884   test -d "$as_dir" || eval $as_mkdir_p || {
15885     as_dirs=
15886     while :; do
15887       case $as_dir in #(
15888       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15889       *) as_qdir=$as_dir;;
15890       esac
15891       as_dirs="'$as_qdir' $as_dirs"
15892       as_dir=`$as_dirname -- "$as_dir" ||
15893 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15894          X"$as_dir" : 'X\(//\)[^/]' \| \
15895          X"$as_dir" : 'X\(//\)$' \| \
15896          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15897 $as_echo X"$as_dir" |
15898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15899             s//\1/
15900             q
15901           }
15902           /^X\(\/\/\)[^/].*/{
15903             s//\1/
15904             q
15905           }
15906           /^X\(\/\/\)$/{
15907             s//\1/
15908             q
15909           }
15910           /^X\(\/\).*/{
15911             s//\1/
15912             q
15913           }
15914           s/.*/./; q'`
15915       test -d "$as_dir" && break
15916     done
15917     test -z "$as_dirs" || eval "mkdir $as_dirs"
15918   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15919
15920
15921 } # as_fn_mkdir_p
15922 if mkdir -p . 2>/dev/null; then
15923   as_mkdir_p='mkdir -p "$as_dir"'
15924 else
15925   test -d ./-p && rmdir ./-p
15926   as_mkdir_p=false
15927 fi
15928
15929 if test -x / >/dev/null 2>&1; then
15930   as_test_x='test -x'
15931 else
15932   if ls -dL / >/dev/null 2>&1; then
15933     as_ls_L_option=L
15934   else
15935     as_ls_L_option=
15936   fi
15937   as_test_x='
15938     eval sh -c '\''
15939       if test -d "$1"; then
15940         test -d "$1/.";
15941       else
15942         case $1 in #(
15943         -*)set "./$1";;
15944         esac;
15945         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15946         ???[sx]*):;;*)false;;esac;fi
15947     '\'' sh
15948   '
15949 fi
15950 as_executable_p=$as_test_x
15951
15952 # Sed expression to map a string onto a valid CPP name.
15953 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15954
15955 # Sed expression to map a string onto a valid variable name.
15956 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15957
15958
15959 exec 6>&1
15960 ## ----------------------------------- ##
15961 ## Main body of $CONFIG_STATUS script. ##
15962 ## ----------------------------------- ##
15963 _ASEOF
15964 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15965
15966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15967 # Save the log message, to keep $0 and so on meaningful, and to
15968 # report actual input values of CONFIG_FILES etc. instead of their
15969 # values after options handling.
15970 ac_log="
15971 This file was extended by tagdemo $as_me 1.0, which was
15972 generated by GNU Autoconf 2.68.  Invocation command line was
15973
15974   CONFIG_FILES    = $CONFIG_FILES
15975   CONFIG_HEADERS  = $CONFIG_HEADERS
15976   CONFIG_LINKS    = $CONFIG_LINKS
15977   CONFIG_COMMANDS = $CONFIG_COMMANDS
15978   $ $0 $@
15979
15980 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15981 "
15982
15983 _ACEOF
15984
15985 case $ac_config_files in *"
15986 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15987 esac
15988
15989
15990
15991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15992 # Files that config.status was made for.
15993 config_files="$ac_config_files"
15994 config_commands="$ac_config_commands"
15995
15996 _ACEOF
15997
15998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15999 ac_cs_usage="\
16000 \`$as_me' instantiates files and other configuration actions
16001 from templates according to the current configuration.  Unless the files
16002 and actions are specified as TAGs, all are instantiated by default.
16003
16004 Usage: $0 [OPTION]... [TAG]...
16005
16006   -h, --help       print this help, then exit
16007   -V, --version    print version number and configuration settings, then exit
16008       --config     print configuration, then exit
16009   -q, --quiet, --silent
16010                    do not print progress messages
16011   -d, --debug      don't remove temporary files
16012       --recheck    update $as_me by reconfiguring in the same conditions
16013       --file=FILE[:TEMPLATE]
16014                    instantiate the configuration file FILE
16015
16016 Configuration files:
16017 $config_files
16018
16019 Configuration commands:
16020 $config_commands
16021
16022 Report bugs to <bug-libtool@gnu.org>."
16023
16024 _ACEOF
16025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16026 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16027 ac_cs_version="\\
16028 tagdemo config.status 1.0
16029 configured by $0, generated by GNU Autoconf 2.68,
16030   with options \\"\$ac_cs_config\\"
16031
16032 Copyright (C) 2010 Free Software Foundation, Inc.
16033 This config.status script is free software; the Free Software Foundation
16034 gives unlimited permission to copy, distribute and modify it."
16035
16036 ac_pwd='$ac_pwd'
16037 srcdir='$srcdir'
16038 INSTALL='$INSTALL'
16039 MKDIR_P='$MKDIR_P'
16040 AWK='$AWK'
16041 test -n "\$AWK" || AWK=awk
16042 _ACEOF
16043
16044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16045 # The default lists apply if the user does not specify any file.
16046 ac_need_defaults=:
16047 while test $# != 0
16048 do
16049   case $1 in
16050   --*=?*)
16051     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16052     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16053     ac_shift=:
16054     ;;
16055   --*=)
16056     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16057     ac_optarg=
16058     ac_shift=:
16059     ;;
16060   *)
16061     ac_option=$1
16062     ac_optarg=$2
16063     ac_shift=shift
16064     ;;
16065   esac
16066
16067   case $ac_option in
16068   # Handling of the options.
16069   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16070     ac_cs_recheck=: ;;
16071   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16072     $as_echo "$ac_cs_version"; exit ;;
16073   --config | --confi | --conf | --con | --co | --c )
16074     $as_echo "$ac_cs_config"; exit ;;
16075   --debug | --debu | --deb | --de | --d | -d )
16076     debug=: ;;
16077   --file | --fil | --fi | --f )
16078     $ac_shift
16079     case $ac_optarg in
16080     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16081     '') as_fn_error $? "missing file argument" ;;
16082     esac
16083     as_fn_append CONFIG_FILES " '$ac_optarg'"
16084     ac_need_defaults=false;;
16085   --he | --h |  --help | --hel | -h )
16086     $as_echo "$ac_cs_usage"; exit ;;
16087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16088   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16089     ac_cs_silent=: ;;
16090
16091   # This is an error.
16092   -*) as_fn_error $? "unrecognized option: \`$1'
16093 Try \`$0 --help' for more information." ;;
16094
16095   *) as_fn_append ac_config_targets " $1"
16096      ac_need_defaults=false ;;
16097
16098   esac
16099   shift
16100 done
16101
16102 ac_configure_extra_args=
16103
16104 if $ac_cs_silent; then
16105   exec 6>/dev/null
16106   ac_configure_extra_args="$ac_configure_extra_args --silent"
16107 fi
16108
16109 _ACEOF
16110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16111 if \$ac_cs_recheck; then
16112   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16113   shift
16114   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16115   CONFIG_SHELL='$SHELL'
16116   export CONFIG_SHELL
16117   exec "\$@"
16118 fi
16119
16120 _ACEOF
16121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16122 exec 5>>config.log
16123 {
16124   echo
16125   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16126 ## Running $as_me. ##
16127 _ASBOX
16128   $as_echo "$ac_log"
16129 } >&5
16130
16131 _ACEOF
16132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16133 #
16134 # INIT-COMMANDS
16135 #
16136 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16137
16138
16139 # The HP-UX ksh and POSIX shell print the target directory to stdout
16140 # if CDPATH is set.
16141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16142
16143 sed_quote_subst='$sed_quote_subst'
16144 double_quote_subst='$double_quote_subst'
16145 delay_variable_subst='$delay_variable_subst'
16146 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16147 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16148 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16149 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16150 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16151 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16152 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16153 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16154 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16155 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16156 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16157 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16158 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16159 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16160 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16161 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16162 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16163 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16164 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16165 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16166 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16167 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16168 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16169 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16170 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16171 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16172 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16173 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16174 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16175 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16176 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16177 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16178 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16179 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16180 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16181 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16182 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16183 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16184 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16185 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16186 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16187 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16188 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16189 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16190 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16191 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16192 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16193 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16194 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16195 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16196 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16197 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16198 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16199 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16200 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16201 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16202 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"`'
16203 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16204 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16205 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16206 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16207 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16208 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16209 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16210 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16211 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16212 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16213 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16214 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16215 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16216 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16217 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16218 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16219 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16220 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16221 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16222 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16223 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16224 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16225 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16226 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16227 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16228 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16229 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16230 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16231 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16232 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16233 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16234 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16235 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16236 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16237 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16238 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16239 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16240 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16241 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16242 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16243 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16244 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16245 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16246 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16247 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16248 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16249 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16250 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16251 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16252 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16253 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16254 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16255 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16256 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16257 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16258 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16259 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16260 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16261 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16262 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16263 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16264 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16265 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16266 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16267 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16268 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16269 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16270 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16271 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16272 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16273 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16274 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16275 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16276 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16277 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16278 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16279 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16280 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16281 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16282 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16283 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16284 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16285 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16286 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16287 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16288 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16289 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16290 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16291 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16292 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16293 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16294 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16295 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16296 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16297 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16298 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16299 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16300 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16301 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16302 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16303 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16304 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16305 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16306 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16307 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16308 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16309 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16310 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16311 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16312 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16313 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16314 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16315 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16316 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16317 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16318 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16319 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16320 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16321 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16322 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16323 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16324 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16325 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16326 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16327 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16328 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16329 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16330
16331 LTCC='$LTCC'
16332 LTCFLAGS='$LTCFLAGS'
16333 compiler='$compiler_DEFAULT'
16334
16335 # A function that is used when there is no print builtin or printf.
16336 func_fallback_echo ()
16337 {
16338   eval 'cat <<_LTECHO_EOF
16339 \$1
16340 _LTECHO_EOF'
16341 }
16342
16343 # Quote evaled strings.
16344 for var in SHELL \
16345 ECHO \
16346 PATH_SEPARATOR \
16347 SED \
16348 GREP \
16349 EGREP \
16350 FGREP \
16351 LD \
16352 NM \
16353 LN_S \
16354 lt_SP2NL \
16355 lt_NL2SP \
16356 reload_flag \
16357 OBJDUMP \
16358 deplibs_check_method \
16359 file_magic_cmd \
16360 file_magic_glob \
16361 want_nocaseglob \
16362 DLLTOOL \
16363 sharedlib_from_linklib_cmd \
16364 AR \
16365 AR_FLAGS \
16366 archiver_list_spec \
16367 STRIP \
16368 RANLIB \
16369 CC \
16370 CFLAGS \
16371 compiler \
16372 lt_cv_sys_global_symbol_pipe \
16373 lt_cv_sys_global_symbol_to_cdecl \
16374 lt_cv_sys_global_symbol_to_c_name_address \
16375 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16376 nm_file_list_spec \
16377 lt_prog_compiler_no_builtin_flag \
16378 lt_prog_compiler_pic \
16379 lt_prog_compiler_wl \
16380 lt_prog_compiler_static \
16381 lt_cv_prog_compiler_c_o \
16382 need_locks \
16383 MANIFEST_TOOL \
16384 DSYMUTIL \
16385 NMEDIT \
16386 LIPO \
16387 OTOOL \
16388 OTOOL64 \
16389 shrext_cmds \
16390 export_dynamic_flag_spec \
16391 whole_archive_flag_spec \
16392 compiler_needs_object \
16393 with_gnu_ld \
16394 allow_undefined_flag \
16395 no_undefined_flag \
16396 hardcode_libdir_flag_spec \
16397 hardcode_libdir_separator \
16398 exclude_expsyms \
16399 include_expsyms \
16400 file_list_spec \
16401 variables_saved_for_relink \
16402 libname_spec \
16403 library_names_spec \
16404 soname_spec \
16405 install_override_mode \
16406 finish_eval \
16407 old_striplib \
16408 striplib \
16409 compiler_lib_search_dirs \
16410 predep_objects \
16411 postdep_objects \
16412 predeps \
16413 postdeps \
16414 compiler_lib_search_path \
16415 LD_CXX \
16416 reload_flag_CXX \
16417 compiler_CXX \
16418 lt_prog_compiler_no_builtin_flag_CXX \
16419 lt_prog_compiler_pic_CXX \
16420 lt_prog_compiler_wl_CXX \
16421 lt_prog_compiler_static_CXX \
16422 lt_cv_prog_compiler_c_o_CXX \
16423 export_dynamic_flag_spec_CXX \
16424 whole_archive_flag_spec_CXX \
16425 compiler_needs_object_CXX \
16426 with_gnu_ld_CXX \
16427 allow_undefined_flag_CXX \
16428 no_undefined_flag_CXX \
16429 hardcode_libdir_flag_spec_CXX \
16430 hardcode_libdir_separator_CXX \
16431 exclude_expsyms_CXX \
16432 include_expsyms_CXX \
16433 file_list_spec_CXX \
16434 compiler_lib_search_dirs_CXX \
16435 predep_objects_CXX \
16436 postdep_objects_CXX \
16437 predeps_CXX \
16438 postdeps_CXX \
16439 compiler_lib_search_path_CXX; do
16440     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16441     *[\\\\\\\`\\"\\\$]*)
16442       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16443       ;;
16444     *)
16445       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16446       ;;
16447     esac
16448 done
16449
16450 # Double-quote double-evaled strings.
16451 for var in reload_cmds \
16452 old_postinstall_cmds \
16453 old_postuninstall_cmds \
16454 old_archive_cmds \
16455 extract_expsyms_cmds \
16456 old_archive_from_new_cmds \
16457 old_archive_from_expsyms_cmds \
16458 archive_cmds \
16459 archive_expsym_cmds \
16460 module_cmds \
16461 module_expsym_cmds \
16462 export_symbols_cmds \
16463 prelink_cmds \
16464 postlink_cmds \
16465 postinstall_cmds \
16466 postuninstall_cmds \
16467 finish_cmds \
16468 sys_lib_search_path_spec \
16469 sys_lib_dlsearch_path_spec \
16470 reload_cmds_CXX \
16471 old_archive_cmds_CXX \
16472 old_archive_from_new_cmds_CXX \
16473 old_archive_from_expsyms_cmds_CXX \
16474 archive_cmds_CXX \
16475 archive_expsym_cmds_CXX \
16476 module_cmds_CXX \
16477 module_expsym_cmds_CXX \
16478 export_symbols_cmds_CXX \
16479 prelink_cmds_CXX \
16480 postlink_cmds_CXX; do
16481     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16482     *[\\\\\\\`\\"\\\$]*)
16483       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16484       ;;
16485     *)
16486       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16487       ;;
16488     esac
16489 done
16490
16491 ac_aux_dir='$ac_aux_dir'
16492 xsi_shell='$xsi_shell'
16493 lt_shell_append='$lt_shell_append'
16494
16495 # See if we are running on zsh, and set the options which allow our
16496 # commands through without removal of \ escapes INIT.
16497 if test -n "\${ZSH_VERSION+set}" ; then
16498    setopt NO_GLOB_SUBST
16499 fi
16500
16501
16502     PACKAGE='$PACKAGE'
16503     VERSION='$VERSION'
16504     TIMESTAMP='$TIMESTAMP'
16505     RM='$RM'
16506     ofile='$ofile'
16507
16508
16509
16510
16511
16512
16513 _ACEOF
16514
16515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16516
16517 # Handling of arguments.
16518 for ac_config_target in $ac_config_targets
16519 do
16520   case $ac_config_target in
16521     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16522     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16523     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16524
16525   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16526   esac
16527 done
16528
16529
16530 # If the user did not use the arguments to specify the items to instantiate,
16531 # then the envvar interface is used.  Set only those that are not.
16532 # We use the long form for the default assignment because of an extremely
16533 # bizarre bug on SunOS 4.1.3.
16534 if $ac_need_defaults; then
16535   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16536   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16537 fi
16538
16539 # Have a temporary directory for convenience.  Make it in the build tree
16540 # simply because there is no reason against having it here, and in addition,
16541 # creating and moving files from /tmp can sometimes cause problems.
16542 # Hook for its removal unless debugging.
16543 # Note that there is a small window in which the directory will not be cleaned:
16544 # after its creation but before its name has been assigned to `$tmp'.
16545 $debug ||
16546 {
16547   tmp= ac_tmp=
16548   trap 'exit_status=$?
16549   : "${ac_tmp:=$tmp}"
16550   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16551 ' 0
16552   trap 'as_fn_exit 1' 1 2 13 15
16553 }
16554 # Create a (secure) tmp directory for tmp files.
16555
16556 {
16557   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16558   test -d "$tmp"
16559 }  ||
16560 {
16561   tmp=./conf$$-$RANDOM
16562   (umask 077 && mkdir "$tmp")
16563 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16564 ac_tmp=$tmp
16565
16566 # Set up the scripts for CONFIG_FILES section.
16567 # No need to generate them if there are no CONFIG_FILES.
16568 # This happens for instance with `./config.status config.h'.
16569 if test -n "$CONFIG_FILES"; then
16570
16571
16572 ac_cr=`echo X | tr X '\015'`
16573 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16574 # But we know of no other shell where ac_cr would be empty at this
16575 # point, so we can use a bashism as a fallback.
16576 if test "x$ac_cr" = x; then
16577   eval ac_cr=\$\'\\r\'
16578 fi
16579 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16580 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16581   ac_cs_awk_cr='\\r'
16582 else
16583   ac_cs_awk_cr=$ac_cr
16584 fi
16585
16586 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16587 _ACEOF
16588
16589
16590 {
16591   echo "cat >conf$$subs.awk <<_ACEOF" &&
16592   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16593   echo "_ACEOF"
16594 } >conf$$subs.sh ||
16595   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16596 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16597 ac_delim='%!_!# '
16598 for ac_last_try in false false false false false :; do
16599   . ./conf$$subs.sh ||
16600     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16601
16602   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16603   if test $ac_delim_n = $ac_delim_num; then
16604     break
16605   elif $ac_last_try; then
16606     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16607   else
16608     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16609   fi
16610 done
16611 rm -f conf$$subs.sh
16612
16613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16614 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16615 _ACEOF
16616 sed -n '
16617 h
16618 s/^/S["/; s/!.*/"]=/
16619 p
16620 g
16621 s/^[^!]*!//
16622 :repl
16623 t repl
16624 s/'"$ac_delim"'$//
16625 t delim
16626 :nl
16627 h
16628 s/\(.\{148\}\)..*/\1/
16629 t more1
16630 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16631 p
16632 n
16633 b repl
16634 :more1
16635 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16636 p
16637 g
16638 s/.\{148\}//
16639 t nl
16640 :delim
16641 h
16642 s/\(.\{148\}\)..*/\1/
16643 t more2
16644 s/["\\]/\\&/g; s/^/"/; s/$/"/
16645 p
16646 b
16647 :more2
16648 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16649 p
16650 g
16651 s/.\{148\}//
16652 t delim
16653 ' <conf$$subs.awk | sed '
16654 /^[^""]/{
16655   N
16656   s/\n//
16657 }
16658 ' >>$CONFIG_STATUS || ac_write_fail=1
16659 rm -f conf$$subs.awk
16660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16661 _ACAWK
16662 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16663   for (key in S) S_is_set[key] = 1
16664   FS = "\a"
16665
16666 }
16667 {
16668   line = $ 0
16669   nfields = split(line, field, "@")
16670   substed = 0
16671   len = length(field[1])
16672   for (i = 2; i < nfields; i++) {
16673     key = field[i]
16674     keylen = length(key)
16675     if (S_is_set[key]) {
16676       value = S[key]
16677       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16678       len += length(value) + length(field[++i])
16679       substed = 1
16680     } else
16681       len += 1 + keylen
16682   }
16683
16684   print line
16685 }
16686
16687 _ACAWK
16688 _ACEOF
16689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16690 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16691   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16692 else
16693   cat
16694 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16695   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16696 _ACEOF
16697
16698 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16699 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16700 # trailing colons and then remove the whole line if VPATH becomes empty
16701 # (actually we leave an empty line to preserve line numbers).
16702 if test "x$srcdir" = x.; then
16703   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16704 h
16705 s///
16706 s/^/:/
16707 s/[      ]*$/:/
16708 s/:\$(srcdir):/:/g
16709 s/:\${srcdir}:/:/g
16710 s/:@srcdir@:/:/g
16711 s/^:*//
16712 s/:*$//
16713 x
16714 s/\(=[   ]*\).*/\1/
16715 G
16716 s/\n//
16717 s/^[^=]*=[       ]*$//
16718 }'
16719 fi
16720
16721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16722 fi # test -n "$CONFIG_FILES"
16723
16724
16725 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
16726 shift
16727 for ac_tag
16728 do
16729   case $ac_tag in
16730   :[FHLC]) ac_mode=$ac_tag; continue;;
16731   esac
16732   case $ac_mode$ac_tag in
16733   :[FHL]*:*);;
16734   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16735   :[FH]-) ac_tag=-:-;;
16736   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16737   esac
16738   ac_save_IFS=$IFS
16739   IFS=:
16740   set x $ac_tag
16741   IFS=$ac_save_IFS
16742   shift
16743   ac_file=$1
16744   shift
16745
16746   case $ac_mode in
16747   :L) ac_source=$1;;
16748   :[FH])
16749     ac_file_inputs=
16750     for ac_f
16751     do
16752       case $ac_f in
16753       -) ac_f="$ac_tmp/stdin";;
16754       *) # Look for the file first in the build tree, then in the source tree
16755          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16756          # because $ac_f cannot contain `:'.
16757          test -f "$ac_f" ||
16758            case $ac_f in
16759            [\\/$]*) false;;
16760            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16761            esac ||
16762            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16763       esac
16764       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16765       as_fn_append ac_file_inputs " '$ac_f'"
16766     done
16767
16768     # Let's still pretend it is `configure' which instantiates (i.e., don't
16769     # use $as_me), people would be surprised to read:
16770     #    /* config.h.  Generated by config.status.  */
16771     configure_input='Generated from '`
16772           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16773         `' by configure.'
16774     if test x"$ac_file" != x-; then
16775       configure_input="$ac_file.  $configure_input"
16776       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16777 $as_echo "$as_me: creating $ac_file" >&6;}
16778     fi
16779     # Neutralize special characters interpreted by sed in replacement strings.
16780     case $configure_input in #(
16781     *\&* | *\|* | *\\* )
16782        ac_sed_conf_input=`$as_echo "$configure_input" |
16783        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16784     *) ac_sed_conf_input=$configure_input;;
16785     esac
16786
16787     case $ac_tag in
16788     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16789       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16790     esac
16791     ;;
16792   esac
16793
16794   ac_dir=`$as_dirname -- "$ac_file" ||
16795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16796          X"$ac_file" : 'X\(//\)[^/]' \| \
16797          X"$ac_file" : 'X\(//\)$' \| \
16798          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16799 $as_echo X"$ac_file" |
16800     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16801             s//\1/
16802             q
16803           }
16804           /^X\(\/\/\)[^/].*/{
16805             s//\1/
16806             q
16807           }
16808           /^X\(\/\/\)$/{
16809             s//\1/
16810             q
16811           }
16812           /^X\(\/\).*/{
16813             s//\1/
16814             q
16815           }
16816           s/.*/./; q'`
16817   as_dir="$ac_dir"; as_fn_mkdir_p
16818   ac_builddir=.
16819
16820 case "$ac_dir" in
16821 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16822 *)
16823   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16824   # A ".." for each directory in $ac_dir_suffix.
16825   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16826   case $ac_top_builddir_sub in
16827   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16828   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16829   esac ;;
16830 esac
16831 ac_abs_top_builddir=$ac_pwd
16832 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16833 # for backward compatibility:
16834 ac_top_builddir=$ac_top_build_prefix
16835
16836 case $srcdir in
16837   .)  # We are building in place.
16838     ac_srcdir=.
16839     ac_top_srcdir=$ac_top_builddir_sub
16840     ac_abs_top_srcdir=$ac_pwd ;;
16841   [\\/]* | ?:[\\/]* )  # Absolute name.
16842     ac_srcdir=$srcdir$ac_dir_suffix;
16843     ac_top_srcdir=$srcdir
16844     ac_abs_top_srcdir=$srcdir ;;
16845   *) # Relative name.
16846     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16847     ac_top_srcdir=$ac_top_build_prefix$srcdir
16848     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16849 esac
16850 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16851
16852
16853   case $ac_mode in
16854   :F)
16855   #
16856   # CONFIG_FILE
16857   #
16858
16859   case $INSTALL in
16860   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16861   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16862   esac
16863   ac_MKDIR_P=$MKDIR_P
16864   case $MKDIR_P in
16865   [\\/$]* | ?:[\\/]* ) ;;
16866   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16867   esac
16868 _ACEOF
16869
16870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16871 # If the template does not know about datarootdir, expand it.
16872 # FIXME: This hack should be removed a few years after 2.60.
16873 ac_datarootdir_hack=; ac_datarootdir_seen=
16874 ac_sed_dataroot='
16875 /datarootdir/ {
16876   p
16877   q
16878 }
16879 /@datadir@/p
16880 /@docdir@/p
16881 /@infodir@/p
16882 /@localedir@/p
16883 /@mandir@/p'
16884 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16885 *datarootdir*) ac_datarootdir_seen=yes;;
16886 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16887   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16888 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16889 _ACEOF
16890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16891   ac_datarootdir_hack='
16892   s&@datadir@&$datadir&g
16893   s&@docdir@&$docdir&g
16894   s&@infodir@&$infodir&g
16895   s&@localedir@&$localedir&g
16896   s&@mandir@&$mandir&g
16897   s&\\\${datarootdir}&$datarootdir&g' ;;
16898 esac
16899 _ACEOF
16900
16901 # Neutralize VPATH when `$srcdir' = `.'.
16902 # Shell code in configure.ac might set extrasub.
16903 # FIXME: do we really want to maintain this feature?
16904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16905 ac_sed_extra="$ac_vpsub
16906 $extrasub
16907 _ACEOF
16908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16909 :t
16910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16911 s|@configure_input@|$ac_sed_conf_input|;t t
16912 s&@top_builddir@&$ac_top_builddir_sub&;t t
16913 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16914 s&@srcdir@&$ac_srcdir&;t t
16915 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16916 s&@top_srcdir@&$ac_top_srcdir&;t t
16917 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16918 s&@builddir@&$ac_builddir&;t t
16919 s&@abs_builddir@&$ac_abs_builddir&;t t
16920 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16921 s&@INSTALL@&$ac_INSTALL&;t t
16922 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16923 $ac_datarootdir_hack
16924 "
16925 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16926   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16927
16928 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16929   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16930   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16931       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16932   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16933 which seems to be undefined.  Please make sure it is defined" >&5
16934 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16935 which seems to be undefined.  Please make sure it is defined" >&2;}
16936
16937   rm -f "$ac_tmp/stdin"
16938   case $ac_file in
16939   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16940   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16941   esac \
16942   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16943  ;;
16944
16945
16946   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16947 $as_echo "$as_me: executing $ac_file commands" >&6;}
16948  ;;
16949   esac
16950
16951
16952   case $ac_file$ac_mode in
16953     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16954   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16955   # are listed without --file.  Let's play safe and only enable the eval
16956   # if we detect the quoting.
16957   case $CONFIG_FILES in
16958   *\'*) eval set x "$CONFIG_FILES" ;;
16959   *)   set x $CONFIG_FILES ;;
16960   esac
16961   shift
16962   for mf
16963   do
16964     # Strip MF so we end up with the name of the file.
16965     mf=`echo "$mf" | sed -e 's/:.*$//'`
16966     # Check whether this is an Automake generated Makefile or not.
16967     # We used to match only the files named `Makefile.in', but
16968     # some people rename them; so instead we look at the file content.
16969     # Grep'ing the first line is not enough: some people post-process
16970     # each Makefile.in and add a new line on top of each file to say so.
16971     # Grep'ing the whole file is not good either: AIX grep has a line
16972     # limit of 2048, but all sed's we know have understand at least 4000.
16973     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16974       dirpart=`$as_dirname -- "$mf" ||
16975 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16976          X"$mf" : 'X\(//\)[^/]' \| \
16977          X"$mf" : 'X\(//\)$' \| \
16978          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16979 $as_echo X"$mf" |
16980     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16981             s//\1/
16982             q
16983           }
16984           /^X\(\/\/\)[^/].*/{
16985             s//\1/
16986             q
16987           }
16988           /^X\(\/\/\)$/{
16989             s//\1/
16990             q
16991           }
16992           /^X\(\/\).*/{
16993             s//\1/
16994             q
16995           }
16996           s/.*/./; q'`
16997     else
16998       continue
16999     fi
17000     # Extract the definition of DEPDIR, am__include, and am__quote
17001     # from the Makefile without running `make'.
17002     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17003     test -z "$DEPDIR" && continue
17004     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17005     test -z "am__include" && continue
17006     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17007     # When using ansi2knr, U may be empty or an underscore; expand it
17008     U=`sed -n 's/^U = //p' < "$mf"`
17009     # Find all dependency output files, they are included files with
17010     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17011     # simplest approach to changing $(DEPDIR) to its actual value in the
17012     # expansion.
17013     for file in `sed -n "
17014       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17015          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17016       # Make sure the directory exists.
17017       test -f "$dirpart/$file" && continue
17018       fdir=`$as_dirname -- "$file" ||
17019 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17020          X"$file" : 'X\(//\)[^/]' \| \
17021          X"$file" : 'X\(//\)$' \| \
17022          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17023 $as_echo X"$file" |
17024     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17025             s//\1/
17026             q
17027           }
17028           /^X\(\/\/\)[^/].*/{
17029             s//\1/
17030             q
17031           }
17032           /^X\(\/\/\)$/{
17033             s//\1/
17034             q
17035           }
17036           /^X\(\/\).*/{
17037             s//\1/
17038             q
17039           }
17040           s/.*/./; q'`
17041       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17042       # echo "creating $dirpart/$file"
17043       echo '# dummy' > "$dirpart/$file"
17044     done
17045   done
17046 }
17047  ;;
17048     "libtool":C)
17049
17050     # See if we are running on zsh, and set the options which allow our
17051     # commands through without removal of \ escapes.
17052     if test -n "${ZSH_VERSION+set}" ; then
17053       setopt NO_GLOB_SUBST
17054     fi
17055
17056     cfgfile="${ofile}T"
17057     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17058     $RM "$cfgfile"
17059
17060     cat <<_LT_EOF >> "$cfgfile"
17061 #! $SHELL
17062
17063 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17064 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17066 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17067 #
17068 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17069 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17070 #                 Foundation, Inc.
17071 #   Written by Gordon Matzigkeit, 1996
17072 #
17073 #   This file is part of GNU Libtool.
17074 #
17075 # GNU Libtool is free software; you can redistribute it and/or
17076 # modify it under the terms of the GNU General Public License as
17077 # published by the Free Software Foundation; either version 2 of
17078 # the License, or (at your option) any later version.
17079 #
17080 # As a special exception to the GNU General Public License,
17081 # if you distribute this file as part of a program or library that
17082 # is built using GNU Libtool, you may include this file under the
17083 # same distribution terms that you use for the rest of that program.
17084 #
17085 # GNU Libtool is distributed in the hope that it will be useful,
17086 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17087 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17088 # GNU General Public License for more details.
17089 #
17090 # You should have received a copy of the GNU General Public License
17091 # along with GNU Libtool; see the file COPYING.  If not, a copy
17092 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17093 # obtained by writing to the Free Software Foundation, Inc.,
17094 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17095
17096
17097 # The names of the tagged configurations supported by this script.
17098 available_tags="CXX "
17099
17100 # ### BEGIN LIBTOOL CONFIG
17101
17102 # Which release of libtool.m4 was used?
17103 macro_version=$macro_version
17104 macro_revision=$macro_revision
17105
17106 # Whether or not to build shared libraries.
17107 build_libtool_libs=$enable_shared
17108
17109 # Whether or not to build static libraries.
17110 build_old_libs=$enable_static
17111
17112 # What type of objects to build.
17113 pic_mode=$pic_mode
17114
17115 # Whether or not to optimize for fast installation.
17116 fast_install=$enable_fast_install
17117
17118 # Shell to use when invoking shell scripts.
17119 SHELL=$lt_SHELL
17120
17121 # An echo program that protects backslashes.
17122 ECHO=$lt_ECHO
17123
17124 # The PATH separator for the build system.
17125 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17126
17127 # The host system.
17128 host_alias=$host_alias
17129 host=$host
17130 host_os=$host_os
17131
17132 # The build system.
17133 build_alias=$build_alias
17134 build=$build
17135 build_os=$build_os
17136
17137 # A sed program that does not truncate output.
17138 SED=$lt_SED
17139
17140 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17141 Xsed="\$SED -e 1s/^X//"
17142
17143 # A grep program that handles long lines.
17144 GREP=$lt_GREP
17145
17146 # An ERE matcher.
17147 EGREP=$lt_EGREP
17148
17149 # A literal string matcher.
17150 FGREP=$lt_FGREP
17151
17152 # A BSD- or MS-compatible name lister.
17153 NM=$lt_NM
17154
17155 # Whether we need soft or hard links.
17156 LN_S=$lt_LN_S
17157
17158 # What is the maximum length of a command?
17159 max_cmd_len=$max_cmd_len
17160
17161 # Object file suffix (normally "o").
17162 objext=$ac_objext
17163
17164 # Executable file suffix (normally "").
17165 exeext=$exeext
17166
17167 # whether the shell understands "unset".
17168 lt_unset=$lt_unset
17169
17170 # turn spaces into newlines.
17171 SP2NL=$lt_lt_SP2NL
17172
17173 # turn newlines into spaces.
17174 NL2SP=$lt_lt_NL2SP
17175
17176 # convert \$build file names to \$host format.
17177 to_host_file_cmd=$lt_cv_to_host_file_cmd
17178
17179 # convert \$build files to toolchain format.
17180 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17181
17182 # An object symbol dumper.
17183 OBJDUMP=$lt_OBJDUMP
17184
17185 # Method to check whether dependent libraries are shared objects.
17186 deplibs_check_method=$lt_deplibs_check_method
17187
17188 # Command to use when deplibs_check_method = "file_magic".
17189 file_magic_cmd=$lt_file_magic_cmd
17190
17191 # How to find potential files when deplibs_check_method = "file_magic".
17192 file_magic_glob=$lt_file_magic_glob
17193
17194 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17195 want_nocaseglob=$lt_want_nocaseglob
17196
17197 # DLL creation program.
17198 DLLTOOL=$lt_DLLTOOL
17199
17200 # Command to associate shared and link libraries.
17201 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17202
17203 # The archiver.
17204 AR=$lt_AR
17205
17206 # Flags to create an archive.
17207 AR_FLAGS=$lt_AR_FLAGS
17208
17209 # How to feed a file listing to the archiver.
17210 archiver_list_spec=$lt_archiver_list_spec
17211
17212 # A symbol stripping program.
17213 STRIP=$lt_STRIP
17214
17215 # Commands used to install an old-style archive.
17216 RANLIB=$lt_RANLIB
17217 old_postinstall_cmds=$lt_old_postinstall_cmds
17218 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17219
17220 # Whether to use a lock for old archive extraction.
17221 lock_old_archive_extraction=$lock_old_archive_extraction
17222
17223 # A C compiler.
17224 LTCC=$lt_CC
17225
17226 # LTCC compiler flags.
17227 LTCFLAGS=$lt_CFLAGS
17228
17229 # Take the output of nm and produce a listing of raw symbols and C names.
17230 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17231
17232 # Transform the output of nm in a proper C declaration.
17233 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17234
17235 # Transform the output of nm in a C name address pair.
17236 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17237
17238 # Transform the output of nm in a C name address pair when lib prefix is needed.
17239 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17240
17241 # Specify filename containing input files for \$NM.
17242 nm_file_list_spec=$lt_nm_file_list_spec
17243
17244 # The root where to search for dependent libraries,and in which our libraries should be installed.
17245 lt_sysroot=$lt_sysroot
17246
17247 # The name of the directory that contains temporary libtool files.
17248 objdir=$objdir
17249
17250 # Used to examine libraries when file_magic_cmd begins with "file".
17251 MAGIC_CMD=$MAGIC_CMD
17252
17253 # Must we lock files when doing compilation?
17254 need_locks=$lt_need_locks
17255
17256 # Manifest tool.
17257 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17258
17259 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17260 DSYMUTIL=$lt_DSYMUTIL
17261
17262 # Tool to change global to local symbols on Mac OS X.
17263 NMEDIT=$lt_NMEDIT
17264
17265 # Tool to manipulate fat objects and archives on Mac OS X.
17266 LIPO=$lt_LIPO
17267
17268 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17269 OTOOL=$lt_OTOOL
17270
17271 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17272 OTOOL64=$lt_OTOOL64
17273
17274 # Old archive suffix (normally "a").
17275 libext=$libext
17276
17277 # Shared library suffix (normally ".so").
17278 shrext_cmds=$lt_shrext_cmds
17279
17280 # The commands to extract the exported symbol list from a shared archive.
17281 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17282
17283 # Variables whose values should be saved in libtool wrapper scripts and
17284 # restored at link time.
17285 variables_saved_for_relink=$lt_variables_saved_for_relink
17286
17287 # Do we need the "lib" prefix for modules?
17288 need_lib_prefix=$need_lib_prefix
17289
17290 # Do we need a version for libraries?
17291 need_version=$need_version
17292
17293 # Library versioning type.
17294 version_type=$version_type
17295
17296 # Shared library runtime path variable.
17297 runpath_var=$runpath_var
17298
17299 # Shared library path variable.
17300 shlibpath_var=$shlibpath_var
17301
17302 # Is shlibpath searched before the hard-coded library search path?
17303 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17304
17305 # Format of library name prefix.
17306 libname_spec=$lt_libname_spec
17307
17308 # List of archive names.  First name is the real one, the rest are links.
17309 # The last name is the one that the linker finds with -lNAME
17310 library_names_spec=$lt_library_names_spec
17311
17312 # The coded name of the library, if different from the real name.
17313 soname_spec=$lt_soname_spec
17314
17315 # Permission mode override for installation of shared libraries.
17316 install_override_mode=$lt_install_override_mode
17317
17318 # Command to use after installation of a shared archive.
17319 postinstall_cmds=$lt_postinstall_cmds
17320
17321 # Command to use after uninstallation of a shared archive.
17322 postuninstall_cmds=$lt_postuninstall_cmds
17323
17324 # Commands used to finish a libtool library installation in a directory.
17325 finish_cmds=$lt_finish_cmds
17326
17327 # As "finish_cmds", except a single script fragment to be evaled but
17328 # not shown.
17329 finish_eval=$lt_finish_eval
17330
17331 # Whether we should hardcode library paths into libraries.
17332 hardcode_into_libs=$hardcode_into_libs
17333
17334 # Compile-time system search path for libraries.
17335 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17336
17337 # Run-time system search path for libraries.
17338 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17339
17340 # Whether dlopen is supported.
17341 dlopen_support=$enable_dlopen
17342
17343 # Whether dlopen of programs is supported.
17344 dlopen_self=$enable_dlopen_self
17345
17346 # Whether dlopen of statically linked programs is supported.
17347 dlopen_self_static=$enable_dlopen_self_static
17348
17349 # Commands to strip libraries.
17350 old_striplib=$lt_old_striplib
17351 striplib=$lt_striplib
17352
17353
17354 # The linker used to build libraries.
17355 LD=$lt_LD
17356
17357 # How to create reloadable object files.
17358 reload_flag=$lt_reload_flag
17359 reload_cmds=$lt_reload_cmds
17360
17361 # Commands used to build an old-style archive.
17362 old_archive_cmds=$lt_old_archive_cmds
17363
17364 # A language specific compiler.
17365 CC=$lt_compiler
17366
17367 # Is the compiler the GNU compiler?
17368 with_gcc=$GCC
17369
17370 # Compiler flag to turn off builtin functions.
17371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17372
17373 # Additional compiler flags for building library objects.
17374 pic_flag=$lt_lt_prog_compiler_pic
17375
17376 # How to pass a linker flag through the compiler.
17377 wl=$lt_lt_prog_compiler_wl
17378
17379 # Compiler flag to prevent dynamic linking.
17380 link_static_flag=$lt_lt_prog_compiler_static
17381
17382 # Does compiler simultaneously support -c and -o options?
17383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17384
17385 # Whether or not to add -lc for building shared libraries.
17386 build_libtool_need_lc=$archive_cmds_need_lc
17387
17388 # Whether or not to disallow shared libs when runtime libs are static.
17389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17390
17391 # Compiler flag to allow reflexive dlopens.
17392 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17393
17394 # Compiler flag to generate shared objects directly from archives.
17395 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17396
17397 # Whether the compiler copes with passing no objects directly.
17398 compiler_needs_object=$lt_compiler_needs_object
17399
17400 # Create an old-style archive from a shared archive.
17401 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17402
17403 # Create a temporary old-style archive to link instead of a shared archive.
17404 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17405
17406 # Commands used to build a shared archive.
17407 archive_cmds=$lt_archive_cmds
17408 archive_expsym_cmds=$lt_archive_expsym_cmds
17409
17410 # Commands used to build a loadable module if different from building
17411 # a shared archive.
17412 module_cmds=$lt_module_cmds
17413 module_expsym_cmds=$lt_module_expsym_cmds
17414
17415 # Whether we are building with GNU ld or not.
17416 with_gnu_ld=$lt_with_gnu_ld
17417
17418 # Flag that allows shared libraries with undefined symbols to be built.
17419 allow_undefined_flag=$lt_allow_undefined_flag
17420
17421 # Flag that enforces no undefined symbols.
17422 no_undefined_flag=$lt_no_undefined_flag
17423
17424 # Flag to hardcode \$libdir into a binary during linking.
17425 # This must work even if \$libdir does not exist
17426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17427
17428 # Whether we need a single "-rpath" flag with a separated argument.
17429 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17430
17431 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17432 # DIR into the resulting binary.
17433 hardcode_direct=$hardcode_direct
17434
17435 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17436 # DIR into the resulting binary and the resulting library dependency is
17437 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17438 # library is relocated.
17439 hardcode_direct_absolute=$hardcode_direct_absolute
17440
17441 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17442 # into the resulting binary.
17443 hardcode_minus_L=$hardcode_minus_L
17444
17445 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17446 # into the resulting binary.
17447 hardcode_shlibpath_var=$hardcode_shlibpath_var
17448
17449 # Set to "yes" if building a shared library automatically hardcodes DIR
17450 # into the library and all subsequent libraries and executables linked
17451 # against it.
17452 hardcode_automatic=$hardcode_automatic
17453
17454 # Set to yes if linker adds runtime paths of dependent libraries
17455 # to runtime path list.
17456 inherit_rpath=$inherit_rpath
17457
17458 # Whether libtool must link a program against all its dependency libraries.
17459 link_all_deplibs=$link_all_deplibs
17460
17461 # Set to "yes" if exported symbols are required.
17462 always_export_symbols=$always_export_symbols
17463
17464 # The commands to list exported symbols.
17465 export_symbols_cmds=$lt_export_symbols_cmds
17466
17467 # Symbols that should not be listed in the preloaded symbols.
17468 exclude_expsyms=$lt_exclude_expsyms
17469
17470 # Symbols that must always be exported.
17471 include_expsyms=$lt_include_expsyms
17472
17473 # Commands necessary for linking programs (against libraries) with templates.
17474 prelink_cmds=$lt_prelink_cmds
17475
17476 # Commands necessary for finishing linking programs.
17477 postlink_cmds=$lt_postlink_cmds
17478
17479 # Specify filename containing input files.
17480 file_list_spec=$lt_file_list_spec
17481
17482 # How to hardcode a shared library path into an executable.
17483 hardcode_action=$hardcode_action
17484
17485 # The directories searched by this compiler when creating a shared library.
17486 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17487
17488 # Dependencies to place before and after the objects being linked to
17489 # create a shared library.
17490 predep_objects=$lt_predep_objects
17491 postdep_objects=$lt_postdep_objects
17492 predeps=$lt_predeps
17493 postdeps=$lt_postdeps
17494
17495 # The library search path used internally by the compiler when linking
17496 # a shared library.
17497 compiler_lib_search_path=$lt_compiler_lib_search_path
17498
17499 # ### END LIBTOOL CONFIG
17500
17501 _LT_EOF
17502
17503   case $host_os in
17504   aix3*)
17505     cat <<\_LT_EOF >> "$cfgfile"
17506 # AIX sometimes has problems with the GCC collect2 program.  For some
17507 # reason, if we set the COLLECT_NAMES environment variable, the problems
17508 # vanish in a puff of smoke.
17509 if test "X${COLLECT_NAMES+set}" != Xset; then
17510   COLLECT_NAMES=
17511   export COLLECT_NAMES
17512 fi
17513 _LT_EOF
17514     ;;
17515   esac
17516
17517
17518 ltmain="$ac_aux_dir/ltmain.sh"
17519
17520
17521   # We use sed instead of cat because bash on DJGPP gets confused if
17522   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17523   # text mode, it properly converts lines to CR/LF.  This bash problem
17524   # is reportedly fixed, but why not run on old versions too?
17525   sed '$q' "$ltmain" >> "$cfgfile" \
17526      || (rm -f "$cfgfile"; exit 1)
17527
17528   if test x"$xsi_shell" = xyes; then
17529   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17530 func_dirname ()\
17531 {\
17532 \    case ${1} in\
17533 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17534 \      *  ) func_dirname_result="${3}" ;;\
17535 \    esac\
17536 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17537   && mv -f "$cfgfile.tmp" "$cfgfile" \
17538     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17539 test 0 -eq $? || _lt_function_replace_fail=:
17540
17541
17542   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17543 func_basename ()\
17544 {\
17545 \    func_basename_result="${1##*/}"\
17546 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17547   && mv -f "$cfgfile.tmp" "$cfgfile" \
17548     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17549 test 0 -eq $? || _lt_function_replace_fail=:
17550
17551
17552   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17553 func_dirname_and_basename ()\
17554 {\
17555 \    case ${1} in\
17556 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17557 \      *  ) func_dirname_result="${3}" ;;\
17558 \    esac\
17559 \    func_basename_result="${1##*/}"\
17560 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17561   && mv -f "$cfgfile.tmp" "$cfgfile" \
17562     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17563 test 0 -eq $? || _lt_function_replace_fail=:
17564
17565
17566   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17567 func_stripname ()\
17568 {\
17569 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17570 \    # positional parameters, so assign one to ordinary parameter first.\
17571 \    func_stripname_result=${3}\
17572 \    func_stripname_result=${func_stripname_result#"${1}"}\
17573 \    func_stripname_result=${func_stripname_result%"${2}"}\
17574 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17575   && mv -f "$cfgfile.tmp" "$cfgfile" \
17576     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17577 test 0 -eq $? || _lt_function_replace_fail=:
17578
17579
17580   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17581 func_split_long_opt ()\
17582 {\
17583 \    func_split_long_opt_name=${1%%=*}\
17584 \    func_split_long_opt_arg=${1#*=}\
17585 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17586   && mv -f "$cfgfile.tmp" "$cfgfile" \
17587     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17588 test 0 -eq $? || _lt_function_replace_fail=:
17589
17590
17591   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17592 func_split_short_opt ()\
17593 {\
17594 \    func_split_short_opt_arg=${1#??}\
17595 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17596 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17597   && mv -f "$cfgfile.tmp" "$cfgfile" \
17598     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17599 test 0 -eq $? || _lt_function_replace_fail=:
17600
17601
17602   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17603 func_lo2o ()\
17604 {\
17605 \    case ${1} in\
17606 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17607 \      *)    func_lo2o_result=${1} ;;\
17608 \    esac\
17609 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17610   && mv -f "$cfgfile.tmp" "$cfgfile" \
17611     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17612 test 0 -eq $? || _lt_function_replace_fail=:
17613
17614
17615   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17616 func_xform ()\
17617 {\
17618     func_xform_result=${1%.*}.lo\
17619 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17620   && mv -f "$cfgfile.tmp" "$cfgfile" \
17621     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17622 test 0 -eq $? || _lt_function_replace_fail=:
17623
17624
17625   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17626 func_arith ()\
17627 {\
17628     func_arith_result=$(( $* ))\
17629 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17630   && mv -f "$cfgfile.tmp" "$cfgfile" \
17631     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17632 test 0 -eq $? || _lt_function_replace_fail=:
17633
17634
17635   sed -e '/^func_len ()$/,/^} # func_len /c\
17636 func_len ()\
17637 {\
17638     func_len_result=${#1}\
17639 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17640   && mv -f "$cfgfile.tmp" "$cfgfile" \
17641     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17642 test 0 -eq $? || _lt_function_replace_fail=:
17643
17644 fi
17645
17646 if test x"$lt_shell_append" = xyes; then
17647   sed -e '/^func_append ()$/,/^} # func_append /c\
17648 func_append ()\
17649 {\
17650     eval "${1}+=\\${2}"\
17651 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17652   && mv -f "$cfgfile.tmp" "$cfgfile" \
17653     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17654 test 0 -eq $? || _lt_function_replace_fail=:
17655
17656
17657   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17658 func_append_quoted ()\
17659 {\
17660 \    func_quote_for_eval "${2}"\
17661 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17662 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17663   && mv -f "$cfgfile.tmp" "$cfgfile" \
17664     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17665 test 0 -eq $? || _lt_function_replace_fail=:
17666
17667
17668   # Save a `func_append' function call where possible by direct use of '+='
17669   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17670     && mv -f "$cfgfile.tmp" "$cfgfile" \
17671       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17672   test 0 -eq $? || _lt_function_replace_fail=:
17673 else
17674   # Save a `func_append' function call even when '+=' is not available
17675   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17676     && mv -f "$cfgfile.tmp" "$cfgfile" \
17677       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17678   test 0 -eq $? || _lt_function_replace_fail=:
17679 fi
17680
17681 if test x"$_lt_function_replace_fail" = x":"; then
17682   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17683 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17684 fi
17685
17686
17687    mv -f "$cfgfile" "$ofile" ||
17688     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17689   chmod +x "$ofile"
17690
17691
17692     cat <<_LT_EOF >> "$ofile"
17693
17694 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17695
17696 # The linker used to build libraries.
17697 LD=$lt_LD_CXX
17698
17699 # How to create reloadable object files.
17700 reload_flag=$lt_reload_flag_CXX
17701 reload_cmds=$lt_reload_cmds_CXX
17702
17703 # Commands used to build an old-style archive.
17704 old_archive_cmds=$lt_old_archive_cmds_CXX
17705
17706 # A language specific compiler.
17707 CC=$lt_compiler_CXX
17708
17709 # Is the compiler the GNU compiler?
17710 with_gcc=$GCC_CXX
17711
17712 # Compiler flag to turn off builtin functions.
17713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17714
17715 # Additional compiler flags for building library objects.
17716 pic_flag=$lt_lt_prog_compiler_pic_CXX
17717
17718 # How to pass a linker flag through the compiler.
17719 wl=$lt_lt_prog_compiler_wl_CXX
17720
17721 # Compiler flag to prevent dynamic linking.
17722 link_static_flag=$lt_lt_prog_compiler_static_CXX
17723
17724 # Does compiler simultaneously support -c and -o options?
17725 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17726
17727 # Whether or not to add -lc for building shared libraries.
17728 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17729
17730 # Whether or not to disallow shared libs when runtime libs are static.
17731 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17732
17733 # Compiler flag to allow reflexive dlopens.
17734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17735
17736 # Compiler flag to generate shared objects directly from archives.
17737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17738
17739 # Whether the compiler copes with passing no objects directly.
17740 compiler_needs_object=$lt_compiler_needs_object_CXX
17741
17742 # Create an old-style archive from a shared archive.
17743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17744
17745 # Create a temporary old-style archive to link instead of a shared archive.
17746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17747
17748 # Commands used to build a shared archive.
17749 archive_cmds=$lt_archive_cmds_CXX
17750 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17751
17752 # Commands used to build a loadable module if different from building
17753 # a shared archive.
17754 module_cmds=$lt_module_cmds_CXX
17755 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17756
17757 # Whether we are building with GNU ld or not.
17758 with_gnu_ld=$lt_with_gnu_ld_CXX
17759
17760 # Flag that allows shared libraries with undefined symbols to be built.
17761 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17762
17763 # Flag that enforces no undefined symbols.
17764 no_undefined_flag=$lt_no_undefined_flag_CXX
17765
17766 # Flag to hardcode \$libdir into a binary during linking.
17767 # This must work even if \$libdir does not exist
17768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17769
17770 # Whether we need a single "-rpath" flag with a separated argument.
17771 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17772
17773 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17774 # DIR into the resulting binary.
17775 hardcode_direct=$hardcode_direct_CXX
17776
17777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17778 # DIR into the resulting binary and the resulting library dependency is
17779 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17780 # library is relocated.
17781 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17782
17783 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17784 # into the resulting binary.
17785 hardcode_minus_L=$hardcode_minus_L_CXX
17786
17787 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17788 # into the resulting binary.
17789 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17790
17791 # Set to "yes" if building a shared library automatically hardcodes DIR
17792 # into the library and all subsequent libraries and executables linked
17793 # against it.
17794 hardcode_automatic=$hardcode_automatic_CXX
17795
17796 # Set to yes if linker adds runtime paths of dependent libraries
17797 # to runtime path list.
17798 inherit_rpath=$inherit_rpath_CXX
17799
17800 # Whether libtool must link a program against all its dependency libraries.
17801 link_all_deplibs=$link_all_deplibs_CXX
17802
17803 # Set to "yes" if exported symbols are required.
17804 always_export_symbols=$always_export_symbols_CXX
17805
17806 # The commands to list exported symbols.
17807 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17808
17809 # Symbols that should not be listed in the preloaded symbols.
17810 exclude_expsyms=$lt_exclude_expsyms_CXX
17811
17812 # Symbols that must always be exported.
17813 include_expsyms=$lt_include_expsyms_CXX
17814
17815 # Commands necessary for linking programs (against libraries) with templates.
17816 prelink_cmds=$lt_prelink_cmds_CXX
17817
17818 # Commands necessary for finishing linking programs.
17819 postlink_cmds=$lt_postlink_cmds_CXX
17820
17821 # Specify filename containing input files.
17822 file_list_spec=$lt_file_list_spec_CXX
17823
17824 # How to hardcode a shared library path into an executable.
17825 hardcode_action=$hardcode_action_CXX
17826
17827 # The directories searched by this compiler when creating a shared library.
17828 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17829
17830 # Dependencies to place before and after the objects being linked to
17831 # create a shared library.
17832 predep_objects=$lt_predep_objects_CXX
17833 postdep_objects=$lt_postdep_objects_CXX
17834 predeps=$lt_predeps_CXX
17835 postdeps=$lt_postdeps_CXX
17836
17837 # The library search path used internally by the compiler when linking
17838 # a shared library.
17839 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17840
17841 # ### END LIBTOOL TAG CONFIG: CXX
17842 _LT_EOF
17843
17844  ;;
17845
17846   esac
17847 done # for ac_tag
17848
17849
17850 as_fn_exit 0
17851 _ACEOF
17852 ac_clean_files=$ac_clean_files_save
17853
17854 test $ac_write_fail = 0 ||
17855   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17856
17857
17858 # configure is writing to config.log, and then calls config.status.
17859 # config.status does its own redirection, appending to config.log.
17860 # Unfortunately, on DOS this fails, as config.log is still kept open
17861 # by configure, so config.status won't be able to write to it; its
17862 # output is simply discarded.  So we exec the FD to /dev/null,
17863 # effectively closing config.log, so it can be properly (re)opened and
17864 # appended to by config.status.  When coming back to configure, we
17865 # need to make the FD available again.
17866 if test "$no_create" != yes; then
17867   ac_cs_success=:
17868   ac_config_status_args=
17869   test "$silent" = yes &&
17870     ac_config_status_args="$ac_config_status_args --quiet"
17871   exec 5>/dev/null
17872   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17873   exec 5>>config.log
17874   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17875   # would make configure fail if this is the last instruction.
17876   $ac_cs_success || as_fn_exit 1
17877 fi
17878 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17879   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17880 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17881 fi
17882