Improve libunwind detection.
[platform/upstream/glog.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for glog 0.3.0.
4 #
5 # Report bugs to <opensource@google.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='glog'
730 PACKAGE_TARNAME='glog'
731 PACKAGE_VERSION='0.3.0'
732 PACKAGE_STRING='glog 0.3.0'
733 PACKAGE_BUGREPORT='opensource@google.com'
734
735 ac_unique_file="README"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 CPP
848 CXX
849 CXXFLAGS
850 ac_ct_CXX
851 CXXDEPMODE
852 am__fastdepCXX_TRUE
853 am__fastdepCXX_FALSE
854 GCC_TRUE
855 GCC_FALSE
856 build
857 build_cpu
858 build_vendor
859 build_os
860 host
861 host_cpu
862 host_vendor
863 host_os
864 SED
865 GREP
866 EGREP
867 LN_S
868 ECHO
869 AR
870 RANLIB
871 DSYMUTIL
872 NMEDIT
873 CXXCPP
874 F77
875 FFLAGS
876 ac_ct_F77
877 LIBTOOL
878 LIBTOOL_DEPS
879 ENABLE_FRAME_POINTERS_TRUE
880 ENABLE_FRAME_POINTERS_FALSE
881 X86_64_TRUE
882 X86_64_FALSE
883 acx_pthread_config
884 PTHREAD_CC
885 PTHREAD_LIBS
886 PTHREAD_CFLAGS
887 GTEST_CONFIG
888 GMOCK_CONFIG
889 HAVE_GMOCK_TRUE
890 HAVE_GMOCK_FALSE
891 UNWIND_LIBS
892 ac_google_start_namespace
893 ac_google_end_namespace
894 ac_google_namespace
895 ac_cv_cxx_using_operator
896 ac_cv___attribute___noreturn
897 ac_cv___attribute___printf_4_5
898 ac_cv_have___builtin_expect
899 ac_cv_have_stdint_h
900 ac_cv_have_systypes_h
901 ac_cv_have_inttypes_h
902 ac_cv_have_unistd_h
903 ac_cv_have_uint16_t
904 ac_cv_have_u_int16_t
905 ac_cv_have___uint16
906 ac_cv_have_libgflags
907 GFLAGS_CFLAGS
908 GTEST_CFLAGS
909 GMOCK_CFLAGS
910 GFLAGS_LIBS
911 GTEST_LIBS
912 GMOCK_LIBS
913 LIBOBJS
914 LTLIBOBJS'
915 ac_subst_files=''
916       ac_precious_vars='build_alias
917 host_alias
918 target_alias
919 CC
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
924 CPP
925 CXX
926 CXXFLAGS
927 CCC
928 CXXCPP
929 F77
930 FFLAGS'
931
932
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
938 cache_file=/dev/null
939 exec_prefix=NONE
940 no_create=
941 no_recursion=
942 prefix=NONE
943 program_prefix=NONE
944 program_suffix=NONE
945 program_transform_name=s,x,x,
946 silent=
947 site=
948 srcdir=
949 verbose=
950 x_includes=NONE
951 x_libraries=NONE
952
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
971 htmldir='${docdir}'
972 dvidir='${docdir}'
973 pdfdir='${docdir}'
974 psdir='${docdir}'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
978
979 ac_prev=
980 ac_dashdash=
981 for ac_option
982 do
983   # If the previous option needs an argument, assign it.
984   if test -n "$ac_prev"; then
985     eval $ac_prev=\$ac_option
986     ac_prev=
987     continue
988   fi
989
990   case $ac_option in
991   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992   *)    ac_optarg=yes ;;
993   esac
994
995   # Accept the important Cygnus configure options, so we can diagnose typos.
996
997   case $ac_dashdash$ac_option in
998   --)
999     ac_dashdash=yes ;;
1000
1001   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002     ac_prev=bindir ;;
1003   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004     bindir=$ac_optarg ;;
1005
1006   -build | --build | --buil | --bui | --bu)
1007     ac_prev=build_alias ;;
1008   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009     build_alias=$ac_optarg ;;
1010
1011   -cache-file | --cache-file | --cache-fil | --cache-fi \
1012   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013     ac_prev=cache_file ;;
1014   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016     cache_file=$ac_optarg ;;
1017
1018   --config-cache | -C)
1019     cache_file=config.cache ;;
1020
1021   -datadir | --datadir | --datadi | --datad)
1022     ac_prev=datadir ;;
1023   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024     datadir=$ac_optarg ;;
1025
1026   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027   | --dataroo | --dataro | --datar)
1028     ac_prev=datarootdir ;;
1029   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031     datarootdir=$ac_optarg ;;
1032
1033   -disable-* | --disable-*)
1034     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035     # Reject names that are not valid shell variable names.
1036     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038    { (exit 1); exit 1; }; }
1039     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040     eval enable_$ac_feature=no ;;
1041
1042   -docdir | --docdir | --docdi | --doc | --do)
1043     ac_prev=docdir ;;
1044   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045     docdir=$ac_optarg ;;
1046
1047   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048     ac_prev=dvidir ;;
1049   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050     dvidir=$ac_optarg ;;
1051
1052   -enable-* | --enable-*)
1053     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057    { (exit 1); exit 1; }; }
1058     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059     eval enable_$ac_feature=\$ac_optarg ;;
1060
1061   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063   | --exec | --exe | --ex)
1064     ac_prev=exec_prefix ;;
1065   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067   | --exec=* | --exe=* | --ex=*)
1068     exec_prefix=$ac_optarg ;;
1069
1070   -gas | --gas | --ga | --g)
1071     # Obsolete; use --with-gas.
1072     with_gas=yes ;;
1073
1074   -help | --help | --hel | --he | -h)
1075     ac_init_help=long ;;
1076   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077     ac_init_help=recursive ;;
1078   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079     ac_init_help=short ;;
1080
1081   -host | --host | --hos | --ho)
1082     ac_prev=host_alias ;;
1083   -host=* | --host=* | --hos=* | --ho=*)
1084     host_alias=$ac_optarg ;;
1085
1086   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087     ac_prev=htmldir ;;
1088   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089   | --ht=*)
1090     htmldir=$ac_optarg ;;
1091
1092   -includedir | --includedir | --includedi | --included | --include \
1093   | --includ | --inclu | --incl | --inc)
1094     ac_prev=includedir ;;
1095   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096   | --includ=* | --inclu=* | --incl=* | --inc=*)
1097     includedir=$ac_optarg ;;
1098
1099   -infodir | --infodir | --infodi | --infod | --info | --inf)
1100     ac_prev=infodir ;;
1101   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102     infodir=$ac_optarg ;;
1103
1104   -libdir | --libdir | --libdi | --libd)
1105     ac_prev=libdir ;;
1106   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107     libdir=$ac_optarg ;;
1108
1109   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110   | --libexe | --libex | --libe)
1111     ac_prev=libexecdir ;;
1112   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113   | --libexe=* | --libex=* | --libe=*)
1114     libexecdir=$ac_optarg ;;
1115
1116   -localedir | --localedir | --localedi | --localed | --locale)
1117     ac_prev=localedir ;;
1118   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119     localedir=$ac_optarg ;;
1120
1121   -localstatedir | --localstatedir | --localstatedi | --localstated \
1122   | --localstate | --localstat | --localsta | --localst | --locals)
1123     ac_prev=localstatedir ;;
1124   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126     localstatedir=$ac_optarg ;;
1127
1128   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129     ac_prev=mandir ;;
1130   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131     mandir=$ac_optarg ;;
1132
1133   -nfp | --nfp | --nf)
1134     # Obsolete; use --without-fp.
1135     with_fp=no ;;
1136
1137   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138   | --no-cr | --no-c | -n)
1139     no_create=yes ;;
1140
1141   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143     no_recursion=yes ;;
1144
1145   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147   | --oldin | --oldi | --old | --ol | --o)
1148     ac_prev=oldincludedir ;;
1149   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152     oldincludedir=$ac_optarg ;;
1153
1154   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155     ac_prev=prefix ;;
1156   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157     prefix=$ac_optarg ;;
1158
1159   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160   | --program-pre | --program-pr | --program-p)
1161     ac_prev=program_prefix ;;
1162   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164     program_prefix=$ac_optarg ;;
1165
1166   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167   | --program-suf | --program-su | --program-s)
1168     ac_prev=program_suffix ;;
1169   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171     program_suffix=$ac_optarg ;;
1172
1173   -program-transform-name | --program-transform-name \
1174   | --program-transform-nam | --program-transform-na \
1175   | --program-transform-n | --program-transform- \
1176   | --program-transform | --program-transfor \
1177   | --program-transfo | --program-transf \
1178   | --program-trans | --program-tran \
1179   | --progr-tra | --program-tr | --program-t)
1180     ac_prev=program_transform_name ;;
1181   -program-transform-name=* | --program-transform-name=* \
1182   | --program-transform-nam=* | --program-transform-na=* \
1183   | --program-transform-n=* | --program-transform-=* \
1184   | --program-transform=* | --program-transfor=* \
1185   | --program-transfo=* | --program-transf=* \
1186   | --program-trans=* | --program-tran=* \
1187   | --progr-tra=* | --program-tr=* | --program-t=*)
1188     program_transform_name=$ac_optarg ;;
1189
1190   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191     ac_prev=pdfdir ;;
1192   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193     pdfdir=$ac_optarg ;;
1194
1195   -psdir | --psdir | --psdi | --psd | --ps)
1196     ac_prev=psdir ;;
1197   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198     psdir=$ac_optarg ;;
1199
1200   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201   | -silent | --silent | --silen | --sile | --sil)
1202     silent=yes ;;
1203
1204   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205     ac_prev=sbindir ;;
1206   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207   | --sbi=* | --sb=*)
1208     sbindir=$ac_optarg ;;
1209
1210   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212   | --sharedst | --shareds | --shared | --share | --shar \
1213   | --sha | --sh)
1214     ac_prev=sharedstatedir ;;
1215   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218   | --sha=* | --sh=*)
1219     sharedstatedir=$ac_optarg ;;
1220
1221   -site | --site | --sit)
1222     ac_prev=site ;;
1223   -site=* | --site=* | --sit=*)
1224     site=$ac_optarg ;;
1225
1226   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227     ac_prev=srcdir ;;
1228   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229     srcdir=$ac_optarg ;;
1230
1231   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232   | --syscon | --sysco | --sysc | --sys | --sy)
1233     ac_prev=sysconfdir ;;
1234   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236     sysconfdir=$ac_optarg ;;
1237
1238   -target | --target | --targe | --targ | --tar | --ta | --t)
1239     ac_prev=target_alias ;;
1240   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241     target_alias=$ac_optarg ;;
1242
1243   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244     verbose=yes ;;
1245
1246   -version | --version | --versio | --versi | --vers | -V)
1247     ac_init_version=: ;;
1248
1249   -with-* | --with-*)
1250     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253       { echo "$as_me: error: invalid package name: $ac_package" >&2
1254    { (exit 1); exit 1; }; }
1255     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256     eval with_$ac_package=\$ac_optarg ;;
1257
1258   -without-* | --without-*)
1259     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260     # Reject names that are not valid shell variable names.
1261     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262       { echo "$as_me: error: invalid package name: $ac_package" >&2
1263    { (exit 1); exit 1; }; }
1264     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1265     eval with_$ac_package=no ;;
1266
1267   --x)
1268     # Obsolete; use --with-x.
1269     with_x=yes ;;
1270
1271   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272   | --x-incl | --x-inc | --x-in | --x-i)
1273     ac_prev=x_includes ;;
1274   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276     x_includes=$ac_optarg ;;
1277
1278   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280     ac_prev=x_libraries ;;
1281   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283     x_libraries=$ac_optarg ;;
1284
1285   -*) { echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287    { (exit 1); exit 1; }; }
1288     ;;
1289
1290   *=*)
1291     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1294       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295    { (exit 1); exit 1; }; }
1296     eval $ac_envvar=\$ac_optarg
1297     export $ac_envvar ;;
1298
1299   *)
1300     # FIXME: should be removed in autoconf 3.0.
1301     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1305     ;;
1306
1307   esac
1308 done
1309
1310 if test -n "$ac_prev"; then
1311   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312   { echo "$as_me: error: missing argument to $ac_option" >&2
1313    { (exit 1); exit 1; }; }
1314 fi
1315
1316 # Be sure to have absolute directory names.
1317 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318                 datadir sysconfdir sharedstatedir localstatedir includedir \
1319                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320                 libdir localedir mandir
1321 do
1322   eval ac_val=\$$ac_var
1323   case $ac_val in
1324     [\\/$]* | ?:[\\/]* )  continue;;
1325     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326   esac
1327   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328    { (exit 1); exit 1; }; }
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340   if test "x$build_alias" = x; then
1341     cross_compiling=maybe
1342     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343     If a cross compiler is detected then cross compile mode will be used." >&2
1344   elif test "x$build_alias" != "x$host_alias"; then
1345     cross_compiling=yes
1346   fi
1347 fi
1348
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358   { echo "$as_me: error: Working directory cannot be determined" >&2
1359    { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361   { echo "$as_me: error: pwd does not report name of working directory" >&2
1362    { (exit 1); exit 1; }; }
1363
1364
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367   ac_srcdir_defaulted=yes
1368   # Try the directory containing this script, then the parent directory.
1369   ac_confdir=`$as_dirname -- "$0" ||
1370 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371          X"$0" : 'X\(//\)[^/]' \| \
1372          X"$0" : 'X\(//\)$' \| \
1373          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1374 echo X"$0" |
1375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376             s//\1/
1377             q
1378           }
1379           /^X\(\/\/\)[^/].*/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\/\)$/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\).*/{
1388             s//\1/
1389             q
1390           }
1391           s/.*/./; q'`
1392   srcdir=$ac_confdir
1393   if test ! -r "$srcdir/$ac_unique_file"; then
1394     srcdir=..
1395   fi
1396 else
1397   ac_srcdir_defaulted=no
1398 fi
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402    { (exit 1); exit 1; }; }
1403 fi
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1407    { (exit 1); exit 1; }; }
1408         pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411   srcdir=.
1412 fi
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 for ac_var in $ac_precious_vars; do
1420   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421   eval ac_env_${ac_var}_value=\$${ac_var}
1422   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 done
1425
1426 #
1427 # Report the --help message.
1428 #
1429 if test "$ac_init_help" = "long"; then
1430   # Omit some internal or obsolete options to make the list less imposing.
1431   # This message is too long to be a string in the A/UX 3.1 sh.
1432   cat <<_ACEOF
1433 \`configure' configures glog 0.3.0 to adapt to many kinds of systems.
1434
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE.  See below for descriptions of some of the useful variables.
1439
1440 Defaults for the options are specified in brackets.
1441
1442 Configuration:
1443   -h, --help              display this help and exit
1444       --help=short        display options specific to this package
1445       --help=recursive    display the short help of all the included packages
1446   -V, --version           display version information and exit
1447   -q, --quiet, --silent   do not print \`checking...' messages
1448       --cache-file=FILE   cache test results in FILE [disabled]
1449   -C, --config-cache      alias for \`--cache-file=config.cache'
1450   -n, --no-create         do not create output files
1451       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1452
1453 Installation directories:
1454   --prefix=PREFIX         install architecture-independent files in PREFIX
1455                           [$ac_default_prefix]
1456   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1457                           [PREFIX]
1458
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1463
1464 For better control, use the options below.
1465
1466 Fine tuning of the installation directories:
1467   --bindir=DIR           user executables [EPREFIX/bin]
1468   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1469   --libexecdir=DIR       program executables [EPREFIX/libexec]
1470   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1471   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1472   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1473   --libdir=DIR           object code libraries [EPREFIX/lib]
1474   --includedir=DIR       C header files [PREFIX/include]
1475   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1476   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1477   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1478   --infodir=DIR          info documentation [DATAROOTDIR/info]
1479   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1480   --mandir=DIR           man documentation [DATAROOTDIR/man]
1481   --docdir=DIR           documentation root [DATAROOTDIR/doc/glog]
1482   --htmldir=DIR          html documentation [DOCDIR]
1483   --dvidir=DIR           dvi documentation [DOCDIR]
1484   --pdfdir=DIR           pdf documentation [DOCDIR]
1485   --psdir=DIR            ps documentation [DOCDIR]
1486 _ACEOF
1487
1488   cat <<\_ACEOF
1489
1490 Program names:
1491   --program-prefix=PREFIX            prepend PREFIX to installed program names
1492   --program-suffix=SUFFIX            append SUFFIX to installed program names
1493   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1494
1495 System types:
1496   --build=BUILD     configure for building on BUILD [guessed]
1497   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502   case $ac_init_help in
1503      short | recursive ) echo "Configuration of glog 0.3.0:";;
1504    esac
1505   cat <<\_ACEOF
1506
1507 Optional Features:
1508   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510   --disable-dependency-tracking  speeds up one-time build
1511   --enable-dependency-tracking   do not reject slow dependency extractors
1512   --enable-shared[=PKGS]  build shared libraries [default=yes]
1513   --enable-static[=PKGS]  build static libraries [default=yes]
1514   --enable-fast-install[=PKGS]
1515                           optimize for fast installation [default=yes]
1516   --disable-libtool-lock  avoid locking (might break parallel builds)
1517   --enable-frame-pointers On x86_64 systems, compile with
1518                           -fno-omit-frame-pointer (see INSTALL)
1519   --enable-namespace=FOO to define these Google
1520                              classes in the FOO namespace. --disable-namespace
1521                              to define them in the global namespace. Default
1522                              is to define them in namespace google.
1523
1524 Optional Packages:
1525   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1528   --with-pic              try to use only PIC/non-PIC objects [default=use
1529                           both]
1530   --with-tags[=TAGS]      include additional configurations [automatic]
1531                           --with-gflags=GFLAGS_DIR
1532
1533 Some influential environment variables:
1534   CC          C compiler command
1535   CFLAGS      C compiler flags
1536   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1537               nonstandard directory <lib dir>
1538   LIBS        libraries to pass to the linker, e.g. -l<library>
1539   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1540               you have headers in a nonstandard directory <include dir>
1541   CPP         C preprocessor
1542   CXX         C++ compiler command
1543   CXXFLAGS    C++ compiler flags
1544   CXXCPP      C++ preprocessor
1545   F77         Fortran 77 compiler command
1546   FFLAGS      Fortran 77 compiler flags
1547
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1550
1551 Report bugs to <opensource@google.com>.
1552 _ACEOF
1553 ac_status=$?
1554 fi
1555
1556 if test "$ac_init_help" = "recursive"; then
1557   # If there are subdirs, report their specific --help.
1558   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559     test -d "$ac_dir" || continue
1560     ac_builddir=.
1561
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *)
1565   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1566   # A ".." for each directory in $ac_dir_suffix.
1567   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1568   case $ac_top_builddir_sub in
1569   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571   esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1577
1578 case $srcdir in
1579   .)  # We are building in place.
1580     ac_srcdir=.
1581     ac_top_srcdir=$ac_top_builddir_sub
1582     ac_abs_top_srcdir=$ac_pwd ;;
1583   [\\/]* | ?:[\\/]* )  # Absolute name.
1584     ac_srcdir=$srcdir$ac_dir_suffix;
1585     ac_top_srcdir=$srcdir
1586     ac_abs_top_srcdir=$srcdir ;;
1587   *) # Relative name.
1588     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589     ac_top_srcdir=$ac_top_build_prefix$srcdir
1590     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594     cd "$ac_dir" || { ac_status=$?; continue; }
1595     # Check for guested configure.
1596     if test -f "$ac_srcdir/configure.gnu"; then
1597       echo &&
1598       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599     elif test -f "$ac_srcdir/configure"; then
1600       echo &&
1601       $SHELL "$ac_srcdir/configure" --help=recursive
1602     else
1603       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604     fi || ac_status=$?
1605     cd "$ac_pwd" || { ac_status=$?; break; }
1606   done
1607 fi
1608
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611   cat <<\_ACEOF
1612 glog configure 0.3.0
1613 generated by GNU Autoconf 2.61
1614
1615 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1616 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619 _ACEOF
1620   exit
1621 fi
1622 cat >config.log <<_ACEOF
1623 This file contains any messages produced by compilers while
1624 running configure, to aid debugging if configure makes a mistake.
1625
1626 It was created by glog $as_me 0.3.0, which was
1627 generated by GNU Autoconf 2.61.  Invocation command line was
1628
1629   $ $0 $@
1630
1631 _ACEOF
1632 exec 5>>config.log
1633 {
1634 cat <<_ASUNAME
1635 ## --------- ##
1636 ## Platform. ##
1637 ## --------- ##
1638
1639 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1640 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1641 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1642 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1643 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1644
1645 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1646 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1647
1648 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1649 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1650 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1651 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1652 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1653 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1654 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1655
1656 _ASUNAME
1657
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661   IFS=$as_save_IFS
1662   test -z "$as_dir" && as_dir=.
1663   echo "PATH: $as_dir"
1664 done
1665 IFS=$as_save_IFS
1666
1667 } >&5
1668
1669 cat >&5 <<_ACEOF
1670
1671
1672 ## ----------- ##
1673 ## Core tests. ##
1674 ## ----------- ##
1675
1676 _ACEOF
1677
1678
1679 # Keep a trace of the command line.
1680 # Strip out --no-create and --no-recursion so they do not pile up.
1681 # Strip out --silent because we don't want to record it for future runs.
1682 # Also quote any args containing shell meta-characters.
1683 # Make two passes to allow for proper duplicate-argument suppression.
1684 ac_configure_args=
1685 ac_configure_args0=
1686 ac_configure_args1=
1687 ac_must_keep_next=false
1688 for ac_pass in 1 2
1689 do
1690   for ac_arg
1691   do
1692     case $ac_arg in
1693     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1694     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1695     | -silent | --silent | --silen | --sile | --sil)
1696       continue ;;
1697     *\'*)
1698       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1699     esac
1700     case $ac_pass in
1701     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1702     2)
1703       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1704       if test $ac_must_keep_next = true; then
1705         ac_must_keep_next=false # Got value, back to normal.
1706       else
1707         case $ac_arg in
1708           *=* | --config-cache | -C | -disable-* | --disable-* \
1709           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1710           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1711           | -with-* | --with-* | -without-* | --without-* | --x)
1712             case "$ac_configure_args0 " in
1713               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1714             esac
1715             ;;
1716           -* ) ac_must_keep_next=true ;;
1717         esac
1718       fi
1719       ac_configure_args="$ac_configure_args '$ac_arg'"
1720       ;;
1721     esac
1722   done
1723 done
1724 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1725 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1726
1727 # When interrupted or exit'd, cleanup temporary files, and complete
1728 # config.log.  We remove comments because anyway the quotes in there
1729 # would cause problems or look ugly.
1730 # WARNING: Use '\'' to represent an apostrophe within the trap.
1731 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1732 trap 'exit_status=$?
1733   # Save into config.log some information that might help in debugging.
1734   {
1735     echo
1736
1737     cat <<\_ASBOX
1738 ## ---------------- ##
1739 ## Cache variables. ##
1740 ## ---------------- ##
1741 _ASBOX
1742     echo
1743     # The following way of writing the cache mishandles newlines in values,
1744 (
1745   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1746     eval ac_val=\$$ac_var
1747     case $ac_val in #(
1748     *${as_nl}*)
1749       case $ac_var in #(
1750       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1751 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1752       esac
1753       case $ac_var in #(
1754       _ | IFS | as_nl) ;; #(
1755       *) $as_unset $ac_var ;;
1756       esac ;;
1757     esac
1758   done
1759   (set) 2>&1 |
1760     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1761     *${as_nl}ac_space=\ *)
1762       sed -n \
1763         "s/'\''/'\''\\\\'\'''\''/g;
1764           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1765       ;; #(
1766     *)
1767       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1768       ;;
1769     esac |
1770     sort
1771 )
1772     echo
1773
1774     cat <<\_ASBOX
1775 ## ----------------- ##
1776 ## Output variables. ##
1777 ## ----------------- ##
1778 _ASBOX
1779     echo
1780     for ac_var in $ac_subst_vars
1781     do
1782       eval ac_val=\$$ac_var
1783       case $ac_val in
1784       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785       esac
1786       echo "$ac_var='\''$ac_val'\''"
1787     done | sort
1788     echo
1789
1790     if test -n "$ac_subst_files"; then
1791       cat <<\_ASBOX
1792 ## ------------------- ##
1793 ## File substitutions. ##
1794 ## ------------------- ##
1795 _ASBOX
1796       echo
1797       for ac_var in $ac_subst_files
1798       do
1799         eval ac_val=\$$ac_var
1800         case $ac_val in
1801         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802         esac
1803         echo "$ac_var='\''$ac_val'\''"
1804       done | sort
1805       echo
1806     fi
1807
1808     if test -s confdefs.h; then
1809       cat <<\_ASBOX
1810 ## ----------- ##
1811 ## confdefs.h. ##
1812 ## ----------- ##
1813 _ASBOX
1814       echo
1815       cat confdefs.h
1816       echo
1817     fi
1818     test "$ac_signal" != 0 &&
1819       echo "$as_me: caught signal $ac_signal"
1820     echo "$as_me: exit $exit_status"
1821   } >&5
1822   rm -f core *.core core.conftest.* &&
1823     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1824     exit $exit_status
1825 ' 0
1826 for ac_signal in 1 2 13 15; do
1827   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1828 done
1829 ac_signal=0
1830
1831 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1832 rm -f -r conftest* confdefs.h
1833
1834 # Predefined preprocessor variables.
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_NAME "$PACKAGE_NAME"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1843 _ACEOF
1844
1845
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1848 _ACEOF
1849
1850
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_STRING "$PACKAGE_STRING"
1853 _ACEOF
1854
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1858 _ACEOF
1859
1860
1861 # Let the site file select an alternate cache file if it wants to.
1862 # Prefer explicitly selected file to automatically selected ones.
1863 if test -n "$CONFIG_SITE"; then
1864   set x "$CONFIG_SITE"
1865 elif test "x$prefix" != xNONE; then
1866   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1867 else
1868   set x "$ac_default_prefix/share/config.site" \
1869         "$ac_default_prefix/etc/config.site"
1870 fi
1871 shift
1872 for ac_site_file
1873 do
1874   if test -r "$ac_site_file"; then
1875     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1876 echo "$as_me: loading site script $ac_site_file" >&6;}
1877     sed 's/^/| /' "$ac_site_file" >&5
1878     . "$ac_site_file"
1879   fi
1880 done
1881
1882 if test -r "$cache_file"; then
1883   # Some versions of bash will fail to source /dev/null (special
1884   # files actually), so we avoid doing that.
1885   if test -f "$cache_file"; then
1886     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1887 echo "$as_me: loading cache $cache_file" >&6;}
1888     case $cache_file in
1889       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1890       *)                      . "./$cache_file";;
1891     esac
1892   fi
1893 else
1894   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1895 echo "$as_me: creating cache $cache_file" >&6;}
1896   >$cache_file
1897 fi
1898
1899 # Check that the precious variables saved in the cache have kept the same
1900 # value.
1901 ac_cache_corrupted=false
1902 for ac_var in $ac_precious_vars; do
1903   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1904   eval ac_new_set=\$ac_env_${ac_var}_set
1905   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1906   eval ac_new_val=\$ac_env_${ac_var}_value
1907   case $ac_old_set,$ac_new_set in
1908     set,)
1909       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1910 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1911       ac_cache_corrupted=: ;;
1912     ,set)
1913       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1915       ac_cache_corrupted=: ;;
1916     ,);;
1917     *)
1918       if test "x$ac_old_val" != "x$ac_new_val"; then
1919         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1920 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1921         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1922 echo "$as_me:   former value:  $ac_old_val" >&2;}
1923         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1924 echo "$as_me:   current value: $ac_new_val" >&2;}
1925         ac_cache_corrupted=:
1926       fi;;
1927   esac
1928   # Pass precious variables to config.status.
1929   if test "$ac_new_set" = set; then
1930     case $ac_new_val in
1931     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1932     *) ac_arg=$ac_var=$ac_new_val ;;
1933     esac
1934     case " $ac_configure_args " in
1935       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1936       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1937     esac
1938   fi
1939 done
1940 if $ac_cache_corrupted; then
1941   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1942 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1943   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1944 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972 ac_ext=c
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1977
1978
1979 # The argument here is just something that should be in the current directory
1980 # (for sanity checking)
1981
1982 am__api_version='1.10'
1983
1984 ac_aux_dir=
1985 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1986   if test -f "$ac_dir/install-sh"; then
1987     ac_aux_dir=$ac_dir
1988     ac_install_sh="$ac_aux_dir/install-sh -c"
1989     break
1990   elif test -f "$ac_dir/install.sh"; then
1991     ac_aux_dir=$ac_dir
1992     ac_install_sh="$ac_aux_dir/install.sh -c"
1993     break
1994   elif test -f "$ac_dir/shtool"; then
1995     ac_aux_dir=$ac_dir
1996     ac_install_sh="$ac_aux_dir/shtool install -c"
1997     break
1998   fi
1999 done
2000 if test -z "$ac_aux_dir"; then
2001   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2002 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2003    { (exit 1); exit 1; }; }
2004 fi
2005
2006 # These three variables are undocumented and unsupported,
2007 # and are intended to be withdrawn in a future Autoconf release.
2008 # They can cause serious problems if a builder's source tree is in a directory
2009 # whose full name contains unusual characters.
2010 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2011 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2012 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2013
2014
2015 # Find a good install program.  We prefer a C program (faster),
2016 # so one script is as good as another.  But avoid the broken or
2017 # incompatible versions:
2018 # SysV /etc/install, /usr/sbin/install
2019 # SunOS /usr/etc/install
2020 # IRIX /sbin/install
2021 # AIX /bin/install
2022 # AmigaOS /C/install, which installs bootblocks on floppy discs
2023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2026 # OS/2's system install, which has a completely different semantic
2027 # ./install, which can be erroneously created by make from ./install.sh.
2028 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2029 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2030 if test -z "$INSTALL"; then
2031 if test "${ac_cv_path_install+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037   IFS=$as_save_IFS
2038   test -z "$as_dir" && as_dir=.
2039   # Account for people who put trailing slashes in PATH elements.
2040 case $as_dir/ in
2041   ./ | .// | /cC/* | \
2042   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2043   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2044   /usr/ucb/* ) ;;
2045   *)
2046     # OSF1 and SCO ODT 3.0 have their own names for install.
2047     # Don't use installbsd from OSF since it installs stuff as root
2048     # by default.
2049     for ac_prog in ginstall scoinst install; do
2050       for ac_exec_ext in '' $ac_executable_extensions; do
2051         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2052           if test $ac_prog = install &&
2053             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2054             # AIX install.  It has an incompatible calling convention.
2055             :
2056           elif test $ac_prog = install &&
2057             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2058             # program-specific install script used by HP pwplus--don't use.
2059             :
2060           else
2061             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2062             break 3
2063           fi
2064         fi
2065       done
2066     done
2067     ;;
2068 esac
2069 done
2070 IFS=$as_save_IFS
2071
2072
2073 fi
2074   if test "${ac_cv_path_install+set}" = set; then
2075     INSTALL=$ac_cv_path_install
2076   else
2077     # As a last resort, use the slow shell script.  Don't cache a
2078     # value for INSTALL within a source directory, because that will
2079     # break other packages using the cache if that directory is
2080     # removed, or if the value is a relative name.
2081     INSTALL=$ac_install_sh
2082   fi
2083 fi
2084 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2085 echo "${ECHO_T}$INSTALL" >&6; }
2086
2087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2088 # It thinks the first close brace ends the variable substitution.
2089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2090
2091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2092
2093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2094
2095 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2096 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2097 # Just in case
2098 sleep 1
2099 echo timestamp > conftest.file
2100 # Do `set' in a subshell so we don't clobber the current shell's
2101 # arguments.  Must try -L first in case configure is actually a
2102 # symlink; some systems play weird games with the mod time of symlinks
2103 # (eg FreeBSD returns the mod time of the symlink's containing
2104 # directory).
2105 if (
2106    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2107    if test "$*" = "X"; then
2108       # -L didn't work.
2109       set X `ls -t $srcdir/configure conftest.file`
2110    fi
2111    rm -f conftest.file
2112    if test "$*" != "X $srcdir/configure conftest.file" \
2113       && test "$*" != "X conftest.file $srcdir/configure"; then
2114
2115       # If neither matched, then we have a broken ls.  This can happen
2116       # if, for instance, CONFIG_SHELL is bash and it inherits a
2117       # broken ls alias from the environment.  This has actually
2118       # happened.  Such a system could not be considered "sane".
2119       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2120 alias in your environment" >&5
2121 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2122 alias in your environment" >&2;}
2123    { (exit 1); exit 1; }; }
2124    fi
2125
2126    test "$2" = conftest.file
2127    )
2128 then
2129    # Ok.
2130    :
2131 else
2132    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2133 Check your system clock" >&5
2134 echo "$as_me: error: newly created file is older than distributed files!
2135 Check your system clock" >&2;}
2136    { (exit 1); exit 1; }; }
2137 fi
2138 { echo "$as_me:$LINENO: result: yes" >&5
2139 echo "${ECHO_T}yes" >&6; }
2140 test "$program_prefix" != NONE &&
2141   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2142 # Use a double $ so make ignores it.
2143 test "$program_suffix" != NONE &&
2144   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2145 # Double any \ or $.  echo might interpret backslashes.
2146 # By default was `s,x,x', remove it if useless.
2147 cat <<\_ACEOF >conftest.sed
2148 s/[\\$]/&&/g;s/;s,x,x,$//
2149 _ACEOF
2150 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2151 rm -f conftest.sed
2152
2153 # expand $ac_aux_dir to an absolute path
2154 am_aux_dir=`cd $ac_aux_dir && pwd`
2155
2156 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2157 # Use eval to expand $SHELL
2158 if eval "$MISSING --run true"; then
2159   am_missing_run="$MISSING --run "
2160 else
2161   am_missing_run=
2162   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2163 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2164 fi
2165
2166 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2167 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2168 if test -z "$MKDIR_P"; then
2169   if test "${ac_cv_path_mkdir+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2174 do
2175   IFS=$as_save_IFS
2176   test -z "$as_dir" && as_dir=.
2177   for ac_prog in mkdir gmkdir; do
2178          for ac_exec_ext in '' $ac_executable_extensions; do
2179            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2180            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2181              'mkdir (GNU coreutils) '* | \
2182              'mkdir (coreutils) '* | \
2183              'mkdir (fileutils) '4.1*)
2184                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2185                break 3;;
2186            esac
2187          done
2188        done
2189 done
2190 IFS=$as_save_IFS
2191
2192 fi
2193
2194   if test "${ac_cv_path_mkdir+set}" = set; then
2195     MKDIR_P="$ac_cv_path_mkdir -p"
2196   else
2197     # As a last resort, use the slow shell script.  Don't cache a
2198     # value for MKDIR_P within a source directory, because that will
2199     # break other packages using the cache if that directory is
2200     # removed, or if the value is a relative name.
2201     test -d ./--version && rmdir ./--version
2202     MKDIR_P="$ac_install_sh -d"
2203   fi
2204 fi
2205 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2206 echo "${ECHO_T}$MKDIR_P" >&6; }
2207
2208 mkdir_p="$MKDIR_P"
2209 case $mkdir_p in
2210   [\\/$]* | ?:[\\/]*) ;;
2211   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2212 esac
2213
2214 for ac_prog in gawk mawk nawk awk
2215 do
2216   # Extract the first word of "$ac_prog", so it can be a program name with args.
2217 set dummy $ac_prog; ac_word=$2
2218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220 if test "${ac_cv_prog_AWK+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   if test -n "$AWK"; then
2224   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2228 do
2229   IFS=$as_save_IFS
2230   test -z "$as_dir" && as_dir=.
2231   for ac_exec_ext in '' $ac_executable_extensions; do
2232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233     ac_cv_prog_AWK="$ac_prog"
2234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235     break 2
2236   fi
2237 done
2238 done
2239 IFS=$as_save_IFS
2240
2241 fi
2242 fi
2243 AWK=$ac_cv_prog_AWK
2244 if test -n "$AWK"; then
2245   { echo "$as_me:$LINENO: result: $AWK" >&5
2246 echo "${ECHO_T}$AWK" >&6; }
2247 else
2248   { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2250 fi
2251
2252
2253   test -n "$AWK" && break
2254 done
2255
2256 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2257 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2258 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2259 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2260   echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262   cat >conftest.make <<\_ACEOF
2263 SHELL = /bin/sh
2264 all:
2265         @echo '@@@%%%=$(MAKE)=@@@%%%'
2266 _ACEOF
2267 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2268 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2269   *@@@%%%=?*=@@@%%%*)
2270     eval ac_cv_prog_make_${ac_make}_set=yes;;
2271   *)
2272     eval ac_cv_prog_make_${ac_make}_set=no;;
2273 esac
2274 rm -f conftest.make
2275 fi
2276 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2277   { echo "$as_me:$LINENO: result: yes" >&5
2278 echo "${ECHO_T}yes" >&6; }
2279   SET_MAKE=
2280 else
2281   { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2283   SET_MAKE="MAKE=${MAKE-make}"
2284 fi
2285
2286 rm -rf .tst 2>/dev/null
2287 mkdir .tst 2>/dev/null
2288 if test -d .tst; then
2289   am__leading_dot=.
2290 else
2291   am__leading_dot=_
2292 fi
2293 rmdir .tst 2>/dev/null
2294
2295 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2296   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2297   # is not polluted with repeated "-I."
2298   am__isrc=' -I$(srcdir)'
2299   # test to see if srcdir already configured
2300   if test -f $srcdir/config.status; then
2301     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2302 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2303    { (exit 1); exit 1; }; }
2304   fi
2305 fi
2306
2307 # test whether we have cygpath
2308 if test -z "$CYGPATH_W"; then
2309   if (cygpath --version) >/dev/null 2>/dev/null; then
2310     CYGPATH_W='cygpath -w'
2311   else
2312     CYGPATH_W=echo
2313   fi
2314 fi
2315
2316
2317 # Define the identity of the package.
2318  PACKAGE='glog'
2319  VERSION='0.3.0'
2320
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE "$PACKAGE"
2324 _ACEOF
2325
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define VERSION "$VERSION"
2329 _ACEOF
2330
2331 # Some tools Automake needs.
2332
2333 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2334
2335
2336 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2337
2338
2339 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2340
2341
2342 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2343
2344
2345 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2346
2347 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2348
2349 # Installed binaries are usually stripped using `strip' when the user
2350 # run `make install-strip'.  However `strip' might not be the right
2351 # tool to use in cross-compilation environments, therefore Automake
2352 # will honor the `STRIP' environment variable to overrule this program.
2353 if test "$cross_compiling" != no; then
2354   if test -n "$ac_tool_prefix"; then
2355   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2356 set dummy ${ac_tool_prefix}strip; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_STRIP+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   if test -n "$STRIP"; then
2363   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368   IFS=$as_save_IFS
2369   test -z "$as_dir" && as_dir=.
2370   for ac_exec_ext in '' $ac_executable_extensions; do
2371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374     break 2
2375   fi
2376 done
2377 done
2378 IFS=$as_save_IFS
2379
2380 fi
2381 fi
2382 STRIP=$ac_cv_prog_STRIP
2383 if test -n "$STRIP"; then
2384   { echo "$as_me:$LINENO: result: $STRIP" >&5
2385 echo "${ECHO_T}$STRIP" >&6; }
2386 else
2387   { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2389 fi
2390
2391
2392 fi
2393 if test -z "$ac_cv_prog_STRIP"; then
2394   ac_ct_STRIP=$STRIP
2395   # Extract the first word of "strip", so it can be a program name with args.
2396 set dummy strip; ac_word=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   if test -n "$ac_ct_STRIP"; then
2403   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408   IFS=$as_save_IFS
2409   test -z "$as_dir" && as_dir=.
2410   for ac_exec_ext in '' $ac_executable_extensions; do
2411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412     ac_cv_prog_ac_ct_STRIP="strip"
2413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414     break 2
2415   fi
2416 done
2417 done
2418 IFS=$as_save_IFS
2419
2420 fi
2421 fi
2422 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2423 if test -n "$ac_ct_STRIP"; then
2424   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2425 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2426 else
2427   { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2429 fi
2430
2431   if test "x$ac_ct_STRIP" = x; then
2432     STRIP=":"
2433   else
2434     case $cross_compiling:$ac_tool_warned in
2435 yes:)
2436 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet.  If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&5
2439 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2440 whose name does not start with the host triplet.  If you think this
2441 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2442 ac_tool_warned=yes ;;
2443 esac
2444     STRIP=$ac_ct_STRIP
2445   fi
2446 else
2447   STRIP="$ac_cv_prog_STRIP"
2448 fi
2449
2450 fi
2451 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2452
2453 # We need awk for the "check" target.  The system "awk" is bad on
2454 # some platforms.
2455 # Always define AMTAR for backward compatibility.
2456
2457 AMTAR=${AMTAR-"${am_missing_run}tar"}
2458
2459 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2460
2461
2462
2463
2464
2465 ac_config_headers="$ac_config_headers src/config.h"
2466
2467
2468 ac_ext=cpp
2469 ac_cpp='$CXXCPP $CPPFLAGS'
2470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2473
2474
2475 # Checks for programs.
2476 ac_ext=c
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 if test -n "$ac_tool_prefix"; then
2482   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   if test -n "$CC"; then
2490   ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497   for ac_exec_ext in '' $ac_executable_extensions; do
2498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501     break 2
2502   fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511   { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2513 else
2514   { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2516 fi
2517
2518
2519 fi
2520 if test -z "$ac_cv_prog_CC"; then
2521   ac_ct_CC=$CC
2522   # Extract the first word of "gcc", so it can be a program name with args.
2523 set dummy gcc; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   if test -n "$ac_ct_CC"; then
2530   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535   IFS=$as_save_IFS
2536   test -z "$as_dir" && as_dir=.
2537   for ac_exec_ext in '' $ac_executable_extensions; do
2538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539     ac_cv_prog_ac_ct_CC="gcc"
2540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541     break 2
2542   fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2550 if test -n "$ac_ct_CC"; then
2551   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2552 echo "${ECHO_T}$ac_ct_CC" >&6; }
2553 else
2554   { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2556 fi
2557
2558   if test "x$ac_ct_CC" = x; then
2559     CC=""
2560   else
2561     case $cross_compiling:$ac_tool_warned in
2562 yes:)
2563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2564 whose name does not start with the host triplet.  If you think this
2565 configuration is useful to you, please write to autoconf@gnu.org." >&5
2566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2567 whose name does not start with the host triplet.  If you think this
2568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2569 ac_tool_warned=yes ;;
2570 esac
2571     CC=$ac_ct_CC
2572   fi
2573 else
2574   CC="$ac_cv_prog_CC"
2575 fi
2576
2577 if test -z "$CC"; then
2578           if test -n "$ac_tool_prefix"; then
2579     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2580 set dummy ${ac_tool_prefix}cc; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584   echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586   if test -n "$CC"; then
2587   ac_cv_prog_CC="$CC" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594   for ac_exec_ext in '' $ac_executable_extensions; do
2595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596     ac_cv_prog_CC="${ac_tool_prefix}cc"
2597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598     break 2
2599   fi
2600 done
2601 done
2602 IFS=$as_save_IFS
2603
2604 fi
2605 fi
2606 CC=$ac_cv_prog_CC
2607 if test -n "$CC"; then
2608   { echo "$as_me:$LINENO: result: $CC" >&5
2609 echo "${ECHO_T}$CC" >&6; }
2610 else
2611   { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2613 fi
2614
2615
2616   fi
2617 fi
2618 if test -z "$CC"; then
2619   # Extract the first word of "cc", so it can be a program name with args.
2620 set dummy cc; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   if test -n "$CC"; then
2627   ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629   ac_prog_rejected=no
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635   for ac_exec_ext in '' $ac_executable_extensions; do
2636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2638        ac_prog_rejected=yes
2639        continue
2640      fi
2641     ac_cv_prog_CC="cc"
2642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 if test $ac_prog_rejected = yes; then
2650   # We found a bogon in the path, so make sure we never use it.
2651   set dummy $ac_cv_prog_CC
2652   shift
2653   if test $# != 0; then
2654     # We chose a different compiler from the bogus one.
2655     # However, it has the same basename, so the bogon will be chosen
2656     # first if we set CC to just the basename; use the full file name.
2657     shift
2658     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2659   fi
2660 fi
2661 fi
2662 fi
2663 CC=$ac_cv_prog_CC
2664 if test -n "$CC"; then
2665   { echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6; }
2667 else
2668   { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2670 fi
2671
2672
2673 fi
2674 if test -z "$CC"; then
2675   if test -n "$ac_tool_prefix"; then
2676   for ac_prog in cl.exe
2677   do
2678     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_CC+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   if test -n "$CC"; then
2686   ac_cv_prog_CC="$CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691   IFS=$as_save_IFS
2692   test -z "$as_dir" && as_dir=.
2693   for ac_exec_ext in '' $ac_executable_extensions; do
2694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697     break 2
2698   fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 CC=$ac_cv_prog_CC
2706 if test -n "$CC"; then
2707   { echo "$as_me:$LINENO: result: $CC" >&5
2708 echo "${ECHO_T}$CC" >&6; }
2709 else
2710   { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2712 fi
2713
2714
2715     test -n "$CC" && break
2716   done
2717 fi
2718 if test -z "$CC"; then
2719   ac_ct_CC=$CC
2720   for ac_prog in cl.exe
2721 do
2722   # Extract the first word of "$ac_prog", so it can be a program name with args.
2723 set dummy $ac_prog; ac_word=$2
2724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2727   echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729   if test -n "$ac_ct_CC"; then
2730   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737   for ac_exec_ext in '' $ac_executable_extensions; do
2738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739     ac_cv_prog_ac_ct_CC="$ac_prog"
2740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744 done
2745 IFS=$as_save_IFS
2746
2747 fi
2748 fi
2749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2750 if test -n "$ac_ct_CC"; then
2751   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2752 echo "${ECHO_T}$ac_ct_CC" >&6; }
2753 else
2754   { echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6; }
2756 fi
2757
2758
2759   test -n "$ac_ct_CC" && break
2760 done
2761
2762   if test "x$ac_ct_CC" = x; then
2763     CC=""
2764   else
2765     case $cross_compiling:$ac_tool_warned in
2766 yes:)
2767 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2768 whose name does not start with the host triplet.  If you think this
2769 configuration is useful to you, please write to autoconf@gnu.org." >&5
2770 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2771 whose name does not start with the host triplet.  If you think this
2772 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2773 ac_tool_warned=yes ;;
2774 esac
2775     CC=$ac_ct_CC
2776   fi
2777 fi
2778
2779 fi
2780
2781
2782 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: no acceptable C compiler found in \$PATH
2785 See \`config.log' for more details." >&2;}
2786    { (exit 1); exit 1; }; }
2787
2788 # Provide some information about the compiler.
2789 echo "$as_me:$LINENO: checking for C compiler version" >&5
2790 ac_compiler=`set X $ac_compile; echo $2`
2791 { (ac_try="$ac_compiler --version >&5"
2792 case "(($ac_try" in
2793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794   *) ac_try_echo=$ac_try;;
2795 esac
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797   (eval "$ac_compiler --version >&5") 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); }
2801 { (ac_try="$ac_compiler -v >&5"
2802 case "(($ac_try" in
2803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804   *) ac_try_echo=$ac_try;;
2805 esac
2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807   (eval "$ac_compiler -v >&5") 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }
2811 { (ac_try="$ac_compiler -V >&5"
2812 case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817   (eval "$ac_compiler -V >&5") 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }
2821
2822 cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828
2829 int
2830 main ()
2831 {
2832
2833   ;
2834   return 0;
2835 }
2836 _ACEOF
2837 ac_clean_files_save=$ac_clean_files
2838 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2839 # Try to create an executable without -o first, disregard a.out.
2840 # It will help us diagnose broken compilers, and finding out an intuition
2841 # of exeext.
2842 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2843 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2844 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2845 #
2846 # List of possible output files, starting from the most likely.
2847 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2848 # only as a last resort.  b.out is created by i960 compilers.
2849 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2850 #
2851 # The IRIX 6 linker writes into existing files which may not be
2852 # executable, retaining their permissions.  Remove them first so a
2853 # subsequent execution test works.
2854 ac_rmfiles=
2855 for ac_file in $ac_files
2856 do
2857   case $ac_file in
2858     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2859     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2860   esac
2861 done
2862 rm -f $ac_rmfiles
2863
2864 if { (ac_try="$ac_link_default"
2865 case "(($ac_try" in
2866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867   *) ac_try_echo=$ac_try;;
2868 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870   (eval "$ac_link_default") 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; then
2874   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2875 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2876 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2877 # so that the user can short-circuit this test for compilers unknown to
2878 # Autoconf.
2879 for ac_file in $ac_files ''
2880 do
2881   test -f "$ac_file" || continue
2882   case $ac_file in
2883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2884         ;;
2885     [ab].out )
2886         # We found the default executable, but exeext='' is most
2887         # certainly right.
2888         break;;
2889     *.* )
2890         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2891         then :; else
2892            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2893         fi
2894         # We set ac_cv_exeext here because the later test for it is not
2895         # safe: cross compilers may not add the suffix if given an `-o'
2896         # argument, so we may need to know it at that point already.
2897         # Even if this section looks crufty: it has the advantage of
2898         # actually working.
2899         break;;
2900     * )
2901         break;;
2902   esac
2903 done
2904 test "$ac_cv_exeext" = no && ac_cv_exeext=
2905
2906 else
2907   ac_file=''
2908 fi
2909
2910 { echo "$as_me:$LINENO: result: $ac_file" >&5
2911 echo "${ECHO_T}$ac_file" >&6; }
2912 if test -z "$ac_file"; then
2913   echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2915
2916 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: C compiler cannot create executables
2919 See \`config.log' for more details." >&2;}
2920    { (exit 77); exit 77; }; }
2921 fi
2922
2923 ac_exeext=$ac_cv_exeext
2924
2925 # Check that the compiler produces executables we can run.  If not, either
2926 # the compiler is broken, or we cross compile.
2927 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2928 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2929 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2930 # If not cross compiling, check that we can run a simple program.
2931 if test "$cross_compiling" != yes; then
2932   if { ac_try='./$ac_file'
2933   { (case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938   (eval "$ac_try") 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; }; then
2942     cross_compiling=no
2943   else
2944     if test "$cross_compiling" = maybe; then
2945         cross_compiling=yes
2946     else
2947         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2948 If you meant to cross compile, use \`--host'.
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot run C compiled programs.
2951 If you meant to cross compile, use \`--host'.
2952 See \`config.log' for more details." >&2;}
2953    { (exit 1); exit 1; }; }
2954     fi
2955   fi
2956 fi
2957 { echo "$as_me:$LINENO: result: yes" >&5
2958 echo "${ECHO_T}yes" >&6; }
2959
2960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2961 ac_clean_files=$ac_clean_files_save
2962 # Check that the compiler produces executables we can run.  If not, either
2963 # the compiler is broken, or we cross compile.
2964 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2966 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2967 echo "${ECHO_T}$cross_compiling" >&6; }
2968
2969 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2971 if { (ac_try="$ac_link"
2972 case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977   (eval "$ac_link") 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; then
2981   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2982 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2983 # work properly (i.e., refer to `conftest.exe'), while it won't with
2984 # `rm'.
2985 for ac_file in conftest.exe conftest conftest.*; do
2986   test -f "$ac_file" || continue
2987   case $ac_file in
2988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2989     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2990           break;;
2991     * ) break;;
2992   esac
2993 done
2994 else
2995   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2996 See \`config.log' for more details." >&5
2997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2998 See \`config.log' for more details." >&2;}
2999    { (exit 1); exit 1; }; }
3000 fi
3001
3002 rm -f conftest$ac_cv_exeext
3003 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3004 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3005
3006 rm -f conftest.$ac_ext
3007 EXEEXT=$ac_cv_exeext
3008 ac_exeext=$EXEEXT
3009 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3011 if test "${ac_cv_objext+set}" = set; then
3012   echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014   cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h.  */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h.  */
3020
3021 int
3022 main ()
3023 {
3024
3025   ;
3026   return 0;
3027 }
3028 _ACEOF
3029 rm -f conftest.o conftest.obj
3030 if { (ac_try="$ac_compile"
3031 case "(($ac_try" in
3032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033   *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036   (eval "$ac_compile") 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; then
3040   for ac_file in conftest.o conftest.obj conftest.*; do
3041   test -f "$ac_file" || continue;
3042   case $ac_file in
3043     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3044     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3045        break;;
3046   esac
3047 done
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3055 See \`config.log' for more details." >&2;}
3056    { (exit 1); exit 1; }; }
3057 fi
3058
3059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3060 fi
3061 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3062 echo "${ECHO_T}$ac_cv_objext" >&6; }
3063 OBJEXT=$ac_cv_objext
3064 ac_objext=$OBJEXT
3065 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3066 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3067 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3068   echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070   cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076
3077 int
3078 main ()
3079 {
3080 #ifndef __GNUC__
3081        choke me
3082 #endif
3083
3084   ;
3085   return 0;
3086 }
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (ac_try="$ac_compile"
3090 case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_compile") 2>conftest.er1
3096   ac_status=$?
3097   grep -v '^ *+' conftest.er1 >conftest.err
3098   rm -f conftest.er1
3099   cat conftest.err >&5
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); } && {
3102          test -z "$ac_c_werror_flag" ||
3103          test ! -s conftest.err
3104        } && test -s conftest.$ac_objext; then
3105   ac_compiler_gnu=yes
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110         ac_compiler_gnu=no
3111 fi
3112
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3115
3116 fi
3117 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3118 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3119 GCC=`test $ac_compiler_gnu = yes && echo yes`
3120 ac_test_CFLAGS=${CFLAGS+set}
3121 ac_save_CFLAGS=$CFLAGS
3122 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3123 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_cc_g+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   ac_save_c_werror_flag=$ac_c_werror_flag
3128    ac_c_werror_flag=yes
3129    ac_cv_prog_cc_g=no
3130    CFLAGS="-g"
3131    cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h.  */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h.  */
3137
3138 int
3139 main ()
3140 {
3141
3142   ;
3143   return 0;
3144 }
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3148 case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153   (eval "$ac_compile") 2>conftest.er1
3154   ac_status=$?
3155   grep -v '^ *+' conftest.er1 >conftest.err
3156   rm -f conftest.er1
3157   cat conftest.err >&5
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); } && {
3160          test -z "$ac_c_werror_flag" ||
3161          test ! -s conftest.err
3162        } && test -s conftest.$ac_objext; then
3163   ac_cv_prog_cc_g=yes
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168         CFLAGS=""
3169       cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h.  */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h.  */
3175
3176 int
3177 main ()
3178 {
3179
3180   ;
3181   return 0;
3182 }
3183 _ACEOF
3184 rm -f conftest.$ac_objext
3185 if { (ac_try="$ac_compile"
3186 case "(($ac_try" in
3187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188   *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191   (eval "$ac_compile") 2>conftest.er1
3192   ac_status=$?
3193   grep -v '^ *+' conftest.er1 >conftest.err
3194   rm -f conftest.er1
3195   cat conftest.err >&5
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } && {
3198          test -z "$ac_c_werror_flag" ||
3199          test ! -s conftest.err
3200        } && test -s conftest.$ac_objext; then
3201   :
3202 else
3203   echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206         ac_c_werror_flag=$ac_save_c_werror_flag
3207          CFLAGS="-g"
3208          cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3225 case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230   (eval "$ac_compile") 2>conftest.er1
3231   ac_status=$?
3232   grep -v '^ *+' conftest.er1 >conftest.err
3233   rm -f conftest.er1
3234   cat conftest.err >&5
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); } && {
3237          test -z "$ac_c_werror_flag" ||
3238          test ! -s conftest.err
3239        } && test -s conftest.$ac_objext; then
3240   ac_cv_prog_cc_g=yes
3241 else
3242   echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245
3246 fi
3247
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 fi
3250
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 fi
3253
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255    ac_c_werror_flag=$ac_save_c_werror_flag
3256 fi
3257 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3259 if test "$ac_test_CFLAGS" = set; then
3260   CFLAGS=$ac_save_CFLAGS
3261 elif test $ac_cv_prog_cc_g = yes; then
3262   if test "$GCC" = yes; then
3263     CFLAGS="-g -O2"
3264   else
3265     CFLAGS="-g"
3266   fi
3267 else
3268   if test "$GCC" = yes; then
3269     CFLAGS="-O2"
3270   else
3271     CFLAGS=
3272   fi
3273 fi
3274 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3275 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3276 if test "${ac_cv_prog_cc_c89+set}" = set; then
3277   echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279   ac_cv_prog_cc_c89=no
3280 ac_save_CC=$CC
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <stdarg.h>
3288 #include <stdio.h>
3289 #include <sys/types.h>
3290 #include <sys/stat.h>
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3295      char **p;
3296      int i;
3297 {
3298   return p[i];
3299 }
3300 static char *f (char * (*g) (char **, int), char **p, ...)
3301 {
3302   char *s;
3303   va_list v;
3304   va_start (v,p);
3305   s = g (p, va_arg (v,int));
3306   va_end (v);
3307   return s;
3308 }
3309
3310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3311    function prototypes and stuff, but not '\xHH' hex character constants.
3312    These don't provoke an error unfortunately, instead are silently treated
3313    as 'x'.  The following induces an error, until -std is added to get
3314    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3315    array size at least.  It's necessary to write '\x00'==0 to get something
3316    that's true only with -std.  */
3317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3318
3319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3320    inside strings and character constants.  */
3321 #define FOO(x) 'x'
3322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3323
3324 int test (int i, double x);
3325 struct s1 {int (*f) (int a);};
3326 struct s2 {int (*f) (double a);};
3327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328 int argc;
3329 char **argv;
3330 int
3331 main ()
3332 {
3333 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3339         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 do
3341   CC="$ac_save_CC $ac_arg"
3342   rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_compile") 2>conftest.er1
3350   ac_status=$?
3351   grep -v '^ *+' conftest.er1 >conftest.err
3352   rm -f conftest.er1
3353   cat conftest.err >&5
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } && {
3356          test -z "$ac_c_werror_flag" ||
3357          test ! -s conftest.err
3358        } && test -s conftest.$ac_objext; then
3359   ac_cv_prog_cc_c89=$ac_arg
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364
3365 fi
3366
3367 rm -f core conftest.err conftest.$ac_objext
3368   test "x$ac_cv_prog_cc_c89" != "xno" && break
3369 done
3370 rm -f conftest.$ac_ext
3371 CC=$ac_save_CC
3372
3373 fi
3374 # AC_CACHE_VAL
3375 case "x$ac_cv_prog_cc_c89" in
3376   x)
3377     { echo "$as_me:$LINENO: result: none needed" >&5
3378 echo "${ECHO_T}none needed" >&6; } ;;
3379   xno)
3380     { echo "$as_me:$LINENO: result: unsupported" >&5
3381 echo "${ECHO_T}unsupported" >&6; } ;;
3382   *)
3383     CC="$CC $ac_cv_prog_cc_c89"
3384     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3385 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3386 esac
3387
3388
3389 ac_ext=cpp
3390 ac_cpp='$CXXCPP $CPPFLAGS'
3391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3394 DEPDIR="${am__leading_dot}deps"
3395
3396 ac_config_commands="$ac_config_commands depfiles"
3397
3398
3399 am_make=${MAKE-make}
3400 cat > confinc << 'END'
3401 am__doit:
3402         @echo done
3403 .PHONY: am__doit
3404 END
3405 # If we don't find an include directive, just comment out the code.
3406 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3407 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3408 am__include="#"
3409 am__quote=
3410 _am_result=none
3411 # First try GNU make style include.
3412 echo "include confinc" > confmf
3413 # We grep out `Entering directory' and `Leaving directory'
3414 # messages which can occur if `w' ends up in MAKEFLAGS.
3415 # In particular we don't look at `^make:' because GNU make might
3416 # be invoked under some other name (usually "gmake"), in which
3417 # case it prints its new name instead of `make'.
3418 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3419    am__include=include
3420    am__quote=
3421    _am_result=GNU
3422 fi
3423 # Now try BSD make style include.
3424 if test "$am__include" = "#"; then
3425    echo '.include "confinc"' > confmf
3426    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3427       am__include=.include
3428       am__quote="\""
3429       _am_result=BSD
3430    fi
3431 fi
3432
3433
3434 { echo "$as_me:$LINENO: result: $_am_result" >&5
3435 echo "${ECHO_T}$_am_result" >&6; }
3436 rm -f confinc confmf
3437
3438 # Check whether --enable-dependency-tracking was given.
3439 if test "${enable_dependency_tracking+set}" = set; then
3440   enableval=$enable_dependency_tracking;
3441 fi
3442
3443 if test "x$enable_dependency_tracking" != xno; then
3444   am_depcomp="$ac_aux_dir/depcomp"
3445   AMDEPBACKSLASH='\'
3446 fi
3447  if test "x$enable_dependency_tracking" != xno; then
3448   AMDEP_TRUE=
3449   AMDEP_FALSE='#'
3450 else
3451   AMDEP_TRUE='#'
3452   AMDEP_FALSE=
3453 fi
3454
3455
3456
3457 depcc="$CC"   am_compiler_list=
3458
3459 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3460 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3461 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3462   echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3465   # We make a subdir and do the tests there.  Otherwise we can end up
3466   # making bogus files that we don't know about and never remove.  For
3467   # instance it was reported that on HP-UX the gcc test will end up
3468   # making a dummy file named `D' -- because `-MD' means `put the output
3469   # in D'.
3470   mkdir conftest.dir
3471   # Copy depcomp to subdir because otherwise we won't find it if we're
3472   # using a relative directory.
3473   cp "$am_depcomp" conftest.dir
3474   cd conftest.dir
3475   # We will build objects and dependencies in a subdirectory because
3476   # it helps to detect inapplicable dependency modes.  For instance
3477   # both Tru64's cc and ICC support -MD to output dependencies as a
3478   # side effect of compilation, but ICC will put the dependencies in
3479   # the current directory while Tru64 will put them in the object
3480   # directory.
3481   mkdir sub
3482
3483   am_cv_CC_dependencies_compiler_type=none
3484   if test "$am_compiler_list" = ""; then
3485      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3486   fi
3487   for depmode in $am_compiler_list; do
3488     # Setup a source with many dependencies, because some compilers
3489     # like to wrap large dependency lists on column 80 (with \), and
3490     # we should not choose a depcomp mode which is confused by this.
3491     #
3492     # We need to recreate these files for each test, as the compiler may
3493     # overwrite some of them when testing with obscure command lines.
3494     # This happens at least with the AIX C compiler.
3495     : > sub/conftest.c
3496     for i in 1 2 3 4 5 6; do
3497       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3498       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3499       # Solaris 8's {/usr,}/bin/sh.
3500       touch sub/conftst$i.h
3501     done
3502     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3503
3504     case $depmode in
3505     nosideeffect)
3506       # after this tag, mechanisms are not by side-effect, so they'll
3507       # only be used when explicitly requested
3508       if test "x$enable_dependency_tracking" = xyes; then
3509         continue
3510       else
3511         break
3512       fi
3513       ;;
3514     none) break ;;
3515     esac
3516     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3517     # mode.  It turns out that the SunPro C++ compiler does not properly
3518     # handle `-M -o', and we need to detect this.
3519     if depmode=$depmode \
3520        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3521        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3522        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3523          >/dev/null 2>conftest.err &&
3524        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3525        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3526        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3527        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3528       # icc doesn't choke on unknown options, it will just issue warnings
3529       # or remarks (even with -Werror).  So we grep stderr for any message
3530       # that says an option was ignored or not supported.
3531       # When given -MP, icc 7.0 and 7.1 complain thusly:
3532       #   icc: Command line warning: ignoring option '-M'; no argument required
3533       # The diagnosis changed in icc 8.0:
3534       #   icc: Command line remark: option '-MP' not supported
3535       if (grep 'ignoring option' conftest.err ||
3536           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3537         am_cv_CC_dependencies_compiler_type=$depmode
3538         break
3539       fi
3540     fi
3541   done
3542
3543   cd ..
3544   rm -rf conftest.dir
3545 else
3546   am_cv_CC_dependencies_compiler_type=none
3547 fi
3548
3549 fi
3550 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3551 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3552 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3553
3554  if
3555   test "x$enable_dependency_tracking" != xno \
3556   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3557   am__fastdepCC_TRUE=
3558   am__fastdepCC_FALSE='#'
3559 else
3560   am__fastdepCC_TRUE='#'
3561   am__fastdepCC_FALSE=
3562 fi
3563
3564
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3571 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3572 # On Suns, sometimes $CPP names a directory.
3573 if test -n "$CPP" && test -d "$CPP"; then
3574   CPP=
3575 fi
3576 if test -z "$CPP"; then
3577   if test "${ac_cv_prog_CPP+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580       # Double quotes because CPP needs to be expanded
3581     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3582     do
3583       ac_preproc_ok=false
3584 for ac_c_preproc_warn_flag in '' yes
3585 do
3586   # Use a header file that comes with gcc, so configuring glibc
3587   # with a fresh cross-compiler works.
3588   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3589   # <limits.h> exists even on freestanding compilers.
3590   # On the NeXT, cc -E runs the code through the compiler's parser,
3591   # not just through cpp. "Syntax error" is here to catch this case.
3592   cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598 #ifdef __STDC__
3599 # include <limits.h>
3600 #else
3601 # include <assert.h>
3602 #endif
3603                      Syntax error
3604 _ACEOF
3605 if { (ac_try="$ac_cpp conftest.$ac_ext"
3606 case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3612   ac_status=$?
3613   grep -v '^ *+' conftest.er1 >conftest.err
3614   rm -f conftest.er1
3615   cat conftest.err >&5
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); } >/dev/null && {
3618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3619          test ! -s conftest.err
3620        }; then
3621   :
3622 else
3623   echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626   # Broken: fails on valid input.
3627 continue
3628 fi
3629
3630 rm -f conftest.err conftest.$ac_ext
3631
3632   # OK, works on sane cases.  Now check whether nonexistent headers
3633   # can be detected and how.
3634   cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h.  */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h.  */
3640 #include <ac_nonexistent.h>
3641 _ACEOF
3642 if { (ac_try="$ac_cpp conftest.$ac_ext"
3643 case "(($ac_try" in
3644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645   *) ac_try_echo=$ac_try;;
3646 esac
3647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3649   ac_status=$?
3650   grep -v '^ *+' conftest.er1 >conftest.err
3651   rm -f conftest.er1
3652   cat conftest.err >&5
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); } >/dev/null && {
3655          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3656          test ! -s conftest.err
3657        }; then
3658   # Broken: success on invalid input.
3659 continue
3660 else
3661   echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664   # Passes both tests.
3665 ac_preproc_ok=:
3666 break
3667 fi
3668
3669 rm -f conftest.err conftest.$ac_ext
3670
3671 done
3672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3673 rm -f conftest.err conftest.$ac_ext
3674 if $ac_preproc_ok; then
3675   break
3676 fi
3677
3678     done
3679     ac_cv_prog_CPP=$CPP
3680
3681 fi
3682   CPP=$ac_cv_prog_CPP
3683 else
3684   ac_cv_prog_CPP=$CPP
3685 fi
3686 { echo "$as_me:$LINENO: result: $CPP" >&5
3687 echo "${ECHO_T}$CPP" >&6; }
3688 ac_preproc_ok=false
3689 for ac_c_preproc_warn_flag in '' yes
3690 do
3691   # Use a header file that comes with gcc, so configuring glibc
3692   # with a fresh cross-compiler works.
3693   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694   # <limits.h> exists even on freestanding compilers.
3695   # On the NeXT, cc -E runs the code through the compiler's parser,
3696   # not just through cpp. "Syntax error" is here to catch this case.
3697   cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h.  */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h.  */
3703 #ifdef __STDC__
3704 # include <limits.h>
3705 #else
3706 # include <assert.h>
3707 #endif
3708                      Syntax error
3709 _ACEOF
3710 if { (ac_try="$ac_cpp conftest.$ac_ext"
3711 case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3717   ac_status=$?
3718   grep -v '^ *+' conftest.er1 >conftest.err
3719   rm -f conftest.er1
3720   cat conftest.err >&5
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } >/dev/null && {
3723          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3724          test ! -s conftest.err
3725        }; then
3726   :
3727 else
3728   echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731   # Broken: fails on valid input.
3732 continue
3733 fi
3734
3735 rm -f conftest.err conftest.$ac_ext
3736
3737   # OK, works on sane cases.  Now check whether nonexistent headers
3738   # can be detected and how.
3739   cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h.  */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h.  */
3745 #include <ac_nonexistent.h>
3746 _ACEOF
3747 if { (ac_try="$ac_cpp conftest.$ac_ext"
3748 case "(($ac_try" in
3749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750   *) ac_try_echo=$ac_try;;
3751 esac
3752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3754   ac_status=$?
3755   grep -v '^ *+' conftest.er1 >conftest.err
3756   rm -f conftest.er1
3757   cat conftest.err >&5
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); } >/dev/null && {
3760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3761          test ! -s conftest.err
3762        }; then
3763   # Broken: success on invalid input.
3764 continue
3765 else
3766   echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769   # Passes both tests.
3770 ac_preproc_ok=:
3771 break
3772 fi
3773
3774 rm -f conftest.err conftest.$ac_ext
3775
3776 done
3777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3778 rm -f conftest.err conftest.$ac_ext
3779 if $ac_preproc_ok; then
3780   :
3781 else
3782   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3783 See \`config.log' for more details." >&5
3784 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3785 See \`config.log' for more details." >&2;}
3786    { (exit 1); exit 1; }; }
3787 fi
3788
3789 ac_ext=cpp
3790 ac_cpp='$CXXCPP $CPPFLAGS'
3791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3794
3795 ac_ext=cpp
3796 ac_cpp='$CXXCPP $CPPFLAGS'
3797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3800 if test -z "$CXX"; then
3801   if test -n "$CCC"; then
3802     CXX=$CCC
3803   else
3804     if test -n "$ac_tool_prefix"; then
3805   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3806   do
3807     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3811 if test "${ac_cv_prog_CXX+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   if test -n "$CXX"; then
3815   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820   IFS=$as_save_IFS
3821   test -z "$as_dir" && as_dir=.
3822   for ac_exec_ext in '' $ac_executable_extensions; do
3823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3824     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826     break 2
3827   fi
3828 done
3829 done
3830 IFS=$as_save_IFS
3831
3832 fi
3833 fi
3834 CXX=$ac_cv_prog_CXX
3835 if test -n "$CXX"; then
3836   { echo "$as_me:$LINENO: result: $CXX" >&5
3837 echo "${ECHO_T}$CXX" >&6; }
3838 else
3839   { echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6; }
3841 fi
3842
3843
3844     test -n "$CXX" && break
3845   done
3846 fi
3847 if test -z "$CXX"; then
3848   ac_ct_CXX=$CXX
3849   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3850 do
3851   # Extract the first word of "$ac_prog", so it can be a program name with args.
3852 set dummy $ac_prog; ac_word=$2
3853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3855 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3856   echo $ECHO_N "(cached) $ECHO_C" >&6
3857 else
3858   if test -n "$ac_ct_CXX"; then
3859   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_exec_ext in '' $ac_executable_extensions; do
3867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868     ac_cv_prog_ac_ct_CXX="$ac_prog"
3869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873 done
3874 IFS=$as_save_IFS
3875
3876 fi
3877 fi
3878 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3879 if test -n "$ac_ct_CXX"; then
3880   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3881 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3882 else
3883   { echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6; }
3885 fi
3886
3887
3888   test -n "$ac_ct_CXX" && break
3889 done
3890
3891   if test "x$ac_ct_CXX" = x; then
3892     CXX="g++"
3893   else
3894     case $cross_compiling:$ac_tool_warned in
3895 yes:)
3896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3897 whose name does not start with the host triplet.  If you think this
3898 configuration is useful to you, please write to autoconf@gnu.org." >&5
3899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3900 whose name does not start with the host triplet.  If you think this
3901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3902 ac_tool_warned=yes ;;
3903 esac
3904     CXX=$ac_ct_CXX
3905   fi
3906 fi
3907
3908   fi
3909 fi
3910 # Provide some information about the compiler.
3911 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3912 ac_compiler=`set X $ac_compile; echo $2`
3913 { (ac_try="$ac_compiler --version >&5"
3914 case "(($ac_try" in
3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916   *) ac_try_echo=$ac_try;;
3917 esac
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919   (eval "$ac_compiler --version >&5") 2>&5
3920   ac_status=$?
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); }
3923 { (ac_try="$ac_compiler -v >&5"
3924 case "(($ac_try" in
3925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926   *) ac_try_echo=$ac_try;;
3927 esac
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929   (eval "$ac_compiler -v >&5") 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }
3933 { (ac_try="$ac_compiler -V >&5"
3934 case "(($ac_try" in
3935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936   *) ac_try_echo=$ac_try;;
3937 esac
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939   (eval "$ac_compiler -V >&5") 2>&5
3940   ac_status=$?
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); }
3943
3944 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3945 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3946 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949   cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h.  */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h.  */
3955
3956 int
3957 main ()
3958 {
3959 #ifndef __GNUC__
3960        choke me
3961 #endif
3962
3963   ;
3964   return 0;
3965 }
3966 _ACEOF
3967 rm -f conftest.$ac_objext
3968 if { (ac_try="$ac_compile"
3969 case "(($ac_try" in
3970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971   *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974   (eval "$ac_compile") 2>conftest.er1
3975   ac_status=$?
3976   grep -v '^ *+' conftest.er1 >conftest.err
3977   rm -f conftest.er1
3978   cat conftest.err >&5
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); } && {
3981          test -z "$ac_cxx_werror_flag" ||
3982          test ! -s conftest.err
3983        } && test -s conftest.$ac_objext; then
3984   ac_compiler_gnu=yes
3985 else
3986   echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3988
3989         ac_compiler_gnu=no
3990 fi
3991
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3994
3995 fi
3996 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3997 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3998 GXX=`test $ac_compiler_gnu = yes && echo yes`
3999 ac_test_CXXFLAGS=${CXXFLAGS+set}
4000 ac_save_CXXFLAGS=$CXXFLAGS
4001 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4002 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4003 if test "${ac_cv_prog_cxx_g+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4007    ac_cxx_werror_flag=yes
4008    ac_cv_prog_cxx_g=no
4009    CXXFLAGS="-g"
4010    cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h.  */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h.  */
4016
4017 int
4018 main ()
4019 {
4020
4021   ;
4022   return 0;
4023 }
4024 _ACEOF
4025 rm -f conftest.$ac_objext
4026 if { (ac_try="$ac_compile"
4027 case "(($ac_try" in
4028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029   *) ac_try_echo=$ac_try;;
4030 esac
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032   (eval "$ac_compile") 2>conftest.er1
4033   ac_status=$?
4034   grep -v '^ *+' conftest.er1 >conftest.err
4035   rm -f conftest.er1
4036   cat conftest.err >&5
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); } && {
4039          test -z "$ac_cxx_werror_flag" ||
4040          test ! -s conftest.err
4041        } && test -s conftest.$ac_objext; then
4042   ac_cv_prog_cxx_g=yes
4043 else
4044   echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047         CXXFLAGS=""
4048       cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h.  */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h.  */
4054
4055 int
4056 main ()
4057 {
4058
4059   ;
4060   return 0;
4061 }
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4065 case "(($ac_try" in
4066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067   *) ac_try_echo=$ac_try;;
4068 esac
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070   (eval "$ac_compile") 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } && {
4077          test -z "$ac_cxx_werror_flag" ||
4078          test ! -s conftest.err
4079        } && test -s conftest.$ac_objext; then
4080   :
4081 else
4082   echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4084
4085         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4086          CXXFLAGS="-g"
4087          cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (ac_try="$ac_compile"
4104 case "(($ac_try" in
4105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106   *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109   (eval "$ac_compile") 2>conftest.er1
4110   ac_status=$?
4111   grep -v '^ *+' conftest.er1 >conftest.err
4112   rm -f conftest.er1
4113   cat conftest.err >&5
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); } && {
4116          test -z "$ac_cxx_werror_flag" ||
4117          test ! -s conftest.err
4118        } && test -s conftest.$ac_objext; then
4119   ac_cv_prog_cxx_g=yes
4120 else
4121   echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124
4125 fi
4126
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 fi
4129
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 fi
4132
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4135 fi
4136 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4137 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4138 if test "$ac_test_CXXFLAGS" = set; then
4139   CXXFLAGS=$ac_save_CXXFLAGS
4140 elif test $ac_cv_prog_cxx_g = yes; then
4141   if test "$GXX" = yes; then
4142     CXXFLAGS="-g -O2"
4143   else
4144     CXXFLAGS="-g"
4145   fi
4146 else
4147   if test "$GXX" = yes; then
4148     CXXFLAGS="-O2"
4149   else
4150     CXXFLAGS=
4151   fi
4152 fi
4153 ac_ext=cpp
4154 ac_cpp='$CXXCPP $CPPFLAGS'
4155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4158
4159 depcc="$CXX"  am_compiler_list=
4160
4161 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4163 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4167   # We make a subdir and do the tests there.  Otherwise we can end up
4168   # making bogus files that we don't know about and never remove.  For
4169   # instance it was reported that on HP-UX the gcc test will end up
4170   # making a dummy file named `D' -- because `-MD' means `put the output
4171   # in D'.
4172   mkdir conftest.dir
4173   # Copy depcomp to subdir because otherwise we won't find it if we're
4174   # using a relative directory.
4175   cp "$am_depcomp" conftest.dir
4176   cd conftest.dir
4177   # We will build objects and dependencies in a subdirectory because
4178   # it helps to detect inapplicable dependency modes.  For instance
4179   # both Tru64's cc and ICC support -MD to output dependencies as a
4180   # side effect of compilation, but ICC will put the dependencies in
4181   # the current directory while Tru64 will put them in the object
4182   # directory.
4183   mkdir sub
4184
4185   am_cv_CXX_dependencies_compiler_type=none
4186   if test "$am_compiler_list" = ""; then
4187      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4188   fi
4189   for depmode in $am_compiler_list; do
4190     # Setup a source with many dependencies, because some compilers
4191     # like to wrap large dependency lists on column 80 (with \), and
4192     # we should not choose a depcomp mode which is confused by this.
4193     #
4194     # We need to recreate these files for each test, as the compiler may
4195     # overwrite some of them when testing with obscure command lines.
4196     # This happens at least with the AIX C compiler.
4197     : > sub/conftest.c
4198     for i in 1 2 3 4 5 6; do
4199       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4200       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4201       # Solaris 8's {/usr,}/bin/sh.
4202       touch sub/conftst$i.h
4203     done
4204     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4205
4206     case $depmode in
4207     nosideeffect)
4208       # after this tag, mechanisms are not by side-effect, so they'll
4209       # only be used when explicitly requested
4210       if test "x$enable_dependency_tracking" = xyes; then
4211         continue
4212       else
4213         break
4214       fi
4215       ;;
4216     none) break ;;
4217     esac
4218     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4219     # mode.  It turns out that the SunPro C++ compiler does not properly
4220     # handle `-M -o', and we need to detect this.
4221     if depmode=$depmode \
4222        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4223        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4224        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4225          >/dev/null 2>conftest.err &&
4226        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4227        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4228        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4229        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4230       # icc doesn't choke on unknown options, it will just issue warnings
4231       # or remarks (even with -Werror).  So we grep stderr for any message
4232       # that says an option was ignored or not supported.
4233       # When given -MP, icc 7.0 and 7.1 complain thusly:
4234       #   icc: Command line warning: ignoring option '-M'; no argument required
4235       # The diagnosis changed in icc 8.0:
4236       #   icc: Command line remark: option '-MP' not supported
4237       if (grep 'ignoring option' conftest.err ||
4238           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4239         am_cv_CXX_dependencies_compiler_type=$depmode
4240         break
4241       fi
4242     fi
4243   done
4244
4245   cd ..
4246   rm -rf conftest.dir
4247 else
4248   am_cv_CXX_dependencies_compiler_type=none
4249 fi
4250
4251 fi
4252 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4253 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4254 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4255
4256  if
4257   test "x$enable_dependency_tracking" != xno \
4258   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4259   am__fastdepCXX_TRUE=
4260   am__fastdepCXX_FALSE='#'
4261 else
4262   am__fastdepCXX_TRUE='#'
4263   am__fastdepCXX_FALSE=
4264 fi
4265
4266
4267  if test "$GCC" = yes; then
4268   GCC_TRUE=
4269   GCC_FALSE='#'
4270 else
4271   GCC_TRUE='#'
4272   GCC_FALSE=
4273 fi
4274    # let the Makefile know if we're gcc
4275
4276 # Check whether --enable-shared was given.
4277 if test "${enable_shared+set}" = set; then
4278   enableval=$enable_shared; p=${PACKAGE-default}
4279     case $enableval in
4280     yes) enable_shared=yes ;;
4281     no) enable_shared=no ;;
4282     *)
4283       enable_shared=no
4284       # Look at the argument we got.  We use all the common list separators.
4285       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4286       for pkg in $enableval; do
4287         IFS="$lt_save_ifs"
4288         if test "X$pkg" = "X$p"; then
4289           enable_shared=yes
4290         fi
4291       done
4292       IFS="$lt_save_ifs"
4293       ;;
4294     esac
4295 else
4296   enable_shared=yes
4297 fi
4298
4299
4300 # Check whether --enable-static was given.
4301 if test "${enable_static+set}" = set; then
4302   enableval=$enable_static; p=${PACKAGE-default}
4303     case $enableval in
4304     yes) enable_static=yes ;;
4305     no) enable_static=no ;;
4306     *)
4307      enable_static=no
4308       # Look at the argument we got.  We use all the common list separators.
4309       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4310       for pkg in $enableval; do
4311         IFS="$lt_save_ifs"
4312         if test "X$pkg" = "X$p"; then
4313           enable_static=yes
4314         fi
4315       done
4316       IFS="$lt_save_ifs"
4317       ;;
4318     esac
4319 else
4320   enable_static=yes
4321 fi
4322
4323
4324 # Check whether --enable-fast-install was given.
4325 if test "${enable_fast_install+set}" = set; then
4326   enableval=$enable_fast_install; p=${PACKAGE-default}
4327     case $enableval in
4328     yes) enable_fast_install=yes ;;
4329     no) enable_fast_install=no ;;
4330     *)
4331       enable_fast_install=no
4332       # Look at the argument we got.  We use all the common list separators.
4333       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4334       for pkg in $enableval; do
4335         IFS="$lt_save_ifs"
4336         if test "X$pkg" = "X$p"; then
4337           enable_fast_install=yes
4338         fi
4339       done
4340       IFS="$lt_save_ifs"
4341       ;;
4342     esac
4343 else
4344   enable_fast_install=yes
4345 fi
4346
4347
4348 # Make sure we can run config.sub.
4349 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4350   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4351 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4352    { (exit 1); exit 1; }; }
4353
4354 { echo "$as_me:$LINENO: checking build system type" >&5
4355 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4356 if test "${ac_cv_build+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   ac_build_alias=$build_alias
4360 test "x$ac_build_alias" = x &&
4361   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4362 test "x$ac_build_alias" = x &&
4363   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4365    { (exit 1); exit 1; }; }
4366 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4367   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4368 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4369    { (exit 1); exit 1; }; }
4370
4371 fi
4372 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4373 echo "${ECHO_T}$ac_cv_build" >&6; }
4374 case $ac_cv_build in
4375 *-*-*) ;;
4376 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4377 echo "$as_me: error: invalid value of canonical build" >&2;}
4378    { (exit 1); exit 1; }; };;
4379 esac
4380 build=$ac_cv_build
4381 ac_save_IFS=$IFS; IFS='-'
4382 set x $ac_cv_build
4383 shift
4384 build_cpu=$1
4385 build_vendor=$2
4386 shift; shift
4387 # Remember, the first character of IFS is used to create $*,
4388 # except with old shells:
4389 build_os=$*
4390 IFS=$ac_save_IFS
4391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4392
4393
4394 { echo "$as_me:$LINENO: checking host system type" >&5
4395 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4396 if test "${ac_cv_host+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test "x$host_alias" = x; then
4400   ac_cv_host=$ac_cv_build
4401 else
4402   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4403     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4404 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4405    { (exit 1); exit 1; }; }
4406 fi
4407
4408 fi
4409 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4410 echo "${ECHO_T}$ac_cv_host" >&6; }
4411 case $ac_cv_host in
4412 *-*-*) ;;
4413 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4414 echo "$as_me: error: invalid value of canonical host" >&2;}
4415    { (exit 1); exit 1; }; };;
4416 esac
4417 host=$ac_cv_host
4418 ac_save_IFS=$IFS; IFS='-'
4419 set x $ac_cv_host
4420 shift
4421 host_cpu=$1
4422 host_vendor=$2
4423 shift; shift
4424 # Remember, the first character of IFS is used to create $*,
4425 # except with old shells:
4426 host_os=$*
4427 IFS=$ac_save_IFS
4428 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4429
4430
4431 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4432 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4433 if test "${lt_cv_path_SED+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   # Loop through the user's path and test for sed and gsed.
4437 # Then use that list of sed's as ones to test for truncation.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443   for lt_ac_prog in sed gsed; do
4444     for ac_exec_ext in '' $ac_executable_extensions; do
4445       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4446         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4447       fi
4448     done
4449   done
4450 done
4451 IFS=$as_save_IFS
4452 lt_ac_max=0
4453 lt_ac_count=0
4454 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4455 # along with /bin/sed that truncates output.
4456 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4457   test ! -f $lt_ac_sed && continue
4458   cat /dev/null > conftest.in
4459   lt_ac_count=0
4460   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4461   # Check for GNU sed and select it if it is found.
4462   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4463     lt_cv_path_SED=$lt_ac_sed
4464     break
4465   fi
4466   while true; do
4467     cat conftest.in conftest.in >conftest.tmp
4468     mv conftest.tmp conftest.in
4469     cp conftest.in conftest.nl
4470     echo >>conftest.nl
4471     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4472     cmp -s conftest.out conftest.nl || break
4473     # 10000 chars as input seems more than enough
4474     test $lt_ac_count -gt 10 && break
4475     lt_ac_count=`expr $lt_ac_count + 1`
4476     if test $lt_ac_count -gt $lt_ac_max; then
4477       lt_ac_max=$lt_ac_count
4478       lt_cv_path_SED=$lt_ac_sed
4479     fi
4480   done
4481 done
4482
4483 fi
4484
4485 SED=$lt_cv_path_SED
4486
4487 { echo "$as_me:$LINENO: result: $SED" >&5
4488 echo "${ECHO_T}$SED" >&6; }
4489
4490 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4491 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_GREP+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   # Extract the first word of "grep ggrep" to use in msg output
4496 if test -z "$GREP"; then
4497 set dummy grep ggrep; ac_prog_name=$2
4498 if test "${ac_cv_path_GREP+set}" = set; then
4499   echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501   ac_path_GREP_found=false
4502 # Loop through the user's path and test for each of PROGNAME-LIST
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508   for ac_prog in grep ggrep; do
4509   for ac_exec_ext in '' $ac_executable_extensions; do
4510     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4511     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4512     # Check for GNU ac_path_GREP and select it if it is found.
4513   # Check for GNU $ac_path_GREP
4514 case `"$ac_path_GREP" --version 2>&1` in
4515 *GNU*)
4516   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4517 *)
4518   ac_count=0
4519   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4520   while :
4521   do
4522     cat "conftest.in" "conftest.in" >"conftest.tmp"
4523     mv "conftest.tmp" "conftest.in"
4524     cp "conftest.in" "conftest.nl"
4525     echo 'GREP' >> "conftest.nl"
4526     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4527     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4528     ac_count=`expr $ac_count + 1`
4529     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4530       # Best one so far, save it but keep looking for a better one
4531       ac_cv_path_GREP="$ac_path_GREP"
4532       ac_path_GREP_max=$ac_count
4533     fi
4534     # 10*(2^10) chars as input seems more than enough
4535     test $ac_count -gt 10 && break
4536   done
4537   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4538 esac
4539
4540
4541     $ac_path_GREP_found && break 3
4542   done
4543 done
4544
4545 done
4546 IFS=$as_save_IFS
4547
4548
4549 fi
4550
4551 GREP="$ac_cv_path_GREP"
4552 if test -z "$GREP"; then
4553   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4554 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4555    { (exit 1); exit 1; }; }
4556 fi
4557
4558 else
4559   ac_cv_path_GREP=$GREP
4560 fi
4561
4562
4563 fi
4564 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4565 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4566  GREP="$ac_cv_path_GREP"
4567
4568
4569 { echo "$as_me:$LINENO: checking for egrep" >&5
4570 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4571 if test "${ac_cv_path_EGREP+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4575    then ac_cv_path_EGREP="$GREP -E"
4576    else
4577      # Extract the first word of "egrep" to use in msg output
4578 if test -z "$EGREP"; then
4579 set dummy egrep; ac_prog_name=$2
4580 if test "${ac_cv_path_EGREP+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   ac_path_EGREP_found=false
4584 # Loop through the user's path and test for each of PROGNAME-LIST
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 do
4588   IFS=$as_save_IFS
4589   test -z "$as_dir" && as_dir=.
4590   for ac_prog in egrep; do
4591   for ac_exec_ext in '' $ac_executable_extensions; do
4592     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4593     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4594     # Check for GNU ac_path_EGREP and select it if it is found.
4595   # Check for GNU $ac_path_EGREP
4596 case `"$ac_path_EGREP" --version 2>&1` in
4597 *GNU*)
4598   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4599 *)
4600   ac_count=0
4601   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4602   while :
4603   do
4604     cat "conftest.in" "conftest.in" >"conftest.tmp"
4605     mv "conftest.tmp" "conftest.in"
4606     cp "conftest.in" "conftest.nl"
4607     echo 'EGREP' >> "conftest.nl"
4608     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4609     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4610     ac_count=`expr $ac_count + 1`
4611     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4612       # Best one so far, save it but keep looking for a better one
4613       ac_cv_path_EGREP="$ac_path_EGREP"
4614       ac_path_EGREP_max=$ac_count
4615     fi
4616     # 10*(2^10) chars as input seems more than enough
4617     test $ac_count -gt 10 && break
4618   done
4619   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620 esac
4621
4622
4623     $ac_path_EGREP_found && break 3
4624   done
4625 done
4626
4627 done
4628 IFS=$as_save_IFS
4629
4630
4631 fi
4632
4633 EGREP="$ac_cv_path_EGREP"
4634 if test -z "$EGREP"; then
4635   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4636 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4637    { (exit 1); exit 1; }; }
4638 fi
4639
4640 else
4641   ac_cv_path_EGREP=$EGREP
4642 fi
4643
4644
4645    fi
4646 fi
4647 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4648 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4649  EGREP="$ac_cv_path_EGREP"
4650
4651
4652
4653 # Check whether --with-gnu-ld was given.
4654 if test "${with_gnu_ld+set}" = set; then
4655   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4656 else
4657   with_gnu_ld=no
4658 fi
4659
4660 ac_prog=ld
4661 if test "$GCC" = yes; then
4662   # Check if gcc -print-prog-name=ld gives a path.
4663   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4664 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4665   case $host in
4666   *-*-mingw*)
4667     # gcc leaves a trailing carriage return which upsets mingw
4668     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4669   *)
4670     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4671   esac
4672   case $ac_prog in
4673     # Accept absolute paths.
4674     [\\/]* | ?:[\\/]*)
4675       re_direlt='/[^/][^/]*/\.\./'
4676       # Canonicalize the pathname of ld
4677       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4678       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4679         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4680       done
4681       test -z "$LD" && LD="$ac_prog"
4682       ;;
4683   "")
4684     # If it fails, then pretend we aren't using GCC.
4685     ac_prog=ld
4686     ;;
4687   *)
4688     # If it is relative, then search for the first ld in PATH.
4689     with_gnu_ld=unknown
4690     ;;
4691   esac
4692 elif test "$with_gnu_ld" = yes; then
4693   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4694 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4695 else
4696   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4697 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4698 fi
4699 if test "${lt_cv_path_LD+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   if test -z "$LD"; then
4703   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4704   for ac_dir in $PATH; do
4705     IFS="$lt_save_ifs"
4706     test -z "$ac_dir" && ac_dir=.
4707     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4708       lt_cv_path_LD="$ac_dir/$ac_prog"
4709       # Check to see if the program is GNU ld.  I'd rather use --version,
4710       # but apparently some variants of GNU ld only accept -v.
4711       # Break only if it was the GNU/non-GNU ld that we prefer.
4712       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4713       *GNU* | *'with BFD'*)
4714         test "$with_gnu_ld" != no && break
4715         ;;
4716       *)
4717         test "$with_gnu_ld" != yes && break
4718         ;;
4719       esac
4720     fi
4721   done
4722   IFS="$lt_save_ifs"
4723 else
4724   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4725 fi
4726 fi
4727
4728 LD="$lt_cv_path_LD"
4729 if test -n "$LD"; then
4730   { echo "$as_me:$LINENO: result: $LD" >&5
4731 echo "${ECHO_T}$LD" >&6; }
4732 else
4733   { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4735 fi
4736 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4737 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4738    { (exit 1); exit 1; }; }
4739 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4740 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4741 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4745 case `$LD -v 2>&1 </dev/null` in
4746 *GNU* | *'with BFD'*)
4747   lt_cv_prog_gnu_ld=yes
4748   ;;
4749 *)
4750   lt_cv_prog_gnu_ld=no
4751   ;;
4752 esac
4753 fi
4754 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4755 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4756 with_gnu_ld=$lt_cv_prog_gnu_ld
4757
4758
4759 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4760 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4761 if test "${lt_cv_ld_reload_flag+set}" = set; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   lt_cv_ld_reload_flag='-r'
4765 fi
4766 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4767 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4768 reload_flag=$lt_cv_ld_reload_flag
4769 case $reload_flag in
4770 "" | " "*) ;;
4771 *) reload_flag=" $reload_flag" ;;
4772 esac
4773 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4774 case $host_os in
4775   darwin*)
4776     if test "$GCC" = yes; then
4777       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4778     else
4779       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4780     fi
4781     ;;
4782 esac
4783
4784 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4785 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4786 if test "${lt_cv_path_NM+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789   if test -n "$NM"; then
4790   # Let the user override the test.
4791   lt_cv_path_NM="$NM"
4792 else
4793   lt_nm_to_check="${ac_tool_prefix}nm"
4794   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4795     lt_nm_to_check="$lt_nm_to_check nm"
4796   fi
4797   for lt_tmp_nm in $lt_nm_to_check; do
4798     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4799     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4800       IFS="$lt_save_ifs"
4801       test -z "$ac_dir" && ac_dir=.
4802       tmp_nm="$ac_dir/$lt_tmp_nm"
4803       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4804         # Check to see if the nm accepts a BSD-compat flag.
4805         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4806         #   nm: unknown option "B" ignored
4807         # Tru64's nm complains that /dev/null is an invalid object file
4808         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4809         */dev/null* | *'Invalid file or object type'*)
4810           lt_cv_path_NM="$tmp_nm -B"
4811           break
4812           ;;
4813         *)
4814           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4815           */dev/null*)
4816             lt_cv_path_NM="$tmp_nm -p"
4817             break
4818             ;;
4819           *)
4820             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4821             continue # so that we can try to find one that supports BSD flags
4822             ;;
4823           esac
4824           ;;
4825         esac
4826       fi
4827     done
4828     IFS="$lt_save_ifs"
4829   done
4830   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4831 fi
4832 fi
4833 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4834 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4835 NM="$lt_cv_path_NM"
4836
4837 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4838 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4839 LN_S=$as_ln_s
4840 if test "$LN_S" = "ln -s"; then
4841   { echo "$as_me:$LINENO: result: yes" >&5
4842 echo "${ECHO_T}yes" >&6; }
4843 else
4844   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4845 echo "${ECHO_T}no, using $LN_S" >&6; }
4846 fi
4847
4848 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4849 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4850 if test "${lt_cv_deplibs_check_method+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   lt_cv_file_magic_cmd='$MAGIC_CMD'
4854 lt_cv_file_magic_test_file=
4855 lt_cv_deplibs_check_method='unknown'
4856 # Need to set the preceding variable on all platforms that support
4857 # interlibrary dependencies.
4858 # 'none' -- dependencies not supported.
4859 # `unknown' -- same as none, but documents that we really don't know.
4860 # 'pass_all' -- all dependencies passed with no checks.
4861 # 'test_compile' -- check by making test program.
4862 # 'file_magic [[regex]]' -- check by looking for files in library path
4863 # which responds to the $file_magic_cmd with a given extended regex.
4864 # If you have `file' or equivalent on your system and you're not sure
4865 # whether `pass_all' will *always* work, you probably want this one.
4866
4867 case $host_os in
4868 aix[4-9]*)
4869   lt_cv_deplibs_check_method=pass_all
4870   ;;
4871
4872 beos*)
4873   lt_cv_deplibs_check_method=pass_all
4874   ;;
4875
4876 bsdi[45]*)
4877   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4878   lt_cv_file_magic_cmd='/usr/bin/file -L'
4879   lt_cv_file_magic_test_file=/shlib/libc.so
4880   ;;
4881
4882 cygwin*)
4883   # func_win32_libid is a shell function defined in ltmain.sh
4884   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4885   lt_cv_file_magic_cmd='func_win32_libid'
4886   ;;
4887
4888 mingw* | pw32*)
4889   # Base MSYS/MinGW do not provide the 'file' command needed by
4890   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4891   # unless we find 'file', for example because we are cross-compiling.
4892   if ( file / ) >/dev/null 2>&1; then
4893     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4894     lt_cv_file_magic_cmd='func_win32_libid'
4895   else
4896     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4897     lt_cv_file_magic_cmd='$OBJDUMP -f'
4898   fi
4899   ;;
4900
4901 darwin* | rhapsody*)
4902   lt_cv_deplibs_check_method=pass_all
4903   ;;
4904
4905 freebsd* | dragonfly*)
4906   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4907     case $host_cpu in
4908     i*86 )
4909       # Not sure whether the presence of OpenBSD here was a mistake.
4910       # Let's accept both of them until this is cleared up.
4911       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4912       lt_cv_file_magic_cmd=/usr/bin/file
4913       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4914       ;;
4915     esac
4916   else
4917     lt_cv_deplibs_check_method=pass_all
4918   fi
4919   ;;
4920
4921 gnu*)
4922   lt_cv_deplibs_check_method=pass_all
4923   ;;
4924
4925 hpux10.20* | hpux11*)
4926   lt_cv_file_magic_cmd=/usr/bin/file
4927   case $host_cpu in
4928   ia64*)
4929     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4930     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4931     ;;
4932   hppa*64*)
4933     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4934     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4935     ;;
4936   *)
4937     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4938     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4939     ;;
4940   esac
4941   ;;
4942
4943 interix[3-9]*)
4944   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4945   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4946   ;;
4947
4948 irix5* | irix6* | nonstopux*)
4949   case $LD in
4950   *-32|*"-32 ") libmagic=32-bit;;
4951   *-n32|*"-n32 ") libmagic=N32;;
4952   *-64|*"-64 ") libmagic=64-bit;;
4953   *) libmagic=never-match;;
4954   esac
4955   lt_cv_deplibs_check_method=pass_all
4956   ;;
4957
4958 # This must be Linux ELF.
4959 linux* | k*bsd*-gnu)
4960   lt_cv_deplibs_check_method=pass_all
4961   ;;
4962
4963 netbsd* | netbsdelf*-gnu)
4964   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4965     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4966   else
4967     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4968   fi
4969   ;;
4970
4971 newos6*)
4972   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4973   lt_cv_file_magic_cmd=/usr/bin/file
4974   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4975   ;;
4976
4977 nto-qnx*)
4978   lt_cv_deplibs_check_method=unknown
4979   ;;
4980
4981 openbsd*)
4982   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4983     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4984   else
4985     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4986   fi
4987   ;;
4988
4989 osf3* | osf4* | osf5*)
4990   lt_cv_deplibs_check_method=pass_all
4991   ;;
4992
4993 rdos*)
4994   lt_cv_deplibs_check_method=pass_all
4995   ;;
4996
4997 solaris*)
4998   lt_cv_deplibs_check_method=pass_all
4999   ;;
5000
5001 sysv4 | sysv4.3*)
5002   case $host_vendor in
5003   motorola)
5004     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]'
5005     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5006     ;;
5007   ncr)
5008     lt_cv_deplibs_check_method=pass_all
5009     ;;
5010   sequent)
5011     lt_cv_file_magic_cmd='/bin/file'
5012     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5013     ;;
5014   sni)
5015     lt_cv_file_magic_cmd='/bin/file'
5016     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5017     lt_cv_file_magic_test_file=/lib/libc.so
5018     ;;
5019   siemens)
5020     lt_cv_deplibs_check_method=pass_all
5021     ;;
5022   pc)
5023     lt_cv_deplibs_check_method=pass_all
5024     ;;
5025   esac
5026   ;;
5027
5028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5029   lt_cv_deplibs_check_method=pass_all
5030   ;;
5031 esac
5032
5033 fi
5034 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5035 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5036 file_magic_cmd=$lt_cv_file_magic_cmd
5037 deplibs_check_method=$lt_cv_deplibs_check_method
5038 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5039
5040
5041
5042
5043 # If no C compiler was specified, use CC.
5044 LTCC=${LTCC-"$CC"}
5045
5046 # If no C compiler flags were specified, use CFLAGS.
5047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5048
5049 # Allow CC to be a program name with arguments.
5050 compiler=$CC
5051
5052
5053
5054 # Check whether --enable-libtool-lock was given.
5055 if test "${enable_libtool_lock+set}" = set; then
5056   enableval=$enable_libtool_lock;
5057 fi
5058
5059 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5060
5061 # Some flags need to be propagated to the compiler or linker for good
5062 # libtool support.
5063 case $host in
5064 ia64-*-hpux*)
5065   # Find out which ABI we are using.
5066   echo 'int i;' > conftest.$ac_ext
5067   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068   (eval $ac_compile) 2>&5
5069   ac_status=$?
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); }; then
5072     case `/usr/bin/file conftest.$ac_objext` in
5073     *ELF-32*)
5074       HPUX_IA64_MODE="32"
5075       ;;
5076     *ELF-64*)
5077       HPUX_IA64_MODE="64"
5078       ;;
5079     esac
5080   fi
5081   rm -rf conftest*
5082   ;;
5083 *-*-irix6*)
5084   # Find out which ABI we are using.
5085   echo '#line 5085 "configure"' > conftest.$ac_ext
5086   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087   (eval $ac_compile) 2>&5
5088   ac_status=$?
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); }; then
5091    if test "$lt_cv_prog_gnu_ld" = yes; then
5092     case `/usr/bin/file conftest.$ac_objext` in
5093     *32-bit*)
5094       LD="${LD-ld} -melf32bsmip"
5095       ;;
5096     *N32*)
5097       LD="${LD-ld} -melf32bmipn32"
5098       ;;
5099     *64-bit*)
5100       LD="${LD-ld} -melf64bmip"
5101       ;;
5102     esac
5103    else
5104     case `/usr/bin/file conftest.$ac_objext` in
5105     *32-bit*)
5106       LD="${LD-ld} -32"
5107       ;;
5108     *N32*)
5109       LD="${LD-ld} -n32"
5110       ;;
5111     *64-bit*)
5112       LD="${LD-ld} -64"
5113       ;;
5114     esac
5115    fi
5116   fi
5117   rm -rf conftest*
5118   ;;
5119
5120 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5121 s390*-*linux*|sparc*-*linux*)
5122   # Find out which ABI we are using.
5123   echo 'int i;' > conftest.$ac_ext
5124   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125   (eval $ac_compile) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }; then
5129     case `/usr/bin/file conftest.o` in
5130     *32-bit*)
5131       case $host in
5132         x86_64-*kfreebsd*-gnu)
5133           LD="${LD-ld} -m elf_i386_fbsd"
5134           ;;
5135         x86_64-*linux*)
5136           LD="${LD-ld} -m elf_i386"
5137           ;;
5138         ppc64-*linux*|powerpc64-*linux*)
5139           LD="${LD-ld} -m elf32ppclinux"
5140           ;;
5141         s390x-*linux*)
5142           LD="${LD-ld} -m elf_s390"
5143           ;;
5144         sparc64-*linux*)
5145           LD="${LD-ld} -m elf32_sparc"
5146           ;;
5147       esac
5148       ;;
5149     *64-bit*)
5150       case $host in
5151         x86_64-*kfreebsd*-gnu)
5152           LD="${LD-ld} -m elf_x86_64_fbsd"
5153           ;;
5154         x86_64-*linux*)
5155           LD="${LD-ld} -m elf_x86_64"
5156           ;;
5157         ppc*-*linux*|powerpc*-*linux*)
5158           LD="${LD-ld} -m elf64ppc"
5159           ;;
5160         s390*-*linux*)
5161           LD="${LD-ld} -m elf64_s390"
5162           ;;
5163         sparc*-*linux*)
5164           LD="${LD-ld} -m elf64_sparc"
5165           ;;
5166       esac
5167       ;;
5168     esac
5169   fi
5170   rm -rf conftest*
5171   ;;
5172
5173 *-*-sco3.2v5*)
5174   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5175   SAVE_CFLAGS="$CFLAGS"
5176   CFLAGS="$CFLAGS -belf"
5177   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5178 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5179 if test "${lt_cv_cc_needs_belf+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   ac_ext=c
5183 ac_cpp='$CPP $CPPFLAGS'
5184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5187
5188      cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h.  */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h.  */
5194
5195 int
5196 main ()
5197 {
5198
5199   ;
5200   return 0;
5201 }
5202 _ACEOF
5203 rm -f conftest.$ac_objext conftest$ac_exeext
5204 if { (ac_try="$ac_link"
5205 case "(($ac_try" in
5206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207   *) ac_try_echo=$ac_try;;
5208 esac
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210   (eval "$ac_link") 2>conftest.er1
5211   ac_status=$?
5212   grep -v '^ *+' conftest.er1 >conftest.err
5213   rm -f conftest.er1
5214   cat conftest.err >&5
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); } && {
5217          test -z "$ac_c_werror_flag" ||
5218          test ! -s conftest.err
5219        } && test -s conftest$ac_exeext &&
5220        $as_test_x conftest$ac_exeext; then
5221   lt_cv_cc_needs_belf=yes
5222 else
5223   echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226         lt_cv_cc_needs_belf=no
5227 fi
5228
5229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5230       conftest$ac_exeext conftest.$ac_ext
5231      ac_ext=c
5232 ac_cpp='$CPP $CPPFLAGS'
5233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5236
5237 fi
5238 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5239 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5240   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5241     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5242     CFLAGS="$SAVE_CFLAGS"
5243   fi
5244   ;;
5245 sparc*-*solaris*)
5246   # Find out which ABI we are using.
5247   echo 'int i;' > conftest.$ac_ext
5248   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249   (eval $ac_compile) 2>&5
5250   ac_status=$?
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); }; then
5253     case `/usr/bin/file conftest.o` in
5254     *64-bit*)
5255       case $lt_cv_prog_gnu_ld in
5256       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5257       *)
5258         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5259           LD="${LD-ld} -64"
5260         fi
5261         ;;
5262       esac
5263       ;;
5264     esac
5265   fi
5266   rm -rf conftest*
5267   ;;
5268
5269
5270 esac
5271
5272 need_locks="$enable_libtool_lock"
5273
5274
5275
5276 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5278 if test "${ac_cv_header_stdc+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h.  */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h.  */
5287 #include <stdlib.h>
5288 #include <stdarg.h>
5289 #include <string.h>
5290 #include <float.h>
5291
5292 int
5293 main ()
5294 {
5295
5296   ;
5297   return 0;
5298 }
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5302 case "(($ac_try" in
5303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304   *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307   (eval "$ac_compile") 2>conftest.er1
5308   ac_status=$?
5309   grep -v '^ *+' conftest.er1 >conftest.err
5310   rm -f conftest.er1
5311   cat conftest.err >&5
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } && {
5314          test -z "$ac_c_werror_flag" ||
5315          test ! -s conftest.err
5316        } && test -s conftest.$ac_objext; then
5317   ac_cv_header_stdc=yes
5318 else
5319   echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322         ac_cv_header_stdc=no
5323 fi
5324
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326
5327 if test $ac_cv_header_stdc = yes; then
5328   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5329   cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335 #include <string.h>
5336
5337 _ACEOF
5338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339   $EGREP "memchr" >/dev/null 2>&1; then
5340   :
5341 else
5342   ac_cv_header_stdc=no
5343 fi
5344 rm -f conftest*
5345
5346 fi
5347
5348 if test $ac_cv_header_stdc = yes; then
5349   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5350   cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356 #include <stdlib.h>
5357
5358 _ACEOF
5359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360   $EGREP "free" >/dev/null 2>&1; then
5361   :
5362 else
5363   ac_cv_header_stdc=no
5364 fi
5365 rm -f conftest*
5366
5367 fi
5368
5369 if test $ac_cv_header_stdc = yes; then
5370   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5371   if test "$cross_compiling" = yes; then
5372   :
5373 else
5374   cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h.  */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h.  */
5380 #include <ctype.h>
5381 #include <stdlib.h>
5382 #if ((' ' & 0x0FF) == 0x020)
5383 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5384 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5385 #else
5386 # define ISLOWER(c) \
5387                    (('a' <= (c) && (c) <= 'i') \
5388                      || ('j' <= (c) && (c) <= 'r') \
5389                      || ('s' <= (c) && (c) <= 'z'))
5390 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5391 #endif
5392
5393 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5394 int
5395 main ()
5396 {
5397   int i;
5398   for (i = 0; i < 256; i++)
5399     if (XOR (islower (i), ISLOWER (i))
5400         || toupper (i) != TOUPPER (i))
5401       return 2;
5402   return 0;
5403 }
5404 _ACEOF
5405 rm -f conftest$ac_exeext
5406 if { (ac_try="$ac_link"
5407 case "(($ac_try" in
5408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5409   *) ac_try_echo=$ac_try;;
5410 esac
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412   (eval "$ac_link") 2>&5
5413   ac_status=$?
5414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5416   { (case "(($ac_try" in
5417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418   *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421   (eval "$ac_try") 2>&5
5422   ac_status=$?
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); }; }; then
5425   :
5426 else
5427   echo "$as_me: program exited with status $ac_status" >&5
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5430
5431 ( exit $ac_status )
5432 ac_cv_header_stdc=no
5433 fi
5434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5435 fi
5436
5437
5438 fi
5439 fi
5440 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5441 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5442 if test $ac_cv_header_stdc = yes; then
5443
5444 cat >>confdefs.h <<\_ACEOF
5445 #define STDC_HEADERS 1
5446 _ACEOF
5447
5448 fi
5449
5450 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5461                   inttypes.h stdint.h unistd.h
5462 do
5463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5467   echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469   cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 $ac_includes_default
5476
5477 #include <$ac_header>
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (ac_try="$ac_compile"
5481 case "(($ac_try" in
5482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483   *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486   (eval "$ac_compile") 2>conftest.er1
5487   ac_status=$?
5488   grep -v '^ *+' conftest.er1 >conftest.err
5489   rm -f conftest.er1
5490   cat conftest.err >&5
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); } && {
5493          test -z "$ac_c_werror_flag" ||
5494          test ! -s conftest.err
5495        } && test -s conftest.$ac_objext; then
5496   eval "$as_ac_Header=yes"
5497 else
5498   echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501         eval "$as_ac_Header=no"
5502 fi
5503
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 fi
5506 ac_res=`eval echo '${'$as_ac_Header'}'`
5507                { echo "$as_me:$LINENO: result: $ac_res" >&5
5508 echo "${ECHO_T}$ac_res" >&6; }
5509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5510   cat >>confdefs.h <<_ACEOF
5511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5512 _ACEOF
5513
5514 fi
5515
5516 done
5517
5518
5519
5520 for ac_header in dlfcn.h
5521 do
5522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5524   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5527   echo $ECHO_N "(cached) $ECHO_C" >&6
5528 fi
5529 ac_res=`eval echo '${'$as_ac_Header'}'`
5530                { echo "$as_me:$LINENO: result: $ac_res" >&5
5531 echo "${ECHO_T}$ac_res" >&6; }
5532 else
5533   # Is the header compilable?
5534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h.  */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h.  */
5542 $ac_includes_default
5543 #include <$ac_header>
5544 _ACEOF
5545 rm -f conftest.$ac_objext
5546 if { (ac_try="$ac_compile"
5547 case "(($ac_try" in
5548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549   *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552   (eval "$ac_compile") 2>conftest.er1
5553   ac_status=$?
5554   grep -v '^ *+' conftest.er1 >conftest.err
5555   rm -f conftest.er1
5556   cat conftest.err >&5
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); } && {
5559          test -z "$ac_c_werror_flag" ||
5560          test ! -s conftest.err
5561        } && test -s conftest.$ac_objext; then
5562   ac_header_compiler=yes
5563 else
5564   echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5566
5567         ac_header_compiler=no
5568 fi
5569
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5572 echo "${ECHO_T}$ac_header_compiler" >&6; }
5573
5574 # Is the header present?
5575 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h.  */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h.  */
5583 #include <$ac_header>
5584 _ACEOF
5585 if { (ac_try="$ac_cpp conftest.$ac_ext"
5586 case "(($ac_try" in
5587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588   *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5592   ac_status=$?
5593   grep -v '^ *+' conftest.er1 >conftest.err
5594   rm -f conftest.er1
5595   cat conftest.err >&5
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); } >/dev/null && {
5598          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5599          test ! -s conftest.err
5600        }; then
5601   ac_header_preproc=yes
5602 else
5603   echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606   ac_header_preproc=no
5607 fi
5608
5609 rm -f conftest.err conftest.$ac_ext
5610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5611 echo "${ECHO_T}$ac_header_preproc" >&6; }
5612
5613 # So?  What about this header?
5614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5615   yes:no: )
5616     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5620     ac_header_preproc=yes
5621     ;;
5622   no:yes:* )
5623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5625     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5626 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5627     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5629     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5630 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5633     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5635     ( cat <<\_ASBOX
5636 ## ------------------------------------ ##
5637 ## Report this to opensource@google.com ##
5638 ## ------------------------------------ ##
5639 _ASBOX
5640      ) | sed "s/^/$as_me: WARNING:     /" >&2
5641     ;;
5642 esac
5643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   eval "$as_ac_Header=\$ac_header_preproc"
5649 fi
5650 ac_res=`eval echo '${'$as_ac_Header'}'`
5651                { echo "$as_me:$LINENO: result: $ac_res" >&5
5652 echo "${ECHO_T}$ac_res" >&6; }
5653
5654 fi
5655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5656   cat >>confdefs.h <<_ACEOF
5657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5658 _ACEOF
5659
5660 fi
5661
5662 done
5663
5664
5665
5666 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5667     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5668     (test "X$CXX" != "Xg++"))) ; then
5669   ac_ext=cpp
5670 ac_cpp='$CXXCPP $CPPFLAGS'
5671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5674 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5675 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5676 if test -z "$CXXCPP"; then
5677   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680       # Double quotes because CXXCPP needs to be expanded
5681     for CXXCPP in "$CXX -E" "/lib/cpp"
5682     do
5683       ac_preproc_ok=false
5684 for ac_cxx_preproc_warn_flag in '' yes
5685 do
5686   # Use a header file that comes with gcc, so configuring glibc
5687   # with a fresh cross-compiler works.
5688   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5689   # <limits.h> exists even on freestanding compilers.
5690   # On the NeXT, cc -E runs the code through the compiler's parser,
5691   # not just through cpp. "Syntax error" is here to catch this case.
5692   cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5698 #ifdef __STDC__
5699 # include <limits.h>
5700 #else
5701 # include <assert.h>
5702 #endif
5703                      Syntax error
5704 _ACEOF
5705 if { (ac_try="$ac_cpp conftest.$ac_ext"
5706 case "(($ac_try" in
5707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708   *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5712   ac_status=$?
5713   grep -v '^ *+' conftest.er1 >conftest.err
5714   rm -f conftest.er1
5715   cat conftest.err >&5
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); } >/dev/null && {
5718          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5719          test ! -s conftest.err
5720        }; then
5721   :
5722 else
5723   echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5725
5726   # Broken: fails on valid input.
5727 continue
5728 fi
5729
5730 rm -f conftest.err conftest.$ac_ext
5731
5732   # OK, works on sane cases.  Now check whether nonexistent headers
5733   # can be detected and how.
5734   cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h.  */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h.  */
5740 #include <ac_nonexistent.h>
5741 _ACEOF
5742 if { (ac_try="$ac_cpp conftest.$ac_ext"
5743 case "(($ac_try" in
5744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745   *) ac_try_echo=$ac_try;;
5746 esac
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5749   ac_status=$?
5750   grep -v '^ *+' conftest.er1 >conftest.err
5751   rm -f conftest.er1
5752   cat conftest.err >&5
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); } >/dev/null && {
5755          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5756          test ! -s conftest.err
5757        }; then
5758   # Broken: success on invalid input.
5759 continue
5760 else
5761   echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764   # Passes both tests.
5765 ac_preproc_ok=:
5766 break
5767 fi
5768
5769 rm -f conftest.err conftest.$ac_ext
5770
5771 done
5772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773 rm -f conftest.err conftest.$ac_ext
5774 if $ac_preproc_ok; then
5775   break
5776 fi
5777
5778     done
5779     ac_cv_prog_CXXCPP=$CXXCPP
5780
5781 fi
5782   CXXCPP=$ac_cv_prog_CXXCPP
5783 else
5784   ac_cv_prog_CXXCPP=$CXXCPP
5785 fi
5786 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5787 echo "${ECHO_T}$CXXCPP" >&6; }
5788 ac_preproc_ok=false
5789 for ac_cxx_preproc_warn_flag in '' yes
5790 do
5791   # Use a header file that comes with gcc, so configuring glibc
5792   # with a fresh cross-compiler works.
5793   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5794   # <limits.h> exists even on freestanding compilers.
5795   # On the NeXT, cc -E runs the code through the compiler's parser,
5796   # not just through cpp. "Syntax error" is here to catch this case.
5797   cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h.  */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h.  */
5803 #ifdef __STDC__
5804 # include <limits.h>
5805 #else
5806 # include <assert.h>
5807 #endif
5808                      Syntax error
5809 _ACEOF
5810 if { (ac_try="$ac_cpp conftest.$ac_ext"
5811 case "(($ac_try" in
5812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813   *) ac_try_echo=$ac_try;;
5814 esac
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5817   ac_status=$?
5818   grep -v '^ *+' conftest.er1 >conftest.err
5819   rm -f conftest.er1
5820   cat conftest.err >&5
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); } >/dev/null && {
5823          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5824          test ! -s conftest.err
5825        }; then
5826   :
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831   # Broken: fails on valid input.
5832 continue
5833 fi
5834
5835 rm -f conftest.err conftest.$ac_ext
5836
5837   # OK, works on sane cases.  Now check whether nonexistent headers
5838   # can be detected and how.
5839   cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h.  */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h.  */
5845 #include <ac_nonexistent.h>
5846 _ACEOF
5847 if { (ac_try="$ac_cpp conftest.$ac_ext"
5848 case "(($ac_try" in
5849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850   *) ac_try_echo=$ac_try;;
5851 esac
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5854   ac_status=$?
5855   grep -v '^ *+' conftest.er1 >conftest.err
5856   rm -f conftest.er1
5857   cat conftest.err >&5
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); } >/dev/null && {
5860          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5861          test ! -s conftest.err
5862        }; then
5863   # Broken: success on invalid input.
5864 continue
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869   # Passes both tests.
5870 ac_preproc_ok=:
5871 break
5872 fi
5873
5874 rm -f conftest.err conftest.$ac_ext
5875
5876 done
5877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5878 rm -f conftest.err conftest.$ac_ext
5879 if $ac_preproc_ok; then
5880   :
5881 else
5882   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5883 See \`config.log' for more details." >&5
5884 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5885 See \`config.log' for more details." >&2;}
5886    { (exit 1); exit 1; }; }
5887 fi
5888
5889 ac_ext=cpp
5890 ac_cpp='$CXXCPP $CPPFLAGS'
5891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894
5895 fi
5896
5897 ac_ext=f
5898 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5899 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5901 if test -n "$ac_tool_prefix"; then
5902   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5903   do
5904     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908 if test "${ac_cv_prog_F77+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   if test -n "$F77"; then
5912   ac_cv_prog_F77="$F77" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917   IFS=$as_save_IFS
5918   test -z "$as_dir" && as_dir=.
5919   for ac_exec_ext in '' $ac_executable_extensions; do
5920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923     break 2
5924   fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 F77=$ac_cv_prog_F77
5932 if test -n "$F77"; then
5933   { echo "$as_me:$LINENO: result: $F77" >&5
5934 echo "${ECHO_T}$F77" >&6; }
5935 else
5936   { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5938 fi
5939
5940
5941     test -n "$F77" && break
5942   done
5943 fi
5944 if test -z "$F77"; then
5945   ac_ct_F77=$F77
5946   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5947 do
5948   # Extract the first word of "$ac_prog", so it can be a program name with args.
5949 set dummy $ac_prog; ac_word=$2
5950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5952 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   if test -n "$ac_ct_F77"; then
5956   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963   for ac_exec_ext in '' $ac_executable_extensions; do
5964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965     ac_cv_prog_ac_ct_F77="$ac_prog"
5966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5976 if test -n "$ac_ct_F77"; then
5977   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5978 echo "${ECHO_T}$ac_ct_F77" >&6; }
5979 else
5980   { echo "$as_me:$LINENO: result: no" >&5
5981 echo "${ECHO_T}no" >&6; }
5982 fi
5983
5984
5985   test -n "$ac_ct_F77" && break
5986 done
5987
5988   if test "x$ac_ct_F77" = x; then
5989     F77=""
5990   else
5991     case $cross_compiling:$ac_tool_warned in
5992 yes:)
5993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5994 whose name does not start with the host triplet.  If you think this
5995 configuration is useful to you, please write to autoconf@gnu.org." >&5
5996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5997 whose name does not start with the host triplet.  If you think this
5998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5999 ac_tool_warned=yes ;;
6000 esac
6001     F77=$ac_ct_F77
6002   fi
6003 fi
6004
6005
6006 # Provide some information about the compiler.
6007 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6008 ac_compiler=`set X $ac_compile; echo $2`
6009 { (ac_try="$ac_compiler --version >&5"
6010 case "(($ac_try" in
6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012   *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015   (eval "$ac_compiler --version >&5") 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }
6019 { (ac_try="$ac_compiler -v >&5"
6020 case "(($ac_try" in
6021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022   *) ac_try_echo=$ac_try;;
6023 esac
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025   (eval "$ac_compiler -v >&5") 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }
6029 { (ac_try="$ac_compiler -V >&5"
6030 case "(($ac_try" in
6031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032   *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035   (eval "$ac_compiler -V >&5") 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }
6039 rm -f a.out
6040
6041 # If we don't use `.F' as extension, the preprocessor is not run on the
6042 # input file.  (Note that this only needs to work for GNU compilers.)
6043 ac_save_ext=$ac_ext
6044 ac_ext=F
6045 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6046 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6047 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   cat >conftest.$ac_ext <<_ACEOF
6051       program main
6052 #ifndef __GNUC__
6053        choke me
6054 #endif
6055
6056       end
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (ac_try="$ac_compile"
6060 case "(($ac_try" in
6061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062   *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065   (eval "$ac_compile") 2>conftest.er1
6066   ac_status=$?
6067   grep -v '^ *+' conftest.er1 >conftest.err
6068   rm -f conftest.er1
6069   cat conftest.err >&5
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); } && {
6072          test -z "$ac_f77_werror_flag" ||
6073          test ! -s conftest.err
6074        } && test -s conftest.$ac_objext; then
6075   ac_compiler_gnu=yes
6076 else
6077   echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080         ac_compiler_gnu=no
6081 fi
6082
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6085
6086 fi
6087 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6088 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6089 ac_ext=$ac_save_ext
6090 ac_test_FFLAGS=${FFLAGS+set}
6091 ac_save_FFLAGS=$FFLAGS
6092 FFLAGS=
6093 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6094 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6095 if test "${ac_cv_prog_f77_g+set}" = set; then
6096   echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098   FFLAGS=-g
6099 cat >conftest.$ac_ext <<_ACEOF
6100       program main
6101
6102       end
6103 _ACEOF
6104 rm -f conftest.$ac_objext
6105 if { (ac_try="$ac_compile"
6106 case "(($ac_try" in
6107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108   *) ac_try_echo=$ac_try;;
6109 esac
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111   (eval "$ac_compile") 2>conftest.er1
6112   ac_status=$?
6113   grep -v '^ *+' conftest.er1 >conftest.err
6114   rm -f conftest.er1
6115   cat conftest.err >&5
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); } && {
6118          test -z "$ac_f77_werror_flag" ||
6119          test ! -s conftest.err
6120        } && test -s conftest.$ac_objext; then
6121   ac_cv_prog_f77_g=yes
6122 else
6123   echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6125
6126         ac_cv_prog_f77_g=no
6127 fi
6128
6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130
6131 fi
6132 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6133 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6134 if test "$ac_test_FFLAGS" = set; then
6135   FFLAGS=$ac_save_FFLAGS
6136 elif test $ac_cv_prog_f77_g = yes; then
6137   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6138     FFLAGS="-g -O2"
6139   else
6140     FFLAGS="-g"
6141   fi
6142 else
6143   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6144     FFLAGS="-O2"
6145   else
6146     FFLAGS=
6147   fi
6148 fi
6149
6150 G77=`test $ac_compiler_gnu = yes && echo yes`
6151 ac_ext=cpp
6152 ac_cpp='$CXXCPP $CPPFLAGS'
6153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6156
6157
6158
6159 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6160 # find the maximum length of command line arguments
6161 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6162 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6163 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6164   echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166     i=0
6167   teststring="ABCD"
6168
6169   case $build_os in
6170   msdosdjgpp*)
6171     # On DJGPP, this test can blow up pretty badly due to problems in libc
6172     # (any single argument exceeding 2000 bytes causes a buffer overrun
6173     # during glob expansion).  Even if it were fixed, the result of this
6174     # check would be larger than it should be.
6175     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6176     ;;
6177
6178   gnu*)
6179     # Under GNU Hurd, this test is not required because there is
6180     # no limit to the length of command line arguments.
6181     # Libtool will interpret -1 as no limit whatsoever
6182     lt_cv_sys_max_cmd_len=-1;
6183     ;;
6184
6185   cygwin* | mingw*)
6186     # On Win9x/ME, this test blows up -- it succeeds, but takes
6187     # about 5 minutes as the teststring grows exponentially.
6188     # Worse, since 9x/ME are not pre-emptively multitasking,
6189     # you end up with a "frozen" computer, even though with patience
6190     # the test eventually succeeds (with a max line length of 256k).
6191     # Instead, let's just punt: use the minimum linelength reported by
6192     # all of the supported platforms: 8192 (on NT/2K/XP).
6193     lt_cv_sys_max_cmd_len=8192;
6194     ;;
6195
6196   amigaos*)
6197     # On AmigaOS with pdksh, this test takes hours, literally.
6198     # So we just punt and use a minimum line length of 8192.
6199     lt_cv_sys_max_cmd_len=8192;
6200     ;;
6201
6202   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6203     # This has been around since 386BSD, at least.  Likely further.
6204     if test -x /sbin/sysctl; then
6205       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6206     elif test -x /usr/sbin/sysctl; then
6207       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6208     else
6209       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6210     fi
6211     # And add a safety zone
6212     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6213     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6214     ;;
6215
6216   interix*)
6217     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6218     lt_cv_sys_max_cmd_len=196608
6219     ;;
6220
6221   osf*)
6222     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6223     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6224     # nice to cause kernel panics so lets avoid the loop below.
6225     # First set a reasonable default.
6226     lt_cv_sys_max_cmd_len=16384
6227     #
6228     if test -x /sbin/sysconfig; then
6229       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6230         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6231       esac
6232     fi
6233     ;;
6234   sco3.2v5*)
6235     lt_cv_sys_max_cmd_len=102400
6236     ;;
6237   sysv5* | sco5v6* | sysv4.2uw2*)
6238     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6239     if test -n "$kargmax"; then
6240       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6241     else
6242       lt_cv_sys_max_cmd_len=32768
6243     fi
6244     ;;
6245   *)
6246     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6247     if test -n "$lt_cv_sys_max_cmd_len"; then
6248       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6249       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6250     else
6251       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6252       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6253                = "XX$teststring") >/dev/null 2>&1 &&
6254               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6255               lt_cv_sys_max_cmd_len=$new_result &&
6256               test $i != 17 # 1/2 MB should be enough
6257       do
6258         i=`expr $i + 1`
6259         teststring=$teststring$teststring
6260       done
6261       teststring=
6262       # Add a significant safety factor because C++ compilers can tack on massive
6263       # amounts of additional arguments before passing them to the linker.
6264       # It appears as though 1/2 is a usable value.
6265       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6266     fi
6267     ;;
6268   esac
6269
6270 fi
6271
6272 if test -n $lt_cv_sys_max_cmd_len ; then
6273   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6274 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6275 else
6276   { echo "$as_me:$LINENO: result: none" >&5
6277 echo "${ECHO_T}none" >&6; }
6278 fi
6279
6280
6281
6282
6283
6284 # Check for command to grab the raw symbol name followed by C symbol from nm.
6285 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6286 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6287 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6288   echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290
6291 # These are sane defaults that work on at least a few old systems.
6292 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6293
6294 # Character class describing NM global symbol codes.
6295 symcode='[BCDEGRST]'
6296
6297 # Regexp to match symbols that can be accessed directly from C.
6298 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6299
6300 # Transform an extracted symbol line into a proper C declaration
6301 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6302
6303 # Transform an extracted symbol line into symbol name and symbol address
6304 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6305
6306 # Define system-specific variables.
6307 case $host_os in
6308 aix*)
6309   symcode='[BCDT]'
6310   ;;
6311 cygwin* | mingw* | pw32*)
6312   symcode='[ABCDGISTW]'
6313   ;;
6314 hpux*) # Its linker distinguishes data from code symbols
6315   if test "$host_cpu" = ia64; then
6316     symcode='[ABCDEGRST]'
6317   fi
6318   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6319   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6320   ;;
6321 linux* | k*bsd*-gnu)
6322   if test "$host_cpu" = ia64; then
6323     symcode='[ABCDGIRSTW]'
6324     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6325     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6326   fi
6327   ;;
6328 irix* | nonstopux*)
6329   symcode='[BCDEGRST]'
6330   ;;
6331 osf*)
6332   symcode='[BCDEGQRST]'
6333   ;;
6334 solaris*)
6335   symcode='[BDRT]'
6336   ;;
6337 sco3.2v5*)
6338   symcode='[DT]'
6339   ;;
6340 sysv4.2uw2*)
6341   symcode='[DT]'
6342   ;;
6343 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6344   symcode='[ABDT]'
6345   ;;
6346 sysv4)
6347   symcode='[DFNSTU]'
6348   ;;
6349 esac
6350
6351 # Handle CRLF in mingw tool chain
6352 opt_cr=
6353 case $build_os in
6354 mingw*)
6355   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6356   ;;
6357 esac
6358
6359 # If we're using GNU nm, then use its standard symbol codes.
6360 case `$NM -V 2>&1` in
6361 *GNU* | *'with BFD'*)
6362   symcode='[ABCDGIRSTW]' ;;
6363 esac
6364
6365 # Try without a prefix undercore, then with it.
6366 for ac_symprfx in "" "_"; do
6367
6368   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6369   symxfrm="\\1 $ac_symprfx\\2 \\2"
6370
6371   # Write the raw and C identifiers.
6372   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6373
6374   # Check to see that the pipe works correctly.
6375   pipe_works=no
6376
6377   rm -f conftest*
6378   cat > conftest.$ac_ext <<EOF
6379 #ifdef __cplusplus
6380 extern "C" {
6381 #endif
6382 char nm_test_var;
6383 void nm_test_func(){}
6384 #ifdef __cplusplus
6385 }
6386 #endif
6387 int main(){nm_test_var='a';nm_test_func();return(0);}
6388 EOF
6389
6390   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391   (eval $ac_compile) 2>&5
6392   ac_status=$?
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); }; then
6395     # Now try to grab the symbols.
6396     nlist=conftest.nm
6397     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6398   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6399   ac_status=$?
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); } && test -s "$nlist"; then
6402       # Try sorting and uniquifying the output.
6403       if sort "$nlist" | uniq > "$nlist"T; then
6404         mv -f "$nlist"T "$nlist"
6405       else
6406         rm -f "$nlist"T
6407       fi
6408
6409       # Make sure that we snagged all the symbols we need.
6410       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6411         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6412           cat <<EOF > conftest.$ac_ext
6413 #ifdef __cplusplus
6414 extern "C" {
6415 #endif
6416
6417 EOF
6418           # Now generate the symbol file.
6419           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6420
6421           cat <<EOF >> conftest.$ac_ext
6422 #if defined (__STDC__) && __STDC__
6423 # define lt_ptr_t void *
6424 #else
6425 # define lt_ptr_t char *
6426 # define const
6427 #endif
6428
6429 /* The mapping between symbol names and symbols. */
6430 const struct {
6431   const char *name;
6432   lt_ptr_t address;
6433 }
6434 lt_preloaded_symbols[] =
6435 {
6436 EOF
6437           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6438           cat <<\EOF >> conftest.$ac_ext
6439   {0, (lt_ptr_t) 0}
6440 };
6441
6442 #ifdef __cplusplus
6443 }
6444 #endif
6445 EOF
6446           # Now try linking the two files.
6447           mv conftest.$ac_objext conftstm.$ac_objext
6448           lt_save_LIBS="$LIBS"
6449           lt_save_CFLAGS="$CFLAGS"
6450           LIBS="conftstm.$ac_objext"
6451           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6452           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6453   (eval $ac_link) 2>&5
6454   ac_status=$?
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6457             pipe_works=yes
6458           fi
6459           LIBS="$lt_save_LIBS"
6460           CFLAGS="$lt_save_CFLAGS"
6461         else
6462           echo "cannot find nm_test_func in $nlist" >&5
6463         fi
6464       else
6465         echo "cannot find nm_test_var in $nlist" >&5
6466       fi
6467     else
6468       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6469     fi
6470   else
6471     echo "$progname: failed program was:" >&5
6472     cat conftest.$ac_ext >&5
6473   fi
6474   rm -rf conftest* conftst*
6475
6476   # Do not use the global_symbol_pipe unless it works.
6477   if test "$pipe_works" = yes; then
6478     break
6479   else
6480     lt_cv_sys_global_symbol_pipe=
6481   fi
6482 done
6483
6484 fi
6485
6486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6487   lt_cv_sys_global_symbol_to_cdecl=
6488 fi
6489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6490   { echo "$as_me:$LINENO: result: failed" >&5
6491 echo "${ECHO_T}failed" >&6; }
6492 else
6493   { echo "$as_me:$LINENO: result: ok" >&5
6494 echo "${ECHO_T}ok" >&6; }
6495 fi
6496
6497 { echo "$as_me:$LINENO: checking for objdir" >&5
6498 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6499 if test "${lt_cv_objdir+set}" = set; then
6500   echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502   rm -f .libs 2>/dev/null
6503 mkdir .libs 2>/dev/null
6504 if test -d .libs; then
6505   lt_cv_objdir=.libs
6506 else
6507   # MS-DOS does not allow filenames that begin with a dot.
6508   lt_cv_objdir=_libs
6509 fi
6510 rmdir .libs 2>/dev/null
6511 fi
6512 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6513 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6514 objdir=$lt_cv_objdir
6515
6516
6517
6518
6519
6520 case $host_os in
6521 aix3*)
6522   # AIX sometimes has problems with the GCC collect2 program.  For some
6523   # reason, if we set the COLLECT_NAMES environment variable, the problems
6524   # vanish in a puff of smoke.
6525   if test "X${COLLECT_NAMES+set}" != Xset; then
6526     COLLECT_NAMES=
6527     export COLLECT_NAMES
6528   fi
6529   ;;
6530 esac
6531
6532 # Sed substitution that helps us do robust quoting.  It backslashifies
6533 # metacharacters that are still active within double-quoted strings.
6534 Xsed='sed -e 1s/^X//'
6535 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6536
6537 # Same as above, but do not quote variable references.
6538 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6539
6540 # Sed substitution to delay expansion of an escaped shell variable in a
6541 # double_quote_subst'ed string.
6542 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6543
6544 # Sed substitution to avoid accidental globbing in evaled expressions
6545 no_glob_subst='s/\*/\\\*/g'
6546
6547 # Constants:
6548 rm="rm -f"
6549
6550 # Global variables:
6551 default_ofile=libtool
6552 can_build_shared=yes
6553
6554 # All known linkers require a `.a' archive for static linking (except MSVC,
6555 # which needs '.lib').
6556 libext=a
6557 ltmain="$ac_aux_dir/ltmain.sh"
6558 ofile="$default_ofile"
6559 with_gnu_ld="$lt_cv_prog_gnu_ld"
6560
6561 if test -n "$ac_tool_prefix"; then
6562   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}ar; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_prog_AR+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   if test -n "$AR"; then
6570   ac_cv_prog_AR="$AR" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575   IFS=$as_save_IFS
6576   test -z "$as_dir" && as_dir=.
6577   for ac_exec_ext in '' $ac_executable_extensions; do
6578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579     ac_cv_prog_AR="${ac_tool_prefix}ar"
6580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581     break 2
6582   fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 AR=$ac_cv_prog_AR
6590 if test -n "$AR"; then
6591   { echo "$as_me:$LINENO: result: $AR" >&5
6592 echo "${ECHO_T}$AR" >&6; }
6593 else
6594   { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6596 fi
6597
6598
6599 fi
6600 if test -z "$ac_cv_prog_AR"; then
6601   ac_ct_AR=$AR
6602   # Extract the first word of "ar", so it can be a program name with args.
6603 set dummy ar; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6607   echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609   if test -n "$ac_ct_AR"; then
6610   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6614 do
6615   IFS=$as_save_IFS
6616   test -z "$as_dir" && as_dir=.
6617   for ac_exec_ext in '' $ac_executable_extensions; do
6618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619     ac_cv_prog_ac_ct_AR="ar"
6620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621     break 2
6622   fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627 fi
6628 fi
6629 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6630 if test -n "$ac_ct_AR"; then
6631   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6632 echo "${ECHO_T}$ac_ct_AR" >&6; }
6633 else
6634   { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6636 fi
6637
6638   if test "x$ac_ct_AR" = x; then
6639     AR="false"
6640   else
6641     case $cross_compiling:$ac_tool_warned in
6642 yes:)
6643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6644 whose name does not start with the host triplet.  If you think this
6645 configuration is useful to you, please write to autoconf@gnu.org." >&5
6646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6647 whose name does not start with the host triplet.  If you think this
6648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6649 ac_tool_warned=yes ;;
6650 esac
6651     AR=$ac_ct_AR
6652   fi
6653 else
6654   AR="$ac_cv_prog_AR"
6655 fi
6656
6657 if test -n "$ac_tool_prefix"; then
6658   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_prog_RANLIB+set}" = set; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   if test -n "$RANLIB"; then
6666   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6667 else
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 for as_dir in $PATH
6670 do
6671   IFS=$as_save_IFS
6672   test -z "$as_dir" && as_dir=.
6673   for ac_exec_ext in '' $ac_executable_extensions; do
6674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6675     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677     break 2
6678   fi
6679 done
6680 done
6681 IFS=$as_save_IFS
6682
6683 fi
6684 fi
6685 RANLIB=$ac_cv_prog_RANLIB
6686 if test -n "$RANLIB"; then
6687   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6688 echo "${ECHO_T}$RANLIB" >&6; }
6689 else
6690   { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6692 fi
6693
6694
6695 fi
6696 if test -z "$ac_cv_prog_RANLIB"; then
6697   ac_ct_RANLIB=$RANLIB
6698   # Extract the first word of "ranlib", so it can be a program name with args.
6699 set dummy ranlib; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   if test -n "$ac_ct_RANLIB"; then
6706   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713   for ac_exec_ext in '' $ac_executable_extensions; do
6714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715     ac_cv_prog_ac_ct_RANLIB="ranlib"
6716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723 fi
6724 fi
6725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6726 if test -n "$ac_ct_RANLIB"; then
6727   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6728 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6729 else
6730   { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6732 fi
6733
6734   if test "x$ac_ct_RANLIB" = x; then
6735     RANLIB=":"
6736   else
6737     case $cross_compiling:$ac_tool_warned in
6738 yes:)
6739 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6740 whose name does not start with the host triplet.  If you think this
6741 configuration is useful to you, please write to autoconf@gnu.org." >&5
6742 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6743 whose name does not start with the host triplet.  If you think this
6744 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747     RANLIB=$ac_ct_RANLIB
6748   fi
6749 else
6750   RANLIB="$ac_cv_prog_RANLIB"
6751 fi
6752
6753 if test -n "$ac_tool_prefix"; then
6754   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}strip; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_prog_STRIP+set}" = set; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   if test -n "$STRIP"; then
6762   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769   for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 STRIP=$ac_cv_prog_STRIP
6782 if test -n "$STRIP"; then
6783   { echo "$as_me:$LINENO: result: $STRIP" >&5
6784 echo "${ECHO_T}$STRIP" >&6; }
6785 else
6786   { echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6; }
6788 fi
6789
6790
6791 fi
6792 if test -z "$ac_cv_prog_STRIP"; then
6793   ac_ct_STRIP=$STRIP
6794   # Extract the first word of "strip", so it can be a program name with args.
6795 set dummy strip; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801   if test -n "$ac_ct_STRIP"; then
6802   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809   for ac_exec_ext in '' $ac_executable_extensions; do
6810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811     ac_cv_prog_ac_ct_STRIP="strip"
6812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6822 if test -n "$ac_ct_STRIP"; then
6823   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6824 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6825 else
6826   { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6828 fi
6829
6830   if test "x$ac_ct_STRIP" = x; then
6831     STRIP=":"
6832   else
6833     case $cross_compiling:$ac_tool_warned in
6834 yes:)
6835 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6836 whose name does not start with the host triplet.  If you think this
6837 configuration is useful to you, please write to autoconf@gnu.org." >&5
6838 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6839 whose name does not start with the host triplet.  If you think this
6840 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843     STRIP=$ac_ct_STRIP
6844   fi
6845 else
6846   STRIP="$ac_cv_prog_STRIP"
6847 fi
6848
6849
6850 old_CC="$CC"
6851 old_CFLAGS="$CFLAGS"
6852
6853 # Set sane defaults for various variables
6854 test -z "$AR" && AR=ar
6855 test -z "$AR_FLAGS" && AR_FLAGS=cru
6856 test -z "$AS" && AS=as
6857 test -z "$CC" && CC=cc
6858 test -z "$LTCC" && LTCC=$CC
6859 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6860 test -z "$DLLTOOL" && DLLTOOL=dlltool
6861 test -z "$LD" && LD=ld
6862 test -z "$LN_S" && LN_S="ln -s"
6863 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6864 test -z "$NM" && NM=nm
6865 test -z "$SED" && SED=sed
6866 test -z "$OBJDUMP" && OBJDUMP=objdump
6867 test -z "$RANLIB" && RANLIB=:
6868 test -z "$STRIP" && STRIP=:
6869 test -z "$ac_objext" && ac_objext=o
6870
6871 # Determine commands to create old-style static archives.
6872 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6873 old_postinstall_cmds='chmod 644 $oldlib'
6874 old_postuninstall_cmds=
6875
6876 if test -n "$RANLIB"; then
6877   case $host_os in
6878   openbsd*)
6879     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6880     ;;
6881   *)
6882     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6883     ;;
6884   esac
6885   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6886 fi
6887
6888 for cc_temp in $compiler""; do
6889   case $cc_temp in
6890     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6891     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6892     \-*) ;;
6893     *) break;;
6894   esac
6895 done
6896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6897
6898
6899 # Only perform the check for file, if the check method requires it
6900 case $deplibs_check_method in
6901 file_magic*)
6902   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6903     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6904 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6905 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6906   echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908   case $MAGIC_CMD in
6909 [\\/*] |  ?:[\\/]*)
6910   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6911   ;;
6912 *)
6913   lt_save_MAGIC_CMD="$MAGIC_CMD"
6914   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6915   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6916   for ac_dir in $ac_dummy; do
6917     IFS="$lt_save_ifs"
6918     test -z "$ac_dir" && ac_dir=.
6919     if test -f $ac_dir/${ac_tool_prefix}file; then
6920       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6921       if test -n "$file_magic_test_file"; then
6922         case $deplibs_check_method in
6923         "file_magic "*)
6924           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6925           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6926           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6927             $EGREP "$file_magic_regex" > /dev/null; then
6928             :
6929           else
6930             cat <<EOF 1>&2
6931
6932 *** Warning: the command libtool uses to detect shared libraries,
6933 *** $file_magic_cmd, produces output that libtool cannot recognize.
6934 *** The result is that libtool may fail to recognize shared libraries
6935 *** as such.  This will affect the creation of libtool libraries that
6936 *** depend on shared libraries, but programs linked with such libtool
6937 *** libraries will work regardless of this problem.  Nevertheless, you
6938 *** may want to report the problem to your system manager and/or to
6939 *** bug-libtool@gnu.org
6940
6941 EOF
6942           fi ;;
6943         esac
6944       fi
6945       break
6946     fi
6947   done
6948   IFS="$lt_save_ifs"
6949   MAGIC_CMD="$lt_save_MAGIC_CMD"
6950   ;;
6951 esac
6952 fi
6953
6954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6955 if test -n "$MAGIC_CMD"; then
6956   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6957 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6958 else
6959   { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6961 fi
6962
6963 if test -z "$lt_cv_path_MAGIC_CMD"; then
6964   if test -n "$ac_tool_prefix"; then
6965     { echo "$as_me:$LINENO: checking for file" >&5
6966 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6968   echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970   case $MAGIC_CMD in
6971 [\\/*] |  ?:[\\/]*)
6972   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6973   ;;
6974 *)
6975   lt_save_MAGIC_CMD="$MAGIC_CMD"
6976   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6977   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6978   for ac_dir in $ac_dummy; do
6979     IFS="$lt_save_ifs"
6980     test -z "$ac_dir" && ac_dir=.
6981     if test -f $ac_dir/file; then
6982       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6983       if test -n "$file_magic_test_file"; then
6984         case $deplibs_check_method in
6985         "file_magic "*)
6986           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6987           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6988           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6989             $EGREP "$file_magic_regex" > /dev/null; then
6990             :
6991           else
6992             cat <<EOF 1>&2
6993
6994 *** Warning: the command libtool uses to detect shared libraries,
6995 *** $file_magic_cmd, produces output that libtool cannot recognize.
6996 *** The result is that libtool may fail to recognize shared libraries
6997 *** as such.  This will affect the creation of libtool libraries that
6998 *** depend on shared libraries, but programs linked with such libtool
6999 *** libraries will work regardless of this problem.  Nevertheless, you
7000 *** may want to report the problem to your system manager and/or to
7001 *** bug-libtool@gnu.org
7002
7003 EOF
7004           fi ;;
7005         esac
7006       fi
7007       break
7008     fi
7009   done
7010   IFS="$lt_save_ifs"
7011   MAGIC_CMD="$lt_save_MAGIC_CMD"
7012   ;;
7013 esac
7014 fi
7015
7016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7017 if test -n "$MAGIC_CMD"; then
7018   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7019 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7020 else
7021   { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7023 fi
7024
7025   else
7026     MAGIC_CMD=:
7027   fi
7028 fi
7029
7030   fi
7031   ;;
7032 esac
7033
7034
7035   case $host_os in
7036     rhapsody* | darwin*)
7037     if test -n "$ac_tool_prefix"; then
7038   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   if test -n "$DSYMUTIL"; then
7046   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051   IFS=$as_save_IFS
7052   test -z "$as_dir" && as_dir=.
7053   for ac_exec_ext in '' $ac_executable_extensions; do
7054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7055     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057     break 2
7058   fi
7059 done
7060 done
7061 IFS=$as_save_IFS
7062
7063 fi
7064 fi
7065 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7066 if test -n "$DSYMUTIL"; then
7067   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7068 echo "${ECHO_T}$DSYMUTIL" >&6; }
7069 else
7070   { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7072 fi
7073
7074
7075 fi
7076 if test -z "$ac_cv_prog_DSYMUTIL"; then
7077   ac_ct_DSYMUTIL=$DSYMUTIL
7078   # Extract the first word of "dsymutil", so it can be a program name with args.
7079 set dummy dsymutil; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   if test -n "$ac_ct_DSYMUTIL"; then
7086   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7090 do
7091   IFS=$as_save_IFS
7092   test -z "$as_dir" && as_dir=.
7093   for ac_exec_ext in '' $ac_executable_extensions; do
7094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097     break 2
7098   fi
7099 done
7100 done
7101 IFS=$as_save_IFS
7102
7103 fi
7104 fi
7105 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7106 if test -n "$ac_ct_DSYMUTIL"; then
7107   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7108 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7109 else
7110   { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7112 fi
7113
7114   if test "x$ac_ct_DSYMUTIL" = x; then
7115     DSYMUTIL=":"
7116   else
7117     case $cross_compiling:$ac_tool_warned in
7118 yes:)
7119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7120 whose name does not start with the host triplet.  If you think this
7121 configuration is useful to you, please write to autoconf@gnu.org." >&5
7122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7123 whose name does not start with the host triplet.  If you think this
7124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7125 ac_tool_warned=yes ;;
7126 esac
7127     DSYMUTIL=$ac_ct_DSYMUTIL
7128   fi
7129 else
7130   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7131 fi
7132
7133     if test -n "$ac_tool_prefix"; then
7134   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   if test -n "$NMEDIT"; then
7142   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149   for ac_exec_ext in '' $ac_executable_extensions; do
7150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 NMEDIT=$ac_cv_prog_NMEDIT
7162 if test -n "$NMEDIT"; then
7163   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7164 echo "${ECHO_T}$NMEDIT" >&6; }
7165 else
7166   { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7168 fi
7169
7170
7171 fi
7172 if test -z "$ac_cv_prog_NMEDIT"; then
7173   ac_ct_NMEDIT=$NMEDIT
7174   # Extract the first word of "nmedit", so it can be a program name with args.
7175 set dummy nmedit; ac_word=$2
7176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7179   echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181   if test -n "$ac_ct_NMEDIT"; then
7182   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189   for ac_exec_ext in '' $ac_executable_extensions; do
7190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7198
7199 fi
7200 fi
7201 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7202 if test -n "$ac_ct_NMEDIT"; then
7203   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7204 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7205 else
7206   { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7208 fi
7209
7210   if test "x$ac_ct_NMEDIT" = x; then
7211     NMEDIT=":"
7212   else
7213     case $cross_compiling:$ac_tool_warned in
7214 yes:)
7215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7216 whose name does not start with the host triplet.  If you think this
7217 configuration is useful to you, please write to autoconf@gnu.org." >&5
7218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7219 whose name does not start with the host triplet.  If you think this
7220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7221 ac_tool_warned=yes ;;
7222 esac
7223     NMEDIT=$ac_ct_NMEDIT
7224   fi
7225 else
7226   NMEDIT="$ac_cv_prog_NMEDIT"
7227 fi
7228
7229
7230     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7231 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7232 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7233   echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235   lt_cv_apple_cc_single_mod=no
7236       if test -z "${LT_MULTI_MODULE}"; then
7237    # By default we will add the -single_module flag. You can override
7238    # by either setting the environment variable LT_MULTI_MODULE
7239    # non-empty at configure time, or by adding -multi_module to the
7240    # link flags.
7241    echo "int foo(void){return 1;}" > conftest.c
7242    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7243      -dynamiclib ${wl}-single_module conftest.c
7244    if test -f libconftest.dylib; then
7245      lt_cv_apple_cc_single_mod=yes
7246      rm -rf libconftest.dylib*
7247    fi
7248    rm conftest.c
7249       fi
7250 fi
7251 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7252 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7253     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7254 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7255 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   lt_cv_ld_exported_symbols_list=no
7259       save_LDFLAGS=$LDFLAGS
7260       echo "_main" > conftest.sym
7261       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7262       cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h.  */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h.  */
7268
7269 int
7270 main ()
7271 {
7272
7273   ;
7274   return 0;
7275 }
7276 _ACEOF
7277 rm -f conftest.$ac_objext conftest$ac_exeext
7278 if { (ac_try="$ac_link"
7279 case "(($ac_try" in
7280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281   *) ac_try_echo=$ac_try;;
7282 esac
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284   (eval "$ac_link") 2>conftest.er1
7285   ac_status=$?
7286   grep -v '^ *+' conftest.er1 >conftest.err
7287   rm -f conftest.er1
7288   cat conftest.err >&5
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } && {
7291          test -z "$ac_cxx_werror_flag" ||
7292          test ! -s conftest.err
7293        } && test -s conftest$ac_exeext &&
7294        $as_test_x conftest$ac_exeext; then
7295   lt_cv_ld_exported_symbols_list=yes
7296 else
7297   echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300         lt_cv_ld_exported_symbols_list=no
7301 fi
7302
7303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7304       conftest$ac_exeext conftest.$ac_ext
7305    LDFLAGS="$save_LDFLAGS"
7306
7307 fi
7308 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7309 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7310     case $host_os in
7311     rhapsody* | darwin1.[0123])
7312       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7313     darwin1.*)
7314      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7315     darwin*)
7316       # if running on 10.5 or later, the deployment target defaults
7317       # to the OS version, if on x86, and 10.4, the deployment
7318       # target defaults to 10.4. Don't you love it?
7319       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7320    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7321      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7322    10.[012]*)
7323      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7324    10.*)
7325      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7326       esac
7327     ;;
7328   esac
7329     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7330       _lt_dar_single_mod='$single_module'
7331     fi
7332     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7333       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7334     else
7335       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7336     fi
7337     if test "$DSYMUTIL" != ":"; then
7338       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7339     else
7340       _lt_dsymutil=
7341     fi
7342     ;;
7343   esac
7344
7345
7346 enable_dlopen=no
7347 enable_win32_dll=no
7348
7349 # Check whether --enable-libtool-lock was given.
7350 if test "${enable_libtool_lock+set}" = set; then
7351   enableval=$enable_libtool_lock;
7352 fi
7353
7354 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7355
7356
7357 # Check whether --with-pic was given.
7358 if test "${with_pic+set}" = set; then
7359   withval=$with_pic; pic_mode="$withval"
7360 else
7361   pic_mode=default
7362 fi
7363
7364 test -z "$pic_mode" && pic_mode=default
7365
7366 # Use C for the default configuration in the libtool script
7367 tagname=
7368 lt_save_CC="$CC"
7369 ac_ext=c
7370 ac_cpp='$CPP $CPPFLAGS'
7371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7374
7375
7376 # Source file extension for C test sources.
7377 ac_ext=c
7378
7379 # Object file extension for compiled C test sources.
7380 objext=o
7381 objext=$objext
7382
7383 # Code to be used in simple compile tests
7384 lt_simple_compile_test_code="int some_variable = 0;"
7385
7386 # Code to be used in simple link tests
7387 lt_simple_link_test_code='int main(){return(0);}'
7388
7389
7390 # If no C compiler was specified, use CC.
7391 LTCC=${LTCC-"$CC"}
7392
7393 # If no C compiler flags were specified, use CFLAGS.
7394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7395
7396 # Allow CC to be a program name with arguments.
7397 compiler=$CC
7398
7399
7400 # save warnings/boilerplate of simple test code
7401 ac_outfile=conftest.$ac_objext
7402 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7404 _lt_compiler_boilerplate=`cat conftest.err`
7405 $rm conftest*
7406
7407 ac_outfile=conftest.$ac_objext
7408 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7410 _lt_linker_boilerplate=`cat conftest.err`
7411 $rm -r conftest*
7412
7413
7414
7415 lt_prog_compiler_no_builtin_flag=
7416
7417 if test "$GCC" = yes; then
7418   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7419
7420
7421 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7422 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7423 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426   lt_cv_prog_compiler_rtti_exceptions=no
7427   ac_outfile=conftest.$ac_objext
7428    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7429    lt_compiler_flag="-fno-rtti -fno-exceptions"
7430    # Insert the option either (1) after the last *FLAGS variable, or
7431    # (2) before a word containing "conftest.", or (3) at the end.
7432    # Note that $ac_compile itself does not contain backslashes and begins
7433    # with a dollar sign (not a hyphen), so the echo should work correctly.
7434    # The option is referenced via a variable to avoid confusing sed.
7435    lt_compile=`echo "$ac_compile" | $SED \
7436    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7437    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7438    -e 's:$: $lt_compiler_flag:'`
7439    (eval echo "\"\$as_me:7439: $lt_compile\"" >&5)
7440    (eval "$lt_compile" 2>conftest.err)
7441    ac_status=$?
7442    cat conftest.err >&5
7443    echo "$as_me:7443: \$? = $ac_status" >&5
7444    if (exit $ac_status) && test -s "$ac_outfile"; then
7445      # The compiler can only warn and ignore the option if not recognized
7446      # So say no if there are warnings other than the usual output.
7447      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7448      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7449      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7450        lt_cv_prog_compiler_rtti_exceptions=yes
7451      fi
7452    fi
7453    $rm conftest*
7454
7455 fi
7456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7457 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7458
7459 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7460     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7461 else
7462     :
7463 fi
7464
7465 fi
7466
7467 lt_prog_compiler_wl=
7468 lt_prog_compiler_pic=
7469 lt_prog_compiler_static=
7470
7471 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7472 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7473
7474   if test "$GCC" = yes; then
7475     lt_prog_compiler_wl='-Wl,'
7476     lt_prog_compiler_static='-static'
7477
7478     case $host_os in
7479       aix*)
7480       # All AIX code is PIC.
7481       if test "$host_cpu" = ia64; then
7482         # AIX 5 now supports IA64 processor
7483         lt_prog_compiler_static='-Bstatic'
7484       fi
7485       ;;
7486
7487     amigaos*)
7488       # FIXME: we need at least 68020 code to build shared libraries, but
7489       # adding the `-m68020' flag to GCC prevents building anything better,
7490       # like `-m68040'.
7491       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7492       ;;
7493
7494     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7495       # PIC is the default for these OSes.
7496       ;;
7497
7498     mingw* | cygwin* | pw32* | os2*)
7499       # This hack is so that the source file can tell whether it is being
7500       # built for inclusion in a dll (and should export symbols for example).
7501       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7502       # (--disable-auto-import) libraries
7503       lt_prog_compiler_pic='-DDLL_EXPORT'
7504       ;;
7505
7506     darwin* | rhapsody*)
7507       # PIC is the default on this platform
7508       # Common symbols not allowed in MH_DYLIB files
7509       lt_prog_compiler_pic='-fno-common'
7510       ;;
7511
7512     interix[3-9]*)
7513       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7514       # Instead, we relocate shared libraries at runtime.
7515       ;;
7516
7517     msdosdjgpp*)
7518       # Just because we use GCC doesn't mean we suddenly get shared libraries
7519       # on systems that don't support them.
7520       lt_prog_compiler_can_build_shared=no
7521       enable_shared=no
7522       ;;
7523
7524     sysv4*MP*)
7525       if test -d /usr/nec; then
7526         lt_prog_compiler_pic=-Kconform_pic
7527       fi
7528       ;;
7529
7530     hpux*)
7531       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7532       # not for PA HP-UX.
7533       case $host_cpu in
7534       hppa*64*|ia64*)
7535         # +Z the default
7536         ;;
7537       *)
7538         lt_prog_compiler_pic='-fPIC'
7539         ;;
7540       esac
7541       ;;
7542
7543     *)
7544       lt_prog_compiler_pic='-fPIC'
7545       ;;
7546     esac
7547   else
7548     # PORTME Check for flag to pass linker flags through the system compiler.
7549     case $host_os in
7550     aix*)
7551       lt_prog_compiler_wl='-Wl,'
7552       if test "$host_cpu" = ia64; then
7553         # AIX 5 now supports IA64 processor
7554         lt_prog_compiler_static='-Bstatic'
7555       else
7556         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7557       fi
7558       ;;
7559       darwin*)
7560         # PIC is the default on this platform
7561         # Common symbols not allowed in MH_DYLIB files
7562        case $cc_basename in
7563          xlc*)
7564          lt_prog_compiler_pic='-qnocommon'
7565          lt_prog_compiler_wl='-Wl,'
7566          ;;
7567        esac
7568        ;;
7569
7570     mingw* | cygwin* | pw32* | os2*)
7571       # This hack is so that the source file can tell whether it is being
7572       # built for inclusion in a dll (and should export symbols for example).
7573       lt_prog_compiler_pic='-DDLL_EXPORT'
7574       ;;
7575
7576     hpux9* | hpux10* | hpux11*)
7577       lt_prog_compiler_wl='-Wl,'
7578       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7579       # not for PA HP-UX.
7580       case $host_cpu in
7581       hppa*64*|ia64*)
7582         # +Z the default
7583         ;;
7584       *)
7585         lt_prog_compiler_pic='+Z'
7586         ;;
7587       esac
7588       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7589       lt_prog_compiler_static='${wl}-a ${wl}archive'
7590       ;;
7591
7592     irix5* | irix6* | nonstopux*)
7593       lt_prog_compiler_wl='-Wl,'
7594       # PIC (with -KPIC) is the default.
7595       lt_prog_compiler_static='-non_shared'
7596       ;;
7597
7598     newsos6)
7599       lt_prog_compiler_pic='-KPIC'
7600       lt_prog_compiler_static='-Bstatic'
7601       ;;
7602
7603     linux* | k*bsd*-gnu)
7604       case $cc_basename in
7605       icc* | ecc*)
7606         lt_prog_compiler_wl='-Wl,'
7607         lt_prog_compiler_pic='-KPIC'
7608         lt_prog_compiler_static='-static'
7609         ;;
7610       pgcc* | pgf77* | pgf90* | pgf95*)
7611         # Portland Group compilers (*not* the Pentium gcc compiler,
7612         # which looks to be a dead project)
7613         lt_prog_compiler_wl='-Wl,'
7614         lt_prog_compiler_pic='-fpic'
7615         lt_prog_compiler_static='-Bstatic'
7616         ;;
7617       ccc*)
7618         lt_prog_compiler_wl='-Wl,'
7619         # All Alpha code is PIC.
7620         lt_prog_compiler_static='-non_shared'
7621         ;;
7622       *)
7623         case `$CC -V 2>&1 | sed 5q` in
7624         *Sun\ C*)
7625           # Sun C 5.9
7626           lt_prog_compiler_pic='-KPIC'
7627           lt_prog_compiler_static='-Bstatic'
7628           lt_prog_compiler_wl='-Wl,'
7629           ;;
7630         *Sun\ F*)
7631           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7632           lt_prog_compiler_pic='-KPIC'
7633           lt_prog_compiler_static='-Bstatic'
7634           lt_prog_compiler_wl=''
7635           ;;
7636         esac
7637         ;;
7638       esac
7639       ;;
7640
7641     osf3* | osf4* | osf5*)
7642       lt_prog_compiler_wl='-Wl,'
7643       # All OSF/1 code is PIC.
7644       lt_prog_compiler_static='-non_shared'
7645       ;;
7646
7647     rdos*)
7648       lt_prog_compiler_static='-non_shared'
7649       ;;
7650
7651     solaris*)
7652       lt_prog_compiler_pic='-KPIC'
7653       lt_prog_compiler_static='-Bstatic'
7654       case $cc_basename in
7655       f77* | f90* | f95*)
7656         lt_prog_compiler_wl='-Qoption ld ';;
7657       *)
7658         lt_prog_compiler_wl='-Wl,';;
7659       esac
7660       ;;
7661
7662     sunos4*)
7663       lt_prog_compiler_wl='-Qoption ld '
7664       lt_prog_compiler_pic='-PIC'
7665       lt_prog_compiler_static='-Bstatic'
7666       ;;
7667
7668     sysv4 | sysv4.2uw2* | sysv4.3*)
7669       lt_prog_compiler_wl='-Wl,'
7670       lt_prog_compiler_pic='-KPIC'
7671       lt_prog_compiler_static='-Bstatic'
7672       ;;
7673
7674     sysv4*MP*)
7675       if test -d /usr/nec ;then
7676         lt_prog_compiler_pic='-Kconform_pic'
7677         lt_prog_compiler_static='-Bstatic'
7678       fi
7679       ;;
7680
7681     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7682       lt_prog_compiler_wl='-Wl,'
7683       lt_prog_compiler_pic='-KPIC'
7684       lt_prog_compiler_static='-Bstatic'
7685       ;;
7686
7687     unicos*)
7688       lt_prog_compiler_wl='-Wl,'
7689       lt_prog_compiler_can_build_shared=no
7690       ;;
7691
7692     uts4*)
7693       lt_prog_compiler_pic='-pic'
7694       lt_prog_compiler_static='-Bstatic'
7695       ;;
7696
7697     *)
7698       lt_prog_compiler_can_build_shared=no
7699       ;;
7700     esac
7701   fi
7702
7703 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7704 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7705
7706 #
7707 # Check to make sure the PIC flag actually works.
7708 #
7709 if test -n "$lt_prog_compiler_pic"; then
7710
7711 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7712 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7713 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7714   echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716   lt_cv_prog_compiler_pic_works=no
7717   ac_outfile=conftest.$ac_objext
7718    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7719    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7720    # Insert the option either (1) after the last *FLAGS variable, or
7721    # (2) before a word containing "conftest.", or (3) at the end.
7722    # Note that $ac_compile itself does not contain backslashes and begins
7723    # with a dollar sign (not a hyphen), so the echo should work correctly.
7724    # The option is referenced via a variable to avoid confusing sed.
7725    lt_compile=`echo "$ac_compile" | $SED \
7726    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7728    -e 's:$: $lt_compiler_flag:'`
7729    (eval echo "\"\$as_me:7729: $lt_compile\"" >&5)
7730    (eval "$lt_compile" 2>conftest.err)
7731    ac_status=$?
7732    cat conftest.err >&5
7733    echo "$as_me:7733: \$? = $ac_status" >&5
7734    if (exit $ac_status) && test -s "$ac_outfile"; then
7735      # The compiler can only warn and ignore the option if not recognized
7736      # So say no if there are warnings other than the usual output.
7737      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7738      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7739      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7740        lt_cv_prog_compiler_pic_works=yes
7741      fi
7742    fi
7743    $rm conftest*
7744
7745 fi
7746 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7747 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7748
7749 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7750     case $lt_prog_compiler_pic in
7751      "" | " "*) ;;
7752      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7753      esac
7754 else
7755     lt_prog_compiler_pic=
7756      lt_prog_compiler_can_build_shared=no
7757 fi
7758
7759 fi
7760 case $host_os in
7761   # For platforms which do not support PIC, -DPIC is meaningless:
7762   *djgpp*)
7763     lt_prog_compiler_pic=
7764     ;;
7765   *)
7766     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7767     ;;
7768 esac
7769
7770 #
7771 # Check to make sure the static flag actually works.
7772 #
7773 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7774 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7775 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7776 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7777   echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779   lt_cv_prog_compiler_static_works=no
7780    save_LDFLAGS="$LDFLAGS"
7781    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7782    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7783    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7784      # The linker can only warn and ignore the option if not recognized
7785      # So say no if there are warnings
7786      if test -s conftest.err; then
7787        # Append any errors to the config.log.
7788        cat conftest.err 1>&5
7789        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7790        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7791        if diff conftest.exp conftest.er2 >/dev/null; then
7792          lt_cv_prog_compiler_static_works=yes
7793        fi
7794      else
7795        lt_cv_prog_compiler_static_works=yes
7796      fi
7797    fi
7798    $rm -r conftest*
7799    LDFLAGS="$save_LDFLAGS"
7800
7801 fi
7802 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7803 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7804
7805 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7806     :
7807 else
7808     lt_prog_compiler_static=
7809 fi
7810
7811
7812 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7813 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7814 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   lt_cv_prog_compiler_c_o=no
7818    $rm -r conftest 2>/dev/null
7819    mkdir conftest
7820    cd conftest
7821    mkdir out
7822    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7823
7824    lt_compiler_flag="-o out/conftest2.$ac_objext"
7825    # Insert the option either (1) after the last *FLAGS variable, or
7826    # (2) before a word containing "conftest.", or (3) at the end.
7827    # Note that $ac_compile itself does not contain backslashes and begins
7828    # with a dollar sign (not a hyphen), so the echo should work correctly.
7829    lt_compile=`echo "$ac_compile" | $SED \
7830    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7831    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7832    -e 's:$: $lt_compiler_flag:'`
7833    (eval echo "\"\$as_me:7833: $lt_compile\"" >&5)
7834    (eval "$lt_compile" 2>out/conftest.err)
7835    ac_status=$?
7836    cat out/conftest.err >&5
7837    echo "$as_me:7837: \$? = $ac_status" >&5
7838    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7839    then
7840      # The compiler can only warn and ignore the option if not recognized
7841      # So say no if there are warnings
7842      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7843      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7844      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7845        lt_cv_prog_compiler_c_o=yes
7846      fi
7847    fi
7848    chmod u+w . 2>&5
7849    $rm conftest*
7850    # SGI C++ compiler will create directory out/ii_files/ for
7851    # template instantiation
7852    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7853    $rm out/* && rmdir out
7854    cd ..
7855    rmdir conftest
7856    $rm conftest*
7857
7858 fi
7859 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7860 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7861
7862
7863 hard_links="nottested"
7864 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7865   # do not overwrite the value of need_locks provided by the user
7866   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7867 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7868   hard_links=yes
7869   $rm conftest*
7870   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7871   touch conftest.a
7872   ln conftest.a conftest.b 2>&5 || hard_links=no
7873   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7874   { echo "$as_me:$LINENO: result: $hard_links" >&5
7875 echo "${ECHO_T}$hard_links" >&6; }
7876   if test "$hard_links" = no; then
7877     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7878 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7879     need_locks=warn
7880   fi
7881 else
7882   need_locks=no
7883 fi
7884
7885 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7886 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7887
7888   runpath_var=
7889   allow_undefined_flag=
7890   enable_shared_with_static_runtimes=no
7891   archive_cmds=
7892   archive_expsym_cmds=
7893   old_archive_From_new_cmds=
7894   old_archive_from_expsyms_cmds=
7895   export_dynamic_flag_spec=
7896   whole_archive_flag_spec=
7897   thread_safe_flag_spec=
7898   hardcode_libdir_flag_spec=
7899   hardcode_libdir_flag_spec_ld=
7900   hardcode_libdir_separator=
7901   hardcode_direct=no
7902   hardcode_minus_L=no
7903   hardcode_shlibpath_var=unsupported
7904   link_all_deplibs=unknown
7905   hardcode_automatic=no
7906   module_cmds=
7907   module_expsym_cmds=
7908   always_export_symbols=no
7909   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7910   # include_expsyms should be a list of space-separated symbols to be *always*
7911   # included in the symbol list
7912   include_expsyms=
7913   # exclude_expsyms can be an extended regexp of symbols to exclude
7914   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7915   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7916   # as well as any symbol that contains `d'.
7917   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7918   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7919   # platforms (ab)use it in PIC code, but their linkers get confused if
7920   # the symbol is explicitly referenced.  Since portable code cannot
7921   # rely on this symbol name, it's probably fine to never include it in
7922   # preloaded symbol tables.
7923   # Exclude shared library initialization/finalization symbols.
7924   extract_expsyms_cmds=
7925   # Just being paranoid about ensuring that cc_basename is set.
7926   for cc_temp in $compiler""; do
7927   case $cc_temp in
7928     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7929     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7930     \-*) ;;
7931     *) break;;
7932   esac
7933 done
7934 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7935
7936   case $host_os in
7937   cygwin* | mingw* | pw32*)
7938     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7939     # When not using gcc, we currently assume that we are using
7940     # Microsoft Visual C++.
7941     if test "$GCC" != yes; then
7942       with_gnu_ld=no
7943     fi
7944     ;;
7945   interix*)
7946     # we just hope/assume this is gcc and not c89 (= MSVC++)
7947     with_gnu_ld=yes
7948     ;;
7949   openbsd*)
7950     with_gnu_ld=no
7951     ;;
7952   esac
7953
7954   ld_shlibs=yes
7955   if test "$with_gnu_ld" = yes; then
7956     # If archive_cmds runs LD, not CC, wlarc should be empty
7957     wlarc='${wl}'
7958
7959     # Set some defaults for GNU ld with shared library support. These
7960     # are reset later if shared libraries are not supported. Putting them
7961     # here allows them to be overridden if necessary.
7962     runpath_var=LD_RUN_PATH
7963     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7964     export_dynamic_flag_spec='${wl}--export-dynamic'
7965     # ancient GNU ld didn't support --whole-archive et. al.
7966     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7967         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7968       else
7969         whole_archive_flag_spec=
7970     fi
7971     supports_anon_versioning=no
7972     case `$LD -v 2>/dev/null` in
7973       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7974       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7975       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7976       *\ 2.11.*) ;; # other 2.11 versions
7977       *) supports_anon_versioning=yes ;;
7978     esac
7979
7980     # See if GNU ld supports shared libraries.
7981     case $host_os in
7982     aix[3-9]*)
7983       # On AIX/PPC, the GNU linker is very broken
7984       if test "$host_cpu" != ia64; then
7985         ld_shlibs=no
7986         cat <<EOF 1>&2
7987
7988 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7989 *** to be unable to reliably create shared libraries on AIX.
7990 *** Therefore, libtool is disabling shared libraries support.  If you
7991 *** really care for shared libraries, you may want to modify your PATH
7992 *** so that a non-GNU linker is found, and then restart.
7993
7994 EOF
7995       fi
7996       ;;
7997
7998     amigaos*)
7999       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)'
8000       hardcode_libdir_flag_spec='-L$libdir'
8001       hardcode_minus_L=yes
8002
8003       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8004       # that the semantics of dynamic libraries on AmigaOS, at least up
8005       # to version 4, is to share data among multiple programs linked
8006       # with the same dynamic library.  Since this doesn't match the
8007       # behavior of shared libraries on other platforms, we can't use
8008       # them.
8009       ld_shlibs=no
8010       ;;
8011
8012     beos*)
8013       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8014         allow_undefined_flag=unsupported
8015         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8016         # support --undefined.  This deserves some investigation.  FIXME
8017         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8018       else
8019         ld_shlibs=no
8020       fi
8021       ;;
8022
8023     cygwin* | mingw* | pw32*)
8024       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8025       # as there is no search path for DLLs.
8026       hardcode_libdir_flag_spec='-L$libdir'
8027       allow_undefined_flag=unsupported
8028       always_export_symbols=no
8029       enable_shared_with_static_runtimes=yes
8030       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8031
8032       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8033         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8034         # If the export-symbols file already is a .def file (1st line
8035         # is EXPORTS), use it as is; otherwise, prepend...
8036         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8037           cp $export_symbols $output_objdir/$soname.def;
8038         else
8039           echo EXPORTS > $output_objdir/$soname.def;
8040           cat $export_symbols >> $output_objdir/$soname.def;
8041         fi~
8042         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8043       else
8044         ld_shlibs=no
8045       fi
8046       ;;
8047
8048     interix[3-9]*)
8049       hardcode_direct=no
8050       hardcode_shlibpath_var=no
8051       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8052       export_dynamic_flag_spec='${wl}-E'
8053       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8054       # Instead, shared libraries are loaded at an image base (0x10000000 by
8055       # default) and relocated if they conflict, which is a slow very memory
8056       # consuming and fragmenting process.  To avoid this, we pick a random,
8057       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8058       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8059       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8060       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'
8061       ;;
8062
8063     gnu* | linux* | k*bsd*-gnu)
8064       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8065         tmp_addflag=
8066         case $cc_basename,$host_cpu in
8067         pgcc*)                          # Portland Group C compiler
8068           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8069           tmp_addflag=' $pic_flag'
8070           ;;
8071         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8072           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8073           tmp_addflag=' $pic_flag -Mnomain' ;;
8074         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8075           tmp_addflag=' -i_dynamic' ;;
8076         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8077           tmp_addflag=' -i_dynamic -nofor_main' ;;
8078         ifc* | ifort*)                  # Intel Fortran compiler
8079           tmp_addflag=' -nofor_main' ;;
8080         esac
8081         case `$CC -V 2>&1 | sed 5q` in
8082         *Sun\ C*)                       # Sun C 5.9
8083           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8084           tmp_sharedflag='-G' ;;
8085         *Sun\ F*)                       # Sun Fortran 8.3
8086           tmp_sharedflag='-G' ;;
8087         *)
8088           tmp_sharedflag='-shared' ;;
8089         esac
8090         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8091
8092         if test $supports_anon_versioning = yes; then
8093           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8094   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8095   $echo "local: *; };" >> $output_objdir/$libname.ver~
8096           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8097         fi
8098         link_all_deplibs=no
8099       else
8100         ld_shlibs=no
8101       fi
8102       ;;
8103
8104     netbsd* | netbsdelf*-gnu)
8105       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8106         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8107         wlarc=
8108       else
8109         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8110         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8111       fi
8112       ;;
8113
8114     solaris*)
8115       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8116         ld_shlibs=no
8117         cat <<EOF 1>&2
8118
8119 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8120 *** create shared libraries on Solaris systems.  Therefore, libtool
8121 *** is disabling shared libraries support.  We urge you to upgrade GNU
8122 *** binutils to release 2.9.1 or newer.  Another option is to modify
8123 *** your PATH or compiler configuration so that the native linker is
8124 *** used, and then restart.
8125
8126 EOF
8127       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8128         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8129         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8130       else
8131         ld_shlibs=no
8132       fi
8133       ;;
8134
8135     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8136       case `$LD -v 2>&1` in
8137         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8138         ld_shlibs=no
8139         cat <<_LT_EOF 1>&2
8140
8141 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8142 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8143 *** is disabling shared libraries support.  We urge you to upgrade GNU
8144 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8145 *** your PATH or compiler configuration so that the native linker is
8146 *** used, and then restart.
8147
8148 _LT_EOF
8149         ;;
8150         *)
8151           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8152             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8153             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8154             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8155           else
8156             ld_shlibs=no
8157           fi
8158         ;;
8159       esac
8160       ;;
8161
8162     sunos4*)
8163       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8164       wlarc=
8165       hardcode_direct=yes
8166       hardcode_shlibpath_var=no
8167       ;;
8168
8169     *)
8170       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8171         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8173       else
8174         ld_shlibs=no
8175       fi
8176       ;;
8177     esac
8178
8179     if test "$ld_shlibs" = no; then
8180       runpath_var=
8181       hardcode_libdir_flag_spec=
8182       export_dynamic_flag_spec=
8183       whole_archive_flag_spec=
8184     fi
8185   else
8186     # PORTME fill in a description of your system's linker (not GNU ld)
8187     case $host_os in
8188     aix3*)
8189       allow_undefined_flag=unsupported
8190       always_export_symbols=yes
8191       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'
8192       # Note: this linker hardcodes the directories in LIBPATH if there
8193       # are no directories specified by -L.
8194       hardcode_minus_L=yes
8195       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8196         # Neither direct hardcoding nor static linking is supported with a
8197         # broken collect2.
8198         hardcode_direct=unsupported
8199       fi
8200       ;;
8201
8202     aix[4-9]*)
8203       if test "$host_cpu" = ia64; then
8204         # On IA64, the linker does run time linking by default, so we don't
8205         # have to do anything special.
8206         aix_use_runtimelinking=no
8207         exp_sym_flag='-Bexport'
8208         no_entry_flag=""
8209       else
8210         # If we're using GNU nm, then we don't want the "-C" option.
8211         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8212         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8213           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8214         else
8215           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'
8216         fi
8217         aix_use_runtimelinking=no
8218
8219         # Test if we are trying to use run time linking or normal
8220         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8221         # need to do runtime linking.
8222         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8223           for ld_flag in $LDFLAGS; do
8224           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8225             aix_use_runtimelinking=yes
8226             break
8227           fi
8228           done
8229           ;;
8230         esac
8231
8232         exp_sym_flag='-bexport'
8233         no_entry_flag='-bnoentry'
8234       fi
8235
8236       # When large executables or shared objects are built, AIX ld can
8237       # have problems creating the table of contents.  If linking a library
8238       # or program results in "error TOC overflow" add -mminimal-toc to
8239       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8240       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8241
8242       archive_cmds=''
8243       hardcode_direct=yes
8244       hardcode_libdir_separator=':'
8245       link_all_deplibs=yes
8246
8247       if test "$GCC" = yes; then
8248         case $host_os in aix4.[012]|aix4.[012].*)
8249         # We only want to do this on AIX 4.2 and lower, the check
8250         # below for broken collect2 doesn't work under 4.3+
8251           collect2name=`${CC} -print-prog-name=collect2`
8252           if test -f "$collect2name" && \
8253            strings "$collect2name" | grep resolve_lib_name >/dev/null
8254           then
8255           # We have reworked collect2
8256           :
8257           else
8258           # We have old collect2
8259           hardcode_direct=unsupported
8260           # It fails to find uninstalled libraries when the uninstalled
8261           # path is not listed in the libpath.  Setting hardcode_minus_L
8262           # to unsupported forces relinking
8263           hardcode_minus_L=yes
8264           hardcode_libdir_flag_spec='-L$libdir'
8265           hardcode_libdir_separator=
8266           fi
8267           ;;
8268         esac
8269         shared_flag='-shared'
8270         if test "$aix_use_runtimelinking" = yes; then
8271           shared_flag="$shared_flag "'${wl}-G'
8272         fi
8273       else
8274         # not using gcc
8275         if test "$host_cpu" = ia64; then
8276         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8277         # chokes on -Wl,-G. The following line is correct:
8278           shared_flag='-G'
8279         else
8280           if test "$aix_use_runtimelinking" = yes; then
8281             shared_flag='${wl}-G'
8282           else
8283             shared_flag='${wl}-bM:SRE'
8284           fi
8285         fi
8286       fi
8287
8288       # It seems that -bexpall does not export symbols beginning with
8289       # underscore (_), so it is better to generate a list of symbols to export.
8290       always_export_symbols=yes
8291       if test "$aix_use_runtimelinking" = yes; then
8292         # Warning - without using the other runtime loading flags (-brtl),
8293         # -berok will link without error, but may produce a broken library.
8294         allow_undefined_flag='-berok'
8295        # Determine the default libpath from the value encoded in an empty executable.
8296        cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h.  */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h.  */
8302
8303 int
8304 main ()
8305 {
8306
8307   ;
8308   return 0;
8309 }
8310 _ACEOF
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (ac_try="$ac_link"
8313 case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_link") 2>conftest.er1
8319   ac_status=$?
8320   grep -v '^ *+' conftest.er1 >conftest.err
8321   rm -f conftest.er1
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } && {
8325          test -z "$ac_c_werror_flag" ||
8326          test ! -s conftest.err
8327        } && test -s conftest$ac_exeext &&
8328        $as_test_x conftest$ac_exeext; then
8329
8330 lt_aix_libpath_sed='
8331     /Import File Strings/,/^$/ {
8332         /^0/ {
8333             s/^0  *\(.*\)$/\1/
8334             p
8335         }
8336     }'
8337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8338 # Check for a 64-bit object if we didn't find anything.
8339 if test -z "$aix_libpath"; then
8340   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8341 fi
8342 else
8343   echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346
8347 fi
8348
8349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8350       conftest$ac_exeext conftest.$ac_ext
8351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8352
8353        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8354         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8355        else
8356         if test "$host_cpu" = ia64; then
8357           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8358           allow_undefined_flag="-z nodefs"
8359           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"
8360         else
8361          # Determine the default libpath from the value encoded in an empty executable.
8362          cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h.  */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h.  */
8368
8369 int
8370 main ()
8371 {
8372
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8379 case "(($ac_try" in
8380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381   *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384   (eval "$ac_link") 2>conftest.er1
8385   ac_status=$?
8386   grep -v '^ *+' conftest.er1 >conftest.err
8387   rm -f conftest.er1
8388   cat conftest.err >&5
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } && {
8391          test -z "$ac_c_werror_flag" ||
8392          test ! -s conftest.err
8393        } && test -s conftest$ac_exeext &&
8394        $as_test_x conftest$ac_exeext; then
8395
8396 lt_aix_libpath_sed='
8397     /Import File Strings/,/^$/ {
8398         /^0/ {
8399             s/^0  *\(.*\)$/\1/
8400             p
8401         }
8402     }'
8403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8404 # Check for a 64-bit object if we didn't find anything.
8405 if test -z "$aix_libpath"; then
8406   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8407 fi
8408 else
8409   echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412
8413 fi
8414
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8416       conftest$ac_exeext conftest.$ac_ext
8417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8418
8419          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8420           # Warning - without using the other run time loading flags,
8421           # -berok will link without error, but may produce a broken library.
8422           no_undefined_flag=' ${wl}-bernotok'
8423           allow_undefined_flag=' ${wl}-berok'
8424           # Exported symbols can be pulled into shared objects from archives
8425           whole_archive_flag_spec='$convenience'
8426           archive_cmds_need_lc=yes
8427           # This is similar to how AIX traditionally builds its shared libraries.
8428           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'
8429         fi
8430       fi
8431       ;;
8432
8433     amigaos*)
8434       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)'
8435       hardcode_libdir_flag_spec='-L$libdir'
8436       hardcode_minus_L=yes
8437       # see comment about different semantics on the GNU ld section
8438       ld_shlibs=no
8439       ;;
8440
8441     bsdi[45]*)
8442       export_dynamic_flag_spec=-rdynamic
8443       ;;
8444
8445     cygwin* | mingw* | pw32*)
8446       # When not using gcc, we currently assume that we are using
8447       # Microsoft Visual C++.
8448       # hardcode_libdir_flag_spec is actually meaningless, as there is
8449       # no search path for DLLs.
8450       hardcode_libdir_flag_spec=' '
8451       allow_undefined_flag=unsupported
8452       # Tell ltmain to make .lib files, not .a files.
8453       libext=lib
8454       # Tell ltmain to make .dll files, not .so files.
8455       shrext_cmds=".dll"
8456       # FIXME: Setting linknames here is a bad hack.
8457       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8458       # The linker will automatically build a .lib file if we build a DLL.
8459       old_archive_From_new_cmds='true'
8460       # FIXME: Should let the user specify the lib program.
8461       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8462       fix_srcfile_path='`cygpath -w "$srcfile"`'
8463       enable_shared_with_static_runtimes=yes
8464       ;;
8465
8466     darwin* | rhapsody*)
8467       case $host_os in
8468         rhapsody* | darwin1.[012])
8469          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8470          ;;
8471        *) # Darwin 1.3 on
8472          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8473            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8474          else
8475            case ${MACOSX_DEPLOYMENT_TARGET} in
8476              10.[012])
8477                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8478                ;;
8479              10.*)
8480                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8481                ;;
8482            esac
8483          fi
8484          ;;
8485       esac
8486       archive_cmds_need_lc=no
8487       hardcode_direct=no
8488       hardcode_automatic=yes
8489       hardcode_shlibpath_var=unsupported
8490       whole_archive_flag_spec=''
8491       link_all_deplibs=yes
8492     if test "$GCC" = yes ; then
8493         output_verbose_link_cmd='echo'
8494         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8495         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8496         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}"
8497         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}"
8498     else
8499       case $cc_basename in
8500         xlc*)
8501          output_verbose_link_cmd='echo'
8502          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8503          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8504           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8505          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8506           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8507           ;;
8508        *)
8509          ld_shlibs=no
8510           ;;
8511       esac
8512     fi
8513       ;;
8514
8515     dgux*)
8516       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8517       hardcode_libdir_flag_spec='-L$libdir'
8518       hardcode_shlibpath_var=no
8519       ;;
8520
8521     freebsd1*)
8522       ld_shlibs=no
8523       ;;
8524
8525     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8526     # support.  Future versions do this automatically, but an explicit c++rt0.o
8527     # does not break anything, and helps significantly (at the cost of a little
8528     # extra space).
8529     freebsd2.2*)
8530       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8531       hardcode_libdir_flag_spec='-R$libdir'
8532       hardcode_direct=yes
8533       hardcode_shlibpath_var=no
8534       ;;
8535
8536     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8537     freebsd2*)
8538       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8539       hardcode_direct=yes
8540       hardcode_minus_L=yes
8541       hardcode_shlibpath_var=no
8542       ;;
8543
8544     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8545     freebsd* | dragonfly*)
8546       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8547       hardcode_libdir_flag_spec='-R$libdir'
8548       hardcode_direct=yes
8549       hardcode_shlibpath_var=no
8550       ;;
8551
8552     hpux9*)
8553       if test "$GCC" = yes; then
8554         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8555       else
8556         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'
8557       fi
8558       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8559       hardcode_libdir_separator=:
8560       hardcode_direct=yes
8561
8562       # hardcode_minus_L: Not really in the search PATH,
8563       # but as the default location of the library.
8564       hardcode_minus_L=yes
8565       export_dynamic_flag_spec='${wl}-E'
8566       ;;
8567
8568     hpux10*)
8569       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8570         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8571       else
8572         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8573       fi
8574       if test "$with_gnu_ld" = no; then
8575         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8576         hardcode_libdir_separator=:
8577
8578         hardcode_direct=yes
8579         export_dynamic_flag_spec='${wl}-E'
8580
8581         # hardcode_minus_L: Not really in the search PATH,
8582         # but as the default location of the library.
8583         hardcode_minus_L=yes
8584       fi
8585       ;;
8586
8587     hpux11*)
8588       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8589         case $host_cpu in
8590         hppa*64*)
8591           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8592           ;;
8593         ia64*)
8594           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8595           ;;
8596         *)
8597           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8598           ;;
8599         esac
8600       else
8601         case $host_cpu in
8602         hppa*64*)
8603           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8604           ;;
8605         ia64*)
8606           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8607           ;;
8608         *)
8609           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8610           ;;
8611         esac
8612       fi
8613       if test "$with_gnu_ld" = no; then
8614         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8615         hardcode_libdir_separator=:
8616
8617         case $host_cpu in
8618         hppa*64*|ia64*)
8619           hardcode_libdir_flag_spec_ld='+b $libdir'
8620           hardcode_direct=no
8621           hardcode_shlibpath_var=no
8622           ;;
8623         *)
8624           hardcode_direct=yes
8625           export_dynamic_flag_spec='${wl}-E'
8626
8627           # hardcode_minus_L: Not really in the search PATH,
8628           # but as the default location of the library.
8629           hardcode_minus_L=yes
8630           ;;
8631         esac
8632       fi
8633       ;;
8634
8635     irix5* | irix6* | nonstopux*)
8636       if test "$GCC" = yes; then
8637         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8638       else
8639         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8640         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8641       fi
8642       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643       hardcode_libdir_separator=:
8644       link_all_deplibs=yes
8645       ;;
8646
8647     netbsd* | netbsdelf*-gnu)
8648       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8649         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8650       else
8651         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8652       fi
8653       hardcode_libdir_flag_spec='-R$libdir'
8654       hardcode_direct=yes
8655       hardcode_shlibpath_var=no
8656       ;;
8657
8658     newsos6)
8659       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8660       hardcode_direct=yes
8661       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8662       hardcode_libdir_separator=:
8663       hardcode_shlibpath_var=no
8664       ;;
8665
8666     openbsd*)
8667       if test -f /usr/libexec/ld.so; then
8668         hardcode_direct=yes
8669         hardcode_shlibpath_var=no
8670         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8671           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8672           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8673           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8674           export_dynamic_flag_spec='${wl}-E'
8675         else
8676           case $host_os in
8677            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8678              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8679              hardcode_libdir_flag_spec='-R$libdir'
8680              ;;
8681            *)
8682              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8683              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8684              ;;
8685           esac
8686         fi
8687       else
8688         ld_shlibs=no
8689       fi
8690       ;;
8691
8692     os2*)
8693       hardcode_libdir_flag_spec='-L$libdir'
8694       hardcode_minus_L=yes
8695       allow_undefined_flag=unsupported
8696       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'
8697       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8698       ;;
8699
8700     osf3*)
8701       if test "$GCC" = yes; then
8702         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8703         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8704       else
8705         allow_undefined_flag=' -expect_unresolved \*'
8706         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8707       fi
8708       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709       hardcode_libdir_separator=:
8710       ;;
8711
8712     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8713       if test "$GCC" = yes; then
8714         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8715         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8716         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8717       else
8718         allow_undefined_flag=' -expect_unresolved \*'
8719         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8720         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8721         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8722
8723         # Both c and cxx compiler support -rpath directly
8724         hardcode_libdir_flag_spec='-rpath $libdir'
8725       fi
8726       hardcode_libdir_separator=:
8727       ;;
8728
8729     solaris*)
8730       no_undefined_flag=' -z text'
8731       if test "$GCC" = yes; then
8732         wlarc='${wl}'
8733         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8734         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8735           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8736       else
8737         wlarc=''
8738         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8740         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8741       fi
8742       hardcode_libdir_flag_spec='-R$libdir'
8743       hardcode_shlibpath_var=no
8744       case $host_os in
8745       solaris2.[0-5] | solaris2.[0-5].*) ;;
8746       *)
8747         # The compiler driver will combine and reorder linker options,
8748         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8749         # but is careful enough not to reorder.
8750         # Supported since Solaris 2.6 (maybe 2.5.1?)
8751         if test "$GCC" = yes; then
8752           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8753         else
8754           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8755         fi
8756         ;;
8757       esac
8758       link_all_deplibs=yes
8759       ;;
8760
8761     sunos4*)
8762       if test "x$host_vendor" = xsequent; then
8763         # Use $CC to link under sequent, because it throws in some extra .o
8764         # files that make .init and .fini sections work.
8765         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8766       else
8767         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8768       fi
8769       hardcode_libdir_flag_spec='-L$libdir'
8770       hardcode_direct=yes
8771       hardcode_minus_L=yes
8772       hardcode_shlibpath_var=no
8773       ;;
8774
8775     sysv4)
8776       case $host_vendor in
8777         sni)
8778           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779           hardcode_direct=yes # is this really true???
8780         ;;
8781         siemens)
8782           ## LD is ld it makes a PLAMLIB
8783           ## CC just makes a GrossModule.
8784           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8785           reload_cmds='$CC -r -o $output$reload_objs'
8786           hardcode_direct=no
8787         ;;
8788         motorola)
8789           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8791         ;;
8792       esac
8793       runpath_var='LD_RUN_PATH'
8794       hardcode_shlibpath_var=no
8795       ;;
8796
8797     sysv4.3*)
8798       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799       hardcode_shlibpath_var=no
8800       export_dynamic_flag_spec='-Bexport'
8801       ;;
8802
8803     sysv4*MP*)
8804       if test -d /usr/nec; then
8805         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806         hardcode_shlibpath_var=no
8807         runpath_var=LD_RUN_PATH
8808         hardcode_runpath_var=yes
8809         ld_shlibs=yes
8810       fi
8811       ;;
8812
8813     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8814       no_undefined_flag='${wl}-z,text'
8815       archive_cmds_need_lc=no
8816       hardcode_shlibpath_var=no
8817       runpath_var='LD_RUN_PATH'
8818
8819       if test "$GCC" = yes; then
8820         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8821         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8822       else
8823         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825       fi
8826       ;;
8827
8828     sysv5* | sco3.2v5* | sco5v6*)
8829       # Note: We can NOT use -z defs as we might desire, because we do not
8830       # link with -lc, and that would cause any symbols used from libc to
8831       # always be unresolved, which means just about no library would
8832       # ever link correctly.  If we're not using GNU ld we use -z text
8833       # though, which does catch some bad symbols but isn't as heavy-handed
8834       # as -z defs.
8835       no_undefined_flag='${wl}-z,text'
8836       allow_undefined_flag='${wl}-z,nodefs'
8837       archive_cmds_need_lc=no
8838       hardcode_shlibpath_var=no
8839       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8840       hardcode_libdir_separator=':'
8841       link_all_deplibs=yes
8842       export_dynamic_flag_spec='${wl}-Bexport'
8843       runpath_var='LD_RUN_PATH'
8844
8845       if test "$GCC" = yes; then
8846         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8847         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848       else
8849         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8851       fi
8852       ;;
8853
8854     uts4*)
8855       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8856       hardcode_libdir_flag_spec='-L$libdir'
8857       hardcode_shlibpath_var=no
8858       ;;
8859
8860     *)
8861       ld_shlibs=no
8862       ;;
8863     esac
8864   fi
8865
8866 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8867 echo "${ECHO_T}$ld_shlibs" >&6; }
8868 test "$ld_shlibs" = no && can_build_shared=no
8869
8870 #
8871 # Do we need to explicitly link libc?
8872 #
8873 case "x$archive_cmds_need_lc" in
8874 x|xyes)
8875   # Assume -lc should be added
8876   archive_cmds_need_lc=yes
8877
8878   if test "$enable_shared" = yes && test "$GCC" = yes; then
8879     case $archive_cmds in
8880     *'~'*)
8881       # FIXME: we may have to deal with multi-command sequences.
8882       ;;
8883     '$CC '*)
8884       # Test whether the compiler implicitly links with -lc since on some
8885       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8886       # to ld, don't add -lc before -lgcc.
8887       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8888 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8889       $rm conftest*
8890       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8891
8892       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893   (eval $ac_compile) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } 2>conftest.err; then
8897         soname=conftest
8898         lib=conftest
8899         libobjs=conftest.$ac_objext
8900         deplibs=
8901         wl=$lt_prog_compiler_wl
8902         pic_flag=$lt_prog_compiler_pic
8903         compiler_flags=-v
8904         linker_flags=-v
8905         verstring=
8906         output_objdir=.
8907         libname=conftest
8908         lt_save_allow_undefined_flag=$allow_undefined_flag
8909         allow_undefined_flag=
8910         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8911   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); }
8915         then
8916           archive_cmds_need_lc=no
8917         else
8918           archive_cmds_need_lc=yes
8919         fi
8920         allow_undefined_flag=$lt_save_allow_undefined_flag
8921       else
8922         cat conftest.err 1>&5
8923       fi
8924       $rm conftest*
8925       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8926 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8927       ;;
8928     esac
8929   fi
8930   ;;
8931 esac
8932
8933 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8934 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8935 library_names_spec=
8936 libname_spec='lib$name'
8937 soname_spec=
8938 shrext_cmds=".so"
8939 postinstall_cmds=
8940 postuninstall_cmds=
8941 finish_cmds=
8942 finish_eval=
8943 shlibpath_var=
8944 shlibpath_overrides_runpath=unknown
8945 version_type=none
8946 dynamic_linker="$host_os ld.so"
8947 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8948
8949 if test "$GCC" = yes; then
8950   case $host_os in
8951     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8952     *) lt_awk_arg="/^libraries:/" ;;
8953   esac
8954   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8955   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8956     # if the path contains ";" then we assume it to be the separator
8957     # otherwise default to the standard path separator (i.e. ":") - it is
8958     # assumed that no part of a normal pathname contains ";" but that should
8959     # okay in the real world where ";" in dirpaths is itself problematic.
8960     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8961   else
8962     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8963   fi
8964   # Ok, now we have the path, separated by spaces, we can step through it
8965   # and add multilib dir if necessary.
8966   lt_tmp_lt_search_path_spec=
8967   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8968   for lt_sys_path in $lt_search_path_spec; do
8969     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8970       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8971     else
8972       test -d "$lt_sys_path" && \
8973         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8974     fi
8975   done
8976   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8977 BEGIN {RS=" "; FS="/|\n";} {
8978   lt_foo="";
8979   lt_count=0;
8980   for (lt_i = NF; lt_i > 0; lt_i--) {
8981     if ($lt_i != "" && $lt_i != ".") {
8982       if ($lt_i == "..") {
8983         lt_count++;
8984       } else {
8985         if (lt_count == 0) {
8986           lt_foo="/" $lt_i lt_foo;
8987         } else {
8988           lt_count--;
8989         }
8990       }
8991     }
8992   }
8993   if (lt_foo != "") { lt_freq[lt_foo]++; }
8994   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8995 }'`
8996   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8997 else
8998   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8999 fi
9000 need_lib_prefix=unknown
9001 hardcode_into_libs=no
9002
9003 # when you set need_version to no, make sure it does not cause -set_version
9004 # flags to be left without arguments
9005 need_version=unknown
9006
9007 case $host_os in
9008 aix3*)
9009   version_type=linux
9010   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9011   shlibpath_var=LIBPATH
9012
9013   # AIX 3 has no versioning support, so we append a major version to the name.
9014   soname_spec='${libname}${release}${shared_ext}$major'
9015   ;;
9016
9017 aix[4-9]*)
9018   version_type=linux
9019   need_lib_prefix=no
9020   need_version=no
9021   hardcode_into_libs=yes
9022   if test "$host_cpu" = ia64; then
9023     # AIX 5 supports IA64
9024     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9025     shlibpath_var=LD_LIBRARY_PATH
9026   else
9027     # With GCC up to 2.95.x, collect2 would create an import file
9028     # for dependence libraries.  The import file would start with
9029     # the line `#! .'.  This would cause the generated library to
9030     # depend on `.', always an invalid library.  This was fixed in
9031     # development snapshots of GCC prior to 3.0.
9032     case $host_os in
9033       aix4 | aix4.[01] | aix4.[01].*)
9034       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9035            echo ' yes '
9036            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9037         :
9038       else
9039         can_build_shared=no
9040       fi
9041       ;;
9042     esac
9043     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9044     # soname into executable. Probably we can add versioning support to
9045     # collect2, so additional links can be useful in future.
9046     if test "$aix_use_runtimelinking" = yes; then
9047       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9048       # instead of lib<name>.a to let people know that these are not
9049       # typical AIX shared libraries.
9050       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051     else
9052       # We preserve .a as extension for shared libraries through AIX4.2
9053       # and later when we are not doing run time linking.
9054       library_names_spec='${libname}${release}.a $libname.a'
9055       soname_spec='${libname}${release}${shared_ext}$major'
9056     fi
9057     shlibpath_var=LIBPATH
9058   fi
9059   ;;
9060
9061 amigaos*)
9062   library_names_spec='$libname.ixlibrary $libname.a'
9063   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9064   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
9065   ;;
9066
9067 beos*)
9068   library_names_spec='${libname}${shared_ext}'
9069   dynamic_linker="$host_os ld.so"
9070   shlibpath_var=LIBRARY_PATH
9071   ;;
9072
9073 bsdi[45]*)
9074   version_type=linux
9075   need_version=no
9076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077   soname_spec='${libname}${release}${shared_ext}$major'
9078   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9079   shlibpath_var=LD_LIBRARY_PATH
9080   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9081   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9082   # the default ld.so.conf also contains /usr/contrib/lib and
9083   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9084   # libtool to hard-code these into programs
9085   ;;
9086
9087 cygwin* | mingw* | pw32*)
9088   version_type=windows
9089   shrext_cmds=".dll"
9090   need_version=no
9091   need_lib_prefix=no
9092
9093   case $GCC,$host_os in
9094   yes,cygwin* | yes,mingw* | yes,pw32*)
9095     library_names_spec='$libname.dll.a'
9096     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9097     postinstall_cmds='base_file=`basename \${file}`~
9098       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9099       dldir=$destdir/`dirname \$dlpath`~
9100       test -d \$dldir || mkdir -p \$dldir~
9101       $install_prog $dir/$dlname \$dldir/$dlname~
9102       chmod a+x \$dldir/$dlname'
9103     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9104       dlpath=$dir/\$dldll~
9105        $rm \$dlpath'
9106     shlibpath_overrides_runpath=yes
9107
9108     case $host_os in
9109     cygwin*)
9110       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9111       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9112       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9113       ;;
9114     mingw*)
9115       # MinGW DLLs use traditional 'lib' prefix
9116       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9117       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9118       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9119         # It is most probably a Windows format PATH printed by
9120         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9121         # path with ; separators, and with drive letters. We can handle the
9122         # drive letters (cygwin fileutils understands them), so leave them,
9123         # especially as we might pass files found there to a mingw objdump,
9124         # which wouldn't understand a cygwinified path. Ahh.
9125         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9126       else
9127         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9128       fi
9129       ;;
9130     pw32*)
9131       # pw32 DLLs use 'pw' prefix rather than 'lib'
9132       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9133       ;;
9134     esac
9135     ;;
9136
9137   *)
9138     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9139     ;;
9140   esac
9141   dynamic_linker='Win32 ld.exe'
9142   # FIXME: first we should search . and the directory the executable is in
9143   shlibpath_var=PATH
9144   ;;
9145
9146 darwin* | rhapsody*)
9147   dynamic_linker="$host_os dyld"
9148   version_type=darwin
9149   need_lib_prefix=no
9150   need_version=no
9151   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9152   soname_spec='${libname}${release}${major}$shared_ext'
9153   shlibpath_overrides_runpath=yes
9154   shlibpath_var=DYLD_LIBRARY_PATH
9155   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9156
9157   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9158   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9159   ;;
9160
9161 dgux*)
9162   version_type=linux
9163   need_lib_prefix=no
9164   need_version=no
9165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9166   soname_spec='${libname}${release}${shared_ext}$major'
9167   shlibpath_var=LD_LIBRARY_PATH
9168   ;;
9169
9170 freebsd1*)
9171   dynamic_linker=no
9172   ;;
9173
9174 freebsd* | dragonfly*)
9175   # DragonFly does not have aout.  When/if they implement a new
9176   # versioning mechanism, adjust this.
9177   if test -x /usr/bin/objformat; then
9178     objformat=`/usr/bin/objformat`
9179   else
9180     case $host_os in
9181     freebsd[123]*) objformat=aout ;;
9182     *) objformat=elf ;;
9183     esac
9184   fi
9185   version_type=freebsd-$objformat
9186   case $version_type in
9187     freebsd-elf*)
9188       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9189       need_version=no
9190       need_lib_prefix=no
9191       ;;
9192     freebsd-*)
9193       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9194       need_version=yes
9195       ;;
9196   esac
9197   shlibpath_var=LD_LIBRARY_PATH
9198   case $host_os in
9199   freebsd2*)
9200     shlibpath_overrides_runpath=yes
9201     ;;
9202   freebsd3.[01]* | freebsdelf3.[01]*)
9203     shlibpath_overrides_runpath=yes
9204     hardcode_into_libs=yes
9205     ;;
9206   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9207   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9208     shlibpath_overrides_runpath=no
9209     hardcode_into_libs=yes
9210     ;;
9211   *) # from 4.6 on, and DragonFly
9212     shlibpath_overrides_runpath=yes
9213     hardcode_into_libs=yes
9214     ;;
9215   esac
9216   ;;
9217
9218 gnu*)
9219   version_type=linux
9220   need_lib_prefix=no
9221   need_version=no
9222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9223   soname_spec='${libname}${release}${shared_ext}$major'
9224   shlibpath_var=LD_LIBRARY_PATH
9225   hardcode_into_libs=yes
9226   ;;
9227
9228 hpux9* | hpux10* | hpux11*)
9229   # Give a soname corresponding to the major version so that dld.sl refuses to
9230   # link against other versions.
9231   version_type=sunos
9232   need_lib_prefix=no
9233   need_version=no
9234   case $host_cpu in
9235   ia64*)
9236     shrext_cmds='.so'
9237     hardcode_into_libs=yes
9238     dynamic_linker="$host_os dld.so"
9239     shlibpath_var=LD_LIBRARY_PATH
9240     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9241     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242     soname_spec='${libname}${release}${shared_ext}$major'
9243     if test "X$HPUX_IA64_MODE" = X32; then
9244       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9245     else
9246       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9247     fi
9248     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9249     ;;
9250    hppa*64*)
9251      shrext_cmds='.sl'
9252      hardcode_into_libs=yes
9253      dynamic_linker="$host_os dld.sl"
9254      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9255      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9256      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257      soname_spec='${libname}${release}${shared_ext}$major'
9258      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9259      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9260      ;;
9261    *)
9262     shrext_cmds='.sl'
9263     dynamic_linker="$host_os dld.sl"
9264     shlibpath_var=SHLIB_PATH
9265     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267     soname_spec='${libname}${release}${shared_ext}$major'
9268     ;;
9269   esac
9270   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9271   postinstall_cmds='chmod 555 $lib'
9272   ;;
9273
9274 interix[3-9]*)
9275   version_type=linux
9276   need_lib_prefix=no
9277   need_version=no
9278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9279   soname_spec='${libname}${release}${shared_ext}$major'
9280   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9281   shlibpath_var=LD_LIBRARY_PATH
9282   shlibpath_overrides_runpath=no
9283   hardcode_into_libs=yes
9284   ;;
9285
9286 irix5* | irix6* | nonstopux*)
9287   case $host_os in
9288     nonstopux*) version_type=nonstopux ;;
9289     *)
9290         if test "$lt_cv_prog_gnu_ld" = yes; then
9291                 version_type=linux
9292         else
9293                 version_type=irix
9294         fi ;;
9295   esac
9296   need_lib_prefix=no
9297   need_version=no
9298   soname_spec='${libname}${release}${shared_ext}$major'
9299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9300   case $host_os in
9301   irix5* | nonstopux*)
9302     libsuff= shlibsuff=
9303     ;;
9304   *)
9305     case $LD in # libtool.m4 will add one of these switches to LD
9306     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9307       libsuff= shlibsuff= libmagic=32-bit;;
9308     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9309       libsuff=32 shlibsuff=N32 libmagic=N32;;
9310     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9311       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9312     *) libsuff= shlibsuff= libmagic=never-match;;
9313     esac
9314     ;;
9315   esac
9316   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9317   shlibpath_overrides_runpath=no
9318   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9319   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9320   hardcode_into_libs=yes
9321   ;;
9322
9323 # No shared lib support for Linux oldld, aout, or coff.
9324 linux*oldld* | linux*aout* | linux*coff*)
9325   dynamic_linker=no
9326   ;;
9327
9328 # This must be Linux ELF.
9329 linux* | k*bsd*-gnu)
9330   version_type=linux
9331   need_lib_prefix=no
9332   need_version=no
9333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334   soname_spec='${libname}${release}${shared_ext}$major'
9335   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9336   shlibpath_var=LD_LIBRARY_PATH
9337   shlibpath_overrides_runpath=no
9338   # This implies no fast_install, which is unacceptable.
9339   # Some rework will be needed to allow for fast_install
9340   # before this can be enabled.
9341   hardcode_into_libs=yes
9342
9343   # Append ld.so.conf contents to the search path
9344   if test -f /etc/ld.so.conf; then
9345     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;/^$/d' | tr '\n' ' '`
9346     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9347   fi
9348
9349   # We used to test for /lib/ld.so.1 and disable shared libraries on
9350   # powerpc, because MkLinux only supported shared libraries with the
9351   # GNU dynamic linker.  Since this was broken with cross compilers,
9352   # most powerpc-linux boxes support dynamic linking these days and
9353   # people can always --disable-shared, the test was removed, and we
9354   # assume the GNU/Linux dynamic linker is in use.
9355   dynamic_linker='GNU/Linux ld.so'
9356   ;;
9357
9358 netbsdelf*-gnu)
9359   version_type=linux
9360   need_lib_prefix=no
9361   need_version=no
9362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9363   soname_spec='${libname}${release}${shared_ext}$major'
9364   shlibpath_var=LD_LIBRARY_PATH
9365   shlibpath_overrides_runpath=no
9366   hardcode_into_libs=yes
9367   dynamic_linker='NetBSD ld.elf_so'
9368   ;;
9369
9370 netbsd*)
9371   version_type=sunos
9372   need_lib_prefix=no
9373   need_version=no
9374   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9375     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9376     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9377     dynamic_linker='NetBSD (a.out) ld.so'
9378   else
9379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9380     soname_spec='${libname}${release}${shared_ext}$major'
9381     dynamic_linker='NetBSD ld.elf_so'
9382   fi
9383   shlibpath_var=LD_LIBRARY_PATH
9384   shlibpath_overrides_runpath=yes
9385   hardcode_into_libs=yes
9386   ;;
9387
9388 newsos6)
9389   version_type=linux
9390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391   shlibpath_var=LD_LIBRARY_PATH
9392   shlibpath_overrides_runpath=yes
9393   ;;
9394
9395 nto-qnx*)
9396   version_type=linux
9397   need_lib_prefix=no
9398   need_version=no
9399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400   soname_spec='${libname}${release}${shared_ext}$major'
9401   shlibpath_var=LD_LIBRARY_PATH
9402   shlibpath_overrides_runpath=yes
9403   ;;
9404
9405 openbsd*)
9406   version_type=sunos
9407   sys_lib_dlsearch_path_spec="/usr/lib"
9408   need_lib_prefix=no
9409   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9410   case $host_os in
9411     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9412     *)                         need_version=no  ;;
9413   esac
9414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9415   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9416   shlibpath_var=LD_LIBRARY_PATH
9417   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9418     case $host_os in
9419       openbsd2.[89] | openbsd2.[89].*)
9420         shlibpath_overrides_runpath=no
9421         ;;
9422       *)
9423         shlibpath_overrides_runpath=yes
9424         ;;
9425       esac
9426   else
9427     shlibpath_overrides_runpath=yes
9428   fi
9429   ;;
9430
9431 os2*)
9432   libname_spec='$name'
9433   shrext_cmds=".dll"
9434   need_lib_prefix=no
9435   library_names_spec='$libname${shared_ext} $libname.a'
9436   dynamic_linker='OS/2 ld.exe'
9437   shlibpath_var=LIBPATH
9438   ;;
9439
9440 osf3* | osf4* | osf5*)
9441   version_type=osf
9442   need_lib_prefix=no
9443   need_version=no
9444   soname_spec='${libname}${release}${shared_ext}$major'
9445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446   shlibpath_var=LD_LIBRARY_PATH
9447   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9448   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9449   ;;
9450
9451 rdos*)
9452   dynamic_linker=no
9453   ;;
9454
9455 solaris*)
9456   version_type=linux
9457   need_lib_prefix=no
9458   need_version=no
9459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460   soname_spec='${libname}${release}${shared_ext}$major'
9461   shlibpath_var=LD_LIBRARY_PATH
9462   shlibpath_overrides_runpath=yes
9463   hardcode_into_libs=yes
9464   # ldd complains unless libraries are executable
9465   postinstall_cmds='chmod +x $lib'
9466   ;;
9467
9468 sunos4*)
9469   version_type=sunos
9470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9471   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9472   shlibpath_var=LD_LIBRARY_PATH
9473   shlibpath_overrides_runpath=yes
9474   if test "$with_gnu_ld" = yes; then
9475     need_lib_prefix=no
9476   fi
9477   need_version=yes
9478   ;;
9479
9480 sysv4 | sysv4.3*)
9481   version_type=linux
9482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483   soname_spec='${libname}${release}${shared_ext}$major'
9484   shlibpath_var=LD_LIBRARY_PATH
9485   case $host_vendor in
9486     sni)
9487       shlibpath_overrides_runpath=no
9488       need_lib_prefix=no
9489       export_dynamic_flag_spec='${wl}-Blargedynsym'
9490       runpath_var=LD_RUN_PATH
9491       ;;
9492     siemens)
9493       need_lib_prefix=no
9494       ;;
9495     motorola)
9496       need_lib_prefix=no
9497       need_version=no
9498       shlibpath_overrides_runpath=no
9499       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9500       ;;
9501   esac
9502   ;;
9503
9504 sysv4*MP*)
9505   if test -d /usr/nec ;then
9506     version_type=linux
9507     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9508     soname_spec='$libname${shared_ext}.$major'
9509     shlibpath_var=LD_LIBRARY_PATH
9510   fi
9511   ;;
9512
9513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9514   version_type=freebsd-elf
9515   need_lib_prefix=no
9516   need_version=no
9517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9518   soname_spec='${libname}${release}${shared_ext}$major'
9519   shlibpath_var=LD_LIBRARY_PATH
9520   hardcode_into_libs=yes
9521   if test "$with_gnu_ld" = yes; then
9522     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9523     shlibpath_overrides_runpath=no
9524   else
9525     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9526     shlibpath_overrides_runpath=yes
9527     case $host_os in
9528       sco3.2v5*)
9529         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9530         ;;
9531     esac
9532   fi
9533   sys_lib_dlsearch_path_spec='/usr/lib'
9534   ;;
9535
9536 uts4*)
9537   version_type=linux
9538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539   soname_spec='${libname}${release}${shared_ext}$major'
9540   shlibpath_var=LD_LIBRARY_PATH
9541   ;;
9542
9543 *)
9544   dynamic_linker=no
9545   ;;
9546 esac
9547 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9548 echo "${ECHO_T}$dynamic_linker" >&6; }
9549 test "$dynamic_linker" = no && can_build_shared=no
9550
9551 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9555 fi
9556
9557 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9558 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9559   echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9562 fi
9563
9564 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9565
9566 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9567 if test "$GCC" = yes; then
9568   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9569 fi
9570
9571 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9572 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9573 hardcode_action=
9574 if test -n "$hardcode_libdir_flag_spec" || \
9575    test -n "$runpath_var" || \
9576    test "X$hardcode_automatic" = "Xyes" ; then
9577
9578   # We can hardcode non-existant directories.
9579   if test "$hardcode_direct" != no &&
9580      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9581      # have to relink, otherwise we might link with an installed library
9582      # when we should be linking with a yet-to-be-installed one
9583      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9584      test "$hardcode_minus_L" != no; then
9585     # Linking always hardcodes the temporary library directory.
9586     hardcode_action=relink
9587   else
9588     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9589     hardcode_action=immediate
9590   fi
9591 else
9592   # We cannot hardcode anything, or else we can only hardcode existing
9593   # directories.
9594   hardcode_action=unsupported
9595 fi
9596 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9597 echo "${ECHO_T}$hardcode_action" >&6; }
9598
9599 if test "$hardcode_action" = relink; then
9600   # Fast installation is not supported
9601   enable_fast_install=no
9602 elif test "$shlibpath_overrides_runpath" = yes ||
9603      test "$enable_shared" = no; then
9604   # Fast installation is not necessary
9605   enable_fast_install=needless
9606 fi
9607
9608 striplib=
9609 old_striplib=
9610 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9611 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9612 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9613   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9614   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9615   { echo "$as_me:$LINENO: result: yes" >&5
9616 echo "${ECHO_T}yes" >&6; }
9617 else
9618 # FIXME - insert some real tests, host_os isn't really good enough
9619   case $host_os in
9620    darwin*)
9621        if test -n "$STRIP" ; then
9622          striplib="$STRIP -x"
9623          old_striplib="$STRIP -S"
9624          { echo "$as_me:$LINENO: result: yes" >&5
9625 echo "${ECHO_T}yes" >&6; }
9626        else
9627   { echo "$as_me:$LINENO: result: no" >&5
9628 echo "${ECHO_T}no" >&6; }
9629 fi
9630        ;;
9631    *)
9632   { echo "$as_me:$LINENO: result: no" >&5
9633 echo "${ECHO_T}no" >&6; }
9634     ;;
9635   esac
9636 fi
9637
9638 if test "x$enable_dlopen" != xyes; then
9639   enable_dlopen=unknown
9640   enable_dlopen_self=unknown
9641   enable_dlopen_self_static=unknown
9642 else
9643   lt_cv_dlopen=no
9644   lt_cv_dlopen_libs=
9645
9646   case $host_os in
9647   beos*)
9648     lt_cv_dlopen="load_add_on"
9649     lt_cv_dlopen_libs=
9650     lt_cv_dlopen_self=yes
9651     ;;
9652
9653   mingw* | pw32*)
9654     lt_cv_dlopen="LoadLibrary"
9655     lt_cv_dlopen_libs=
9656    ;;
9657
9658   cygwin*)
9659     lt_cv_dlopen="dlopen"
9660     lt_cv_dlopen_libs=
9661    ;;
9662
9663   darwin*)
9664   # if libdl is installed we need to link against it
9665     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9666 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9667 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9668   echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670   ac_check_lib_save_LIBS=$LIBS
9671 LIBS="-ldl  $LIBS"
9672 cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h.  */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h.  */
9678
9679 /* Override any GCC internal prototype to avoid an error.
9680    Use char because int might match the return type of a GCC
9681    builtin and then its argument prototype would still apply.  */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 char dlopen ();
9686 int
9687 main ()
9688 {
9689 return dlopen ();
9690   ;
9691   return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest.$ac_objext conftest$ac_exeext
9695 if { (ac_try="$ac_link"
9696 case "(($ac_try" in
9697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698   *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701   (eval "$ac_link") 2>conftest.er1
9702   ac_status=$?
9703   grep -v '^ *+' conftest.er1 >conftest.err
9704   rm -f conftest.er1
9705   cat conftest.err >&5
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); } && {
9708          test -z "$ac_c_werror_flag" ||
9709          test ! -s conftest.err
9710        } && test -s conftest$ac_exeext &&
9711        $as_test_x conftest$ac_exeext; then
9712   ac_cv_lib_dl_dlopen=yes
9713 else
9714   echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717         ac_cv_lib_dl_dlopen=no
9718 fi
9719
9720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9721       conftest$ac_exeext conftest.$ac_ext
9722 LIBS=$ac_check_lib_save_LIBS
9723 fi
9724 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9725 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9726 if test $ac_cv_lib_dl_dlopen = yes; then
9727   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9728 else
9729
9730     lt_cv_dlopen="dyld"
9731     lt_cv_dlopen_libs=
9732     lt_cv_dlopen_self=yes
9733
9734 fi
9735
9736    ;;
9737
9738   *)
9739     { echo "$as_me:$LINENO: checking for shl_load" >&5
9740 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9741 if test "${ac_cv_func_shl_load+set}" = set; then
9742   echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744   cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h.  */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h.  */
9750 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9752 #define shl_load innocuous_shl_load
9753
9754 /* System header to define __stub macros and hopefully few prototypes,
9755     which can conflict with char shl_load (); below.
9756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9757     <limits.h> exists even on freestanding compilers.  */
9758
9759 #ifdef __STDC__
9760 # include <limits.h>
9761 #else
9762 # include <assert.h>
9763 #endif
9764
9765 #undef shl_load
9766
9767 /* Override any GCC internal prototype to avoid an error.
9768    Use char because int might match the return type of a GCC
9769    builtin and then its argument prototype would still apply.  */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 char shl_load ();
9774 /* The GNU C library defines this for functions which it implements
9775     to always fail with ENOSYS.  Some functions are actually named
9776     something starting with __ and the normal name is an alias.  */
9777 #if defined __stub_shl_load || defined __stub___shl_load
9778 choke me
9779 #endif
9780
9781 int
9782 main ()
9783 {
9784 return shl_load ();
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9791 case "(($ac_try" in
9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793   *) ac_try_echo=$ac_try;;
9794 esac
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796   (eval "$ac_link") 2>conftest.er1
9797   ac_status=$?
9798   grep -v '^ *+' conftest.er1 >conftest.err
9799   rm -f conftest.er1
9800   cat conftest.err >&5
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); } && {
9803          test -z "$ac_c_werror_flag" ||
9804          test ! -s conftest.err
9805        } && test -s conftest$ac_exeext &&
9806        $as_test_x conftest$ac_exeext; then
9807   ac_cv_func_shl_load=yes
9808 else
9809   echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812         ac_cv_func_shl_load=no
9813 fi
9814
9815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9816       conftest$ac_exeext conftest.$ac_ext
9817 fi
9818 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9819 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9820 if test $ac_cv_func_shl_load = yes; then
9821   lt_cv_dlopen="shl_load"
9822 else
9823   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9824 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9825 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9826   echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828   ac_check_lib_save_LIBS=$LIBS
9829 LIBS="-ldld  $LIBS"
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h.  */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h.  */
9836
9837 /* Override any GCC internal prototype to avoid an error.
9838    Use char because int might match the return type of a GCC
9839    builtin and then its argument prototype would still apply.  */
9840 #ifdef __cplusplus
9841 extern "C"
9842 #endif
9843 char shl_load ();
9844 int
9845 main ()
9846 {
9847 return shl_load ();
9848   ;
9849   return 0;
9850 }
9851 _ACEOF
9852 rm -f conftest.$ac_objext conftest$ac_exeext
9853 if { (ac_try="$ac_link"
9854 case "(($ac_try" in
9855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856   *) ac_try_echo=$ac_try;;
9857 esac
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859   (eval "$ac_link") 2>conftest.er1
9860   ac_status=$?
9861   grep -v '^ *+' conftest.er1 >conftest.err
9862   rm -f conftest.er1
9863   cat conftest.err >&5
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); } && {
9866          test -z "$ac_c_werror_flag" ||
9867          test ! -s conftest.err
9868        } && test -s conftest$ac_exeext &&
9869        $as_test_x conftest$ac_exeext; then
9870   ac_cv_lib_dld_shl_load=yes
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875         ac_cv_lib_dld_shl_load=no
9876 fi
9877
9878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9879       conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9881 fi
9882 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9883 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9884 if test $ac_cv_lib_dld_shl_load = yes; then
9885   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9886 else
9887   { echo "$as_me:$LINENO: checking for dlopen" >&5
9888 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9889 if test "${ac_cv_func_dlopen+set}" = set; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9900 #define dlopen innocuous_dlopen
9901
9902 /* System header to define __stub macros and hopefully few prototypes,
9903     which can conflict with char dlopen (); below.
9904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9905     <limits.h> exists even on freestanding compilers.  */
9906
9907 #ifdef __STDC__
9908 # include <limits.h>
9909 #else
9910 # include <assert.h>
9911 #endif
9912
9913 #undef dlopen
9914
9915 /* Override any GCC internal prototype to avoid an error.
9916    Use char because int might match the return type of a GCC
9917    builtin and then its argument prototype would still apply.  */
9918 #ifdef __cplusplus
9919 extern "C"
9920 #endif
9921 char dlopen ();
9922 /* The GNU C library defines this for functions which it implements
9923     to always fail with ENOSYS.  Some functions are actually named
9924     something starting with __ and the normal name is an alias.  */
9925 #if defined __stub_dlopen || defined __stub___dlopen
9926 choke me
9927 #endif
9928
9929 int
9930 main ()
9931 {
9932 return dlopen ();
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (ac_try="$ac_link"
9939 case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944   (eval "$ac_link") 2>conftest.er1
9945   ac_status=$?
9946   grep -v '^ *+' conftest.er1 >conftest.err
9947   rm -f conftest.er1
9948   cat conftest.err >&5
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } && {
9951          test -z "$ac_c_werror_flag" ||
9952          test ! -s conftest.err
9953        } && test -s conftest$ac_exeext &&
9954        $as_test_x conftest$ac_exeext; then
9955   ac_cv_func_dlopen=yes
9956 else
9957   echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9959
9960         ac_cv_func_dlopen=no
9961 fi
9962
9963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9964       conftest$ac_exeext conftest.$ac_ext
9965 fi
9966 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9967 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9968 if test $ac_cv_func_dlopen = yes; then
9969   lt_cv_dlopen="dlopen"
9970 else
9971   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9972 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9973 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   ac_check_lib_save_LIBS=$LIBS
9977 LIBS="-ldl  $LIBS"
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h.  */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h.  */
9984
9985 /* Override any GCC internal prototype to avoid an error.
9986    Use char because int might match the return type of a GCC
9987    builtin and then its argument prototype would still apply.  */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 char dlopen ();
9992 int
9993 main ()
9994 {
9995 return dlopen ();
9996   ;
9997   return 0;
9998 }
9999 _ACEOF
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_link") 2>conftest.er1
10008   ac_status=$?
10009   grep -v '^ *+' conftest.er1 >conftest.err
10010   rm -f conftest.er1
10011   cat conftest.err >&5
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } && {
10014          test -z "$ac_c_werror_flag" ||
10015          test ! -s conftest.err
10016        } && test -s conftest$ac_exeext &&
10017        $as_test_x conftest$ac_exeext; then
10018   ac_cv_lib_dl_dlopen=yes
10019 else
10020   echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10022
10023         ac_cv_lib_dl_dlopen=no
10024 fi
10025
10026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027       conftest$ac_exeext conftest.$ac_ext
10028 LIBS=$ac_check_lib_save_LIBS
10029 fi
10030 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10031 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10032 if test $ac_cv_lib_dl_dlopen = yes; then
10033   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10034 else
10035   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10036 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10037 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   ac_check_lib_save_LIBS=$LIBS
10041 LIBS="-lsvld  $LIBS"
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h.  */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h.  */
10048
10049 /* Override any GCC internal prototype to avoid an error.
10050    Use char because int might match the return type of a GCC
10051    builtin and then its argument prototype would still apply.  */
10052 #ifdef __cplusplus
10053 extern "C"
10054 #endif
10055 char dlopen ();
10056 int
10057 main ()
10058 {
10059 return dlopen ();
10060   ;
10061   return 0;
10062 }
10063 _ACEOF
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068   *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071   (eval "$ac_link") 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } && {
10078          test -z "$ac_c_werror_flag" ||
10079          test ! -s conftest.err
10080        } && test -s conftest$ac_exeext &&
10081        $as_test_x conftest$ac_exeext; then
10082   ac_cv_lib_svld_dlopen=yes
10083 else
10084   echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087         ac_cv_lib_svld_dlopen=no
10088 fi
10089
10090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10091       conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10093 fi
10094 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10095 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10096 if test $ac_cv_lib_svld_dlopen = yes; then
10097   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10098 else
10099   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10100 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10102   echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104   ac_check_lib_save_LIBS=$LIBS
10105 LIBS="-ldld  $LIBS"
10106 cat >conftest.$ac_ext <<_ACEOF
10107 /* confdefs.h.  */
10108 _ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h.  */
10112
10113 /* Override any GCC internal prototype to avoid an error.
10114    Use char because int might match the return type of a GCC
10115    builtin and then its argument prototype would still apply.  */
10116 #ifdef __cplusplus
10117 extern "C"
10118 #endif
10119 char dld_link ();
10120 int
10121 main ()
10122 {
10123 return dld_link ();
10124   ;
10125   return 0;
10126 }
10127 _ACEOF
10128 rm -f conftest.$ac_objext conftest$ac_exeext
10129 if { (ac_try="$ac_link"
10130 case "(($ac_try" in
10131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132   *) ac_try_echo=$ac_try;;
10133 esac
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135   (eval "$ac_link") 2>conftest.er1
10136   ac_status=$?
10137   grep -v '^ *+' conftest.er1 >conftest.err
10138   rm -f conftest.er1
10139   cat conftest.err >&5
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); } && {
10142          test -z "$ac_c_werror_flag" ||
10143          test ! -s conftest.err
10144        } && test -s conftest$ac_exeext &&
10145        $as_test_x conftest$ac_exeext; then
10146   ac_cv_lib_dld_dld_link=yes
10147 else
10148   echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10150
10151         ac_cv_lib_dld_dld_link=no
10152 fi
10153
10154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10155       conftest$ac_exeext conftest.$ac_ext
10156 LIBS=$ac_check_lib_save_LIBS
10157 fi
10158 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10159 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10160 if test $ac_cv_lib_dld_dld_link = yes; then
10161   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10162 fi
10163
10164
10165 fi
10166
10167
10168 fi
10169
10170
10171 fi
10172
10173
10174 fi
10175
10176
10177 fi
10178
10179     ;;
10180   esac
10181
10182   if test "x$lt_cv_dlopen" != xno; then
10183     enable_dlopen=yes
10184   else
10185     enable_dlopen=no
10186   fi
10187
10188   case $lt_cv_dlopen in
10189   dlopen)
10190     save_CPPFLAGS="$CPPFLAGS"
10191     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10192
10193     save_LDFLAGS="$LDFLAGS"
10194     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10195
10196     save_LIBS="$LIBS"
10197     LIBS="$lt_cv_dlopen_libs $LIBS"
10198
10199     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10200 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10201 if test "${lt_cv_dlopen_self+set}" = set; then
10202   echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204           if test "$cross_compiling" = yes; then :
10205   lt_cv_dlopen_self=cross
10206 else
10207   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10208   lt_status=$lt_dlunknown
10209   cat > conftest.$ac_ext <<EOF
10210 #line 10210 "configure"
10211 #include "confdefs.h"
10212
10213 #if HAVE_DLFCN_H
10214 #include <dlfcn.h>
10215 #endif
10216
10217 #include <stdio.h>
10218
10219 #ifdef RTLD_GLOBAL
10220 #  define LT_DLGLOBAL           RTLD_GLOBAL
10221 #else
10222 #  ifdef DL_GLOBAL
10223 #    define LT_DLGLOBAL         DL_GLOBAL
10224 #  else
10225 #    define LT_DLGLOBAL         0
10226 #  endif
10227 #endif
10228
10229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10230    find out it does not work in some platform. */
10231 #ifndef LT_DLLAZY_OR_NOW
10232 #  ifdef RTLD_LAZY
10233 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10234 #  else
10235 #    ifdef DL_LAZY
10236 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10237 #    else
10238 #      ifdef RTLD_NOW
10239 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10240 #      else
10241 #        ifdef DL_NOW
10242 #          define LT_DLLAZY_OR_NOW      DL_NOW
10243 #        else
10244 #          define LT_DLLAZY_OR_NOW      0
10245 #        endif
10246 #      endif
10247 #    endif
10248 #  endif
10249 #endif
10250
10251 #ifdef __cplusplus
10252 extern "C" void exit (int);
10253 #endif
10254
10255 void fnord() { int i=42;}
10256 int main ()
10257 {
10258   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10259   int status = $lt_dlunknown;
10260
10261   if (self)
10262     {
10263       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10264       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10265       /* dlclose (self); */
10266     }
10267   else
10268     puts (dlerror ());
10269
10270     exit (status);
10271 }
10272 EOF
10273   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10274   (eval $ac_link) 2>&5
10275   ac_status=$?
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10278     (./conftest; exit; ) >&5 2>/dev/null
10279     lt_status=$?
10280     case x$lt_status in
10281       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10282       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10283       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10284     esac
10285   else :
10286     # compilation failed
10287     lt_cv_dlopen_self=no
10288   fi
10289 fi
10290 rm -fr conftest*
10291
10292
10293 fi
10294 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10295 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10296
10297     if test "x$lt_cv_dlopen_self" = xyes; then
10298       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10299       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10300 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10301 if test "${lt_cv_dlopen_self_static+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304           if test "$cross_compiling" = yes; then :
10305   lt_cv_dlopen_self_static=cross
10306 else
10307   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10308   lt_status=$lt_dlunknown
10309   cat > conftest.$ac_ext <<EOF
10310 #line 10310 "configure"
10311 #include "confdefs.h"
10312
10313 #if HAVE_DLFCN_H
10314 #include <dlfcn.h>
10315 #endif
10316
10317 #include <stdio.h>
10318
10319 #ifdef RTLD_GLOBAL
10320 #  define LT_DLGLOBAL           RTLD_GLOBAL
10321 #else
10322 #  ifdef DL_GLOBAL
10323 #    define LT_DLGLOBAL         DL_GLOBAL
10324 #  else
10325 #    define LT_DLGLOBAL         0
10326 #  endif
10327 #endif
10328
10329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10330    find out it does not work in some platform. */
10331 #ifndef LT_DLLAZY_OR_NOW
10332 #  ifdef RTLD_LAZY
10333 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10334 #  else
10335 #    ifdef DL_LAZY
10336 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10337 #    else
10338 #      ifdef RTLD_NOW
10339 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10340 #      else
10341 #        ifdef DL_NOW
10342 #          define LT_DLLAZY_OR_NOW      DL_NOW
10343 #        else
10344 #          define LT_DLLAZY_OR_NOW      0
10345 #        endif
10346 #      endif
10347 #    endif
10348 #  endif
10349 #endif
10350
10351 #ifdef __cplusplus
10352 extern "C" void exit (int);
10353 #endif
10354
10355 void fnord() { int i=42;}
10356 int main ()
10357 {
10358   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10359   int status = $lt_dlunknown;
10360
10361   if (self)
10362     {
10363       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10364       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10365       /* dlclose (self); */
10366     }
10367   else
10368     puts (dlerror ());
10369
10370     exit (status);
10371 }
10372 EOF
10373   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374   (eval $ac_link) 2>&5
10375   ac_status=$?
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10378     (./conftest; exit; ) >&5 2>/dev/null
10379     lt_status=$?
10380     case x$lt_status in
10381       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10382       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10383       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10384     esac
10385   else :
10386     # compilation failed
10387     lt_cv_dlopen_self_static=no
10388   fi
10389 fi
10390 rm -fr conftest*
10391
10392
10393 fi
10394 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10395 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10396     fi
10397
10398     CPPFLAGS="$save_CPPFLAGS"
10399     LDFLAGS="$save_LDFLAGS"
10400     LIBS="$save_LIBS"
10401     ;;
10402   esac
10403
10404   case $lt_cv_dlopen_self in
10405   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10406   *) enable_dlopen_self=unknown ;;
10407   esac
10408
10409   case $lt_cv_dlopen_self_static in
10410   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10411   *) enable_dlopen_self_static=unknown ;;
10412   esac
10413 fi
10414
10415
10416 # Report which library types will actually be built
10417 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10418 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10419 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10420 echo "${ECHO_T}$can_build_shared" >&6; }
10421
10422 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10423 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10424 test "$can_build_shared" = "no" && enable_shared=no
10425
10426 # On AIX, shared libraries and static libraries use the same namespace, and
10427 # are all built from PIC.
10428 case $host_os in
10429 aix3*)
10430   test "$enable_shared" = yes && enable_static=no
10431   if test -n "$RANLIB"; then
10432     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10433     postinstall_cmds='$RANLIB $lib'
10434   fi
10435   ;;
10436
10437 aix[4-9]*)
10438   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10439     test "$enable_shared" = yes && enable_static=no
10440   fi
10441     ;;
10442 esac
10443 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10444 echo "${ECHO_T}$enable_shared" >&6; }
10445
10446 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10447 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10448 # Make sure either enable_shared or enable_static is yes.
10449 test "$enable_shared" = yes || enable_static=yes
10450 { echo "$as_me:$LINENO: result: $enable_static" >&5
10451 echo "${ECHO_T}$enable_static" >&6; }
10452
10453 # The else clause should only fire when bootstrapping the
10454 # libtool distribution, otherwise you forgot to ship ltmain.sh
10455 # with your package, and you will get complaints that there are
10456 # no rules to generate ltmain.sh.
10457 if test -f "$ltmain"; then
10458   # See if we are running on zsh, and set the options which allow our commands through
10459   # without removal of \ escapes.
10460   if test -n "${ZSH_VERSION+set}" ; then
10461     setopt NO_GLOB_SUBST
10462   fi
10463   # Now quote all the things that may contain metacharacters while being
10464   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10465   # variables and quote the copies for generation of the libtool script.
10466   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10467     SED SHELL STRIP \
10468     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10469     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10470     deplibs_check_method reload_flag reload_cmds need_locks \
10471     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10472     lt_cv_sys_global_symbol_to_c_name_address \
10473     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10474     old_postinstall_cmds old_postuninstall_cmds \
10475     compiler \
10476     CC \
10477     LD \
10478     lt_prog_compiler_wl \
10479     lt_prog_compiler_pic \
10480     lt_prog_compiler_static \
10481     lt_prog_compiler_no_builtin_flag \
10482     export_dynamic_flag_spec \
10483     thread_safe_flag_spec \
10484     whole_archive_flag_spec \
10485     enable_shared_with_static_runtimes \
10486     old_archive_cmds \
10487     old_archive_from_new_cmds \
10488     predep_objects \
10489     postdep_objects \
10490     predeps \
10491     postdeps \
10492     compiler_lib_search_path \
10493     compiler_lib_search_dirs \
10494     archive_cmds \
10495     archive_expsym_cmds \
10496     postinstall_cmds \
10497     postuninstall_cmds \
10498     old_archive_from_expsyms_cmds \
10499     allow_undefined_flag \
10500     no_undefined_flag \
10501     export_symbols_cmds \
10502     hardcode_libdir_flag_spec \
10503     hardcode_libdir_flag_spec_ld \
10504     hardcode_libdir_separator \
10505     hardcode_automatic \
10506     module_cmds \
10507     module_expsym_cmds \
10508     lt_cv_prog_compiler_c_o \
10509     fix_srcfile_path \
10510     exclude_expsyms \
10511     include_expsyms; do
10512
10513     case $var in
10514     old_archive_cmds | \
10515     old_archive_from_new_cmds | \
10516     archive_cmds | \
10517     archive_expsym_cmds | \
10518     module_cmds | \
10519     module_expsym_cmds | \
10520     old_archive_from_expsyms_cmds | \
10521     export_symbols_cmds | \
10522     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10523     postinstall_cmds | postuninstall_cmds | \
10524     old_postinstall_cmds | old_postuninstall_cmds | \
10525     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10526       # Double-quote double-evaled strings.
10527       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10528       ;;
10529     *)
10530       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10531       ;;
10532     esac
10533   done
10534
10535   case $lt_echo in
10536   *'\$0 --fallback-echo"')
10537     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10538     ;;
10539   esac
10540
10541 cfgfile="${ofile}T"
10542   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10543   $rm -f "$cfgfile"
10544   { echo "$as_me:$LINENO: creating $ofile" >&5
10545 echo "$as_me: creating $ofile" >&6;}
10546
10547   cat <<__EOF__ >> "$cfgfile"
10548 #! $SHELL
10549
10550 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10551 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10552 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10553 #
10554 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10555 # Free Software Foundation, Inc.
10556 #
10557 # This file is part of GNU Libtool:
10558 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10559 #
10560 # This program is free software; you can redistribute it and/or modify
10561 # it under the terms of the GNU General Public License as published by
10562 # the Free Software Foundation; either version 2 of the License, or
10563 # (at your option) any later version.
10564 #
10565 # This program is distributed in the hope that it will be useful, but
10566 # WITHOUT ANY WARRANTY; without even the implied warranty of
10567 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10568 # General Public License for more details.
10569 #
10570 # You should have received a copy of the GNU General Public License
10571 # along with this program; if not, write to the Free Software
10572 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10573 #
10574 # As a special exception to the GNU General Public License, if you
10575 # distribute this file as part of a program that contains a
10576 # configuration script generated by Autoconf, you may include it under
10577 # the same distribution terms that you use for the rest of that program.
10578
10579 # A sed program that does not truncate output.
10580 SED=$lt_SED
10581
10582 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10583 Xsed="$SED -e 1s/^X//"
10584
10585 # The HP-UX ksh and POSIX shell print the target directory to stdout
10586 # if CDPATH is set.
10587 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10588
10589 # The names of the tagged configurations supported by this script.
10590 available_tags=
10591
10592 # ### BEGIN LIBTOOL CONFIG
10593
10594 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10595
10596 # Shell to use when invoking shell scripts.
10597 SHELL=$lt_SHELL
10598
10599 # Whether or not to build shared libraries.
10600 build_libtool_libs=$enable_shared
10601
10602 # Whether or not to build static libraries.
10603 build_old_libs=$enable_static
10604
10605 # Whether or not to add -lc for building shared libraries.
10606 build_libtool_need_lc=$archive_cmds_need_lc
10607
10608 # Whether or not to disallow shared libs when runtime libs are static
10609 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10610
10611 # Whether or not to optimize for fast installation.
10612 fast_install=$enable_fast_install
10613
10614 # The host system.
10615 host_alias=$host_alias
10616 host=$host
10617 host_os=$host_os
10618
10619 # The build system.
10620 build_alias=$build_alias
10621 build=$build
10622 build_os=$build_os
10623
10624 # An echo program that does not interpret backslashes.
10625 echo=$lt_echo
10626
10627 # The archiver.
10628 AR=$lt_AR
10629 AR_FLAGS=$lt_AR_FLAGS
10630
10631 # A C compiler.
10632 LTCC=$lt_LTCC
10633
10634 # LTCC compiler flags.
10635 LTCFLAGS=$lt_LTCFLAGS
10636
10637 # A language-specific compiler.
10638 CC=$lt_compiler
10639
10640 # Is the compiler the GNU C compiler?
10641 with_gcc=$GCC
10642
10643 # An ERE matcher.
10644 EGREP=$lt_EGREP
10645
10646 # The linker used to build libraries.
10647 LD=$lt_LD
10648
10649 # Whether we need hard or soft links.
10650 LN_S=$lt_LN_S
10651
10652 # A BSD-compatible nm program.
10653 NM=$lt_NM
10654
10655 # A symbol stripping program
10656 STRIP=$lt_STRIP
10657
10658 # Used to examine libraries when file_magic_cmd begins "file"
10659 MAGIC_CMD=$MAGIC_CMD
10660
10661 # Used on cygwin: DLL creation program.
10662 DLLTOOL="$DLLTOOL"
10663
10664 # Used on cygwin: object dumper.
10665 OBJDUMP="$OBJDUMP"
10666
10667 # Used on cygwin: assembler.
10668 AS="$AS"
10669
10670 # The name of the directory that contains temporary libtool files.
10671 objdir=$objdir
10672
10673 # How to create reloadable object files.
10674 reload_flag=$lt_reload_flag
10675 reload_cmds=$lt_reload_cmds
10676
10677 # How to pass a linker flag through the compiler.
10678 wl=$lt_lt_prog_compiler_wl
10679
10680 # Object file suffix (normally "o").
10681 objext="$ac_objext"
10682
10683 # Old archive suffix (normally "a").
10684 libext="$libext"
10685
10686 # Shared library suffix (normally ".so").
10687 shrext_cmds='$shrext_cmds'
10688
10689 # Executable file suffix (normally "").
10690 exeext="$exeext"
10691
10692 # Additional compiler flags for building library objects.
10693 pic_flag=$lt_lt_prog_compiler_pic
10694 pic_mode=$pic_mode
10695
10696 # What is the maximum length of a command?
10697 max_cmd_len=$lt_cv_sys_max_cmd_len
10698
10699 # Does compiler simultaneously support -c and -o options?
10700 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10701
10702 # Must we lock files when doing compilation?
10703 need_locks=$lt_need_locks
10704
10705 # Do we need the lib prefix for modules?
10706 need_lib_prefix=$need_lib_prefix
10707
10708 # Do we need a version for libraries?
10709 need_version=$need_version
10710
10711 # Whether dlopen is supported.
10712 dlopen_support=$enable_dlopen
10713
10714 # Whether dlopen of programs is supported.
10715 dlopen_self=$enable_dlopen_self
10716
10717 # Whether dlopen of statically linked programs is supported.
10718 dlopen_self_static=$enable_dlopen_self_static
10719
10720 # Compiler flag to prevent dynamic linking.
10721 link_static_flag=$lt_lt_prog_compiler_static
10722
10723 # Compiler flag to turn off builtin functions.
10724 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10725
10726 # Compiler flag to allow reflexive dlopens.
10727 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10728
10729 # Compiler flag to generate shared objects directly from archives.
10730 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10731
10732 # Compiler flag to generate thread-safe objects.
10733 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10734
10735 # Library versioning type.
10736 version_type=$version_type
10737
10738 # Format of library name prefix.
10739 libname_spec=$lt_libname_spec
10740
10741 # List of archive names.  First name is the real one, the rest are links.
10742 # The last name is the one that the linker finds with -lNAME.
10743 library_names_spec=$lt_library_names_spec
10744
10745 # The coded name of the library, if different from the real name.
10746 soname_spec=$lt_soname_spec
10747
10748 # Commands used to build and install an old-style archive.
10749 RANLIB=$lt_RANLIB
10750 old_archive_cmds=$lt_old_archive_cmds
10751 old_postinstall_cmds=$lt_old_postinstall_cmds
10752 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10753
10754 # Create an old-style archive from a shared archive.
10755 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10756
10757 # Create a temporary old-style archive to link instead of a shared archive.
10758 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10759
10760 # Commands used to build and install a shared archive.
10761 archive_cmds=$lt_archive_cmds
10762 archive_expsym_cmds=$lt_archive_expsym_cmds
10763 postinstall_cmds=$lt_postinstall_cmds
10764 postuninstall_cmds=$lt_postuninstall_cmds
10765
10766 # Commands used to build a loadable module (assumed same as above if empty)
10767 module_cmds=$lt_module_cmds
10768 module_expsym_cmds=$lt_module_expsym_cmds
10769
10770 # Commands to strip libraries.
10771 old_striplib=$lt_old_striplib
10772 striplib=$lt_striplib
10773
10774 # Dependencies to place before the objects being linked to create a
10775 # shared library.
10776 predep_objects=$lt_predep_objects
10777
10778 # Dependencies to place after the objects being linked to create a
10779 # shared library.
10780 postdep_objects=$lt_postdep_objects
10781
10782 # Dependencies to place before the objects being linked to create a
10783 # shared library.
10784 predeps=$lt_predeps
10785
10786 # Dependencies to place after the objects being linked to create a
10787 # shared library.
10788 postdeps=$lt_postdeps
10789
10790 # The directories searched by this compiler when creating a shared
10791 # library
10792 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10793
10794 # The library search path used internally by the compiler when linking
10795 # a shared library.
10796 compiler_lib_search_path=$lt_compiler_lib_search_path
10797
10798 # Method to check whether dependent libraries are shared objects.
10799 deplibs_check_method=$lt_deplibs_check_method
10800
10801 # Command to use when deplibs_check_method == file_magic.
10802 file_magic_cmd=$lt_file_magic_cmd
10803
10804 # Flag that allows shared libraries with undefined symbols to be built.
10805 allow_undefined_flag=$lt_allow_undefined_flag
10806
10807 # Flag that forces no undefined symbols.
10808 no_undefined_flag=$lt_no_undefined_flag
10809
10810 # Commands used to finish a libtool library installation in a directory.
10811 finish_cmds=$lt_finish_cmds
10812
10813 # Same as above, but a single script fragment to be evaled but not shown.
10814 finish_eval=$lt_finish_eval
10815
10816 # Take the output of nm and produce a listing of raw symbols and C names.
10817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10818
10819 # Transform the output of nm in a proper C declaration
10820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10821
10822 # Transform the output of nm in a C name address pair
10823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10824
10825 # This is the shared library runtime path variable.
10826 runpath_var=$runpath_var
10827
10828 # This is the shared library path variable.
10829 shlibpath_var=$shlibpath_var
10830
10831 # Is shlibpath searched before the hard-coded library search path?
10832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10833
10834 # How to hardcode a shared library path into an executable.
10835 hardcode_action=$hardcode_action
10836
10837 # Whether we should hardcode library paths into libraries.
10838 hardcode_into_libs=$hardcode_into_libs
10839
10840 # Flag to hardcode \$libdir into a binary during linking.
10841 # This must work even if \$libdir does not exist.
10842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10843
10844 # If ld is used when linking, flag to hardcode \$libdir into
10845 # a binary during linking. This must work even if \$libdir does
10846 # not exist.
10847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10848
10849 # Whether we need a single -rpath flag with a separated argument.
10850 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10851
10852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10853 # resulting binary.
10854 hardcode_direct=$hardcode_direct
10855
10856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10857 # resulting binary.
10858 hardcode_minus_L=$hardcode_minus_L
10859
10860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10861 # the resulting binary.
10862 hardcode_shlibpath_var=$hardcode_shlibpath_var
10863
10864 # Set to yes if building a shared library automatically hardcodes DIR into the library
10865 # and all subsequent libraries and executables linked against it.
10866 hardcode_automatic=$hardcode_automatic
10867
10868 # Variables whose values should be saved in libtool wrapper scripts and
10869 # restored at relink time.
10870 variables_saved_for_relink="$variables_saved_for_relink"
10871
10872 # Whether libtool must link a program against all its dependency libraries.
10873 link_all_deplibs=$link_all_deplibs
10874
10875 # Compile-time system search path for libraries
10876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10877
10878 # Run-time system search path for libraries
10879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10880
10881 # Fix the shell variable \$srcfile for the compiler.
10882 fix_srcfile_path=$lt_fix_srcfile_path
10883
10884 # Set to yes if exported symbols are required.
10885 always_export_symbols=$always_export_symbols
10886
10887 # The commands to list exported symbols.
10888 export_symbols_cmds=$lt_export_symbols_cmds
10889
10890 # The commands to extract the exported symbol list from a shared archive.
10891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10892
10893 # Symbols that should not be listed in the preloaded symbols.
10894 exclude_expsyms=$lt_exclude_expsyms
10895
10896 # Symbols that must always be exported.
10897 include_expsyms=$lt_include_expsyms
10898
10899 # ### END LIBTOOL CONFIG
10900
10901 __EOF__
10902
10903
10904   case $host_os in
10905   aix3*)
10906     cat <<\EOF >> "$cfgfile"
10907
10908 # AIX sometimes has problems with the GCC collect2 program.  For some
10909 # reason, if we set the COLLECT_NAMES environment variable, the problems
10910 # vanish in a puff of smoke.
10911 if test "X${COLLECT_NAMES+set}" != Xset; then
10912   COLLECT_NAMES=
10913   export COLLECT_NAMES
10914 fi
10915 EOF
10916     ;;
10917   esac
10918
10919   # We use sed instead of cat because bash on DJGPP gets confused if
10920   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10921   # text mode, it properly converts lines to CR/LF.  This bash problem
10922   # is reportedly fixed, but why not run on old versions too?
10923   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10924
10925   mv -f "$cfgfile" "$ofile" || \
10926     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10927   chmod +x "$ofile"
10928
10929 else
10930   # If there is no Makefile yet, we rely on a make rule to execute
10931   # `config.status --recheck' to rerun these tests and create the
10932   # libtool script then.
10933   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10934   if test -f "$ltmain_in"; then
10935     test -f Makefile && make "$ltmain"
10936   fi
10937 fi
10938
10939
10940 ac_ext=cpp
10941 ac_cpp='$CXXCPP $CPPFLAGS'
10942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10945
10946 CC="$lt_save_CC"
10947
10948
10949 # Check whether --with-tags was given.
10950 if test "${with_tags+set}" = set; then
10951   withval=$with_tags; tagnames="$withval"
10952 fi
10953
10954
10955 if test -f "$ltmain" && test -n "$tagnames"; then
10956   if test ! -f "${ofile}"; then
10957     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10958 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10959   fi
10960
10961   if test -z "$LTCC"; then
10962     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10963     if test -z "$LTCC"; then
10964       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10965 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10966     else
10967       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10968 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10969     fi
10970   fi
10971   if test -z "$LTCFLAGS"; then
10972     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10973   fi
10974
10975   # Extract list of available tagged configurations in $ofile.
10976   # Note that this assumes the entire list is on one line.
10977   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10978
10979   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10980   for tagname in $tagnames; do
10981     IFS="$lt_save_ifs"
10982     # Check whether tagname contains only valid characters
10983     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10984     "") ;;
10985     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10986 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10987    { (exit 1); exit 1; }; }
10988         ;;
10989     esac
10990
10991     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10992     then
10993       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10994 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10995    { (exit 1); exit 1; }; }
10996     fi
10997
10998     # Update the list of available tags.
10999     if test -n "$tagname"; then
11000       echo appending configuration tag \"$tagname\" to $ofile
11001
11002       case $tagname in
11003       CXX)
11004         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11005             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11006             (test "X$CXX" != "Xg++"))) ; then
11007           ac_ext=cpp
11008 ac_cpp='$CXXCPP $CPPFLAGS'
11009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11012
11013
11014
11015
11016 archive_cmds_need_lc_CXX=no
11017 allow_undefined_flag_CXX=
11018 always_export_symbols_CXX=no
11019 archive_expsym_cmds_CXX=
11020 export_dynamic_flag_spec_CXX=
11021 hardcode_direct_CXX=no
11022 hardcode_libdir_flag_spec_CXX=
11023 hardcode_libdir_flag_spec_ld_CXX=
11024 hardcode_libdir_separator_CXX=
11025 hardcode_minus_L_CXX=no
11026 hardcode_shlibpath_var_CXX=unsupported
11027 hardcode_automatic_CXX=no
11028 module_cmds_CXX=
11029 module_expsym_cmds_CXX=
11030 link_all_deplibs_CXX=unknown
11031 old_archive_cmds_CXX=$old_archive_cmds
11032 no_undefined_flag_CXX=
11033 whole_archive_flag_spec_CXX=
11034 enable_shared_with_static_runtimes_CXX=no
11035
11036 # Dependencies to place before and after the object being linked:
11037 predep_objects_CXX=
11038 postdep_objects_CXX=
11039 predeps_CXX=
11040 postdeps_CXX=
11041 compiler_lib_search_path_CXX=
11042 compiler_lib_search_dirs_CXX=
11043
11044 # Source file extension for C++ test sources.
11045 ac_ext=cpp
11046
11047 # Object file extension for compiled C++ test sources.
11048 objext=o
11049 objext_CXX=$objext
11050
11051 # Code to be used in simple compile tests
11052 lt_simple_compile_test_code="int some_variable = 0;"
11053
11054 # Code to be used in simple link tests
11055 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11056
11057 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11058
11059 # If no C compiler was specified, use CC.
11060 LTCC=${LTCC-"$CC"}
11061
11062 # If no C compiler flags were specified, use CFLAGS.
11063 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11064
11065 # Allow CC to be a program name with arguments.
11066 compiler=$CC
11067
11068
11069 # save warnings/boilerplate of simple test code
11070 ac_outfile=conftest.$ac_objext
11071 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11072 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11073 _lt_compiler_boilerplate=`cat conftest.err`
11074 $rm conftest*
11075
11076 ac_outfile=conftest.$ac_objext
11077 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11078 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11079 _lt_linker_boilerplate=`cat conftest.err`
11080 $rm -r conftest*
11081
11082
11083 # Allow CC to be a program name with arguments.
11084 lt_save_CC=$CC
11085 lt_save_LD=$LD
11086 lt_save_GCC=$GCC
11087 GCC=$GXX
11088 lt_save_with_gnu_ld=$with_gnu_ld
11089 lt_save_path_LD=$lt_cv_path_LD
11090 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11091   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11092 else
11093   $as_unset lt_cv_prog_gnu_ld
11094 fi
11095 if test -n "${lt_cv_path_LDCXX+set}"; then
11096   lt_cv_path_LD=$lt_cv_path_LDCXX
11097 else
11098   $as_unset lt_cv_path_LD
11099 fi
11100 test -z "${LDCXX+set}" || LD=$LDCXX
11101 CC=${CXX-"c++"}
11102 compiler=$CC
11103 compiler_CXX=$CC
11104 for cc_temp in $compiler""; do
11105   case $cc_temp in
11106     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11107     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11108     \-*) ;;
11109     *) break;;
11110   esac
11111 done
11112 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11113
11114
11115 # We don't want -fno-exception wen compiling C++ code, so set the
11116 # no_builtin_flag separately
11117 if test "$GXX" = yes; then
11118   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11119 else
11120   lt_prog_compiler_no_builtin_flag_CXX=
11121 fi
11122
11123 if test "$GXX" = yes; then
11124   # Set up default GNU C++ configuration
11125
11126
11127 # Check whether --with-gnu-ld was given.
11128 if test "${with_gnu_ld+set}" = set; then
11129   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11130 else
11131   with_gnu_ld=no
11132 fi
11133
11134 ac_prog=ld
11135 if test "$GCC" = yes; then
11136   # Check if gcc -print-prog-name=ld gives a path.
11137   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11138 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11139   case $host in
11140   *-*-mingw*)
11141     # gcc leaves a trailing carriage return which upsets mingw
11142     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11143   *)
11144     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11145   esac
11146   case $ac_prog in
11147     # Accept absolute paths.
11148     [\\/]* | ?:[\\/]*)
11149       re_direlt='/[^/][^/]*/\.\./'
11150       # Canonicalize the pathname of ld
11151       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11152       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11153         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11154       done
11155       test -z "$LD" && LD="$ac_prog"
11156       ;;
11157   "")
11158     # If it fails, then pretend we aren't using GCC.
11159     ac_prog=ld
11160     ;;
11161   *)
11162     # If it is relative, then search for the first ld in PATH.
11163     with_gnu_ld=unknown
11164     ;;
11165   esac
11166 elif test "$with_gnu_ld" = yes; then
11167   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11168 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11169 else
11170   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11171 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11172 fi
11173 if test "${lt_cv_path_LD+set}" = set; then
11174   echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176   if test -z "$LD"; then
11177   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11178   for ac_dir in $PATH; do
11179     IFS="$lt_save_ifs"
11180     test -z "$ac_dir" && ac_dir=.
11181     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11182       lt_cv_path_LD="$ac_dir/$ac_prog"
11183       # Check to see if the program is GNU ld.  I'd rather use --version,
11184       # but apparently some variants of GNU ld only accept -v.
11185       # Break only if it was the GNU/non-GNU ld that we prefer.
11186       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11187       *GNU* | *'with BFD'*)
11188         test "$with_gnu_ld" != no && break
11189         ;;
11190       *)
11191         test "$with_gnu_ld" != yes && break
11192         ;;
11193       esac
11194     fi
11195   done
11196   IFS="$lt_save_ifs"
11197 else
11198   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11199 fi
11200 fi
11201
11202 LD="$lt_cv_path_LD"
11203 if test -n "$LD"; then
11204   { echo "$as_me:$LINENO: result: $LD" >&5
11205 echo "${ECHO_T}$LD" >&6; }
11206 else
11207   { echo "$as_me:$LINENO: result: no" >&5
11208 echo "${ECHO_T}no" >&6; }
11209 fi
11210 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11211 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11212    { (exit 1); exit 1; }; }
11213 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11214 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11215 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11219 case `$LD -v 2>&1 </dev/null` in
11220 *GNU* | *'with BFD'*)
11221   lt_cv_prog_gnu_ld=yes
11222   ;;
11223 *)
11224   lt_cv_prog_gnu_ld=no
11225   ;;
11226 esac
11227 fi
11228 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11229 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11230 with_gnu_ld=$lt_cv_prog_gnu_ld
11231
11232
11233
11234   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11235   # archiving commands below assume that GNU ld is being used.
11236   if test "$with_gnu_ld" = yes; then
11237     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11238     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11239
11240     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11241     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11242
11243     # If archive_cmds runs LD, not CC, wlarc should be empty
11244     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11245     #     investigate it a little bit more. (MM)
11246     wlarc='${wl}'
11247
11248     # ancient GNU ld didn't support --whole-archive et. al.
11249     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11250         grep 'no-whole-archive' > /dev/null; then
11251       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11252     else
11253       whole_archive_flag_spec_CXX=
11254     fi
11255   else
11256     with_gnu_ld=no
11257     wlarc=
11258
11259     # A generic and very simple default shared library creation
11260     # command for GNU C++ for the case where it uses the native
11261     # linker, instead of GNU ld.  If possible, this setting should
11262     # overridden to take advantage of the native linker features on
11263     # the platform it is being used on.
11264     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11265   fi
11266
11267   # Commands to make compiler produce verbose output that lists
11268   # what "hidden" libraries, object files and flags are used when
11269   # linking a shared library.
11270   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11271
11272 else
11273   GXX=no
11274   with_gnu_ld=no
11275   wlarc=
11276 fi
11277
11278 # PORTME: fill in a description of your system's C++ link characteristics
11279 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11280 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11281 ld_shlibs_CXX=yes
11282 case $host_os in
11283   aix3*)
11284     # FIXME: insert proper C++ library support
11285     ld_shlibs_CXX=no
11286     ;;
11287   aix[4-9]*)
11288     if test "$host_cpu" = ia64; then
11289       # On IA64, the linker does run time linking by default, so we don't
11290       # have to do anything special.
11291       aix_use_runtimelinking=no
11292       exp_sym_flag='-Bexport'
11293       no_entry_flag=""
11294     else
11295       aix_use_runtimelinking=no
11296
11297       # Test if we are trying to use run time linking or normal
11298       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11299       # need to do runtime linking.
11300       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11301         for ld_flag in $LDFLAGS; do
11302           case $ld_flag in
11303           *-brtl*)
11304             aix_use_runtimelinking=yes
11305             break
11306             ;;
11307           esac
11308         done
11309         ;;
11310       esac
11311
11312       exp_sym_flag='-bexport'
11313       no_entry_flag='-bnoentry'
11314     fi
11315
11316     # When large executables or shared objects are built, AIX ld can
11317     # have problems creating the table of contents.  If linking a library
11318     # or program results in "error TOC overflow" add -mminimal-toc to
11319     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11320     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11321
11322     archive_cmds_CXX=''
11323     hardcode_direct_CXX=yes
11324     hardcode_libdir_separator_CXX=':'
11325     link_all_deplibs_CXX=yes
11326
11327     if test "$GXX" = yes; then
11328       case $host_os in aix4.[012]|aix4.[012].*)
11329       # We only want to do this on AIX 4.2 and lower, the check
11330       # below for broken collect2 doesn't work under 4.3+
11331         collect2name=`${CC} -print-prog-name=collect2`
11332         if test -f "$collect2name" && \
11333            strings "$collect2name" | grep resolve_lib_name >/dev/null
11334         then
11335           # We have reworked collect2
11336           :
11337         else
11338           # We have old collect2
11339           hardcode_direct_CXX=unsupported
11340           # It fails to find uninstalled libraries when the uninstalled
11341           # path is not listed in the libpath.  Setting hardcode_minus_L
11342           # to unsupported forces relinking
11343           hardcode_minus_L_CXX=yes
11344           hardcode_libdir_flag_spec_CXX='-L$libdir'
11345           hardcode_libdir_separator_CXX=
11346         fi
11347         ;;
11348       esac
11349       shared_flag='-shared'
11350       if test "$aix_use_runtimelinking" = yes; then
11351         shared_flag="$shared_flag "'${wl}-G'
11352       fi
11353     else
11354       # not using gcc
11355       if test "$host_cpu" = ia64; then
11356         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11357         # chokes on -Wl,-G. The following line is correct:
11358         shared_flag='-G'
11359       else
11360         if test "$aix_use_runtimelinking" = yes; then
11361           shared_flag='${wl}-G'
11362         else
11363           shared_flag='${wl}-bM:SRE'
11364         fi
11365       fi
11366     fi
11367
11368     # It seems that -bexpall does not export symbols beginning with
11369     # underscore (_), so it is better to generate a list of symbols to export.
11370     always_export_symbols_CXX=yes
11371     if test "$aix_use_runtimelinking" = yes; then
11372       # Warning - without using the other runtime loading flags (-brtl),
11373       # -berok will link without error, but may produce a broken library.
11374       allow_undefined_flag_CXX='-berok'
11375       # Determine the default libpath from the value encoded in an empty executable.
11376       cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382
11383 int
11384 main ()
11385 {
11386
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (ac_try="$ac_link"
11393 case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398   (eval "$ac_link") 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } && {
11405          test -z "$ac_cxx_werror_flag" ||
11406          test ! -s conftest.err
11407        } && test -s conftest$ac_exeext &&
11408        $as_test_x conftest$ac_exeext; then
11409
11410 lt_aix_libpath_sed='
11411     /Import File Strings/,/^$/ {
11412         /^0/ {
11413             s/^0  *\(.*\)$/\1/
11414             p
11415         }
11416     }'
11417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11418 # Check for a 64-bit object if we didn't find anything.
11419 if test -z "$aix_libpath"; then
11420   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11421 fi
11422 else
11423   echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11425
11426
11427 fi
11428
11429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11430       conftest$ac_exeext conftest.$ac_ext
11431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11432
11433       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11434
11435       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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11436      else
11437       if test "$host_cpu" = ia64; then
11438         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11439         allow_undefined_flag_CXX="-z nodefs"
11440         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"
11441       else
11442         # Determine the default libpath from the value encoded in an empty executable.
11443         cat >conftest.$ac_ext <<_ACEOF
11444 /* confdefs.h.  */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h.  */
11449
11450 int
11451 main ()
11452 {
11453
11454   ;
11455   return 0;
11456 }
11457 _ACEOF
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (ac_try="$ac_link"
11460 case "(($ac_try" in
11461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462   *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465   (eval "$ac_link") 2>conftest.er1
11466   ac_status=$?
11467   grep -v '^ *+' conftest.er1 >conftest.err
11468   rm -f conftest.er1
11469   cat conftest.err >&5
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); } && {
11472          test -z "$ac_cxx_werror_flag" ||
11473          test ! -s conftest.err
11474        } && test -s conftest$ac_exeext &&
11475        $as_test_x conftest$ac_exeext; then
11476
11477 lt_aix_libpath_sed='
11478     /Import File Strings/,/^$/ {
11479         /^0/ {
11480             s/^0  *\(.*\)$/\1/
11481             p
11482         }
11483     }'
11484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11485 # Check for a 64-bit object if we didn't find anything.
11486 if test -z "$aix_libpath"; then
11487   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11488 fi
11489 else
11490   echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493
11494 fi
11495
11496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11497       conftest$ac_exeext conftest.$ac_ext
11498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11499
11500         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11501         # Warning - without using the other run time loading flags,
11502         # -berok will link without error, but may produce a broken library.
11503         no_undefined_flag_CXX=' ${wl}-bernotok'
11504         allow_undefined_flag_CXX=' ${wl}-berok'
11505         # Exported symbols can be pulled into shared objects from archives
11506         whole_archive_flag_spec_CXX='$convenience'
11507         archive_cmds_need_lc_CXX=yes
11508         # This is similar to how AIX traditionally builds its shared libraries.
11509         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'
11510       fi
11511     fi
11512     ;;
11513
11514   beos*)
11515     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11516       allow_undefined_flag_CXX=unsupported
11517       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11518       # support --undefined.  This deserves some investigation.  FIXME
11519       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11520     else
11521       ld_shlibs_CXX=no
11522     fi
11523     ;;
11524
11525   chorus*)
11526     case $cc_basename in
11527       *)
11528         # FIXME: insert proper C++ library support
11529         ld_shlibs_CXX=no
11530         ;;
11531     esac
11532     ;;
11533
11534   cygwin* | mingw* | pw32*)
11535     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11536     # as there is no search path for DLLs.
11537     hardcode_libdir_flag_spec_CXX='-L$libdir'
11538     allow_undefined_flag_CXX=unsupported
11539     always_export_symbols_CXX=no
11540     enable_shared_with_static_runtimes_CXX=yes
11541
11542     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11543       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'
11544       # If the export-symbols file already is a .def file (1st line
11545       # is EXPORTS), use it as is; otherwise, prepend...
11546       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11547         cp $export_symbols $output_objdir/$soname.def;
11548       else
11549         echo EXPORTS > $output_objdir/$soname.def;
11550         cat $export_symbols >> $output_objdir/$soname.def;
11551       fi~
11552       $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'
11553     else
11554       ld_shlibs_CXX=no
11555     fi
11556   ;;
11557       darwin* | rhapsody*)
11558       archive_cmds_need_lc_CXX=no
11559       hardcode_direct_CXX=no
11560       hardcode_automatic_CXX=yes
11561       hardcode_shlibpath_var_CXX=unsupported
11562       whole_archive_flag_spec_CXX=''
11563       link_all_deplibs_CXX=yes
11564       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11565       if test "$GXX" = yes ; then
11566       output_verbose_link_cmd='echo'
11567       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}"
11568       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11569       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}"
11570       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}"
11571       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11572         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}"
11573         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}"
11574       fi
11575       else
11576       case $cc_basename in
11577         xlc*)
11578          output_verbose_link_cmd='echo'
11579           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11580           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11581           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11582           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11583           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11584           ;;
11585        *)
11586          ld_shlibs_CXX=no
11587           ;;
11588       esac
11589       fi
11590         ;;
11591
11592   dgux*)
11593     case $cc_basename in
11594       ec++*)
11595         # FIXME: insert proper C++ library support
11596         ld_shlibs_CXX=no
11597         ;;
11598       ghcx*)
11599         # Green Hills C++ Compiler
11600         # FIXME: insert proper C++ library support
11601         ld_shlibs_CXX=no
11602         ;;
11603       *)
11604         # FIXME: insert proper C++ library support
11605         ld_shlibs_CXX=no
11606         ;;
11607     esac
11608     ;;
11609   freebsd[12]*)
11610     # C++ shared libraries reported to be fairly broken before switch to ELF
11611     ld_shlibs_CXX=no
11612     ;;
11613   freebsd-elf*)
11614     archive_cmds_need_lc_CXX=no
11615     ;;
11616   freebsd* | dragonfly*)
11617     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11618     # conventions
11619     ld_shlibs_CXX=yes
11620     ;;
11621   gnu*)
11622     ;;
11623   hpux9*)
11624     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11625     hardcode_libdir_separator_CXX=:
11626     export_dynamic_flag_spec_CXX='${wl}-E'
11627     hardcode_direct_CXX=yes
11628     hardcode_minus_L_CXX=yes # Not in the search PATH,
11629                                 # but as the default
11630                                 # location of the library.
11631
11632     case $cc_basename in
11633     CC*)
11634       # FIXME: insert proper C++ library support
11635       ld_shlibs_CXX=no
11636       ;;
11637     aCC*)
11638       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'
11639       # Commands to make compiler produce verbose output that lists
11640       # what "hidden" libraries, object files and flags are used when
11641       # linking a shared library.
11642       #
11643       # There doesn't appear to be a way to prevent this compiler from
11644       # explicitly linking system object files so we need to strip them
11645       # from the output so that they don't get included in the library
11646       # dependencies.
11647       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; echo $list'
11648       ;;
11649     *)
11650       if test "$GXX" = yes; then
11651         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
11652       else
11653         # FIXME: insert proper C++ library support
11654         ld_shlibs_CXX=no
11655       fi
11656       ;;
11657     esac
11658     ;;
11659   hpux10*|hpux11*)
11660     if test $with_gnu_ld = no; then
11661       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11662       hardcode_libdir_separator_CXX=:
11663
11664       case $host_cpu in
11665       hppa*64*|ia64*) ;;
11666       *)
11667         export_dynamic_flag_spec_CXX='${wl}-E'
11668         ;;
11669       esac
11670     fi
11671     case $host_cpu in
11672     hppa*64*|ia64*)
11673       hardcode_direct_CXX=no
11674       hardcode_shlibpath_var_CXX=no
11675       ;;
11676     *)
11677       hardcode_direct_CXX=yes
11678       hardcode_minus_L_CXX=yes # Not in the search PATH,
11679                                               # but as the default
11680                                               # location of the library.
11681       ;;
11682     esac
11683
11684     case $cc_basename in
11685       CC*)
11686         # FIXME: insert proper C++ library support
11687         ld_shlibs_CXX=no
11688         ;;
11689       aCC*)
11690         case $host_cpu in
11691         hppa*64*)
11692           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11693           ;;
11694         ia64*)
11695           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11696           ;;
11697         *)
11698           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11699           ;;
11700         esac
11701         # Commands to make compiler produce verbose output that lists
11702         # what "hidden" libraries, object files and flags are used when
11703         # linking a shared library.
11704         #
11705         # There doesn't appear to be a way to prevent this compiler from
11706         # explicitly linking system object files so we need to strip them
11707         # from the output so that they don't get included in the library
11708         # dependencies.
11709         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; echo $list'
11710         ;;
11711       *)
11712         if test "$GXX" = yes; then
11713           if test $with_gnu_ld = no; then
11714             case $host_cpu in
11715             hppa*64*)
11716               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11717               ;;
11718             ia64*)
11719               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11720               ;;
11721             *)
11722               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11723               ;;
11724             esac
11725           fi
11726         else
11727           # FIXME: insert proper C++ library support
11728           ld_shlibs_CXX=no
11729         fi
11730         ;;
11731     esac
11732     ;;
11733   interix[3-9]*)
11734     hardcode_direct_CXX=no
11735     hardcode_shlibpath_var_CXX=no
11736     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11737     export_dynamic_flag_spec_CXX='${wl}-E'
11738     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11739     # Instead, shared libraries are loaded at an image base (0x10000000 by
11740     # default) and relocated if they conflict, which is a slow very memory
11741     # consuming and fragmenting process.  To avoid this, we pick a random,
11742     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11743     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11744     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'
11745     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'
11746     ;;
11747   irix5* | irix6*)
11748     case $cc_basename in
11749       CC*)
11750         # SGI C++
11751         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11752
11753         # Archives containing C++ object files must be created using
11754         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11755         # necessary to make sure instantiated templates are included
11756         # in the archive.
11757         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11758         ;;
11759       *)
11760         if test "$GXX" = yes; then
11761           if test "$with_gnu_ld" = no; then
11762             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11763           else
11764             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11765           fi
11766         fi
11767         link_all_deplibs_CXX=yes
11768         ;;
11769     esac
11770     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11771     hardcode_libdir_separator_CXX=:
11772     ;;
11773   linux* | k*bsd*-gnu)
11774     case $cc_basename in
11775       KCC*)
11776         # Kuck and Associates, Inc. (KAI) C++ Compiler
11777
11778         # KCC will only create a shared library if the output file
11779         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11780         # to its proper name (with version) after linking.
11781         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'
11782         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'
11783         # Commands to make compiler produce verbose output that lists
11784         # what "hidden" libraries, object files and flags are used when
11785         # linking a shared library.
11786         #
11787         # There doesn't appear to be a way to prevent this compiler from
11788         # explicitly linking system object files so we need to strip them
11789         # from the output so that they don't get included in the library
11790         # dependencies.
11791         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; echo $list'
11792
11793         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11794         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11795
11796         # Archives containing C++ object files must be created using
11797         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11798         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11799         ;;
11800       icpc*)
11801         # Intel C++
11802         with_gnu_ld=yes
11803         # version 8.0 and above of icpc choke on multiply defined symbols
11804         # if we add $predep_objects and $postdep_objects, however 7.1 and
11805         # earlier do not add the objects themselves.
11806         case `$CC -V 2>&1` in
11807         *"Version 7."*)
11808           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11809           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'
11810           ;;
11811         *)  # Version 8.0 or newer
11812           tmp_idyn=
11813           case $host_cpu in
11814             ia64*) tmp_idyn=' -i_dynamic';;
11815           esac
11816           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11817           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'
11818           ;;
11819         esac
11820         archive_cmds_need_lc_CXX=no
11821         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11822         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11823         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11824         ;;
11825       pgCC* | pgcpp*)
11826         # Portland Group C++ compiler
11827         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11828         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'
11829
11830         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11831         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11832         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11833         ;;
11834       cxx*)
11835         # Compaq C++
11836         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11837         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'
11838
11839         runpath_var=LD_RUN_PATH
11840         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11841         hardcode_libdir_separator_CXX=:
11842
11843         # Commands to make compiler produce verbose output that lists
11844         # what "hidden" libraries, object files and flags are used when
11845         # linking a shared library.
11846         #
11847         # There doesn't appear to be a way to prevent this compiler from
11848         # explicitly linking system object files so we need to strip them
11849         # from the output so that they don't get included in the library
11850         # dependencies.
11851         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11852         ;;
11853       *)
11854         case `$CC -V 2>&1 | sed 5q` in
11855         *Sun\ C*)
11856           # Sun C++ 5.9
11857           no_undefined_flag_CXX=' -zdefs'
11858           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11859           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'
11860           hardcode_libdir_flag_spec_CXX='-R$libdir'
11861           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11862
11863           # Not sure whether something based on
11864           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11865           # would be better.
11866           output_verbose_link_cmd='echo'
11867
11868           # Archives containing C++ object files must be created using
11869           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11870           # necessary to make sure instantiated templates are included
11871           # in the archive.
11872           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11873           ;;
11874         esac
11875         ;;
11876     esac
11877     ;;
11878   lynxos*)
11879     # FIXME: insert proper C++ library support
11880     ld_shlibs_CXX=no
11881     ;;
11882   m88k*)
11883     # FIXME: insert proper C++ library support
11884     ld_shlibs_CXX=no
11885     ;;
11886   mvs*)
11887     case $cc_basename in
11888       cxx*)
11889         # FIXME: insert proper C++ library support
11890         ld_shlibs_CXX=no
11891         ;;
11892       *)
11893         # FIXME: insert proper C++ library support
11894         ld_shlibs_CXX=no
11895         ;;
11896     esac
11897     ;;
11898   netbsd* | netbsdelf*-gnu)
11899     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11900       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11901       wlarc=
11902       hardcode_libdir_flag_spec_CXX='-R$libdir'
11903       hardcode_direct_CXX=yes
11904       hardcode_shlibpath_var_CXX=no
11905     fi
11906     # Workaround some broken pre-1.5 toolchains
11907     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11908     ;;
11909   openbsd2*)
11910     # C++ shared libraries are fairly broken
11911     ld_shlibs_CXX=no
11912     ;;
11913   openbsd*)
11914     if test -f /usr/libexec/ld.so; then
11915       hardcode_direct_CXX=yes
11916       hardcode_shlibpath_var_CXX=no
11917       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11918       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11919       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11920         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11921         export_dynamic_flag_spec_CXX='${wl}-E'
11922         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11923       fi
11924       output_verbose_link_cmd='echo'
11925     else
11926       ld_shlibs_CXX=no
11927     fi
11928     ;;
11929   osf3*)
11930     case $cc_basename in
11931       KCC*)
11932         # Kuck and Associates, Inc. (KAI) C++ Compiler
11933
11934         # KCC will only create a shared library if the output file
11935         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11936         # to its proper name (with version) after linking.
11937         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'
11938
11939         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11940         hardcode_libdir_separator_CXX=:
11941
11942         # Archives containing C++ object files must be created using
11943         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11944         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11945
11946         ;;
11947       RCC*)
11948         # Rational C++ 2.4.1
11949         # FIXME: insert proper C++ library support
11950         ld_shlibs_CXX=no
11951         ;;
11952       cxx*)
11953         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11954         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11955
11956         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11957         hardcode_libdir_separator_CXX=:
11958
11959         # Commands to make compiler produce verbose output that lists
11960         # what "hidden" libraries, object files and flags are used when
11961         # linking a shared library.
11962         #
11963         # There doesn't appear to be a way to prevent this compiler from
11964         # explicitly linking system object files so we need to strip them
11965         # from the output so that they don't get included in the library
11966         # dependencies.
11967         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11968         ;;
11969       *)
11970         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11971           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11972           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11973
11974           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11975           hardcode_libdir_separator_CXX=:
11976
11977           # Commands to make compiler produce verbose output that lists
11978           # what "hidden" libraries, object files and flags are used when
11979           # linking a shared library.
11980           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11981
11982         else
11983           # FIXME: insert proper C++ library support
11984           ld_shlibs_CXX=no
11985         fi
11986         ;;
11987     esac
11988     ;;
11989   osf4* | osf5*)
11990     case $cc_basename in
11991       KCC*)
11992         # Kuck and Associates, Inc. (KAI) C++ Compiler
11993
11994         # KCC will only create a shared library if the output file
11995         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11996         # to its proper name (with version) after linking.
11997         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'
11998
11999         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12000         hardcode_libdir_separator_CXX=:
12001
12002         # Archives containing C++ object files must be created using
12003         # the KAI C++ compiler.
12004         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12005         ;;
12006       RCC*)
12007         # Rational C++ 2.4.1
12008         # FIXME: insert proper C++ library support
12009         ld_shlibs_CXX=no
12010         ;;
12011       cxx*)
12012         allow_undefined_flag_CXX=' -expect_unresolved \*'
12013         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12014         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12015           echo "-hidden">> $lib.exp~
12016           $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~
12017           $rm $lib.exp'
12018
12019         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12020         hardcode_libdir_separator_CXX=:
12021
12022         # Commands to make compiler produce verbose output that lists
12023         # what "hidden" libraries, object files and flags are used when
12024         # linking a shared library.
12025         #
12026         # There doesn't appear to be a way to prevent this compiler from
12027         # explicitly linking system object files so we need to strip them
12028         # from the output so that they don't get included in the library
12029         # dependencies.
12030         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
12031         ;;
12032       *)
12033         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12034           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12035          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12036
12037           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12038           hardcode_libdir_separator_CXX=:
12039
12040           # Commands to make compiler produce verbose output that lists
12041           # what "hidden" libraries, object files and flags are used when
12042           # linking a shared library.
12043           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12044
12045         else
12046           # FIXME: insert proper C++ library support
12047           ld_shlibs_CXX=no
12048         fi
12049         ;;
12050     esac
12051     ;;
12052   psos*)
12053     # FIXME: insert proper C++ library support
12054     ld_shlibs_CXX=no
12055     ;;
12056   sunos4*)
12057     case $cc_basename in
12058       CC*)
12059         # Sun C++ 4.x
12060         # FIXME: insert proper C++ library support
12061         ld_shlibs_CXX=no
12062         ;;
12063       lcc*)
12064         # Lucid
12065         # FIXME: insert proper C++ library support
12066         ld_shlibs_CXX=no
12067         ;;
12068       *)
12069         # FIXME: insert proper C++ library support
12070         ld_shlibs_CXX=no
12071         ;;
12072     esac
12073     ;;
12074   solaris*)
12075     case $cc_basename in
12076       CC*)
12077         # Sun C++ 4.2, 5.x and Centerline C++
12078         archive_cmds_need_lc_CXX=yes
12079         no_undefined_flag_CXX=' -zdefs'
12080         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12081         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12082         $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'
12083
12084         hardcode_libdir_flag_spec_CXX='-R$libdir'
12085         hardcode_shlibpath_var_CXX=no
12086         case $host_os in
12087           solaris2.[0-5] | solaris2.[0-5].*) ;;
12088           *)
12089             # The compiler driver will combine and reorder linker options,
12090             # but understands `-z linker_flag'.
12091             # Supported since Solaris 2.6 (maybe 2.5.1?)
12092             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12093             ;;
12094         esac
12095         link_all_deplibs_CXX=yes
12096
12097         output_verbose_link_cmd='echo'
12098
12099         # Archives containing C++ object files must be created using
12100         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12101         # necessary to make sure instantiated templates are included
12102         # in the archive.
12103         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12104         ;;
12105       gcx*)
12106         # Green Hills C++ Compiler
12107         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12108
12109         # The C++ compiler must be used to create the archive.
12110         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12111         ;;
12112       *)
12113         # GNU C++ compiler with Solaris linker
12114         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12115           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12116           if $CC --version | grep -v '^2\.7' > /dev/null; then
12117             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12118             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12119                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12120
12121             # Commands to make compiler produce verbose output that lists
12122             # what "hidden" libraries, object files and flags are used when
12123             # linking a shared library.
12124             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12125           else
12126             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12127             # platform.
12128             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12129             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12130                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12131
12132             # Commands to make compiler produce verbose output that lists
12133             # what "hidden" libraries, object files and flags are used when
12134             # linking a shared library.
12135             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12136           fi
12137
12138           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12139           case $host_os in
12140           solaris2.[0-5] | solaris2.[0-5].*) ;;
12141           *)
12142             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12143             ;;
12144           esac
12145         fi
12146         ;;
12147     esac
12148     ;;
12149   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12150     no_undefined_flag_CXX='${wl}-z,text'
12151     archive_cmds_need_lc_CXX=no
12152     hardcode_shlibpath_var_CXX=no
12153     runpath_var='LD_RUN_PATH'
12154
12155     case $cc_basename in
12156       CC*)
12157         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12158         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12159         ;;
12160       *)
12161         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12162         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12163         ;;
12164     esac
12165     ;;
12166   sysv5* | sco3.2v5* | sco5v6*)
12167     # Note: We can NOT use -z defs as we might desire, because we do not
12168     # link with -lc, and that would cause any symbols used from libc to
12169     # always be unresolved, which means just about no library would
12170     # ever link correctly.  If we're not using GNU ld we use -z text
12171     # though, which does catch some bad symbols but isn't as heavy-handed
12172     # as -z defs.
12173     # For security reasons, it is highly recommended that you always
12174     # use absolute paths for naming shared libraries, and exclude the
12175     # DT_RUNPATH tag from executables and libraries.  But doing so
12176     # requires that you compile everything twice, which is a pain.
12177     # So that behaviour is only enabled if SCOABSPATH is set to a
12178     # non-empty value in the environment.  Most likely only useful for
12179     # creating official distributions of packages.
12180     # This is a hack until libtool officially supports absolute path
12181     # names for shared libraries.
12182     no_undefined_flag_CXX='${wl}-z,text'
12183     allow_undefined_flag_CXX='${wl}-z,nodefs'
12184     archive_cmds_need_lc_CXX=no
12185     hardcode_shlibpath_var_CXX=no
12186     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12187     hardcode_libdir_separator_CXX=':'
12188     link_all_deplibs_CXX=yes
12189     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12190     runpath_var='LD_RUN_PATH'
12191
12192     case $cc_basename in
12193       CC*)
12194         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12195         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12196         ;;
12197       *)
12198         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12199         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12200         ;;
12201     esac
12202     ;;
12203   tandem*)
12204     case $cc_basename in
12205       NCC*)
12206         # NonStop-UX NCC 3.20
12207         # FIXME: insert proper C++ library support
12208         ld_shlibs_CXX=no
12209         ;;
12210       *)
12211         # FIXME: insert proper C++ library support
12212         ld_shlibs_CXX=no
12213         ;;
12214     esac
12215     ;;
12216   vxworks*)
12217     # FIXME: insert proper C++ library support
12218     ld_shlibs_CXX=no
12219     ;;
12220   *)
12221     # FIXME: insert proper C++ library support
12222     ld_shlibs_CXX=no
12223     ;;
12224 esac
12225 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12226 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12227 test "$ld_shlibs_CXX" = no && can_build_shared=no
12228
12229 GCC_CXX="$GXX"
12230 LD_CXX="$LD"
12231
12232 cat > conftest.$ac_ext <<EOF
12233 class Foo
12234 {
12235 public:
12236   Foo (void) { a = 0; }
12237 private:
12238   int a;
12239 };
12240 EOF
12241
12242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12243   (eval $ac_compile) 2>&5
12244   ac_status=$?
12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); }; then
12247   # Parse the compiler output and extract the necessary
12248   # objects, libraries and library flags.
12249
12250   # Sentinel used to keep track of whether or not we are before
12251   # the conftest object file.
12252   pre_test_object_deps_done=no
12253
12254   # The `*' in the case matches for architectures that use `case' in
12255   # $output_verbose_cmd can trigger glob expansion during the loop
12256   # eval without this substitution.
12257   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12258
12259   for p in `eval $output_verbose_link_cmd`; do
12260     case $p in
12261
12262     -L* | -R* | -l*)
12263        # Some compilers place space between "-{L,R}" and the path.
12264        # Remove the space.
12265        if test $p = "-L" \
12266           || test $p = "-R"; then
12267          prev=$p
12268          continue
12269        else
12270          prev=
12271        fi
12272
12273        if test "$pre_test_object_deps_done" = no; then
12274          case $p in
12275          -L* | -R*)
12276            # Internal compiler library paths should come after those
12277            # provided the user.  The postdeps already come after the
12278            # user supplied libs so there is no need to process them.
12279            if test -z "$compiler_lib_search_path_CXX"; then
12280              compiler_lib_search_path_CXX="${prev}${p}"
12281            else
12282              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12283            fi
12284            ;;
12285          # The "-l" case would never come before the object being
12286          # linked, so don't bother handling this case.
12287          esac
12288        else
12289          if test -z "$postdeps_CXX"; then
12290            postdeps_CXX="${prev}${p}"
12291          else
12292            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12293          fi
12294        fi
12295        ;;
12296
12297     *.$objext)
12298        # This assumes that the test object file only shows up
12299        # once in the compiler output.
12300        if test "$p" = "conftest.$objext"; then
12301          pre_test_object_deps_done=yes
12302          continue
12303        fi
12304
12305        if test "$pre_test_object_deps_done" = no; then
12306          if test -z "$predep_objects_CXX"; then
12307            predep_objects_CXX="$p"
12308          else
12309            predep_objects_CXX="$predep_objects_CXX $p"
12310          fi
12311        else
12312          if test -z "$postdep_objects_CXX"; then
12313            postdep_objects_CXX="$p"
12314          else
12315            postdep_objects_CXX="$postdep_objects_CXX $p"
12316          fi
12317        fi
12318        ;;
12319
12320     *) ;; # Ignore the rest.
12321
12322     esac
12323   done
12324
12325   # Clean up.
12326   rm -f a.out a.exe
12327 else
12328   echo "libtool.m4: error: problem compiling CXX test program"
12329 fi
12330
12331 $rm -f confest.$objext
12332
12333 compiler_lib_search_dirs_CXX=
12334 if test -n "$compiler_lib_search_path_CXX"; then
12335   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12336 fi
12337
12338 # PORTME: override above test on systems where it is broken
12339 case $host_os in
12340 interix[3-9]*)
12341   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12342   # hack all around it, let's just trust "g++" to DTRT.
12343   predep_objects_CXX=
12344   postdep_objects_CXX=
12345   postdeps_CXX=
12346   ;;
12347
12348 linux*)
12349   case `$CC -V 2>&1 | sed 5q` in
12350   *Sun\ C*)
12351     # Sun C++ 5.9
12352     #
12353     # The more standards-conforming stlport4 library is
12354     # incompatible with the Cstd library. Avoid specifying
12355     # it if it's in CXXFLAGS. Ignore libCrun as
12356     # -library=stlport4 depends on it.
12357     case " $CXX $CXXFLAGS " in
12358     *" -library=stlport4 "*)
12359       solaris_use_stlport4=yes
12360       ;;
12361     esac
12362     if test "$solaris_use_stlport4" != yes; then
12363       postdeps_CXX='-library=Cstd -library=Crun'
12364     fi
12365     ;;
12366   esac
12367   ;;
12368
12369 solaris*)
12370   case $cc_basename in
12371   CC*)
12372     # The more standards-conforming stlport4 library is
12373     # incompatible with the Cstd library. Avoid specifying
12374     # it if it's in CXXFLAGS. Ignore libCrun as
12375     # -library=stlport4 depends on it.
12376     case " $CXX $CXXFLAGS " in
12377     *" -library=stlport4 "*)
12378       solaris_use_stlport4=yes
12379       ;;
12380     esac
12381
12382     # Adding this requires a known-good setup of shared libraries for
12383     # Sun compiler versions before 5.6, else PIC objects from an old
12384     # archive will be linked into the output, leading to subtle bugs.
12385     if test "$solaris_use_stlport4" != yes; then
12386       postdeps_CXX='-library=Cstd -library=Crun'
12387     fi
12388     ;;
12389   esac
12390   ;;
12391 esac
12392
12393 case " $postdeps_CXX " in
12394 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12395 esac
12396
12397 lt_prog_compiler_wl_CXX=
12398 lt_prog_compiler_pic_CXX=
12399 lt_prog_compiler_static_CXX=
12400
12401 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12402 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12403
12404   # C++ specific cases for pic, static, wl, etc.
12405   if test "$GXX" = yes; then
12406     lt_prog_compiler_wl_CXX='-Wl,'
12407     lt_prog_compiler_static_CXX='-static'
12408
12409     case $host_os in
12410     aix*)
12411       # All AIX code is PIC.
12412       if test "$host_cpu" = ia64; then
12413         # AIX 5 now supports IA64 processor
12414         lt_prog_compiler_static_CXX='-Bstatic'
12415       fi
12416       ;;
12417     amigaos*)
12418       # FIXME: we need at least 68020 code to build shared libraries, but
12419       # adding the `-m68020' flag to GCC prevents building anything better,
12420       # like `-m68040'.
12421       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12422       ;;
12423     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12424       # PIC is the default for these OSes.
12425       ;;
12426     mingw* | cygwin* | os2* | pw32*)
12427       # This hack is so that the source file can tell whether it is being
12428       # built for inclusion in a dll (and should export symbols for example).
12429       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12430       # (--disable-auto-import) libraries
12431       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12432       ;;
12433     darwin* | rhapsody*)
12434       # PIC is the default on this platform
12435       # Common symbols not allowed in MH_DYLIB files
12436       lt_prog_compiler_pic_CXX='-fno-common'
12437       ;;
12438     *djgpp*)
12439       # DJGPP does not support shared libraries at all
12440       lt_prog_compiler_pic_CXX=
12441       ;;
12442     interix[3-9]*)
12443       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12444       # Instead, we relocate shared libraries at runtime.
12445       ;;
12446     sysv4*MP*)
12447       if test -d /usr/nec; then
12448         lt_prog_compiler_pic_CXX=-Kconform_pic
12449       fi
12450       ;;
12451     hpux*)
12452       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12453       # not for PA HP-UX.
12454       case $host_cpu in
12455       hppa*64*|ia64*)
12456         ;;
12457       *)
12458         lt_prog_compiler_pic_CXX='-fPIC'
12459         ;;
12460       esac
12461       ;;
12462     *)
12463       lt_prog_compiler_pic_CXX='-fPIC'
12464       ;;
12465     esac
12466   else
12467     case $host_os in
12468       aix[4-9]*)
12469         # All AIX code is PIC.
12470         if test "$host_cpu" = ia64; then
12471           # AIX 5 now supports IA64 processor
12472           lt_prog_compiler_static_CXX='-Bstatic'
12473         else
12474           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12475         fi
12476         ;;
12477       chorus*)
12478         case $cc_basename in
12479         cxch68*)
12480           # Green Hills C++ Compiler
12481           # _LT_AC_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"
12482           ;;
12483         esac
12484         ;;
12485        darwin*)
12486          # PIC is the default on this platform
12487          # Common symbols not allowed in MH_DYLIB files
12488          case $cc_basename in
12489            xlc*)
12490            lt_prog_compiler_pic_CXX='-qnocommon'
12491            lt_prog_compiler_wl_CXX='-Wl,'
12492            ;;
12493          esac
12494        ;;
12495       dgux*)
12496         case $cc_basename in
12497           ec++*)
12498             lt_prog_compiler_pic_CXX='-KPIC'
12499             ;;
12500           ghcx*)
12501             # Green Hills C++ Compiler
12502             lt_prog_compiler_pic_CXX='-pic'
12503             ;;
12504           *)
12505             ;;
12506         esac
12507         ;;
12508       freebsd* | dragonfly*)
12509         # FreeBSD uses GNU C++
12510         ;;
12511       hpux9* | hpux10* | hpux11*)
12512         case $cc_basename in
12513           CC*)
12514             lt_prog_compiler_wl_CXX='-Wl,'
12515             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12516             if test "$host_cpu" != ia64; then
12517               lt_prog_compiler_pic_CXX='+Z'
12518             fi
12519             ;;
12520           aCC*)
12521             lt_prog_compiler_wl_CXX='-Wl,'
12522             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12523             case $host_cpu in
12524             hppa*64*|ia64*)
12525               # +Z the default
12526               ;;
12527             *)
12528               lt_prog_compiler_pic_CXX='+Z'
12529               ;;
12530             esac
12531             ;;
12532           *)
12533             ;;
12534         esac
12535         ;;
12536       interix*)
12537         # This is c89, which is MS Visual C++ (no shared libs)
12538         # Anyone wants to do a port?
12539         ;;
12540       irix5* | irix6* | nonstopux*)
12541         case $cc_basename in
12542           CC*)
12543             lt_prog_compiler_wl_CXX='-Wl,'
12544             lt_prog_compiler_static_CXX='-non_shared'
12545             # CC pic flag -KPIC is the default.
12546             ;;
12547           *)
12548             ;;
12549         esac
12550         ;;
12551       linux* | k*bsd*-gnu)
12552         case $cc_basename in
12553           KCC*)
12554             # KAI C++ Compiler
12555             lt_prog_compiler_wl_CXX='--backend -Wl,'
12556             lt_prog_compiler_pic_CXX='-fPIC'
12557             ;;
12558           icpc* | ecpc*)
12559             # Intel C++
12560             lt_prog_compiler_wl_CXX='-Wl,'
12561             lt_prog_compiler_pic_CXX='-KPIC'
12562             lt_prog_compiler_static_CXX='-static'
12563             ;;
12564           pgCC* | pgcpp*)
12565             # Portland Group C++ compiler.
12566             lt_prog_compiler_wl_CXX='-Wl,'
12567             lt_prog_compiler_pic_CXX='-fpic'
12568             lt_prog_compiler_static_CXX='-Bstatic'
12569             ;;
12570           cxx*)
12571             # Compaq C++
12572             # Make sure the PIC flag is empty.  It appears that all Alpha
12573             # Linux and Compaq Tru64 Unix objects are PIC.
12574             lt_prog_compiler_pic_CXX=
12575             lt_prog_compiler_static_CXX='-non_shared'
12576             ;;
12577           *)
12578             case `$CC -V 2>&1 | sed 5q` in
12579             *Sun\ C*)
12580               # Sun C++ 5.9
12581               lt_prog_compiler_pic_CXX='-KPIC'
12582               lt_prog_compiler_static_CXX='-Bstatic'
12583               lt_prog_compiler_wl_CXX='-Qoption ld '
12584               ;;
12585             esac
12586             ;;
12587         esac
12588         ;;
12589       lynxos*)
12590         ;;
12591       m88k*)
12592         ;;
12593       mvs*)
12594         case $cc_basename in
12595           cxx*)
12596             lt_prog_compiler_pic_CXX='-W c,exportall'
12597             ;;
12598           *)
12599             ;;
12600         esac
12601         ;;
12602       netbsd* | netbsdelf*-gnu)
12603         ;;
12604       osf3* | osf4* | osf5*)
12605         case $cc_basename in
12606           KCC*)
12607             lt_prog_compiler_wl_CXX='--backend -Wl,'
12608             ;;
12609           RCC*)
12610             # Rational C++ 2.4.1
12611             lt_prog_compiler_pic_CXX='-pic'
12612             ;;
12613           cxx*)
12614             # Digital/Compaq C++
12615             lt_prog_compiler_wl_CXX='-Wl,'
12616             # Make sure the PIC flag is empty.  It appears that all Alpha
12617             # Linux and Compaq Tru64 Unix objects are PIC.
12618             lt_prog_compiler_pic_CXX=
12619             lt_prog_compiler_static_CXX='-non_shared'
12620             ;;
12621           *)
12622             ;;
12623         esac
12624         ;;
12625       psos*)
12626         ;;
12627       solaris*)
12628         case $cc_basename in
12629           CC*)
12630             # Sun C++ 4.2, 5.x and Centerline C++
12631             lt_prog_compiler_pic_CXX='-KPIC'
12632             lt_prog_compiler_static_CXX='-Bstatic'
12633             lt_prog_compiler_wl_CXX='-Qoption ld '
12634             ;;
12635           gcx*)
12636             # Green Hills C++ Compiler
12637             lt_prog_compiler_pic_CXX='-PIC'
12638             ;;
12639           *)
12640             ;;
12641         esac
12642         ;;
12643       sunos4*)
12644         case $cc_basename in
12645           CC*)
12646             # Sun C++ 4.x
12647             lt_prog_compiler_pic_CXX='-pic'
12648             lt_prog_compiler_static_CXX='-Bstatic'
12649             ;;
12650           lcc*)
12651             # Lucid
12652             lt_prog_compiler_pic_CXX='-pic'
12653             ;;
12654           *)
12655             ;;
12656         esac
12657         ;;
12658       tandem*)
12659         case $cc_basename in
12660           NCC*)
12661             # NonStop-UX NCC 3.20
12662             lt_prog_compiler_pic_CXX='-KPIC'
12663             ;;
12664           *)
12665             ;;
12666         esac
12667         ;;
12668       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12669         case $cc_basename in
12670           CC*)
12671             lt_prog_compiler_wl_CXX='-Wl,'
12672             lt_prog_compiler_pic_CXX='-KPIC'
12673             lt_prog_compiler_static_CXX='-Bstatic'
12674             ;;
12675         esac
12676         ;;
12677       vxworks*)
12678         ;;
12679       *)
12680         lt_prog_compiler_can_build_shared_CXX=no
12681         ;;
12682     esac
12683   fi
12684
12685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12686 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12687
12688 #
12689 # Check to make sure the PIC flag actually works.
12690 #
12691 if test -n "$lt_prog_compiler_pic_CXX"; then
12692
12693 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12694 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12695 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12696   echo $ECHO_N "(cached) $ECHO_C" >&6
12697 else
12698   lt_cv_prog_compiler_pic_works_CXX=no
12699   ac_outfile=conftest.$ac_objext
12700    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12701    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12702    # Insert the option either (1) after the last *FLAGS variable, or
12703    # (2) before a word containing "conftest.", or (3) at the end.
12704    # Note that $ac_compile itself does not contain backslashes and begins
12705    # with a dollar sign (not a hyphen), so the echo should work correctly.
12706    # The option is referenced via a variable to avoid confusing sed.
12707    lt_compile=`echo "$ac_compile" | $SED \
12708    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12710    -e 's:$: $lt_compiler_flag:'`
12711    (eval echo "\"\$as_me:12711: $lt_compile\"" >&5)
12712    (eval "$lt_compile" 2>conftest.err)
12713    ac_status=$?
12714    cat conftest.err >&5
12715    echo "$as_me:12715: \$? = $ac_status" >&5
12716    if (exit $ac_status) && test -s "$ac_outfile"; then
12717      # The compiler can only warn and ignore the option if not recognized
12718      # So say no if there are warnings other than the usual output.
12719      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12720      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12721      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12722        lt_cv_prog_compiler_pic_works_CXX=yes
12723      fi
12724    fi
12725    $rm conftest*
12726
12727 fi
12728 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12729 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12730
12731 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12732     case $lt_prog_compiler_pic_CXX in
12733      "" | " "*) ;;
12734      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12735      esac
12736 else
12737     lt_prog_compiler_pic_CXX=
12738      lt_prog_compiler_can_build_shared_CXX=no
12739 fi
12740
12741 fi
12742 case $host_os in
12743   # For platforms which do not support PIC, -DPIC is meaningless:
12744   *djgpp*)
12745     lt_prog_compiler_pic_CXX=
12746     ;;
12747   *)
12748     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12749     ;;
12750 esac
12751
12752 #
12753 # Check to make sure the static flag actually works.
12754 #
12755 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12756 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12757 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12758 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12759   echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12761   lt_cv_prog_compiler_static_works_CXX=no
12762    save_LDFLAGS="$LDFLAGS"
12763    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12764    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12765    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12766      # The linker can only warn and ignore the option if not recognized
12767      # So say no if there are warnings
12768      if test -s conftest.err; then
12769        # Append any errors to the config.log.
12770        cat conftest.err 1>&5
12771        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12772        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12773        if diff conftest.exp conftest.er2 >/dev/null; then
12774          lt_cv_prog_compiler_static_works_CXX=yes
12775        fi
12776      else
12777        lt_cv_prog_compiler_static_works_CXX=yes
12778      fi
12779    fi
12780    $rm -r conftest*
12781    LDFLAGS="$save_LDFLAGS"
12782
12783 fi
12784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12785 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12786
12787 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12788     :
12789 else
12790     lt_prog_compiler_static_CXX=
12791 fi
12792
12793
12794 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12795 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12796 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12797   echo $ECHO_N "(cached) $ECHO_C" >&6
12798 else
12799   lt_cv_prog_compiler_c_o_CXX=no
12800    $rm -r conftest 2>/dev/null
12801    mkdir conftest
12802    cd conftest
12803    mkdir out
12804    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12805
12806    lt_compiler_flag="-o out/conftest2.$ac_objext"
12807    # Insert the option either (1) after the last *FLAGS variable, or
12808    # (2) before a word containing "conftest.", or (3) at the end.
12809    # Note that $ac_compile itself does not contain backslashes and begins
12810    # with a dollar sign (not a hyphen), so the echo should work correctly.
12811    lt_compile=`echo "$ac_compile" | $SED \
12812    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12813    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12814    -e 's:$: $lt_compiler_flag:'`
12815    (eval echo "\"\$as_me:12815: $lt_compile\"" >&5)
12816    (eval "$lt_compile" 2>out/conftest.err)
12817    ac_status=$?
12818    cat out/conftest.err >&5
12819    echo "$as_me:12819: \$? = $ac_status" >&5
12820    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12821    then
12822      # The compiler can only warn and ignore the option if not recognized
12823      # So say no if there are warnings
12824      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12825      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12826      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12827        lt_cv_prog_compiler_c_o_CXX=yes
12828      fi
12829    fi
12830    chmod u+w . 2>&5
12831    $rm conftest*
12832    # SGI C++ compiler will create directory out/ii_files/ for
12833    # template instantiation
12834    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12835    $rm out/* && rmdir out
12836    cd ..
12837    rmdir conftest
12838    $rm conftest*
12839
12840 fi
12841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12842 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12843
12844
12845 hard_links="nottested"
12846 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12847   # do not overwrite the value of need_locks provided by the user
12848   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12849 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12850   hard_links=yes
12851   $rm conftest*
12852   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12853   touch conftest.a
12854   ln conftest.a conftest.b 2>&5 || hard_links=no
12855   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12856   { echo "$as_me:$LINENO: result: $hard_links" >&5
12857 echo "${ECHO_T}$hard_links" >&6; }
12858   if test "$hard_links" = no; then
12859     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12860 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12861     need_locks=warn
12862   fi
12863 else
12864   need_locks=no
12865 fi
12866
12867 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12868 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12869
12870   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12871   case $host_os in
12872   aix[4-9]*)
12873     # If we're using GNU nm, then we don't want the "-C" option.
12874     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12875     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12876       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12877     else
12878       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'
12879     fi
12880     ;;
12881   pw32*)
12882     export_symbols_cmds_CXX="$ltdll_cmds"
12883   ;;
12884   cygwin* | mingw*)
12885     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12886   ;;
12887   linux* | k*bsd*-gnu)
12888     link_all_deplibs_CXX=no
12889   ;;
12890   *)
12891     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12892   ;;
12893   esac
12894   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12895
12896 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12897 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12898 test "$ld_shlibs_CXX" = no && can_build_shared=no
12899
12900 #
12901 # Do we need to explicitly link libc?
12902 #
12903 case "x$archive_cmds_need_lc_CXX" in
12904 x|xyes)
12905   # Assume -lc should be added
12906   archive_cmds_need_lc_CXX=yes
12907
12908   if test "$enable_shared" = yes && test "$GCC" = yes; then
12909     case $archive_cmds_CXX in
12910     *'~'*)
12911       # FIXME: we may have to deal with multi-command sequences.
12912       ;;
12913     '$CC '*)
12914       # Test whether the compiler implicitly links with -lc since on some
12915       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12916       # to ld, don't add -lc before -lgcc.
12917       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12918 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12919       $rm conftest*
12920       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12921
12922       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923   (eval $ac_compile) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } 2>conftest.err; then
12927         soname=conftest
12928         lib=conftest
12929         libobjs=conftest.$ac_objext
12930         deplibs=
12931         wl=$lt_prog_compiler_wl_CXX
12932         pic_flag=$lt_prog_compiler_pic_CXX
12933         compiler_flags=-v
12934         linker_flags=-v
12935         verstring=
12936         output_objdir=.
12937         libname=conftest
12938         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12939         allow_undefined_flag_CXX=
12940         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12941   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); }
12945         then
12946           archive_cmds_need_lc_CXX=no
12947         else
12948           archive_cmds_need_lc_CXX=yes
12949         fi
12950         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12951       else
12952         cat conftest.err 1>&5
12953       fi
12954       $rm conftest*
12955       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12956 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12957       ;;
12958     esac
12959   fi
12960   ;;
12961 esac
12962
12963 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12964 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12965 library_names_spec=
12966 libname_spec='lib$name'
12967 soname_spec=
12968 shrext_cmds=".so"
12969 postinstall_cmds=
12970 postuninstall_cmds=
12971 finish_cmds=
12972 finish_eval=
12973 shlibpath_var=
12974 shlibpath_overrides_runpath=unknown
12975 version_type=none
12976 dynamic_linker="$host_os ld.so"
12977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12978
12979 need_lib_prefix=unknown
12980 hardcode_into_libs=no
12981
12982 # when you set need_version to no, make sure it does not cause -set_version
12983 # flags to be left without arguments
12984 need_version=unknown
12985
12986 case $host_os in
12987 aix3*)
12988   version_type=linux
12989   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12990   shlibpath_var=LIBPATH
12991
12992   # AIX 3 has no versioning support, so we append a major version to the name.
12993   soname_spec='${libname}${release}${shared_ext}$major'
12994   ;;
12995
12996 aix[4-9]*)
12997   version_type=linux
12998   need_lib_prefix=no
12999   need_version=no
13000   hardcode_into_libs=yes
13001   if test "$host_cpu" = ia64; then
13002     # AIX 5 supports IA64
13003     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13004     shlibpath_var=LD_LIBRARY_PATH
13005   else
13006     # With GCC up to 2.95.x, collect2 would create an import file
13007     # for dependence libraries.  The import file would start with
13008     # the line `#! .'.  This would cause the generated library to
13009     # depend on `.', always an invalid library.  This was fixed in
13010     # development snapshots of GCC prior to 3.0.
13011     case $host_os in
13012       aix4 | aix4.[01] | aix4.[01].*)
13013       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13014            echo ' yes '
13015            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13016         :
13017       else
13018         can_build_shared=no
13019       fi
13020       ;;
13021     esac
13022     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13023     # soname into executable. Probably we can add versioning support to
13024     # collect2, so additional links can be useful in future.
13025     if test "$aix_use_runtimelinking" = yes; then
13026       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13027       # instead of lib<name>.a to let people know that these are not
13028       # typical AIX shared libraries.
13029       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13030     else
13031       # We preserve .a as extension for shared libraries through AIX4.2
13032       # and later when we are not doing run time linking.
13033       library_names_spec='${libname}${release}.a $libname.a'
13034       soname_spec='${libname}${release}${shared_ext}$major'
13035     fi
13036     shlibpath_var=LIBPATH
13037   fi
13038   ;;
13039
13040 amigaos*)
13041   library_names_spec='$libname.ixlibrary $libname.a'
13042   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13043   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
13044   ;;
13045
13046 beos*)
13047   library_names_spec='${libname}${shared_ext}'
13048   dynamic_linker="$host_os ld.so"
13049   shlibpath_var=LIBRARY_PATH
13050   ;;
13051
13052 bsdi[45]*)
13053   version_type=linux
13054   need_version=no
13055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056   soname_spec='${libname}${release}${shared_ext}$major'
13057   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13058   shlibpath_var=LD_LIBRARY_PATH
13059   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13060   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13061   # the default ld.so.conf also contains /usr/contrib/lib and
13062   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13063   # libtool to hard-code these into programs
13064   ;;
13065
13066 cygwin* | mingw* | pw32*)
13067   version_type=windows
13068   shrext_cmds=".dll"
13069   need_version=no
13070   need_lib_prefix=no
13071
13072   case $GCC,$host_os in
13073   yes,cygwin* | yes,mingw* | yes,pw32*)
13074     library_names_spec='$libname.dll.a'
13075     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13076     postinstall_cmds='base_file=`basename \${file}`~
13077       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13078       dldir=$destdir/`dirname \$dlpath`~
13079       test -d \$dldir || mkdir -p \$dldir~
13080       $install_prog $dir/$dlname \$dldir/$dlname~
13081       chmod a+x \$dldir/$dlname'
13082     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13083       dlpath=$dir/\$dldll~
13084        $rm \$dlpath'
13085     shlibpath_overrides_runpath=yes
13086
13087     case $host_os in
13088     cygwin*)
13089       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13090       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13091       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13092       ;;
13093     mingw*)
13094       # MinGW DLLs use traditional 'lib' prefix
13095       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13096       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13097       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13098         # It is most probably a Windows format PATH printed by
13099         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13100         # path with ; separators, and with drive letters. We can handle the
13101         # drive letters (cygwin fileutils understands them), so leave them,
13102         # especially as we might pass files found there to a mingw objdump,
13103         # which wouldn't understand a cygwinified path. Ahh.
13104         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13105       else
13106         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13107       fi
13108       ;;
13109     pw32*)
13110       # pw32 DLLs use 'pw' prefix rather than 'lib'
13111       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13112       ;;
13113     esac
13114     ;;
13115
13116   *)
13117     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13118     ;;
13119   esac
13120   dynamic_linker='Win32 ld.exe'
13121   # FIXME: first we should search . and the directory the executable is in
13122   shlibpath_var=PATH
13123   ;;
13124
13125 darwin* | rhapsody*)
13126   dynamic_linker="$host_os dyld"
13127   version_type=darwin
13128   need_lib_prefix=no
13129   need_version=no
13130   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13131   soname_spec='${libname}${release}${major}$shared_ext'
13132   shlibpath_overrides_runpath=yes
13133   shlibpath_var=DYLD_LIBRARY_PATH
13134   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13135
13136   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13137   ;;
13138
13139 dgux*)
13140   version_type=linux
13141   need_lib_prefix=no
13142   need_version=no
13143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13144   soname_spec='${libname}${release}${shared_ext}$major'
13145   shlibpath_var=LD_LIBRARY_PATH
13146   ;;
13147
13148 freebsd1*)
13149   dynamic_linker=no
13150   ;;
13151
13152 freebsd* | dragonfly*)
13153   # DragonFly does not have aout.  When/if they implement a new
13154   # versioning mechanism, adjust this.
13155   if test -x /usr/bin/objformat; then
13156     objformat=`/usr/bin/objformat`
13157   else
13158     case $host_os in
13159     freebsd[123]*) objformat=aout ;;
13160     *) objformat=elf ;;
13161     esac
13162   fi
13163   version_type=freebsd-$objformat
13164   case $version_type in
13165     freebsd-elf*)
13166       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13167       need_version=no
13168       need_lib_prefix=no
13169       ;;
13170     freebsd-*)
13171       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13172       need_version=yes
13173       ;;
13174   esac
13175   shlibpath_var=LD_LIBRARY_PATH
13176   case $host_os in
13177   freebsd2*)
13178     shlibpath_overrides_runpath=yes
13179     ;;
13180   freebsd3.[01]* | freebsdelf3.[01]*)
13181     shlibpath_overrides_runpath=yes
13182     hardcode_into_libs=yes
13183     ;;
13184   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13185   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13186     shlibpath_overrides_runpath=no
13187     hardcode_into_libs=yes
13188     ;;
13189   *) # from 4.6 on, and DragonFly
13190     shlibpath_overrides_runpath=yes
13191     hardcode_into_libs=yes
13192     ;;
13193   esac
13194   ;;
13195
13196 gnu*)
13197   version_type=linux
13198   need_lib_prefix=no
13199   need_version=no
13200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13201   soname_spec='${libname}${release}${shared_ext}$major'
13202   shlibpath_var=LD_LIBRARY_PATH
13203   hardcode_into_libs=yes
13204   ;;
13205
13206 hpux9* | hpux10* | hpux11*)
13207   # Give a soname corresponding to the major version so that dld.sl refuses to
13208   # link against other versions.
13209   version_type=sunos
13210   need_lib_prefix=no
13211   need_version=no
13212   case $host_cpu in
13213   ia64*)
13214     shrext_cmds='.so'
13215     hardcode_into_libs=yes
13216     dynamic_linker="$host_os dld.so"
13217     shlibpath_var=LD_LIBRARY_PATH
13218     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220     soname_spec='${libname}${release}${shared_ext}$major'
13221     if test "X$HPUX_IA64_MODE" = X32; then
13222       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13223     else
13224       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13225     fi
13226     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13227     ;;
13228    hppa*64*)
13229      shrext_cmds='.sl'
13230      hardcode_into_libs=yes
13231      dynamic_linker="$host_os dld.sl"
13232      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13233      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13234      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13235      soname_spec='${libname}${release}${shared_ext}$major'
13236      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13237      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13238      ;;
13239    *)
13240     shrext_cmds='.sl'
13241     dynamic_linker="$host_os dld.sl"
13242     shlibpath_var=SHLIB_PATH
13243     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13244     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245     soname_spec='${libname}${release}${shared_ext}$major'
13246     ;;
13247   esac
13248   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13249   postinstall_cmds='chmod 555 $lib'
13250   ;;
13251
13252 interix[3-9]*)
13253   version_type=linux
13254   need_lib_prefix=no
13255   need_version=no
13256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13257   soname_spec='${libname}${release}${shared_ext}$major'
13258   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13259   shlibpath_var=LD_LIBRARY_PATH
13260   shlibpath_overrides_runpath=no
13261   hardcode_into_libs=yes
13262   ;;
13263
13264 irix5* | irix6* | nonstopux*)
13265   case $host_os in
13266     nonstopux*) version_type=nonstopux ;;
13267     *)
13268         if test "$lt_cv_prog_gnu_ld" = yes; then
13269                 version_type=linux
13270         else
13271                 version_type=irix
13272         fi ;;
13273   esac
13274   need_lib_prefix=no
13275   need_version=no
13276   soname_spec='${libname}${release}${shared_ext}$major'
13277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13278   case $host_os in
13279   irix5* | nonstopux*)
13280     libsuff= shlibsuff=
13281     ;;
13282   *)
13283     case $LD in # libtool.m4 will add one of these switches to LD
13284     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13285       libsuff= shlibsuff= libmagic=32-bit;;
13286     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13287       libsuff=32 shlibsuff=N32 libmagic=N32;;
13288     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13289       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13290     *) libsuff= shlibsuff= libmagic=never-match;;
13291     esac
13292     ;;
13293   esac
13294   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13295   shlibpath_overrides_runpath=no
13296   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13297   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13298   hardcode_into_libs=yes
13299   ;;
13300
13301 # No shared lib support for Linux oldld, aout, or coff.
13302 linux*oldld* | linux*aout* | linux*coff*)
13303   dynamic_linker=no
13304   ;;
13305
13306 # This must be Linux ELF.
13307 linux* | k*bsd*-gnu)
13308   version_type=linux
13309   need_lib_prefix=no
13310   need_version=no
13311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13312   soname_spec='${libname}${release}${shared_ext}$major'
13313   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13314   shlibpath_var=LD_LIBRARY_PATH
13315   shlibpath_overrides_runpath=no
13316   # This implies no fast_install, which is unacceptable.
13317   # Some rework will be needed to allow for fast_install
13318   # before this can be enabled.
13319   hardcode_into_libs=yes
13320
13321   # Append ld.so.conf contents to the search path
13322   if test -f /etc/ld.so.conf; then
13323     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;/^$/d' | tr '\n' ' '`
13324     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13325   fi
13326
13327   # We used to test for /lib/ld.so.1 and disable shared libraries on
13328   # powerpc, because MkLinux only supported shared libraries with the
13329   # GNU dynamic linker.  Since this was broken with cross compilers,
13330   # most powerpc-linux boxes support dynamic linking these days and
13331   # people can always --disable-shared, the test was removed, and we
13332   # assume the GNU/Linux dynamic linker is in use.
13333   dynamic_linker='GNU/Linux ld.so'
13334   ;;
13335
13336 netbsdelf*-gnu)
13337   version_type=linux
13338   need_lib_prefix=no
13339   need_version=no
13340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13341   soname_spec='${libname}${release}${shared_ext}$major'
13342   shlibpath_var=LD_LIBRARY_PATH
13343   shlibpath_overrides_runpath=no
13344   hardcode_into_libs=yes
13345   dynamic_linker='NetBSD ld.elf_so'
13346   ;;
13347
13348 netbsd*)
13349   version_type=sunos
13350   need_lib_prefix=no
13351   need_version=no
13352   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13353     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13354     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13355     dynamic_linker='NetBSD (a.out) ld.so'
13356   else
13357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13358     soname_spec='${libname}${release}${shared_ext}$major'
13359     dynamic_linker='NetBSD ld.elf_so'
13360   fi
13361   shlibpath_var=LD_LIBRARY_PATH
13362   shlibpath_overrides_runpath=yes
13363   hardcode_into_libs=yes
13364   ;;
13365
13366 newsos6)
13367   version_type=linux
13368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13369   shlibpath_var=LD_LIBRARY_PATH
13370   shlibpath_overrides_runpath=yes
13371   ;;
13372
13373 nto-qnx*)
13374   version_type=linux
13375   need_lib_prefix=no
13376   need_version=no
13377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378   soname_spec='${libname}${release}${shared_ext}$major'
13379   shlibpath_var=LD_LIBRARY_PATH
13380   shlibpath_overrides_runpath=yes
13381   ;;
13382
13383 openbsd*)
13384   version_type=sunos
13385   sys_lib_dlsearch_path_spec="/usr/lib"
13386   need_lib_prefix=no
13387   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13388   case $host_os in
13389     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13390     *)                         need_version=no  ;;
13391   esac
13392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13393   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13394   shlibpath_var=LD_LIBRARY_PATH
13395   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13396     case $host_os in
13397       openbsd2.[89] | openbsd2.[89].*)
13398         shlibpath_overrides_runpath=no
13399         ;;
13400       *)
13401         shlibpath_overrides_runpath=yes
13402         ;;
13403       esac
13404   else
13405     shlibpath_overrides_runpath=yes
13406   fi
13407   ;;
13408
13409 os2*)
13410   libname_spec='$name'
13411   shrext_cmds=".dll"
13412   need_lib_prefix=no
13413   library_names_spec='$libname${shared_ext} $libname.a'
13414   dynamic_linker='OS/2 ld.exe'
13415   shlibpath_var=LIBPATH
13416   ;;
13417
13418 osf3* | osf4* | osf5*)
13419   version_type=osf
13420   need_lib_prefix=no
13421   need_version=no
13422   soname_spec='${libname}${release}${shared_ext}$major'
13423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13424   shlibpath_var=LD_LIBRARY_PATH
13425   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13426   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13427   ;;
13428
13429 rdos*)
13430   dynamic_linker=no
13431   ;;
13432
13433 solaris*)
13434   version_type=linux
13435   need_lib_prefix=no
13436   need_version=no
13437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13438   soname_spec='${libname}${release}${shared_ext}$major'
13439   shlibpath_var=LD_LIBRARY_PATH
13440   shlibpath_overrides_runpath=yes
13441   hardcode_into_libs=yes
13442   # ldd complains unless libraries are executable
13443   postinstall_cmds='chmod +x $lib'
13444   ;;
13445
13446 sunos4*)
13447   version_type=sunos
13448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13449   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13450   shlibpath_var=LD_LIBRARY_PATH
13451   shlibpath_overrides_runpath=yes
13452   if test "$with_gnu_ld" = yes; then
13453     need_lib_prefix=no
13454   fi
13455   need_version=yes
13456   ;;
13457
13458 sysv4 | sysv4.3*)
13459   version_type=linux
13460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461   soname_spec='${libname}${release}${shared_ext}$major'
13462   shlibpath_var=LD_LIBRARY_PATH
13463   case $host_vendor in
13464     sni)
13465       shlibpath_overrides_runpath=no
13466       need_lib_prefix=no
13467       export_dynamic_flag_spec='${wl}-Blargedynsym'
13468       runpath_var=LD_RUN_PATH
13469       ;;
13470     siemens)
13471       need_lib_prefix=no
13472       ;;
13473     motorola)
13474       need_lib_prefix=no
13475       need_version=no
13476       shlibpath_overrides_runpath=no
13477       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13478       ;;
13479   esac
13480   ;;
13481
13482 sysv4*MP*)
13483   if test -d /usr/nec ;then
13484     version_type=linux
13485     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13486     soname_spec='$libname${shared_ext}.$major'
13487     shlibpath_var=LD_LIBRARY_PATH
13488   fi
13489   ;;
13490
13491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13492   version_type=freebsd-elf
13493   need_lib_prefix=no
13494   need_version=no
13495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13496   soname_spec='${libname}${release}${shared_ext}$major'
13497   shlibpath_var=LD_LIBRARY_PATH
13498   hardcode_into_libs=yes
13499   if test "$with_gnu_ld" = yes; then
13500     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13501     shlibpath_overrides_runpath=no
13502   else
13503     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13504     shlibpath_overrides_runpath=yes
13505     case $host_os in
13506       sco3.2v5*)
13507         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13508         ;;
13509     esac
13510   fi
13511   sys_lib_dlsearch_path_spec='/usr/lib'
13512   ;;
13513
13514 uts4*)
13515   version_type=linux
13516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517   soname_spec='${libname}${release}${shared_ext}$major'
13518   shlibpath_var=LD_LIBRARY_PATH
13519   ;;
13520
13521 *)
13522   dynamic_linker=no
13523   ;;
13524 esac
13525 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13526 echo "${ECHO_T}$dynamic_linker" >&6; }
13527 test "$dynamic_linker" = no && can_build_shared=no
13528
13529 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13533 fi
13534
13535 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13536 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13540 fi
13541
13542 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13543
13544 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13545 if test "$GCC" = yes; then
13546   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13547 fi
13548
13549 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13550 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13551 hardcode_action_CXX=
13552 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13553    test -n "$runpath_var_CXX" || \
13554    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13555
13556   # We can hardcode non-existant directories.
13557   if test "$hardcode_direct_CXX" != no &&
13558      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13559      # have to relink, otherwise we might link with an installed library
13560      # when we should be linking with a yet-to-be-installed one
13561      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13562      test "$hardcode_minus_L_CXX" != no; then
13563     # Linking always hardcodes the temporary library directory.
13564     hardcode_action_CXX=relink
13565   else
13566     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13567     hardcode_action_CXX=immediate
13568   fi
13569 else
13570   # We cannot hardcode anything, or else we can only hardcode existing
13571   # directories.
13572   hardcode_action_CXX=unsupported
13573 fi
13574 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13575 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13576
13577 if test "$hardcode_action_CXX" = relink; then
13578   # Fast installation is not supported
13579   enable_fast_install=no
13580 elif test "$shlibpath_overrides_runpath" = yes ||
13581      test "$enable_shared" = no; then
13582   # Fast installation is not necessary
13583   enable_fast_install=needless
13584 fi
13585
13586
13587 # The else clause should only fire when bootstrapping the
13588 # libtool distribution, otherwise you forgot to ship ltmain.sh
13589 # with your package, and you will get complaints that there are
13590 # no rules to generate ltmain.sh.
13591 if test -f "$ltmain"; then
13592   # See if we are running on zsh, and set the options which allow our commands through
13593   # without removal of \ escapes.
13594   if test -n "${ZSH_VERSION+set}" ; then
13595     setopt NO_GLOB_SUBST
13596   fi
13597   # Now quote all the things that may contain metacharacters while being
13598   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13599   # variables and quote the copies for generation of the libtool script.
13600   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13601     SED SHELL STRIP \
13602     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13603     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13604     deplibs_check_method reload_flag reload_cmds need_locks \
13605     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13606     lt_cv_sys_global_symbol_to_c_name_address \
13607     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13608     old_postinstall_cmds old_postuninstall_cmds \
13609     compiler_CXX \
13610     CC_CXX \
13611     LD_CXX \
13612     lt_prog_compiler_wl_CXX \
13613     lt_prog_compiler_pic_CXX \
13614     lt_prog_compiler_static_CXX \
13615     lt_prog_compiler_no_builtin_flag_CXX \
13616     export_dynamic_flag_spec_CXX \
13617     thread_safe_flag_spec_CXX \
13618     whole_archive_flag_spec_CXX \
13619     enable_shared_with_static_runtimes_CXX \
13620     old_archive_cmds_CXX \
13621     old_archive_from_new_cmds_CXX \
13622     predep_objects_CXX \
13623     postdep_objects_CXX \
13624     predeps_CXX \
13625     postdeps_CXX \
13626     compiler_lib_search_path_CXX \
13627     compiler_lib_search_dirs_CXX \
13628     archive_cmds_CXX \
13629     archive_expsym_cmds_CXX \
13630     postinstall_cmds_CXX \
13631     postuninstall_cmds_CXX \
13632     old_archive_from_expsyms_cmds_CXX \
13633     allow_undefined_flag_CXX \
13634     no_undefined_flag_CXX \
13635     export_symbols_cmds_CXX \
13636     hardcode_libdir_flag_spec_CXX \
13637     hardcode_libdir_flag_spec_ld_CXX \
13638     hardcode_libdir_separator_CXX \
13639     hardcode_automatic_CXX \
13640     module_cmds_CXX \
13641     module_expsym_cmds_CXX \
13642     lt_cv_prog_compiler_c_o_CXX \
13643     fix_srcfile_path_CXX \
13644     exclude_expsyms_CXX \
13645     include_expsyms_CXX; do
13646
13647     case $var in
13648     old_archive_cmds_CXX | \
13649     old_archive_from_new_cmds_CXX | \
13650     archive_cmds_CXX | \
13651     archive_expsym_cmds_CXX | \
13652     module_cmds_CXX | \
13653     module_expsym_cmds_CXX | \
13654     old_archive_from_expsyms_cmds_CXX | \
13655     export_symbols_cmds_CXX | \
13656     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13657     postinstall_cmds | postuninstall_cmds | \
13658     old_postinstall_cmds | old_postuninstall_cmds | \
13659     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13660       # Double-quote double-evaled strings.
13661       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13662       ;;
13663     *)
13664       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13665       ;;
13666     esac
13667   done
13668
13669   case $lt_echo in
13670   *'\$0 --fallback-echo"')
13671     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13672     ;;
13673   esac
13674
13675 cfgfile="$ofile"
13676
13677   cat <<__EOF__ >> "$cfgfile"
13678 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13679
13680 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13681
13682 # Shell to use when invoking shell scripts.
13683 SHELL=$lt_SHELL
13684
13685 # Whether or not to build shared libraries.
13686 build_libtool_libs=$enable_shared
13687
13688 # Whether or not to build static libraries.
13689 build_old_libs=$enable_static
13690
13691 # Whether or not to add -lc for building shared libraries.
13692 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13693
13694 # Whether or not to disallow shared libs when runtime libs are static
13695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13696
13697 # Whether or not to optimize for fast installation.
13698 fast_install=$enable_fast_install
13699
13700 # The host system.
13701 host_alias=$host_alias
13702 host=$host
13703 host_os=$host_os
13704
13705 # The build system.
13706 build_alias=$build_alias
13707 build=$build
13708 build_os=$build_os
13709
13710 # An echo program that does not interpret backslashes.
13711 echo=$lt_echo
13712
13713 # The archiver.
13714 AR=$lt_AR
13715 AR_FLAGS=$lt_AR_FLAGS
13716
13717 # A C compiler.
13718 LTCC=$lt_LTCC
13719
13720 # LTCC compiler flags.
13721 LTCFLAGS=$lt_LTCFLAGS
13722
13723 # A language-specific compiler.
13724 CC=$lt_compiler_CXX
13725
13726 # Is the compiler the GNU C compiler?
13727 with_gcc=$GCC_CXX
13728
13729 # An ERE matcher.
13730 EGREP=$lt_EGREP
13731
13732 # The linker used to build libraries.
13733 LD=$lt_LD_CXX
13734
13735 # Whether we need hard or soft links.
13736 LN_S=$lt_LN_S
13737
13738 # A BSD-compatible nm program.
13739 NM=$lt_NM
13740
13741 # A symbol stripping program
13742 STRIP=$lt_STRIP
13743
13744 # Used to examine libraries when file_magic_cmd begins "file"
13745 MAGIC_CMD=$MAGIC_CMD
13746
13747 # Used on cygwin: DLL creation program.
13748 DLLTOOL="$DLLTOOL"
13749
13750 # Used on cygwin: object dumper.
13751 OBJDUMP="$OBJDUMP"
13752
13753 # Used on cygwin: assembler.
13754 AS="$AS"
13755
13756 # The name of the directory that contains temporary libtool files.
13757 objdir=$objdir
13758
13759 # How to create reloadable object files.
13760 reload_flag=$lt_reload_flag
13761 reload_cmds=$lt_reload_cmds
13762
13763 # How to pass a linker flag through the compiler.
13764 wl=$lt_lt_prog_compiler_wl_CXX
13765
13766 # Object file suffix (normally "o").
13767 objext="$ac_objext"
13768
13769 # Old archive suffix (normally "a").
13770 libext="$libext"
13771
13772 # Shared library suffix (normally ".so").
13773 shrext_cmds='$shrext_cmds'
13774
13775 # Executable file suffix (normally "").
13776 exeext="$exeext"
13777
13778 # Additional compiler flags for building library objects.
13779 pic_flag=$lt_lt_prog_compiler_pic_CXX
13780 pic_mode=$pic_mode
13781
13782 # What is the maximum length of a command?
13783 max_cmd_len=$lt_cv_sys_max_cmd_len
13784
13785 # Does compiler simultaneously support -c and -o options?
13786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13787
13788 # Must we lock files when doing compilation?
13789 need_locks=$lt_need_locks
13790
13791 # Do we need the lib prefix for modules?
13792 need_lib_prefix=$need_lib_prefix
13793
13794 # Do we need a version for libraries?
13795 need_version=$need_version
13796
13797 # Whether dlopen is supported.
13798 dlopen_support=$enable_dlopen
13799
13800 # Whether dlopen of programs is supported.
13801 dlopen_self=$enable_dlopen_self
13802
13803 # Whether dlopen of statically linked programs is supported.
13804 dlopen_self_static=$enable_dlopen_self_static
13805
13806 # Compiler flag to prevent dynamic linking.
13807 link_static_flag=$lt_lt_prog_compiler_static_CXX
13808
13809 # Compiler flag to turn off builtin functions.
13810 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13811
13812 # Compiler flag to allow reflexive dlopens.
13813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13814
13815 # Compiler flag to generate shared objects directly from archives.
13816 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13817
13818 # Compiler flag to generate thread-safe objects.
13819 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13820
13821 # Library versioning type.
13822 version_type=$version_type
13823
13824 # Format of library name prefix.
13825 libname_spec=$lt_libname_spec
13826
13827 # List of archive names.  First name is the real one, the rest are links.
13828 # The last name is the one that the linker finds with -lNAME.
13829 library_names_spec=$lt_library_names_spec
13830
13831 # The coded name of the library, if different from the real name.
13832 soname_spec=$lt_soname_spec
13833
13834 # Commands used to build and install an old-style archive.
13835 RANLIB=$lt_RANLIB
13836 old_archive_cmds=$lt_old_archive_cmds_CXX
13837 old_postinstall_cmds=$lt_old_postinstall_cmds
13838 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13839
13840 # Create an old-style archive from a shared archive.
13841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13842
13843 # Create a temporary old-style archive to link instead of a shared archive.
13844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13845
13846 # Commands used to build and install a shared archive.
13847 archive_cmds=$lt_archive_cmds_CXX
13848 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13849 postinstall_cmds=$lt_postinstall_cmds
13850 postuninstall_cmds=$lt_postuninstall_cmds
13851
13852 # Commands used to build a loadable module (assumed same as above if empty)
13853 module_cmds=$lt_module_cmds_CXX
13854 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13855
13856 # Commands to strip libraries.
13857 old_striplib=$lt_old_striplib
13858 striplib=$lt_striplib
13859
13860 # Dependencies to place before the objects being linked to create a
13861 # shared library.
13862 predep_objects=$lt_predep_objects_CXX
13863
13864 # Dependencies to place after the objects being linked to create a
13865 # shared library.
13866 postdep_objects=$lt_postdep_objects_CXX
13867
13868 # Dependencies to place before the objects being linked to create a
13869 # shared library.
13870 predeps=$lt_predeps_CXX
13871
13872 # Dependencies to place after the objects being linked to create a
13873 # shared library.
13874 postdeps=$lt_postdeps_CXX
13875
13876 # The directories searched by this compiler when creating a shared
13877 # library
13878 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13879
13880 # The library search path used internally by the compiler when linking
13881 # a shared library.
13882 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13883
13884 # Method to check whether dependent libraries are shared objects.
13885 deplibs_check_method=$lt_deplibs_check_method
13886
13887 # Command to use when deplibs_check_method == file_magic.
13888 file_magic_cmd=$lt_file_magic_cmd
13889
13890 # Flag that allows shared libraries with undefined symbols to be built.
13891 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13892
13893 # Flag that forces no undefined symbols.
13894 no_undefined_flag=$lt_no_undefined_flag_CXX
13895
13896 # Commands used to finish a libtool library installation in a directory.
13897 finish_cmds=$lt_finish_cmds
13898
13899 # Same as above, but a single script fragment to be evaled but not shown.
13900 finish_eval=$lt_finish_eval
13901
13902 # Take the output of nm and produce a listing of raw symbols and C names.
13903 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13904
13905 # Transform the output of nm in a proper C declaration
13906 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13907
13908 # Transform the output of nm in a C name address pair
13909 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13910
13911 # This is the shared library runtime path variable.
13912 runpath_var=$runpath_var
13913
13914 # This is the shared library path variable.
13915 shlibpath_var=$shlibpath_var
13916
13917 # Is shlibpath searched before the hard-coded library search path?
13918 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13919
13920 # How to hardcode a shared library path into an executable.
13921 hardcode_action=$hardcode_action_CXX
13922
13923 # Whether we should hardcode library paths into libraries.
13924 hardcode_into_libs=$hardcode_into_libs
13925
13926 # Flag to hardcode \$libdir into a binary during linking.
13927 # This must work even if \$libdir does not exist.
13928 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13929
13930 # If ld is used when linking, flag to hardcode \$libdir into
13931 # a binary during linking. This must work even if \$libdir does
13932 # not exist.
13933 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13934
13935 # Whether we need a single -rpath flag with a separated argument.
13936 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13937
13938 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13939 # resulting binary.
13940 hardcode_direct=$hardcode_direct_CXX
13941
13942 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13943 # resulting binary.
13944 hardcode_minus_L=$hardcode_minus_L_CXX
13945
13946 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13947 # the resulting binary.
13948 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13949
13950 # Set to yes if building a shared library automatically hardcodes DIR into the library
13951 # and all subsequent libraries and executables linked against it.
13952 hardcode_automatic=$hardcode_automatic_CXX
13953
13954 # Variables whose values should be saved in libtool wrapper scripts and
13955 # restored at relink time.
13956 variables_saved_for_relink="$variables_saved_for_relink"
13957
13958 # Whether libtool must link a program against all its dependency libraries.
13959 link_all_deplibs=$link_all_deplibs_CXX
13960
13961 # Compile-time system search path for libraries
13962 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13963
13964 # Run-time system search path for libraries
13965 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13966
13967 # Fix the shell variable \$srcfile for the compiler.
13968 fix_srcfile_path=$lt_fix_srcfile_path
13969
13970 # Set to yes if exported symbols are required.
13971 always_export_symbols=$always_export_symbols_CXX
13972
13973 # The commands to list exported symbols.
13974 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13975
13976 # The commands to extract the exported symbol list from a shared archive.
13977 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13978
13979 # Symbols that should not be listed in the preloaded symbols.
13980 exclude_expsyms=$lt_exclude_expsyms_CXX
13981
13982 # Symbols that must always be exported.
13983 include_expsyms=$lt_include_expsyms_CXX
13984
13985 # ### END LIBTOOL TAG CONFIG: $tagname
13986
13987 __EOF__
13988
13989
13990 else
13991   # If there is no Makefile yet, we rely on a make rule to execute
13992   # `config.status --recheck' to rerun these tests and create the
13993   # libtool script then.
13994   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13995   if test -f "$ltmain_in"; then
13996     test -f Makefile && make "$ltmain"
13997   fi
13998 fi
13999
14000
14001 ac_ext=cpp
14002 ac_cpp='$CXXCPP $CPPFLAGS'
14003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14006
14007 CC=$lt_save_CC
14008 LDCXX=$LD
14009 LD=$lt_save_LD
14010 GCC=$lt_save_GCC
14011 with_gnu_ldcxx=$with_gnu_ld
14012 with_gnu_ld=$lt_save_with_gnu_ld
14013 lt_cv_path_LDCXX=$lt_cv_path_LD
14014 lt_cv_path_LD=$lt_save_path_LD
14015 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14016 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14017
14018         else
14019           tagname=""
14020         fi
14021         ;;
14022
14023       F77)
14024         if test -n "$F77" && test "X$F77" != "Xno"; then
14025
14026 ac_ext=f
14027 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14028 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14029 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14030
14031
14032 archive_cmds_need_lc_F77=no
14033 allow_undefined_flag_F77=
14034 always_export_symbols_F77=no
14035 archive_expsym_cmds_F77=
14036 export_dynamic_flag_spec_F77=
14037 hardcode_direct_F77=no
14038 hardcode_libdir_flag_spec_F77=
14039 hardcode_libdir_flag_spec_ld_F77=
14040 hardcode_libdir_separator_F77=
14041 hardcode_minus_L_F77=no
14042 hardcode_automatic_F77=no
14043 module_cmds_F77=
14044 module_expsym_cmds_F77=
14045 link_all_deplibs_F77=unknown
14046 old_archive_cmds_F77=$old_archive_cmds
14047 no_undefined_flag_F77=
14048 whole_archive_flag_spec_F77=
14049 enable_shared_with_static_runtimes_F77=no
14050
14051 # Source file extension for f77 test sources.
14052 ac_ext=f
14053
14054 # Object file extension for compiled f77 test sources.
14055 objext=o
14056 objext_F77=$objext
14057
14058 # Code to be used in simple compile tests
14059 lt_simple_compile_test_code="\
14060       subroutine t
14061       return
14062       end
14063 "
14064
14065 # Code to be used in simple link tests
14066 lt_simple_link_test_code="\
14067       program t
14068       end
14069 "
14070
14071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14072
14073 # If no C compiler was specified, use CC.
14074 LTCC=${LTCC-"$CC"}
14075
14076 # If no C compiler flags were specified, use CFLAGS.
14077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14078
14079 # Allow CC to be a program name with arguments.
14080 compiler=$CC
14081
14082
14083 # save warnings/boilerplate of simple test code
14084 ac_outfile=conftest.$ac_objext
14085 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14087 _lt_compiler_boilerplate=`cat conftest.err`
14088 $rm conftest*
14089
14090 ac_outfile=conftest.$ac_objext
14091 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14093 _lt_linker_boilerplate=`cat conftest.err`
14094 $rm -r conftest*
14095
14096
14097 # Allow CC to be a program name with arguments.
14098 lt_save_CC="$CC"
14099 CC=${F77-"f77"}
14100 compiler=$CC
14101 compiler_F77=$CC
14102 for cc_temp in $compiler""; do
14103   case $cc_temp in
14104     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14105     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14106     \-*) ;;
14107     *) break;;
14108   esac
14109 done
14110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14111
14112
14113 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14114 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14115 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14116 echo "${ECHO_T}$can_build_shared" >&6; }
14117
14118 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14119 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14120 test "$can_build_shared" = "no" && enable_shared=no
14121
14122 # On AIX, shared libraries and static libraries use the same namespace, and
14123 # are all built from PIC.
14124 case $host_os in
14125 aix3*)
14126   test "$enable_shared" = yes && enable_static=no
14127   if test -n "$RANLIB"; then
14128     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14129     postinstall_cmds='$RANLIB $lib'
14130   fi
14131   ;;
14132 aix[4-9]*)
14133   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14134     test "$enable_shared" = yes && enable_static=no
14135   fi
14136   ;;
14137 esac
14138 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14139 echo "${ECHO_T}$enable_shared" >&6; }
14140
14141 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14142 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14143 # Make sure either enable_shared or enable_static is yes.
14144 test "$enable_shared" = yes || enable_static=yes
14145 { echo "$as_me:$LINENO: result: $enable_static" >&5
14146 echo "${ECHO_T}$enable_static" >&6; }
14147
14148 GCC_F77="$G77"
14149 LD_F77="$LD"
14150
14151 lt_prog_compiler_wl_F77=
14152 lt_prog_compiler_pic_F77=
14153 lt_prog_compiler_static_F77=
14154
14155 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14157
14158   if test "$GCC" = yes; then
14159     lt_prog_compiler_wl_F77='-Wl,'
14160     lt_prog_compiler_static_F77='-static'
14161
14162     case $host_os in
14163       aix*)
14164       # All AIX code is PIC.
14165       if test "$host_cpu" = ia64; then
14166         # AIX 5 now supports IA64 processor
14167         lt_prog_compiler_static_F77='-Bstatic'
14168       fi
14169       ;;
14170
14171     amigaos*)
14172       # FIXME: we need at least 68020 code to build shared libraries, but
14173       # adding the `-m68020' flag to GCC prevents building anything better,
14174       # like `-m68040'.
14175       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14176       ;;
14177
14178     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14179       # PIC is the default for these OSes.
14180       ;;
14181
14182     mingw* | cygwin* | pw32* | os2*)
14183       # This hack is so that the source file can tell whether it is being
14184       # built for inclusion in a dll (and should export symbols for example).
14185       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14186       # (--disable-auto-import) libraries
14187       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14188       ;;
14189
14190     darwin* | rhapsody*)
14191       # PIC is the default on this platform
14192       # Common symbols not allowed in MH_DYLIB files
14193       lt_prog_compiler_pic_F77='-fno-common'
14194       ;;
14195
14196     interix[3-9]*)
14197       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14198       # Instead, we relocate shared libraries at runtime.
14199       ;;
14200
14201     msdosdjgpp*)
14202       # Just because we use GCC doesn't mean we suddenly get shared libraries
14203       # on systems that don't support them.
14204       lt_prog_compiler_can_build_shared_F77=no
14205       enable_shared=no
14206       ;;
14207
14208     sysv4*MP*)
14209       if test -d /usr/nec; then
14210         lt_prog_compiler_pic_F77=-Kconform_pic
14211       fi
14212       ;;
14213
14214     hpux*)
14215       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14216       # not for PA HP-UX.
14217       case $host_cpu in
14218       hppa*64*|ia64*)
14219         # +Z the default
14220         ;;
14221       *)
14222         lt_prog_compiler_pic_F77='-fPIC'
14223         ;;
14224       esac
14225       ;;
14226
14227     *)
14228       lt_prog_compiler_pic_F77='-fPIC'
14229       ;;
14230     esac
14231   else
14232     # PORTME Check for flag to pass linker flags through the system compiler.
14233     case $host_os in
14234     aix*)
14235       lt_prog_compiler_wl_F77='-Wl,'
14236       if test "$host_cpu" = ia64; then
14237         # AIX 5 now supports IA64 processor
14238         lt_prog_compiler_static_F77='-Bstatic'
14239       else
14240         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14241       fi
14242       ;;
14243       darwin*)
14244         # PIC is the default on this platform
14245         # Common symbols not allowed in MH_DYLIB files
14246        case $cc_basename in
14247          xlc*)
14248          lt_prog_compiler_pic_F77='-qnocommon'
14249          lt_prog_compiler_wl_F77='-Wl,'
14250          ;;
14251        esac
14252        ;;
14253
14254     mingw* | cygwin* | pw32* | os2*)
14255       # This hack is so that the source file can tell whether it is being
14256       # built for inclusion in a dll (and should export symbols for example).
14257       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14258       ;;
14259
14260     hpux9* | hpux10* | hpux11*)
14261       lt_prog_compiler_wl_F77='-Wl,'
14262       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14263       # not for PA HP-UX.
14264       case $host_cpu in
14265       hppa*64*|ia64*)
14266         # +Z the default
14267         ;;
14268       *)
14269         lt_prog_compiler_pic_F77='+Z'
14270         ;;
14271       esac
14272       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14273       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14274       ;;
14275
14276     irix5* | irix6* | nonstopux*)
14277       lt_prog_compiler_wl_F77='-Wl,'
14278       # PIC (with -KPIC) is the default.
14279       lt_prog_compiler_static_F77='-non_shared'
14280       ;;
14281
14282     newsos6)
14283       lt_prog_compiler_pic_F77='-KPIC'
14284       lt_prog_compiler_static_F77='-Bstatic'
14285       ;;
14286
14287     linux* | k*bsd*-gnu)
14288       case $cc_basename in
14289       icc* | ecc*)
14290         lt_prog_compiler_wl_F77='-Wl,'
14291         lt_prog_compiler_pic_F77='-KPIC'
14292         lt_prog_compiler_static_F77='-static'
14293         ;;
14294       pgcc* | pgf77* | pgf90* | pgf95*)
14295         # Portland Group compilers (*not* the Pentium gcc compiler,
14296         # which looks to be a dead project)
14297         lt_prog_compiler_wl_F77='-Wl,'
14298         lt_prog_compiler_pic_F77='-fpic'
14299         lt_prog_compiler_static_F77='-Bstatic'
14300         ;;
14301       ccc*)
14302         lt_prog_compiler_wl_F77='-Wl,'
14303         # All Alpha code is PIC.
14304         lt_prog_compiler_static_F77='-non_shared'
14305         ;;
14306       *)
14307         case `$CC -V 2>&1 | sed 5q` in
14308         *Sun\ C*)
14309           # Sun C 5.9
14310           lt_prog_compiler_pic_F77='-KPIC'
14311           lt_prog_compiler_static_F77='-Bstatic'
14312           lt_prog_compiler_wl_F77='-Wl,'
14313           ;;
14314         *Sun\ F*)
14315           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14316           lt_prog_compiler_pic_F77='-KPIC'
14317           lt_prog_compiler_static_F77='-Bstatic'
14318           lt_prog_compiler_wl_F77=''
14319           ;;
14320         esac
14321         ;;
14322       esac
14323       ;;
14324
14325     osf3* | osf4* | osf5*)
14326       lt_prog_compiler_wl_F77='-Wl,'
14327       # All OSF/1 code is PIC.
14328       lt_prog_compiler_static_F77='-non_shared'
14329       ;;
14330
14331     rdos*)
14332       lt_prog_compiler_static_F77='-non_shared'
14333       ;;
14334
14335     solaris*)
14336       lt_prog_compiler_pic_F77='-KPIC'
14337       lt_prog_compiler_static_F77='-Bstatic'
14338       case $cc_basename in
14339       f77* | f90* | f95*)
14340         lt_prog_compiler_wl_F77='-Qoption ld ';;
14341       *)
14342         lt_prog_compiler_wl_F77='-Wl,';;
14343       esac
14344       ;;
14345
14346     sunos4*)
14347       lt_prog_compiler_wl_F77='-Qoption ld '
14348       lt_prog_compiler_pic_F77='-PIC'
14349       lt_prog_compiler_static_F77='-Bstatic'
14350       ;;
14351
14352     sysv4 | sysv4.2uw2* | sysv4.3*)
14353       lt_prog_compiler_wl_F77='-Wl,'
14354       lt_prog_compiler_pic_F77='-KPIC'
14355       lt_prog_compiler_static_F77='-Bstatic'
14356       ;;
14357
14358     sysv4*MP*)
14359       if test -d /usr/nec ;then
14360         lt_prog_compiler_pic_F77='-Kconform_pic'
14361         lt_prog_compiler_static_F77='-Bstatic'
14362       fi
14363       ;;
14364
14365     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14366       lt_prog_compiler_wl_F77='-Wl,'
14367       lt_prog_compiler_pic_F77='-KPIC'
14368       lt_prog_compiler_static_F77='-Bstatic'
14369       ;;
14370
14371     unicos*)
14372       lt_prog_compiler_wl_F77='-Wl,'
14373       lt_prog_compiler_can_build_shared_F77=no
14374       ;;
14375
14376     uts4*)
14377       lt_prog_compiler_pic_F77='-pic'
14378       lt_prog_compiler_static_F77='-Bstatic'
14379       ;;
14380
14381     *)
14382       lt_prog_compiler_can_build_shared_F77=no
14383       ;;
14384     esac
14385   fi
14386
14387 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14388 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14389
14390 #
14391 # Check to make sure the PIC flag actually works.
14392 #
14393 if test -n "$lt_prog_compiler_pic_F77"; then
14394
14395 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14396 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14397 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14398   echo $ECHO_N "(cached) $ECHO_C" >&6
14399 else
14400   lt_cv_prog_compiler_pic_works_F77=no
14401   ac_outfile=conftest.$ac_objext
14402    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14403    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14404    # Insert the option either (1) after the last *FLAGS variable, or
14405    # (2) before a word containing "conftest.", or (3) at the end.
14406    # Note that $ac_compile itself does not contain backslashes and begins
14407    # with a dollar sign (not a hyphen), so the echo should work correctly.
14408    # The option is referenced via a variable to avoid confusing sed.
14409    lt_compile=`echo "$ac_compile" | $SED \
14410    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14411    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14412    -e 's:$: $lt_compiler_flag:'`
14413    (eval echo "\"\$as_me:14413: $lt_compile\"" >&5)
14414    (eval "$lt_compile" 2>conftest.err)
14415    ac_status=$?
14416    cat conftest.err >&5
14417    echo "$as_me:14417: \$? = $ac_status" >&5
14418    if (exit $ac_status) && test -s "$ac_outfile"; then
14419      # The compiler can only warn and ignore the option if not recognized
14420      # So say no if there are warnings other than the usual output.
14421      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14422      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14423      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14424        lt_cv_prog_compiler_pic_works_F77=yes
14425      fi
14426    fi
14427    $rm conftest*
14428
14429 fi
14430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14431 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14432
14433 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14434     case $lt_prog_compiler_pic_F77 in
14435      "" | " "*) ;;
14436      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14437      esac
14438 else
14439     lt_prog_compiler_pic_F77=
14440      lt_prog_compiler_can_build_shared_F77=no
14441 fi
14442
14443 fi
14444 case $host_os in
14445   # For platforms which do not support PIC, -DPIC is meaningless:
14446   *djgpp*)
14447     lt_prog_compiler_pic_F77=
14448     ;;
14449   *)
14450     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14451     ;;
14452 esac
14453
14454 #
14455 # Check to make sure the static flag actually works.
14456 #
14457 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14458 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14459 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14460 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14461   echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463   lt_cv_prog_compiler_static_works_F77=no
14464    save_LDFLAGS="$LDFLAGS"
14465    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14466    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14467    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14468      # The linker can only warn and ignore the option if not recognized
14469      # So say no if there are warnings
14470      if test -s conftest.err; then
14471        # Append any errors to the config.log.
14472        cat conftest.err 1>&5
14473        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14474        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14475        if diff conftest.exp conftest.er2 >/dev/null; then
14476          lt_cv_prog_compiler_static_works_F77=yes
14477        fi
14478      else
14479        lt_cv_prog_compiler_static_works_F77=yes
14480      fi
14481    fi
14482    $rm -r conftest*
14483    LDFLAGS="$save_LDFLAGS"
14484
14485 fi
14486 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14487 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14488
14489 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14490     :
14491 else
14492     lt_prog_compiler_static_F77=
14493 fi
14494
14495
14496 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14497 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14498 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14499   echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501   lt_cv_prog_compiler_c_o_F77=no
14502    $rm -r conftest 2>/dev/null
14503    mkdir conftest
14504    cd conftest
14505    mkdir out
14506    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14507
14508    lt_compiler_flag="-o out/conftest2.$ac_objext"
14509    # Insert the option either (1) after the last *FLAGS variable, or
14510    # (2) before a word containing "conftest.", or (3) at the end.
14511    # Note that $ac_compile itself does not contain backslashes and begins
14512    # with a dollar sign (not a hyphen), so the echo should work correctly.
14513    lt_compile=`echo "$ac_compile" | $SED \
14514    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14515    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14516    -e 's:$: $lt_compiler_flag:'`
14517    (eval echo "\"\$as_me:14517: $lt_compile\"" >&5)
14518    (eval "$lt_compile" 2>out/conftest.err)
14519    ac_status=$?
14520    cat out/conftest.err >&5
14521    echo "$as_me:14521: \$? = $ac_status" >&5
14522    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14523    then
14524      # The compiler can only warn and ignore the option if not recognized
14525      # So say no if there are warnings
14526      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14527      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14528      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14529        lt_cv_prog_compiler_c_o_F77=yes
14530      fi
14531    fi
14532    chmod u+w . 2>&5
14533    $rm conftest*
14534    # SGI C++ compiler will create directory out/ii_files/ for
14535    # template instantiation
14536    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14537    $rm out/* && rmdir out
14538    cd ..
14539    rmdir conftest
14540    $rm conftest*
14541
14542 fi
14543 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14544 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14545
14546
14547 hard_links="nottested"
14548 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14549   # do not overwrite the value of need_locks provided by the user
14550   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14551 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14552   hard_links=yes
14553   $rm conftest*
14554   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14555   touch conftest.a
14556   ln conftest.a conftest.b 2>&5 || hard_links=no
14557   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14558   { echo "$as_me:$LINENO: result: $hard_links" >&5
14559 echo "${ECHO_T}$hard_links" >&6; }
14560   if test "$hard_links" = no; then
14561     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14562 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14563     need_locks=warn
14564   fi
14565 else
14566   need_locks=no
14567 fi
14568
14569 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14570 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14571
14572   runpath_var=
14573   allow_undefined_flag_F77=
14574   enable_shared_with_static_runtimes_F77=no
14575   archive_cmds_F77=
14576   archive_expsym_cmds_F77=
14577   old_archive_From_new_cmds_F77=
14578   old_archive_from_expsyms_cmds_F77=
14579   export_dynamic_flag_spec_F77=
14580   whole_archive_flag_spec_F77=
14581   thread_safe_flag_spec_F77=
14582   hardcode_libdir_flag_spec_F77=
14583   hardcode_libdir_flag_spec_ld_F77=
14584   hardcode_libdir_separator_F77=
14585   hardcode_direct_F77=no
14586   hardcode_minus_L_F77=no
14587   hardcode_shlibpath_var_F77=unsupported
14588   link_all_deplibs_F77=unknown
14589   hardcode_automatic_F77=no
14590   module_cmds_F77=
14591   module_expsym_cmds_F77=
14592   always_export_symbols_F77=no
14593   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14594   # include_expsyms should be a list of space-separated symbols to be *always*
14595   # included in the symbol list
14596   include_expsyms_F77=
14597   # exclude_expsyms can be an extended regexp of symbols to exclude
14598   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14599   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14600   # as well as any symbol that contains `d'.
14601   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14602   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14603   # platforms (ab)use it in PIC code, but their linkers get confused if
14604   # the symbol is explicitly referenced.  Since portable code cannot
14605   # rely on this symbol name, it's probably fine to never include it in
14606   # preloaded symbol tables.
14607   # Exclude shared library initialization/finalization symbols.
14608   extract_expsyms_cmds=
14609   # Just being paranoid about ensuring that cc_basename is set.
14610   for cc_temp in $compiler""; do
14611   case $cc_temp in
14612     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14613     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14614     \-*) ;;
14615     *) break;;
14616   esac
14617 done
14618 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14619
14620   case $host_os in
14621   cygwin* | mingw* | pw32*)
14622     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14623     # When not using gcc, we currently assume that we are using
14624     # Microsoft Visual C++.
14625     if test "$GCC" != yes; then
14626       with_gnu_ld=no
14627     fi
14628     ;;
14629   interix*)
14630     # we just hope/assume this is gcc and not c89 (= MSVC++)
14631     with_gnu_ld=yes
14632     ;;
14633   openbsd*)
14634     with_gnu_ld=no
14635     ;;
14636   esac
14637
14638   ld_shlibs_F77=yes
14639   if test "$with_gnu_ld" = yes; then
14640     # If archive_cmds runs LD, not CC, wlarc should be empty
14641     wlarc='${wl}'
14642
14643     # Set some defaults for GNU ld with shared library support. These
14644     # are reset later if shared libraries are not supported. Putting them
14645     # here allows them to be overridden if necessary.
14646     runpath_var=LD_RUN_PATH
14647     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14648     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14649     # ancient GNU ld didn't support --whole-archive et. al.
14650     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14651         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14652       else
14653         whole_archive_flag_spec_F77=
14654     fi
14655     supports_anon_versioning=no
14656     case `$LD -v 2>/dev/null` in
14657       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14658       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14659       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14660       *\ 2.11.*) ;; # other 2.11 versions
14661       *) supports_anon_versioning=yes ;;
14662     esac
14663
14664     # See if GNU ld supports shared libraries.
14665     case $host_os in
14666     aix[3-9]*)
14667       # On AIX/PPC, the GNU linker is very broken
14668       if test "$host_cpu" != ia64; then
14669         ld_shlibs_F77=no
14670         cat <<EOF 1>&2
14671
14672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14673 *** to be unable to reliably create shared libraries on AIX.
14674 *** Therefore, libtool is disabling shared libraries support.  If you
14675 *** really care for shared libraries, you may want to modify your PATH
14676 *** so that a non-GNU linker is found, and then restart.
14677
14678 EOF
14679       fi
14680       ;;
14681
14682     amigaos*)
14683       archive_cmds_F77='$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)'
14684       hardcode_libdir_flag_spec_F77='-L$libdir'
14685       hardcode_minus_L_F77=yes
14686
14687       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14688       # that the semantics of dynamic libraries on AmigaOS, at least up
14689       # to version 4, is to share data among multiple programs linked
14690       # with the same dynamic library.  Since this doesn't match the
14691       # behavior of shared libraries on other platforms, we can't use
14692       # them.
14693       ld_shlibs_F77=no
14694       ;;
14695
14696     beos*)
14697       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14698         allow_undefined_flag_F77=unsupported
14699         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14700         # support --undefined.  This deserves some investigation.  FIXME
14701         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14702       else
14703         ld_shlibs_F77=no
14704       fi
14705       ;;
14706
14707     cygwin* | mingw* | pw32*)
14708       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14709       # as there is no search path for DLLs.
14710       hardcode_libdir_flag_spec_F77='-L$libdir'
14711       allow_undefined_flag_F77=unsupported
14712       always_export_symbols_F77=no
14713       enable_shared_with_static_runtimes_F77=yes
14714       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14715
14716       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14717         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14718         # If the export-symbols file already is a .def file (1st line
14719         # is EXPORTS), use it as is; otherwise, prepend...
14720         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14721           cp $export_symbols $output_objdir/$soname.def;
14722         else
14723           echo EXPORTS > $output_objdir/$soname.def;
14724           cat $export_symbols >> $output_objdir/$soname.def;
14725         fi~
14726         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14727       else
14728         ld_shlibs_F77=no
14729       fi
14730       ;;
14731
14732     interix[3-9]*)
14733       hardcode_direct_F77=no
14734       hardcode_shlibpath_var_F77=no
14735       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14736       export_dynamic_flag_spec_F77='${wl}-E'
14737       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14738       # Instead, shared libraries are loaded at an image base (0x10000000 by
14739       # default) and relocated if they conflict, which is a slow very memory
14740       # consuming and fragmenting process.  To avoid this, we pick a random,
14741       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14742       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14743       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14744       archive_expsym_cmds_F77='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'
14745       ;;
14746
14747     gnu* | linux* | k*bsd*-gnu)
14748       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14749         tmp_addflag=
14750         case $cc_basename,$host_cpu in
14751         pgcc*)                          # Portland Group C compiler
14752           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14753           tmp_addflag=' $pic_flag'
14754           ;;
14755         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14756           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14757           tmp_addflag=' $pic_flag -Mnomain' ;;
14758         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14759           tmp_addflag=' -i_dynamic' ;;
14760         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14761           tmp_addflag=' -i_dynamic -nofor_main' ;;
14762         ifc* | ifort*)                  # Intel Fortran compiler
14763           tmp_addflag=' -nofor_main' ;;
14764         esac
14765         case `$CC -V 2>&1 | sed 5q` in
14766         *Sun\ C*)                       # Sun C 5.9
14767           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14768           tmp_sharedflag='-G' ;;
14769         *Sun\ F*)                       # Sun Fortran 8.3
14770           tmp_sharedflag='-G' ;;
14771         *)
14772           tmp_sharedflag='-shared' ;;
14773         esac
14774         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775
14776         if test $supports_anon_versioning = yes; then
14777           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14778   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14779   $echo "local: *; };" >> $output_objdir/$libname.ver~
14780           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14781         fi
14782         link_all_deplibs_F77=no
14783       else
14784         ld_shlibs_F77=no
14785       fi
14786       ;;
14787
14788     netbsd* | netbsdelf*-gnu)
14789       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14790         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14791         wlarc=
14792       else
14793         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14795       fi
14796       ;;
14797
14798     solaris*)
14799       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14800         ld_shlibs_F77=no
14801         cat <<EOF 1>&2
14802
14803 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14804 *** create shared libraries on Solaris systems.  Therefore, libtool
14805 *** is disabling shared libraries support.  We urge you to upgrade GNU
14806 *** binutils to release 2.9.1 or newer.  Another option is to modify
14807 *** your PATH or compiler configuration so that the native linker is
14808 *** used, and then restart.
14809
14810 EOF
14811       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14812         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14813         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14814       else
14815         ld_shlibs_F77=no
14816       fi
14817       ;;
14818
14819     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14820       case `$LD -v 2>&1` in
14821         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14822         ld_shlibs_F77=no
14823         cat <<_LT_EOF 1>&2
14824
14825 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14826 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14827 *** is disabling shared libraries support.  We urge you to upgrade GNU
14828 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14829 *** your PATH or compiler configuration so that the native linker is
14830 *** used, and then restart.
14831
14832 _LT_EOF
14833         ;;
14834         *)
14835           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14836             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14837             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14838             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14839           else
14840             ld_shlibs_F77=no
14841           fi
14842         ;;
14843       esac
14844       ;;
14845
14846     sunos4*)
14847       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14848       wlarc=
14849       hardcode_direct_F77=yes
14850       hardcode_shlibpath_var_F77=no
14851       ;;
14852
14853     *)
14854       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14855         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14856         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14857       else
14858         ld_shlibs_F77=no
14859       fi
14860       ;;
14861     esac
14862
14863     if test "$ld_shlibs_F77" = no; then
14864       runpath_var=
14865       hardcode_libdir_flag_spec_F77=
14866       export_dynamic_flag_spec_F77=
14867       whole_archive_flag_spec_F77=
14868     fi
14869   else
14870     # PORTME fill in a description of your system's linker (not GNU ld)
14871     case $host_os in
14872     aix3*)
14873       allow_undefined_flag_F77=unsupported
14874       always_export_symbols_F77=yes
14875       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14876       # Note: this linker hardcodes the directories in LIBPATH if there
14877       # are no directories specified by -L.
14878       hardcode_minus_L_F77=yes
14879       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14880         # Neither direct hardcoding nor static linking is supported with a
14881         # broken collect2.
14882         hardcode_direct_F77=unsupported
14883       fi
14884       ;;
14885
14886     aix[4-9]*)
14887       if test "$host_cpu" = ia64; then
14888         # On IA64, the linker does run time linking by default, so we don't
14889         # have to do anything special.
14890         aix_use_runtimelinking=no
14891         exp_sym_flag='-Bexport'
14892         no_entry_flag=""
14893       else
14894         # If we're using GNU nm, then we don't want the "-C" option.
14895         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14896         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14897           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14898         else
14899           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14900         fi
14901         aix_use_runtimelinking=no
14902
14903         # Test if we are trying to use run time linking or normal
14904         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14905         # need to do runtime linking.
14906         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14907           for ld_flag in $LDFLAGS; do
14908           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14909             aix_use_runtimelinking=yes
14910             break
14911           fi
14912           done
14913           ;;
14914         esac
14915
14916         exp_sym_flag='-bexport'
14917         no_entry_flag='-bnoentry'
14918       fi
14919
14920       # When large executables or shared objects are built, AIX ld can
14921       # have problems creating the table of contents.  If linking a library
14922       # or program results in "error TOC overflow" add -mminimal-toc to
14923       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14924       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14925
14926       archive_cmds_F77=''
14927       hardcode_direct_F77=yes
14928       hardcode_libdir_separator_F77=':'
14929       link_all_deplibs_F77=yes
14930
14931       if test "$GCC" = yes; then
14932         case $host_os in aix4.[012]|aix4.[012].*)
14933         # We only want to do this on AIX 4.2 and lower, the check
14934         # below for broken collect2 doesn't work under 4.3+
14935           collect2name=`${CC} -print-prog-name=collect2`
14936           if test -f "$collect2name" && \
14937            strings "$collect2name" | grep resolve_lib_name >/dev/null
14938           then
14939           # We have reworked collect2
14940           :
14941           else
14942           # We have old collect2
14943           hardcode_direct_F77=unsupported
14944           # It fails to find uninstalled libraries when the uninstalled
14945           # path is not listed in the libpath.  Setting hardcode_minus_L
14946           # to unsupported forces relinking
14947           hardcode_minus_L_F77=yes
14948           hardcode_libdir_flag_spec_F77='-L$libdir'
14949           hardcode_libdir_separator_F77=
14950           fi
14951           ;;
14952         esac
14953         shared_flag='-shared'
14954         if test "$aix_use_runtimelinking" = yes; then
14955           shared_flag="$shared_flag "'${wl}-G'
14956         fi
14957       else
14958         # not using gcc
14959         if test "$host_cpu" = ia64; then
14960         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14961         # chokes on -Wl,-G. The following line is correct:
14962           shared_flag='-G'
14963         else
14964           if test "$aix_use_runtimelinking" = yes; then
14965             shared_flag='${wl}-G'
14966           else
14967             shared_flag='${wl}-bM:SRE'
14968           fi
14969         fi
14970       fi
14971
14972       # It seems that -bexpall does not export symbols beginning with
14973       # underscore (_), so it is better to generate a list of symbols to export.
14974       always_export_symbols_F77=yes
14975       if test "$aix_use_runtimelinking" = yes; then
14976         # Warning - without using the other runtime loading flags (-brtl),
14977         # -berok will link without error, but may produce a broken library.
14978         allow_undefined_flag_F77='-berok'
14979        # Determine the default libpath from the value encoded in an empty executable.
14980        cat >conftest.$ac_ext <<_ACEOF
14981       program main
14982
14983       end
14984 _ACEOF
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (ac_try="$ac_link"
14987 case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_link") 2>conftest.er1
14993   ac_status=$?
14994   grep -v '^ *+' conftest.er1 >conftest.err
14995   rm -f conftest.er1
14996   cat conftest.err >&5
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } && {
14999          test -z "$ac_f77_werror_flag" ||
15000          test ! -s conftest.err
15001        } && test -s conftest$ac_exeext &&
15002        $as_test_x conftest$ac_exeext; then
15003
15004 lt_aix_libpath_sed='
15005     /Import File Strings/,/^$/ {
15006         /^0/ {
15007             s/^0  *\(.*\)$/\1/
15008             p
15009         }
15010     }'
15011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15012 # Check for a 64-bit object if we didn't find anything.
15013 if test -z "$aix_libpath"; then
15014   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15015 fi
15016 else
15017   echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15019
15020
15021 fi
15022
15023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15024       conftest$ac_exeext conftest.$ac_ext
15025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15026
15027        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15028         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15029        else
15030         if test "$host_cpu" = ia64; then
15031           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15032           allow_undefined_flag_F77="-z nodefs"
15033           archive_expsym_cmds_F77="\$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"
15034         else
15035          # Determine the default libpath from the value encoded in an empty executable.
15036          cat >conftest.$ac_ext <<_ACEOF
15037       program main
15038
15039       end
15040 _ACEOF
15041 rm -f conftest.$ac_objext conftest$ac_exeext
15042 if { (ac_try="$ac_link"
15043 case "(($ac_try" in
15044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045   *) ac_try_echo=$ac_try;;
15046 esac
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048   (eval "$ac_link") 2>conftest.er1
15049   ac_status=$?
15050   grep -v '^ *+' conftest.er1 >conftest.err
15051   rm -f conftest.er1
15052   cat conftest.err >&5
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); } && {
15055          test -z "$ac_f77_werror_flag" ||
15056          test ! -s conftest.err
15057        } && test -s conftest$ac_exeext &&
15058        $as_test_x conftest$ac_exeext; then
15059
15060 lt_aix_libpath_sed='
15061     /Import File Strings/,/^$/ {
15062         /^0/ {
15063             s/^0  *\(.*\)$/\1/
15064             p
15065         }
15066     }'
15067 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15068 # Check for a 64-bit object if we didn't find anything.
15069 if test -z "$aix_libpath"; then
15070   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15071 fi
15072 else
15073   echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076
15077 fi
15078
15079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15080       conftest$ac_exeext conftest.$ac_ext
15081 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15082
15083          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15084           # Warning - without using the other run time loading flags,
15085           # -berok will link without error, but may produce a broken library.
15086           no_undefined_flag_F77=' ${wl}-bernotok'
15087           allow_undefined_flag_F77=' ${wl}-berok'
15088           # Exported symbols can be pulled into shared objects from archives
15089           whole_archive_flag_spec_F77='$convenience'
15090           archive_cmds_need_lc_F77=yes
15091           # This is similar to how AIX traditionally builds its shared libraries.
15092           archive_expsym_cmds_F77="\$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'
15093         fi
15094       fi
15095       ;;
15096
15097     amigaos*)
15098       archive_cmds_F77='$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)'
15099       hardcode_libdir_flag_spec_F77='-L$libdir'
15100       hardcode_minus_L_F77=yes
15101       # see comment about different semantics on the GNU ld section
15102       ld_shlibs_F77=no
15103       ;;
15104
15105     bsdi[45]*)
15106       export_dynamic_flag_spec_F77=-rdynamic
15107       ;;
15108
15109     cygwin* | mingw* | pw32*)
15110       # When not using gcc, we currently assume that we are using
15111       # Microsoft Visual C++.
15112       # hardcode_libdir_flag_spec is actually meaningless, as there is
15113       # no search path for DLLs.
15114       hardcode_libdir_flag_spec_F77=' '
15115       allow_undefined_flag_F77=unsupported
15116       # Tell ltmain to make .lib files, not .a files.
15117       libext=lib
15118       # Tell ltmain to make .dll files, not .so files.
15119       shrext_cmds=".dll"
15120       # FIXME: Setting linknames here is a bad hack.
15121       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15122       # The linker will automatically build a .lib file if we build a DLL.
15123       old_archive_From_new_cmds_F77='true'
15124       # FIXME: Should let the user specify the lib program.
15125       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15126       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15127       enable_shared_with_static_runtimes_F77=yes
15128       ;;
15129
15130     darwin* | rhapsody*)
15131       case $host_os in
15132         rhapsody* | darwin1.[012])
15133          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15134          ;;
15135        *) # Darwin 1.3 on
15136          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15137            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15138          else
15139            case ${MACOSX_DEPLOYMENT_TARGET} in
15140              10.[012])
15141                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15142                ;;
15143              10.*)
15144                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15145                ;;
15146            esac
15147          fi
15148          ;;
15149       esac
15150       archive_cmds_need_lc_F77=no
15151       hardcode_direct_F77=no
15152       hardcode_automatic_F77=yes
15153       hardcode_shlibpath_var_F77=unsupported
15154       whole_archive_flag_spec_F77=''
15155       link_all_deplibs_F77=yes
15156     if test "$GCC" = yes ; then
15157         output_verbose_link_cmd='echo'
15158         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15159         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15160         archive_expsym_cmds_F77="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}"
15161         module_expsym_cmds_F77="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}"
15162     else
15163       case $cc_basename in
15164         xlc*)
15165          output_verbose_link_cmd='echo'
15166          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15167          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15168           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15169          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15170           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15171           ;;
15172        *)
15173          ld_shlibs_F77=no
15174           ;;
15175       esac
15176     fi
15177       ;;
15178
15179     dgux*)
15180       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15181       hardcode_libdir_flag_spec_F77='-L$libdir'
15182       hardcode_shlibpath_var_F77=no
15183       ;;
15184
15185     freebsd1*)
15186       ld_shlibs_F77=no
15187       ;;
15188
15189     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15190     # support.  Future versions do this automatically, but an explicit c++rt0.o
15191     # does not break anything, and helps significantly (at the cost of a little
15192     # extra space).
15193     freebsd2.2*)
15194       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15195       hardcode_libdir_flag_spec_F77='-R$libdir'
15196       hardcode_direct_F77=yes
15197       hardcode_shlibpath_var_F77=no
15198       ;;
15199
15200     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15201     freebsd2*)
15202       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15203       hardcode_direct_F77=yes
15204       hardcode_minus_L_F77=yes
15205       hardcode_shlibpath_var_F77=no
15206       ;;
15207
15208     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15209     freebsd* | dragonfly*)
15210       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15211       hardcode_libdir_flag_spec_F77='-R$libdir'
15212       hardcode_direct_F77=yes
15213       hardcode_shlibpath_var_F77=no
15214       ;;
15215
15216     hpux9*)
15217       if test "$GCC" = yes; then
15218         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15219       else
15220         archive_cmds_F77='$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'
15221       fi
15222       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15223       hardcode_libdir_separator_F77=:
15224       hardcode_direct_F77=yes
15225
15226       # hardcode_minus_L: Not really in the search PATH,
15227       # but as the default location of the library.
15228       hardcode_minus_L_F77=yes
15229       export_dynamic_flag_spec_F77='${wl}-E'
15230       ;;
15231
15232     hpux10*)
15233       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15234         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15235       else
15236         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15237       fi
15238       if test "$with_gnu_ld" = no; then
15239         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15240         hardcode_libdir_separator_F77=:
15241
15242         hardcode_direct_F77=yes
15243         export_dynamic_flag_spec_F77='${wl}-E'
15244
15245         # hardcode_minus_L: Not really in the search PATH,
15246         # but as the default location of the library.
15247         hardcode_minus_L_F77=yes
15248       fi
15249       ;;
15250
15251     hpux11*)
15252       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15253         case $host_cpu in
15254         hppa*64*)
15255           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15256           ;;
15257         ia64*)
15258           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15259           ;;
15260         *)
15261           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15262           ;;
15263         esac
15264       else
15265         case $host_cpu in
15266         hppa*64*)
15267           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15268           ;;
15269         ia64*)
15270           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15271           ;;
15272         *)
15273           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15274           ;;
15275         esac
15276       fi
15277       if test "$with_gnu_ld" = no; then
15278         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15279         hardcode_libdir_separator_F77=:
15280
15281         case $host_cpu in
15282         hppa*64*|ia64*)
15283           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15284           hardcode_direct_F77=no
15285           hardcode_shlibpath_var_F77=no
15286           ;;
15287         *)
15288           hardcode_direct_F77=yes
15289           export_dynamic_flag_spec_F77='${wl}-E'
15290
15291           # hardcode_minus_L: Not really in the search PATH,
15292           # but as the default location of the library.
15293           hardcode_minus_L_F77=yes
15294           ;;
15295         esac
15296       fi
15297       ;;
15298
15299     irix5* | irix6* | nonstopux*)
15300       if test "$GCC" = yes; then
15301         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15302       else
15303         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15304         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15305       fi
15306       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15307       hardcode_libdir_separator_F77=:
15308       link_all_deplibs_F77=yes
15309       ;;
15310
15311     netbsd* | netbsdelf*-gnu)
15312       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15313         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15314       else
15315         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15316       fi
15317       hardcode_libdir_flag_spec_F77='-R$libdir'
15318       hardcode_direct_F77=yes
15319       hardcode_shlibpath_var_F77=no
15320       ;;
15321
15322     newsos6)
15323       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15324       hardcode_direct_F77=yes
15325       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15326       hardcode_libdir_separator_F77=:
15327       hardcode_shlibpath_var_F77=no
15328       ;;
15329
15330     openbsd*)
15331       if test -f /usr/libexec/ld.so; then
15332         hardcode_direct_F77=yes
15333         hardcode_shlibpath_var_F77=no
15334         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15335           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15336           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15337           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15338           export_dynamic_flag_spec_F77='${wl}-E'
15339         else
15340           case $host_os in
15341            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15342              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15343              hardcode_libdir_flag_spec_F77='-R$libdir'
15344              ;;
15345            *)
15346              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15347              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15348              ;;
15349           esac
15350         fi
15351       else
15352         ld_shlibs_F77=no
15353       fi
15354       ;;
15355
15356     os2*)
15357       hardcode_libdir_flag_spec_F77='-L$libdir'
15358       hardcode_minus_L_F77=yes
15359       allow_undefined_flag_F77=unsupported
15360       archive_cmds_F77='$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'
15361       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15362       ;;
15363
15364     osf3*)
15365       if test "$GCC" = yes; then
15366         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15367         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15368       else
15369         allow_undefined_flag_F77=' -expect_unresolved \*'
15370         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15371       fi
15372       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15373       hardcode_libdir_separator_F77=:
15374       ;;
15375
15376     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15377       if test "$GCC" = yes; then
15378         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15379         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15380         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15381       else
15382         allow_undefined_flag_F77=' -expect_unresolved \*'
15383         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15384         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15385         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15386
15387         # Both c and cxx compiler support -rpath directly
15388         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15389       fi
15390       hardcode_libdir_separator_F77=:
15391       ;;
15392
15393     solaris*)
15394       no_undefined_flag_F77=' -z text'
15395       if test "$GCC" = yes; then
15396         wlarc='${wl}'
15397         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15398         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15399           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15400       else
15401         wlarc=''
15402         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15403         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15404         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15405       fi
15406       hardcode_libdir_flag_spec_F77='-R$libdir'
15407       hardcode_shlibpath_var_F77=no
15408       case $host_os in
15409       solaris2.[0-5] | solaris2.[0-5].*) ;;
15410       *)
15411         # The compiler driver will combine and reorder linker options,
15412         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15413         # but is careful enough not to reorder.
15414         # Supported since Solaris 2.6 (maybe 2.5.1?)
15415         if test "$GCC" = yes; then
15416           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15417         else
15418           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15419         fi
15420         ;;
15421       esac
15422       link_all_deplibs_F77=yes
15423       ;;
15424
15425     sunos4*)
15426       if test "x$host_vendor" = xsequent; then
15427         # Use $CC to link under sequent, because it throws in some extra .o
15428         # files that make .init and .fini sections work.
15429         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15430       else
15431         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15432       fi
15433       hardcode_libdir_flag_spec_F77='-L$libdir'
15434       hardcode_direct_F77=yes
15435       hardcode_minus_L_F77=yes
15436       hardcode_shlibpath_var_F77=no
15437       ;;
15438
15439     sysv4)
15440       case $host_vendor in
15441         sni)
15442           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15443           hardcode_direct_F77=yes # is this really true???
15444         ;;
15445         siemens)
15446           ## LD is ld it makes a PLAMLIB
15447           ## CC just makes a GrossModule.
15448           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15449           reload_cmds_F77='$CC -r -o $output$reload_objs'
15450           hardcode_direct_F77=no
15451         ;;
15452         motorola)
15453           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15454           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15455         ;;
15456       esac
15457       runpath_var='LD_RUN_PATH'
15458       hardcode_shlibpath_var_F77=no
15459       ;;
15460
15461     sysv4.3*)
15462       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15463       hardcode_shlibpath_var_F77=no
15464       export_dynamic_flag_spec_F77='-Bexport'
15465       ;;
15466
15467     sysv4*MP*)
15468       if test -d /usr/nec; then
15469         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15470         hardcode_shlibpath_var_F77=no
15471         runpath_var=LD_RUN_PATH
15472         hardcode_runpath_var=yes
15473         ld_shlibs_F77=yes
15474       fi
15475       ;;
15476
15477     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15478       no_undefined_flag_F77='${wl}-z,text'
15479       archive_cmds_need_lc_F77=no
15480       hardcode_shlibpath_var_F77=no
15481       runpath_var='LD_RUN_PATH'
15482
15483       if test "$GCC" = yes; then
15484         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15485         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15486       else
15487         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15488         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15489       fi
15490       ;;
15491
15492     sysv5* | sco3.2v5* | sco5v6*)
15493       # Note: We can NOT use -z defs as we might desire, because we do not
15494       # link with -lc, and that would cause any symbols used from libc to
15495       # always be unresolved, which means just about no library would
15496       # ever link correctly.  If we're not using GNU ld we use -z text
15497       # though, which does catch some bad symbols but isn't as heavy-handed
15498       # as -z defs.
15499       no_undefined_flag_F77='${wl}-z,text'
15500       allow_undefined_flag_F77='${wl}-z,nodefs'
15501       archive_cmds_need_lc_F77=no
15502       hardcode_shlibpath_var_F77=no
15503       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15504       hardcode_libdir_separator_F77=':'
15505       link_all_deplibs_F77=yes
15506       export_dynamic_flag_spec_F77='${wl}-Bexport'
15507       runpath_var='LD_RUN_PATH'
15508
15509       if test "$GCC" = yes; then
15510         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15511         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15512       else
15513         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15514         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15515       fi
15516       ;;
15517
15518     uts4*)
15519       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15520       hardcode_libdir_flag_spec_F77='-L$libdir'
15521       hardcode_shlibpath_var_F77=no
15522       ;;
15523
15524     *)
15525       ld_shlibs_F77=no
15526       ;;
15527     esac
15528   fi
15529
15530 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15531 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15532 test "$ld_shlibs_F77" = no && can_build_shared=no
15533
15534 #
15535 # Do we need to explicitly link libc?
15536 #
15537 case "x$archive_cmds_need_lc_F77" in
15538 x|xyes)
15539   # Assume -lc should be added
15540   archive_cmds_need_lc_F77=yes
15541
15542   if test "$enable_shared" = yes && test "$GCC" = yes; then
15543     case $archive_cmds_F77 in
15544     *'~'*)
15545       # FIXME: we may have to deal with multi-command sequences.
15546       ;;
15547     '$CC '*)
15548       # Test whether the compiler implicitly links with -lc since on some
15549       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15550       # to ld, don't add -lc before -lgcc.
15551       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15552 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15553       $rm conftest*
15554       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15555
15556       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15557   (eval $ac_compile) 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); } 2>conftest.err; then
15561         soname=conftest
15562         lib=conftest
15563         libobjs=conftest.$ac_objext
15564         deplibs=
15565         wl=$lt_prog_compiler_wl_F77
15566         pic_flag=$lt_prog_compiler_pic_F77
15567         compiler_flags=-v
15568         linker_flags=-v
15569         verstring=
15570         output_objdir=.
15571         libname=conftest
15572         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15573         allow_undefined_flag_F77=
15574         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15575   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15576   ac_status=$?
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); }
15579         then
15580           archive_cmds_need_lc_F77=no
15581         else
15582           archive_cmds_need_lc_F77=yes
15583         fi
15584         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15585       else
15586         cat conftest.err 1>&5
15587       fi
15588       $rm conftest*
15589       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15590 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15591       ;;
15592     esac
15593   fi
15594   ;;
15595 esac
15596
15597 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15598 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15599 library_names_spec=
15600 libname_spec='lib$name'
15601 soname_spec=
15602 shrext_cmds=".so"
15603 postinstall_cmds=
15604 postuninstall_cmds=
15605 finish_cmds=
15606 finish_eval=
15607 shlibpath_var=
15608 shlibpath_overrides_runpath=unknown
15609 version_type=none
15610 dynamic_linker="$host_os ld.so"
15611 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15612
15613 need_lib_prefix=unknown
15614 hardcode_into_libs=no
15615
15616 # when you set need_version to no, make sure it does not cause -set_version
15617 # flags to be left without arguments
15618 need_version=unknown
15619
15620 case $host_os in
15621 aix3*)
15622   version_type=linux
15623   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15624   shlibpath_var=LIBPATH
15625
15626   # AIX 3 has no versioning support, so we append a major version to the name.
15627   soname_spec='${libname}${release}${shared_ext}$major'
15628   ;;
15629
15630 aix[4-9]*)
15631   version_type=linux
15632   need_lib_prefix=no
15633   need_version=no
15634   hardcode_into_libs=yes
15635   if test "$host_cpu" = ia64; then
15636     # AIX 5 supports IA64
15637     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15638     shlibpath_var=LD_LIBRARY_PATH
15639   else
15640     # With GCC up to 2.95.x, collect2 would create an import file
15641     # for dependence libraries.  The import file would start with
15642     # the line `#! .'.  This would cause the generated library to
15643     # depend on `.', always an invalid library.  This was fixed in
15644     # development snapshots of GCC prior to 3.0.
15645     case $host_os in
15646       aix4 | aix4.[01] | aix4.[01].*)
15647       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15648            echo ' yes '
15649            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15650         :
15651       else
15652         can_build_shared=no
15653       fi
15654       ;;
15655     esac
15656     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15657     # soname into executable. Probably we can add versioning support to
15658     # collect2, so additional links can be useful in future.
15659     if test "$aix_use_runtimelinking" = yes; then
15660       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15661       # instead of lib<name>.a to let people know that these are not
15662       # typical AIX shared libraries.
15663       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664     else
15665       # We preserve .a as extension for shared libraries through AIX4.2
15666       # and later when we are not doing run time linking.
15667       library_names_spec='${libname}${release}.a $libname.a'
15668       soname_spec='${libname}${release}${shared_ext}$major'
15669     fi
15670     shlibpath_var=LIBPATH
15671   fi
15672   ;;
15673
15674 amigaos*)
15675   library_names_spec='$libname.ixlibrary $libname.a'
15676   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15677   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15678   ;;
15679
15680 beos*)
15681   library_names_spec='${libname}${shared_ext}'
15682   dynamic_linker="$host_os ld.so"
15683   shlibpath_var=LIBRARY_PATH
15684   ;;
15685
15686 bsdi[45]*)
15687   version_type=linux
15688   need_version=no
15689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690   soname_spec='${libname}${release}${shared_ext}$major'
15691   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15692   shlibpath_var=LD_LIBRARY_PATH
15693   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15694   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15695   # the default ld.so.conf also contains /usr/contrib/lib and
15696   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15697   # libtool to hard-code these into programs
15698   ;;
15699
15700 cygwin* | mingw* | pw32*)
15701   version_type=windows
15702   shrext_cmds=".dll"
15703   need_version=no
15704   need_lib_prefix=no
15705
15706   case $GCC,$host_os in
15707   yes,cygwin* | yes,mingw* | yes,pw32*)
15708     library_names_spec='$libname.dll.a'
15709     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15710     postinstall_cmds='base_file=`basename \${file}`~
15711       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15712       dldir=$destdir/`dirname \$dlpath`~
15713       test -d \$dldir || mkdir -p \$dldir~
15714       $install_prog $dir/$dlname \$dldir/$dlname~
15715       chmod a+x \$dldir/$dlname'
15716     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15717       dlpath=$dir/\$dldll~
15718        $rm \$dlpath'
15719     shlibpath_overrides_runpath=yes
15720
15721     case $host_os in
15722     cygwin*)
15723       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15724       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15725       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15726       ;;
15727     mingw*)
15728       # MinGW DLLs use traditional 'lib' prefix
15729       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15730       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15731       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15732         # It is most probably a Windows format PATH printed by
15733         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15734         # path with ; separators, and with drive letters. We can handle the
15735         # drive letters (cygwin fileutils understands them), so leave them,
15736         # especially as we might pass files found there to a mingw objdump,
15737         # which wouldn't understand a cygwinified path. Ahh.
15738         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15739       else
15740         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15741       fi
15742       ;;
15743     pw32*)
15744       # pw32 DLLs use 'pw' prefix rather than 'lib'
15745       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15746       ;;
15747     esac
15748     ;;
15749
15750   *)
15751     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15752     ;;
15753   esac
15754   dynamic_linker='Win32 ld.exe'
15755   # FIXME: first we should search . and the directory the executable is in
15756   shlibpath_var=PATH
15757   ;;
15758
15759 darwin* | rhapsody*)
15760   dynamic_linker="$host_os dyld"
15761   version_type=darwin
15762   need_lib_prefix=no
15763   need_version=no
15764   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15765   soname_spec='${libname}${release}${major}$shared_ext'
15766   shlibpath_overrides_runpath=yes
15767   shlibpath_var=DYLD_LIBRARY_PATH
15768   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15769
15770   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15771   ;;
15772
15773 dgux*)
15774   version_type=linux
15775   need_lib_prefix=no
15776   need_version=no
15777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15778   soname_spec='${libname}${release}${shared_ext}$major'
15779   shlibpath_var=LD_LIBRARY_PATH
15780   ;;
15781
15782 freebsd1*)
15783   dynamic_linker=no
15784   ;;
15785
15786 freebsd* | dragonfly*)
15787   # DragonFly does not have aout.  When/if they implement a new
15788   # versioning mechanism, adjust this.
15789   if test -x /usr/bin/objformat; then
15790     objformat=`/usr/bin/objformat`
15791   else
15792     case $host_os in
15793     freebsd[123]*) objformat=aout ;;
15794     *) objformat=elf ;;
15795     esac
15796   fi
15797   version_type=freebsd-$objformat
15798   case $version_type in
15799     freebsd-elf*)
15800       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15801       need_version=no
15802       need_lib_prefix=no
15803       ;;
15804     freebsd-*)
15805       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15806       need_version=yes
15807       ;;
15808   esac
15809   shlibpath_var=LD_LIBRARY_PATH
15810   case $host_os in
15811   freebsd2*)
15812     shlibpath_overrides_runpath=yes
15813     ;;
15814   freebsd3.[01]* | freebsdelf3.[01]*)
15815     shlibpath_overrides_runpath=yes
15816     hardcode_into_libs=yes
15817     ;;
15818   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15819   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15820     shlibpath_overrides_runpath=no
15821     hardcode_into_libs=yes
15822     ;;
15823   *) # from 4.6 on, and DragonFly
15824     shlibpath_overrides_runpath=yes
15825     hardcode_into_libs=yes
15826     ;;
15827   esac
15828   ;;
15829
15830 gnu*)
15831   version_type=linux
15832   need_lib_prefix=no
15833   need_version=no
15834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15835   soname_spec='${libname}${release}${shared_ext}$major'
15836   shlibpath_var=LD_LIBRARY_PATH
15837   hardcode_into_libs=yes
15838   ;;
15839
15840 hpux9* | hpux10* | hpux11*)
15841   # Give a soname corresponding to the major version so that dld.sl refuses to
15842   # link against other versions.
15843   version_type=sunos
15844   need_lib_prefix=no
15845   need_version=no
15846   case $host_cpu in
15847   ia64*)
15848     shrext_cmds='.so'
15849     hardcode_into_libs=yes
15850     dynamic_linker="$host_os dld.so"
15851     shlibpath_var=LD_LIBRARY_PATH
15852     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854     soname_spec='${libname}${release}${shared_ext}$major'
15855     if test "X$HPUX_IA64_MODE" = X32; then
15856       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15857     else
15858       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15859     fi
15860     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15861     ;;
15862    hppa*64*)
15863      shrext_cmds='.sl'
15864      hardcode_into_libs=yes
15865      dynamic_linker="$host_os dld.sl"
15866      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15867      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15868      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15869      soname_spec='${libname}${release}${shared_ext}$major'
15870      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15871      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15872      ;;
15873    *)
15874     shrext_cmds='.sl'
15875     dynamic_linker="$host_os dld.sl"
15876     shlibpath_var=SHLIB_PATH
15877     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15878     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879     soname_spec='${libname}${release}${shared_ext}$major'
15880     ;;
15881   esac
15882   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15883   postinstall_cmds='chmod 555 $lib'
15884   ;;
15885
15886 interix[3-9]*)
15887   version_type=linux
15888   need_lib_prefix=no
15889   need_version=no
15890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15891   soname_spec='${libname}${release}${shared_ext}$major'
15892   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15893   shlibpath_var=LD_LIBRARY_PATH
15894   shlibpath_overrides_runpath=no
15895   hardcode_into_libs=yes
15896   ;;
15897
15898 irix5* | irix6* | nonstopux*)
15899   case $host_os in
15900     nonstopux*) version_type=nonstopux ;;
15901     *)
15902         if test "$lt_cv_prog_gnu_ld" = yes; then
15903                 version_type=linux
15904         else
15905                 version_type=irix
15906         fi ;;
15907   esac
15908   need_lib_prefix=no
15909   need_version=no
15910   soname_spec='${libname}${release}${shared_ext}$major'
15911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15912   case $host_os in
15913   irix5* | nonstopux*)
15914     libsuff= shlibsuff=
15915     ;;
15916   *)
15917     case $LD in # libtool.m4 will add one of these switches to LD
15918     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15919       libsuff= shlibsuff= libmagic=32-bit;;
15920     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15921       libsuff=32 shlibsuff=N32 libmagic=N32;;
15922     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15923       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15924     *) libsuff= shlibsuff= libmagic=never-match;;
15925     esac
15926     ;;
15927   esac
15928   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15929   shlibpath_overrides_runpath=no
15930   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15931   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15932   hardcode_into_libs=yes
15933   ;;
15934
15935 # No shared lib support for Linux oldld, aout, or coff.
15936 linux*oldld* | linux*aout* | linux*coff*)
15937   dynamic_linker=no
15938   ;;
15939
15940 # This must be Linux ELF.
15941 linux* | k*bsd*-gnu)
15942   version_type=linux
15943   need_lib_prefix=no
15944   need_version=no
15945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946   soname_spec='${libname}${release}${shared_ext}$major'
15947   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15948   shlibpath_var=LD_LIBRARY_PATH
15949   shlibpath_overrides_runpath=no
15950   # This implies no fast_install, which is unacceptable.
15951   # Some rework will be needed to allow for fast_install
15952   # before this can be enabled.
15953   hardcode_into_libs=yes
15954
15955   # Append ld.so.conf contents to the search path
15956   if test -f /etc/ld.so.conf; then
15957     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;/^$/d' | tr '\n' ' '`
15958     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15959   fi
15960
15961   # We used to test for /lib/ld.so.1 and disable shared libraries on
15962   # powerpc, because MkLinux only supported shared libraries with the
15963   # GNU dynamic linker.  Since this was broken with cross compilers,
15964   # most powerpc-linux boxes support dynamic linking these days and
15965   # people can always --disable-shared, the test was removed, and we
15966   # assume the GNU/Linux dynamic linker is in use.
15967   dynamic_linker='GNU/Linux ld.so'
15968   ;;
15969
15970 netbsdelf*-gnu)
15971   version_type=linux
15972   need_lib_prefix=no
15973   need_version=no
15974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15975   soname_spec='${libname}${release}${shared_ext}$major'
15976   shlibpath_var=LD_LIBRARY_PATH
15977   shlibpath_overrides_runpath=no
15978   hardcode_into_libs=yes
15979   dynamic_linker='NetBSD ld.elf_so'
15980   ;;
15981
15982 netbsd*)
15983   version_type=sunos
15984   need_lib_prefix=no
15985   need_version=no
15986   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15988     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15989     dynamic_linker='NetBSD (a.out) ld.so'
15990   else
15991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15992     soname_spec='${libname}${release}${shared_ext}$major'
15993     dynamic_linker='NetBSD ld.elf_so'
15994   fi
15995   shlibpath_var=LD_LIBRARY_PATH
15996   shlibpath_overrides_runpath=yes
15997   hardcode_into_libs=yes
15998   ;;
15999
16000 newsos6)
16001   version_type=linux
16002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003   shlibpath_var=LD_LIBRARY_PATH
16004   shlibpath_overrides_runpath=yes
16005   ;;
16006
16007 nto-qnx*)
16008   version_type=linux
16009   need_lib_prefix=no
16010   need_version=no
16011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012   soname_spec='${libname}${release}${shared_ext}$major'
16013   shlibpath_var=LD_LIBRARY_PATH
16014   shlibpath_overrides_runpath=yes
16015   ;;
16016
16017 openbsd*)
16018   version_type=sunos
16019   sys_lib_dlsearch_path_spec="/usr/lib"
16020   need_lib_prefix=no
16021   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16022   case $host_os in
16023     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16024     *)                         need_version=no  ;;
16025   esac
16026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16027   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16028   shlibpath_var=LD_LIBRARY_PATH
16029   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16030     case $host_os in
16031       openbsd2.[89] | openbsd2.[89].*)
16032         shlibpath_overrides_runpath=no
16033         ;;
16034       *)
16035         shlibpath_overrides_runpath=yes
16036         ;;
16037       esac
16038   else
16039     shlibpath_overrides_runpath=yes
16040   fi
16041   ;;
16042
16043 os2*)
16044   libname_spec='$name'
16045   shrext_cmds=".dll"
16046   need_lib_prefix=no
16047   library_names_spec='$libname${shared_ext} $libname.a'
16048   dynamic_linker='OS/2 ld.exe'
16049   shlibpath_var=LIBPATH
16050   ;;
16051
16052 osf3* | osf4* | osf5*)
16053   version_type=osf
16054   need_lib_prefix=no
16055   need_version=no
16056   soname_spec='${libname}${release}${shared_ext}$major'
16057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16058   shlibpath_var=LD_LIBRARY_PATH
16059   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16060   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16061   ;;
16062
16063 rdos*)
16064   dynamic_linker=no
16065   ;;
16066
16067 solaris*)
16068   version_type=linux
16069   need_lib_prefix=no
16070   need_version=no
16071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072   soname_spec='${libname}${release}${shared_ext}$major'
16073   shlibpath_var=LD_LIBRARY_PATH
16074   shlibpath_overrides_runpath=yes
16075   hardcode_into_libs=yes
16076   # ldd complains unless libraries are executable
16077   postinstall_cmds='chmod +x $lib'
16078   ;;
16079
16080 sunos4*)
16081   version_type=sunos
16082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16083   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16084   shlibpath_var=LD_LIBRARY_PATH
16085   shlibpath_overrides_runpath=yes
16086   if test "$with_gnu_ld" = yes; then
16087     need_lib_prefix=no
16088   fi
16089   need_version=yes
16090   ;;
16091
16092 sysv4 | sysv4.3*)
16093   version_type=linux
16094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095   soname_spec='${libname}${release}${shared_ext}$major'
16096   shlibpath_var=LD_LIBRARY_PATH
16097   case $host_vendor in
16098     sni)
16099       shlibpath_overrides_runpath=no
16100       need_lib_prefix=no
16101       export_dynamic_flag_spec='${wl}-Blargedynsym'
16102       runpath_var=LD_RUN_PATH
16103       ;;
16104     siemens)
16105       need_lib_prefix=no
16106       ;;
16107     motorola)
16108       need_lib_prefix=no
16109       need_version=no
16110       shlibpath_overrides_runpath=no
16111       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16112       ;;
16113   esac
16114   ;;
16115
16116 sysv4*MP*)
16117   if test -d /usr/nec ;then
16118     version_type=linux
16119     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16120     soname_spec='$libname${shared_ext}.$major'
16121     shlibpath_var=LD_LIBRARY_PATH
16122   fi
16123   ;;
16124
16125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16126   version_type=freebsd-elf
16127   need_lib_prefix=no
16128   need_version=no
16129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16130   soname_spec='${libname}${release}${shared_ext}$major'
16131   shlibpath_var=LD_LIBRARY_PATH
16132   hardcode_into_libs=yes
16133   if test "$with_gnu_ld" = yes; then
16134     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16135     shlibpath_overrides_runpath=no
16136   else
16137     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16138     shlibpath_overrides_runpath=yes
16139     case $host_os in
16140       sco3.2v5*)
16141         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16142         ;;
16143     esac
16144   fi
16145   sys_lib_dlsearch_path_spec='/usr/lib'
16146   ;;
16147
16148 uts4*)
16149   version_type=linux
16150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16151   soname_spec='${libname}${release}${shared_ext}$major'
16152   shlibpath_var=LD_LIBRARY_PATH
16153   ;;
16154
16155 *)
16156   dynamic_linker=no
16157   ;;
16158 esac
16159 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16160 echo "${ECHO_T}$dynamic_linker" >&6; }
16161 test "$dynamic_linker" = no && can_build_shared=no
16162
16163 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16167 fi
16168
16169 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16170 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16171   echo $ECHO_N "(cached) $ECHO_C" >&6
16172 else
16173   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16174 fi
16175
16176 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16177
16178 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16179 if test "$GCC" = yes; then
16180   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16181 fi
16182
16183 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16184 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16185 hardcode_action_F77=
16186 if test -n "$hardcode_libdir_flag_spec_F77" || \
16187    test -n "$runpath_var_F77" || \
16188    test "X$hardcode_automatic_F77" = "Xyes" ; then
16189
16190   # We can hardcode non-existant directories.
16191   if test "$hardcode_direct_F77" != no &&
16192      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16193      # have to relink, otherwise we might link with an installed library
16194      # when we should be linking with a yet-to-be-installed one
16195      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16196      test "$hardcode_minus_L_F77" != no; then
16197     # Linking always hardcodes the temporary library directory.
16198     hardcode_action_F77=relink
16199   else
16200     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16201     hardcode_action_F77=immediate
16202   fi
16203 else
16204   # We cannot hardcode anything, or else we can only hardcode existing
16205   # directories.
16206   hardcode_action_F77=unsupported
16207 fi
16208 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16209 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16210
16211 if test "$hardcode_action_F77" = relink; then
16212   # Fast installation is not supported
16213   enable_fast_install=no
16214 elif test "$shlibpath_overrides_runpath" = yes ||
16215      test "$enable_shared" = no; then
16216   # Fast installation is not necessary
16217   enable_fast_install=needless
16218 fi
16219
16220
16221 # The else clause should only fire when bootstrapping the
16222 # libtool distribution, otherwise you forgot to ship ltmain.sh
16223 # with your package, and you will get complaints that there are
16224 # no rules to generate ltmain.sh.
16225 if test -f "$ltmain"; then
16226   # See if we are running on zsh, and set the options which allow our commands through
16227   # without removal of \ escapes.
16228   if test -n "${ZSH_VERSION+set}" ; then
16229     setopt NO_GLOB_SUBST
16230   fi
16231   # Now quote all the things that may contain metacharacters while being
16232   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16233   # variables and quote the copies for generation of the libtool script.
16234   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16235     SED SHELL STRIP \
16236     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16237     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16238     deplibs_check_method reload_flag reload_cmds need_locks \
16239     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16240     lt_cv_sys_global_symbol_to_c_name_address \
16241     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16242     old_postinstall_cmds old_postuninstall_cmds \
16243     compiler_F77 \
16244     CC_F77 \
16245     LD_F77 \
16246     lt_prog_compiler_wl_F77 \
16247     lt_prog_compiler_pic_F77 \
16248     lt_prog_compiler_static_F77 \
16249     lt_prog_compiler_no_builtin_flag_F77 \
16250     export_dynamic_flag_spec_F77 \
16251     thread_safe_flag_spec_F77 \
16252     whole_archive_flag_spec_F77 \
16253     enable_shared_with_static_runtimes_F77 \
16254     old_archive_cmds_F77 \
16255     old_archive_from_new_cmds_F77 \
16256     predep_objects_F77 \
16257     postdep_objects_F77 \
16258     predeps_F77 \
16259     postdeps_F77 \
16260     compiler_lib_search_path_F77 \
16261     compiler_lib_search_dirs_F77 \
16262     archive_cmds_F77 \
16263     archive_expsym_cmds_F77 \
16264     postinstall_cmds_F77 \
16265     postuninstall_cmds_F77 \
16266     old_archive_from_expsyms_cmds_F77 \
16267     allow_undefined_flag_F77 \
16268     no_undefined_flag_F77 \
16269     export_symbols_cmds_F77 \
16270     hardcode_libdir_flag_spec_F77 \
16271     hardcode_libdir_flag_spec_ld_F77 \
16272     hardcode_libdir_separator_F77 \
16273     hardcode_automatic_F77 \
16274     module_cmds_F77 \
16275     module_expsym_cmds_F77 \
16276     lt_cv_prog_compiler_c_o_F77 \
16277     fix_srcfile_path_F77 \
16278     exclude_expsyms_F77 \
16279     include_expsyms_F77; do
16280
16281     case $var in
16282     old_archive_cmds_F77 | \
16283     old_archive_from_new_cmds_F77 | \
16284     archive_cmds_F77 | \
16285     archive_expsym_cmds_F77 | \
16286     module_cmds_F77 | \
16287     module_expsym_cmds_F77 | \
16288     old_archive_from_expsyms_cmds_F77 | \
16289     export_symbols_cmds_F77 | \
16290     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16291     postinstall_cmds | postuninstall_cmds | \
16292     old_postinstall_cmds | old_postuninstall_cmds | \
16293     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16294       # Double-quote double-evaled strings.
16295       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16296       ;;
16297     *)
16298       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16299       ;;
16300     esac
16301   done
16302
16303   case $lt_echo in
16304   *'\$0 --fallback-echo"')
16305     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16306     ;;
16307   esac
16308
16309 cfgfile="$ofile"
16310
16311   cat <<__EOF__ >> "$cfgfile"
16312 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16313
16314 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16315
16316 # Shell to use when invoking shell scripts.
16317 SHELL=$lt_SHELL
16318
16319 # Whether or not to build shared libraries.
16320 build_libtool_libs=$enable_shared
16321
16322 # Whether or not to build static libraries.
16323 build_old_libs=$enable_static
16324
16325 # Whether or not to add -lc for building shared libraries.
16326 build_libtool_need_lc=$archive_cmds_need_lc_F77
16327
16328 # Whether or not to disallow shared libs when runtime libs are static
16329 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16330
16331 # Whether or not to optimize for fast installation.
16332 fast_install=$enable_fast_install
16333
16334 # The host system.
16335 host_alias=$host_alias
16336 host=$host
16337 host_os=$host_os
16338
16339 # The build system.
16340 build_alias=$build_alias
16341 build=$build
16342 build_os=$build_os
16343
16344 # An echo program that does not interpret backslashes.
16345 echo=$lt_echo
16346
16347 # The archiver.
16348 AR=$lt_AR
16349 AR_FLAGS=$lt_AR_FLAGS
16350
16351 # A C compiler.
16352 LTCC=$lt_LTCC
16353
16354 # LTCC compiler flags.
16355 LTCFLAGS=$lt_LTCFLAGS
16356
16357 # A language-specific compiler.
16358 CC=$lt_compiler_F77
16359
16360 # Is the compiler the GNU C compiler?
16361 with_gcc=$GCC_F77
16362
16363 # An ERE matcher.
16364 EGREP=$lt_EGREP
16365
16366 # The linker used to build libraries.
16367 LD=$lt_LD_F77
16368
16369 # Whether we need hard or soft links.
16370 LN_S=$lt_LN_S
16371
16372 # A BSD-compatible nm program.
16373 NM=$lt_NM
16374
16375 # A symbol stripping program
16376 STRIP=$lt_STRIP
16377
16378 # Used to examine libraries when file_magic_cmd begins "file"
16379 MAGIC_CMD=$MAGIC_CMD
16380
16381 # Used on cygwin: DLL creation program.
16382 DLLTOOL="$DLLTOOL"
16383
16384 # Used on cygwin: object dumper.
16385 OBJDUMP="$OBJDUMP"
16386
16387 # Used on cygwin: assembler.
16388 AS="$AS"
16389
16390 # The name of the directory that contains temporary libtool files.
16391 objdir=$objdir
16392
16393 # How to create reloadable object files.
16394 reload_flag=$lt_reload_flag
16395 reload_cmds=$lt_reload_cmds
16396
16397 # How to pass a linker flag through the compiler.
16398 wl=$lt_lt_prog_compiler_wl_F77
16399
16400 # Object file suffix (normally "o").
16401 objext="$ac_objext"
16402
16403 # Old archive suffix (normally "a").
16404 libext="$libext"
16405
16406 # Shared library suffix (normally ".so").
16407 shrext_cmds='$shrext_cmds'
16408
16409 # Executable file suffix (normally "").
16410 exeext="$exeext"
16411
16412 # Additional compiler flags for building library objects.
16413 pic_flag=$lt_lt_prog_compiler_pic_F77
16414 pic_mode=$pic_mode
16415
16416 # What is the maximum length of a command?
16417 max_cmd_len=$lt_cv_sys_max_cmd_len
16418
16419 # Does compiler simultaneously support -c and -o options?
16420 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16421
16422 # Must we lock files when doing compilation?
16423 need_locks=$lt_need_locks
16424
16425 # Do we need the lib prefix for modules?
16426 need_lib_prefix=$need_lib_prefix
16427
16428 # Do we need a version for libraries?
16429 need_version=$need_version
16430
16431 # Whether dlopen is supported.
16432 dlopen_support=$enable_dlopen
16433
16434 # Whether dlopen of programs is supported.
16435 dlopen_self=$enable_dlopen_self
16436
16437 # Whether dlopen of statically linked programs is supported.
16438 dlopen_self_static=$enable_dlopen_self_static
16439
16440 # Compiler flag to prevent dynamic linking.
16441 link_static_flag=$lt_lt_prog_compiler_static_F77
16442
16443 # Compiler flag to turn off builtin functions.
16444 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16445
16446 # Compiler flag to allow reflexive dlopens.
16447 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16448
16449 # Compiler flag to generate shared objects directly from archives.
16450 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16451
16452 # Compiler flag to generate thread-safe objects.
16453 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16454
16455 # Library versioning type.
16456 version_type=$version_type
16457
16458 # Format of library name prefix.
16459 libname_spec=$lt_libname_spec
16460
16461 # List of archive names.  First name is the real one, the rest are links.
16462 # The last name is the one that the linker finds with -lNAME.
16463 library_names_spec=$lt_library_names_spec
16464
16465 # The coded name of the library, if different from the real name.
16466 soname_spec=$lt_soname_spec
16467
16468 # Commands used to build and install an old-style archive.
16469 RANLIB=$lt_RANLIB
16470 old_archive_cmds=$lt_old_archive_cmds_F77
16471 old_postinstall_cmds=$lt_old_postinstall_cmds
16472 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16473
16474 # Create an old-style archive from a shared archive.
16475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16476
16477 # Create a temporary old-style archive to link instead of a shared archive.
16478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16479
16480 # Commands used to build and install a shared archive.
16481 archive_cmds=$lt_archive_cmds_F77
16482 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16483 postinstall_cmds=$lt_postinstall_cmds
16484 postuninstall_cmds=$lt_postuninstall_cmds
16485
16486 # Commands used to build a loadable module (assumed same as above if empty)
16487 module_cmds=$lt_module_cmds_F77
16488 module_expsym_cmds=$lt_module_expsym_cmds_F77
16489
16490 # Commands to strip libraries.
16491 old_striplib=$lt_old_striplib
16492 striplib=$lt_striplib
16493
16494 # Dependencies to place before the objects being linked to create a
16495 # shared library.
16496 predep_objects=$lt_predep_objects_F77
16497
16498 # Dependencies to place after the objects being linked to create a
16499 # shared library.
16500 postdep_objects=$lt_postdep_objects_F77
16501
16502 # Dependencies to place before the objects being linked to create a
16503 # shared library.
16504 predeps=$lt_predeps_F77
16505
16506 # Dependencies to place after the objects being linked to create a
16507 # shared library.
16508 postdeps=$lt_postdeps_F77
16509
16510 # The directories searched by this compiler when creating a shared
16511 # library
16512 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16513
16514 # The library search path used internally by the compiler when linking
16515 # a shared library.
16516 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16517
16518 # Method to check whether dependent libraries are shared objects.
16519 deplibs_check_method=$lt_deplibs_check_method
16520
16521 # Command to use when deplibs_check_method == file_magic.
16522 file_magic_cmd=$lt_file_magic_cmd
16523
16524 # Flag that allows shared libraries with undefined symbols to be built.
16525 allow_undefined_flag=$lt_allow_undefined_flag_F77
16526
16527 # Flag that forces no undefined symbols.
16528 no_undefined_flag=$lt_no_undefined_flag_F77
16529
16530 # Commands used to finish a libtool library installation in a directory.
16531 finish_cmds=$lt_finish_cmds
16532
16533 # Same as above, but a single script fragment to be evaled but not shown.
16534 finish_eval=$lt_finish_eval
16535
16536 # Take the output of nm and produce a listing of raw symbols and C names.
16537 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16538
16539 # Transform the output of nm in a proper C declaration
16540 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16541
16542 # Transform the output of nm in a C name address pair
16543 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16544
16545 # This is the shared library runtime path variable.
16546 runpath_var=$runpath_var
16547
16548 # This is the shared library path variable.
16549 shlibpath_var=$shlibpath_var
16550
16551 # Is shlibpath searched before the hard-coded library search path?
16552 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16553
16554 # How to hardcode a shared library path into an executable.
16555 hardcode_action=$hardcode_action_F77
16556
16557 # Whether we should hardcode library paths into libraries.
16558 hardcode_into_libs=$hardcode_into_libs
16559
16560 # Flag to hardcode \$libdir into a binary during linking.
16561 # This must work even if \$libdir does not exist.
16562 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16563
16564 # If ld is used when linking, flag to hardcode \$libdir into
16565 # a binary during linking. This must work even if \$libdir does
16566 # not exist.
16567 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16568
16569 # Whether we need a single -rpath flag with a separated argument.
16570 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16571
16572 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16573 # resulting binary.
16574 hardcode_direct=$hardcode_direct_F77
16575
16576 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16577 # resulting binary.
16578 hardcode_minus_L=$hardcode_minus_L_F77
16579
16580 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16581 # the resulting binary.
16582 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16583
16584 # Set to yes if building a shared library automatically hardcodes DIR into the library
16585 # and all subsequent libraries and executables linked against it.
16586 hardcode_automatic=$hardcode_automatic_F77
16587
16588 # Variables whose values should be saved in libtool wrapper scripts and
16589 # restored at relink time.
16590 variables_saved_for_relink="$variables_saved_for_relink"
16591
16592 # Whether libtool must link a program against all its dependency libraries.
16593 link_all_deplibs=$link_all_deplibs_F77
16594
16595 # Compile-time system search path for libraries
16596 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16597
16598 # Run-time system search path for libraries
16599 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16600
16601 # Fix the shell variable \$srcfile for the compiler.
16602 fix_srcfile_path=$lt_fix_srcfile_path
16603
16604 # Set to yes if exported symbols are required.
16605 always_export_symbols=$always_export_symbols_F77
16606
16607 # The commands to list exported symbols.
16608 export_symbols_cmds=$lt_export_symbols_cmds_F77
16609
16610 # The commands to extract the exported symbol list from a shared archive.
16611 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16612
16613 # Symbols that should not be listed in the preloaded symbols.
16614 exclude_expsyms=$lt_exclude_expsyms_F77
16615
16616 # Symbols that must always be exported.
16617 include_expsyms=$lt_include_expsyms_F77
16618
16619 # ### END LIBTOOL TAG CONFIG: $tagname
16620
16621 __EOF__
16622
16623
16624 else
16625   # If there is no Makefile yet, we rely on a make rule to execute
16626   # `config.status --recheck' to rerun these tests and create the
16627   # libtool script then.
16628   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16629   if test -f "$ltmain_in"; then
16630     test -f Makefile && make "$ltmain"
16631   fi
16632 fi
16633
16634
16635 ac_ext=cpp
16636 ac_cpp='$CXXCPP $CPPFLAGS'
16637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16640
16641 CC="$lt_save_CC"
16642
16643         else
16644           tagname=""
16645         fi
16646         ;;
16647
16648       GCJ)
16649         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16650
16651
16652 # Source file extension for Java test sources.
16653 ac_ext=java
16654
16655 # Object file extension for compiled Java test sources.
16656 objext=o
16657 objext_GCJ=$objext
16658
16659 # Code to be used in simple compile tests
16660 lt_simple_compile_test_code="class foo {}"
16661
16662 # Code to be used in simple link tests
16663 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16664
16665 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16666
16667 # If no C compiler was specified, use CC.
16668 LTCC=${LTCC-"$CC"}
16669
16670 # If no C compiler flags were specified, use CFLAGS.
16671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16672
16673 # Allow CC to be a program name with arguments.
16674 compiler=$CC
16675
16676
16677 # save warnings/boilerplate of simple test code
16678 ac_outfile=conftest.$ac_objext
16679 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16680 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16681 _lt_compiler_boilerplate=`cat conftest.err`
16682 $rm conftest*
16683
16684 ac_outfile=conftest.$ac_objext
16685 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16686 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16687 _lt_linker_boilerplate=`cat conftest.err`
16688 $rm -r conftest*
16689
16690
16691 # Allow CC to be a program name with arguments.
16692 lt_save_CC="$CC"
16693 CC=${GCJ-"gcj"}
16694 compiler=$CC
16695 compiler_GCJ=$CC
16696 for cc_temp in $compiler""; do
16697   case $cc_temp in
16698     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16699     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16700     \-*) ;;
16701     *) break;;
16702   esac
16703 done
16704 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16705
16706
16707 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16708 archive_cmds_need_lc_GCJ=no
16709
16710 old_archive_cmds_GCJ=$old_archive_cmds
16711
16712
16713 lt_prog_compiler_no_builtin_flag_GCJ=
16714
16715 if test "$GCC" = yes; then
16716   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16717
16718
16719 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16720 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16721 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16722   echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724   lt_cv_prog_compiler_rtti_exceptions=no
16725   ac_outfile=conftest.$ac_objext
16726    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16727    lt_compiler_flag="-fno-rtti -fno-exceptions"
16728    # Insert the option either (1) after the last *FLAGS variable, or
16729    # (2) before a word containing "conftest.", or (3) at the end.
16730    # Note that $ac_compile itself does not contain backslashes and begins
16731    # with a dollar sign (not a hyphen), so the echo should work correctly.
16732    # The option is referenced via a variable to avoid confusing sed.
16733    lt_compile=`echo "$ac_compile" | $SED \
16734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16736    -e 's:$: $lt_compiler_flag:'`
16737    (eval echo "\"\$as_me:16737: $lt_compile\"" >&5)
16738    (eval "$lt_compile" 2>conftest.err)
16739    ac_status=$?
16740    cat conftest.err >&5
16741    echo "$as_me:16741: \$? = $ac_status" >&5
16742    if (exit $ac_status) && test -s "$ac_outfile"; then
16743      # The compiler can only warn and ignore the option if not recognized
16744      # So say no if there are warnings other than the usual output.
16745      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16746      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16747      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16748        lt_cv_prog_compiler_rtti_exceptions=yes
16749      fi
16750    fi
16751    $rm conftest*
16752
16753 fi
16754 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16755 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16756
16757 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16758     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16759 else
16760     :
16761 fi
16762
16763 fi
16764
16765 lt_prog_compiler_wl_GCJ=
16766 lt_prog_compiler_pic_GCJ=
16767 lt_prog_compiler_static_GCJ=
16768
16769 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16770 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16771
16772   if test "$GCC" = yes; then
16773     lt_prog_compiler_wl_GCJ='-Wl,'
16774     lt_prog_compiler_static_GCJ='-static'
16775
16776     case $host_os in
16777       aix*)
16778       # All AIX code is PIC.
16779       if test "$host_cpu" = ia64; then
16780         # AIX 5 now supports IA64 processor
16781         lt_prog_compiler_static_GCJ='-Bstatic'
16782       fi
16783       ;;
16784
16785     amigaos*)
16786       # FIXME: we need at least 68020 code to build shared libraries, but
16787       # adding the `-m68020' flag to GCC prevents building anything better,
16788       # like `-m68040'.
16789       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16790       ;;
16791
16792     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16793       # PIC is the default for these OSes.
16794       ;;
16795
16796     mingw* | cygwin* | pw32* | os2*)
16797       # This hack is so that the source file can tell whether it is being
16798       # built for inclusion in a dll (and should export symbols for example).
16799       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16800       # (--disable-auto-import) libraries
16801
16802       ;;
16803
16804     darwin* | rhapsody*)
16805       # PIC is the default on this platform
16806       # Common symbols not allowed in MH_DYLIB files
16807       lt_prog_compiler_pic_GCJ='-fno-common'
16808       ;;
16809
16810     interix[3-9]*)
16811       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16812       # Instead, we relocate shared libraries at runtime.
16813       ;;
16814
16815     msdosdjgpp*)
16816       # Just because we use GCC doesn't mean we suddenly get shared libraries
16817       # on systems that don't support them.
16818       lt_prog_compiler_can_build_shared_GCJ=no
16819       enable_shared=no
16820       ;;
16821
16822     sysv4*MP*)
16823       if test -d /usr/nec; then
16824         lt_prog_compiler_pic_GCJ=-Kconform_pic
16825       fi
16826       ;;
16827
16828     hpux*)
16829       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16830       # not for PA HP-UX.
16831       case $host_cpu in
16832       hppa*64*|ia64*)
16833         # +Z the default
16834         ;;
16835       *)
16836         lt_prog_compiler_pic_GCJ='-fPIC'
16837         ;;
16838       esac
16839       ;;
16840
16841     *)
16842       lt_prog_compiler_pic_GCJ='-fPIC'
16843       ;;
16844     esac
16845   else
16846     # PORTME Check for flag to pass linker flags through the system compiler.
16847     case $host_os in
16848     aix*)
16849       lt_prog_compiler_wl_GCJ='-Wl,'
16850       if test "$host_cpu" = ia64; then
16851         # AIX 5 now supports IA64 processor
16852         lt_prog_compiler_static_GCJ='-Bstatic'
16853       else
16854         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16855       fi
16856       ;;
16857       darwin*)
16858         # PIC is the default on this platform
16859         # Common symbols not allowed in MH_DYLIB files
16860        case $cc_basename in
16861          xlc*)
16862          lt_prog_compiler_pic_GCJ='-qnocommon'
16863          lt_prog_compiler_wl_GCJ='-Wl,'
16864          ;;
16865        esac
16866        ;;
16867
16868     mingw* | cygwin* | pw32* | os2*)
16869       # This hack is so that the source file can tell whether it is being
16870       # built for inclusion in a dll (and should export symbols for example).
16871
16872       ;;
16873
16874     hpux9* | hpux10* | hpux11*)
16875       lt_prog_compiler_wl_GCJ='-Wl,'
16876       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16877       # not for PA HP-UX.
16878       case $host_cpu in
16879       hppa*64*|ia64*)
16880         # +Z the default
16881         ;;
16882       *)
16883         lt_prog_compiler_pic_GCJ='+Z'
16884         ;;
16885       esac
16886       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16887       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16888       ;;
16889
16890     irix5* | irix6* | nonstopux*)
16891       lt_prog_compiler_wl_GCJ='-Wl,'
16892       # PIC (with -KPIC) is the default.
16893       lt_prog_compiler_static_GCJ='-non_shared'
16894       ;;
16895
16896     newsos6)
16897       lt_prog_compiler_pic_GCJ='-KPIC'
16898       lt_prog_compiler_static_GCJ='-Bstatic'
16899       ;;
16900
16901     linux* | k*bsd*-gnu)
16902       case $cc_basename in
16903       icc* | ecc*)
16904         lt_prog_compiler_wl_GCJ='-Wl,'
16905         lt_prog_compiler_pic_GCJ='-KPIC'
16906         lt_prog_compiler_static_GCJ='-static'
16907         ;;
16908       pgcc* | pgf77* | pgf90* | pgf95*)
16909         # Portland Group compilers (*not* the Pentium gcc compiler,
16910         # which looks to be a dead project)
16911         lt_prog_compiler_wl_GCJ='-Wl,'
16912         lt_prog_compiler_pic_GCJ='-fpic'
16913         lt_prog_compiler_static_GCJ='-Bstatic'
16914         ;;
16915       ccc*)
16916         lt_prog_compiler_wl_GCJ='-Wl,'
16917         # All Alpha code is PIC.
16918         lt_prog_compiler_static_GCJ='-non_shared'
16919         ;;
16920       *)
16921         case `$CC -V 2>&1 | sed 5q` in
16922         *Sun\ C*)
16923           # Sun C 5.9
16924           lt_prog_compiler_pic_GCJ='-KPIC'
16925           lt_prog_compiler_static_GCJ='-Bstatic'
16926           lt_prog_compiler_wl_GCJ='-Wl,'
16927           ;;
16928         *Sun\ F*)
16929           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16930           lt_prog_compiler_pic_GCJ='-KPIC'
16931           lt_prog_compiler_static_GCJ='-Bstatic'
16932           lt_prog_compiler_wl_GCJ=''
16933           ;;
16934         esac
16935         ;;
16936       esac
16937       ;;
16938
16939     osf3* | osf4* | osf5*)
16940       lt_prog_compiler_wl_GCJ='-Wl,'
16941       # All OSF/1 code is PIC.
16942       lt_prog_compiler_static_GCJ='-non_shared'
16943       ;;
16944
16945     rdos*)
16946       lt_prog_compiler_static_GCJ='-non_shared'
16947       ;;
16948
16949     solaris*)
16950       lt_prog_compiler_pic_GCJ='-KPIC'
16951       lt_prog_compiler_static_GCJ='-Bstatic'
16952       case $cc_basename in
16953       f77* | f90* | f95*)
16954         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16955       *)
16956         lt_prog_compiler_wl_GCJ='-Wl,';;
16957       esac
16958       ;;
16959
16960     sunos4*)
16961       lt_prog_compiler_wl_GCJ='-Qoption ld '
16962       lt_prog_compiler_pic_GCJ='-PIC'
16963       lt_prog_compiler_static_GCJ='-Bstatic'
16964       ;;
16965
16966     sysv4 | sysv4.2uw2* | sysv4.3*)
16967       lt_prog_compiler_wl_GCJ='-Wl,'
16968       lt_prog_compiler_pic_GCJ='-KPIC'
16969       lt_prog_compiler_static_GCJ='-Bstatic'
16970       ;;
16971
16972     sysv4*MP*)
16973       if test -d /usr/nec ;then
16974         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16975         lt_prog_compiler_static_GCJ='-Bstatic'
16976       fi
16977       ;;
16978
16979     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16980       lt_prog_compiler_wl_GCJ='-Wl,'
16981       lt_prog_compiler_pic_GCJ='-KPIC'
16982       lt_prog_compiler_static_GCJ='-Bstatic'
16983       ;;
16984
16985     unicos*)
16986       lt_prog_compiler_wl_GCJ='-Wl,'
16987       lt_prog_compiler_can_build_shared_GCJ=no
16988       ;;
16989
16990     uts4*)
16991       lt_prog_compiler_pic_GCJ='-pic'
16992       lt_prog_compiler_static_GCJ='-Bstatic'
16993       ;;
16994
16995     *)
16996       lt_prog_compiler_can_build_shared_GCJ=no
16997       ;;
16998     esac
16999   fi
17000
17001 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17002 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17003
17004 #
17005 # Check to make sure the PIC flag actually works.
17006 #
17007 if test -n "$lt_prog_compiler_pic_GCJ"; then
17008
17009 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17010 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17011 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17012   echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17014   lt_cv_prog_compiler_pic_works_GCJ=no
17015   ac_outfile=conftest.$ac_objext
17016    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17017    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17018    # Insert the option either (1) after the last *FLAGS variable, or
17019    # (2) before a word containing "conftest.", or (3) at the end.
17020    # Note that $ac_compile itself does not contain backslashes and begins
17021    # with a dollar sign (not a hyphen), so the echo should work correctly.
17022    # The option is referenced via a variable to avoid confusing sed.
17023    lt_compile=`echo "$ac_compile" | $SED \
17024    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17025    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17026    -e 's:$: $lt_compiler_flag:'`
17027    (eval echo "\"\$as_me:17027: $lt_compile\"" >&5)
17028    (eval "$lt_compile" 2>conftest.err)
17029    ac_status=$?
17030    cat conftest.err >&5
17031    echo "$as_me:17031: \$? = $ac_status" >&5
17032    if (exit $ac_status) && test -s "$ac_outfile"; then
17033      # The compiler can only warn and ignore the option if not recognized
17034      # So say no if there are warnings other than the usual output.
17035      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17036      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17037      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17038        lt_cv_prog_compiler_pic_works_GCJ=yes
17039      fi
17040    fi
17041    $rm conftest*
17042
17043 fi
17044 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17045 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17046
17047 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17048     case $lt_prog_compiler_pic_GCJ in
17049      "" | " "*) ;;
17050      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17051      esac
17052 else
17053     lt_prog_compiler_pic_GCJ=
17054      lt_prog_compiler_can_build_shared_GCJ=no
17055 fi
17056
17057 fi
17058 case $host_os in
17059   # For platforms which do not support PIC, -DPIC is meaningless:
17060   *djgpp*)
17061     lt_prog_compiler_pic_GCJ=
17062     ;;
17063   *)
17064     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17065     ;;
17066 esac
17067
17068 #
17069 # Check to make sure the static flag actually works.
17070 #
17071 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17072 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17073 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17074 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17075   echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17077   lt_cv_prog_compiler_static_works_GCJ=no
17078    save_LDFLAGS="$LDFLAGS"
17079    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17080    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17081    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17082      # The linker can only warn and ignore the option if not recognized
17083      # So say no if there are warnings
17084      if test -s conftest.err; then
17085        # Append any errors to the config.log.
17086        cat conftest.err 1>&5
17087        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17088        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17089        if diff conftest.exp conftest.er2 >/dev/null; then
17090          lt_cv_prog_compiler_static_works_GCJ=yes
17091        fi
17092      else
17093        lt_cv_prog_compiler_static_works_GCJ=yes
17094      fi
17095    fi
17096    $rm -r conftest*
17097    LDFLAGS="$save_LDFLAGS"
17098
17099 fi
17100 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17101 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17102
17103 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17104     :
17105 else
17106     lt_prog_compiler_static_GCJ=
17107 fi
17108
17109
17110 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17111 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17112 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17113   echo $ECHO_N "(cached) $ECHO_C" >&6
17114 else
17115   lt_cv_prog_compiler_c_o_GCJ=no
17116    $rm -r conftest 2>/dev/null
17117    mkdir conftest
17118    cd conftest
17119    mkdir out
17120    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17121
17122    lt_compiler_flag="-o out/conftest2.$ac_objext"
17123    # Insert the option either (1) after the last *FLAGS variable, or
17124    # (2) before a word containing "conftest.", or (3) at the end.
17125    # Note that $ac_compile itself does not contain backslashes and begins
17126    # with a dollar sign (not a hyphen), so the echo should work correctly.
17127    lt_compile=`echo "$ac_compile" | $SED \
17128    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17129    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17130    -e 's:$: $lt_compiler_flag:'`
17131    (eval echo "\"\$as_me:17131: $lt_compile\"" >&5)
17132    (eval "$lt_compile" 2>out/conftest.err)
17133    ac_status=$?
17134    cat out/conftest.err >&5
17135    echo "$as_me:17135: \$? = $ac_status" >&5
17136    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17137    then
17138      # The compiler can only warn and ignore the option if not recognized
17139      # So say no if there are warnings
17140      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17141      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17142      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17143        lt_cv_prog_compiler_c_o_GCJ=yes
17144      fi
17145    fi
17146    chmod u+w . 2>&5
17147    $rm conftest*
17148    # SGI C++ compiler will create directory out/ii_files/ for
17149    # template instantiation
17150    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17151    $rm out/* && rmdir out
17152    cd ..
17153    rmdir conftest
17154    $rm conftest*
17155
17156 fi
17157 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17158 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17159
17160
17161 hard_links="nottested"
17162 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17163   # do not overwrite the value of need_locks provided by the user
17164   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17165 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17166   hard_links=yes
17167   $rm conftest*
17168   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17169   touch conftest.a
17170   ln conftest.a conftest.b 2>&5 || hard_links=no
17171   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17172   { echo "$as_me:$LINENO: result: $hard_links" >&5
17173 echo "${ECHO_T}$hard_links" >&6; }
17174   if test "$hard_links" = no; then
17175     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17176 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17177     need_locks=warn
17178   fi
17179 else
17180   need_locks=no
17181 fi
17182
17183 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17184 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17185
17186   runpath_var=
17187   allow_undefined_flag_GCJ=
17188   enable_shared_with_static_runtimes_GCJ=no
17189   archive_cmds_GCJ=
17190   archive_expsym_cmds_GCJ=
17191   old_archive_From_new_cmds_GCJ=
17192   old_archive_from_expsyms_cmds_GCJ=
17193   export_dynamic_flag_spec_GCJ=
17194   whole_archive_flag_spec_GCJ=
17195   thread_safe_flag_spec_GCJ=
17196   hardcode_libdir_flag_spec_GCJ=
17197   hardcode_libdir_flag_spec_ld_GCJ=
17198   hardcode_libdir_separator_GCJ=
17199   hardcode_direct_GCJ=no
17200   hardcode_minus_L_GCJ=no
17201   hardcode_shlibpath_var_GCJ=unsupported
17202   link_all_deplibs_GCJ=unknown
17203   hardcode_automatic_GCJ=no
17204   module_cmds_GCJ=
17205   module_expsym_cmds_GCJ=
17206   always_export_symbols_GCJ=no
17207   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17208   # include_expsyms should be a list of space-separated symbols to be *always*
17209   # included in the symbol list
17210   include_expsyms_GCJ=
17211   # exclude_expsyms can be an extended regexp of symbols to exclude
17212   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17213   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17214   # as well as any symbol that contains `d'.
17215   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17216   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17217   # platforms (ab)use it in PIC code, but their linkers get confused if
17218   # the symbol is explicitly referenced.  Since portable code cannot
17219   # rely on this symbol name, it's probably fine to never include it in
17220   # preloaded symbol tables.
17221   # Exclude shared library initialization/finalization symbols.
17222   extract_expsyms_cmds=
17223   # Just being paranoid about ensuring that cc_basename is set.
17224   for cc_temp in $compiler""; do
17225   case $cc_temp in
17226     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17227     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17228     \-*) ;;
17229     *) break;;
17230   esac
17231 done
17232 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17233
17234   case $host_os in
17235   cygwin* | mingw* | pw32*)
17236     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17237     # When not using gcc, we currently assume that we are using
17238     # Microsoft Visual C++.
17239     if test "$GCC" != yes; then
17240       with_gnu_ld=no
17241     fi
17242     ;;
17243   interix*)
17244     # we just hope/assume this is gcc and not c89 (= MSVC++)
17245     with_gnu_ld=yes
17246     ;;
17247   openbsd*)
17248     with_gnu_ld=no
17249     ;;
17250   esac
17251
17252   ld_shlibs_GCJ=yes
17253   if test "$with_gnu_ld" = yes; then
17254     # If archive_cmds runs LD, not CC, wlarc should be empty
17255     wlarc='${wl}'
17256
17257     # Set some defaults for GNU ld with shared library support. These
17258     # are reset later if shared libraries are not supported. Putting them
17259     # here allows them to be overridden if necessary.
17260     runpath_var=LD_RUN_PATH
17261     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17262     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17263     # ancient GNU ld didn't support --whole-archive et. al.
17264     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17265         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17266       else
17267         whole_archive_flag_spec_GCJ=
17268     fi
17269     supports_anon_versioning=no
17270     case `$LD -v 2>/dev/null` in
17271       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17272       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17273       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17274       *\ 2.11.*) ;; # other 2.11 versions
17275       *) supports_anon_versioning=yes ;;
17276     esac
17277
17278     # See if GNU ld supports shared libraries.
17279     case $host_os in
17280     aix[3-9]*)
17281       # On AIX/PPC, the GNU linker is very broken
17282       if test "$host_cpu" != ia64; then
17283         ld_shlibs_GCJ=no
17284         cat <<EOF 1>&2
17285
17286 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17287 *** to be unable to reliably create shared libraries on AIX.
17288 *** Therefore, libtool is disabling shared libraries support.  If you
17289 *** really care for shared libraries, you may want to modify your PATH
17290 *** so that a non-GNU linker is found, and then restart.
17291
17292 EOF
17293       fi
17294       ;;
17295
17296     amigaos*)
17297       archive_cmds_GCJ='$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)'
17298       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17299       hardcode_minus_L_GCJ=yes
17300
17301       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17302       # that the semantics of dynamic libraries on AmigaOS, at least up
17303       # to version 4, is to share data among multiple programs linked
17304       # with the same dynamic library.  Since this doesn't match the
17305       # behavior of shared libraries on other platforms, we can't use
17306       # them.
17307       ld_shlibs_GCJ=no
17308       ;;
17309
17310     beos*)
17311       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17312         allow_undefined_flag_GCJ=unsupported
17313         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17314         # support --undefined.  This deserves some investigation.  FIXME
17315         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17316       else
17317         ld_shlibs_GCJ=no
17318       fi
17319       ;;
17320
17321     cygwin* | mingw* | pw32*)
17322       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17323       # as there is no search path for DLLs.
17324       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17325       allow_undefined_flag_GCJ=unsupported
17326       always_export_symbols_GCJ=no
17327       enable_shared_with_static_runtimes_GCJ=yes
17328       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17329
17330       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17331         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17332         # If the export-symbols file already is a .def file (1st line
17333         # is EXPORTS), use it as is; otherwise, prepend...
17334         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17335           cp $export_symbols $output_objdir/$soname.def;
17336         else
17337           echo EXPORTS > $output_objdir/$soname.def;
17338           cat $export_symbols >> $output_objdir/$soname.def;
17339         fi~
17340         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17341       else
17342         ld_shlibs_GCJ=no
17343       fi
17344       ;;
17345
17346     interix[3-9]*)
17347       hardcode_direct_GCJ=no
17348       hardcode_shlibpath_var_GCJ=no
17349       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17350       export_dynamic_flag_spec_GCJ='${wl}-E'
17351       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17352       # Instead, shared libraries are loaded at an image base (0x10000000 by
17353       # default) and relocated if they conflict, which is a slow very memory
17354       # consuming and fragmenting process.  To avoid this, we pick a random,
17355       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17356       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17357       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17358       archive_expsym_cmds_GCJ='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'
17359       ;;
17360
17361     gnu* | linux* | k*bsd*-gnu)
17362       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17363         tmp_addflag=
17364         case $cc_basename,$host_cpu in
17365         pgcc*)                          # Portland Group C compiler
17366           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17367           tmp_addflag=' $pic_flag'
17368           ;;
17369         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17370           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17371           tmp_addflag=' $pic_flag -Mnomain' ;;
17372         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17373           tmp_addflag=' -i_dynamic' ;;
17374         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17375           tmp_addflag=' -i_dynamic -nofor_main' ;;
17376         ifc* | ifort*)                  # Intel Fortran compiler
17377           tmp_addflag=' -nofor_main' ;;
17378         esac
17379         case `$CC -V 2>&1 | sed 5q` in
17380         *Sun\ C*)                       # Sun C 5.9
17381           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17382           tmp_sharedflag='-G' ;;
17383         *Sun\ F*)                       # Sun Fortran 8.3
17384           tmp_sharedflag='-G' ;;
17385         *)
17386           tmp_sharedflag='-shared' ;;
17387         esac
17388         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17389
17390         if test $supports_anon_versioning = yes; then
17391           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17392   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17393   $echo "local: *; };" >> $output_objdir/$libname.ver~
17394           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17395         fi
17396         link_all_deplibs_GCJ=no
17397       else
17398         ld_shlibs_GCJ=no
17399       fi
17400       ;;
17401
17402     netbsd* | netbsdelf*-gnu)
17403       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17404         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17405         wlarc=
17406       else
17407         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17408         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17409       fi
17410       ;;
17411
17412     solaris*)
17413       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17414         ld_shlibs_GCJ=no
17415         cat <<EOF 1>&2
17416
17417 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17418 *** create shared libraries on Solaris systems.  Therefore, libtool
17419 *** is disabling shared libraries support.  We urge you to upgrade GNU
17420 *** binutils to release 2.9.1 or newer.  Another option is to modify
17421 *** your PATH or compiler configuration so that the native linker is
17422 *** used, and then restart.
17423
17424 EOF
17425       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17426         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17427         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17428       else
17429         ld_shlibs_GCJ=no
17430       fi
17431       ;;
17432
17433     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17434       case `$LD -v 2>&1` in
17435         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17436         ld_shlibs_GCJ=no
17437         cat <<_LT_EOF 1>&2
17438
17439 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17440 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17441 *** is disabling shared libraries support.  We urge you to upgrade GNU
17442 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17443 *** your PATH or compiler configuration so that the native linker is
17444 *** used, and then restart.
17445
17446 _LT_EOF
17447         ;;
17448         *)
17449           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17450             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17451             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17452             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17453           else
17454             ld_shlibs_GCJ=no
17455           fi
17456         ;;
17457       esac
17458       ;;
17459
17460     sunos4*)
17461       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17462       wlarc=
17463       hardcode_direct_GCJ=yes
17464       hardcode_shlibpath_var_GCJ=no
17465       ;;
17466
17467     *)
17468       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17469         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17470         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17471       else
17472         ld_shlibs_GCJ=no
17473       fi
17474       ;;
17475     esac
17476
17477     if test "$ld_shlibs_GCJ" = no; then
17478       runpath_var=
17479       hardcode_libdir_flag_spec_GCJ=
17480       export_dynamic_flag_spec_GCJ=
17481       whole_archive_flag_spec_GCJ=
17482     fi
17483   else
17484     # PORTME fill in a description of your system's linker (not GNU ld)
17485     case $host_os in
17486     aix3*)
17487       allow_undefined_flag_GCJ=unsupported
17488       always_export_symbols_GCJ=yes
17489       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17490       # Note: this linker hardcodes the directories in LIBPATH if there
17491       # are no directories specified by -L.
17492       hardcode_minus_L_GCJ=yes
17493       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17494         # Neither direct hardcoding nor static linking is supported with a
17495         # broken collect2.
17496         hardcode_direct_GCJ=unsupported
17497       fi
17498       ;;
17499
17500     aix[4-9]*)
17501       if test "$host_cpu" = ia64; then
17502         # On IA64, the linker does run time linking by default, so we don't
17503         # have to do anything special.
17504         aix_use_runtimelinking=no
17505         exp_sym_flag='-Bexport'
17506         no_entry_flag=""
17507       else
17508         # If we're using GNU nm, then we don't want the "-C" option.
17509         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17510         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17511           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17512         else
17513           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17514         fi
17515         aix_use_runtimelinking=no
17516
17517         # Test if we are trying to use run time linking or normal
17518         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17519         # need to do runtime linking.
17520         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17521           for ld_flag in $LDFLAGS; do
17522           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17523             aix_use_runtimelinking=yes
17524             break
17525           fi
17526           done
17527           ;;
17528         esac
17529
17530         exp_sym_flag='-bexport'
17531         no_entry_flag='-bnoentry'
17532       fi
17533
17534       # When large executables or shared objects are built, AIX ld can
17535       # have problems creating the table of contents.  If linking a library
17536       # or program results in "error TOC overflow" add -mminimal-toc to
17537       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17538       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17539
17540       archive_cmds_GCJ=''
17541       hardcode_direct_GCJ=yes
17542       hardcode_libdir_separator_GCJ=':'
17543       link_all_deplibs_GCJ=yes
17544
17545       if test "$GCC" = yes; then
17546         case $host_os in aix4.[012]|aix4.[012].*)
17547         # We only want to do this on AIX 4.2 and lower, the check
17548         # below for broken collect2 doesn't work under 4.3+
17549           collect2name=`${CC} -print-prog-name=collect2`
17550           if test -f "$collect2name" && \
17551            strings "$collect2name" | grep resolve_lib_name >/dev/null
17552           then
17553           # We have reworked collect2
17554           :
17555           else
17556           # We have old collect2
17557           hardcode_direct_GCJ=unsupported
17558           # It fails to find uninstalled libraries when the uninstalled
17559           # path is not listed in the libpath.  Setting hardcode_minus_L
17560           # to unsupported forces relinking
17561           hardcode_minus_L_GCJ=yes
17562           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17563           hardcode_libdir_separator_GCJ=
17564           fi
17565           ;;
17566         esac
17567         shared_flag='-shared'
17568         if test "$aix_use_runtimelinking" = yes; then
17569           shared_flag="$shared_flag "'${wl}-G'
17570         fi
17571       else
17572         # not using gcc
17573         if test "$host_cpu" = ia64; then
17574         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17575         # chokes on -Wl,-G. The following line is correct:
17576           shared_flag='-G'
17577         else
17578           if test "$aix_use_runtimelinking" = yes; then
17579             shared_flag='${wl}-G'
17580           else
17581             shared_flag='${wl}-bM:SRE'
17582           fi
17583         fi
17584       fi
17585
17586       # It seems that -bexpall does not export symbols beginning with
17587       # underscore (_), so it is better to generate a list of symbols to export.
17588       always_export_symbols_GCJ=yes
17589       if test "$aix_use_runtimelinking" = yes; then
17590         # Warning - without using the other runtime loading flags (-brtl),
17591         # -berok will link without error, but may produce a broken library.
17592         allow_undefined_flag_GCJ='-berok'
17593        # Determine the default libpath from the value encoded in an empty executable.
17594        cat >conftest.$ac_ext <<_ACEOF
17595 /* confdefs.h.  */
17596 _ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h.  */
17600
17601 int
17602 main ()
17603 {
17604
17605   ;
17606   return 0;
17607 }
17608 _ACEOF
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613   *) ac_try_echo=$ac_try;;
17614 esac
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616   (eval "$ac_link") 2>conftest.er1
17617   ac_status=$?
17618   grep -v '^ *+' conftest.er1 >conftest.err
17619   rm -f conftest.er1
17620   cat conftest.err >&5
17621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622   (exit $ac_status); } && {
17623          test -z "$ac_cxx_werror_flag" ||
17624          test ! -s conftest.err
17625        } && test -s conftest$ac_exeext &&
17626        $as_test_x conftest$ac_exeext; then
17627
17628 lt_aix_libpath_sed='
17629     /Import File Strings/,/^$/ {
17630         /^0/ {
17631             s/^0  *\(.*\)$/\1/
17632             p
17633         }
17634     }'
17635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17636 # Check for a 64-bit object if we didn't find anything.
17637 if test -z "$aix_libpath"; then
17638   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17639 fi
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644
17645 fi
17646
17647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17648       conftest$ac_exeext conftest.$ac_ext
17649 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17650
17651        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17652         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17653        else
17654         if test "$host_cpu" = ia64; then
17655           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17656           allow_undefined_flag_GCJ="-z nodefs"
17657           archive_expsym_cmds_GCJ="\$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"
17658         else
17659          # Determine the default libpath from the value encoded in an empty executable.
17660          cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h.  */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h.  */
17666
17667 int
17668 main ()
17669 {
17670
17671   ;
17672   return 0;
17673 }
17674 _ACEOF
17675 rm -f conftest.$ac_objext conftest$ac_exeext
17676 if { (ac_try="$ac_link"
17677 case "(($ac_try" in
17678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679   *) ac_try_echo=$ac_try;;
17680 esac
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682   (eval "$ac_link") 2>conftest.er1
17683   ac_status=$?
17684   grep -v '^ *+' conftest.er1 >conftest.err
17685   rm -f conftest.er1
17686   cat conftest.err >&5
17687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688   (exit $ac_status); } && {
17689          test -z "$ac_cxx_werror_flag" ||
17690          test ! -s conftest.err
17691        } && test -s conftest$ac_exeext &&
17692        $as_test_x conftest$ac_exeext; then
17693
17694 lt_aix_libpath_sed='
17695     /Import File Strings/,/^$/ {
17696         /^0/ {
17697             s/^0  *\(.*\)$/\1/
17698             p
17699         }
17700     }'
17701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17702 # Check for a 64-bit object if we didn't find anything.
17703 if test -z "$aix_libpath"; then
17704   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17705 fi
17706 else
17707   echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17709
17710
17711 fi
17712
17713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17714       conftest$ac_exeext conftest.$ac_ext
17715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17716
17717          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17718           # Warning - without using the other run time loading flags,
17719           # -berok will link without error, but may produce a broken library.
17720           no_undefined_flag_GCJ=' ${wl}-bernotok'
17721           allow_undefined_flag_GCJ=' ${wl}-berok'
17722           # Exported symbols can be pulled into shared objects from archives
17723           whole_archive_flag_spec_GCJ='$convenience'
17724           archive_cmds_need_lc_GCJ=yes
17725           # This is similar to how AIX traditionally builds its shared libraries.
17726           archive_expsym_cmds_GCJ="\$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'
17727         fi
17728       fi
17729       ;;
17730
17731     amigaos*)
17732       archive_cmds_GCJ='$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)'
17733       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17734       hardcode_minus_L_GCJ=yes
17735       # see comment about different semantics on the GNU ld section
17736       ld_shlibs_GCJ=no
17737       ;;
17738
17739     bsdi[45]*)
17740       export_dynamic_flag_spec_GCJ=-rdynamic
17741       ;;
17742
17743     cygwin* | mingw* | pw32*)
17744       # When not using gcc, we currently assume that we are using
17745       # Microsoft Visual C++.
17746       # hardcode_libdir_flag_spec is actually meaningless, as there is
17747       # no search path for DLLs.
17748       hardcode_libdir_flag_spec_GCJ=' '
17749       allow_undefined_flag_GCJ=unsupported
17750       # Tell ltmain to make .lib files, not .a files.
17751       libext=lib
17752       # Tell ltmain to make .dll files, not .so files.
17753       shrext_cmds=".dll"
17754       # FIXME: Setting linknames here is a bad hack.
17755       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17756       # The linker will automatically build a .lib file if we build a DLL.
17757       old_archive_From_new_cmds_GCJ='true'
17758       # FIXME: Should let the user specify the lib program.
17759       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17760       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17761       enable_shared_with_static_runtimes_GCJ=yes
17762       ;;
17763
17764     darwin* | rhapsody*)
17765       case $host_os in
17766         rhapsody* | darwin1.[012])
17767          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17768          ;;
17769        *) # Darwin 1.3 on
17770          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17771            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17772          else
17773            case ${MACOSX_DEPLOYMENT_TARGET} in
17774              10.[012])
17775                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17776                ;;
17777              10.*)
17778                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17779                ;;
17780            esac
17781          fi
17782          ;;
17783       esac
17784       archive_cmds_need_lc_GCJ=no
17785       hardcode_direct_GCJ=no
17786       hardcode_automatic_GCJ=yes
17787       hardcode_shlibpath_var_GCJ=unsupported
17788       whole_archive_flag_spec_GCJ=''
17789       link_all_deplibs_GCJ=yes
17790     if test "$GCC" = yes ; then
17791         output_verbose_link_cmd='echo'
17792         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17793         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17794         archive_expsym_cmds_GCJ="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}"
17795         module_expsym_cmds_GCJ="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}"
17796     else
17797       case $cc_basename in
17798         xlc*)
17799          output_verbose_link_cmd='echo'
17800          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17801          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17802           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17803          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17804           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17805           ;;
17806        *)
17807          ld_shlibs_GCJ=no
17808           ;;
17809       esac
17810     fi
17811       ;;
17812
17813     dgux*)
17814       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17815       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17816       hardcode_shlibpath_var_GCJ=no
17817       ;;
17818
17819     freebsd1*)
17820       ld_shlibs_GCJ=no
17821       ;;
17822
17823     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17824     # support.  Future versions do this automatically, but an explicit c++rt0.o
17825     # does not break anything, and helps significantly (at the cost of a little
17826     # extra space).
17827     freebsd2.2*)
17828       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17829       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17830       hardcode_direct_GCJ=yes
17831       hardcode_shlibpath_var_GCJ=no
17832       ;;
17833
17834     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17835     freebsd2*)
17836       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17837       hardcode_direct_GCJ=yes
17838       hardcode_minus_L_GCJ=yes
17839       hardcode_shlibpath_var_GCJ=no
17840       ;;
17841
17842     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17843     freebsd* | dragonfly*)
17844       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17845       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17846       hardcode_direct_GCJ=yes
17847       hardcode_shlibpath_var_GCJ=no
17848       ;;
17849
17850     hpux9*)
17851       if test "$GCC" = yes; then
17852         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17853       else
17854         archive_cmds_GCJ='$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'
17855       fi
17856       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17857       hardcode_libdir_separator_GCJ=:
17858       hardcode_direct_GCJ=yes
17859
17860       # hardcode_minus_L: Not really in the search PATH,
17861       # but as the default location of the library.
17862       hardcode_minus_L_GCJ=yes
17863       export_dynamic_flag_spec_GCJ='${wl}-E'
17864       ;;
17865
17866     hpux10*)
17867       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17868         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17869       else
17870         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17871       fi
17872       if test "$with_gnu_ld" = no; then
17873         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17874         hardcode_libdir_separator_GCJ=:
17875
17876         hardcode_direct_GCJ=yes
17877         export_dynamic_flag_spec_GCJ='${wl}-E'
17878
17879         # hardcode_minus_L: Not really in the search PATH,
17880         # but as the default location of the library.
17881         hardcode_minus_L_GCJ=yes
17882       fi
17883       ;;
17884
17885     hpux11*)
17886       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17887         case $host_cpu in
17888         hppa*64*)
17889           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17890           ;;
17891         ia64*)
17892           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17893           ;;
17894         *)
17895           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17896           ;;
17897         esac
17898       else
17899         case $host_cpu in
17900         hppa*64*)
17901           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17902           ;;
17903         ia64*)
17904           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17905           ;;
17906         *)
17907           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17908           ;;
17909         esac
17910       fi
17911       if test "$with_gnu_ld" = no; then
17912         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17913         hardcode_libdir_separator_GCJ=:
17914
17915         case $host_cpu in
17916         hppa*64*|ia64*)
17917           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17918           hardcode_direct_GCJ=no
17919           hardcode_shlibpath_var_GCJ=no
17920           ;;
17921         *)
17922           hardcode_direct_GCJ=yes
17923           export_dynamic_flag_spec_GCJ='${wl}-E'
17924
17925           # hardcode_minus_L: Not really in the search PATH,
17926           # but as the default location of the library.
17927           hardcode_minus_L_GCJ=yes
17928           ;;
17929         esac
17930       fi
17931       ;;
17932
17933     irix5* | irix6* | nonstopux*)
17934       if test "$GCC" = yes; then
17935         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17936       else
17937         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17938         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17939       fi
17940       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17941       hardcode_libdir_separator_GCJ=:
17942       link_all_deplibs_GCJ=yes
17943       ;;
17944
17945     netbsd* | netbsdelf*-gnu)
17946       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17947         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17948       else
17949         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17950       fi
17951       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17952       hardcode_direct_GCJ=yes
17953       hardcode_shlibpath_var_GCJ=no
17954       ;;
17955
17956     newsos6)
17957       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17958       hardcode_direct_GCJ=yes
17959       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17960       hardcode_libdir_separator_GCJ=:
17961       hardcode_shlibpath_var_GCJ=no
17962       ;;
17963
17964     openbsd*)
17965       if test -f /usr/libexec/ld.so; then
17966         hardcode_direct_GCJ=yes
17967         hardcode_shlibpath_var_GCJ=no
17968         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17969           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17970           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17971           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17972           export_dynamic_flag_spec_GCJ='${wl}-E'
17973         else
17974           case $host_os in
17975            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17976              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17977              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17978              ;;
17979            *)
17980              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17981              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17982              ;;
17983           esac
17984         fi
17985       else
17986         ld_shlibs_GCJ=no
17987       fi
17988       ;;
17989
17990     os2*)
17991       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17992       hardcode_minus_L_GCJ=yes
17993       allow_undefined_flag_GCJ=unsupported
17994       archive_cmds_GCJ='$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'
17995       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17996       ;;
17997
17998     osf3*)
17999       if test "$GCC" = yes; then
18000         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18001         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18002       else
18003         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18004         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18005       fi
18006       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18007       hardcode_libdir_separator_GCJ=:
18008       ;;
18009
18010     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18011       if test "$GCC" = yes; then
18012         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18013         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18014         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18015       else
18016         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18017         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18018         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18019         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18020
18021         # Both c and cxx compiler support -rpath directly
18022         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18023       fi
18024       hardcode_libdir_separator_GCJ=:
18025       ;;
18026
18027     solaris*)
18028       no_undefined_flag_GCJ=' -z text'
18029       if test "$GCC" = yes; then
18030         wlarc='${wl}'
18031         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18032         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18033           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18034       else
18035         wlarc=''
18036         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18037         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18038         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18039       fi
18040       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18041       hardcode_shlibpath_var_GCJ=no
18042       case $host_os in
18043       solaris2.[0-5] | solaris2.[0-5].*) ;;
18044       *)
18045         # The compiler driver will combine and reorder linker options,
18046         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18047         # but is careful enough not to reorder.
18048         # Supported since Solaris 2.6 (maybe 2.5.1?)
18049         if test "$GCC" = yes; then
18050           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18051         else
18052           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18053         fi
18054         ;;
18055       esac
18056       link_all_deplibs_GCJ=yes
18057       ;;
18058
18059     sunos4*)
18060       if test "x$host_vendor" = xsequent; then
18061         # Use $CC to link under sequent, because it throws in some extra .o
18062         # files that make .init and .fini sections work.
18063         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18064       else
18065         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18066       fi
18067       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18068       hardcode_direct_GCJ=yes
18069       hardcode_minus_L_GCJ=yes
18070       hardcode_shlibpath_var_GCJ=no
18071       ;;
18072
18073     sysv4)
18074       case $host_vendor in
18075         sni)
18076           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18077           hardcode_direct_GCJ=yes # is this really true???
18078         ;;
18079         siemens)
18080           ## LD is ld it makes a PLAMLIB
18081           ## CC just makes a GrossModule.
18082           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18083           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18084           hardcode_direct_GCJ=no
18085         ;;
18086         motorola)
18087           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18088           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18089         ;;
18090       esac
18091       runpath_var='LD_RUN_PATH'
18092       hardcode_shlibpath_var_GCJ=no
18093       ;;
18094
18095     sysv4.3*)
18096       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18097       hardcode_shlibpath_var_GCJ=no
18098       export_dynamic_flag_spec_GCJ='-Bexport'
18099       ;;
18100
18101     sysv4*MP*)
18102       if test -d /usr/nec; then
18103         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18104         hardcode_shlibpath_var_GCJ=no
18105         runpath_var=LD_RUN_PATH
18106         hardcode_runpath_var=yes
18107         ld_shlibs_GCJ=yes
18108       fi
18109       ;;
18110
18111     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18112       no_undefined_flag_GCJ='${wl}-z,text'
18113       archive_cmds_need_lc_GCJ=no
18114       hardcode_shlibpath_var_GCJ=no
18115       runpath_var='LD_RUN_PATH'
18116
18117       if test "$GCC" = yes; then
18118         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18120       else
18121         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18122         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18123       fi
18124       ;;
18125
18126     sysv5* | sco3.2v5* | sco5v6*)
18127       # Note: We can NOT use -z defs as we might desire, because we do not
18128       # link with -lc, and that would cause any symbols used from libc to
18129       # always be unresolved, which means just about no library would
18130       # ever link correctly.  If we're not using GNU ld we use -z text
18131       # though, which does catch some bad symbols but isn't as heavy-handed
18132       # as -z defs.
18133       no_undefined_flag_GCJ='${wl}-z,text'
18134       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18135       archive_cmds_need_lc_GCJ=no
18136       hardcode_shlibpath_var_GCJ=no
18137       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18138       hardcode_libdir_separator_GCJ=':'
18139       link_all_deplibs_GCJ=yes
18140       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18141       runpath_var='LD_RUN_PATH'
18142
18143       if test "$GCC" = yes; then
18144         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18145         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18146       else
18147         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18149       fi
18150       ;;
18151
18152     uts4*)
18153       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18154       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18155       hardcode_shlibpath_var_GCJ=no
18156       ;;
18157
18158     *)
18159       ld_shlibs_GCJ=no
18160       ;;
18161     esac
18162   fi
18163
18164 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18165 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18166 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18167
18168 #
18169 # Do we need to explicitly link libc?
18170 #
18171 case "x$archive_cmds_need_lc_GCJ" in
18172 x|xyes)
18173   # Assume -lc should be added
18174   archive_cmds_need_lc_GCJ=yes
18175
18176   if test "$enable_shared" = yes && test "$GCC" = yes; then
18177     case $archive_cmds_GCJ in
18178     *'~'*)
18179       # FIXME: we may have to deal with multi-command sequences.
18180       ;;
18181     '$CC '*)
18182       # Test whether the compiler implicitly links with -lc since on some
18183       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18184       # to ld, don't add -lc before -lgcc.
18185       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18186 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18187       $rm conftest*
18188       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18189
18190       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18191   (eval $ac_compile) 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); } 2>conftest.err; then
18195         soname=conftest
18196         lib=conftest
18197         libobjs=conftest.$ac_objext
18198         deplibs=
18199         wl=$lt_prog_compiler_wl_GCJ
18200         pic_flag=$lt_prog_compiler_pic_GCJ
18201         compiler_flags=-v
18202         linker_flags=-v
18203         verstring=
18204         output_objdir=.
18205         libname=conftest
18206         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18207         allow_undefined_flag_GCJ=
18208         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18209   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18210   ac_status=$?
18211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212   (exit $ac_status); }
18213         then
18214           archive_cmds_need_lc_GCJ=no
18215         else
18216           archive_cmds_need_lc_GCJ=yes
18217         fi
18218         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18219       else
18220         cat conftest.err 1>&5
18221       fi
18222       $rm conftest*
18223       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18224 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18225       ;;
18226     esac
18227   fi
18228   ;;
18229 esac
18230
18231 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18232 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18233 library_names_spec=
18234 libname_spec='lib$name'
18235 soname_spec=
18236 shrext_cmds=".so"
18237 postinstall_cmds=
18238 postuninstall_cmds=
18239 finish_cmds=
18240 finish_eval=
18241 shlibpath_var=
18242 shlibpath_overrides_runpath=unknown
18243 version_type=none
18244 dynamic_linker="$host_os ld.so"
18245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18246
18247 need_lib_prefix=unknown
18248 hardcode_into_libs=no
18249
18250 # when you set need_version to no, make sure it does not cause -set_version
18251 # flags to be left without arguments
18252 need_version=unknown
18253
18254 case $host_os in
18255 aix3*)
18256   version_type=linux
18257   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18258   shlibpath_var=LIBPATH
18259
18260   # AIX 3 has no versioning support, so we append a major version to the name.
18261   soname_spec='${libname}${release}${shared_ext}$major'
18262   ;;
18263
18264 aix[4-9]*)
18265   version_type=linux
18266   need_lib_prefix=no
18267   need_version=no
18268   hardcode_into_libs=yes
18269   if test "$host_cpu" = ia64; then
18270     # AIX 5 supports IA64
18271     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18272     shlibpath_var=LD_LIBRARY_PATH
18273   else
18274     # With GCC up to 2.95.x, collect2 would create an import file
18275     # for dependence libraries.  The import file would start with
18276     # the line `#! .'.  This would cause the generated library to
18277     # depend on `.', always an invalid library.  This was fixed in
18278     # development snapshots of GCC prior to 3.0.
18279     case $host_os in
18280       aix4 | aix4.[01] | aix4.[01].*)
18281       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18282            echo ' yes '
18283            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18284         :
18285       else
18286         can_build_shared=no
18287       fi
18288       ;;
18289     esac
18290     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18291     # soname into executable. Probably we can add versioning support to
18292     # collect2, so additional links can be useful in future.
18293     if test "$aix_use_runtimelinking" = yes; then
18294       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18295       # instead of lib<name>.a to let people know that these are not
18296       # typical AIX shared libraries.
18297       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18298     else
18299       # We preserve .a as extension for shared libraries through AIX4.2
18300       # and later when we are not doing run time linking.
18301       library_names_spec='${libname}${release}.a $libname.a'
18302       soname_spec='${libname}${release}${shared_ext}$major'
18303     fi
18304     shlibpath_var=LIBPATH
18305   fi
18306   ;;
18307
18308 amigaos*)
18309   library_names_spec='$libname.ixlibrary $libname.a'
18310   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18311   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
18312   ;;
18313
18314 beos*)
18315   library_names_spec='${libname}${shared_ext}'
18316   dynamic_linker="$host_os ld.so"
18317   shlibpath_var=LIBRARY_PATH
18318   ;;
18319
18320 bsdi[45]*)
18321   version_type=linux
18322   need_version=no
18323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324   soname_spec='${libname}${release}${shared_ext}$major'
18325   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18326   shlibpath_var=LD_LIBRARY_PATH
18327   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18328   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18329   # the default ld.so.conf also contains /usr/contrib/lib and
18330   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18331   # libtool to hard-code these into programs
18332   ;;
18333
18334 cygwin* | mingw* | pw32*)
18335   version_type=windows
18336   shrext_cmds=".dll"
18337   need_version=no
18338   need_lib_prefix=no
18339
18340   case $GCC,$host_os in
18341   yes,cygwin* | yes,mingw* | yes,pw32*)
18342     library_names_spec='$libname.dll.a'
18343     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18344     postinstall_cmds='base_file=`basename \${file}`~
18345       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18346       dldir=$destdir/`dirname \$dlpath`~
18347       test -d \$dldir || mkdir -p \$dldir~
18348       $install_prog $dir/$dlname \$dldir/$dlname~
18349       chmod a+x \$dldir/$dlname'
18350     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18351       dlpath=$dir/\$dldll~
18352        $rm \$dlpath'
18353     shlibpath_overrides_runpath=yes
18354
18355     case $host_os in
18356     cygwin*)
18357       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18358       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18359       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18360       ;;
18361     mingw*)
18362       # MinGW DLLs use traditional 'lib' prefix
18363       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18364       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18365       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18366         # It is most probably a Windows format PATH printed by
18367         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18368         # path with ; separators, and with drive letters. We can handle the
18369         # drive letters (cygwin fileutils understands them), so leave them,
18370         # especially as we might pass files found there to a mingw objdump,
18371         # which wouldn't understand a cygwinified path. Ahh.
18372         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18373       else
18374         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18375       fi
18376       ;;
18377     pw32*)
18378       # pw32 DLLs use 'pw' prefix rather than 'lib'
18379       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18380       ;;
18381     esac
18382     ;;
18383
18384   *)
18385     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18386     ;;
18387   esac
18388   dynamic_linker='Win32 ld.exe'
18389   # FIXME: first we should search . and the directory the executable is in
18390   shlibpath_var=PATH
18391   ;;
18392
18393 darwin* | rhapsody*)
18394   dynamic_linker="$host_os dyld"
18395   version_type=darwin
18396   need_lib_prefix=no
18397   need_version=no
18398   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18399   soname_spec='${libname}${release}${major}$shared_ext'
18400   shlibpath_overrides_runpath=yes
18401   shlibpath_var=DYLD_LIBRARY_PATH
18402   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18403
18404   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18405   ;;
18406
18407 dgux*)
18408   version_type=linux
18409   need_lib_prefix=no
18410   need_version=no
18411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18412   soname_spec='${libname}${release}${shared_ext}$major'
18413   shlibpath_var=LD_LIBRARY_PATH
18414   ;;
18415
18416 freebsd1*)
18417   dynamic_linker=no
18418   ;;
18419
18420 freebsd* | dragonfly*)
18421   # DragonFly does not have aout.  When/if they implement a new
18422   # versioning mechanism, adjust this.
18423   if test -x /usr/bin/objformat; then
18424     objformat=`/usr/bin/objformat`
18425   else
18426     case $host_os in
18427     freebsd[123]*) objformat=aout ;;
18428     *) objformat=elf ;;
18429     esac
18430   fi
18431   version_type=freebsd-$objformat
18432   case $version_type in
18433     freebsd-elf*)
18434       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18435       need_version=no
18436       need_lib_prefix=no
18437       ;;
18438     freebsd-*)
18439       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18440       need_version=yes
18441       ;;
18442   esac
18443   shlibpath_var=LD_LIBRARY_PATH
18444   case $host_os in
18445   freebsd2*)
18446     shlibpath_overrides_runpath=yes
18447     ;;
18448   freebsd3.[01]* | freebsdelf3.[01]*)
18449     shlibpath_overrides_runpath=yes
18450     hardcode_into_libs=yes
18451     ;;
18452   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18453   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18454     shlibpath_overrides_runpath=no
18455     hardcode_into_libs=yes
18456     ;;
18457   *) # from 4.6 on, and DragonFly
18458     shlibpath_overrides_runpath=yes
18459     hardcode_into_libs=yes
18460     ;;
18461   esac
18462   ;;
18463
18464 gnu*)
18465   version_type=linux
18466   need_lib_prefix=no
18467   need_version=no
18468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18469   soname_spec='${libname}${release}${shared_ext}$major'
18470   shlibpath_var=LD_LIBRARY_PATH
18471   hardcode_into_libs=yes
18472   ;;
18473
18474 hpux9* | hpux10* | hpux11*)
18475   # Give a soname corresponding to the major version so that dld.sl refuses to
18476   # link against other versions.
18477   version_type=sunos
18478   need_lib_prefix=no
18479   need_version=no
18480   case $host_cpu in
18481   ia64*)
18482     shrext_cmds='.so'
18483     hardcode_into_libs=yes
18484     dynamic_linker="$host_os dld.so"
18485     shlibpath_var=LD_LIBRARY_PATH
18486     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18487     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18488     soname_spec='${libname}${release}${shared_ext}$major'
18489     if test "X$HPUX_IA64_MODE" = X32; then
18490       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18491     else
18492       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18493     fi
18494     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18495     ;;
18496    hppa*64*)
18497      shrext_cmds='.sl'
18498      hardcode_into_libs=yes
18499      dynamic_linker="$host_os dld.sl"
18500      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18501      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18502      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18503      soname_spec='${libname}${release}${shared_ext}$major'
18504      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18505      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18506      ;;
18507    *)
18508     shrext_cmds='.sl'
18509     dynamic_linker="$host_os dld.sl"
18510     shlibpath_var=SHLIB_PATH
18511     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18513     soname_spec='${libname}${release}${shared_ext}$major'
18514     ;;
18515   esac
18516   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18517   postinstall_cmds='chmod 555 $lib'
18518   ;;
18519
18520 interix[3-9]*)
18521   version_type=linux
18522   need_lib_prefix=no
18523   need_version=no
18524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18525   soname_spec='${libname}${release}${shared_ext}$major'
18526   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18527   shlibpath_var=LD_LIBRARY_PATH
18528   shlibpath_overrides_runpath=no
18529   hardcode_into_libs=yes
18530   ;;
18531
18532 irix5* | irix6* | nonstopux*)
18533   case $host_os in
18534     nonstopux*) version_type=nonstopux ;;
18535     *)
18536         if test "$lt_cv_prog_gnu_ld" = yes; then
18537                 version_type=linux
18538         else
18539                 version_type=irix
18540         fi ;;
18541   esac
18542   need_lib_prefix=no
18543   need_version=no
18544   soname_spec='${libname}${release}${shared_ext}$major'
18545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18546   case $host_os in
18547   irix5* | nonstopux*)
18548     libsuff= shlibsuff=
18549     ;;
18550   *)
18551     case $LD in # libtool.m4 will add one of these switches to LD
18552     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18553       libsuff= shlibsuff= libmagic=32-bit;;
18554     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18555       libsuff=32 shlibsuff=N32 libmagic=N32;;
18556     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18557       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18558     *) libsuff= shlibsuff= libmagic=never-match;;
18559     esac
18560     ;;
18561   esac
18562   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18563   shlibpath_overrides_runpath=no
18564   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18565   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18566   hardcode_into_libs=yes
18567   ;;
18568
18569 # No shared lib support for Linux oldld, aout, or coff.
18570 linux*oldld* | linux*aout* | linux*coff*)
18571   dynamic_linker=no
18572   ;;
18573
18574 # This must be Linux ELF.
18575 linux* | k*bsd*-gnu)
18576   version_type=linux
18577   need_lib_prefix=no
18578   need_version=no
18579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18580   soname_spec='${libname}${release}${shared_ext}$major'
18581   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18582   shlibpath_var=LD_LIBRARY_PATH
18583   shlibpath_overrides_runpath=no
18584   # This implies no fast_install, which is unacceptable.
18585   # Some rework will be needed to allow for fast_install
18586   # before this can be enabled.
18587   hardcode_into_libs=yes
18588
18589   # Append ld.so.conf contents to the search path
18590   if test -f /etc/ld.so.conf; then
18591     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;/^$/d' | tr '\n' ' '`
18592     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18593   fi
18594
18595   # We used to test for /lib/ld.so.1 and disable shared libraries on
18596   # powerpc, because MkLinux only supported shared libraries with the
18597   # GNU dynamic linker.  Since this was broken with cross compilers,
18598   # most powerpc-linux boxes support dynamic linking these days and
18599   # people can always --disable-shared, the test was removed, and we
18600   # assume the GNU/Linux dynamic linker is in use.
18601   dynamic_linker='GNU/Linux ld.so'
18602   ;;
18603
18604 netbsdelf*-gnu)
18605   version_type=linux
18606   need_lib_prefix=no
18607   need_version=no
18608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18609   soname_spec='${libname}${release}${shared_ext}$major'
18610   shlibpath_var=LD_LIBRARY_PATH
18611   shlibpath_overrides_runpath=no
18612   hardcode_into_libs=yes
18613   dynamic_linker='NetBSD ld.elf_so'
18614   ;;
18615
18616 netbsd*)
18617   version_type=sunos
18618   need_lib_prefix=no
18619   need_version=no
18620   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18622     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18623     dynamic_linker='NetBSD (a.out) ld.so'
18624   else
18625     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18626     soname_spec='${libname}${release}${shared_ext}$major'
18627     dynamic_linker='NetBSD ld.elf_so'
18628   fi
18629   shlibpath_var=LD_LIBRARY_PATH
18630   shlibpath_overrides_runpath=yes
18631   hardcode_into_libs=yes
18632   ;;
18633
18634 newsos6)
18635   version_type=linux
18636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18637   shlibpath_var=LD_LIBRARY_PATH
18638   shlibpath_overrides_runpath=yes
18639   ;;
18640
18641 nto-qnx*)
18642   version_type=linux
18643   need_lib_prefix=no
18644   need_version=no
18645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646   soname_spec='${libname}${release}${shared_ext}$major'
18647   shlibpath_var=LD_LIBRARY_PATH
18648   shlibpath_overrides_runpath=yes
18649   ;;
18650
18651 openbsd*)
18652   version_type=sunos
18653   sys_lib_dlsearch_path_spec="/usr/lib"
18654   need_lib_prefix=no
18655   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18656   case $host_os in
18657     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18658     *)                         need_version=no  ;;
18659   esac
18660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18661   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18662   shlibpath_var=LD_LIBRARY_PATH
18663   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18664     case $host_os in
18665       openbsd2.[89] | openbsd2.[89].*)
18666         shlibpath_overrides_runpath=no
18667         ;;
18668       *)
18669         shlibpath_overrides_runpath=yes
18670         ;;
18671       esac
18672   else
18673     shlibpath_overrides_runpath=yes
18674   fi
18675   ;;
18676
18677 os2*)
18678   libname_spec='$name'
18679   shrext_cmds=".dll"
18680   need_lib_prefix=no
18681   library_names_spec='$libname${shared_ext} $libname.a'
18682   dynamic_linker='OS/2 ld.exe'
18683   shlibpath_var=LIBPATH
18684   ;;
18685
18686 osf3* | osf4* | osf5*)
18687   version_type=osf
18688   need_lib_prefix=no
18689   need_version=no
18690   soname_spec='${libname}${release}${shared_ext}$major'
18691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18692   shlibpath_var=LD_LIBRARY_PATH
18693   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18694   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18695   ;;
18696
18697 rdos*)
18698   dynamic_linker=no
18699   ;;
18700
18701 solaris*)
18702   version_type=linux
18703   need_lib_prefix=no
18704   need_version=no
18705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18706   soname_spec='${libname}${release}${shared_ext}$major'
18707   shlibpath_var=LD_LIBRARY_PATH
18708   shlibpath_overrides_runpath=yes
18709   hardcode_into_libs=yes
18710   # ldd complains unless libraries are executable
18711   postinstall_cmds='chmod +x $lib'
18712   ;;
18713
18714 sunos4*)
18715   version_type=sunos
18716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18717   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18718   shlibpath_var=LD_LIBRARY_PATH
18719   shlibpath_overrides_runpath=yes
18720   if test "$with_gnu_ld" = yes; then
18721     need_lib_prefix=no
18722   fi
18723   need_version=yes
18724   ;;
18725
18726 sysv4 | sysv4.3*)
18727   version_type=linux
18728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729   soname_spec='${libname}${release}${shared_ext}$major'
18730   shlibpath_var=LD_LIBRARY_PATH
18731   case $host_vendor in
18732     sni)
18733       shlibpath_overrides_runpath=no
18734       need_lib_prefix=no
18735       export_dynamic_flag_spec='${wl}-Blargedynsym'
18736       runpath_var=LD_RUN_PATH
18737       ;;
18738     siemens)
18739       need_lib_prefix=no
18740       ;;
18741     motorola)
18742       need_lib_prefix=no
18743       need_version=no
18744       shlibpath_overrides_runpath=no
18745       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18746       ;;
18747   esac
18748   ;;
18749
18750 sysv4*MP*)
18751   if test -d /usr/nec ;then
18752     version_type=linux
18753     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18754     soname_spec='$libname${shared_ext}.$major'
18755     shlibpath_var=LD_LIBRARY_PATH
18756   fi
18757   ;;
18758
18759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18760   version_type=freebsd-elf
18761   need_lib_prefix=no
18762   need_version=no
18763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18764   soname_spec='${libname}${release}${shared_ext}$major'
18765   shlibpath_var=LD_LIBRARY_PATH
18766   hardcode_into_libs=yes
18767   if test "$with_gnu_ld" = yes; then
18768     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18769     shlibpath_overrides_runpath=no
18770   else
18771     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18772     shlibpath_overrides_runpath=yes
18773     case $host_os in
18774       sco3.2v5*)
18775         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18776         ;;
18777     esac
18778   fi
18779   sys_lib_dlsearch_path_spec='/usr/lib'
18780   ;;
18781
18782 uts4*)
18783   version_type=linux
18784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18785   soname_spec='${libname}${release}${shared_ext}$major'
18786   shlibpath_var=LD_LIBRARY_PATH
18787   ;;
18788
18789 *)
18790   dynamic_linker=no
18791   ;;
18792 esac
18793 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18794 echo "${ECHO_T}$dynamic_linker" >&6; }
18795 test "$dynamic_linker" = no && can_build_shared=no
18796
18797 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18798   echo $ECHO_N "(cached) $ECHO_C" >&6
18799 else
18800   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18801 fi
18802
18803 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18804 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18805   echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18808 fi
18809
18810 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18811
18812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18813 if test "$GCC" = yes; then
18814   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18815 fi
18816
18817 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18818 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18819 hardcode_action_GCJ=
18820 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18821    test -n "$runpath_var_GCJ" || \
18822    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18823
18824   # We can hardcode non-existant directories.
18825   if test "$hardcode_direct_GCJ" != no &&
18826      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18827      # have to relink, otherwise we might link with an installed library
18828      # when we should be linking with a yet-to-be-installed one
18829      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18830      test "$hardcode_minus_L_GCJ" != no; then
18831     # Linking always hardcodes the temporary library directory.
18832     hardcode_action_GCJ=relink
18833   else
18834     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18835     hardcode_action_GCJ=immediate
18836   fi
18837 else
18838   # We cannot hardcode anything, or else we can only hardcode existing
18839   # directories.
18840   hardcode_action_GCJ=unsupported
18841 fi
18842 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18843 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18844
18845 if test "$hardcode_action_GCJ" = relink; then
18846   # Fast installation is not supported
18847   enable_fast_install=no
18848 elif test "$shlibpath_overrides_runpath" = yes ||
18849      test "$enable_shared" = no; then
18850   # Fast installation is not necessary
18851   enable_fast_install=needless
18852 fi
18853
18854
18855 # The else clause should only fire when bootstrapping the
18856 # libtool distribution, otherwise you forgot to ship ltmain.sh
18857 # with your package, and you will get complaints that there are
18858 # no rules to generate ltmain.sh.
18859 if test -f "$ltmain"; then
18860   # See if we are running on zsh, and set the options which allow our commands through
18861   # without removal of \ escapes.
18862   if test -n "${ZSH_VERSION+set}" ; then
18863     setopt NO_GLOB_SUBST
18864   fi
18865   # Now quote all the things that may contain metacharacters while being
18866   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18867   # variables and quote the copies for generation of the libtool script.
18868   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18869     SED SHELL STRIP \
18870     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18871     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18872     deplibs_check_method reload_flag reload_cmds need_locks \
18873     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18874     lt_cv_sys_global_symbol_to_c_name_address \
18875     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18876     old_postinstall_cmds old_postuninstall_cmds \
18877     compiler_GCJ \
18878     CC_GCJ \
18879     LD_GCJ \
18880     lt_prog_compiler_wl_GCJ \
18881     lt_prog_compiler_pic_GCJ \
18882     lt_prog_compiler_static_GCJ \
18883     lt_prog_compiler_no_builtin_flag_GCJ \
18884     export_dynamic_flag_spec_GCJ \
18885     thread_safe_flag_spec_GCJ \
18886     whole_archive_flag_spec_GCJ \
18887     enable_shared_with_static_runtimes_GCJ \
18888     old_archive_cmds_GCJ \
18889     old_archive_from_new_cmds_GCJ \
18890     predep_objects_GCJ \
18891     postdep_objects_GCJ \
18892     predeps_GCJ \
18893     postdeps_GCJ \
18894     compiler_lib_search_path_GCJ \
18895     compiler_lib_search_dirs_GCJ \
18896     archive_cmds_GCJ \
18897     archive_expsym_cmds_GCJ \
18898     postinstall_cmds_GCJ \
18899     postuninstall_cmds_GCJ \
18900     old_archive_from_expsyms_cmds_GCJ \
18901     allow_undefined_flag_GCJ \
18902     no_undefined_flag_GCJ \
18903     export_symbols_cmds_GCJ \
18904     hardcode_libdir_flag_spec_GCJ \
18905     hardcode_libdir_flag_spec_ld_GCJ \
18906     hardcode_libdir_separator_GCJ \
18907     hardcode_automatic_GCJ \
18908     module_cmds_GCJ \
18909     module_expsym_cmds_GCJ \
18910     lt_cv_prog_compiler_c_o_GCJ \
18911     fix_srcfile_path_GCJ \
18912     exclude_expsyms_GCJ \
18913     include_expsyms_GCJ; do
18914
18915     case $var in
18916     old_archive_cmds_GCJ | \
18917     old_archive_from_new_cmds_GCJ | \
18918     archive_cmds_GCJ | \
18919     archive_expsym_cmds_GCJ | \
18920     module_cmds_GCJ | \
18921     module_expsym_cmds_GCJ | \
18922     old_archive_from_expsyms_cmds_GCJ | \
18923     export_symbols_cmds_GCJ | \
18924     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18925     postinstall_cmds | postuninstall_cmds | \
18926     old_postinstall_cmds | old_postuninstall_cmds | \
18927     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18928       # Double-quote double-evaled strings.
18929       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18930       ;;
18931     *)
18932       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18933       ;;
18934     esac
18935   done
18936
18937   case $lt_echo in
18938   *'\$0 --fallback-echo"')
18939     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18940     ;;
18941   esac
18942
18943 cfgfile="$ofile"
18944
18945   cat <<__EOF__ >> "$cfgfile"
18946 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18947
18948 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18949
18950 # Shell to use when invoking shell scripts.
18951 SHELL=$lt_SHELL
18952
18953 # Whether or not to build shared libraries.
18954 build_libtool_libs=$enable_shared
18955
18956 # Whether or not to build static libraries.
18957 build_old_libs=$enable_static
18958
18959 # Whether or not to add -lc for building shared libraries.
18960 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18961
18962 # Whether or not to disallow shared libs when runtime libs are static
18963 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18964
18965 # Whether or not to optimize for fast installation.
18966 fast_install=$enable_fast_install
18967
18968 # The host system.
18969 host_alias=$host_alias
18970 host=$host
18971 host_os=$host_os
18972
18973 # The build system.
18974 build_alias=$build_alias
18975 build=$build
18976 build_os=$build_os
18977
18978 # An echo program that does not interpret backslashes.
18979 echo=$lt_echo
18980
18981 # The archiver.
18982 AR=$lt_AR
18983 AR_FLAGS=$lt_AR_FLAGS
18984
18985 # A C compiler.
18986 LTCC=$lt_LTCC
18987
18988 # LTCC compiler flags.
18989 LTCFLAGS=$lt_LTCFLAGS
18990
18991 # A language-specific compiler.
18992 CC=$lt_compiler_GCJ
18993
18994 # Is the compiler the GNU C compiler?
18995 with_gcc=$GCC_GCJ
18996
18997 # An ERE matcher.
18998 EGREP=$lt_EGREP
18999
19000 # The linker used to build libraries.
19001 LD=$lt_LD_GCJ
19002
19003 # Whether we need hard or soft links.
19004 LN_S=$lt_LN_S
19005
19006 # A BSD-compatible nm program.
19007 NM=$lt_NM
19008
19009 # A symbol stripping program
19010 STRIP=$lt_STRIP
19011
19012 # Used to examine libraries when file_magic_cmd begins "file"
19013 MAGIC_CMD=$MAGIC_CMD
19014
19015 # Used on cygwin: DLL creation program.
19016 DLLTOOL="$DLLTOOL"
19017
19018 # Used on cygwin: object dumper.
19019 OBJDUMP="$OBJDUMP"
19020
19021 # Used on cygwin: assembler.
19022 AS="$AS"
19023
19024 # The name of the directory that contains temporary libtool files.
19025 objdir=$objdir
19026
19027 # How to create reloadable object files.
19028 reload_flag=$lt_reload_flag
19029 reload_cmds=$lt_reload_cmds
19030
19031 # How to pass a linker flag through the compiler.
19032 wl=$lt_lt_prog_compiler_wl_GCJ
19033
19034 # Object file suffix (normally "o").
19035 objext="$ac_objext"
19036
19037 # Old archive suffix (normally "a").
19038 libext="$libext"
19039
19040 # Shared library suffix (normally ".so").
19041 shrext_cmds='$shrext_cmds'
19042
19043 # Executable file suffix (normally "").
19044 exeext="$exeext"
19045
19046 # Additional compiler flags for building library objects.
19047 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19048 pic_mode=$pic_mode
19049
19050 # What is the maximum length of a command?
19051 max_cmd_len=$lt_cv_sys_max_cmd_len
19052
19053 # Does compiler simultaneously support -c and -o options?
19054 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19055
19056 # Must we lock files when doing compilation?
19057 need_locks=$lt_need_locks
19058
19059 # Do we need the lib prefix for modules?
19060 need_lib_prefix=$need_lib_prefix
19061
19062 # Do we need a version for libraries?
19063 need_version=$need_version
19064
19065 # Whether dlopen is supported.
19066 dlopen_support=$enable_dlopen
19067
19068 # Whether dlopen of programs is supported.
19069 dlopen_self=$enable_dlopen_self
19070
19071 # Whether dlopen of statically linked programs is supported.
19072 dlopen_self_static=$enable_dlopen_self_static
19073
19074 # Compiler flag to prevent dynamic linking.
19075 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19076
19077 # Compiler flag to turn off builtin functions.
19078 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19079
19080 # Compiler flag to allow reflexive dlopens.
19081 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19082
19083 # Compiler flag to generate shared objects directly from archives.
19084 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19085
19086 # Compiler flag to generate thread-safe objects.
19087 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19088
19089 # Library versioning type.
19090 version_type=$version_type
19091
19092 # Format of library name prefix.
19093 libname_spec=$lt_libname_spec
19094
19095 # List of archive names.  First name is the real one, the rest are links.
19096 # The last name is the one that the linker finds with -lNAME.
19097 library_names_spec=$lt_library_names_spec
19098
19099 # The coded name of the library, if different from the real name.
19100 soname_spec=$lt_soname_spec
19101
19102 # Commands used to build and install an old-style archive.
19103 RANLIB=$lt_RANLIB
19104 old_archive_cmds=$lt_old_archive_cmds_GCJ
19105 old_postinstall_cmds=$lt_old_postinstall_cmds
19106 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19107
19108 # Create an old-style archive from a shared archive.
19109 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19110
19111 # Create a temporary old-style archive to link instead of a shared archive.
19112 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19113
19114 # Commands used to build and install a shared archive.
19115 archive_cmds=$lt_archive_cmds_GCJ
19116 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19117 postinstall_cmds=$lt_postinstall_cmds
19118 postuninstall_cmds=$lt_postuninstall_cmds
19119
19120 # Commands used to build a loadable module (assumed same as above if empty)
19121 module_cmds=$lt_module_cmds_GCJ
19122 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19123
19124 # Commands to strip libraries.
19125 old_striplib=$lt_old_striplib
19126 striplib=$lt_striplib
19127
19128 # Dependencies to place before the objects being linked to create a
19129 # shared library.
19130 predep_objects=$lt_predep_objects_GCJ
19131
19132 # Dependencies to place after the objects being linked to create a
19133 # shared library.
19134 postdep_objects=$lt_postdep_objects_GCJ
19135
19136 # Dependencies to place before the objects being linked to create a
19137 # shared library.
19138 predeps=$lt_predeps_GCJ
19139
19140 # Dependencies to place after the objects being linked to create a
19141 # shared library.
19142 postdeps=$lt_postdeps_GCJ
19143
19144 # The directories searched by this compiler when creating a shared
19145 # library
19146 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19147
19148 # The library search path used internally by the compiler when linking
19149 # a shared library.
19150 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19151
19152 # Method to check whether dependent libraries are shared objects.
19153 deplibs_check_method=$lt_deplibs_check_method
19154
19155 # Command to use when deplibs_check_method == file_magic.
19156 file_magic_cmd=$lt_file_magic_cmd
19157
19158 # Flag that allows shared libraries with undefined symbols to be built.
19159 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19160
19161 # Flag that forces no undefined symbols.
19162 no_undefined_flag=$lt_no_undefined_flag_GCJ
19163
19164 # Commands used to finish a libtool library installation in a directory.
19165 finish_cmds=$lt_finish_cmds
19166
19167 # Same as above, but a single script fragment to be evaled but not shown.
19168 finish_eval=$lt_finish_eval
19169
19170 # Take the output of nm and produce a listing of raw symbols and C names.
19171 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19172
19173 # Transform the output of nm in a proper C declaration
19174 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19175
19176 # Transform the output of nm in a C name address pair
19177 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19178
19179 # This is the shared library runtime path variable.
19180 runpath_var=$runpath_var
19181
19182 # This is the shared library path variable.
19183 shlibpath_var=$shlibpath_var
19184
19185 # Is shlibpath searched before the hard-coded library search path?
19186 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19187
19188 # How to hardcode a shared library path into an executable.
19189 hardcode_action=$hardcode_action_GCJ
19190
19191 # Whether we should hardcode library paths into libraries.
19192 hardcode_into_libs=$hardcode_into_libs
19193
19194 # Flag to hardcode \$libdir into a binary during linking.
19195 # This must work even if \$libdir does not exist.
19196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19197
19198 # If ld is used when linking, flag to hardcode \$libdir into
19199 # a binary during linking. This must work even if \$libdir does
19200 # not exist.
19201 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19202
19203 # Whether we need a single -rpath flag with a separated argument.
19204 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19205
19206 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19207 # resulting binary.
19208 hardcode_direct=$hardcode_direct_GCJ
19209
19210 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19211 # resulting binary.
19212 hardcode_minus_L=$hardcode_minus_L_GCJ
19213
19214 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19215 # the resulting binary.
19216 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19217
19218 # Set to yes if building a shared library automatically hardcodes DIR into the library
19219 # and all subsequent libraries and executables linked against it.
19220 hardcode_automatic=$hardcode_automatic_GCJ
19221
19222 # Variables whose values should be saved in libtool wrapper scripts and
19223 # restored at relink time.
19224 variables_saved_for_relink="$variables_saved_for_relink"
19225
19226 # Whether libtool must link a program against all its dependency libraries.
19227 link_all_deplibs=$link_all_deplibs_GCJ
19228
19229 # Compile-time system search path for libraries
19230 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19231
19232 # Run-time system search path for libraries
19233 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19234
19235 # Fix the shell variable \$srcfile for the compiler.
19236 fix_srcfile_path=$lt_fix_srcfile_path
19237
19238 # Set to yes if exported symbols are required.
19239 always_export_symbols=$always_export_symbols_GCJ
19240
19241 # The commands to list exported symbols.
19242 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19243
19244 # The commands to extract the exported symbol list from a shared archive.
19245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19246
19247 # Symbols that should not be listed in the preloaded symbols.
19248 exclude_expsyms=$lt_exclude_expsyms_GCJ
19249
19250 # Symbols that must always be exported.
19251 include_expsyms=$lt_include_expsyms_GCJ
19252
19253 # ### END LIBTOOL TAG CONFIG: $tagname
19254
19255 __EOF__
19256
19257
19258 else
19259   # If there is no Makefile yet, we rely on a make rule to execute
19260   # `config.status --recheck' to rerun these tests and create the
19261   # libtool script then.
19262   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19263   if test -f "$ltmain_in"; then
19264     test -f Makefile && make "$ltmain"
19265   fi
19266 fi
19267
19268
19269 ac_ext=cpp
19270 ac_cpp='$CXXCPP $CPPFLAGS'
19271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19274
19275 CC="$lt_save_CC"
19276
19277         else
19278           tagname=""
19279         fi
19280         ;;
19281
19282       RC)
19283
19284
19285 # Source file extension for RC test sources.
19286 ac_ext=rc
19287
19288 # Object file extension for compiled RC test sources.
19289 objext=o
19290 objext_RC=$objext
19291
19292 # Code to be used in simple compile tests
19293 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19294
19295 # Code to be used in simple link tests
19296 lt_simple_link_test_code="$lt_simple_compile_test_code"
19297
19298 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19299
19300 # If no C compiler was specified, use CC.
19301 LTCC=${LTCC-"$CC"}
19302
19303 # If no C compiler flags were specified, use CFLAGS.
19304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19305
19306 # Allow CC to be a program name with arguments.
19307 compiler=$CC
19308
19309
19310 # save warnings/boilerplate of simple test code
19311 ac_outfile=conftest.$ac_objext
19312 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19313 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19314 _lt_compiler_boilerplate=`cat conftest.err`
19315 $rm conftest*
19316
19317 ac_outfile=conftest.$ac_objext
19318 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19319 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19320 _lt_linker_boilerplate=`cat conftest.err`
19321 $rm -r conftest*
19322
19323
19324 # Allow CC to be a program name with arguments.
19325 lt_save_CC="$CC"
19326 CC=${RC-"windres"}
19327 compiler=$CC
19328 compiler_RC=$CC
19329 for cc_temp in $compiler""; do
19330   case $cc_temp in
19331     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19332     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19333     \-*) ;;
19334     *) break;;
19335   esac
19336 done
19337 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19338
19339 lt_cv_prog_compiler_c_o_RC=yes
19340
19341 # The else clause should only fire when bootstrapping the
19342 # libtool distribution, otherwise you forgot to ship ltmain.sh
19343 # with your package, and you will get complaints that there are
19344 # no rules to generate ltmain.sh.
19345 if test -f "$ltmain"; then
19346   # See if we are running on zsh, and set the options which allow our commands through
19347   # without removal of \ escapes.
19348   if test -n "${ZSH_VERSION+set}" ; then
19349     setopt NO_GLOB_SUBST
19350   fi
19351   # Now quote all the things that may contain metacharacters while being
19352   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19353   # variables and quote the copies for generation of the libtool script.
19354   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19355     SED SHELL STRIP \
19356     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19357     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19358     deplibs_check_method reload_flag reload_cmds need_locks \
19359     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19360     lt_cv_sys_global_symbol_to_c_name_address \
19361     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19362     old_postinstall_cmds old_postuninstall_cmds \
19363     compiler_RC \
19364     CC_RC \
19365     LD_RC \
19366     lt_prog_compiler_wl_RC \
19367     lt_prog_compiler_pic_RC \
19368     lt_prog_compiler_static_RC \
19369     lt_prog_compiler_no_builtin_flag_RC \
19370     export_dynamic_flag_spec_RC \
19371     thread_safe_flag_spec_RC \
19372     whole_archive_flag_spec_RC \
19373     enable_shared_with_static_runtimes_RC \
19374     old_archive_cmds_RC \
19375     old_archive_from_new_cmds_RC \
19376     predep_objects_RC \
19377     postdep_objects_RC \
19378     predeps_RC \
19379     postdeps_RC \
19380     compiler_lib_search_path_RC \
19381     compiler_lib_search_dirs_RC \
19382     archive_cmds_RC \
19383     archive_expsym_cmds_RC \
19384     postinstall_cmds_RC \
19385     postuninstall_cmds_RC \
19386     old_archive_from_expsyms_cmds_RC \
19387     allow_undefined_flag_RC \
19388     no_undefined_flag_RC \
19389     export_symbols_cmds_RC \
19390     hardcode_libdir_flag_spec_RC \
19391     hardcode_libdir_flag_spec_ld_RC \
19392     hardcode_libdir_separator_RC \
19393     hardcode_automatic_RC \
19394     module_cmds_RC \
19395     module_expsym_cmds_RC \
19396     lt_cv_prog_compiler_c_o_RC \
19397     fix_srcfile_path_RC \
19398     exclude_expsyms_RC \
19399     include_expsyms_RC; do
19400
19401     case $var in
19402     old_archive_cmds_RC | \
19403     old_archive_from_new_cmds_RC | \
19404     archive_cmds_RC | \
19405     archive_expsym_cmds_RC | \
19406     module_cmds_RC | \
19407     module_expsym_cmds_RC | \
19408     old_archive_from_expsyms_cmds_RC | \
19409     export_symbols_cmds_RC | \
19410     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19411     postinstall_cmds | postuninstall_cmds | \
19412     old_postinstall_cmds | old_postuninstall_cmds | \
19413     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19414       # Double-quote double-evaled strings.
19415       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19416       ;;
19417     *)
19418       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19419       ;;
19420     esac
19421   done
19422
19423   case $lt_echo in
19424   *'\$0 --fallback-echo"')
19425     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19426     ;;
19427   esac
19428
19429 cfgfile="$ofile"
19430
19431   cat <<__EOF__ >> "$cfgfile"
19432 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19433
19434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19435
19436 # Shell to use when invoking shell scripts.
19437 SHELL=$lt_SHELL
19438
19439 # Whether or not to build shared libraries.
19440 build_libtool_libs=$enable_shared
19441
19442 # Whether or not to build static libraries.
19443 build_old_libs=$enable_static
19444
19445 # Whether or not to add -lc for building shared libraries.
19446 build_libtool_need_lc=$archive_cmds_need_lc_RC
19447
19448 # Whether or not to disallow shared libs when runtime libs are static
19449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19450
19451 # Whether or not to optimize for fast installation.
19452 fast_install=$enable_fast_install
19453
19454 # The host system.
19455 host_alias=$host_alias
19456 host=$host
19457 host_os=$host_os
19458
19459 # The build system.
19460 build_alias=$build_alias
19461 build=$build
19462 build_os=$build_os
19463
19464 # An echo program that does not interpret backslashes.
19465 echo=$lt_echo
19466
19467 # The archiver.
19468 AR=$lt_AR
19469 AR_FLAGS=$lt_AR_FLAGS
19470
19471 # A C compiler.
19472 LTCC=$lt_LTCC
19473
19474 # LTCC compiler flags.
19475 LTCFLAGS=$lt_LTCFLAGS
19476
19477 # A language-specific compiler.
19478 CC=$lt_compiler_RC
19479
19480 # Is the compiler the GNU C compiler?
19481 with_gcc=$GCC_RC
19482
19483 # An ERE matcher.
19484 EGREP=$lt_EGREP
19485
19486 # The linker used to build libraries.
19487 LD=$lt_LD_RC
19488
19489 # Whether we need hard or soft links.
19490 LN_S=$lt_LN_S
19491
19492 # A BSD-compatible nm program.
19493 NM=$lt_NM
19494
19495 # A symbol stripping program
19496 STRIP=$lt_STRIP
19497
19498 # Used to examine libraries when file_magic_cmd begins "file"
19499 MAGIC_CMD=$MAGIC_CMD
19500
19501 # Used on cygwin: DLL creation program.
19502 DLLTOOL="$DLLTOOL"
19503
19504 # Used on cygwin: object dumper.
19505 OBJDUMP="$OBJDUMP"
19506
19507 # Used on cygwin: assembler.
19508 AS="$AS"
19509
19510 # The name of the directory that contains temporary libtool files.
19511 objdir=$objdir
19512
19513 # How to create reloadable object files.
19514 reload_flag=$lt_reload_flag
19515 reload_cmds=$lt_reload_cmds
19516
19517 # How to pass a linker flag through the compiler.
19518 wl=$lt_lt_prog_compiler_wl_RC
19519
19520 # Object file suffix (normally "o").
19521 objext="$ac_objext"
19522
19523 # Old archive suffix (normally "a").
19524 libext="$libext"
19525
19526 # Shared library suffix (normally ".so").
19527 shrext_cmds='$shrext_cmds'
19528
19529 # Executable file suffix (normally "").
19530 exeext="$exeext"
19531
19532 # Additional compiler flags for building library objects.
19533 pic_flag=$lt_lt_prog_compiler_pic_RC
19534 pic_mode=$pic_mode
19535
19536 # What is the maximum length of a command?
19537 max_cmd_len=$lt_cv_sys_max_cmd_len
19538
19539 # Does compiler simultaneously support -c and -o options?
19540 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19541
19542 # Must we lock files when doing compilation?
19543 need_locks=$lt_need_locks
19544
19545 # Do we need the lib prefix for modules?
19546 need_lib_prefix=$need_lib_prefix
19547
19548 # Do we need a version for libraries?
19549 need_version=$need_version
19550
19551 # Whether dlopen is supported.
19552 dlopen_support=$enable_dlopen
19553
19554 # Whether dlopen of programs is supported.
19555 dlopen_self=$enable_dlopen_self
19556
19557 # Whether dlopen of statically linked programs is supported.
19558 dlopen_self_static=$enable_dlopen_self_static
19559
19560 # Compiler flag to prevent dynamic linking.
19561 link_static_flag=$lt_lt_prog_compiler_static_RC
19562
19563 # Compiler flag to turn off builtin functions.
19564 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19565
19566 # Compiler flag to allow reflexive dlopens.
19567 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19568
19569 # Compiler flag to generate shared objects directly from archives.
19570 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19571
19572 # Compiler flag to generate thread-safe objects.
19573 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19574
19575 # Library versioning type.
19576 version_type=$version_type
19577
19578 # Format of library name prefix.
19579 libname_spec=$lt_libname_spec
19580
19581 # List of archive names.  First name is the real one, the rest are links.
19582 # The last name is the one that the linker finds with -lNAME.
19583 library_names_spec=$lt_library_names_spec
19584
19585 # The coded name of the library, if different from the real name.
19586 soname_spec=$lt_soname_spec
19587
19588 # Commands used to build and install an old-style archive.
19589 RANLIB=$lt_RANLIB
19590 old_archive_cmds=$lt_old_archive_cmds_RC
19591 old_postinstall_cmds=$lt_old_postinstall_cmds
19592 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19593
19594 # Create an old-style archive from a shared archive.
19595 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19596
19597 # Create a temporary old-style archive to link instead of a shared archive.
19598 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19599
19600 # Commands used to build and install a shared archive.
19601 archive_cmds=$lt_archive_cmds_RC
19602 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19603 postinstall_cmds=$lt_postinstall_cmds
19604 postuninstall_cmds=$lt_postuninstall_cmds
19605
19606 # Commands used to build a loadable module (assumed same as above if empty)
19607 module_cmds=$lt_module_cmds_RC
19608 module_expsym_cmds=$lt_module_expsym_cmds_RC
19609
19610 # Commands to strip libraries.
19611 old_striplib=$lt_old_striplib
19612 striplib=$lt_striplib
19613
19614 # Dependencies to place before the objects being linked to create a
19615 # shared library.
19616 predep_objects=$lt_predep_objects_RC
19617
19618 # Dependencies to place after the objects being linked to create a
19619 # shared library.
19620 postdep_objects=$lt_postdep_objects_RC
19621
19622 # Dependencies to place before the objects being linked to create a
19623 # shared library.
19624 predeps=$lt_predeps_RC
19625
19626 # Dependencies to place after the objects being linked to create a
19627 # shared library.
19628 postdeps=$lt_postdeps_RC
19629
19630 # The directories searched by this compiler when creating a shared
19631 # library
19632 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19633
19634 # The library search path used internally by the compiler when linking
19635 # a shared library.
19636 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19637
19638 # Method to check whether dependent libraries are shared objects.
19639 deplibs_check_method=$lt_deplibs_check_method
19640
19641 # Command to use when deplibs_check_method == file_magic.
19642 file_magic_cmd=$lt_file_magic_cmd
19643
19644 # Flag that allows shared libraries with undefined symbols to be built.
19645 allow_undefined_flag=$lt_allow_undefined_flag_RC
19646
19647 # Flag that forces no undefined symbols.
19648 no_undefined_flag=$lt_no_undefined_flag_RC
19649
19650 # Commands used to finish a libtool library installation in a directory.
19651 finish_cmds=$lt_finish_cmds
19652
19653 # Same as above, but a single script fragment to be evaled but not shown.
19654 finish_eval=$lt_finish_eval
19655
19656 # Take the output of nm and produce a listing of raw symbols and C names.
19657 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19658
19659 # Transform the output of nm in a proper C declaration
19660 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19661
19662 # Transform the output of nm in a C name address pair
19663 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19664
19665 # This is the shared library runtime path variable.
19666 runpath_var=$runpath_var
19667
19668 # This is the shared library path variable.
19669 shlibpath_var=$shlibpath_var
19670
19671 # Is shlibpath searched before the hard-coded library search path?
19672 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19673
19674 # How to hardcode a shared library path into an executable.
19675 hardcode_action=$hardcode_action_RC
19676
19677 # Whether we should hardcode library paths into libraries.
19678 hardcode_into_libs=$hardcode_into_libs
19679
19680 # Flag to hardcode \$libdir into a binary during linking.
19681 # This must work even if \$libdir does not exist.
19682 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19683
19684 # If ld is used when linking, flag to hardcode \$libdir into
19685 # a binary during linking. This must work even if \$libdir does
19686 # not exist.
19687 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19688
19689 # Whether we need a single -rpath flag with a separated argument.
19690 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19691
19692 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19693 # resulting binary.
19694 hardcode_direct=$hardcode_direct_RC
19695
19696 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19697 # resulting binary.
19698 hardcode_minus_L=$hardcode_minus_L_RC
19699
19700 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19701 # the resulting binary.
19702 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19703
19704 # Set to yes if building a shared library automatically hardcodes DIR into the library
19705 # and all subsequent libraries and executables linked against it.
19706 hardcode_automatic=$hardcode_automatic_RC
19707
19708 # Variables whose values should be saved in libtool wrapper scripts and
19709 # restored at relink time.
19710 variables_saved_for_relink="$variables_saved_for_relink"
19711
19712 # Whether libtool must link a program against all its dependency libraries.
19713 link_all_deplibs=$link_all_deplibs_RC
19714
19715 # Compile-time system search path for libraries
19716 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19717
19718 # Run-time system search path for libraries
19719 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19720
19721 # Fix the shell variable \$srcfile for the compiler.
19722 fix_srcfile_path=$lt_fix_srcfile_path
19723
19724 # Set to yes if exported symbols are required.
19725 always_export_symbols=$always_export_symbols_RC
19726
19727 # The commands to list exported symbols.
19728 export_symbols_cmds=$lt_export_symbols_cmds_RC
19729
19730 # The commands to extract the exported symbol list from a shared archive.
19731 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19732
19733 # Symbols that should not be listed in the preloaded symbols.
19734 exclude_expsyms=$lt_exclude_expsyms_RC
19735
19736 # Symbols that must always be exported.
19737 include_expsyms=$lt_include_expsyms_RC
19738
19739 # ### END LIBTOOL TAG CONFIG: $tagname
19740
19741 __EOF__
19742
19743
19744 else
19745   # If there is no Makefile yet, we rely on a make rule to execute
19746   # `config.status --recheck' to rerun these tests and create the
19747   # libtool script then.
19748   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19749   if test -f "$ltmain_in"; then
19750     test -f Makefile && make "$ltmain"
19751   fi
19752 fi
19753
19754
19755 ac_ext=cpp
19756 ac_cpp='$CXXCPP $CPPFLAGS'
19757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19760
19761 CC="$lt_save_CC"
19762
19763         ;;
19764
19765       *)
19766         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19767 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19768    { (exit 1); exit 1; }; }
19769         ;;
19770       esac
19771
19772       # Append the new tag name to the list of available tags.
19773       if test -n "$tagname" ; then
19774       available_tags="$available_tags $tagname"
19775     fi
19776     fi
19777   done
19778   IFS="$lt_save_ifs"
19779
19780   # Now substitute the updated list of available tags.
19781   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19782     mv "${ofile}T" "$ofile"
19783     chmod +x "$ofile"
19784   else
19785     rm -f "${ofile}T"
19786     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19787 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19788    { (exit 1); exit 1; }; }
19789   fi
19790 fi
19791
19792
19793
19794 # This can be used to rebuild libtool when needed
19795 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19796
19797 # Always use our own libtool.
19798 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19799
19800 # Prevent multiple expansion
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823 # Check whether some low-level functions/files are available
19824
19825 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19827 if test "${ac_cv_header_stdc+set}" = set; then
19828   echo $ECHO_N "(cached) $ECHO_C" >&6
19829 else
19830   cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h.  */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h.  */
19836 #include <stdlib.h>
19837 #include <stdarg.h>
19838 #include <string.h>
19839 #include <float.h>
19840
19841 int
19842 main ()
19843 {
19844
19845   ;
19846   return 0;
19847 }
19848 _ACEOF
19849 rm -f conftest.$ac_objext
19850 if { (ac_try="$ac_compile"
19851 case "(($ac_try" in
19852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853   *) ac_try_echo=$ac_try;;
19854 esac
19855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856   (eval "$ac_compile") 2>conftest.er1
19857   ac_status=$?
19858   grep -v '^ *+' conftest.er1 >conftest.err
19859   rm -f conftest.er1
19860   cat conftest.err >&5
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } && {
19863          test -z "$ac_cxx_werror_flag" ||
19864          test ! -s conftest.err
19865        } && test -s conftest.$ac_objext; then
19866   ac_cv_header_stdc=yes
19867 else
19868   echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19870
19871         ac_cv_header_stdc=no
19872 fi
19873
19874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19875
19876 if test $ac_cv_header_stdc = yes; then
19877   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19878   cat >conftest.$ac_ext <<_ACEOF
19879 /* confdefs.h.  */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h.  */
19884 #include <string.h>
19885
19886 _ACEOF
19887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19888   $EGREP "memchr" >/dev/null 2>&1; then
19889   :
19890 else
19891   ac_cv_header_stdc=no
19892 fi
19893 rm -f conftest*
19894
19895 fi
19896
19897 if test $ac_cv_header_stdc = yes; then
19898   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19899   cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h.  */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h.  */
19905 #include <stdlib.h>
19906
19907 _ACEOF
19908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19909   $EGREP "free" >/dev/null 2>&1; then
19910   :
19911 else
19912   ac_cv_header_stdc=no
19913 fi
19914 rm -f conftest*
19915
19916 fi
19917
19918 if test $ac_cv_header_stdc = yes; then
19919   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19920   if test "$cross_compiling" = yes; then
19921   :
19922 else
19923   cat >conftest.$ac_ext <<_ACEOF
19924 /* confdefs.h.  */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h.  */
19929 #include <ctype.h>
19930 #include <stdlib.h>
19931 #if ((' ' & 0x0FF) == 0x020)
19932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19934 #else
19935 # define ISLOWER(c) \
19936                    (('a' <= (c) && (c) <= 'i') \
19937                      || ('j' <= (c) && (c) <= 'r') \
19938                      || ('s' <= (c) && (c) <= 'z'))
19939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19940 #endif
19941
19942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19943 int
19944 main ()
19945 {
19946   int i;
19947   for (i = 0; i < 256; i++)
19948     if (XOR (islower (i), ISLOWER (i))
19949         || toupper (i) != TOUPPER (i))
19950       return 2;
19951   return 0;
19952 }
19953 _ACEOF
19954 rm -f conftest$ac_exeext
19955 if { (ac_try="$ac_link"
19956 case "(($ac_try" in
19957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958   *) ac_try_echo=$ac_try;;
19959 esac
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961   (eval "$ac_link") 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19965   { (case "(($ac_try" in
19966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967   *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970   (eval "$ac_try") 2>&5
19971   ac_status=$?
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); }; }; then
19974   :
19975 else
19976   echo "$as_me: program exited with status $ac_status" >&5
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19979
19980 ( exit $ac_status )
19981 ac_cv_header_stdc=no
19982 fi
19983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19984 fi
19985
19986
19987 fi
19988 fi
19989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19991 if test $ac_cv_header_stdc = yes; then
19992
19993 cat >>confdefs.h <<\_ACEOF
19994 #define STDC_HEADERS 1
19995 _ACEOF
19996
19997 fi
19998
19999
20000 # These are tested for by AC_HEADER_STDC, but I check again to set the var
20001 if test "${ac_cv_header_stdint_h+set}" = set; then
20002   { echo "$as_me:$LINENO: checking for stdint.h" >&5
20003 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20004 if test "${ac_cv_header_stdint_h+set}" = set; then
20005   echo $ECHO_N "(cached) $ECHO_C" >&6
20006 fi
20007 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20008 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20009 else
20010   # Is the header compilable?
20011 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
20012 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019 $ac_includes_default
20020 #include <stdint.h>
20021 _ACEOF
20022 rm -f conftest.$ac_objext
20023 if { (ac_try="$ac_compile"
20024 case "(($ac_try" in
20025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026   *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029   (eval "$ac_compile") 2>conftest.er1
20030   ac_status=$?
20031   grep -v '^ *+' conftest.er1 >conftest.err
20032   rm -f conftest.er1
20033   cat conftest.err >&5
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } && {
20036          test -z "$ac_cxx_werror_flag" ||
20037          test ! -s conftest.err
20038        } && test -s conftest.$ac_objext; then
20039   ac_header_compiler=yes
20040 else
20041   echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044         ac_header_compiler=no
20045 fi
20046
20047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20049 echo "${ECHO_T}$ac_header_compiler" >&6; }
20050
20051 # Is the header present?
20052 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20053 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20054 cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h.  */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h.  */
20060 #include <stdint.h>
20061 _ACEOF
20062 if { (ac_try="$ac_cpp conftest.$ac_ext"
20063 case "(($ac_try" in
20064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065   *) ac_try_echo=$ac_try;;
20066 esac
20067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20069   ac_status=$?
20070   grep -v '^ *+' conftest.er1 >conftest.err
20071   rm -f conftest.er1
20072   cat conftest.err >&5
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); } >/dev/null && {
20075          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20076          test ! -s conftest.err
20077        }; then
20078   ac_header_preproc=yes
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083   ac_header_preproc=no
20084 fi
20085
20086 rm -f conftest.err conftest.$ac_ext
20087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20088 echo "${ECHO_T}$ac_header_preproc" >&6; }
20089
20090 # So?  What about this header?
20091 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20092   yes:no: )
20093     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20094 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20095     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20096 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20097     ac_header_preproc=yes
20098     ;;
20099   no:yes:* )
20100     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20101 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20102     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20103 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20104     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20105 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20106     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20107 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20108     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20109 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20110     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20111 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20112     ( cat <<\_ASBOX
20113 ## ------------------------------------ ##
20114 ## Report this to opensource@google.com ##
20115 ## ------------------------------------ ##
20116 _ASBOX
20117      ) | sed "s/^/$as_me: WARNING:     /" >&2
20118     ;;
20119 esac
20120 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20121 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20122 if test "${ac_cv_header_stdint_h+set}" = set; then
20123   echo $ECHO_N "(cached) $ECHO_C" >&6
20124 else
20125   ac_cv_header_stdint_h=$ac_header_preproc
20126 fi
20127 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20128 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20129
20130 fi
20131 if test $ac_cv_header_stdint_h = yes; then
20132   ac_cv_have_stdint_h=1
20133 else
20134   ac_cv_have_stdint_h=0
20135 fi
20136
20137
20138 if test "${ac_cv_header_sys_types_h+set}" = set; then
20139   { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20140 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20141 if test "${ac_cv_header_sys_types_h+set}" = set; then
20142   echo $ECHO_N "(cached) $ECHO_C" >&6
20143 fi
20144 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20145 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20146 else
20147   # Is the header compilable?
20148 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20149 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h.  */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h.  */
20156 $ac_includes_default
20157 #include <sys/types.h>
20158 _ACEOF
20159 rm -f conftest.$ac_objext
20160 if { (ac_try="$ac_compile"
20161 case "(($ac_try" in
20162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163   *) ac_try_echo=$ac_try;;
20164 esac
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166   (eval "$ac_compile") 2>conftest.er1
20167   ac_status=$?
20168   grep -v '^ *+' conftest.er1 >conftest.err
20169   rm -f conftest.er1
20170   cat conftest.err >&5
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); } && {
20173          test -z "$ac_cxx_werror_flag" ||
20174          test ! -s conftest.err
20175        } && test -s conftest.$ac_objext; then
20176   ac_header_compiler=yes
20177 else
20178   echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20180
20181         ac_header_compiler=no
20182 fi
20183
20184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20186 echo "${ECHO_T}$ac_header_compiler" >&6; }
20187
20188 # Is the header present?
20189 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20190 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20191 cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h.  */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h.  */
20197 #include <sys/types.h>
20198 _ACEOF
20199 if { (ac_try="$ac_cpp conftest.$ac_ext"
20200 case "(($ac_try" in
20201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202   *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20206   ac_status=$?
20207   grep -v '^ *+' conftest.er1 >conftest.err
20208   rm -f conftest.er1
20209   cat conftest.err >&5
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); } >/dev/null && {
20212          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20213          test ! -s conftest.err
20214        }; then
20215   ac_header_preproc=yes
20216 else
20217   echo "$as_me: failed program was:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20219
20220   ac_header_preproc=no
20221 fi
20222
20223 rm -f conftest.err conftest.$ac_ext
20224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20225 echo "${ECHO_T}$ac_header_preproc" >&6; }
20226
20227 # So?  What about this header?
20228 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20229   yes:no: )
20230     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20231 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20232     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20233 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20234     ac_header_preproc=yes
20235     ;;
20236   no:yes:* )
20237     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20238 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20239     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20240 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20241     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20242 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20243     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20244 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20245     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20246 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20247     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20248 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20249     ( cat <<\_ASBOX
20250 ## ------------------------------------ ##
20251 ## Report this to opensource@google.com ##
20252 ## ------------------------------------ ##
20253 _ASBOX
20254      ) | sed "s/^/$as_me: WARNING:     /" >&2
20255     ;;
20256 esac
20257 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20258 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20259 if test "${ac_cv_header_sys_types_h+set}" = set; then
20260   echo $ECHO_N "(cached) $ECHO_C" >&6
20261 else
20262   ac_cv_header_sys_types_h=$ac_header_preproc
20263 fi
20264 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20265 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20266
20267 fi
20268 if test $ac_cv_header_sys_types_h = yes; then
20269   ac_cv_have_systypes_h=1
20270 else
20271   ac_cv_have_systypes_h=0
20272 fi
20273
20274
20275 if test "${ac_cv_header_inttypes_h+set}" = set; then
20276   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20277 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20278 if test "${ac_cv_header_inttypes_h+set}" = set; then
20279   echo $ECHO_N "(cached) $ECHO_C" >&6
20280 fi
20281 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20282 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20283 else
20284   # Is the header compilable?
20285 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20286 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20287 cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h.  */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h.  */
20293 $ac_includes_default
20294 #include <inttypes.h>
20295 _ACEOF
20296 rm -f conftest.$ac_objext
20297 if { (ac_try="$ac_compile"
20298 case "(($ac_try" in
20299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300   *) ac_try_echo=$ac_try;;
20301 esac
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303   (eval "$ac_compile") 2>conftest.er1
20304   ac_status=$?
20305   grep -v '^ *+' conftest.er1 >conftest.err
20306   rm -f conftest.er1
20307   cat conftest.err >&5
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); } && {
20310          test -z "$ac_cxx_werror_flag" ||
20311          test ! -s conftest.err
20312        } && test -s conftest.$ac_objext; then
20313   ac_header_compiler=yes
20314 else
20315   echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318         ac_header_compiler=no
20319 fi
20320
20321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20323 echo "${ECHO_T}$ac_header_compiler" >&6; }
20324
20325 # Is the header present?
20326 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20327 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20328 cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h.  */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h.  */
20334 #include <inttypes.h>
20335 _ACEOF
20336 if { (ac_try="$ac_cpp conftest.$ac_ext"
20337 case "(($ac_try" in
20338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339   *) ac_try_echo=$ac_try;;
20340 esac
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20343   ac_status=$?
20344   grep -v '^ *+' conftest.er1 >conftest.err
20345   rm -f conftest.er1
20346   cat conftest.err >&5
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); } >/dev/null && {
20349          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20350          test ! -s conftest.err
20351        }; then
20352   ac_header_preproc=yes
20353 else
20354   echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20356
20357   ac_header_preproc=no
20358 fi
20359
20360 rm -f conftest.err conftest.$ac_ext
20361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20362 echo "${ECHO_T}$ac_header_preproc" >&6; }
20363
20364 # So?  What about this header?
20365 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20366   yes:no: )
20367     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20368 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20369     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20370 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20371     ac_header_preproc=yes
20372     ;;
20373   no:yes:* )
20374     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20375 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20376     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20377 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20378     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20379 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20380     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20381 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20382     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20383 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20384     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20385 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20386     ( cat <<\_ASBOX
20387 ## ------------------------------------ ##
20388 ## Report this to opensource@google.com ##
20389 ## ------------------------------------ ##
20390 _ASBOX
20391      ) | sed "s/^/$as_me: WARNING:     /" >&2
20392     ;;
20393 esac
20394 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20395 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20396 if test "${ac_cv_header_inttypes_h+set}" = set; then
20397   echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399   ac_cv_header_inttypes_h=$ac_header_preproc
20400 fi
20401 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20402 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20403
20404 fi
20405 if test $ac_cv_header_inttypes_h = yes; then
20406   ac_cv_have_inttypes_h=1
20407 else
20408   ac_cv_have_inttypes_h=0
20409 fi
20410
20411
20412
20413 for ac_header in unistd.h
20414 do
20415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20417   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20420   echo $ECHO_N "(cached) $ECHO_C" >&6
20421 fi
20422 ac_res=`eval echo '${'$as_ac_Header'}'`
20423                { echo "$as_me:$LINENO: result: $ac_res" >&5
20424 echo "${ECHO_T}$ac_res" >&6; }
20425 else
20426   # Is the header compilable?
20427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20429 cat >conftest.$ac_ext <<_ACEOF
20430 /* confdefs.h.  */
20431 _ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h.  */
20435 $ac_includes_default
20436 #include <$ac_header>
20437 _ACEOF
20438 rm -f conftest.$ac_objext
20439 if { (ac_try="$ac_compile"
20440 case "(($ac_try" in
20441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442   *) ac_try_echo=$ac_try;;
20443 esac
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445   (eval "$ac_compile") 2>conftest.er1
20446   ac_status=$?
20447   grep -v '^ *+' conftest.er1 >conftest.err
20448   rm -f conftest.er1
20449   cat conftest.err >&5
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } && {
20452          test -z "$ac_cxx_werror_flag" ||
20453          test ! -s conftest.err
20454        } && test -s conftest.$ac_objext; then
20455   ac_header_compiler=yes
20456 else
20457   echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460         ac_header_compiler=no
20461 fi
20462
20463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20465 echo "${ECHO_T}$ac_header_compiler" >&6; }
20466
20467 # Is the header present?
20468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20470 cat >conftest.$ac_ext <<_ACEOF
20471 /* confdefs.h.  */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h.  */
20476 #include <$ac_header>
20477 _ACEOF
20478 if { (ac_try="$ac_cpp conftest.$ac_ext"
20479 case "(($ac_try" in
20480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481   *) ac_try_echo=$ac_try;;
20482 esac
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20485   ac_status=$?
20486   grep -v '^ *+' conftest.er1 >conftest.err
20487   rm -f conftest.er1
20488   cat conftest.err >&5
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); } >/dev/null && {
20491          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20492          test ! -s conftest.err
20493        }; then
20494   ac_header_preproc=yes
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499   ac_header_preproc=no
20500 fi
20501
20502 rm -f conftest.err conftest.$ac_ext
20503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20504 echo "${ECHO_T}$ac_header_preproc" >&6; }
20505
20506 # So?  What about this header?
20507 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20508   yes:no: )
20509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20513     ac_header_preproc=yes
20514     ;;
20515   no:yes:* )
20516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20528     ( cat <<\_ASBOX
20529 ## ------------------------------------ ##
20530 ## Report this to opensource@google.com ##
20531 ## ------------------------------------ ##
20532 _ASBOX
20533      ) | sed "s/^/$as_me: WARNING:     /" >&2
20534     ;;
20535 esac
20536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20539   echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541   eval "$as_ac_Header=\$ac_header_preproc"
20542 fi
20543 ac_res=`eval echo '${'$as_ac_Header'}'`
20544                { echo "$as_me:$LINENO: result: $ac_res" >&5
20545 echo "${ECHO_T}$ac_res" >&6; }
20546
20547 fi
20548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20549   cat >>confdefs.h <<_ACEOF
20550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20551 _ACEOF
20552  ac_cv_have_unistd_h=1
20553 else
20554   ac_cv_have_unistd_h=0
20555 fi
20556
20557 done
20558
20559
20560 for ac_header in syscall.h
20561 do
20562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20564   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20567   echo $ECHO_N "(cached) $ECHO_C" >&6
20568 fi
20569 ac_res=`eval echo '${'$as_ac_Header'}'`
20570                { echo "$as_me:$LINENO: result: $ac_res" >&5
20571 echo "${ECHO_T}$ac_res" >&6; }
20572 else
20573   # Is the header compilable?
20574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20576 cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h.  */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h.  */
20582 $ac_includes_default
20583 #include <$ac_header>
20584 _ACEOF
20585 rm -f conftest.$ac_objext
20586 if { (ac_try="$ac_compile"
20587 case "(($ac_try" in
20588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589   *) ac_try_echo=$ac_try;;
20590 esac
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592   (eval "$ac_compile") 2>conftest.er1
20593   ac_status=$?
20594   grep -v '^ *+' conftest.er1 >conftest.err
20595   rm -f conftest.er1
20596   cat conftest.err >&5
20597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598   (exit $ac_status); } && {
20599          test -z "$ac_cxx_werror_flag" ||
20600          test ! -s conftest.err
20601        } && test -s conftest.$ac_objext; then
20602   ac_header_compiler=yes
20603 else
20604   echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607         ac_header_compiler=no
20608 fi
20609
20610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20612 echo "${ECHO_T}$ac_header_compiler" >&6; }
20613
20614 # Is the header present?
20615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20617 cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h.  */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h.  */
20623 #include <$ac_header>
20624 _ACEOF
20625 if { (ac_try="$ac_cpp conftest.$ac_ext"
20626 case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20632   ac_status=$?
20633   grep -v '^ *+' conftest.er1 >conftest.err
20634   rm -f conftest.er1
20635   cat conftest.err >&5
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } >/dev/null && {
20638          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20639          test ! -s conftest.err
20640        }; then
20641   ac_header_preproc=yes
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646   ac_header_preproc=no
20647 fi
20648
20649 rm -f conftest.err conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20651 echo "${ECHO_T}$ac_header_preproc" >&6; }
20652
20653 # So?  What about this header?
20654 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20655   yes:no: )
20656     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20660     ac_header_preproc=yes
20661     ;;
20662   no:yes:* )
20663     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20665     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20666 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20667     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20669     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20670 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20673     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20675     ( cat <<\_ASBOX
20676 ## ------------------------------------ ##
20677 ## Report this to opensource@google.com ##
20678 ## ------------------------------------ ##
20679 _ASBOX
20680      ) | sed "s/^/$as_me: WARNING:     /" >&2
20681     ;;
20682 esac
20683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688   eval "$as_ac_Header=\$ac_header_preproc"
20689 fi
20690 ac_res=`eval echo '${'$as_ac_Header'}'`
20691                { echo "$as_me:$LINENO: result: $ac_res" >&5
20692 echo "${ECHO_T}$ac_res" >&6; }
20693
20694 fi
20695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20696   cat >>confdefs.h <<_ACEOF
20697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20698 _ACEOF
20699
20700 fi
20701
20702 done
20703
20704
20705 for ac_header in sys/syscall.h
20706 do
20707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20709   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20712   echo $ECHO_N "(cached) $ECHO_C" >&6
20713 fi
20714 ac_res=`eval echo '${'$as_ac_Header'}'`
20715                { echo "$as_me:$LINENO: result: $ac_res" >&5
20716 echo "${ECHO_T}$ac_res" >&6; }
20717 else
20718   # Is the header compilable?
20719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20721 cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h.  */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h.  */
20727 $ac_includes_default
20728 #include <$ac_header>
20729 _ACEOF
20730 rm -f conftest.$ac_objext
20731 if { (ac_try="$ac_compile"
20732 case "(($ac_try" in
20733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734   *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737   (eval "$ac_compile") 2>conftest.er1
20738   ac_status=$?
20739   grep -v '^ *+' conftest.er1 >conftest.err
20740   rm -f conftest.er1
20741   cat conftest.err >&5
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } && {
20744          test -z "$ac_cxx_werror_flag" ||
20745          test ! -s conftest.err
20746        } && test -s conftest.$ac_objext; then
20747   ac_header_compiler=yes
20748 else
20749   echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752         ac_header_compiler=no
20753 fi
20754
20755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20757 echo "${ECHO_T}$ac_header_compiler" >&6; }
20758
20759 # Is the header present?
20760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20762 cat >conftest.$ac_ext <<_ACEOF
20763 /* confdefs.h.  */
20764 _ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h.  */
20768 #include <$ac_header>
20769 _ACEOF
20770 if { (ac_try="$ac_cpp conftest.$ac_ext"
20771 case "(($ac_try" in
20772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773   *) ac_try_echo=$ac_try;;
20774 esac
20775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20777   ac_status=$?
20778   grep -v '^ *+' conftest.er1 >conftest.err
20779   rm -f conftest.er1
20780   cat conftest.err >&5
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); } >/dev/null && {
20783          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20784          test ! -s conftest.err
20785        }; then
20786   ac_header_preproc=yes
20787 else
20788   echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20790
20791   ac_header_preproc=no
20792 fi
20793
20794 rm -f conftest.err conftest.$ac_ext
20795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20796 echo "${ECHO_T}$ac_header_preproc" >&6; }
20797
20798 # So?  What about this header?
20799 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20800   yes:no: )
20801     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20805     ac_header_preproc=yes
20806     ;;
20807   no:yes:* )
20808     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20810     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20811 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20812     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20814     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20815 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20818     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20820     ( cat <<\_ASBOX
20821 ## ------------------------------------ ##
20822 ## Report this to opensource@google.com ##
20823 ## ------------------------------------ ##
20824 _ASBOX
20825      ) | sed "s/^/$as_me: WARNING:     /" >&2
20826     ;;
20827 esac
20828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20831   echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20833   eval "$as_ac_Header=\$ac_header_preproc"
20834 fi
20835 ac_res=`eval echo '${'$as_ac_Header'}'`
20836                { echo "$as_me:$LINENO: result: $ac_res" >&5
20837 echo "${ECHO_T}$ac_res" >&6; }
20838
20839 fi
20840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20841   cat >>confdefs.h <<_ACEOF
20842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20843 _ACEOF
20844
20845 fi
20846
20847 done
20848
20849 # For backtrace with glibc.
20850
20851 for ac_header in execinfo.h
20852 do
20853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20855   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20858   echo $ECHO_N "(cached) $ECHO_C" >&6
20859 fi
20860 ac_res=`eval echo '${'$as_ac_Header'}'`
20861                { echo "$as_me:$LINENO: result: $ac_res" >&5
20862 echo "${ECHO_T}$ac_res" >&6; }
20863 else
20864   # Is the header compilable?
20865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 $ac_includes_default
20874 #include <$ac_header>
20875 _ACEOF
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880   *) ac_try_echo=$ac_try;;
20881 esac
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883   (eval "$ac_compile") 2>conftest.er1
20884   ac_status=$?
20885   grep -v '^ *+' conftest.er1 >conftest.err
20886   rm -f conftest.er1
20887   cat conftest.err >&5
20888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889   (exit $ac_status); } && {
20890          test -z "$ac_cxx_werror_flag" ||
20891          test ! -s conftest.err
20892        } && test -s conftest.$ac_objext; then
20893   ac_header_compiler=yes
20894 else
20895   echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20897
20898         ac_header_compiler=no
20899 fi
20900
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20903 echo "${ECHO_T}$ac_header_compiler" >&6; }
20904
20905 # Is the header present?
20906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h.  */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h.  */
20914 #include <$ac_header>
20915 _ACEOF
20916 if { (ac_try="$ac_cpp conftest.$ac_ext"
20917 case "(($ac_try" in
20918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919   *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20923   ac_status=$?
20924   grep -v '^ *+' conftest.er1 >conftest.err
20925   rm -f conftest.er1
20926   cat conftest.err >&5
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); } >/dev/null && {
20929          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20930          test ! -s conftest.err
20931        }; then
20932   ac_header_preproc=yes
20933 else
20934   echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937   ac_header_preproc=no
20938 fi
20939
20940 rm -f conftest.err conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20942 echo "${ECHO_T}$ac_header_preproc" >&6; }
20943
20944 # So?  What about this header?
20945 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20946   yes:no: )
20947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20951     ac_header_preproc=yes
20952     ;;
20953   no:yes:* )
20954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20966     ( cat <<\_ASBOX
20967 ## ------------------------------------ ##
20968 ## Report this to opensource@google.com ##
20969 ## ------------------------------------ ##
20970 _ASBOX
20971      ) | sed "s/^/$as_me: WARNING:     /" >&2
20972     ;;
20973 esac
20974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20977   echo $ECHO_N "(cached) $ECHO_C" >&6
20978 else
20979   eval "$as_ac_Header=\$ac_header_preproc"
20980 fi
20981 ac_res=`eval echo '${'$as_ac_Header'}'`
20982                { echo "$as_me:$LINENO: result: $ac_res" >&5
20983 echo "${ECHO_T}$ac_res" >&6; }
20984
20985 fi
20986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20987   cat >>confdefs.h <<_ACEOF
20988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20989 _ACEOF
20990
20991 fi
20992
20993 done
20994
20995 # For backtrace with libunwind.
20996
20997 for ac_header in libunwind.h
20998 do
20999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21001   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21004   echo $ECHO_N "(cached) $ECHO_C" >&6
21005 fi
21006 ac_res=`eval echo '${'$as_ac_Header'}'`
21007                { echo "$as_me:$LINENO: result: $ac_res" >&5
21008 echo "${ECHO_T}$ac_res" >&6; }
21009 else
21010   # Is the header compilable?
21011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21013 cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h.  */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h.  */
21019 $ac_includes_default
21020 #include <$ac_header>
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (ac_try="$ac_compile"
21024 case "(($ac_try" in
21025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026   *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029   (eval "$ac_compile") 2>conftest.er1
21030   ac_status=$?
21031   grep -v '^ *+' conftest.er1 >conftest.err
21032   rm -f conftest.er1
21033   cat conftest.err >&5
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); } && {
21036          test -z "$ac_cxx_werror_flag" ||
21037          test ! -s conftest.err
21038        } && test -s conftest.$ac_objext; then
21039   ac_header_compiler=yes
21040 else
21041   echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044         ac_header_compiler=no
21045 fi
21046
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21049 echo "${ECHO_T}$ac_header_compiler" >&6; }
21050
21051 # Is the header present?
21052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h.  */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h.  */
21060 #include <$ac_header>
21061 _ACEOF
21062 if { (ac_try="$ac_cpp conftest.$ac_ext"
21063 case "(($ac_try" in
21064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065   *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21069   ac_status=$?
21070   grep -v '^ *+' conftest.er1 >conftest.err
21071   rm -f conftest.er1
21072   cat conftest.err >&5
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); } >/dev/null && {
21075          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21076          test ! -s conftest.err
21077        }; then
21078   ac_header_preproc=yes
21079 else
21080   echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21082
21083   ac_header_preproc=no
21084 fi
21085
21086 rm -f conftest.err conftest.$ac_ext
21087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21088 echo "${ECHO_T}$ac_header_preproc" >&6; }
21089
21090 # So?  What about this header?
21091 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21092   yes:no: )
21093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21097     ac_header_preproc=yes
21098     ;;
21099   no:yes:* )
21100     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21102     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21103 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21104     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21106     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21107 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21110     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21112     ( cat <<\_ASBOX
21113 ## ------------------------------------ ##
21114 ## Report this to opensource@google.com ##
21115 ## ------------------------------------ ##
21116 _ASBOX
21117      ) | sed "s/^/$as_me: WARNING:     /" >&2
21118     ;;
21119 esac
21120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21123   echo $ECHO_N "(cached) $ECHO_C" >&6
21124 else
21125   eval "$as_ac_Header=\$ac_header_preproc"
21126 fi
21127 ac_res=`eval echo '${'$as_ac_Header'}'`
21128                { echo "$as_me:$LINENO: result: $ac_res" >&5
21129 echo "${ECHO_T}$ac_res" >&6; }
21130
21131 fi
21132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21133   cat >>confdefs.h <<_ACEOF
21134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21135 _ACEOF
21136  ac_cv_have_libunwind_h=1
21137 else
21138   ac_cv_have_libunwind_h=0
21139 fi
21140
21141 done
21142
21143
21144 for ac_header in ucontext.h
21145 do
21146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21148   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21151   echo $ECHO_N "(cached) $ECHO_C" >&6
21152 fi
21153 ac_res=`eval echo '${'$as_ac_Header'}'`
21154                { echo "$as_me:$LINENO: result: $ac_res" >&5
21155 echo "${ECHO_T}$ac_res" >&6; }
21156 else
21157   # Is the header compilable?
21158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h.  */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h.  */
21166 $ac_includes_default
21167 #include <$ac_header>
21168 _ACEOF
21169 rm -f conftest.$ac_objext
21170 if { (ac_try="$ac_compile"
21171 case "(($ac_try" in
21172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173   *) ac_try_echo=$ac_try;;
21174 esac
21175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21176   (eval "$ac_compile") 2>conftest.er1
21177   ac_status=$?
21178   grep -v '^ *+' conftest.er1 >conftest.err
21179   rm -f conftest.er1
21180   cat conftest.err >&5
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); } && {
21183          test -z "$ac_cxx_werror_flag" ||
21184          test ! -s conftest.err
21185        } && test -s conftest.$ac_objext; then
21186   ac_header_compiler=yes
21187 else
21188   echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21190
21191         ac_header_compiler=no
21192 fi
21193
21194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21196 echo "${ECHO_T}$ac_header_compiler" >&6; }
21197
21198 # Is the header present?
21199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21201 cat >conftest.$ac_ext <<_ACEOF
21202 /* confdefs.h.  */
21203 _ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h.  */
21207 #include <$ac_header>
21208 _ACEOF
21209 if { (ac_try="$ac_cpp conftest.$ac_ext"
21210 case "(($ac_try" in
21211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212   *) ac_try_echo=$ac_try;;
21213 esac
21214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21215   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21216   ac_status=$?
21217   grep -v '^ *+' conftest.er1 >conftest.err
21218   rm -f conftest.er1
21219   cat conftest.err >&5
21220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221   (exit $ac_status); } >/dev/null && {
21222          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21223          test ! -s conftest.err
21224        }; then
21225   ac_header_preproc=yes
21226 else
21227   echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21229
21230   ac_header_preproc=no
21231 fi
21232
21233 rm -f conftest.err conftest.$ac_ext
21234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21235 echo "${ECHO_T}$ac_header_preproc" >&6; }
21236
21237 # So?  What about this header?
21238 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21239   yes:no: )
21240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21244     ac_header_preproc=yes
21245     ;;
21246   no:yes:* )
21247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21259     ( cat <<\_ASBOX
21260 ## ------------------------------------ ##
21261 ## Report this to opensource@google.com ##
21262 ## ------------------------------------ ##
21263 _ASBOX
21264      ) | sed "s/^/$as_me: WARNING:     /" >&2
21265     ;;
21266 esac
21267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21270   echo $ECHO_N "(cached) $ECHO_C" >&6
21271 else
21272   eval "$as_ac_Header=\$ac_header_preproc"
21273 fi
21274 ac_res=`eval echo '${'$as_ac_Header'}'`
21275                { echo "$as_me:$LINENO: result: $ac_res" >&5
21276 echo "${ECHO_T}$ac_res" >&6; }
21277
21278 fi
21279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21280   cat >>confdefs.h <<_ACEOF
21281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21282 _ACEOF
21283
21284 fi
21285
21286 done
21287
21288
21289 for ac_header in sys/utsname.h
21290 do
21291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21293   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21296   echo $ECHO_N "(cached) $ECHO_C" >&6
21297 fi
21298 ac_res=`eval echo '${'$as_ac_Header'}'`
21299                { echo "$as_me:$LINENO: result: $ac_res" >&5
21300 echo "${ECHO_T}$ac_res" >&6; }
21301 else
21302   # Is the header compilable?
21303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21305 cat >conftest.$ac_ext <<_ACEOF
21306 /* confdefs.h.  */
21307 _ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h.  */
21311 $ac_includes_default
21312 #include <$ac_header>
21313 _ACEOF
21314 rm -f conftest.$ac_objext
21315 if { (ac_try="$ac_compile"
21316 case "(($ac_try" in
21317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318   *) ac_try_echo=$ac_try;;
21319 esac
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321   (eval "$ac_compile") 2>conftest.er1
21322   ac_status=$?
21323   grep -v '^ *+' conftest.er1 >conftest.err
21324   rm -f conftest.er1
21325   cat conftest.err >&5
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); } && {
21328          test -z "$ac_cxx_werror_flag" ||
21329          test ! -s conftest.err
21330        } && test -s conftest.$ac_objext; then
21331   ac_header_compiler=yes
21332 else
21333   echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21335
21336         ac_header_compiler=no
21337 fi
21338
21339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21341 echo "${ECHO_T}$ac_header_compiler" >&6; }
21342
21343 # Is the header present?
21344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21346 cat >conftest.$ac_ext <<_ACEOF
21347 /* confdefs.h.  */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h.  */
21352 #include <$ac_header>
21353 _ACEOF
21354 if { (ac_try="$ac_cpp conftest.$ac_ext"
21355 case "(($ac_try" in
21356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357   *) ac_try_echo=$ac_try;;
21358 esac
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21361   ac_status=$?
21362   grep -v '^ *+' conftest.er1 >conftest.err
21363   rm -f conftest.er1
21364   cat conftest.err >&5
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); } >/dev/null && {
21367          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21368          test ! -s conftest.err
21369        }; then
21370   ac_header_preproc=yes
21371 else
21372   echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375   ac_header_preproc=no
21376 fi
21377
21378 rm -f conftest.err conftest.$ac_ext
21379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21380 echo "${ECHO_T}$ac_header_preproc" >&6; }
21381
21382 # So?  What about this header?
21383 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21384   yes:no: )
21385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21389     ac_header_preproc=yes
21390     ;;
21391   no:yes:* )
21392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21404     ( cat <<\_ASBOX
21405 ## ------------------------------------ ##
21406 ## Report this to opensource@google.com ##
21407 ## ------------------------------------ ##
21408 _ASBOX
21409      ) | sed "s/^/$as_me: WARNING:     /" >&2
21410     ;;
21411 esac
21412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21415   echo $ECHO_N "(cached) $ECHO_C" >&6
21416 else
21417   eval "$as_ac_Header=\$ac_header_preproc"
21418 fi
21419 ac_res=`eval echo '${'$as_ac_Header'}'`
21420                { echo "$as_me:$LINENO: result: $ac_res" >&5
21421 echo "${ECHO_T}$ac_res" >&6; }
21422
21423 fi
21424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21425   cat >>confdefs.h <<_ACEOF
21426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21427 _ACEOF
21428
21429 fi
21430
21431 done
21432
21433
21434 for ac_header in pwd.h
21435 do
21436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21438   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21441   echo $ECHO_N "(cached) $ECHO_C" >&6
21442 fi
21443 ac_res=`eval echo '${'$as_ac_Header'}'`
21444                { echo "$as_me:$LINENO: result: $ac_res" >&5
21445 echo "${ECHO_T}$ac_res" >&6; }
21446 else
21447   # Is the header compilable?
21448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21450 cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h.  */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h.  */
21456 $ac_includes_default
21457 #include <$ac_header>
21458 _ACEOF
21459 rm -f conftest.$ac_objext
21460 if { (ac_try="$ac_compile"
21461 case "(($ac_try" in
21462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463   *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466   (eval "$ac_compile") 2>conftest.er1
21467   ac_status=$?
21468   grep -v '^ *+' conftest.er1 >conftest.err
21469   rm -f conftest.er1
21470   cat conftest.err >&5
21471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); } && {
21473          test -z "$ac_cxx_werror_flag" ||
21474          test ! -s conftest.err
21475        } && test -s conftest.$ac_objext; then
21476   ac_header_compiler=yes
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481         ac_header_compiler=no
21482 fi
21483
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21486 echo "${ECHO_T}$ac_header_compiler" >&6; }
21487
21488 # Is the header present?
21489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21491 cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497 #include <$ac_header>
21498 _ACEOF
21499 if { (ac_try="$ac_cpp conftest.$ac_ext"
21500 case "(($ac_try" in
21501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502   *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21506   ac_status=$?
21507   grep -v '^ *+' conftest.er1 >conftest.err
21508   rm -f conftest.er1
21509   cat conftest.err >&5
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); } >/dev/null && {
21512          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21513          test ! -s conftest.err
21514        }; then
21515   ac_header_preproc=yes
21516 else
21517   echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520   ac_header_preproc=no
21521 fi
21522
21523 rm -f conftest.err conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21525 echo "${ECHO_T}$ac_header_preproc" >&6; }
21526
21527 # So?  What about this header?
21528 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21529   yes:no: )
21530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21534     ac_header_preproc=yes
21535     ;;
21536   no:yes:* )
21537     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21539     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21540 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21541     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21543     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21544 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21547     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21549     ( cat <<\_ASBOX
21550 ## ------------------------------------ ##
21551 ## Report this to opensource@google.com ##
21552 ## ------------------------------------ ##
21553 _ASBOX
21554      ) | sed "s/^/$as_me: WARNING:     /" >&2
21555     ;;
21556 esac
21557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21560   echo $ECHO_N "(cached) $ECHO_C" >&6
21561 else
21562   eval "$as_ac_Header=\$ac_header_preproc"
21563 fi
21564 ac_res=`eval echo '${'$as_ac_Header'}'`
21565                { echo "$as_me:$LINENO: result: $ac_res" >&5
21566 echo "${ECHO_T}$ac_res" >&6; }
21567
21568 fi
21569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21570   cat >>confdefs.h <<_ACEOF
21571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21572 _ACEOF
21573
21574 fi
21575
21576 done
21577
21578
21579 for ac_header in syslog.h
21580 do
21581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21583   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21586   echo $ECHO_N "(cached) $ECHO_C" >&6
21587 fi
21588 ac_res=`eval echo '${'$as_ac_Header'}'`
21589                { echo "$as_me:$LINENO: result: $ac_res" >&5
21590 echo "${ECHO_T}$ac_res" >&6; }
21591 else
21592   # Is the header compilable?
21593 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21595 cat >conftest.$ac_ext <<_ACEOF
21596 /* confdefs.h.  */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h.  */
21601 $ac_includes_default
21602 #include <$ac_header>
21603 _ACEOF
21604 rm -f conftest.$ac_objext
21605 if { (ac_try="$ac_compile"
21606 case "(($ac_try" in
21607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608   *) ac_try_echo=$ac_try;;
21609 esac
21610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21611   (eval "$ac_compile") 2>conftest.er1
21612   ac_status=$?
21613   grep -v '^ *+' conftest.er1 >conftest.err
21614   rm -f conftest.er1
21615   cat conftest.err >&5
21616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617   (exit $ac_status); } && {
21618          test -z "$ac_cxx_werror_flag" ||
21619          test ! -s conftest.err
21620        } && test -s conftest.$ac_objext; then
21621   ac_header_compiler=yes
21622 else
21623   echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21625
21626         ac_header_compiler=no
21627 fi
21628
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21631 echo "${ECHO_T}$ac_header_compiler" >&6; }
21632
21633 # Is the header present?
21634 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21636 cat >conftest.$ac_ext <<_ACEOF
21637 /* confdefs.h.  */
21638 _ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h.  */
21642 #include <$ac_header>
21643 _ACEOF
21644 if { (ac_try="$ac_cpp conftest.$ac_ext"
21645 case "(($ac_try" in
21646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647   *) ac_try_echo=$ac_try;;
21648 esac
21649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21651   ac_status=$?
21652   grep -v '^ *+' conftest.er1 >conftest.err
21653   rm -f conftest.er1
21654   cat conftest.err >&5
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); } >/dev/null && {
21657          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21658          test ! -s conftest.err
21659        }; then
21660   ac_header_preproc=yes
21661 else
21662   echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21664
21665   ac_header_preproc=no
21666 fi
21667
21668 rm -f conftest.err conftest.$ac_ext
21669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21670 echo "${ECHO_T}$ac_header_preproc" >&6; }
21671
21672 # So?  What about this header?
21673 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21674   yes:no: )
21675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21679     ac_header_preproc=yes
21680     ;;
21681   no:yes:* )
21682     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21684     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21685 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21686     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21688     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21689 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21692     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21694     ( cat <<\_ASBOX
21695 ## ------------------------------------ ##
21696 ## Report this to opensource@google.com ##
21697 ## ------------------------------------ ##
21698 _ASBOX
21699      ) | sed "s/^/$as_me: WARNING:     /" >&2
21700     ;;
21701 esac
21702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21705   echo $ECHO_N "(cached) $ECHO_C" >&6
21706 else
21707   eval "$as_ac_Header=\$ac_header_preproc"
21708 fi
21709 ac_res=`eval echo '${'$as_ac_Header'}'`
21710                { echo "$as_me:$LINENO: result: $ac_res" >&5
21711 echo "${ECHO_T}$ac_res" >&6; }
21712
21713 fi
21714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21715   cat >>confdefs.h <<_ACEOF
21716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21717 _ACEOF
21718
21719 fi
21720
21721 done
21722
21723
21724 for ac_header in sys/time.h
21725 do
21726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21728   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21731   echo $ECHO_N "(cached) $ECHO_C" >&6
21732 fi
21733 ac_res=`eval echo '${'$as_ac_Header'}'`
21734                { echo "$as_me:$LINENO: result: $ac_res" >&5
21735 echo "${ECHO_T}$ac_res" >&6; }
21736 else
21737   # Is the header compilable?
21738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21740 cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h.  */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h.  */
21746 $ac_includes_default
21747 #include <$ac_header>
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753   *) ac_try_echo=$ac_try;;
21754 esac
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756   (eval "$ac_compile") 2>conftest.er1
21757   ac_status=$?
21758   grep -v '^ *+' conftest.er1 >conftest.err
21759   rm -f conftest.er1
21760   cat conftest.err >&5
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); } && {
21763          test -z "$ac_cxx_werror_flag" ||
21764          test ! -s conftest.err
21765        } && test -s conftest.$ac_objext; then
21766   ac_header_compiler=yes
21767 else
21768   echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771         ac_header_compiler=no
21772 fi
21773
21774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21776 echo "${ECHO_T}$ac_header_compiler" >&6; }
21777
21778 # Is the header present?
21779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21781 cat >conftest.$ac_ext <<_ACEOF
21782 /* confdefs.h.  */
21783 _ACEOF
21784 cat confdefs.h >>conftest.$ac_ext
21785 cat >>conftest.$ac_ext <<_ACEOF
21786 /* end confdefs.h.  */
21787 #include <$ac_header>
21788 _ACEOF
21789 if { (ac_try="$ac_cpp conftest.$ac_ext"
21790 case "(($ac_try" in
21791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792   *) ac_try_echo=$ac_try;;
21793 esac
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21796   ac_status=$?
21797   grep -v '^ *+' conftest.er1 >conftest.err
21798   rm -f conftest.er1
21799   cat conftest.err >&5
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); } >/dev/null && {
21802          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21803          test ! -s conftest.err
21804        }; then
21805   ac_header_preproc=yes
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810   ac_header_preproc=no
21811 fi
21812
21813 rm -f conftest.err conftest.$ac_ext
21814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21815 echo "${ECHO_T}$ac_header_preproc" >&6; }
21816
21817 # So?  What about this header?
21818 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21819   yes:no: )
21820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21824     ac_header_preproc=yes
21825     ;;
21826   no:yes:* )
21827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21839     ( cat <<\_ASBOX
21840 ## ------------------------------------ ##
21841 ## Report this to opensource@google.com ##
21842 ## ------------------------------------ ##
21843 _ASBOX
21844      ) | sed "s/^/$as_me: WARNING:     /" >&2
21845     ;;
21846 esac
21847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21850   echo $ECHO_N "(cached) $ECHO_C" >&6
21851 else
21852   eval "$as_ac_Header=\$ac_header_preproc"
21853 fi
21854 ac_res=`eval echo '${'$as_ac_Header'}'`
21855                { echo "$as_me:$LINENO: result: $ac_res" >&5
21856 echo "${ECHO_T}$ac_res" >&6; }
21857
21858 fi
21859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21860   cat >>confdefs.h <<_ACEOF
21861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21862 _ACEOF
21863
21864 fi
21865
21866 done
21867
21868
21869 for ac_header in glob.h
21870 do
21871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21873   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21876   echo $ECHO_N "(cached) $ECHO_C" >&6
21877 fi
21878 ac_res=`eval echo '${'$as_ac_Header'}'`
21879                { echo "$as_me:$LINENO: result: $ac_res" >&5
21880 echo "${ECHO_T}$ac_res" >&6; }
21881 else
21882   # Is the header compilable?
21883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21885 cat >conftest.$ac_ext <<_ACEOF
21886 /* confdefs.h.  */
21887 _ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h.  */
21891 $ac_includes_default
21892 #include <$ac_header>
21893 _ACEOF
21894 rm -f conftest.$ac_objext
21895 if { (ac_try="$ac_compile"
21896 case "(($ac_try" in
21897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898   *) ac_try_echo=$ac_try;;
21899 esac
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901   (eval "$ac_compile") 2>conftest.er1
21902   ac_status=$?
21903   grep -v '^ *+' conftest.er1 >conftest.err
21904   rm -f conftest.er1
21905   cat conftest.err >&5
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); } && {
21908          test -z "$ac_cxx_werror_flag" ||
21909          test ! -s conftest.err
21910        } && test -s conftest.$ac_objext; then
21911   ac_header_compiler=yes
21912 else
21913   echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916         ac_header_compiler=no
21917 fi
21918
21919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21921 echo "${ECHO_T}$ac_header_compiler" >&6; }
21922
21923 # Is the header present?
21924 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21926 cat >conftest.$ac_ext <<_ACEOF
21927 /* confdefs.h.  */
21928 _ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h.  */
21932 #include <$ac_header>
21933 _ACEOF
21934 if { (ac_try="$ac_cpp conftest.$ac_ext"
21935 case "(($ac_try" in
21936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937   *) ac_try_echo=$ac_try;;
21938 esac
21939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21940   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21941   ac_status=$?
21942   grep -v '^ *+' conftest.er1 >conftest.err
21943   rm -f conftest.er1
21944   cat conftest.err >&5
21945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946   (exit $ac_status); } >/dev/null && {
21947          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21948          test ! -s conftest.err
21949        }; then
21950   ac_header_preproc=yes
21951 else
21952   echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21954
21955   ac_header_preproc=no
21956 fi
21957
21958 rm -f conftest.err conftest.$ac_ext
21959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21960 echo "${ECHO_T}$ac_header_preproc" >&6; }
21961
21962 # So?  What about this header?
21963 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21964   yes:no: )
21965     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21969     ac_header_preproc=yes
21970     ;;
21971   no:yes:* )
21972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21974     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21975 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21976     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21978     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21979 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21982     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21984     ( cat <<\_ASBOX
21985 ## ------------------------------------ ##
21986 ## Report this to opensource@google.com ##
21987 ## ------------------------------------ ##
21988 _ASBOX
21989      ) | sed "s/^/$as_me: WARNING:     /" >&2
21990     ;;
21991 esac
21992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21995   echo $ECHO_N "(cached) $ECHO_C" >&6
21996 else
21997   eval "$as_ac_Header=\$ac_header_preproc"
21998 fi
21999 ac_res=`eval echo '${'$as_ac_Header'}'`
22000                { echo "$as_me:$LINENO: result: $ac_res" >&5
22001 echo "${ECHO_T}$ac_res" >&6; }
22002
22003 fi
22004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22005   cat >>confdefs.h <<_ACEOF
22006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22007 _ACEOF
22008
22009 fi
22010
22011 done
22012
22013
22014 { echo "$as_me:$LINENO: checking for void *" >&5
22015 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22016 if test "${ac_cv_type_void_p+set}" = set; then
22017   echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019   cat >conftest.$ac_ext <<_ACEOF
22020 /* confdefs.h.  */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h.  */
22025 $ac_includes_default
22026 typedef void * ac__type_new_;
22027 int
22028 main ()
22029 {
22030 if ((ac__type_new_ *) 0)
22031   return 0;
22032 if (sizeof (ac__type_new_))
22033   return 0;
22034   ;
22035   return 0;
22036 }
22037 _ACEOF
22038 rm -f conftest.$ac_objext
22039 if { (ac_try="$ac_compile"
22040 case "(($ac_try" in
22041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042   *) ac_try_echo=$ac_try;;
22043 esac
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045   (eval "$ac_compile") 2>conftest.er1
22046   ac_status=$?
22047   grep -v '^ *+' conftest.er1 >conftest.err
22048   rm -f conftest.er1
22049   cat conftest.err >&5
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); } && {
22052          test -z "$ac_cxx_werror_flag" ||
22053          test ! -s conftest.err
22054        } && test -s conftest.$ac_objext; then
22055   ac_cv_type_void_p=yes
22056 else
22057   echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22059
22060         ac_cv_type_void_p=no
22061 fi
22062
22063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22064 fi
22065 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22066 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22067
22068 # The cast to long int works around a bug in the HP C Compiler
22069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22071 # This bug is HP SR number 8606223364.
22072 { echo "$as_me:$LINENO: checking size of void *" >&5
22073 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22074 if test "${ac_cv_sizeof_void_p+set}" = set; then
22075   echo $ECHO_N "(cached) $ECHO_C" >&6
22076 else
22077   if test "$cross_compiling" = yes; then
22078   # Depending upon the size, compute the lo and hi bounds.
22079 cat >conftest.$ac_ext <<_ACEOF
22080 /* confdefs.h.  */
22081 _ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h.  */
22085 $ac_includes_default
22086    typedef void * ac__type_sizeof_;
22087 int
22088 main ()
22089 {
22090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22091 test_array [0] = 0
22092
22093   ;
22094   return 0;
22095 }
22096 _ACEOF
22097 rm -f conftest.$ac_objext
22098 if { (ac_try="$ac_compile"
22099 case "(($ac_try" in
22100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101   *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104   (eval "$ac_compile") 2>conftest.er1
22105   ac_status=$?
22106   grep -v '^ *+' conftest.er1 >conftest.err
22107   rm -f conftest.er1
22108   cat conftest.err >&5
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); } && {
22111          test -z "$ac_cxx_werror_flag" ||
22112          test ! -s conftest.err
22113        } && test -s conftest.$ac_objext; then
22114   ac_lo=0 ac_mid=0
22115   while :; do
22116     cat >conftest.$ac_ext <<_ACEOF
22117 /* confdefs.h.  */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h.  */
22122 $ac_includes_default
22123    typedef void * ac__type_sizeof_;
22124 int
22125 main ()
22126 {
22127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22128 test_array [0] = 0
22129
22130   ;
22131   return 0;
22132 }
22133 _ACEOF
22134 rm -f conftest.$ac_objext
22135 if { (ac_try="$ac_compile"
22136 case "(($ac_try" in
22137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138   *) ac_try_echo=$ac_try;;
22139 esac
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141   (eval "$ac_compile") 2>conftest.er1
22142   ac_status=$?
22143   grep -v '^ *+' conftest.er1 >conftest.err
22144   rm -f conftest.er1
22145   cat conftest.err >&5
22146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147   (exit $ac_status); } && {
22148          test -z "$ac_cxx_werror_flag" ||
22149          test ! -s conftest.err
22150        } && test -s conftest.$ac_objext; then
22151   ac_hi=$ac_mid; break
22152 else
22153   echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22155
22156         ac_lo=`expr $ac_mid + 1`
22157                         if test $ac_lo -le $ac_mid; then
22158                           ac_lo= ac_hi=
22159                           break
22160                         fi
22161                         ac_mid=`expr 2 '*' $ac_mid + 1`
22162 fi
22163
22164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165   done
22166 else
22167   echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22169
22170         cat >conftest.$ac_ext <<_ACEOF
22171 /* confdefs.h.  */
22172 _ACEOF
22173 cat confdefs.h >>conftest.$ac_ext
22174 cat >>conftest.$ac_ext <<_ACEOF
22175 /* end confdefs.h.  */
22176 $ac_includes_default
22177    typedef void * ac__type_sizeof_;
22178 int
22179 main ()
22180 {
22181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22182 test_array [0] = 0
22183
22184   ;
22185   return 0;
22186 }
22187 _ACEOF
22188 rm -f conftest.$ac_objext
22189 if { (ac_try="$ac_compile"
22190 case "(($ac_try" in
22191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192   *) ac_try_echo=$ac_try;;
22193 esac
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195   (eval "$ac_compile") 2>conftest.er1
22196   ac_status=$?
22197   grep -v '^ *+' conftest.er1 >conftest.err
22198   rm -f conftest.er1
22199   cat conftest.err >&5
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); } && {
22202          test -z "$ac_cxx_werror_flag" ||
22203          test ! -s conftest.err
22204        } && test -s conftest.$ac_objext; then
22205   ac_hi=-1 ac_mid=-1
22206   while :; do
22207     cat >conftest.$ac_ext <<_ACEOF
22208 /* confdefs.h.  */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h.  */
22213 $ac_includes_default
22214    typedef void * ac__type_sizeof_;
22215 int
22216 main ()
22217 {
22218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22219 test_array [0] = 0
22220
22221   ;
22222   return 0;
22223 }
22224 _ACEOF
22225 rm -f conftest.$ac_objext
22226 if { (ac_try="$ac_compile"
22227 case "(($ac_try" in
22228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229   *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232   (eval "$ac_compile") 2>conftest.er1
22233   ac_status=$?
22234   grep -v '^ *+' conftest.er1 >conftest.err
22235   rm -f conftest.er1
22236   cat conftest.err >&5
22237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238   (exit $ac_status); } && {
22239          test -z "$ac_cxx_werror_flag" ||
22240          test ! -s conftest.err
22241        } && test -s conftest.$ac_objext; then
22242   ac_lo=$ac_mid; break
22243 else
22244   echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22246
22247         ac_hi=`expr '(' $ac_mid ')' - 1`
22248                         if test $ac_mid -le $ac_hi; then
22249                           ac_lo= ac_hi=
22250                           break
22251                         fi
22252                         ac_mid=`expr 2 '*' $ac_mid`
22253 fi
22254
22255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22256   done
22257 else
22258   echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22260
22261         ac_lo= ac_hi=
22262 fi
22263
22264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22265 fi
22266
22267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22268 # Binary search between lo and hi bounds.
22269 while test "x$ac_lo" != "x$ac_hi"; do
22270   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22271   cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h.  */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h.  */
22277 $ac_includes_default
22278    typedef void * ac__type_sizeof_;
22279 int
22280 main ()
22281 {
22282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22283 test_array [0] = 0
22284
22285   ;
22286   return 0;
22287 }
22288 _ACEOF
22289 rm -f conftest.$ac_objext
22290 if { (ac_try="$ac_compile"
22291 case "(($ac_try" in
22292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293   *) ac_try_echo=$ac_try;;
22294 esac
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296   (eval "$ac_compile") 2>conftest.er1
22297   ac_status=$?
22298   grep -v '^ *+' conftest.er1 >conftest.err
22299   rm -f conftest.er1
22300   cat conftest.err >&5
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); } && {
22303          test -z "$ac_cxx_werror_flag" ||
22304          test ! -s conftest.err
22305        } && test -s conftest.$ac_objext; then
22306   ac_hi=$ac_mid
22307 else
22308   echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22310
22311         ac_lo=`expr '(' $ac_mid ')' + 1`
22312 fi
22313
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 done
22316 case $ac_lo in
22317 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22318 '') if test "$ac_cv_type_void_p" = yes; then
22319      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22320 See \`config.log' for more details." >&5
22321 echo "$as_me: error: cannot compute sizeof (void *)
22322 See \`config.log' for more details." >&2;}
22323    { (exit 77); exit 77; }; }
22324    else
22325      ac_cv_sizeof_void_p=0
22326    fi ;;
22327 esac
22328 else
22329   cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h.  */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h.  */
22335 $ac_includes_default
22336    typedef void * ac__type_sizeof_;
22337 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22338 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22339 #include <stdio.h>
22340 #include <stdlib.h>
22341 int
22342 main ()
22343 {
22344
22345   FILE *f = fopen ("conftest.val", "w");
22346   if (! f)
22347     return 1;
22348   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22349     {
22350       long int i = longval ();
22351       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22352         return 1;
22353       fprintf (f, "%ld\n", i);
22354     }
22355   else
22356     {
22357       unsigned long int i = ulongval ();
22358       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22359         return 1;
22360       fprintf (f, "%lu\n", i);
22361     }
22362   return ferror (f) || fclose (f) != 0;
22363
22364   ;
22365   return 0;
22366 }
22367 _ACEOF
22368 rm -f conftest$ac_exeext
22369 if { (ac_try="$ac_link"
22370 case "(($ac_try" in
22371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372   *) ac_try_echo=$ac_try;;
22373 esac
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375   (eval "$ac_link") 2>&5
22376   ac_status=$?
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22379   { (case "(($ac_try" in
22380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381   *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384   (eval "$ac_try") 2>&5
22385   ac_status=$?
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); }; }; then
22388   ac_cv_sizeof_void_p=`cat conftest.val`
22389 else
22390   echo "$as_me: program exited with status $ac_status" >&5
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22393
22394 ( exit $ac_status )
22395 if test "$ac_cv_type_void_p" = yes; then
22396      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22397 See \`config.log' for more details." >&5
22398 echo "$as_me: error: cannot compute sizeof (void *)
22399 See \`config.log' for more details." >&2;}
22400    { (exit 77); exit 77; }; }
22401    else
22402      ac_cv_sizeof_void_p=0
22403    fi
22404 fi
22405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22406 fi
22407 rm -f conftest.val
22408 fi
22409 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22410 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22411
22412
22413
22414 cat >>confdefs.h <<_ACEOF
22415 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22416 _ACEOF
22417
22418
22419
22420 # These are the types I need.  We look for them in either stdint.h,
22421 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
22422 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22423 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22424 if test "${ac_cv_type_uint16_t+set}" = set; then
22425   echo $ECHO_N "(cached) $ECHO_C" >&6
22426 else
22427   cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433 $ac_includes_default
22434 typedef uint16_t ac__type_new_;
22435 int
22436 main ()
22437 {
22438 if ((ac__type_new_ *) 0)
22439   return 0;
22440 if (sizeof (ac__type_new_))
22441   return 0;
22442   ;
22443   return 0;
22444 }
22445 _ACEOF
22446 rm -f conftest.$ac_objext
22447 if { (ac_try="$ac_compile"
22448 case "(($ac_try" in
22449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450   *) ac_try_echo=$ac_try;;
22451 esac
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453   (eval "$ac_compile") 2>conftest.er1
22454   ac_status=$?
22455   grep -v '^ *+' conftest.er1 >conftest.err
22456   rm -f conftest.er1
22457   cat conftest.err >&5
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); } && {
22460          test -z "$ac_cxx_werror_flag" ||
22461          test ! -s conftest.err
22462        } && test -s conftest.$ac_objext; then
22463   ac_cv_type_uint16_t=yes
22464 else
22465   echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468         ac_cv_type_uint16_t=no
22469 fi
22470
22471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22472 fi
22473 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22474 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22475 if test $ac_cv_type_uint16_t = yes; then
22476   ac_cv_have_uint16_t=1
22477 else
22478   ac_cv_have_uint16_t=0
22479 fi
22480
22481 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
22482 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
22483 if test "${ac_cv_type_u_int16_t+set}" = set; then
22484   echo $ECHO_N "(cached) $ECHO_C" >&6
22485 else
22486   cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h.  */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h.  */
22492 $ac_includes_default
22493 typedef u_int16_t ac__type_new_;
22494 int
22495 main ()
22496 {
22497 if ((ac__type_new_ *) 0)
22498   return 0;
22499 if (sizeof (ac__type_new_))
22500   return 0;
22501   ;
22502   return 0;
22503 }
22504 _ACEOF
22505 rm -f conftest.$ac_objext
22506 if { (ac_try="$ac_compile"
22507 case "(($ac_try" in
22508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509   *) ac_try_echo=$ac_try;;
22510 esac
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512   (eval "$ac_compile") 2>conftest.er1
22513   ac_status=$?
22514   grep -v '^ *+' conftest.er1 >conftest.err
22515   rm -f conftest.er1
22516   cat conftest.err >&5
22517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518   (exit $ac_status); } && {
22519          test -z "$ac_cxx_werror_flag" ||
22520          test ! -s conftest.err
22521        } && test -s conftest.$ac_objext; then
22522   ac_cv_type_u_int16_t=yes
22523 else
22524   echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22526
22527         ac_cv_type_u_int16_t=no
22528 fi
22529
22530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22531 fi
22532 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
22533 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
22534 if test $ac_cv_type_u_int16_t = yes; then
22535   ac_cv_have_u_int16_t=1
22536 else
22537   ac_cv_have_u_int16_t=0
22538 fi
22539
22540 { echo "$as_me:$LINENO: checking for __uint16" >&5
22541 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
22542 if test "${ac_cv_type___uint16+set}" = set; then
22543   echo $ECHO_N "(cached) $ECHO_C" >&6
22544 else
22545   cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h.  */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h.  */
22551 $ac_includes_default
22552 typedef __uint16 ac__type_new_;
22553 int
22554 main ()
22555 {
22556 if ((ac__type_new_ *) 0)
22557   return 0;
22558 if (sizeof (ac__type_new_))
22559   return 0;
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 rm -f conftest.$ac_objext
22565 if { (ac_try="$ac_compile"
22566 case "(($ac_try" in
22567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568   *) ac_try_echo=$ac_try;;
22569 esac
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571   (eval "$ac_compile") 2>conftest.er1
22572   ac_status=$?
22573   grep -v '^ *+' conftest.er1 >conftest.err
22574   rm -f conftest.er1
22575   cat conftest.err >&5
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); } && {
22578          test -z "$ac_cxx_werror_flag" ||
22579          test ! -s conftest.err
22580        } && test -s conftest.$ac_objext; then
22581   ac_cv_type___uint16=yes
22582 else
22583   echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586         ac_cv_type___uint16=no
22587 fi
22588
22589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22590 fi
22591 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
22592 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
22593 if test $ac_cv_type___uint16 = yes; then
22594   ac_cv_have___uint16=1
22595 else
22596   ac_cv_have___uint16=0
22597 fi
22598
22599
22600 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
22601 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
22602 if test "${ac_cv_func_sigaltstack+set}" = set; then
22603   echo $ECHO_N "(cached) $ECHO_C" >&6
22604 else
22605   cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h.  */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h.  */
22611 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
22612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22613 #define sigaltstack innocuous_sigaltstack
22614
22615 /* System header to define __stub macros and hopefully few prototypes,
22616     which can conflict with char sigaltstack (); below.
22617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22618     <limits.h> exists even on freestanding compilers.  */
22619
22620 #ifdef __STDC__
22621 # include <limits.h>
22622 #else
22623 # include <assert.h>
22624 #endif
22625
22626 #undef sigaltstack
22627
22628 /* Override any GCC internal prototype to avoid an error.
22629    Use char because int might match the return type of a GCC
22630    builtin and then its argument prototype would still apply.  */
22631 #ifdef __cplusplus
22632 extern "C"
22633 #endif
22634 char sigaltstack ();
22635 /* The GNU C library defines this for functions which it implements
22636     to always fail with ENOSYS.  Some functions are actually named
22637     something starting with __ and the normal name is an alias.  */
22638 #if defined __stub_sigaltstack || defined __stub___sigaltstack
22639 choke me
22640 #endif
22641
22642 int
22643 main ()
22644 {
22645 return sigaltstack ();
22646   ;
22647   return 0;
22648 }
22649 _ACEOF
22650 rm -f conftest.$ac_objext conftest$ac_exeext
22651 if { (ac_try="$ac_link"
22652 case "(($ac_try" in
22653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654   *) ac_try_echo=$ac_try;;
22655 esac
22656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657   (eval "$ac_link") 2>conftest.er1
22658   ac_status=$?
22659   grep -v '^ *+' conftest.er1 >conftest.err
22660   rm -f conftest.er1
22661   cat conftest.err >&5
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); } && {
22664          test -z "$ac_cxx_werror_flag" ||
22665          test ! -s conftest.err
22666        } && test -s conftest$ac_exeext &&
22667        $as_test_x conftest$ac_exeext; then
22668   ac_cv_func_sigaltstack=yes
22669 else
22670   echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22672
22673         ac_cv_func_sigaltstack=no
22674 fi
22675
22676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22677       conftest$ac_exeext conftest.$ac_ext
22678 fi
22679 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
22680 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
22681 if test $ac_cv_func_sigaltstack = yes; then
22682
22683 cat >>confdefs.h <<\_ACEOF
22684 #define HAVE_SIGALTSTACK 1
22685 _ACEOF
22686
22687 fi
22688
22689 { echo "$as_me:$LINENO: checking for dladdr" >&5
22690 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
22691 if test "${ac_cv_func_dladdr+set}" = set; then
22692   echo $ECHO_N "(cached) $ECHO_C" >&6
22693 else
22694   cat >conftest.$ac_ext <<_ACEOF
22695 /* confdefs.h.  */
22696 _ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h.  */
22700 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
22701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22702 #define dladdr innocuous_dladdr
22703
22704 /* System header to define __stub macros and hopefully few prototypes,
22705     which can conflict with char dladdr (); below.
22706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22707     <limits.h> exists even on freestanding compilers.  */
22708
22709 #ifdef __STDC__
22710 # include <limits.h>
22711 #else
22712 # include <assert.h>
22713 #endif
22714
22715 #undef dladdr
22716
22717 /* Override any GCC internal prototype to avoid an error.
22718    Use char because int might match the return type of a GCC
22719    builtin and then its argument prototype would still apply.  */
22720 #ifdef __cplusplus
22721 extern "C"
22722 #endif
22723 char dladdr ();
22724 /* The GNU C library defines this for functions which it implements
22725     to always fail with ENOSYS.  Some functions are actually named
22726     something starting with __ and the normal name is an alias.  */
22727 #if defined __stub_dladdr || defined __stub___dladdr
22728 choke me
22729 #endif
22730
22731 int
22732 main ()
22733 {
22734 return dladdr ();
22735   ;
22736   return 0;
22737 }
22738 _ACEOF
22739 rm -f conftest.$ac_objext conftest$ac_exeext
22740 if { (ac_try="$ac_link"
22741 case "(($ac_try" in
22742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743   *) ac_try_echo=$ac_try;;
22744 esac
22745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746   (eval "$ac_link") 2>conftest.er1
22747   ac_status=$?
22748   grep -v '^ *+' conftest.er1 >conftest.err
22749   rm -f conftest.er1
22750   cat conftest.err >&5
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); } && {
22753          test -z "$ac_cxx_werror_flag" ||
22754          test ! -s conftest.err
22755        } && test -s conftest$ac_exeext &&
22756        $as_test_x conftest$ac_exeext; then
22757   ac_cv_func_dladdr=yes
22758 else
22759   echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22761
22762         ac_cv_func_dladdr=no
22763 fi
22764
22765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22766       conftest$ac_exeext conftest.$ac_ext
22767 fi
22768 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
22769 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
22770 if test $ac_cv_func_dladdr = yes; then
22771
22772 cat >>confdefs.h <<\_ACEOF
22773 #define HAVE_DLADDR 1
22774 _ACEOF
22775
22776 fi
22777
22778 { echo "$as_me:$LINENO: checking for fcntl" >&5
22779 echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
22780 if test "${ac_cv_func_fcntl+set}" = set; then
22781   echo $ECHO_N "(cached) $ECHO_C" >&6
22782 else
22783   cat >conftest.$ac_ext <<_ACEOF
22784 /* confdefs.h.  */
22785 _ACEOF
22786 cat confdefs.h >>conftest.$ac_ext
22787 cat >>conftest.$ac_ext <<_ACEOF
22788 /* end confdefs.h.  */
22789 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
22790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22791 #define fcntl innocuous_fcntl
22792
22793 /* System header to define __stub macros and hopefully few prototypes,
22794     which can conflict with char fcntl (); below.
22795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22796     <limits.h> exists even on freestanding compilers.  */
22797
22798 #ifdef __STDC__
22799 # include <limits.h>
22800 #else
22801 # include <assert.h>
22802 #endif
22803
22804 #undef fcntl
22805
22806 /* Override any GCC internal prototype to avoid an error.
22807    Use char because int might match the return type of a GCC
22808    builtin and then its argument prototype would still apply.  */
22809 #ifdef __cplusplus
22810 extern "C"
22811 #endif
22812 char fcntl ();
22813 /* The GNU C library defines this for functions which it implements
22814     to always fail with ENOSYS.  Some functions are actually named
22815     something starting with __ and the normal name is an alias.  */
22816 #if defined __stub_fcntl || defined __stub___fcntl
22817 choke me
22818 #endif
22819
22820 int
22821 main ()
22822 {
22823 return fcntl ();
22824   ;
22825   return 0;
22826 }
22827 _ACEOF
22828 rm -f conftest.$ac_objext conftest$ac_exeext
22829 if { (ac_try="$ac_link"
22830 case "(($ac_try" in
22831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832   *) ac_try_echo=$ac_try;;
22833 esac
22834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22835   (eval "$ac_link") 2>conftest.er1
22836   ac_status=$?
22837   grep -v '^ *+' conftest.er1 >conftest.err
22838   rm -f conftest.er1
22839   cat conftest.err >&5
22840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841   (exit $ac_status); } && {
22842          test -z "$ac_cxx_werror_flag" ||
22843          test ! -s conftest.err
22844        } && test -s conftest$ac_exeext &&
22845        $as_test_x conftest$ac_exeext; then
22846   ac_cv_func_fcntl=yes
22847 else
22848   echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22850
22851         ac_cv_func_fcntl=no
22852 fi
22853
22854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22855       conftest$ac_exeext conftest.$ac_ext
22856 fi
22857 { echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5
22858 echo "${ECHO_T}$ac_cv_func_fcntl" >&6; }
22859 if test $ac_cv_func_fcntl = yes; then
22860
22861 cat >>confdefs.h <<\_ACEOF
22862 #define HAVE_FCNTL 1
22863 _ACEOF
22864
22865 fi
22866
22867
22868
22869   { echo "$as_me:$LINENO: checking for __attribute__" >&5
22870 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
22871   if test "${ac_cv___attribute__+set}" = set; then
22872   echo $ECHO_N "(cached) $ECHO_C" >&6
22873 else
22874
22875     cat >conftest.$ac_ext <<_ACEOF
22876 /* confdefs.h.  */
22877 _ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h.  */
22881 #include <stdlib.h>
22882        static void foo(void) __attribute__ ((unused));
22883        void foo(void) { exit(1); }
22884 int
22885 main ()
22886 {
22887
22888   ;
22889   return 0;
22890 }
22891 _ACEOF
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896   *) ac_try_echo=$ac_try;;
22897 esac
22898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22899   (eval "$ac_compile") 2>conftest.er1
22900   ac_status=$?
22901   grep -v '^ *+' conftest.er1 >conftest.err
22902   rm -f conftest.er1
22903   cat conftest.err >&5
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); } && {
22906          test -z "$ac_cxx_werror_flag" ||
22907          test ! -s conftest.err
22908        } && test -s conftest.$ac_objext; then
22909   ac_cv___attribute__=yes
22910 else
22911   echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22913
22914         ac_cv___attribute__=no
22915
22916 fi
22917
22918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919 fi
22920
22921   if test "$ac_cv___attribute__" = "yes"; then
22922
22923 cat >>confdefs.h <<\_ACEOF
22924 #define HAVE___ATTRIBUTE__ 1
22925 _ACEOF
22926
22927   fi
22928   { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
22929 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
22930
22931 # We only care about these two attributes.
22932 if test x"$ac_cv___attribute__" = x"yes"; then
22933   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
22934   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
22935 else
22936   ac_cv___attribute___noreturn=
22937   ac_cv___attribute___printf_4_5=
22938 fi
22939
22940
22941   { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
22942 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
22943   if test "${ac_cv___builtin_expect+set}" = set; then
22944   echo $ECHO_N "(cached) $ECHO_C" >&6
22945 else
22946
22947     cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h.  */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h.  */
22953 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
22954 int
22955 main ()
22956 {
22957
22958   ;
22959   return 0;
22960 }
22961 _ACEOF
22962 rm -f conftest.$ac_objext
22963 if { (ac_try="$ac_compile"
22964 case "(($ac_try" in
22965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966   *) ac_try_echo=$ac_try;;
22967 esac
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969   (eval "$ac_compile") 2>conftest.er1
22970   ac_status=$?
22971   grep -v '^ *+' conftest.er1 >conftest.err
22972   rm -f conftest.er1
22973   cat conftest.err >&5
22974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); } && {
22976          test -z "$ac_cxx_werror_flag" ||
22977          test ! -s conftest.err
22978        } && test -s conftest.$ac_objext; then
22979   ac_cv___builtin_expect=yes
22980 else
22981   echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22983
22984         ac_cv___builtin_expect=no
22985
22986 fi
22987
22988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22989 fi
22990
22991   if test "$ac_cv___builtin_expect" = "yes"; then
22992
22993 cat >>confdefs.h <<\_ACEOF
22994 #define HAVE___BUILTIN_EXPECT 1
22995 _ACEOF
22996
22997   fi
22998   { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22999 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
23000
23001 if test x"$ac_cv___builtin_expect" = x"yes"; then
23002   ac_cv_have___builtin_expect=1
23003 else
23004   ac_cv_have___builtin_expect=0
23005 fi
23006
23007
23008   { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
23009 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
23010   if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
23011   echo $ECHO_N "(cached) $ECHO_C" >&6
23012 else
23013
23014     cat >conftest.$ac_ext <<_ACEOF
23015 /* confdefs.h.  */
23016 _ACEOF
23017 cat confdefs.h >>conftest.$ac_ext
23018 cat >>conftest.$ac_ext <<_ACEOF
23019 /* end confdefs.h.  */
23020 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
23021 int
23022 main ()
23023 {
23024
23025   ;
23026   return 0;
23027 }
23028 _ACEOF
23029 rm -f conftest.$ac_objext conftest$ac_exeext
23030 if { (ac_try="$ac_link"
23031 case "(($ac_try" in
23032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23033   *) ac_try_echo=$ac_try;;
23034 esac
23035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23036   (eval "$ac_link") 2>conftest.er1
23037   ac_status=$?
23038   grep -v '^ *+' conftest.er1 >conftest.err
23039   rm -f conftest.er1
23040   cat conftest.err >&5
23041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042   (exit $ac_status); } && {
23043          test -z "$ac_cxx_werror_flag" ||
23044          test ! -s conftest.err
23045        } && test -s conftest$ac_exeext &&
23046        $as_test_x conftest$ac_exeext; then
23047   ac_cv___sync_val_compare_and_swap=yes
23048 else
23049   echo "$as_me: failed program was:" >&5
23050 sed 's/^/| /' conftest.$ac_ext >&5
23051
23052         ac_cv___sync_val_compare_and_swap=no
23053
23054 fi
23055
23056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23057       conftest$ac_exeext conftest.$ac_ext
23058 fi
23059
23060   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
23061
23062 cat >>confdefs.h <<\_ACEOF
23063 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
23064 _ACEOF
23065
23066   fi
23067   { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
23068 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
23069
23070
23071 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
23072 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
23073 # Check whether --enable-frame_pointers was given.
23074 if test "${enable_frame_pointers+set}" = set; then
23075   enableval=$enable_frame_pointers;
23076 else
23077   enable_frame_pointers=no
23078 fi
23079
23080 cat >conftest.$ac_ext <<_ACEOF
23081 /* confdefs.h.  */
23082 _ACEOF
23083 cat confdefs.h >>conftest.$ac_ext
23084 cat >>conftest.$ac_ext <<_ACEOF
23085 /* end confdefs.h.  */
23086
23087 int
23088 main ()
23089 {
23090 return __x86_64__ == 1 ? 0 : 1
23091   ;
23092   return 0;
23093 }
23094 _ACEOF
23095 rm -f conftest.$ac_objext
23096 if { (ac_try="$ac_compile"
23097 case "(($ac_try" in
23098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099   *) ac_try_echo=$ac_try;;
23100 esac
23101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23102   (eval "$ac_compile") 2>conftest.er1
23103   ac_status=$?
23104   grep -v '^ *+' conftest.er1 >conftest.err
23105   rm -f conftest.er1
23106   cat conftest.err >&5
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); } && {
23109          test -z "$ac_cxx_werror_flag" ||
23110          test ! -s conftest.err
23111        } && test -s conftest.$ac_objext; then
23112   is_x86_64=yes
23113 else
23114   echo "$as_me: failed program was:" >&5
23115 sed 's/^/| /' conftest.$ac_ext >&5
23116
23117         is_x86_64=no
23118 fi
23119
23120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23121  if test "$enable_frame_pointers" = yes; then
23122   ENABLE_FRAME_POINTERS_TRUE=
23123   ENABLE_FRAME_POINTERS_FALSE='#'
23124 else
23125   ENABLE_FRAME_POINTERS_TRUE='#'
23126   ENABLE_FRAME_POINTERS_FALSE=
23127 fi
23128
23129  if test "$is_x86_64" = yes; then
23130   X86_64_TRUE=
23131   X86_64_FALSE='#'
23132 else
23133   X86_64_TRUE='#'
23134   X86_64_FALSE=
23135 fi
23136
23137
23138 # Some of the code in this directory depends on pthreads
23139
23140
23141
23142 ac_ext=c
23143 ac_cpp='$CPP $CPPFLAGS'
23144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23147
23148 acx_pthread_ok=no
23149
23150 # We used to check for pthread.h first, but this fails if pthread.h
23151 # requires special compiler flags (e.g. on True64 or Sequent).
23152 # It gets checked for in the link test anyway.
23153
23154 # First of all, check if the user has set any of the PTHREAD_LIBS,
23155 # etcetera environment variables, and if threads linking works using
23156 # them:
23157 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23158         save_CFLAGS="$CFLAGS"
23159         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23160         save_LIBS="$LIBS"
23161         LIBS="$PTHREAD_LIBS $LIBS"
23162         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23163 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
23164         cat >conftest.$ac_ext <<_ACEOF
23165 /* confdefs.h.  */
23166 _ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h.  */
23170
23171 /* Override any GCC internal prototype to avoid an error.
23172    Use char because int might match the return type of a GCC
23173    builtin and then its argument prototype would still apply.  */
23174 #ifdef __cplusplus
23175 extern "C"
23176 #endif
23177 char pthread_join ();
23178 int
23179 main ()
23180 {
23181 return pthread_join ();
23182   ;
23183   return 0;
23184 }
23185 _ACEOF
23186 rm -f conftest.$ac_objext conftest$ac_exeext
23187 if { (ac_try="$ac_link"
23188 case "(($ac_try" in
23189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190   *) ac_try_echo=$ac_try;;
23191 esac
23192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23193   (eval "$ac_link") 2>conftest.er1
23194   ac_status=$?
23195   grep -v '^ *+' conftest.er1 >conftest.err
23196   rm -f conftest.er1
23197   cat conftest.err >&5
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); } && {
23200          test -z "$ac_c_werror_flag" ||
23201          test ! -s conftest.err
23202        } && test -s conftest$ac_exeext &&
23203        $as_test_x conftest$ac_exeext; then
23204   acx_pthread_ok=yes
23205 else
23206   echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23208
23209
23210 fi
23211
23212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23213       conftest$ac_exeext conftest.$ac_ext
23214         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23215 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23216         if test x"$acx_pthread_ok" = xno; then
23217                 PTHREAD_LIBS=""
23218                 PTHREAD_CFLAGS=""
23219         fi
23220         LIBS="$save_LIBS"
23221         CFLAGS="$save_CFLAGS"
23222 fi
23223
23224 # We must check for the threads library under a number of different
23225 # names; the ordering is very important because some systems
23226 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23227 # libraries is broken (non-POSIX).
23228
23229 # Create a list of thread flags to try.  Items starting with a "-" are
23230 # C compiler flags, and other items are library names, except for "none"
23231 # which indicates that we try without any flags at all, and "pthread-config"
23232 # which is a program returning the flags for the Pth emulation library.
23233
23234 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23235
23236 # The ordering *is* (sometimes) important.  Some notes on the
23237 # individual items follow:
23238
23239 # pthreads: AIX (must check this before -lpthread)
23240 # none: in case threads are in libc; should be tried before -Kthread and
23241 #       other compiler flags to prevent continual compiler warnings
23242 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23243 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23244 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23245 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23246 # -pthreads: Solaris/gcc
23247 # -mthreads: Mingw32/gcc, Lynx/gcc
23248 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23249 #      doesn't hurt to check since this sometimes defines pthreads too;
23250 #      also defines -D_REENTRANT)
23251 #      ... -mt is also the pthreads flag for HP/aCC
23252 # pthread: Linux, etcetera
23253 # --thread-safe: KAI C++
23254 # pthread-config: use pthread-config program (for GNU Pth library)
23255
23256 case "${host_cpu}-${host_os}" in
23257         *solaris*)
23258
23259         # On Solaris (at least, for some versions), libc contains stubbed
23260         # (non-functional) versions of the pthreads routines, so link-based
23261         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
23262         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
23263         # a function called by this macro, so we could check for that, but
23264         # who knows whether they'll stub that too in a future libc.)  So,
23265         # we'll just look for -pthreads and -lpthread first:
23266
23267         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
23268         ;;
23269 esac
23270
23271 if test x"$acx_pthread_ok" = xno; then
23272 for flag in $acx_pthread_flags; do
23273
23274         case $flag in
23275                 none)
23276                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23277 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
23278                 ;;
23279
23280                 -*)
23281                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23282 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
23283                 PTHREAD_CFLAGS="$flag"
23284                 ;;
23285
23286                 pthread-config)
23287                 # Extract the first word of "pthread-config", so it can be a program name with args.
23288 set dummy pthread-config; ac_word=$2
23289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23291 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23292   echo $ECHO_N "(cached) $ECHO_C" >&6
23293 else
23294   if test -n "$acx_pthread_config"; then
23295   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23296 else
23297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23298 for as_dir in $PATH
23299 do
23300   IFS=$as_save_IFS
23301   test -z "$as_dir" && as_dir=.
23302   for ac_exec_ext in '' $ac_executable_extensions; do
23303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23304     ac_cv_prog_acx_pthread_config="yes"
23305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23306     break 2
23307   fi
23308 done
23309 done
23310 IFS=$as_save_IFS
23311
23312   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23313 fi
23314 fi
23315 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23316 if test -n "$acx_pthread_config"; then
23317   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23318 echo "${ECHO_T}$acx_pthread_config" >&6; }
23319 else
23320   { echo "$as_me:$LINENO: result: no" >&5
23321 echo "${ECHO_T}no" >&6; }
23322 fi
23323
23324
23325                 if test x"$acx_pthread_config" = xno; then continue; fi
23326                 PTHREAD_CFLAGS="`pthread-config --cflags`"
23327                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23328                 ;;
23329
23330                 *)
23331                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23332 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
23333                 PTHREAD_LIBS="-l$flag"
23334                 ;;
23335         esac
23336
23337         save_LIBS="$LIBS"
23338         save_CFLAGS="$CFLAGS"
23339         LIBS="$PTHREAD_LIBS $LIBS"
23340         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23341
23342         # Check for various functions.  We must include pthread.h,
23343         # since some functions may be macros.  (On the Sequent, we
23344         # need a special flag -Kthread to make this header compile.)
23345         # We check for pthread_join because it is in -lpthread on IRIX
23346         # while pthread_create is in libc.  We check for pthread_attr_init
23347         # due to DEC craziness with -lpthreads.  We check for
23348         # pthread_cleanup_push because it is one of the few pthread
23349         # functions on Solaris that doesn't have a non-functional libc stub.
23350         # We try pthread_create on general principles.
23351         cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h.  */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h.  */
23357 #include <pthread.h>
23358 int
23359 main ()
23360 {
23361 pthread_t th; pthread_join(th, 0);
23362                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23363                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23364   ;
23365   return 0;
23366 }
23367 _ACEOF
23368 rm -f conftest.$ac_objext conftest$ac_exeext
23369 if { (ac_try="$ac_link"
23370 case "(($ac_try" in
23371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372   *) ac_try_echo=$ac_try;;
23373 esac
23374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375   (eval "$ac_link") 2>conftest.er1
23376   ac_status=$?
23377   grep -v '^ *+' conftest.er1 >conftest.err
23378   rm -f conftest.er1
23379   cat conftest.err >&5
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); } && {
23382          test -z "$ac_c_werror_flag" ||
23383          test ! -s conftest.err
23384        } && test -s conftest$ac_exeext &&
23385        $as_test_x conftest$ac_exeext; then
23386   acx_pthread_ok=yes
23387 else
23388   echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23390
23391
23392 fi
23393
23394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23395       conftest$ac_exeext conftest.$ac_ext
23396
23397         LIBS="$save_LIBS"
23398         CFLAGS="$save_CFLAGS"
23399
23400         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23401 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23402         if test "x$acx_pthread_ok" = xyes; then
23403                 break;
23404         fi
23405
23406         PTHREAD_LIBS=""
23407         PTHREAD_CFLAGS=""
23408 done
23409 fi
23410
23411 # Various other checks:
23412 if test "x$acx_pthread_ok" = xyes; then
23413         save_LIBS="$LIBS"
23414         LIBS="$PTHREAD_LIBS $LIBS"
23415         save_CFLAGS="$CFLAGS"
23416         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23417
23418         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23419         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23420 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
23421         attr_name=unknown
23422         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23423             cat >conftest.$ac_ext <<_ACEOF
23424 /* confdefs.h.  */
23425 _ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h.  */
23429 #include <pthread.h>
23430 int
23431 main ()
23432 {
23433 int attr=$attr; return attr;
23434   ;
23435   return 0;
23436 }
23437 _ACEOF
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (ac_try="$ac_link"
23440 case "(($ac_try" in
23441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442   *) ac_try_echo=$ac_try;;
23443 esac
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445   (eval "$ac_link") 2>conftest.er1
23446   ac_status=$?
23447   grep -v '^ *+' conftest.er1 >conftest.err
23448   rm -f conftest.er1
23449   cat conftest.err >&5
23450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451   (exit $ac_status); } && {
23452          test -z "$ac_c_werror_flag" ||
23453          test ! -s conftest.err
23454        } && test -s conftest$ac_exeext &&
23455        $as_test_x conftest$ac_exeext; then
23456   attr_name=$attr; break
23457 else
23458   echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23460
23461
23462 fi
23463
23464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23465       conftest$ac_exeext conftest.$ac_ext
23466         done
23467         { echo "$as_me:$LINENO: result: $attr_name" >&5
23468 echo "${ECHO_T}$attr_name" >&6; }
23469         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
23470
23471 cat >>confdefs.h <<_ACEOF
23472 #define PTHREAD_CREATE_JOINABLE $attr_name
23473 _ACEOF
23474
23475         fi
23476
23477         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23478 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
23479         flag=no
23480         case "${host_cpu}-${host_os}" in
23481             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23482             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23483         esac
23484         { echo "$as_me:$LINENO: result: ${flag}" >&5
23485 echo "${ECHO_T}${flag}" >&6; }
23486         if test "x$flag" != xno; then
23487             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23488         fi
23489
23490         LIBS="$save_LIBS"
23491         CFLAGS="$save_CFLAGS"
23492         # More AIX lossage: must compile with xlc_r or cc_r
23493         if test x"$GCC" != xyes; then
23494           for ac_prog in xlc_r cc_r
23495 do
23496   # Extract the first word of "$ac_prog", so it can be a program name with args.
23497 set dummy $ac_prog; ac_word=$2
23498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23500 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23501   echo $ECHO_N "(cached) $ECHO_C" >&6
23502 else
23503   if test -n "$PTHREAD_CC"; then
23504   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23505 else
23506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23507 for as_dir in $PATH
23508 do
23509   IFS=$as_save_IFS
23510   test -z "$as_dir" && as_dir=.
23511   for ac_exec_ext in '' $ac_executable_extensions; do
23512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23513     ac_cv_prog_PTHREAD_CC="$ac_prog"
23514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23515     break 2
23516   fi
23517 done
23518 done
23519 IFS=$as_save_IFS
23520
23521 fi
23522 fi
23523 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23524 if test -n "$PTHREAD_CC"; then
23525   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23526 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23527 else
23528   { echo "$as_me:$LINENO: result: no" >&5
23529 echo "${ECHO_T}no" >&6; }
23530 fi
23531
23532
23533   test -n "$PTHREAD_CC" && break
23534 done
23535 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23536
23537         else
23538           PTHREAD_CC=$CC
23539         fi
23540
23541         # The next part tries to detect GCC inconsistency with -shared on some
23542         # architectures and systems. The problem is that in certain
23543         # configurations, when -shared is specified, GCC "forgets" to
23544         # internally use various flags which are still necessary.
23545
23546         #
23547         # Prepare the flags
23548         #
23549         save_CFLAGS="$CFLAGS"
23550         save_LIBS="$LIBS"
23551         save_CC="$CC"
23552
23553         # Try with the flags determined by the earlier checks.
23554         #
23555         # -Wl,-z,defs forces link-time symbol resolution, so that the
23556         # linking checks with -shared actually have any value
23557         #
23558         # FIXME: -fPIC is required for -shared on many architectures,
23559         # so we specify it here, but the right way would probably be to
23560         # properly detect whether it is actually required.
23561         CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
23562         LIBS="$PTHREAD_LIBS $LIBS"
23563         CC="$PTHREAD_CC"
23564
23565         # In order not to create several levels of indentation, we test
23566         # the value of "$done" until we find the cure or run out of ideas.
23567         done="no"
23568
23569         # First, make sure the CFLAGS we added are actually accepted by our
23570         # compiler.  If not (and OS X's ld, for instance, does not accept -z),
23571         # then we can't do this test.
23572         if test x"$done" = xno; then
23573            { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
23574 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
23575            cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h.  */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h.  */
23581
23582 int
23583 main ()
23584 {
23585
23586   ;
23587   return 0;
23588 }
23589 _ACEOF
23590 rm -f conftest.$ac_objext conftest$ac_exeext
23591 if { (ac_try="$ac_link"
23592 case "(($ac_try" in
23593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23594   *) ac_try_echo=$ac_try;;
23595 esac
23596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23597   (eval "$ac_link") 2>conftest.er1
23598   ac_status=$?
23599   grep -v '^ *+' conftest.er1 >conftest.err
23600   rm -f conftest.er1
23601   cat conftest.err >&5
23602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603   (exit $ac_status); } && {
23604          test -z "$ac_c_werror_flag" ||
23605          test ! -s conftest.err
23606        } && test -s conftest$ac_exeext &&
23607        $as_test_x conftest$ac_exeext; then
23608   :
23609 else
23610   echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.$ac_ext >&5
23612
23613         done=yes
23614 fi
23615
23616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23617       conftest$ac_exeext conftest.$ac_ext
23618
23619            if test "x$done" = xyes ; then
23620               { echo "$as_me:$LINENO: result: no" >&5
23621 echo "${ECHO_T}no" >&6; }
23622            else
23623               { echo "$as_me:$LINENO: result: yes" >&5
23624 echo "${ECHO_T}yes" >&6; }
23625            fi
23626         fi
23627
23628         if test x"$done" = xno; then
23629            { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
23630 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
23631            cat >conftest.$ac_ext <<_ACEOF
23632 /* confdefs.h.  */
23633 _ACEOF
23634 cat confdefs.h >>conftest.$ac_ext
23635 cat >>conftest.$ac_ext <<_ACEOF
23636 /* end confdefs.h.  */
23637 #include <pthread.h>
23638 int
23639 main ()
23640 {
23641 pthread_t th; pthread_join(th, 0);
23642               pthread_attr_init(0); pthread_cleanup_push(0, 0);
23643               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23644   ;
23645   return 0;
23646 }
23647 _ACEOF
23648 rm -f conftest.$ac_objext conftest$ac_exeext
23649 if { (ac_try="$ac_link"
23650 case "(($ac_try" in
23651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23652   *) ac_try_echo=$ac_try;;
23653 esac
23654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23655   (eval "$ac_link") 2>conftest.er1
23656   ac_status=$?
23657   grep -v '^ *+' conftest.er1 >conftest.err
23658   rm -f conftest.er1
23659   cat conftest.err >&5
23660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661   (exit $ac_status); } && {
23662          test -z "$ac_c_werror_flag" ||
23663          test ! -s conftest.err
23664        } && test -s conftest$ac_exeext &&
23665        $as_test_x conftest$ac_exeext; then
23666   done=yes
23667 else
23668   echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23670
23671
23672 fi
23673
23674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23675       conftest$ac_exeext conftest.$ac_ext
23676
23677            if test "x$done" = xyes; then
23678               { echo "$as_me:$LINENO: result: yes" >&5
23679 echo "${ECHO_T}yes" >&6; }
23680            else
23681               { echo "$as_me:$LINENO: result: no" >&5
23682 echo "${ECHO_T}no" >&6; }
23683            fi
23684         fi
23685
23686         #
23687         # Linux gcc on some architectures such as mips/mipsel forgets
23688         # about -lpthread
23689         #
23690         if test x"$done" = xno; then
23691            { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
23692 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
23693            LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
23694            cat >conftest.$ac_ext <<_ACEOF
23695 /* confdefs.h.  */
23696 _ACEOF
23697 cat confdefs.h >>conftest.$ac_ext
23698 cat >>conftest.$ac_ext <<_ACEOF
23699 /* end confdefs.h.  */
23700 #include <pthread.h>
23701 int
23702 main ()
23703 {
23704 pthread_t th; pthread_join(th, 0);
23705               pthread_attr_init(0); pthread_cleanup_push(0, 0);
23706               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23707   ;
23708   return 0;
23709 }
23710 _ACEOF
23711 rm -f conftest.$ac_objext conftest$ac_exeext
23712 if { (ac_try="$ac_link"
23713 case "(($ac_try" in
23714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715   *) ac_try_echo=$ac_try;;
23716 esac
23717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23718   (eval "$ac_link") 2>conftest.er1
23719   ac_status=$?
23720   grep -v '^ *+' conftest.er1 >conftest.err
23721   rm -f conftest.er1
23722   cat conftest.err >&5
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); } && {
23725          test -z "$ac_c_werror_flag" ||
23726          test ! -s conftest.err
23727        } && test -s conftest$ac_exeext &&
23728        $as_test_x conftest$ac_exeext; then
23729   done=yes
23730 else
23731   echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23733
23734
23735 fi
23736
23737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23738       conftest$ac_exeext conftest.$ac_ext
23739
23740            if test "x$done" = xyes; then
23741               { echo "$as_me:$LINENO: result: yes" >&5
23742 echo "${ECHO_T}yes" >&6; }
23743               PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
23744            else
23745               { echo "$as_me:$LINENO: result: no" >&5
23746 echo "${ECHO_T}no" >&6; }
23747            fi
23748         fi
23749         #
23750         # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
23751         #
23752         if test x"$done" = xno; then
23753            { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
23754 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
23755            LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
23756            cat >conftest.$ac_ext <<_ACEOF
23757 /* confdefs.h.  */
23758 _ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h.  */
23762 #include <pthread.h>
23763 int
23764 main ()
23765 {
23766 pthread_t th; pthread_join(th, 0);
23767                 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23768                 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23769   ;
23770   return 0;
23771 }
23772 _ACEOF
23773 rm -f conftest.$ac_objext conftest$ac_exeext
23774 if { (ac_try="$ac_link"
23775 case "(($ac_try" in
23776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23777   *) ac_try_echo=$ac_try;;
23778 esac
23779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23780   (eval "$ac_link") 2>conftest.er1
23781   ac_status=$?
23782   grep -v '^ *+' conftest.er1 >conftest.err
23783   rm -f conftest.er1
23784   cat conftest.err >&5
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); } && {
23787          test -z "$ac_c_werror_flag" ||
23788          test ! -s conftest.err
23789        } && test -s conftest$ac_exeext &&
23790        $as_test_x conftest$ac_exeext; then
23791   done=yes
23792 else
23793   echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23795
23796
23797 fi
23798
23799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23800       conftest$ac_exeext conftest.$ac_ext
23801
23802            if test "x$done" = xyes; then
23803               { echo "$as_me:$LINENO: result: yes" >&5
23804 echo "${ECHO_T}yes" >&6; }
23805               PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
23806            else
23807               { echo "$as_me:$LINENO: result: no" >&5
23808 echo "${ECHO_T}no" >&6; }
23809            fi
23810         fi
23811         if test x"$done" = xno; then
23812            # OK, we have run out of ideas
23813            { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
23814 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
23815
23816            # so it's not safe to assume that we may use pthreads
23817            acx_pthread_ok=no
23818         fi
23819
23820         CFLAGS="$save_CFLAGS"
23821         LIBS="$save_LIBS"
23822         CC="$save_CC"
23823 else
23824         PTHREAD_CC="$CC"
23825 fi
23826
23827
23828
23829
23830
23831 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23832 if test x"$acx_pthread_ok" = xyes; then
23833
23834 cat >>confdefs.h <<\_ACEOF
23835 #define HAVE_PTHREAD 1
23836 _ACEOF
23837
23838         :
23839 else
23840         acx_pthread_ok=no
23841
23842 fi
23843 ac_ext=cpp
23844 ac_cpp='$CXXCPP $CPPFLAGS'
23845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23848
23849
23850 if test x"$acx_pthread_ok" = x"yes"; then
23851   # To make libglog depend on libpthread on Linux, we need to add
23852   # -lpthread in addition to -pthread.
23853
23854 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
23855 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
23856 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
23857   echo $ECHO_N "(cached) $ECHO_C" >&6
23858 else
23859   ac_check_lib_save_LIBS=$LIBS
23860 LIBS="-lpthread  $LIBS"
23861 cat >conftest.$ac_ext <<_ACEOF
23862 /* confdefs.h.  */
23863 _ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h.  */
23867
23868 /* Override any GCC internal prototype to avoid an error.
23869    Use char because int might match the return type of a GCC
23870    builtin and then its argument prototype would still apply.  */
23871 #ifdef __cplusplus
23872 extern "C"
23873 #endif
23874 char pthread_self ();
23875 int
23876 main ()
23877 {
23878 return pthread_self ();
23879   ;
23880   return 0;
23881 }
23882 _ACEOF
23883 rm -f conftest.$ac_objext conftest$ac_exeext
23884 if { (ac_try="$ac_link"
23885 case "(($ac_try" in
23886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23887   *) ac_try_echo=$ac_try;;
23888 esac
23889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23890   (eval "$ac_link") 2>conftest.er1
23891   ac_status=$?
23892   grep -v '^ *+' conftest.er1 >conftest.err
23893   rm -f conftest.er1
23894   cat conftest.err >&5
23895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896   (exit $ac_status); } && {
23897          test -z "$ac_cxx_werror_flag" ||
23898          test ! -s conftest.err
23899        } && test -s conftest$ac_exeext &&
23900        $as_test_x conftest$ac_exeext; then
23901   ac_cv_lib_pthread_pthread_self=yes
23902 else
23903   echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23905
23906         ac_cv_lib_pthread_pthread_self=no
23907 fi
23908
23909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23910       conftest$ac_exeext conftest.$ac_ext
23911 LIBS=$ac_check_lib_save_LIBS
23912 fi
23913 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
23914 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
23915 if test $ac_cv_lib_pthread_pthread_self = yes; then
23916   cat >>confdefs.h <<_ACEOF
23917 #define HAVE_LIBPTHREAD 1
23918 _ACEOF
23919
23920   LIBS="-lpthread $LIBS"
23921
23922 fi
23923
23924 fi
23925
23926 # Check if there is google-gflags library installed.
23927 SAVE_CFLAGS="$CFLAGS"
23928 SAVE_LIBS="$LIBS"
23929
23930 # Check whether --with-gflags was given.
23931 if test "${with_gflags+set}" = set; then
23932   withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
23933   GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
23934   CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
23935   LIBS="$LIBS $GFLAGS_LIBS"
23936
23937 fi
23938
23939 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
23940 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
23941 if test "${ac_cv_lib_gflags_main+set}" = set; then
23942   echo $ECHO_N "(cached) $ECHO_C" >&6
23943 else
23944   ac_check_lib_save_LIBS=$LIBS
23945 LIBS="-lgflags  $LIBS"
23946 cat >conftest.$ac_ext <<_ACEOF
23947 /* confdefs.h.  */
23948 _ACEOF
23949 cat confdefs.h >>conftest.$ac_ext
23950 cat >>conftest.$ac_ext <<_ACEOF
23951 /* end confdefs.h.  */
23952
23953
23954 int
23955 main ()
23956 {
23957 return main ();
23958   ;
23959   return 0;
23960 }
23961 _ACEOF
23962 rm -f conftest.$ac_objext conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966   *) ac_try_echo=$ac_try;;
23967 esac
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969   (eval "$ac_link") 2>conftest.er1
23970   ac_status=$?
23971   grep -v '^ *+' conftest.er1 >conftest.err
23972   rm -f conftest.er1
23973   cat conftest.err >&5
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); } && {
23976          test -z "$ac_cxx_werror_flag" ||
23977          test ! -s conftest.err
23978        } && test -s conftest$ac_exeext &&
23979        $as_test_x conftest$ac_exeext; then
23980   ac_cv_lib_gflags_main=yes
23981 else
23982   echo "$as_me: failed program was:" >&5
23983 sed 's/^/| /' conftest.$ac_ext >&5
23984
23985         ac_cv_lib_gflags_main=no
23986 fi
23987
23988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23989       conftest$ac_exeext conftest.$ac_ext
23990 LIBS=$ac_check_lib_save_LIBS
23991 fi
23992 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
23993 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
23994 if test $ac_cv_lib_gflags_main = yes; then
23995   ac_cv_have_libgflags=1
23996 else
23997   ac_cv_have_libgflags=0
23998 fi
23999
24000 if test x"$ac_cv_have_libgflags" = x"1"; then
24001
24002 cat >>confdefs.h <<\_ACEOF
24003 #define HAVE_LIB_GFLAGS 1
24004 _ACEOF
24005
24006   if test x"$GFLAGS_LIBS" = x""; then
24007     GFLAGS_LIBS="-lgflags"
24008   fi
24009 else
24010   GFLAGS_CFLAGS=
24011   GFLAGS_LIBS=
24012 fi
24013 CFLAGS="$SAVE_CFLAGS"
24014 LIBS="$SAVE_LIBS"
24015
24016 # TODO(hamaji): Use official m4 macros provided by testing libraries
24017 #               once the m4 macro of Google Mocking becomes ready.
24018 # Check if there is Google Test library installed.
24019 # Extract the first word of "gtest-config", so it can be a program name with args.
24020 set dummy gtest-config; ac_word=$2
24021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24023 if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then
24024   echo $ECHO_N "(cached) $ECHO_C" >&6
24025 else
24026   if test -n "$GTEST_CONFIG"; then
24027   ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
24028 else
24029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24030 for as_dir in $PATH
24031 do
24032   IFS=$as_save_IFS
24033   test -z "$as_dir" && as_dir=.
24034   for ac_exec_ext in '' $ac_executable_extensions; do
24035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24036     ac_cv_prog_GTEST_CONFIG=""yes""
24037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24038     break 2
24039   fi
24040 done
24041 done
24042 IFS=$as_save_IFS
24043
24044 fi
24045 fi
24046 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
24047 if test -n "$GTEST_CONFIG"; then
24048   { echo "$as_me:$LINENO: result: $GTEST_CONFIG" >&5
24049 echo "${ECHO_T}$GTEST_CONFIG" >&6; }
24050 else
24051   { echo "$as_me:$LINENO: result: no" >&5
24052 echo "${ECHO_T}no" >&6; }
24053 fi
24054
24055
24056 if test x"$GTEST_CONFIG" = "xyes"; then
24057   GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
24058   GTEST_LIBS=`gtest-config --ldflags --libs`
24059
24060 cat >>confdefs.h <<\_ACEOF
24061 #define HAVE_LIB_GTEST 1
24062 _ACEOF
24063
24064
24065   # Check if there is Google Mocking library installed.
24066   # Extract the first word of "gmock-config", so it can be a program name with args.
24067 set dummy gmock-config; ac_word=$2
24068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24070 if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then
24071   echo $ECHO_N "(cached) $ECHO_C" >&6
24072 else
24073   if test -n "$GMOCK_CONFIG"; then
24074   ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
24075 else
24076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24077 for as_dir in $PATH
24078 do
24079   IFS=$as_save_IFS
24080   test -z "$as_dir" && as_dir=.
24081   for ac_exec_ext in '' $ac_executable_extensions; do
24082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24083     ac_cv_prog_GMOCK_CONFIG=""yes""
24084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24085     break 2
24086   fi
24087 done
24088 done
24089 IFS=$as_save_IFS
24090
24091 fi
24092 fi
24093 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
24094 if test -n "$GMOCK_CONFIG"; then
24095   { echo "$as_me:$LINENO: result: $GMOCK_CONFIG" >&5
24096 echo "${ECHO_T}$GMOCK_CONFIG" >&6; }
24097 else
24098   { echo "$as_me:$LINENO: result: no" >&5
24099 echo "${ECHO_T}no" >&6; }
24100 fi
24101
24102
24103   if test x"$GMOCK_CONFIG" = "xyes"; then
24104     GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
24105     GMOCK_LIBS=`gmock-config --ldflags --libs`
24106
24107 cat >>confdefs.h <<\_ACEOF
24108 #define HAVE_LIB_GMOCK 1
24109 _ACEOF
24110
24111   else
24112     # We don't run test cases which use Google Mocking framework.
24113     GMOCK_CFLAGS=
24114     GMOCK_LIBS=
24115   fi
24116 else
24117   # We'll use src/googletest.h for our unittests.
24118   GTEST_CFLAGS=
24119   GTEST_LIBS=
24120 fi
24121  if test x"$GMOCK_CONFIG" = "xyes"; then
24122   HAVE_GMOCK_TRUE=
24123   HAVE_GMOCK_FALSE='#'
24124 else
24125   HAVE_GMOCK_TRUE='#'
24126   HAVE_GMOCK_FALSE=
24127 fi
24128
24129
24130 # We want to link in libunwind if it exists
24131 UNWIND_LIBS=
24132 # Unfortunately, we need to check the header file in addition to the
24133 # lib file to check if libunwind is available since libunwind-0.98
24134 # doesn't install all necessary header files.
24135 if test x"$ac_cv_have_libunwind_h" = x"1"; then
24136  { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
24137 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
24138 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
24139   echo $ECHO_N "(cached) $ECHO_C" >&6
24140 else
24141   ac_check_lib_save_LIBS=$LIBS
24142 LIBS="-lunwind  $LIBS"
24143 cat >conftest.$ac_ext <<_ACEOF
24144 /* confdefs.h.  */
24145 _ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h.  */
24149
24150 /* Override any GCC internal prototype to avoid an error.
24151    Use char because int might match the return type of a GCC
24152    builtin and then its argument prototype would still apply.  */
24153 #ifdef __cplusplus
24154 extern "C"
24155 #endif
24156 char backtrace ();
24157 int
24158 main ()
24159 {
24160 return backtrace ();
24161   ;
24162   return 0;
24163 }
24164 _ACEOF
24165 rm -f conftest.$ac_objext conftest$ac_exeext
24166 if { (ac_try="$ac_link"
24167 case "(($ac_try" in
24168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24169   *) ac_try_echo=$ac_try;;
24170 esac
24171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24172   (eval "$ac_link") 2>conftest.er1
24173   ac_status=$?
24174   grep -v '^ *+' conftest.er1 >conftest.err
24175   rm -f conftest.er1
24176   cat conftest.err >&5
24177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178   (exit $ac_status); } && {
24179          test -z "$ac_cxx_werror_flag" ||
24180          test ! -s conftest.err
24181        } && test -s conftest$ac_exeext &&
24182        $as_test_x conftest$ac_exeext; then
24183   ac_cv_lib_unwind_backtrace=yes
24184 else
24185   echo "$as_me: failed program was:" >&5
24186 sed 's/^/| /' conftest.$ac_ext >&5
24187
24188         ac_cv_lib_unwind_backtrace=no
24189 fi
24190
24191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24192       conftest$ac_exeext conftest.$ac_ext
24193 LIBS=$ac_check_lib_save_LIBS
24194 fi
24195 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
24196 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
24197 if test $ac_cv_lib_unwind_backtrace = yes; then
24198   UNWIND_LIBS=-lunwind
24199 fi
24200
24201 fi
24202
24203 if test x"$UNWIND_LIBS" != x""; then
24204
24205 cat >>confdefs.h <<\_ACEOF
24206 #define HAVE_LIB_UNWIND 1
24207 _ACEOF
24208
24209 fi
24210
24211 # We'd like to use read/write locks in several places in the code.
24212 # See if our pthreads support extends to that.  Note: for linux, it
24213 # does as long as you define _XOPEN_SOURCE appropriately.
24214 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
24215 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
24216 if test "${ac_rwlock+set}" = set; then
24217   echo $ECHO_N "(cached) $ECHO_C" >&6
24218 else
24219
24220  ac_ext=c
24221 ac_cpp='$CPP $CPPFLAGS'
24222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24225
24226  cat >conftest.$ac_ext <<_ACEOF
24227 /* confdefs.h.  */
24228 _ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h.  */
24232 #define _XOPEN_SOURCE 500
24233                  #include <pthread.h>
24234 int
24235 main ()
24236 {
24237 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
24238                  pthread_rwlock_rdlock(&l);
24239                  return 0;
24240   ;
24241   return 0;
24242 }
24243 _ACEOF
24244 rm -f conftest.$ac_objext
24245 if { (ac_try="$ac_compile"
24246 case "(($ac_try" in
24247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24248   *) ac_try_echo=$ac_try;;
24249 esac
24250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24251   (eval "$ac_compile") 2>conftest.er1
24252   ac_status=$?
24253   grep -v '^ *+' conftest.er1 >conftest.err
24254   rm -f conftest.er1
24255   cat conftest.err >&5
24256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257   (exit $ac_status); } && {
24258          test -z "$ac_c_werror_flag" ||
24259          test ! -s conftest.err
24260        } && test -s conftest.$ac_objext; then
24261   ac_rwlock=yes
24262 else
24263   echo "$as_me: failed program was:" >&5
24264 sed 's/^/| /' conftest.$ac_ext >&5
24265
24266         ac_rwlock=no
24267 fi
24268
24269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24270  ac_ext=cpp
24271 ac_cpp='$CXXCPP $CPPFLAGS'
24272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24275
24276
24277 fi
24278 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
24279 echo "${ECHO_T}$ac_rwlock" >&6; }
24280 if test "$ac_rwlock" = yes; then
24281
24282 cat >>confdefs.h <<\_ACEOF
24283 #define HAVE_RWLOCK 1
24284 _ACEOF
24285
24286 fi
24287
24288
24289 # Find out what namespace 'normal' STL code lives in, and also what namespace
24290 # the user wants our classes to be defined in
24291 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
24292 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
24293 if test "${ac_cv_cxx_namespaces+set}" = set; then
24294   echo $ECHO_N "(cached) $ECHO_C" >&6
24295 else
24296
24297                   ac_ext=cpp
24298 ac_cpp='$CXXCPP $CPPFLAGS'
24299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24302
24303                   cat >conftest.$ac_ext <<_ACEOF
24304 /* confdefs.h.  */
24305 _ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h.  */
24309 namespace Outer {
24310                                     namespace Inner { int i = 0; }}
24311 int
24312 main ()
24313 {
24314 using namespace Outer::Inner; return i;
24315   ;
24316   return 0;
24317 }
24318 _ACEOF
24319 rm -f conftest.$ac_objext
24320 if { (ac_try="$ac_compile"
24321 case "(($ac_try" in
24322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24323   *) ac_try_echo=$ac_try;;
24324 esac
24325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24326   (eval "$ac_compile") 2>conftest.er1
24327   ac_status=$?
24328   grep -v '^ *+' conftest.er1 >conftest.err
24329   rm -f conftest.er1
24330   cat conftest.err >&5
24331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332   (exit $ac_status); } && {
24333          test -z "$ac_cxx_werror_flag" ||
24334          test ! -s conftest.err
24335        } && test -s conftest.$ac_objext; then
24336   ac_cv_cxx_namespaces=yes
24337 else
24338   echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24340
24341         ac_cv_cxx_namespaces=no
24342 fi
24343
24344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24345                   ac_ext=cpp
24346 ac_cpp='$CXXCPP $CPPFLAGS'
24347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24350
24351 fi
24352 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
24353 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
24354   if test "$ac_cv_cxx_namespaces" = yes; then
24355
24356 cat >>confdefs.h <<\_ACEOF
24357 #define HAVE_NAMESPACES 1
24358 _ACEOF
24359
24360   fi
24361 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
24362 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
24363 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
24364   echo $ECHO_N "(cached) $ECHO_C" >&6
24365 else
24366
24367
24368       ac_ext=cpp
24369 ac_cpp='$CXXCPP $CPPFLAGS'
24370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24373
24374       cat >conftest.$ac_ext <<_ACEOF
24375 /* confdefs.h.  */
24376 _ACEOF
24377 cat confdefs.h >>conftest.$ac_ext
24378 cat >>conftest.$ac_ext <<_ACEOF
24379 /* end confdefs.h.  */
24380 #include <vector>
24381 int
24382 main ()
24383 {
24384 vector<int> t; return 0;
24385   ;
24386   return 0;
24387 }
24388 _ACEOF
24389 rm -f conftest.$ac_objext
24390 if { (ac_try="$ac_compile"
24391 case "(($ac_try" in
24392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393   *) ac_try_echo=$ac_try;;
24394 esac
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396   (eval "$ac_compile") 2>conftest.er1
24397   ac_status=$?
24398   grep -v '^ *+' conftest.er1 >conftest.err
24399   rm -f conftest.er1
24400   cat conftest.err >&5
24401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402   (exit $ac_status); } && {
24403          test -z "$ac_cxx_werror_flag" ||
24404          test ! -s conftest.err
24405        } && test -s conftest.$ac_objext; then
24406   ac_cv_cxx_stl_namespace=none
24407 else
24408   echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24410
24411
24412 fi
24413
24414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24415       cat >conftest.$ac_ext <<_ACEOF
24416 /* confdefs.h.  */
24417 _ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h.  */
24421 #include <vector>
24422 int
24423 main ()
24424 {
24425 std::vector<int> t; return 0;
24426   ;
24427   return 0;
24428 }
24429 _ACEOF
24430 rm -f conftest.$ac_objext
24431 if { (ac_try="$ac_compile"
24432 case "(($ac_try" in
24433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434   *) ac_try_echo=$ac_try;;
24435 esac
24436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24437   (eval "$ac_compile") 2>conftest.er1
24438   ac_status=$?
24439   grep -v '^ *+' conftest.er1 >conftest.err
24440   rm -f conftest.er1
24441   cat conftest.err >&5
24442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443   (exit $ac_status); } && {
24444          test -z "$ac_cxx_werror_flag" ||
24445          test ! -s conftest.err
24446        } && test -s conftest.$ac_objext; then
24447   ac_cv_cxx_stl_namespace=std
24448 else
24449   echo "$as_me: failed program was:" >&5
24450 sed 's/^/| /' conftest.$ac_ext >&5
24451
24452
24453 fi
24454
24455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24456       ac_ext=cpp
24457 ac_cpp='$CXXCPP $CPPFLAGS'
24458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24461
24462 fi
24463 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
24464 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
24465    if test "$ac_cv_cxx_stl_namespace" = none; then
24466
24467 cat >>confdefs.h <<\_ACEOF
24468 #define STL_NAMESPACE
24469 _ACEOF
24470
24471    fi
24472    if test "$ac_cv_cxx_stl_namespace" = std; then
24473
24474 cat >>confdefs.h <<\_ACEOF
24475 #define STL_NAMESPACE std
24476 _ACEOF
24477
24478    fi
24479
24480 google_namespace_default=google
24481    # Check whether --enable-namespace was given.
24482 if test "${enable_namespace+set}" = set; then
24483   enableval=$enable_namespace; case "$enableval" in
24484                     yes) google_namespace="$google_namespace_default" ;;
24485                      no) google_namespace="" ;;
24486                       *) google_namespace="$enableval" ;;
24487                   esac
24488 else
24489   google_namespace="$google_namespace_default"
24490 fi
24491
24492    if test -n "$google_namespace"; then
24493      ac_google_namespace="$google_namespace"
24494      ac_google_start_namespace="namespace $google_namespace {"
24495      ac_google_end_namespace="}"
24496    else
24497      ac_google_namespace=""
24498      ac_google_start_namespace=""
24499      ac_google_end_namespace=""
24500    fi
24501
24502 cat >>confdefs.h <<_ACEOF
24503 #define GOOGLE_NAMESPACE $ac_google_namespace
24504 _ACEOF
24505
24506
24507 cat >>confdefs.h <<_ACEOF
24508 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
24509 _ACEOF
24510
24511
24512 cat >>confdefs.h <<_ACEOF
24513 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
24514 _ACEOF
24515
24516
24517
24518 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
24519 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
24520 if test "${ac_cv_cxx_using_operator+set}" = set; then
24521   echo $ECHO_N "(cached) $ECHO_C" >&6
24522 else
24523
24524        ac_ext=cpp
24525 ac_cpp='$CXXCPP $CPPFLAGS'
24526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24529
24530        cat >conftest.$ac_ext <<_ACEOF
24531 /* confdefs.h.  */
24532 _ACEOF
24533 cat confdefs.h >>conftest.$ac_ext
24534 cat >>conftest.$ac_ext <<_ACEOF
24535 /* end confdefs.h.  */
24536 #include <iostream>
24537                        std::ostream& operator<<(std::ostream&, struct s);
24538 int
24539 main ()
24540 {
24541 using ::operator<<; return 0;
24542   ;
24543   return 0;
24544 }
24545 _ACEOF
24546 rm -f conftest.$ac_objext
24547 if { (ac_try="$ac_compile"
24548 case "(($ac_try" in
24549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24550   *) ac_try_echo=$ac_try;;
24551 esac
24552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24553   (eval "$ac_compile") 2>conftest.er1
24554   ac_status=$?
24555   grep -v '^ *+' conftest.er1 >conftest.err
24556   rm -f conftest.er1
24557   cat conftest.err >&5
24558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559   (exit $ac_status); } && {
24560          test -z "$ac_cxx_werror_flag" ||
24561          test ! -s conftest.err
24562        } && test -s conftest.$ac_objext; then
24563   ac_cv_cxx_using_operator=1
24564 else
24565   echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24567
24568         ac_cv_cxx_using_operator=0
24569 fi
24570
24571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24572       ac_ext=cpp
24573 ac_cpp='$CXXCPP $CPPFLAGS'
24574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24577
24578 fi
24579 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
24580 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
24581   if test "$ac_cv_cxx_using_operator" = 1; then
24582
24583 cat >>confdefs.h <<\_ACEOF
24584 #define HAVE_USING_OPERATOR 1
24585 _ACEOF
24586
24587   fi
24588
24589
24590 for ac_header in ucontext.h
24591 do
24592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24594   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24597   echo $ECHO_N "(cached) $ECHO_C" >&6
24598 fi
24599 ac_res=`eval echo '${'$as_ac_Header'}'`
24600                { echo "$as_me:$LINENO: result: $ac_res" >&5
24601 echo "${ECHO_T}$ac_res" >&6; }
24602 else
24603   # Is the header compilable?
24604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24606 cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h.  */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h.  */
24612 $ac_includes_default
24613 #include <$ac_header>
24614 _ACEOF
24615 rm -f conftest.$ac_objext
24616 if { (ac_try="$ac_compile"
24617 case "(($ac_try" in
24618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619   *) ac_try_echo=$ac_try;;
24620 esac
24621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622   (eval "$ac_compile") 2>conftest.er1
24623   ac_status=$?
24624   grep -v '^ *+' conftest.er1 >conftest.err
24625   rm -f conftest.er1
24626   cat conftest.err >&5
24627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628   (exit $ac_status); } && {
24629          test -z "$ac_cxx_werror_flag" ||
24630          test ! -s conftest.err
24631        } && test -s conftest.$ac_objext; then
24632   ac_header_compiler=yes
24633 else
24634   echo "$as_me: failed program was:" >&5
24635 sed 's/^/| /' conftest.$ac_ext >&5
24636
24637         ac_header_compiler=no
24638 fi
24639
24640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24642 echo "${ECHO_T}$ac_header_compiler" >&6; }
24643
24644 # Is the header present?
24645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24647 cat >conftest.$ac_ext <<_ACEOF
24648 /* confdefs.h.  */
24649 _ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h.  */
24653 #include <$ac_header>
24654 _ACEOF
24655 if { (ac_try="$ac_cpp conftest.$ac_ext"
24656 case "(($ac_try" in
24657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658   *) ac_try_echo=$ac_try;;
24659 esac
24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24662   ac_status=$?
24663   grep -v '^ *+' conftest.er1 >conftest.err
24664   rm -f conftest.er1
24665   cat conftest.err >&5
24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); } >/dev/null && {
24668          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24669          test ! -s conftest.err
24670        }; then
24671   ac_header_preproc=yes
24672 else
24673   echo "$as_me: failed program was:" >&5
24674 sed 's/^/| /' conftest.$ac_ext >&5
24675
24676   ac_header_preproc=no
24677 fi
24678
24679 rm -f conftest.err conftest.$ac_ext
24680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24681 echo "${ECHO_T}$ac_header_preproc" >&6; }
24682
24683 # So?  What about this header?
24684 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24685   yes:no: )
24686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24690     ac_header_preproc=yes
24691     ;;
24692   no:yes:* )
24693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24695     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24696 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24697     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24699     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24700 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24703     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24705     ( cat <<\_ASBOX
24706 ## ------------------------------------ ##
24707 ## Report this to opensource@google.com ##
24708 ## ------------------------------------ ##
24709 _ASBOX
24710      ) | sed "s/^/$as_me: WARNING:     /" >&2
24711     ;;
24712 esac
24713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24716   echo $ECHO_N "(cached) $ECHO_C" >&6
24717 else
24718   eval "$as_ac_Header=\$ac_header_preproc"
24719 fi
24720 ac_res=`eval echo '${'$as_ac_Header'}'`
24721                { echo "$as_me:$LINENO: result: $ac_res" >&5
24722 echo "${ECHO_T}$ac_res" >&6; }
24723
24724 fi
24725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24726   cat >>confdefs.h <<_ACEOF
24727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24728 _ACEOF
24729
24730 fi
24731
24732 done
24733
24734
24735 for ac_header in sys/ucontext.h
24736 do
24737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24739   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24742   echo $ECHO_N "(cached) $ECHO_C" >&6
24743 fi
24744 ac_res=`eval echo '${'$as_ac_Header'}'`
24745                { echo "$as_me:$LINENO: result: $ac_res" >&5
24746 echo "${ECHO_T}$ac_res" >&6; }
24747 else
24748   # Is the header compilable?
24749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24751 cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h.  */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h.  */
24757 $ac_includes_default
24758 #include <$ac_header>
24759 _ACEOF
24760 rm -f conftest.$ac_objext
24761 if { (ac_try="$ac_compile"
24762 case "(($ac_try" in
24763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764   *) ac_try_echo=$ac_try;;
24765 esac
24766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24767   (eval "$ac_compile") 2>conftest.er1
24768   ac_status=$?
24769   grep -v '^ *+' conftest.er1 >conftest.err
24770   rm -f conftest.er1
24771   cat conftest.err >&5
24772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773   (exit $ac_status); } && {
24774          test -z "$ac_cxx_werror_flag" ||
24775          test ! -s conftest.err
24776        } && test -s conftest.$ac_objext; then
24777   ac_header_compiler=yes
24778 else
24779   echo "$as_me: failed program was:" >&5
24780 sed 's/^/| /' conftest.$ac_ext >&5
24781
24782         ac_header_compiler=no
24783 fi
24784
24785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24787 echo "${ECHO_T}$ac_header_compiler" >&6; }
24788
24789 # Is the header present?
24790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24792 cat >conftest.$ac_ext <<_ACEOF
24793 /* confdefs.h.  */
24794 _ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h.  */
24798 #include <$ac_header>
24799 _ACEOF
24800 if { (ac_try="$ac_cpp conftest.$ac_ext"
24801 case "(($ac_try" in
24802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803   *) ac_try_echo=$ac_try;;
24804 esac
24805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24807   ac_status=$?
24808   grep -v '^ *+' conftest.er1 >conftest.err
24809   rm -f conftest.er1
24810   cat conftest.err >&5
24811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812   (exit $ac_status); } >/dev/null && {
24813          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24814          test ! -s conftest.err
24815        }; then
24816   ac_header_preproc=yes
24817 else
24818   echo "$as_me: failed program was:" >&5
24819 sed 's/^/| /' conftest.$ac_ext >&5
24820
24821   ac_header_preproc=no
24822 fi
24823
24824 rm -f conftest.err conftest.$ac_ext
24825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24826 echo "${ECHO_T}$ac_header_preproc" >&6; }
24827
24828 # So?  What about this header?
24829 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24830   yes:no: )
24831     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24835     ac_header_preproc=yes
24836     ;;
24837   no:yes:* )
24838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24840     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24841 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24842     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24844     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24845 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24848     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24850     ( cat <<\_ASBOX
24851 ## ------------------------------------ ##
24852 ## Report this to opensource@google.com ##
24853 ## ------------------------------------ ##
24854 _ASBOX
24855      ) | sed "s/^/$as_me: WARNING:     /" >&2
24856     ;;
24857 esac
24858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24861   echo $ECHO_N "(cached) $ECHO_C" >&6
24862 else
24863   eval "$as_ac_Header=\$ac_header_preproc"
24864 fi
24865 ac_res=`eval echo '${'$as_ac_Header'}'`
24866                { echo "$as_me:$LINENO: result: $ac_res" >&5
24867 echo "${ECHO_T}$ac_res" >&6; }
24868
24869 fi
24870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24871   cat >>confdefs.h <<_ACEOF
24872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24873 _ACEOF
24874
24875 fi
24876
24877 done
24878        # ucontext on OS X 10.6 (at least)
24879    { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
24880 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
24881    pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
24882    pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
24883    pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
24884    pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
24885    pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
24886    pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
24887    pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
24888    pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
24889    pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
24890    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]"  # NetBSD (i386)
24891    pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]"  # NetBSD (x86_64)
24892    pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
24893    pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
24894    pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
24895    pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
24896    pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
24897    pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
24898    pc_field_found=false
24899    for pc_field in $pc_fields; do
24900      if ! $pc_field_found; then
24901        if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
24902          cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h.  */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h.  */
24908 #define _GNU_SOURCE 1
24909                          #include <sys/ucontext.h>
24910 int
24911 main ()
24912 {
24913 ucontext_t u; return u.$pc_field == 0;
24914   ;
24915   return 0;
24916 }
24917 _ACEOF
24918 rm -f conftest.$ac_objext
24919 if { (ac_try="$ac_compile"
24920 case "(($ac_try" in
24921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922   *) ac_try_echo=$ac_try;;
24923 esac
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925   (eval "$ac_compile") 2>conftest.er1
24926   ac_status=$?
24927   grep -v '^ *+' conftest.er1 >conftest.err
24928   rm -f conftest.er1
24929   cat conftest.err >&5
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); } && {
24932          test -z "$ac_cxx_werror_flag" ||
24933          test ! -s conftest.err
24934        } && test -s conftest.$ac_objext; then
24935
24936 cat >>confdefs.h <<_ACEOF
24937 #define PC_FROM_UCONTEXT $pc_field
24938 _ACEOF
24939
24940                         { echo "$as_me:$LINENO: result: $pc_field" >&5
24941 echo "${ECHO_T}$pc_field" >&6; }
24942                         pc_field_found=true
24943 else
24944   echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24946
24947
24948 fi
24949
24950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24951        else
24952          cat >conftest.$ac_ext <<_ACEOF
24953 /* confdefs.h.  */
24954 _ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h.  */
24958 #define _GNU_SOURCE 1
24959                          #include <ucontext.h>
24960 int
24961 main ()
24962 {
24963 ucontext_t u; return u.$pc_field == 0;
24964   ;
24965   return 0;
24966 }
24967 _ACEOF
24968 rm -f conftest.$ac_objext
24969 if { (ac_try="$ac_compile"
24970 case "(($ac_try" in
24971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972   *) ac_try_echo=$ac_try;;
24973 esac
24974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975   (eval "$ac_compile") 2>conftest.er1
24976   ac_status=$?
24977   grep -v '^ *+' conftest.er1 >conftest.err
24978   rm -f conftest.er1
24979   cat conftest.err >&5
24980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981   (exit $ac_status); } && {
24982          test -z "$ac_cxx_werror_flag" ||
24983          test ! -s conftest.err
24984        } && test -s conftest.$ac_objext; then
24985
24986 cat >>confdefs.h <<_ACEOF
24987 #define PC_FROM_UCONTEXT $pc_field
24988 _ACEOF
24989
24990                         { echo "$as_me:$LINENO: result: $pc_field" >&5
24991 echo "${ECHO_T}$pc_field" >&6; }
24992                         pc_field_found=true
24993 else
24994   echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
24996
24997
24998 fi
24999
25000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25001        fi
25002      fi
25003    done
25004    if ! $pc_field_found; then
25005      pc_fields="           sc_eip"  # OpenBSD (i386)
25006      pc_fields="$pc_fields sc_rip"  # OpenBSD (x86_64)
25007      for pc_field in $pc_fields; do
25008        if ! $pc_field_found; then
25009          cat >conftest.$ac_ext <<_ACEOF
25010 /* confdefs.h.  */
25011 _ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h.  */
25015 #include <signal.h>
25016 int
25017 main ()
25018 {
25019 ucontext_t u; return u.$pc_field == 0;
25020   ;
25021   return 0;
25022 }
25023 _ACEOF
25024 rm -f conftest.$ac_objext
25025 if { (ac_try="$ac_compile"
25026 case "(($ac_try" in
25027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028   *) ac_try_echo=$ac_try;;
25029 esac
25030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25031   (eval "$ac_compile") 2>conftest.er1
25032   ac_status=$?
25033   grep -v '^ *+' conftest.er1 >conftest.err
25034   rm -f conftest.er1
25035   cat conftest.err >&5
25036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037   (exit $ac_status); } && {
25038          test -z "$ac_cxx_werror_flag" ||
25039          test ! -s conftest.err
25040        } && test -s conftest.$ac_objext; then
25041
25042 cat >>confdefs.h <<_ACEOF
25043 #define PC_FROM_UCONTEXT $pc_field
25044 _ACEOF
25045
25046                         { echo "$as_me:$LINENO: result: $pc_field" >&5
25047 echo "${ECHO_T}$pc_field" >&6; }
25048                         pc_field_found=true
25049 else
25050   echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25052
25053
25054 fi
25055
25056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25057        fi
25058      done
25059    fi
25060    if ! $pc_field_found; then
25061      { echo "$as_me:$LINENO: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
25062 echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
25063    fi
25064
25065 # These are what's needed by logging.h.in and raw_logging.h.in
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088 # Write generated configuration file
25089 ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
25090
25091 ac_config_files="$ac_config_files libglog.pc"
25092
25093 cat >confcache <<\_ACEOF
25094 # This file is a shell script that caches the results of configure
25095 # tests run on this system so they can be shared between configure
25096 # scripts and configure runs, see configure's option --config-cache.
25097 # It is not useful on other systems.  If it contains results you don't
25098 # want to keep, you may remove or edit it.
25099 #
25100 # config.status only pays attention to the cache file if you give it
25101 # the --recheck option to rerun configure.
25102 #
25103 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25104 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25105 # following values.
25106
25107 _ACEOF
25108
25109 # The following way of writing the cache mishandles newlines in values,
25110 # but we know of no workaround that is simple, portable, and efficient.
25111 # So, we kill variables containing newlines.
25112 # Ultrix sh set writes to stderr and can't be redirected directly,
25113 # and sets the high bit in the cache file unless we assign to the vars.
25114 (
25115   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25116     eval ac_val=\$$ac_var
25117     case $ac_val in #(
25118     *${as_nl}*)
25119       case $ac_var in #(
25120       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25121 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25122       esac
25123       case $ac_var in #(
25124       _ | IFS | as_nl) ;; #(
25125       *) $as_unset $ac_var ;;
25126       esac ;;
25127     esac
25128   done
25129
25130   (set) 2>&1 |
25131     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25132     *${as_nl}ac_space=\ *)
25133       # `set' does not quote correctly, so add quotes (double-quote
25134       # substitution turns \\\\ into \\, and sed turns \\ into \).
25135       sed -n \
25136         "s/'/'\\\\''/g;
25137           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25138       ;; #(
25139     *)
25140       # `set' quotes correctly as required by POSIX, so do not add quotes.
25141       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25142       ;;
25143     esac |
25144     sort
25145 ) |
25146   sed '
25147      /^ac_cv_env_/b end
25148      t clear
25149      :clear
25150      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25151      t end
25152      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25153      :end' >>confcache
25154 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25155   if test -w "$cache_file"; then
25156     test "x$cache_file" != "x/dev/null" &&
25157       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25158 echo "$as_me: updating cache $cache_file" >&6;}
25159     cat confcache >$cache_file
25160   else
25161     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25162 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25163   fi
25164 fi
25165 rm -f confcache
25166
25167 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25168 # Let make expand exec_prefix.
25169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25170
25171 DEFS=-DHAVE_CONFIG_H
25172
25173 ac_libobjs=
25174 ac_ltlibobjs=
25175 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25176   # 1. Remove the extension, and $U if already installed.
25177   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25178   ac_i=`echo "$ac_i" | sed "$ac_script"`
25179   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25180   #    will be set to the directory where LIBOBJS objects are built.
25181   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25182   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25183 done
25184 LIBOBJS=$ac_libobjs
25185
25186 LTLIBOBJS=$ac_ltlibobjs
25187
25188
25189 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25190   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25191 Usually this means the macro was only invoked conditionally." >&5
25192 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25193 Usually this means the macro was only invoked conditionally." >&2;}
25194    { (exit 1); exit 1; }; }
25195 fi
25196 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25197   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25198 Usually this means the macro was only invoked conditionally." >&5
25199 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25200 Usually this means the macro was only invoked conditionally." >&2;}
25201    { (exit 1); exit 1; }; }
25202 fi
25203 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25204   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25205 Usually this means the macro was only invoked conditionally." >&5
25206 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25207 Usually this means the macro was only invoked conditionally." >&2;}
25208    { (exit 1); exit 1; }; }
25209 fi
25210 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
25211   { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
25212 Usually this means the macro was only invoked conditionally." >&5
25213 echo "$as_me: error: conditional \"GCC\" was never defined.
25214 Usually this means the macro was only invoked conditionally." >&2;}
25215    { (exit 1); exit 1; }; }
25216 fi
25217 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
25218   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
25219 Usually this means the macro was only invoked conditionally." >&5
25220 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
25221 Usually this means the macro was only invoked conditionally." >&2;}
25222    { (exit 1); exit 1; }; }
25223 fi
25224 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
25225   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
25226 Usually this means the macro was only invoked conditionally." >&5
25227 echo "$as_me: error: conditional \"X86_64\" was never defined.
25228 Usually this means the macro was only invoked conditionally." >&2;}
25229    { (exit 1); exit 1; }; }
25230 fi
25231 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
25232   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GMOCK\" was never defined.
25233 Usually this means the macro was only invoked conditionally." >&5
25234 echo "$as_me: error: conditional \"HAVE_GMOCK\" was never defined.
25235 Usually this means the macro was only invoked conditionally." >&2;}
25236    { (exit 1); exit 1; }; }
25237 fi
25238
25239 : ${CONFIG_STATUS=./config.status}
25240 ac_clean_files_save=$ac_clean_files
25241 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25242 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25243 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25244 cat >$CONFIG_STATUS <<_ACEOF
25245 #! $SHELL
25246 # Generated by $as_me.
25247 # Run this file to recreate the current configuration.
25248 # Compiler output produced by configure, useful for debugging
25249 # configure, is in config.log if it exists.
25250
25251 debug=false
25252 ac_cs_recheck=false
25253 ac_cs_silent=false
25254 SHELL=\${CONFIG_SHELL-$SHELL}
25255 _ACEOF
25256
25257 cat >>$CONFIG_STATUS <<\_ACEOF
25258 ## --------------------- ##
25259 ## M4sh Initialization.  ##
25260 ## --------------------- ##
25261
25262 # Be more Bourne compatible
25263 DUALCASE=1; export DUALCASE # for MKS sh
25264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25265   emulate sh
25266   NULLCMD=:
25267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25268   # is contrary to our usage.  Disable this feature.
25269   alias -g '${1+"$@"}'='"$@"'
25270   setopt NO_GLOB_SUBST
25271 else
25272   case `(set -o) 2>/dev/null` in
25273   *posix*) set -o posix ;;
25274 esac
25275
25276 fi
25277
25278
25279
25280
25281 # PATH needs CR
25282 # Avoid depending upon Character Ranges.
25283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25286 as_cr_digits='0123456789'
25287 as_cr_alnum=$as_cr_Letters$as_cr_digits
25288
25289 # The user is always right.
25290 if test "${PATH_SEPARATOR+set}" != set; then
25291   echo "#! /bin/sh" >conf$$.sh
25292   echo  "exit 0"   >>conf$$.sh
25293   chmod +x conf$$.sh
25294   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25295     PATH_SEPARATOR=';'
25296   else
25297     PATH_SEPARATOR=:
25298   fi
25299   rm -f conf$$.sh
25300 fi
25301
25302 # Support unset when possible.
25303 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25304   as_unset=unset
25305 else
25306   as_unset=false
25307 fi
25308
25309
25310 # IFS
25311 # We need space, tab and new line, in precisely that order.  Quoting is
25312 # there to prevent editors from complaining about space-tab.
25313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25314 # splitting by setting IFS to empty value.)
25315 as_nl='
25316 '
25317 IFS=" ""        $as_nl"
25318
25319 # Find who we are.  Look in the path if we contain no directory separator.
25320 case $0 in
25321   *[\\/]* ) as_myself=$0 ;;
25322   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25323 for as_dir in $PATH
25324 do
25325   IFS=$as_save_IFS
25326   test -z "$as_dir" && as_dir=.
25327   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25328 done
25329 IFS=$as_save_IFS
25330
25331      ;;
25332 esac
25333 # We did not find ourselves, most probably we were run as `sh COMMAND'
25334 # in which case we are not to be found in the path.
25335 if test "x$as_myself" = x; then
25336   as_myself=$0
25337 fi
25338 if test ! -f "$as_myself"; then
25339   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25340   { (exit 1); exit 1; }
25341 fi
25342
25343 # Work around bugs in pre-3.0 UWIN ksh.
25344 for as_var in ENV MAIL MAILPATH
25345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25346 done
25347 PS1='$ '
25348 PS2='> '
25349 PS4='+ '
25350
25351 # NLS nuisances.
25352 for as_var in \
25353   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25354   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25355   LC_TELEPHONE LC_TIME
25356 do
25357   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25358     eval $as_var=C; export $as_var
25359   else
25360     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25361   fi
25362 done
25363
25364 # Required to use basename.
25365 if expr a : '\(a\)' >/dev/null 2>&1 &&
25366    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25367   as_expr=expr
25368 else
25369   as_expr=false
25370 fi
25371
25372 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25373   as_basename=basename
25374 else
25375   as_basename=false
25376 fi
25377
25378
25379 # Name of the executable.
25380 as_me=`$as_basename -- "$0" ||
25381 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25382          X"$0" : 'X\(//\)$' \| \
25383          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25384 echo X/"$0" |
25385     sed '/^.*\/\([^/][^/]*\)\/*$/{
25386             s//\1/
25387             q
25388           }
25389           /^X\/\(\/\/\)$/{
25390             s//\1/
25391             q
25392           }
25393           /^X\/\(\/\).*/{
25394             s//\1/
25395             q
25396           }
25397           s/.*/./; q'`
25398
25399 # CDPATH.
25400 $as_unset CDPATH
25401
25402
25403
25404   as_lineno_1=$LINENO
25405   as_lineno_2=$LINENO
25406   test "x$as_lineno_1" != "x$as_lineno_2" &&
25407   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25408
25409   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25410   # uniformly replaced by the line number.  The first 'sed' inserts a
25411   # line-number line after each line using $LINENO; the second 'sed'
25412   # does the real work.  The second script uses 'N' to pair each
25413   # line-number line with the line containing $LINENO, and appends
25414   # trailing '-' during substitution so that $LINENO is not a special
25415   # case at line end.
25416   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25417   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25418   # E. McMahon (1931-1989) for sed's syntax.  :-)
25419   sed -n '
25420     p
25421     /[$]LINENO/=
25422   ' <$as_myself |
25423     sed '
25424       s/[$]LINENO.*/&-/
25425       t lineno
25426       b
25427       :lineno
25428       N
25429       :loop
25430       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25431       t loop
25432       s/-\n.*//
25433     ' >$as_me.lineno &&
25434   chmod +x "$as_me.lineno" ||
25435     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25436    { (exit 1); exit 1; }; }
25437
25438   # Don't try to exec as it changes $[0], causing all sort of problems
25439   # (the dirname of $[0] is not the place where we might find the
25440   # original and so on.  Autoconf is especially sensitive to this).
25441   . "./$as_me.lineno"
25442   # Exit status is that of the last command.
25443   exit
25444 }
25445
25446
25447 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25448   as_dirname=dirname
25449 else
25450   as_dirname=false
25451 fi
25452
25453 ECHO_C= ECHO_N= ECHO_T=
25454 case `echo -n x` in
25455 -n*)
25456   case `echo 'x\c'` in
25457   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25458   *)   ECHO_C='\c';;
25459   esac;;
25460 *)
25461   ECHO_N='-n';;
25462 esac
25463
25464 if expr a : '\(a\)' >/dev/null 2>&1 &&
25465    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25466   as_expr=expr
25467 else
25468   as_expr=false
25469 fi
25470
25471 rm -f conf$$ conf$$.exe conf$$.file
25472 if test -d conf$$.dir; then
25473   rm -f conf$$.dir/conf$$.file
25474 else
25475   rm -f conf$$.dir
25476   mkdir conf$$.dir
25477 fi
25478 echo >conf$$.file
25479 if ln -s conf$$.file conf$$ 2>/dev/null; then
25480   as_ln_s='ln -s'
25481   # ... but there are two gotchas:
25482   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25483   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25484   # In both cases, we have to default to `cp -p'.
25485   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25486     as_ln_s='cp -p'
25487 elif ln conf$$.file conf$$ 2>/dev/null; then
25488   as_ln_s=ln
25489 else
25490   as_ln_s='cp -p'
25491 fi
25492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25493 rmdir conf$$.dir 2>/dev/null
25494
25495 if mkdir -p . 2>/dev/null; then
25496   as_mkdir_p=:
25497 else
25498   test -d ./-p && rmdir ./-p
25499   as_mkdir_p=false
25500 fi
25501
25502 if test -x / >/dev/null 2>&1; then
25503   as_test_x='test -x'
25504 else
25505   if ls -dL / >/dev/null 2>&1; then
25506     as_ls_L_option=L
25507   else
25508     as_ls_L_option=
25509   fi
25510   as_test_x='
25511     eval sh -c '\''
25512       if test -d "$1"; then
25513         test -d "$1/.";
25514       else
25515         case $1 in
25516         -*)set "./$1";;
25517         esac;
25518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25519         ???[sx]*):;;*)false;;esac;fi
25520     '\'' sh
25521   '
25522 fi
25523 as_executable_p=$as_test_x
25524
25525 # Sed expression to map a string onto a valid CPP name.
25526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25527
25528 # Sed expression to map a string onto a valid variable name.
25529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25530
25531
25532 exec 6>&1
25533
25534 # Save the log message, to keep $[0] and so on meaningful, and to
25535 # report actual input values of CONFIG_FILES etc. instead of their
25536 # values after options handling.
25537 ac_log="
25538 This file was extended by glog $as_me 0.3.0, which was
25539 generated by GNU Autoconf 2.61.  Invocation command line was
25540
25541   CONFIG_FILES    = $CONFIG_FILES
25542   CONFIG_HEADERS  = $CONFIG_HEADERS
25543   CONFIG_LINKS    = $CONFIG_LINKS
25544   CONFIG_COMMANDS = $CONFIG_COMMANDS
25545   $ $0 $@
25546
25547 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25548 "
25549
25550 _ACEOF
25551
25552 cat >>$CONFIG_STATUS <<_ACEOF
25553 # Files that config.status was made for.
25554 config_files="$ac_config_files"
25555 config_headers="$ac_config_headers"
25556 config_commands="$ac_config_commands"
25557
25558 _ACEOF
25559
25560 cat >>$CONFIG_STATUS <<\_ACEOF
25561 ac_cs_usage="\
25562 \`$as_me' instantiates files from templates according to the
25563 current configuration.
25564
25565 Usage: $0 [OPTIONS] [FILE]...
25566
25567   -h, --help       print this help, then exit
25568   -V, --version    print version number and configuration settings, then exit
25569   -q, --quiet      do not print progress messages
25570   -d, --debug      don't remove temporary files
25571       --recheck    update $as_me by reconfiguring in the same conditions
25572   --file=FILE[:TEMPLATE]
25573                    instantiate the configuration file FILE
25574   --header=FILE[:TEMPLATE]
25575                    instantiate the configuration header FILE
25576
25577 Configuration files:
25578 $config_files
25579
25580 Configuration headers:
25581 $config_headers
25582
25583 Configuration commands:
25584 $config_commands
25585
25586 Report bugs to <bug-autoconf@gnu.org>."
25587
25588 _ACEOF
25589 cat >>$CONFIG_STATUS <<_ACEOF
25590 ac_cs_version="\\
25591 glog config.status 0.3.0
25592 configured by $0, generated by GNU Autoconf 2.61,
25593   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25594
25595 Copyright (C) 2006 Free Software Foundation, Inc.
25596 This config.status script is free software; the Free Software Foundation
25597 gives unlimited permission to copy, distribute and modify it."
25598
25599 ac_pwd='$ac_pwd'
25600 srcdir='$srcdir'
25601 INSTALL='$INSTALL'
25602 MKDIR_P='$MKDIR_P'
25603 _ACEOF
25604
25605 cat >>$CONFIG_STATUS <<\_ACEOF
25606 # If no file are specified by the user, then we need to provide default
25607 # value.  By we need to know if files were specified by the user.
25608 ac_need_defaults=:
25609 while test $# != 0
25610 do
25611   case $1 in
25612   --*=*)
25613     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25614     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25615     ac_shift=:
25616     ;;
25617   *)
25618     ac_option=$1
25619     ac_optarg=$2
25620     ac_shift=shift
25621     ;;
25622   esac
25623
25624   case $ac_option in
25625   # Handling of the options.
25626   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25627     ac_cs_recheck=: ;;
25628   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25629     echo "$ac_cs_version"; exit ;;
25630   --debug | --debu | --deb | --de | --d | -d )
25631     debug=: ;;
25632   --file | --fil | --fi | --f )
25633     $ac_shift
25634     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25635     ac_need_defaults=false;;
25636   --header | --heade | --head | --hea )
25637     $ac_shift
25638     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25639     ac_need_defaults=false;;
25640   --he | --h)
25641     # Conflict between --help and --header
25642     { echo "$as_me: error: ambiguous option: $1
25643 Try \`$0 --help' for more information." >&2
25644    { (exit 1); exit 1; }; };;
25645   --help | --hel | -h )
25646     echo "$ac_cs_usage"; exit ;;
25647   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25648   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25649     ac_cs_silent=: ;;
25650
25651   # This is an error.
25652   -*) { echo "$as_me: error: unrecognized option: $1
25653 Try \`$0 --help' for more information." >&2
25654    { (exit 1); exit 1; }; } ;;
25655
25656   *) ac_config_targets="$ac_config_targets $1"
25657      ac_need_defaults=false ;;
25658
25659   esac
25660   shift
25661 done
25662
25663 ac_configure_extra_args=
25664
25665 if $ac_cs_silent; then
25666   exec 6>/dev/null
25667   ac_configure_extra_args="$ac_configure_extra_args --silent"
25668 fi
25669
25670 _ACEOF
25671 cat >>$CONFIG_STATUS <<_ACEOF
25672 if \$ac_cs_recheck; then
25673   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25674   CONFIG_SHELL=$SHELL
25675   export CONFIG_SHELL
25676   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25677 fi
25678
25679 _ACEOF
25680 cat >>$CONFIG_STATUS <<\_ACEOF
25681 exec 5>>config.log
25682 {
25683   echo
25684   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25685 ## Running $as_me. ##
25686 _ASBOX
25687   echo "$ac_log"
25688 } >&5
25689
25690 _ACEOF
25691 cat >>$CONFIG_STATUS <<_ACEOF
25692 #
25693 # INIT-COMMANDS
25694 #
25695 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25696
25697 _ACEOF
25698
25699 cat >>$CONFIG_STATUS <<\_ACEOF
25700
25701 # Handling of arguments.
25702 for ac_config_target in $ac_config_targets
25703 do
25704   case $ac_config_target in
25705     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25706     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25707     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25708     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
25709     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
25710     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
25711     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
25712     "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
25713
25714   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25715 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25716    { (exit 1); exit 1; }; };;
25717   esac
25718 done
25719
25720
25721 # If the user did not use the arguments to specify the items to instantiate,
25722 # then the envvar interface is used.  Set only those that are not.
25723 # We use the long form for the default assignment because of an extremely
25724 # bizarre bug on SunOS 4.1.3.
25725 if $ac_need_defaults; then
25726   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25727   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25728   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25729 fi
25730
25731 # Have a temporary directory for convenience.  Make it in the build tree
25732 # simply because there is no reason against having it here, and in addition,
25733 # creating and moving files from /tmp can sometimes cause problems.
25734 # Hook for its removal unless debugging.
25735 # Note that there is a small window in which the directory will not be cleaned:
25736 # after its creation but before its name has been assigned to `$tmp'.
25737 $debug ||
25738 {
25739   tmp=
25740   trap 'exit_status=$?
25741   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25742 ' 0
25743   trap '{ (exit 1); exit 1; }' 1 2 13 15
25744 }
25745 # Create a (secure) tmp directory for tmp files.
25746
25747 {
25748   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25749   test -n "$tmp" && test -d "$tmp"
25750 }  ||
25751 {
25752   tmp=./conf$$-$RANDOM
25753   (umask 077 && mkdir "$tmp")
25754 } ||
25755 {
25756    echo "$me: cannot create a temporary directory in ." >&2
25757    { (exit 1); exit 1; }
25758 }
25759
25760 #
25761 # Set up the sed scripts for CONFIG_FILES section.
25762 #
25763
25764 # No need to generate the scripts if there are no CONFIG_FILES.
25765 # This happens for instance when ./config.status config.h
25766 if test -n "$CONFIG_FILES"; then
25767
25768 _ACEOF
25769
25770
25771
25772 ac_delim='%!_!# '
25773 for ac_last_try in false false false false false :; do
25774   cat >conf$$subs.sed <<_ACEOF
25775 SHELL!$SHELL$ac_delim
25776 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25777 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25778 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25779 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25780 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25781 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25782 exec_prefix!$exec_prefix$ac_delim
25783 prefix!$prefix$ac_delim
25784 program_transform_name!$program_transform_name$ac_delim
25785 bindir!$bindir$ac_delim
25786 sbindir!$sbindir$ac_delim
25787 libexecdir!$libexecdir$ac_delim
25788 datarootdir!$datarootdir$ac_delim
25789 datadir!$datadir$ac_delim
25790 sysconfdir!$sysconfdir$ac_delim
25791 sharedstatedir!$sharedstatedir$ac_delim
25792 localstatedir!$localstatedir$ac_delim
25793 includedir!$includedir$ac_delim
25794 oldincludedir!$oldincludedir$ac_delim
25795 docdir!$docdir$ac_delim
25796 infodir!$infodir$ac_delim
25797 htmldir!$htmldir$ac_delim
25798 dvidir!$dvidir$ac_delim
25799 pdfdir!$pdfdir$ac_delim
25800 psdir!$psdir$ac_delim
25801 libdir!$libdir$ac_delim
25802 localedir!$localedir$ac_delim
25803 mandir!$mandir$ac_delim
25804 DEFS!$DEFS$ac_delim
25805 ECHO_C!$ECHO_C$ac_delim
25806 ECHO_N!$ECHO_N$ac_delim
25807 ECHO_T!$ECHO_T$ac_delim
25808 LIBS!$LIBS$ac_delim
25809 build_alias!$build_alias$ac_delim
25810 host_alias!$host_alias$ac_delim
25811 target_alias!$target_alias$ac_delim
25812 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25813 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25814 INSTALL_DATA!$INSTALL_DATA$ac_delim
25815 am__isrc!$am__isrc$ac_delim
25816 CYGPATH_W!$CYGPATH_W$ac_delim
25817 PACKAGE!$PACKAGE$ac_delim
25818 VERSION!$VERSION$ac_delim
25819 ACLOCAL!$ACLOCAL$ac_delim
25820 AUTOCONF!$AUTOCONF$ac_delim
25821 AUTOMAKE!$AUTOMAKE$ac_delim
25822 AUTOHEADER!$AUTOHEADER$ac_delim
25823 MAKEINFO!$MAKEINFO$ac_delim
25824 install_sh!$install_sh$ac_delim
25825 STRIP!$STRIP$ac_delim
25826 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25827 mkdir_p!$mkdir_p$ac_delim
25828 AWK!$AWK$ac_delim
25829 SET_MAKE!$SET_MAKE$ac_delim
25830 am__leading_dot!$am__leading_dot$ac_delim
25831 AMTAR!$AMTAR$ac_delim
25832 am__tar!$am__tar$ac_delim
25833 am__untar!$am__untar$ac_delim
25834 CC!$CC$ac_delim
25835 CFLAGS!$CFLAGS$ac_delim
25836 LDFLAGS!$LDFLAGS$ac_delim
25837 CPPFLAGS!$CPPFLAGS$ac_delim
25838 ac_ct_CC!$ac_ct_CC$ac_delim
25839 EXEEXT!$EXEEXT$ac_delim
25840 OBJEXT!$OBJEXT$ac_delim
25841 DEPDIR!$DEPDIR$ac_delim
25842 am__include!$am__include$ac_delim
25843 am__quote!$am__quote$ac_delim
25844 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25845 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25846 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25847 CCDEPMODE!$CCDEPMODE$ac_delim
25848 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25849 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25850 CPP!$CPP$ac_delim
25851 CXX!$CXX$ac_delim
25852 CXXFLAGS!$CXXFLAGS$ac_delim
25853 ac_ct_CXX!$ac_ct_CXX$ac_delim
25854 CXXDEPMODE!$CXXDEPMODE$ac_delim
25855 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25856 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25857 GCC_TRUE!$GCC_TRUE$ac_delim
25858 GCC_FALSE!$GCC_FALSE$ac_delim
25859 build!$build$ac_delim
25860 build_cpu!$build_cpu$ac_delim
25861 build_vendor!$build_vendor$ac_delim
25862 build_os!$build_os$ac_delim
25863 host!$host$ac_delim
25864 host_cpu!$host_cpu$ac_delim
25865 host_vendor!$host_vendor$ac_delim
25866 host_os!$host_os$ac_delim
25867 SED!$SED$ac_delim
25868 GREP!$GREP$ac_delim
25869 EGREP!$EGREP$ac_delim
25870 LN_S!$LN_S$ac_delim
25871 ECHO!$ECHO$ac_delim
25872 _ACEOF
25873
25874   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25875     break
25876   elif $ac_last_try; then
25877     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25878 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25879    { (exit 1); exit 1; }; }
25880   else
25881     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25882   fi
25883 done
25884
25885 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25886 if test -n "$ac_eof"; then
25887   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25888   ac_eof=`expr $ac_eof + 1`
25889 fi
25890
25891 cat >>$CONFIG_STATUS <<_ACEOF
25892 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25894 _ACEOF
25895 sed '
25896 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25897 s/^/s,@/; s/!/@,|#_!!_#|/
25898 :n
25899 t n
25900 s/'"$ac_delim"'$/,g/; t
25901 s/$/\\/; p
25902 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25903 ' >>$CONFIG_STATUS <conf$$subs.sed
25904 rm -f conf$$subs.sed
25905 cat >>$CONFIG_STATUS <<_ACEOF
25906 CEOF$ac_eof
25907 _ACEOF
25908
25909
25910 ac_delim='%!_!# '
25911 for ac_last_try in false false false false false :; do
25912   cat >conf$$subs.sed <<_ACEOF
25913 AR!$AR$ac_delim
25914 RANLIB!$RANLIB$ac_delim
25915 DSYMUTIL!$DSYMUTIL$ac_delim
25916 NMEDIT!$NMEDIT$ac_delim
25917 CXXCPP!$CXXCPP$ac_delim
25918 F77!$F77$ac_delim
25919 FFLAGS!$FFLAGS$ac_delim
25920 ac_ct_F77!$ac_ct_F77$ac_delim
25921 LIBTOOL!$LIBTOOL$ac_delim
25922 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
25923 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
25924 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
25925 X86_64_TRUE!$X86_64_TRUE$ac_delim
25926 X86_64_FALSE!$X86_64_FALSE$ac_delim
25927 acx_pthread_config!$acx_pthread_config$ac_delim
25928 PTHREAD_CC!$PTHREAD_CC$ac_delim
25929 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
25930 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25931 GTEST_CONFIG!$GTEST_CONFIG$ac_delim
25932 GMOCK_CONFIG!$GMOCK_CONFIG$ac_delim
25933 HAVE_GMOCK_TRUE!$HAVE_GMOCK_TRUE$ac_delim
25934 HAVE_GMOCK_FALSE!$HAVE_GMOCK_FALSE$ac_delim
25935 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
25936 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
25937 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
25938 ac_google_namespace!$ac_google_namespace$ac_delim
25939 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
25940 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
25941 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
25942 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
25943 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
25944 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
25945 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
25946 ac_cv_have_unistd_h!$ac_cv_have_unistd_h$ac_delim
25947 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
25948 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
25949 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
25950 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
25951 GFLAGS_CFLAGS!$GFLAGS_CFLAGS$ac_delim
25952 GTEST_CFLAGS!$GTEST_CFLAGS$ac_delim
25953 GMOCK_CFLAGS!$GMOCK_CFLAGS$ac_delim
25954 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
25955 GTEST_LIBS!$GTEST_LIBS$ac_delim
25956 GMOCK_LIBS!$GMOCK_LIBS$ac_delim
25957 LIBOBJS!$LIBOBJS$ac_delim
25958 LTLIBOBJS!$LTLIBOBJS$ac_delim
25959 _ACEOF
25960
25961   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
25962     break
25963   elif $ac_last_try; then
25964     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25965 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25966    { (exit 1); exit 1; }; }
25967   else
25968     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25969   fi
25970 done
25971
25972 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25973 if test -n "$ac_eof"; then
25974   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25975   ac_eof=`expr $ac_eof + 1`
25976 fi
25977
25978 cat >>$CONFIG_STATUS <<_ACEOF
25979 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25981 _ACEOF
25982 sed '
25983 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25984 s/^/s,@/; s/!/@,|#_!!_#|/
25985 :n
25986 t n
25987 s/'"$ac_delim"'$/,g/; t
25988 s/$/\\/; p
25989 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25990 ' >>$CONFIG_STATUS <conf$$subs.sed
25991 rm -f conf$$subs.sed
25992 cat >>$CONFIG_STATUS <<_ACEOF
25993 :end
25994 s/|#_!!_#|//g
25995 CEOF$ac_eof
25996 _ACEOF
25997
25998
25999 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26000 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26001 # trailing colons and then remove the whole line if VPATH becomes empty
26002 # (actually we leave an empty line to preserve line numbers).
26003 if test "x$srcdir" = x.; then
26004   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26005 s/:*\$(srcdir):*/:/
26006 s/:*\${srcdir}:*/:/
26007 s/:*@srcdir@:*/:/
26008 s/^\([^=]*=[     ]*\):*/\1/
26009 s/:*$//
26010 s/^[^=]*=[       ]*$//
26011 }'
26012 fi
26013
26014 cat >>$CONFIG_STATUS <<\_ACEOF
26015 fi # test -n "$CONFIG_FILES"
26016
26017
26018 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26019 do
26020   case $ac_tag in
26021   :[FHLC]) ac_mode=$ac_tag; continue;;
26022   esac
26023   case $ac_mode$ac_tag in
26024   :[FHL]*:*);;
26025   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26026 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26027    { (exit 1); exit 1; }; };;
26028   :[FH]-) ac_tag=-:-;;
26029   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26030   esac
26031   ac_save_IFS=$IFS
26032   IFS=:
26033   set x $ac_tag
26034   IFS=$ac_save_IFS
26035   shift
26036   ac_file=$1
26037   shift
26038
26039   case $ac_mode in
26040   :L) ac_source=$1;;
26041   :[FH])
26042     ac_file_inputs=
26043     for ac_f
26044     do
26045       case $ac_f in
26046       -) ac_f="$tmp/stdin";;
26047       *) # Look for the file first in the build tree, then in the source tree
26048          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26049          # because $ac_f cannot contain `:'.
26050          test -f "$ac_f" ||
26051            case $ac_f in
26052            [\\/$]*) false;;
26053            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26054            esac ||
26055            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26056 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26057    { (exit 1); exit 1; }; };;
26058       esac
26059       ac_file_inputs="$ac_file_inputs $ac_f"
26060     done
26061
26062     # Let's still pretend it is `configure' which instantiates (i.e., don't
26063     # use $as_me), people would be surprised to read:
26064     #    /* config.h.  Generated by config.status.  */
26065     configure_input="Generated from "`IFS=:
26066           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26067     if test x"$ac_file" != x-; then
26068       configure_input="$ac_file.  $configure_input"
26069       { echo "$as_me:$LINENO: creating $ac_file" >&5
26070 echo "$as_me: creating $ac_file" >&6;}
26071     fi
26072
26073     case $ac_tag in
26074     *:-:* | *:-) cat >"$tmp/stdin";;
26075     esac
26076     ;;
26077   esac
26078
26079   ac_dir=`$as_dirname -- "$ac_file" ||
26080 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26081          X"$ac_file" : 'X\(//\)[^/]' \| \
26082          X"$ac_file" : 'X\(//\)$' \| \
26083          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26084 echo X"$ac_file" |
26085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26086             s//\1/
26087             q
26088           }
26089           /^X\(\/\/\)[^/].*/{
26090             s//\1/
26091             q
26092           }
26093           /^X\(\/\/\)$/{
26094             s//\1/
26095             q
26096           }
26097           /^X\(\/\).*/{
26098             s//\1/
26099             q
26100           }
26101           s/.*/./; q'`
26102   { as_dir="$ac_dir"
26103   case $as_dir in #(
26104   -*) as_dir=./$as_dir;;
26105   esac
26106   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26107     as_dirs=
26108     while :; do
26109       case $as_dir in #(
26110       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26111       *) as_qdir=$as_dir;;
26112       esac
26113       as_dirs="'$as_qdir' $as_dirs"
26114       as_dir=`$as_dirname -- "$as_dir" ||
26115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26116          X"$as_dir" : 'X\(//\)[^/]' \| \
26117          X"$as_dir" : 'X\(//\)$' \| \
26118          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26119 echo X"$as_dir" |
26120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26121             s//\1/
26122             q
26123           }
26124           /^X\(\/\/\)[^/].*/{
26125             s//\1/
26126             q
26127           }
26128           /^X\(\/\/\)$/{
26129             s//\1/
26130             q
26131           }
26132           /^X\(\/\).*/{
26133             s//\1/
26134             q
26135           }
26136           s/.*/./; q'`
26137       test -d "$as_dir" && break
26138     done
26139     test -z "$as_dirs" || eval "mkdir $as_dirs"
26140   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26141 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26142    { (exit 1); exit 1; }; }; }
26143   ac_builddir=.
26144
26145 case "$ac_dir" in
26146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26147 *)
26148   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26149   # A ".." for each directory in $ac_dir_suffix.
26150   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26151   case $ac_top_builddir_sub in
26152   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26153   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26154   esac ;;
26155 esac
26156 ac_abs_top_builddir=$ac_pwd
26157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26158 # for backward compatibility:
26159 ac_top_builddir=$ac_top_build_prefix
26160
26161 case $srcdir in
26162   .)  # We are building in place.
26163     ac_srcdir=.
26164     ac_top_srcdir=$ac_top_builddir_sub
26165     ac_abs_top_srcdir=$ac_pwd ;;
26166   [\\/]* | ?:[\\/]* )  # Absolute name.
26167     ac_srcdir=$srcdir$ac_dir_suffix;
26168     ac_top_srcdir=$srcdir
26169     ac_abs_top_srcdir=$srcdir ;;
26170   *) # Relative name.
26171     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26172     ac_top_srcdir=$ac_top_build_prefix$srcdir
26173     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26174 esac
26175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26176
26177
26178   case $ac_mode in
26179   :F)
26180   #
26181   # CONFIG_FILE
26182   #
26183
26184   case $INSTALL in
26185   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26186   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26187   esac
26188   ac_MKDIR_P=$MKDIR_P
26189   case $MKDIR_P in
26190   [\\/$]* | ?:[\\/]* ) ;;
26191   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26192   esac
26193 _ACEOF
26194
26195 cat >>$CONFIG_STATUS <<\_ACEOF
26196 # If the template does not know about datarootdir, expand it.
26197 # FIXME: This hack should be removed a few years after 2.60.
26198 ac_datarootdir_hack=; ac_datarootdir_seen=
26199
26200 case `sed -n '/datarootdir/ {
26201   p
26202   q
26203 }
26204 /@datadir@/p
26205 /@docdir@/p
26206 /@infodir@/p
26207 /@localedir@/p
26208 /@mandir@/p
26209 ' $ac_file_inputs` in
26210 *datarootdir*) ac_datarootdir_seen=yes;;
26211 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26212   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26213 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26214 _ACEOF
26215 cat >>$CONFIG_STATUS <<_ACEOF
26216   ac_datarootdir_hack='
26217   s&@datadir@&$datadir&g
26218   s&@docdir@&$docdir&g
26219   s&@infodir@&$infodir&g
26220   s&@localedir@&$localedir&g
26221   s&@mandir@&$mandir&g
26222     s&\\\${datarootdir}&$datarootdir&g' ;;
26223 esac
26224 _ACEOF
26225
26226 # Neutralize VPATH when `$srcdir' = `.'.
26227 # Shell code in configure.ac might set extrasub.
26228 # FIXME: do we really want to maintain this feature?
26229 cat >>$CONFIG_STATUS <<_ACEOF
26230   sed "$ac_vpsub
26231 $extrasub
26232 _ACEOF
26233 cat >>$CONFIG_STATUS <<\_ACEOF
26234 :t
26235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26236 s&@configure_input@&$configure_input&;t t
26237 s&@top_builddir@&$ac_top_builddir_sub&;t t
26238 s&@srcdir@&$ac_srcdir&;t t
26239 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26240 s&@top_srcdir@&$ac_top_srcdir&;t t
26241 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26242 s&@builddir@&$ac_builddir&;t t
26243 s&@abs_builddir@&$ac_abs_builddir&;t t
26244 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26245 s&@INSTALL@&$ac_INSTALL&;t t
26246 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26247 $ac_datarootdir_hack
26248 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26249
26250 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26251   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26252   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26253   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26254 which seems to be undefined.  Please make sure it is defined." >&5
26255 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26256 which seems to be undefined.  Please make sure it is defined." >&2;}
26257
26258   rm -f "$tmp/stdin"
26259   case $ac_file in
26260   -) cat "$tmp/out"; rm -f "$tmp/out";;
26261   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26262   esac
26263  ;;
26264   :H)
26265   #
26266   # CONFIG_HEADER
26267   #
26268 _ACEOF
26269
26270 # Transform confdefs.h into a sed script `conftest.defines', that
26271 # substitutes the proper values into config.h.in to produce config.h.
26272 rm -f conftest.defines conftest.tail
26273 # First, append a space to every undef/define line, to ease matching.
26274 echo 's/$/ /' >conftest.defines
26275 # Then, protect against being on the right side of a sed subst, or in
26276 # an unquoted here document, in config.status.  If some macros were
26277 # called several times there might be several #defines for the same
26278 # symbol, which is useless.  But do not sort them, since the last
26279 # AC_DEFINE must be honored.
26280 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26281 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26282 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26283 # PARAMS is the parameter list in the macro definition--in most cases, it's
26284 # just an empty string.
26285 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26286 ac_dB='\\)[      (].*,\\1define\\2'
26287 ac_dC=' '
26288 ac_dD=' ,'
26289
26290 uniq confdefs.h |
26291   sed -n '
26292         t rset
26293         :rset
26294         s/^[     ]*#[    ]*define[       ][      ]*//
26295         t ok
26296         d
26297         :ok
26298         s/[\\&,]/\\&/g
26299         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26300         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26301   ' >>conftest.defines
26302
26303 # Remove the space that was appended to ease matching.
26304 # Then replace #undef with comments.  This is necessary, for
26305 # example, in the case of _POSIX_SOURCE, which is predefined and required
26306 # on some systems where configure will not decide to define it.
26307 # (The regexp can be short, since the line contains either #define or #undef.)
26308 echo 's/ $//
26309 s,^[     #]*u.*,/* & */,' >>conftest.defines
26310
26311 # Break up conftest.defines:
26312 ac_max_sed_lines=50
26313
26314 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26315 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26316 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26317 # et cetera.
26318 ac_in='$ac_file_inputs'
26319 ac_out='"$tmp/out1"'
26320 ac_nxt='"$tmp/out2"'
26321
26322 while :
26323 do
26324   # Write a here document:
26325     cat >>$CONFIG_STATUS <<_ACEOF
26326     # First, check the format of the line:
26327     cat >"\$tmp/defines.sed" <<\\CEOF
26328 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26329 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26330 b
26331 :def
26332 _ACEOF
26333   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26334   echo 'CEOF
26335     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26336   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26337   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26338   grep . conftest.tail >/dev/null || break
26339   rm -f conftest.defines
26340   mv conftest.tail conftest.defines
26341 done
26342 rm -f conftest.defines conftest.tail
26343
26344 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26345 cat >>$CONFIG_STATUS <<\_ACEOF
26346   if test x"$ac_file" != x-; then
26347     echo "/* $configure_input  */" >"$tmp/config.h"
26348     cat "$ac_result" >>"$tmp/config.h"
26349     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26350       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26351 echo "$as_me: $ac_file is unchanged" >&6;}
26352     else
26353       rm -f $ac_file
26354       mv "$tmp/config.h" $ac_file
26355     fi
26356   else
26357     echo "/* $configure_input  */"
26358     cat "$ac_result"
26359   fi
26360   rm -f "$tmp/out12"
26361 # Compute $ac_file's index in $config_headers.
26362 _am_arg=$ac_file
26363 _am_stamp_count=1
26364 for _am_header in $config_headers :; do
26365   case $_am_header in
26366     $_am_arg | $_am_arg:* )
26367       break ;;
26368     * )
26369       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26370   esac
26371 done
26372 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26373 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26374          X"$_am_arg" : 'X\(//\)[^/]' \| \
26375          X"$_am_arg" : 'X\(//\)$' \| \
26376          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26377 echo X"$_am_arg" |
26378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26379             s//\1/
26380             q
26381           }
26382           /^X\(\/\/\)[^/].*/{
26383             s//\1/
26384             q
26385           }
26386           /^X\(\/\/\)$/{
26387             s//\1/
26388             q
26389           }
26390           /^X\(\/\).*/{
26391             s//\1/
26392             q
26393           }
26394           s/.*/./; q'`/stamp-h$_am_stamp_count
26395  ;;
26396
26397   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26398 echo "$as_me: executing $ac_file commands" >&6;}
26399  ;;
26400   esac
26401
26402
26403   case $ac_file$ac_mode in
26404     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26405   # Strip MF so we end up with the name of the file.
26406   mf=`echo "$mf" | sed -e 's/:.*$//'`
26407   # Check whether this is an Automake generated Makefile or not.
26408   # We used to match only the files named `Makefile.in', but
26409   # some people rename them; so instead we look at the file content.
26410   # Grep'ing the first line is not enough: some people post-process
26411   # each Makefile.in and add a new line on top of each file to say so.
26412   # Grep'ing the whole file is not good either: AIX grep has a line
26413   # limit of 2048, but all sed's we know have understand at least 4000.
26414   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26415     dirpart=`$as_dirname -- "$mf" ||
26416 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26417          X"$mf" : 'X\(//\)[^/]' \| \
26418          X"$mf" : 'X\(//\)$' \| \
26419          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26420 echo X"$mf" |
26421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26422             s//\1/
26423             q
26424           }
26425           /^X\(\/\/\)[^/].*/{
26426             s//\1/
26427             q
26428           }
26429           /^X\(\/\/\)$/{
26430             s//\1/
26431             q
26432           }
26433           /^X\(\/\).*/{
26434             s//\1/
26435             q
26436           }
26437           s/.*/./; q'`
26438   else
26439     continue
26440   fi
26441   # Extract the definition of DEPDIR, am__include, and am__quote
26442   # from the Makefile without running `make'.
26443   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26444   test -z "$DEPDIR" && continue
26445   am__include=`sed -n 's/^am__include = //p' < "$mf"`
26446   test -z "am__include" && continue
26447   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26448   # When using ansi2knr, U may be empty or an underscore; expand it
26449   U=`sed -n 's/^U = //p' < "$mf"`
26450   # Find all dependency output files, they are included files with
26451   # $(DEPDIR) in their names.  We invoke sed twice because it is the
26452   # simplest approach to changing $(DEPDIR) to its actual value in the
26453   # expansion.
26454   for file in `sed -n "
26455     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26456        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26457     # Make sure the directory exists.
26458     test -f "$dirpart/$file" && continue
26459     fdir=`$as_dirname -- "$file" ||
26460 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26461          X"$file" : 'X\(//\)[^/]' \| \
26462          X"$file" : 'X\(//\)$' \| \
26463          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26464 echo X"$file" |
26465     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26466             s//\1/
26467             q
26468           }
26469           /^X\(\/\/\)[^/].*/{
26470             s//\1/
26471             q
26472           }
26473           /^X\(\/\/\)$/{
26474             s//\1/
26475             q
26476           }
26477           /^X\(\/\).*/{
26478             s//\1/
26479             q
26480           }
26481           s/.*/./; q'`
26482     { as_dir=$dirpart/$fdir
26483   case $as_dir in #(
26484   -*) as_dir=./$as_dir;;
26485   esac
26486   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26487     as_dirs=
26488     while :; do
26489       case $as_dir in #(
26490       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26491       *) as_qdir=$as_dir;;
26492       esac
26493       as_dirs="'$as_qdir' $as_dirs"
26494       as_dir=`$as_dirname -- "$as_dir" ||
26495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26496          X"$as_dir" : 'X\(//\)[^/]' \| \
26497          X"$as_dir" : 'X\(//\)$' \| \
26498          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26499 echo X"$as_dir" |
26500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26501             s//\1/
26502             q
26503           }
26504           /^X\(\/\/\)[^/].*/{
26505             s//\1/
26506             q
26507           }
26508           /^X\(\/\/\)$/{
26509             s//\1/
26510             q
26511           }
26512           /^X\(\/\).*/{
26513             s//\1/
26514             q
26515           }
26516           s/.*/./; q'`
26517       test -d "$as_dir" && break
26518     done
26519     test -z "$as_dirs" || eval "mkdir $as_dirs"
26520   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26521 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26522    { (exit 1); exit 1; }; }; }
26523     # echo "creating $dirpart/$file"
26524     echo '# dummy' > "$dirpart/$file"
26525   done
26526 done
26527  ;;
26528
26529   esac
26530 done # for ac_tag
26531
26532
26533 { (exit 0); exit 0; }
26534 _ACEOF
26535 chmod +x $CONFIG_STATUS
26536 ac_clean_files=$ac_clean_files_save
26537
26538
26539 # configure is writing to config.log, and then calls config.status.
26540 # config.status does its own redirection, appending to config.log.
26541 # Unfortunately, on DOS this fails, as config.log is still kept open
26542 # by configure, so config.status won't be able to write to it; its
26543 # output is simply discarded.  So we exec the FD to /dev/null,
26544 # effectively closing config.log, so it can be properly (re)opened and
26545 # appended to by config.status.  When coming back to configure, we
26546 # need to make the FD available again.
26547 if test "$no_create" != yes; then
26548   ac_cs_success=:
26549   ac_config_status_args=
26550   test "$silent" = yes &&
26551     ac_config_status_args="$ac_config_status_args --quiet"
26552   exec 5>/dev/null
26553   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26554   exec 5>>config.log
26555   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26556   # would make configure fail if this is the last instruction.
26557   $ac_cs_success || { (exit 1); exit 1; }
26558 fi
26559