Initial windows support. Now we don't have the stacktrace and several unittests.
[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.1.2.
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.1.2'
732 PACKAGE_STRING='glog 0.1.2'
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 UNWIND_LIBS
888 ac_google_start_namespace
889 ac_google_end_namespace
890 ac_google_namespace
891 ac_cv_cxx_using_operator
892 ac_cv___attribute___noreturn
893 ac_cv___attribute___printf_4_5
894 ac_cv_have___builtin_expect
895 ac_cv_have_stdint_h
896 ac_cv_have_systypes_h
897 ac_cv_have_inttypes_h
898 ac_cv_have_unistd_h
899 ac_cv_have_uint16_t
900 ac_cv_have_u_int16_t
901 ac_cv_have___uint16
902 ac_cv_have_libgflags
903 GFLAGS_LIBS
904 LIBOBJS
905 LTLIBOBJS'
906 ac_subst_files=''
907       ac_precious_vars='build_alias
908 host_alias
909 target_alias
910 CC
911 CFLAGS
912 LDFLAGS
913 LIBS
914 CPPFLAGS
915 CPP
916 CXX
917 CXXFLAGS
918 CCC
919 CXXCPP
920 F77
921 FFLAGS'
922
923
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
943
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
969
970 ac_prev=
971 ac_dashdash=
972 for ac_option
973 do
974   # If the previous option needs an argument, assign it.
975   if test -n "$ac_prev"; then
976     eval $ac_prev=\$ac_option
977     ac_prev=
978     continue
979   fi
980
981   case $ac_option in
982   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983   *)    ac_optarg=yes ;;
984   esac
985
986   # Accept the important Cygnus configure options, so we can diagnose typos.
987
988   case $ac_dashdash$ac_option in
989   --)
990     ac_dashdash=yes ;;
991
992   -bindir | --bindir | --bindi | --bind | --bin | --bi)
993     ac_prev=bindir ;;
994   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995     bindir=$ac_optarg ;;
996
997   -build | --build | --buil | --bui | --bu)
998     ac_prev=build_alias ;;
999   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000     build_alias=$ac_optarg ;;
1001
1002   -cache-file | --cache-file | --cache-fil | --cache-fi \
1003   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004     ac_prev=cache_file ;;
1005   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007     cache_file=$ac_optarg ;;
1008
1009   --config-cache | -C)
1010     cache_file=config.cache ;;
1011
1012   -datadir | --datadir | --datadi | --datad)
1013     ac_prev=datadir ;;
1014   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015     datadir=$ac_optarg ;;
1016
1017   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018   | --dataroo | --dataro | --datar)
1019     ac_prev=datarootdir ;;
1020   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022     datarootdir=$ac_optarg ;;
1023
1024   -disable-* | --disable-*)
1025     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026     # Reject names that are not valid shell variable names.
1027     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029    { (exit 1); exit 1; }; }
1030     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031     eval enable_$ac_feature=no ;;
1032
1033   -docdir | --docdir | --docdi | --doc | --do)
1034     ac_prev=docdir ;;
1035   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036     docdir=$ac_optarg ;;
1037
1038   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039     ac_prev=dvidir ;;
1040   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041     dvidir=$ac_optarg ;;
1042
1043   -enable-* | --enable-*)
1044     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048    { (exit 1); exit 1; }; }
1049     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050     eval enable_$ac_feature=\$ac_optarg ;;
1051
1052   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054   | --exec | --exe | --ex)
1055     ac_prev=exec_prefix ;;
1056   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058   | --exec=* | --exe=* | --ex=*)
1059     exec_prefix=$ac_optarg ;;
1060
1061   -gas | --gas | --ga | --g)
1062     # Obsolete; use --with-gas.
1063     with_gas=yes ;;
1064
1065   -help | --help | --hel | --he | -h)
1066     ac_init_help=long ;;
1067   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068     ac_init_help=recursive ;;
1069   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070     ac_init_help=short ;;
1071
1072   -host | --host | --hos | --ho)
1073     ac_prev=host_alias ;;
1074   -host=* | --host=* | --hos=* | --ho=*)
1075     host_alias=$ac_optarg ;;
1076
1077   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078     ac_prev=htmldir ;;
1079   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080   | --ht=*)
1081     htmldir=$ac_optarg ;;
1082
1083   -includedir | --includedir | --includedi | --included | --include \
1084   | --includ | --inclu | --incl | --inc)
1085     ac_prev=includedir ;;
1086   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087   | --includ=* | --inclu=* | --incl=* | --inc=*)
1088     includedir=$ac_optarg ;;
1089
1090   -infodir | --infodir | --infodi | --infod | --info | --inf)
1091     ac_prev=infodir ;;
1092   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093     infodir=$ac_optarg ;;
1094
1095   -libdir | --libdir | --libdi | --libd)
1096     ac_prev=libdir ;;
1097   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098     libdir=$ac_optarg ;;
1099
1100   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101   | --libexe | --libex | --libe)
1102     ac_prev=libexecdir ;;
1103   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104   | --libexe=* | --libex=* | --libe=*)
1105     libexecdir=$ac_optarg ;;
1106
1107   -localedir | --localedir | --localedi | --localed | --locale)
1108     ac_prev=localedir ;;
1109   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110     localedir=$ac_optarg ;;
1111
1112   -localstatedir | --localstatedir | --localstatedi | --localstated \
1113   | --localstate | --localstat | --localsta | --localst | --locals)
1114     ac_prev=localstatedir ;;
1115   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117     localstatedir=$ac_optarg ;;
1118
1119   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120     ac_prev=mandir ;;
1121   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122     mandir=$ac_optarg ;;
1123
1124   -nfp | --nfp | --nf)
1125     # Obsolete; use --without-fp.
1126     with_fp=no ;;
1127
1128   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129   | --no-cr | --no-c | -n)
1130     no_create=yes ;;
1131
1132   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134     no_recursion=yes ;;
1135
1136   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138   | --oldin | --oldi | --old | --ol | --o)
1139     ac_prev=oldincludedir ;;
1140   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143     oldincludedir=$ac_optarg ;;
1144
1145   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146     ac_prev=prefix ;;
1147   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148     prefix=$ac_optarg ;;
1149
1150   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151   | --program-pre | --program-pr | --program-p)
1152     ac_prev=program_prefix ;;
1153   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155     program_prefix=$ac_optarg ;;
1156
1157   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158   | --program-suf | --program-su | --program-s)
1159     ac_prev=program_suffix ;;
1160   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162     program_suffix=$ac_optarg ;;
1163
1164   -program-transform-name | --program-transform-name \
1165   | --program-transform-nam | --program-transform-na \
1166   | --program-transform-n | --program-transform- \
1167   | --program-transform | --program-transfor \
1168   | --program-transfo | --program-transf \
1169   | --program-trans | --program-tran \
1170   | --progr-tra | --program-tr | --program-t)
1171     ac_prev=program_transform_name ;;
1172   -program-transform-name=* | --program-transform-name=* \
1173   | --program-transform-nam=* | --program-transform-na=* \
1174   | --program-transform-n=* | --program-transform-=* \
1175   | --program-transform=* | --program-transfor=* \
1176   | --program-transfo=* | --program-transf=* \
1177   | --program-trans=* | --program-tran=* \
1178   | --progr-tra=* | --program-tr=* | --program-t=*)
1179     program_transform_name=$ac_optarg ;;
1180
1181   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182     ac_prev=pdfdir ;;
1183   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184     pdfdir=$ac_optarg ;;
1185
1186   -psdir | --psdir | --psdi | --psd | --ps)
1187     ac_prev=psdir ;;
1188   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189     psdir=$ac_optarg ;;
1190
1191   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192   | -silent | --silent | --silen | --sile | --sil)
1193     silent=yes ;;
1194
1195   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196     ac_prev=sbindir ;;
1197   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198   | --sbi=* | --sb=*)
1199     sbindir=$ac_optarg ;;
1200
1201   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203   | --sharedst | --shareds | --shared | --share | --shar \
1204   | --sha | --sh)
1205     ac_prev=sharedstatedir ;;
1206   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209   | --sha=* | --sh=*)
1210     sharedstatedir=$ac_optarg ;;
1211
1212   -site | --site | --sit)
1213     ac_prev=site ;;
1214   -site=* | --site=* | --sit=*)
1215     site=$ac_optarg ;;
1216
1217   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218     ac_prev=srcdir ;;
1219   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220     srcdir=$ac_optarg ;;
1221
1222   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223   | --syscon | --sysco | --sysc | --sys | --sy)
1224     ac_prev=sysconfdir ;;
1225   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227     sysconfdir=$ac_optarg ;;
1228
1229   -target | --target | --targe | --targ | --tar | --ta | --t)
1230     ac_prev=target_alias ;;
1231   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232     target_alias=$ac_optarg ;;
1233
1234   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235     verbose=yes ;;
1236
1237   -version | --version | --versio | --versi | --vers | -V)
1238     ac_init_version=: ;;
1239
1240   -with-* | --with-*)
1241     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244       { echo "$as_me: error: invalid package name: $ac_package" >&2
1245    { (exit 1); exit 1; }; }
1246     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247     eval with_$ac_package=\$ac_optarg ;;
1248
1249   -without-* | --without-*)
1250     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1257
1258   --x)
1259     # Obsolete; use --with-x.
1260     with_x=yes ;;
1261
1262   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263   | --x-incl | --x-inc | --x-in | --x-i)
1264     ac_prev=x_includes ;;
1265   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267     x_includes=$ac_optarg ;;
1268
1269   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271     ac_prev=x_libraries ;;
1272   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274     x_libraries=$ac_optarg ;;
1275
1276   -*) { echo "$as_me: error: unrecognized option: $ac_option
1277 Try \`$0 --help' for more information." >&2
1278    { (exit 1); exit 1; }; }
1279     ;;
1280
1281   *=*)
1282     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283     # Reject names that are not valid shell variable names.
1284     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1285       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1286    { (exit 1); exit 1; }; }
1287     eval $ac_envvar=\$ac_optarg
1288     export $ac_envvar ;;
1289
1290   *)
1291     # FIXME: should be removed in autoconf 3.0.
1292     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296     ;;
1297
1298   esac
1299 done
1300
1301 if test -n "$ac_prev"; then
1302   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303   { echo "$as_me: error: missing argument to $ac_option" >&2
1304    { (exit 1); exit 1; }; }
1305 fi
1306
1307 # Be sure to have absolute directory names.
1308 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309                 datadir sysconfdir sharedstatedir localstatedir includedir \
1310                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311                 libdir localedir mandir
1312 do
1313   eval ac_val=\$$ac_var
1314   case $ac_val in
1315     [\\/$]* | ?:[\\/]* )  continue;;
1316     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317   esac
1318   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1319    { (exit 1); exit 1; }; }
1320 done
1321
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1325 build=$build_alias
1326 host=$host_alias
1327 target=$target_alias
1328
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331   if test "x$build_alias" = x; then
1332     cross_compiling=maybe
1333     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334     If a cross compiler is detected then cross compile mode will be used." >&2
1335   elif test "x$build_alias" != "x$host_alias"; then
1336     cross_compiling=yes
1337   fi
1338 fi
1339
1340 ac_tool_prefix=
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343 test "$silent" = yes && exec 6>/dev/null
1344
1345
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349   { echo "$as_me: error: Working directory cannot be determined" >&2
1350    { (exit 1); exit 1; }; }
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352   { echo "$as_me: error: pwd does not report name of working directory" >&2
1353    { (exit 1); exit 1; }; }
1354
1355
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358   ac_srcdir_defaulted=yes
1359   # Try the directory containing this script, then the parent directory.
1360   ac_confdir=`$as_dirname -- "$0" ||
1361 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362          X"$0" : 'X\(//\)[^/]' \| \
1363          X"$0" : 'X\(//\)$' \| \
1364          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1365 echo X"$0" |
1366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\/\)[^/].*/{
1371             s//\1/
1372             q
1373           }
1374           /^X\(\/\/\)$/{
1375             s//\1/
1376             q
1377           }
1378           /^X\(\/\).*/{
1379             s//\1/
1380             q
1381           }
1382           s/.*/./; q'`
1383   srcdir=$ac_confdir
1384   if test ! -r "$srcdir/$ac_unique_file"; then
1385     srcdir=..
1386   fi
1387 else
1388   ac_srcdir_defaulted=no
1389 fi
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1393    { (exit 1); exit 1; }; }
1394 fi
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1398    { (exit 1); exit 1; }; }
1399         pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402   srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412   eval ac_env_${ac_var}_value=\$${ac_var}
1413   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421   # Omit some internal or obsolete options to make the list less imposing.
1422   # This message is too long to be a string in the A/UX 3.1 sh.
1423   cat <<_ACEOF
1424 \`configure' configures glog 0.1.2 to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE.  See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434   -h, --help              display this help and exit
1435       --help=short        display options specific to this package
1436       --help=recursive    display the short help of all the included packages
1437   -V, --version           display version information and exit
1438   -q, --quiet, --silent   do not print \`checking...' messages
1439       --cache-file=FILE   cache test results in FILE [disabled]
1440   -C, --config-cache      alias for \`--cache-file=config.cache'
1441   -n, --no-create         do not create output files
1442       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445   --prefix=PREFIX         install architecture-independent files in PREFIX
1446                           [$ac_default_prefix]
1447   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1448                           [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458   --bindir=DIR           user executables [EPREFIX/bin]
1459   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1460   --libexecdir=DIR       program executables [EPREFIX/libexec]
1461   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1462   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1463   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1464   --libdir=DIR           object code libraries [EPREFIX/lib]
1465   --includedir=DIR       C header files [PREFIX/include]
1466   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1467   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1468   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1469   --infodir=DIR          info documentation [DATAROOTDIR/info]
1470   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1471   --mandir=DIR           man documentation [DATAROOTDIR/man]
1472   --docdir=DIR           documentation root [DATAROOTDIR/doc/glog]
1473   --htmldir=DIR          html documentation [DOCDIR]
1474   --dvidir=DIR           dvi documentation [DOCDIR]
1475   --pdfdir=DIR           pdf documentation [DOCDIR]
1476   --psdir=DIR            ps documentation [DOCDIR]
1477 _ACEOF
1478
1479   cat <<\_ACEOF
1480
1481 Program names:
1482   --program-prefix=PREFIX            prepend PREFIX to installed program names
1483   --program-suffix=SUFFIX            append SUFFIX to installed program names
1484   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1485
1486 System types:
1487   --build=BUILD     configure for building on BUILD [guessed]
1488   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493   case $ac_init_help in
1494      short | recursive ) echo "Configuration of glog 0.1.2:";;
1495    esac
1496   cat <<\_ACEOF
1497
1498 Optional Features:
1499   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1500   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1501   --disable-dependency-tracking  speeds up one-time build
1502   --enable-dependency-tracking   do not reject slow dependency extractors
1503   --enable-shared[=PKGS]  build shared libraries [default=yes]
1504   --enable-static[=PKGS]  build static libraries [default=yes]
1505   --enable-fast-install[=PKGS]
1506                           optimize for fast installation [default=yes]
1507   --disable-libtool-lock  avoid locking (might break parallel builds)
1508   --enable-frame-pointers On x86_64 systems, compile with
1509                           -fno-omit-frame-pointer (see INSTALL)
1510   --enable-namespace=FOO to define these Google
1511                              classes in the FOO namespace. --disable-namespace
1512                              to define them in the global namespace. Default
1513                              is to define them in namespace google.
1514
1515 Optional Packages:
1516   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1517   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1518   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1519   --with-pic              try to use only PIC/non-PIC objects [default=use
1520                           both]
1521   --with-tags[=TAGS]      include additional configurations [automatic]
1522
1523 Some influential environment variables:
1524   CC          C compiler command
1525   CFLAGS      C compiler flags
1526   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527               nonstandard directory <lib dir>
1528   LIBS        libraries to pass to the linker, e.g. -l<library>
1529   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530               you have headers in a nonstandard directory <include dir>
1531   CPP         C preprocessor
1532   CXX         C++ compiler command
1533   CXXFLAGS    C++ compiler flags
1534   CXXCPP      C++ preprocessor
1535   F77         Fortran 77 compiler command
1536   FFLAGS      Fortran 77 compiler flags
1537
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1540
1541 Report bugs to <opensource@google.com>.
1542 _ACEOF
1543 ac_status=$?
1544 fi
1545
1546 if test "$ac_init_help" = "recursive"; then
1547   # If there are subdirs, report their specific --help.
1548   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549     test -d "$ac_dir" || continue
1550     ac_builddir=.
1551
1552 case "$ac_dir" in
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *)
1555   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556   # A ".." for each directory in $ac_dir_suffix.
1557   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558   case $ac_top_builddir_sub in
1559   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561   esac ;;
1562 esac
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1567
1568 case $srcdir in
1569   .)  # We are building in place.
1570     ac_srcdir=.
1571     ac_top_srcdir=$ac_top_builddir_sub
1572     ac_abs_top_srcdir=$ac_pwd ;;
1573   [\\/]* | ?:[\\/]* )  # Absolute name.
1574     ac_srcdir=$srcdir$ac_dir_suffix;
1575     ac_top_srcdir=$srcdir
1576     ac_abs_top_srcdir=$srcdir ;;
1577   *) # Relative name.
1578     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579     ac_top_srcdir=$ac_top_build_prefix$srcdir
1580     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 esac
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584     cd "$ac_dir" || { ac_status=$?; continue; }
1585     # Check for guested configure.
1586     if test -f "$ac_srcdir/configure.gnu"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589     elif test -f "$ac_srcdir/configure"; then
1590       echo &&
1591       $SHELL "$ac_srcdir/configure" --help=recursive
1592     else
1593       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594     fi || ac_status=$?
1595     cd "$ac_pwd" || { ac_status=$?; break; }
1596   done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601   cat <<\_ACEOF
1602 glog configure 0.1.2
1603 generated by GNU Autoconf 2.61
1604
1605 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1606 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610   exit
1611 fi
1612 cat >config.log <<_ACEOF
1613 This file contains any messages produced by compilers while
1614 running configure, to aid debugging if configure makes a mistake.
1615
1616 It was created by glog $as_me 0.1.2, which was
1617 generated by GNU Autoconf 2.61.  Invocation command line was
1618
1619   $ $0 $@
1620
1621 _ACEOF
1622 exec 5>>config.log
1623 {
1624 cat <<_ASUNAME
1625 ## --------- ##
1626 ## Platform. ##
1627 ## --------- ##
1628
1629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634
1635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1637
1638 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1639 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1642 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1643 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1644 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1645
1646 _ASUNAME
1647
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1650 do
1651   IFS=$as_save_IFS
1652   test -z "$as_dir" && as_dir=.
1653   echo "PATH: $as_dir"
1654 done
1655 IFS=$as_save_IFS
1656
1657 } >&5
1658
1659 cat >&5 <<_ACEOF
1660
1661
1662 ## ----------- ##
1663 ## Core tests. ##
1664 ## ----------- ##
1665
1666 _ACEOF
1667
1668
1669 # Keep a trace of the command line.
1670 # Strip out --no-create and --no-recursion so they do not pile up.
1671 # Strip out --silent because we don't want to record it for future runs.
1672 # Also quote any args containing shell meta-characters.
1673 # Make two passes to allow for proper duplicate-argument suppression.
1674 ac_configure_args=
1675 ac_configure_args0=
1676 ac_configure_args1=
1677 ac_must_keep_next=false
1678 for ac_pass in 1 2
1679 do
1680   for ac_arg
1681   do
1682     case $ac_arg in
1683     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685     | -silent | --silent | --silen | --sile | --sil)
1686       continue ;;
1687     *\'*)
1688       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689     esac
1690     case $ac_pass in
1691     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692     2)
1693       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694       if test $ac_must_keep_next = true; then
1695         ac_must_keep_next=false # Got value, back to normal.
1696       else
1697         case $ac_arg in
1698           *=* | --config-cache | -C | -disable-* | --disable-* \
1699           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701           | -with-* | --with-* | -without-* | --without-* | --x)
1702             case "$ac_configure_args0 " in
1703               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704             esac
1705             ;;
1706           -* ) ac_must_keep_next=true ;;
1707         esac
1708       fi
1709       ac_configure_args="$ac_configure_args '$ac_arg'"
1710       ;;
1711     esac
1712   done
1713 done
1714 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716
1717 # When interrupted or exit'd, cleanup temporary files, and complete
1718 # config.log.  We remove comments because anyway the quotes in there
1719 # would cause problems or look ugly.
1720 # WARNING: Use '\'' to represent an apostrophe within the trap.
1721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722 trap 'exit_status=$?
1723   # Save into config.log some information that might help in debugging.
1724   {
1725     echo
1726
1727     cat <<\_ASBOX
1728 ## ---------------- ##
1729 ## Cache variables. ##
1730 ## ---------------- ##
1731 _ASBOX
1732     echo
1733     # The following way of writing the cache mishandles newlines in values,
1734 (
1735   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736     eval ac_val=\$$ac_var
1737     case $ac_val in #(
1738     *${as_nl}*)
1739       case $ac_var in #(
1740       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742       esac
1743       case $ac_var in #(
1744       _ | IFS | as_nl) ;; #(
1745       *) $as_unset $ac_var ;;
1746       esac ;;
1747     esac
1748   done
1749   (set) 2>&1 |
1750     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751     *${as_nl}ac_space=\ *)
1752       sed -n \
1753         "s/'\''/'\''\\\\'\'''\''/g;
1754           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755       ;; #(
1756     *)
1757       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758       ;;
1759     esac |
1760     sort
1761 )
1762     echo
1763
1764     cat <<\_ASBOX
1765 ## ----------------- ##
1766 ## Output variables. ##
1767 ## ----------------- ##
1768 _ASBOX
1769     echo
1770     for ac_var in $ac_subst_vars
1771     do
1772       eval ac_val=\$$ac_var
1773       case $ac_val in
1774       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775       esac
1776       echo "$ac_var='\''$ac_val'\''"
1777     done | sort
1778     echo
1779
1780     if test -n "$ac_subst_files"; then
1781       cat <<\_ASBOX
1782 ## ------------------- ##
1783 ## File substitutions. ##
1784 ## ------------------- ##
1785 _ASBOX
1786       echo
1787       for ac_var in $ac_subst_files
1788       do
1789         eval ac_val=\$$ac_var
1790         case $ac_val in
1791         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792         esac
1793         echo "$ac_var='\''$ac_val'\''"
1794       done | sort
1795       echo
1796     fi
1797
1798     if test -s confdefs.h; then
1799       cat <<\_ASBOX
1800 ## ----------- ##
1801 ## confdefs.h. ##
1802 ## ----------- ##
1803 _ASBOX
1804       echo
1805       cat confdefs.h
1806       echo
1807     fi
1808     test "$ac_signal" != 0 &&
1809       echo "$as_me: caught signal $ac_signal"
1810     echo "$as_me: exit $exit_status"
1811   } >&5
1812   rm -f core *.core core.conftest.* &&
1813     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814     exit $exit_status
1815 ' 0
1816 for ac_signal in 1 2 13 15; do
1817   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818 done
1819 ac_signal=0
1820
1821 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1822 rm -f -r conftest* confdefs.h
1823
1824 # Predefined preprocessor variables.
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_NAME "$PACKAGE_NAME"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_STRING "$PACKAGE_STRING"
1843 _ACEOF
1844
1845
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848 _ACEOF
1849
1850
1851 # Let the site file select an alternate cache file if it wants to.
1852 # Prefer explicitly selected file to automatically selected ones.
1853 if test -n "$CONFIG_SITE"; then
1854   set x "$CONFIG_SITE"
1855 elif test "x$prefix" != xNONE; then
1856   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1857 else
1858   set x "$ac_default_prefix/share/config.site" \
1859         "$ac_default_prefix/etc/config.site"
1860 fi
1861 shift
1862 for ac_site_file
1863 do
1864   if test -r "$ac_site_file"; then
1865     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 echo "$as_me: loading site script $ac_site_file" >&6;}
1867     sed 's/^/| /' "$ac_site_file" >&5
1868     . "$ac_site_file"
1869   fi
1870 done
1871
1872 if test -r "$cache_file"; then
1873   # Some versions of bash will fail to source /dev/null (special
1874   # files actually), so we avoid doing that.
1875   if test -f "$cache_file"; then
1876     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 echo "$as_me: loading cache $cache_file" >&6;}
1878     case $cache_file in
1879       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880       *)                      . "./$cache_file";;
1881     esac
1882   fi
1883 else
1884   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 echo "$as_me: creating cache $cache_file" >&6;}
1886   >$cache_file
1887 fi
1888
1889 # Check that the precious variables saved in the cache have kept the same
1890 # value.
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894   eval ac_new_set=\$ac_env_${ac_var}_set
1895   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896   eval ac_new_val=\$ac_env_${ac_var}_value
1897   case $ac_old_set,$ac_new_set in
1898     set,)
1899       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901       ac_cache_corrupted=: ;;
1902     ,set)
1903       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905       ac_cache_corrupted=: ;;
1906     ,);;
1907     *)
1908       if test "x$ac_old_val" != "x$ac_new_val"; then
1909         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1912 echo "$as_me:   former value:  $ac_old_val" >&2;}
1913         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1914 echo "$as_me:   current value: $ac_new_val" >&2;}
1915         ac_cache_corrupted=:
1916       fi;;
1917   esac
1918   # Pass precious variables to config.status.
1919   if test "$ac_new_set" = set; then
1920     case $ac_new_val in
1921     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922     *) ac_arg=$ac_var=$ac_new_val ;;
1923     esac
1924     case " $ac_configure_args " in
1925       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1926       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927     esac
1928   fi
1929 done
1930 if $ac_cache_corrupted; then
1931   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935    { (exit 1); exit 1; }; }
1936 fi
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962 ac_ext=c
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967
1968
1969 # The argument here is just something that should be in the current directory
1970 # (for sanity checking)
1971
1972 am__api_version='1.10'
1973
1974 ac_aux_dir=
1975 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1976   if test -f "$ac_dir/install-sh"; then
1977     ac_aux_dir=$ac_dir
1978     ac_install_sh="$ac_aux_dir/install-sh -c"
1979     break
1980   elif test -f "$ac_dir/install.sh"; then
1981     ac_aux_dir=$ac_dir
1982     ac_install_sh="$ac_aux_dir/install.sh -c"
1983     break
1984   elif test -f "$ac_dir/shtool"; then
1985     ac_aux_dir=$ac_dir
1986     ac_install_sh="$ac_aux_dir/shtool install -c"
1987     break
1988   fi
1989 done
1990 if test -z "$ac_aux_dir"; then
1991   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1992 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1993    { (exit 1); exit 1; }; }
1994 fi
1995
1996 # These three variables are undocumented and unsupported,
1997 # and are intended to be withdrawn in a future Autoconf release.
1998 # They can cause serious problems if a builder's source tree is in a directory
1999 # whose full name contains unusual characters.
2000 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2001 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2002 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2003
2004
2005 # Find a good install program.  We prefer a C program (faster),
2006 # so one script is as good as another.  But avoid the broken or
2007 # incompatible versions:
2008 # SysV /etc/install, /usr/sbin/install
2009 # SunOS /usr/etc/install
2010 # IRIX /sbin/install
2011 # AIX /bin/install
2012 # AmigaOS /C/install, which installs bootblocks on floppy discs
2013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2016 # OS/2's system install, which has a completely different semantic
2017 # ./install, which can be erroneously created by make from ./install.sh.
2018 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2020 if test -z "$INSTALL"; then
2021 if test "${ac_cv_path_install+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   # Account for people who put trailing slashes in PATH elements.
2030 case $as_dir/ in
2031   ./ | .// | /cC/* | \
2032   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2034   /usr/ucb/* ) ;;
2035   *)
2036     # OSF1 and SCO ODT 3.0 have their own names for install.
2037     # Don't use installbsd from OSF since it installs stuff as root
2038     # by default.
2039     for ac_prog in ginstall scoinst install; do
2040       for ac_exec_ext in '' $ac_executable_extensions; do
2041         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042           if test $ac_prog = install &&
2043             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044             # AIX install.  It has an incompatible calling convention.
2045             :
2046           elif test $ac_prog = install &&
2047             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048             # program-specific install script used by HP pwplus--don't use.
2049             :
2050           else
2051             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2052             break 3
2053           fi
2054         fi
2055       done
2056     done
2057     ;;
2058 esac
2059 done
2060 IFS=$as_save_IFS
2061
2062
2063 fi
2064   if test "${ac_cv_path_install+set}" = set; then
2065     INSTALL=$ac_cv_path_install
2066   else
2067     # As a last resort, use the slow shell script.  Don't cache a
2068     # value for INSTALL within a source directory, because that will
2069     # break other packages using the cache if that directory is
2070     # removed, or if the value is a relative name.
2071     INSTALL=$ac_install_sh
2072   fi
2073 fi
2074 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2075 echo "${ECHO_T}$INSTALL" >&6; }
2076
2077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078 # It thinks the first close brace ends the variable substitution.
2079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2080
2081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2082
2083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2084
2085 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2086 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2087 # Just in case
2088 sleep 1
2089 echo timestamp > conftest.file
2090 # Do `set' in a subshell so we don't clobber the current shell's
2091 # arguments.  Must try -L first in case configure is actually a
2092 # symlink; some systems play weird games with the mod time of symlinks
2093 # (eg FreeBSD returns the mod time of the symlink's containing
2094 # directory).
2095 if (
2096    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2097    if test "$*" = "X"; then
2098       # -L didn't work.
2099       set X `ls -t $srcdir/configure conftest.file`
2100    fi
2101    rm -f conftest.file
2102    if test "$*" != "X $srcdir/configure conftest.file" \
2103       && test "$*" != "X conftest.file $srcdir/configure"; then
2104
2105       # If neither matched, then we have a broken ls.  This can happen
2106       # if, for instance, CONFIG_SHELL is bash and it inherits a
2107       # broken ls alias from the environment.  This has actually
2108       # happened.  Such a system could not be considered "sane".
2109       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2110 alias in your environment" >&5
2111 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2112 alias in your environment" >&2;}
2113    { (exit 1); exit 1; }; }
2114    fi
2115
2116    test "$2" = conftest.file
2117    )
2118 then
2119    # Ok.
2120    :
2121 else
2122    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2123 Check your system clock" >&5
2124 echo "$as_me: error: newly created file is older than distributed files!
2125 Check your system clock" >&2;}
2126    { (exit 1); exit 1; }; }
2127 fi
2128 { echo "$as_me:$LINENO: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6; }
2130 test "$program_prefix" != NONE &&
2131   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2132 # Use a double $ so make ignores it.
2133 test "$program_suffix" != NONE &&
2134   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2135 # Double any \ or $.  echo might interpret backslashes.
2136 # By default was `s,x,x', remove it if useless.
2137 cat <<\_ACEOF >conftest.sed
2138 s/[\\$]/&&/g;s/;s,x,x,$//
2139 _ACEOF
2140 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2141 rm -f conftest.sed
2142
2143 # expand $ac_aux_dir to an absolute path
2144 am_aux_dir=`cd $ac_aux_dir && pwd`
2145
2146 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2147 # Use eval to expand $SHELL
2148 if eval "$MISSING --run true"; then
2149   am_missing_run="$MISSING --run "
2150 else
2151   am_missing_run=
2152   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2153 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2154 fi
2155
2156 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2157 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2158 if test -z "$MKDIR_P"; then
2159   if test "${ac_cv_path_mkdir+set}" = set; then
2160   echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2164 do
2165   IFS=$as_save_IFS
2166   test -z "$as_dir" && as_dir=.
2167   for ac_prog in mkdir gmkdir; do
2168          for ac_exec_ext in '' $ac_executable_extensions; do
2169            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2170            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2171              'mkdir (GNU coreutils) '* | \
2172              'mkdir (coreutils) '* | \
2173              'mkdir (fileutils) '4.1*)
2174                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2175                break 3;;
2176            esac
2177          done
2178        done
2179 done
2180 IFS=$as_save_IFS
2181
2182 fi
2183
2184   if test "${ac_cv_path_mkdir+set}" = set; then
2185     MKDIR_P="$ac_cv_path_mkdir -p"
2186   else
2187     # As a last resort, use the slow shell script.  Don't cache a
2188     # value for MKDIR_P within a source directory, because that will
2189     # break other packages using the cache if that directory is
2190     # removed, or if the value is a relative name.
2191     test -d ./--version && rmdir ./--version
2192     MKDIR_P="$ac_install_sh -d"
2193   fi
2194 fi
2195 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2196 echo "${ECHO_T}$MKDIR_P" >&6; }
2197
2198 mkdir_p="$MKDIR_P"
2199 case $mkdir_p in
2200   [\\/$]* | ?:[\\/]*) ;;
2201   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2202 esac
2203
2204 for ac_prog in gawk mawk nawk awk
2205 do
2206   # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210 if test "${ac_cv_prog_AWK+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   if test -n "$AWK"; then
2214   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219   IFS=$as_save_IFS
2220   test -z "$as_dir" && as_dir=.
2221   for ac_exec_ext in '' $ac_executable_extensions; do
2222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223     ac_cv_prog_AWK="$ac_prog"
2224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225     break 2
2226   fi
2227 done
2228 done
2229 IFS=$as_save_IFS
2230
2231 fi
2232 fi
2233 AWK=$ac_cv_prog_AWK
2234 if test -n "$AWK"; then
2235   { echo "$as_me:$LINENO: result: $AWK" >&5
2236 echo "${ECHO_T}$AWK" >&6; }
2237 else
2238   { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2240 fi
2241
2242
2243   test -n "$AWK" && break
2244 done
2245
2246 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2247 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2248 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2249 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   cat >conftest.make <<\_ACEOF
2253 SHELL = /bin/sh
2254 all:
2255         @echo '@@@%%%=$(MAKE)=@@@%%%'
2256 _ACEOF
2257 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2259   *@@@%%%=?*=@@@%%%*)
2260     eval ac_cv_prog_make_${ac_make}_set=yes;;
2261   *)
2262     eval ac_cv_prog_make_${ac_make}_set=no;;
2263 esac
2264 rm -f conftest.make
2265 fi
2266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2267   { echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6; }
2269   SET_MAKE=
2270 else
2271   { echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6; }
2273   SET_MAKE="MAKE=${MAKE-make}"
2274 fi
2275
2276 rm -rf .tst 2>/dev/null
2277 mkdir .tst 2>/dev/null
2278 if test -d .tst; then
2279   am__leading_dot=.
2280 else
2281   am__leading_dot=_
2282 fi
2283 rmdir .tst 2>/dev/null
2284
2285 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2286   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2287   # is not polluted with repeated "-I."
2288   am__isrc=' -I$(srcdir)'
2289   # test to see if srcdir already configured
2290   if test -f $srcdir/config.status; then
2291     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2292 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2293    { (exit 1); exit 1; }; }
2294   fi
2295 fi
2296
2297 # test whether we have cygpath
2298 if test -z "$CYGPATH_W"; then
2299   if (cygpath --version) >/dev/null 2>/dev/null; then
2300     CYGPATH_W='cygpath -w'
2301   else
2302     CYGPATH_W=echo
2303   fi
2304 fi
2305
2306
2307 # Define the identity of the package.
2308  PACKAGE='glog'
2309  VERSION='0.1.2'
2310
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE "$PACKAGE"
2314 _ACEOF
2315
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define VERSION "$VERSION"
2319 _ACEOF
2320
2321 # Some tools Automake needs.
2322
2323 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2324
2325
2326 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2327
2328
2329 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2330
2331
2332 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2333
2334
2335 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2336
2337 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2338
2339 # Installed binaries are usually stripped using `strip' when the user
2340 # run `make install-strip'.  However `strip' might not be the right
2341 # tool to use in cross-compilation environments, therefore Automake
2342 # will honor the `STRIP' environment variable to overrule this program.
2343 if test "$cross_compiling" != no; then
2344   if test -n "$ac_tool_prefix"; then
2345   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}strip; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_STRIP+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   if test -n "$STRIP"; then
2353   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360   for ac_exec_ext in '' $ac_executable_extensions; do
2361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 STRIP=$ac_cv_prog_STRIP
2373 if test -n "$STRIP"; then
2374   { echo "$as_me:$LINENO: result: $STRIP" >&5
2375 echo "${ECHO_T}$STRIP" >&6; }
2376 else
2377   { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379 fi
2380
2381
2382 fi
2383 if test -z "$ac_cv_prog_STRIP"; then
2384   ac_ct_STRIP=$STRIP
2385   # Extract the first word of "strip", so it can be a program name with args.
2386 set dummy strip; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   if test -n "$ac_ct_STRIP"; then
2393   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400   for ac_exec_ext in '' $ac_executable_extensions; do
2401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402     ac_cv_prog_ac_ct_STRIP="strip"
2403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404     break 2
2405   fi
2406 done
2407 done
2408 IFS=$as_save_IFS
2409
2410 fi
2411 fi
2412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2413 if test -n "$ac_ct_STRIP"; then
2414   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2415 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2416 else
2417   { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2419 fi
2420
2421   if test "x$ac_ct_STRIP" = x; then
2422     STRIP=":"
2423   else
2424     case $cross_compiling:$ac_tool_warned in
2425 yes:)
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet.  If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet.  If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2433 esac
2434     STRIP=$ac_ct_STRIP
2435   fi
2436 else
2437   STRIP="$ac_cv_prog_STRIP"
2438 fi
2439
2440 fi
2441 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2442
2443 # We need awk for the "check" target.  The system "awk" is bad on
2444 # some platforms.
2445 # Always define AMTAR for backward compatibility.
2446
2447 AMTAR=${AMTAR-"${am_missing_run}tar"}
2448
2449 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2450
2451
2452
2453
2454
2455 ac_config_headers="$ac_config_headers src/config.h"
2456
2457
2458 # Checks for programs.
2459 ac_ext=c
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464 if test -n "$ac_tool_prefix"; then
2465   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2466 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2469 if test "${ac_cv_prog_CC+set}" = set; then
2470   echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472   if test -n "$CC"; then
2473   ac_cv_prog_CC="$CC" # Let the user override the test.
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478   IFS=$as_save_IFS
2479   test -z "$as_dir" && as_dir=.
2480   for ac_exec_ext in '' $ac_executable_extensions; do
2481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484     break 2
2485   fi
2486 done
2487 done
2488 IFS=$as_save_IFS
2489
2490 fi
2491 fi
2492 CC=$ac_cv_prog_CC
2493 if test -n "$CC"; then
2494   { echo "$as_me:$LINENO: result: $CC" >&5
2495 echo "${ECHO_T}$CC" >&6; }
2496 else
2497   { echo "$as_me:$LINENO: result: no" >&5
2498 echo "${ECHO_T}no" >&6; }
2499 fi
2500
2501
2502 fi
2503 if test -z "$ac_cv_prog_CC"; then
2504   ac_ct_CC=$CC
2505   # Extract the first word of "gcc", so it can be a program name with args.
2506 set dummy gcc; ac_word=$2
2507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2510   echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512   if test -n "$ac_ct_CC"; then
2513   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518   IFS=$as_save_IFS
2519   test -z "$as_dir" && as_dir=.
2520   for ac_exec_ext in '' $ac_executable_extensions; do
2521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522     ac_cv_prog_ac_ct_CC="gcc"
2523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524     break 2
2525   fi
2526 done
2527 done
2528 IFS=$as_save_IFS
2529
2530 fi
2531 fi
2532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2535 echo "${ECHO_T}$ac_ct_CC" >&6; }
2536 else
2537   { echo "$as_me:$LINENO: result: no" >&5
2538 echo "${ECHO_T}no" >&6; }
2539 fi
2540
2541   if test "x$ac_ct_CC" = x; then
2542     CC=""
2543   else
2544     case $cross_compiling:$ac_tool_warned in
2545 yes:)
2546 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2547 whose name does not start with the host triplet.  If you think this
2548 configuration is useful to you, please write to autoconf@gnu.org." >&5
2549 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2550 whose name does not start with the host triplet.  If you think this
2551 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2552 ac_tool_warned=yes ;;
2553 esac
2554     CC=$ac_ct_CC
2555   fi
2556 else
2557   CC="$ac_cv_prog_CC"
2558 fi
2559
2560 if test -z "$CC"; then
2561           if test -n "$ac_tool_prefix"; then
2562     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2563 set dummy ${ac_tool_prefix}cc; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_CC+set}" = set; then
2567   echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569   if test -n "$CC"; then
2570   ac_cv_prog_CC="$CC" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575   IFS=$as_save_IFS
2576   test -z "$as_dir" && as_dir=.
2577   for ac_exec_ext in '' $ac_executable_extensions; do
2578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579     ac_cv_prog_CC="${ac_tool_prefix}cc"
2580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581     break 2
2582   fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 CC=$ac_cv_prog_CC
2590 if test -n "$CC"; then
2591   { echo "$as_me:$LINENO: result: $CC" >&5
2592 echo "${ECHO_T}$CC" >&6; }
2593 else
2594   { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2596 fi
2597
2598
2599   fi
2600 fi
2601 if test -z "$CC"; then
2602   # Extract the first word of "cc", so it can be a program name with args.
2603 set dummy cc; ac_word=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_CC+set}" = set; then
2607   echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609   if test -n "$CC"; then
2610   ac_cv_prog_CC="$CC" # Let the user override the test.
2611 else
2612   ac_prog_rejected=no
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616   IFS=$as_save_IFS
2617   test -z "$as_dir" && as_dir=.
2618   for ac_exec_ext in '' $ac_executable_extensions; do
2619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2621        ac_prog_rejected=yes
2622        continue
2623      fi
2624     ac_cv_prog_CC="cc"
2625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626     break 2
2627   fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 if test $ac_prog_rejected = yes; then
2633   # We found a bogon in the path, so make sure we never use it.
2634   set dummy $ac_cv_prog_CC
2635   shift
2636   if test $# != 0; then
2637     # We chose a different compiler from the bogus one.
2638     # However, it has the same basename, so the bogon will be chosen
2639     # first if we set CC to just the basename; use the full file name.
2640     shift
2641     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2642   fi
2643 fi
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648   { echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6; }
2650 else
2651   { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2653 fi
2654
2655
2656 fi
2657 if test -z "$CC"; then
2658   if test -n "$ac_tool_prefix"; then
2659   for ac_prog in cl.exe
2660   do
2661     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_CC+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   if test -n "$CC"; then
2669   ac_cv_prog_CC="$CC" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674   IFS=$as_save_IFS
2675   test -z "$as_dir" && as_dir=.
2676   for ac_exec_ext in '' $ac_executable_extensions; do
2677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680     break 2
2681   fi
2682 done
2683 done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 CC=$ac_cv_prog_CC
2689 if test -n "$CC"; then
2690   { echo "$as_me:$LINENO: result: $CC" >&5
2691 echo "${ECHO_T}$CC" >&6; }
2692 else
2693   { echo "$as_me:$LINENO: result: no" >&5
2694 echo "${ECHO_T}no" >&6; }
2695 fi
2696
2697
2698     test -n "$CC" && break
2699   done
2700 fi
2701 if test -z "$CC"; then
2702   ac_ct_CC=$CC
2703   for ac_prog in cl.exe
2704 do
2705   # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   if test -n "$ac_ct_CC"; then
2713   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718   IFS=$as_save_IFS
2719   test -z "$as_dir" && as_dir=.
2720   for ac_exec_ext in '' $ac_executable_extensions; do
2721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722     ac_cv_prog_ac_ct_CC="$ac_prog"
2723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724     break 2
2725   fi
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2733 if test -n "$ac_ct_CC"; then
2734   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2735 echo "${ECHO_T}$ac_ct_CC" >&6; }
2736 else
2737   { echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6; }
2739 fi
2740
2741
2742   test -n "$ac_ct_CC" && break
2743 done
2744
2745   if test "x$ac_ct_CC" = x; then
2746     CC=""
2747   else
2748     case $cross_compiling:$ac_tool_warned in
2749 yes:)
2750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2751 whose name does not start with the host triplet.  If you think this
2752 configuration is useful to you, please write to autoconf@gnu.org." >&5
2753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2754 whose name does not start with the host triplet.  If you think this
2755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2756 ac_tool_warned=yes ;;
2757 esac
2758     CC=$ac_ct_CC
2759   fi
2760 fi
2761
2762 fi
2763
2764
2765 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2766 See \`config.log' for more details." >&5
2767 echo "$as_me: error: no acceptable C compiler found in \$PATH
2768 See \`config.log' for more details." >&2;}
2769    { (exit 1); exit 1; }; }
2770
2771 # Provide some information about the compiler.
2772 echo "$as_me:$LINENO: checking for C compiler version" >&5
2773 ac_compiler=`set X $ac_compile; echo $2`
2774 { (ac_try="$ac_compiler --version >&5"
2775 case "(($ac_try" in
2776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777   *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780   (eval "$ac_compiler --version >&5") 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }
2784 { (ac_try="$ac_compiler -v >&5"
2785 case "(($ac_try" in
2786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787   *) ac_try_echo=$ac_try;;
2788 esac
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790   (eval "$ac_compiler -v >&5") 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }
2794 { (ac_try="$ac_compiler -V >&5"
2795 case "(($ac_try" in
2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797   *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800   (eval "$ac_compiler -V >&5") 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }
2804
2805 cat >conftest.$ac_ext <<_ACEOF
2806 /* confdefs.h.  */
2807 _ACEOF
2808 cat confdefs.h >>conftest.$ac_ext
2809 cat >>conftest.$ac_ext <<_ACEOF
2810 /* end confdefs.h.  */
2811
2812 int
2813 main ()
2814 {
2815
2816   ;
2817   return 0;
2818 }
2819 _ACEOF
2820 ac_clean_files_save=$ac_clean_files
2821 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2822 # Try to create an executable without -o first, disregard a.out.
2823 # It will help us diagnose broken compilers, and finding out an intuition
2824 # of exeext.
2825 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2826 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2827 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2828 #
2829 # List of possible output files, starting from the most likely.
2830 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2831 # only as a last resort.  b.out is created by i960 compilers.
2832 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2833 #
2834 # The IRIX 6 linker writes into existing files which may not be
2835 # executable, retaining their permissions.  Remove them first so a
2836 # subsequent execution test works.
2837 ac_rmfiles=
2838 for ac_file in $ac_files
2839 do
2840   case $ac_file in
2841     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2842     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2843   esac
2844 done
2845 rm -f $ac_rmfiles
2846
2847 if { (ac_try="$ac_link_default"
2848 case "(($ac_try" in
2849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850   *) ac_try_echo=$ac_try;;
2851 esac
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853   (eval "$ac_link_default") 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; then
2857   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2858 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2859 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2860 # so that the user can short-circuit this test for compilers unknown to
2861 # Autoconf.
2862 for ac_file in $ac_files ''
2863 do
2864   test -f "$ac_file" || continue
2865   case $ac_file in
2866     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2867         ;;
2868     [ab].out )
2869         # We found the default executable, but exeext='' is most
2870         # certainly right.
2871         break;;
2872     *.* )
2873         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2874         then :; else
2875            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2876         fi
2877         # We set ac_cv_exeext here because the later test for it is not
2878         # safe: cross compilers may not add the suffix if given an `-o'
2879         # argument, so we may need to know it at that point already.
2880         # Even if this section looks crufty: it has the advantage of
2881         # actually working.
2882         break;;
2883     * )
2884         break;;
2885   esac
2886 done
2887 test "$ac_cv_exeext" = no && ac_cv_exeext=
2888
2889 else
2890   ac_file=''
2891 fi
2892
2893 { echo "$as_me:$LINENO: result: $ac_file" >&5
2894 echo "${ECHO_T}$ac_file" >&6; }
2895 if test -z "$ac_file"; then
2896   echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2900 See \`config.log' for more details." >&5
2901 echo "$as_me: error: C compiler cannot create executables
2902 See \`config.log' for more details." >&2;}
2903    { (exit 77); exit 77; }; }
2904 fi
2905
2906 ac_exeext=$ac_cv_exeext
2907
2908 # Check that the compiler produces executables we can run.  If not, either
2909 # the compiler is broken, or we cross compile.
2910 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2911 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2912 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2913 # If not cross compiling, check that we can run a simple program.
2914 if test "$cross_compiling" != yes; then
2915   if { ac_try='./$ac_file'
2916   { (case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921   (eval "$ac_try") 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; }; then
2925     cross_compiling=no
2926   else
2927     if test "$cross_compiling" = maybe; then
2928         cross_compiling=yes
2929     else
2930         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2931 If you meant to cross compile, use \`--host'.
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: cannot run C compiled programs.
2934 If you meant to cross compile, use \`--host'.
2935 See \`config.log' for more details." >&2;}
2936    { (exit 1); exit 1; }; }
2937     fi
2938   fi
2939 fi
2940 { echo "$as_me:$LINENO: result: yes" >&5
2941 echo "${ECHO_T}yes" >&6; }
2942
2943 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2944 ac_clean_files=$ac_clean_files_save
2945 # Check that the compiler produces executables we can run.  If not, either
2946 # the compiler is broken, or we cross compile.
2947 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2948 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2949 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2950 echo "${ECHO_T}$cross_compiling" >&6; }
2951
2952 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2953 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2954 if { (ac_try="$ac_link"
2955 case "(($ac_try" in
2956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957   *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960   (eval "$ac_link") 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; then
2964   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2965 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2966 # work properly (i.e., refer to `conftest.exe'), while it won't with
2967 # `rm'.
2968 for ac_file in conftest.exe conftest conftest.*; do
2969   test -f "$ac_file" || continue
2970   case $ac_file in
2971     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2972     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973           break;;
2974     * ) break;;
2975   esac
2976 done
2977 else
2978   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2981 See \`config.log' for more details." >&2;}
2982    { (exit 1); exit 1; }; }
2983 fi
2984
2985 rm -f conftest$ac_cv_exeext
2986 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2987 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2988
2989 rm -f conftest.$ac_ext
2990 EXEEXT=$ac_cv_exeext
2991 ac_exeext=$EXEEXT
2992 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2993 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2994 if test "${ac_cv_objext+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h.  */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h.  */
3003
3004 int
3005 main ()
3006 {
3007
3008   ;
3009   return 0;
3010 }
3011 _ACEOF
3012 rm -f conftest.o conftest.obj
3013 if { (ac_try="$ac_compile"
3014 case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019   (eval "$ac_compile") 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; then
3023   for ac_file in conftest.o conftest.obj conftest.*; do
3024   test -f "$ac_file" || continue;
3025   case $ac_file in
3026     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3027     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3028        break;;
3029   esac
3030 done
3031 else
3032   echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3038 See \`config.log' for more details." >&2;}
3039    { (exit 1); exit 1; }; }
3040 fi
3041
3042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3043 fi
3044 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3045 echo "${ECHO_T}$ac_cv_objext" >&6; }
3046 OBJEXT=$ac_cv_objext
3047 ac_objext=$OBJEXT
3048 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3049 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3050 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053   cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059
3060 int
3061 main ()
3062 {
3063 #ifndef __GNUC__
3064        choke me
3065 #endif
3066
3067   ;
3068   return 0;
3069 }
3070 _ACEOF
3071 rm -f conftest.$ac_objext
3072 if { (ac_try="$ac_compile"
3073 case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078   (eval "$ac_compile") 2>conftest.er1
3079   ac_status=$?
3080   grep -v '^ *+' conftest.er1 >conftest.err
3081   rm -f conftest.er1
3082   cat conftest.err >&5
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); } && {
3085          test -z "$ac_c_werror_flag" ||
3086          test ! -s conftest.err
3087        } && test -s conftest.$ac_objext; then
3088   ac_compiler_gnu=yes
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093         ac_compiler_gnu=no
3094 fi
3095
3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3098
3099 fi
3100 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3101 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3102 GCC=`test $ac_compiler_gnu = yes && echo yes`
3103 ac_test_CFLAGS=${CFLAGS+set}
3104 ac_save_CFLAGS=$CFLAGS
3105 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3106 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3107 if test "${ac_cv_prog_cc_g+set}" = set; then
3108   echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110   ac_save_c_werror_flag=$ac_c_werror_flag
3111    ac_c_werror_flag=yes
3112    ac_cv_prog_cc_g=no
3113    CFLAGS="-g"
3114    cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120
3121 int
3122 main ()
3123 {
3124
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_compile") 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } && {
3143          test -z "$ac_c_werror_flag" ||
3144          test ! -s conftest.err
3145        } && test -s conftest.$ac_objext; then
3146   ac_cv_prog_cc_g=yes
3147 else
3148   echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151         CFLAGS=""
3152       cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 rm -f conftest.$ac_objext
3168 if { (ac_try="$ac_compile"
3169 case "(($ac_try" in
3170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171   *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174   (eval "$ac_compile") 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } && {
3181          test -z "$ac_c_werror_flag" ||
3182          test ! -s conftest.err
3183        } && test -s conftest.$ac_objext; then
3184   :
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189         ac_c_werror_flag=$ac_save_c_werror_flag
3190          CFLAGS="-g"
3191          cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197
3198 int
3199 main ()
3200 {
3201
3202   ;
3203   return 0;
3204 }
3205 _ACEOF
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213   (eval "$ac_compile") 2>conftest.er1
3214   ac_status=$?
3215   grep -v '^ *+' conftest.er1 >conftest.err
3216   rm -f conftest.er1
3217   cat conftest.err >&5
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); } && {
3220          test -z "$ac_c_werror_flag" ||
3221          test ! -s conftest.err
3222        } && test -s conftest.$ac_objext; then
3223   ac_cv_prog_cc_g=yes
3224 else
3225   echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3227
3228
3229 fi
3230
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 fi
3233
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 fi
3236
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238    ac_c_werror_flag=$ac_save_c_werror_flag
3239 fi
3240 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3241 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3242 if test "$ac_test_CFLAGS" = set; then
3243   CFLAGS=$ac_save_CFLAGS
3244 elif test $ac_cv_prog_cc_g = yes; then
3245   if test "$GCC" = yes; then
3246     CFLAGS="-g -O2"
3247   else
3248     CFLAGS="-g"
3249   fi
3250 else
3251   if test "$GCC" = yes; then
3252     CFLAGS="-O2"
3253   else
3254     CFLAGS=
3255   fi
3256 fi
3257 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3258 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3259 if test "${ac_cv_prog_cc_c89+set}" = set; then
3260   echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262   ac_cv_prog_cc_c89=no
3263 ac_save_CC=$CC
3264 cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 #include <stdarg.h>
3271 #include <stdio.h>
3272 #include <sys/types.h>
3273 #include <sys/stat.h>
3274 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3275 struct buf { int x; };
3276 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3277 static char *e (p, i)
3278      char **p;
3279      int i;
3280 {
3281   return p[i];
3282 }
3283 static char *f (char * (*g) (char **, int), char **p, ...)
3284 {
3285   char *s;
3286   va_list v;
3287   va_start (v,p);
3288   s = g (p, va_arg (v,int));
3289   va_end (v);
3290   return s;
3291 }
3292
3293 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3294    function prototypes and stuff, but not '\xHH' hex character constants.
3295    These don't provoke an error unfortunately, instead are silently treated
3296    as 'x'.  The following induces an error, until -std is added to get
3297    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3298    array size at least.  It's necessary to write '\x00'==0 to get something
3299    that's true only with -std.  */
3300 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3301
3302 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3303    inside strings and character constants.  */
3304 #define FOO(x) 'x'
3305 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3306
3307 int test (int i, double x);
3308 struct s1 {int (*f) (int a);};
3309 struct s2 {int (*f) (double a);};
3310 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3311 int argc;
3312 char **argv;
3313 int
3314 main ()
3315 {
3316 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3317   ;
3318   return 0;
3319 }
3320 _ACEOF
3321 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3322         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3323 do
3324   CC="$ac_save_CC $ac_arg"
3325   rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3327 case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332   (eval "$ac_compile") 2>conftest.er1
3333   ac_status=$?
3334   grep -v '^ *+' conftest.er1 >conftest.err
3335   rm -f conftest.er1
3336   cat conftest.err >&5
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); } && {
3339          test -z "$ac_c_werror_flag" ||
3340          test ! -s conftest.err
3341        } && test -s conftest.$ac_objext; then
3342   ac_cv_prog_cc_c89=$ac_arg
3343 else
3344   echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347
3348 fi
3349
3350 rm -f core conftest.err conftest.$ac_objext
3351   test "x$ac_cv_prog_cc_c89" != "xno" && break
3352 done
3353 rm -f conftest.$ac_ext
3354 CC=$ac_save_CC
3355
3356 fi
3357 # AC_CACHE_VAL
3358 case "x$ac_cv_prog_cc_c89" in
3359   x)
3360     { echo "$as_me:$LINENO: result: none needed" >&5
3361 echo "${ECHO_T}none needed" >&6; } ;;
3362   xno)
3363     { echo "$as_me:$LINENO: result: unsupported" >&5
3364 echo "${ECHO_T}unsupported" >&6; } ;;
3365   *)
3366     CC="$CC $ac_cv_prog_cc_c89"
3367     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3369 esac
3370
3371
3372 ac_ext=c
3373 ac_cpp='$CPP $CPPFLAGS'
3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377 DEPDIR="${am__leading_dot}deps"
3378
3379 ac_config_commands="$ac_config_commands depfiles"
3380
3381
3382 am_make=${MAKE-make}
3383 cat > confinc << 'END'
3384 am__doit:
3385         @echo done
3386 .PHONY: am__doit
3387 END
3388 # If we don't find an include directive, just comment out the code.
3389 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3390 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3391 am__include="#"
3392 am__quote=
3393 _am_result=none
3394 # First try GNU make style include.
3395 echo "include confinc" > confmf
3396 # We grep out `Entering directory' and `Leaving directory'
3397 # messages which can occur if `w' ends up in MAKEFLAGS.
3398 # In particular we don't look at `^make:' because GNU make might
3399 # be invoked under some other name (usually "gmake"), in which
3400 # case it prints its new name instead of `make'.
3401 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3402    am__include=include
3403    am__quote=
3404    _am_result=GNU
3405 fi
3406 # Now try BSD make style include.
3407 if test "$am__include" = "#"; then
3408    echo '.include "confinc"' > confmf
3409    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3410       am__include=.include
3411       am__quote="\""
3412       _am_result=BSD
3413    fi
3414 fi
3415
3416
3417 { echo "$as_me:$LINENO: result: $_am_result" >&5
3418 echo "${ECHO_T}$_am_result" >&6; }
3419 rm -f confinc confmf
3420
3421 # Check whether --enable-dependency-tracking was given.
3422 if test "${enable_dependency_tracking+set}" = set; then
3423   enableval=$enable_dependency_tracking;
3424 fi
3425
3426 if test "x$enable_dependency_tracking" != xno; then
3427   am_depcomp="$ac_aux_dir/depcomp"
3428   AMDEPBACKSLASH='\'
3429 fi
3430  if test "x$enable_dependency_tracking" != xno; then
3431   AMDEP_TRUE=
3432   AMDEP_FALSE='#'
3433 else
3434   AMDEP_TRUE='#'
3435   AMDEP_FALSE=
3436 fi
3437
3438
3439
3440 depcc="$CC"   am_compiler_list=
3441
3442 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3443 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3444 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3445   echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3448   # We make a subdir and do the tests there.  Otherwise we can end up
3449   # making bogus files that we don't know about and never remove.  For
3450   # instance it was reported that on HP-UX the gcc test will end up
3451   # making a dummy file named `D' -- because `-MD' means `put the output
3452   # in D'.
3453   mkdir conftest.dir
3454   # Copy depcomp to subdir because otherwise we won't find it if we're
3455   # using a relative directory.
3456   cp "$am_depcomp" conftest.dir
3457   cd conftest.dir
3458   # We will build objects and dependencies in a subdirectory because
3459   # it helps to detect inapplicable dependency modes.  For instance
3460   # both Tru64's cc and ICC support -MD to output dependencies as a
3461   # side effect of compilation, but ICC will put the dependencies in
3462   # the current directory while Tru64 will put them in the object
3463   # directory.
3464   mkdir sub
3465
3466   am_cv_CC_dependencies_compiler_type=none
3467   if test "$am_compiler_list" = ""; then
3468      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3469   fi
3470   for depmode in $am_compiler_list; do
3471     # Setup a source with many dependencies, because some compilers
3472     # like to wrap large dependency lists on column 80 (with \), and
3473     # we should not choose a depcomp mode which is confused by this.
3474     #
3475     # We need to recreate these files for each test, as the compiler may
3476     # overwrite some of them when testing with obscure command lines.
3477     # This happens at least with the AIX C compiler.
3478     : > sub/conftest.c
3479     for i in 1 2 3 4 5 6; do
3480       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3481       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3482       # Solaris 8's {/usr,}/bin/sh.
3483       touch sub/conftst$i.h
3484     done
3485     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3486
3487     case $depmode in
3488     nosideeffect)
3489       # after this tag, mechanisms are not by side-effect, so they'll
3490       # only be used when explicitly requested
3491       if test "x$enable_dependency_tracking" = xyes; then
3492         continue
3493       else
3494         break
3495       fi
3496       ;;
3497     none) break ;;
3498     esac
3499     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3500     # mode.  It turns out that the SunPro C++ compiler does not properly
3501     # handle `-M -o', and we need to detect this.
3502     if depmode=$depmode \
3503        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3504        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3505        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3506          >/dev/null 2>conftest.err &&
3507        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3508        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3509        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3510        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3511       # icc doesn't choke on unknown options, it will just issue warnings
3512       # or remarks (even with -Werror).  So we grep stderr for any message
3513       # that says an option was ignored or not supported.
3514       # When given -MP, icc 7.0 and 7.1 complain thusly:
3515       #   icc: Command line warning: ignoring option '-M'; no argument required
3516       # The diagnosis changed in icc 8.0:
3517       #   icc: Command line remark: option '-MP' not supported
3518       if (grep 'ignoring option' conftest.err ||
3519           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3520         am_cv_CC_dependencies_compiler_type=$depmode
3521         break
3522       fi
3523     fi
3524   done
3525
3526   cd ..
3527   rm -rf conftest.dir
3528 else
3529   am_cv_CC_dependencies_compiler_type=none
3530 fi
3531
3532 fi
3533 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3534 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3535 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3536
3537  if
3538   test "x$enable_dependency_tracking" != xno \
3539   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3540   am__fastdepCC_TRUE=
3541   am__fastdepCC_FALSE='#'
3542 else
3543   am__fastdepCC_TRUE='#'
3544   am__fastdepCC_FALSE=
3545 fi
3546
3547
3548 ac_ext=c
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3554 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3555 # On Suns, sometimes $CPP names a directory.
3556 if test -n "$CPP" && test -d "$CPP"; then
3557   CPP=
3558 fi
3559 if test -z "$CPP"; then
3560   if test "${ac_cv_prog_CPP+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563       # Double quotes because CPP needs to be expanded
3564     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3565     do
3566       ac_preproc_ok=false
3567 for ac_c_preproc_warn_flag in '' yes
3568 do
3569   # Use a header file that comes with gcc, so configuring glibc
3570   # with a fresh cross-compiler works.
3571   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3572   # <limits.h> exists even on freestanding compilers.
3573   # On the NeXT, cc -E runs the code through the compiler's parser,
3574   # not just through cpp. "Syntax error" is here to catch this case.
3575   cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h.  */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h.  */
3581 #ifdef __STDC__
3582 # include <limits.h>
3583 #else
3584 # include <assert.h>
3585 #endif
3586                      Syntax error
3587 _ACEOF
3588 if { (ac_try="$ac_cpp conftest.$ac_ext"
3589 case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } >/dev/null && {
3601          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3602          test ! -s conftest.err
3603        }; then
3604   :
3605 else
3606   echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609   # Broken: fails on valid input.
3610 continue
3611 fi
3612
3613 rm -f conftest.err conftest.$ac_ext
3614
3615   # OK, works on sane cases.  Now check whether nonexistent headers
3616   # can be detected and how.
3617   cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h.  */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h.  */
3623 #include <ac_nonexistent.h>
3624 _ACEOF
3625 if { (ac_try="$ac_cpp conftest.$ac_ext"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3632   ac_status=$?
3633   grep -v '^ *+' conftest.er1 >conftest.err
3634   rm -f conftest.er1
3635   cat conftest.err >&5
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); } >/dev/null && {
3638          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3639          test ! -s conftest.err
3640        }; then
3641   # Broken: success on invalid input.
3642 continue
3643 else
3644   echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647   # Passes both tests.
3648 ac_preproc_ok=:
3649 break
3650 fi
3651
3652 rm -f conftest.err conftest.$ac_ext
3653
3654 done
3655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3656 rm -f conftest.err conftest.$ac_ext
3657 if $ac_preproc_ok; then
3658   break
3659 fi
3660
3661     done
3662     ac_cv_prog_CPP=$CPP
3663
3664 fi
3665   CPP=$ac_cv_prog_CPP
3666 else
3667   ac_cv_prog_CPP=$CPP
3668 fi
3669 { echo "$as_me:$LINENO: result: $CPP" >&5
3670 echo "${ECHO_T}$CPP" >&6; }
3671 ac_preproc_ok=false
3672 for ac_c_preproc_warn_flag in '' yes
3673 do
3674   # Use a header file that comes with gcc, so configuring glibc
3675   # with a fresh cross-compiler works.
3676   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3677   # <limits.h> exists even on freestanding compilers.
3678   # On the NeXT, cc -E runs the code through the compiler's parser,
3679   # not just through cpp. "Syntax error" is here to catch this case.
3680   cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h.  */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h.  */
3686 #ifdef __STDC__
3687 # include <limits.h>
3688 #else
3689 # include <assert.h>
3690 #endif
3691                      Syntax error
3692 _ACEOF
3693 if { (ac_try="$ac_cpp conftest.$ac_ext"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3700   ac_status=$?
3701   grep -v '^ *+' conftest.er1 >conftest.err
3702   rm -f conftest.er1
3703   cat conftest.err >&5
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } >/dev/null && {
3706          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3707          test ! -s conftest.err
3708        }; then
3709   :
3710 else
3711   echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714   # Broken: fails on valid input.
3715 continue
3716 fi
3717
3718 rm -f conftest.err conftest.$ac_ext
3719
3720   # OK, works on sane cases.  Now check whether nonexistent headers
3721   # can be detected and how.
3722   cat >conftest.$ac_ext <<_ACEOF
3723 /* confdefs.h.  */
3724 _ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h.  */
3728 #include <ac_nonexistent.h>
3729 _ACEOF
3730 if { (ac_try="$ac_cpp conftest.$ac_ext"
3731 case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3737   ac_status=$?
3738   grep -v '^ *+' conftest.er1 >conftest.err
3739   rm -f conftest.er1
3740   cat conftest.err >&5
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } >/dev/null && {
3743          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3744          test ! -s conftest.err
3745        }; then
3746   # Broken: success on invalid input.
3747 continue
3748 else
3749   echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752   # Passes both tests.
3753 ac_preproc_ok=:
3754 break
3755 fi
3756
3757 rm -f conftest.err conftest.$ac_ext
3758
3759 done
3760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3761 rm -f conftest.err conftest.$ac_ext
3762 if $ac_preproc_ok; then
3763   :
3764 else
3765   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3766 See \`config.log' for more details." >&5
3767 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3768 See \`config.log' for more details." >&2;}
3769    { (exit 1); exit 1; }; }
3770 fi
3771
3772 ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777
3778 ac_ext=cpp
3779 ac_cpp='$CXXCPP $CPPFLAGS'
3780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3783 if test -z "$CXX"; then
3784   if test -n "$CCC"; then
3785     CXX=$CCC
3786   else
3787     if test -n "$ac_tool_prefix"; then
3788   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3789   do
3790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3794 if test "${ac_cv_prog_CXX+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   if test -n "$CXX"; then
3798   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805   for ac_exec_ext in '' $ac_executable_extensions; do
3806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812 done
3813 IFS=$as_save_IFS
3814
3815 fi
3816 fi
3817 CXX=$ac_cv_prog_CXX
3818 if test -n "$CXX"; then
3819   { echo "$as_me:$LINENO: result: $CXX" >&5
3820 echo "${ECHO_T}$CXX" >&6; }
3821 else
3822   { echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6; }
3824 fi
3825
3826
3827     test -n "$CXX" && break
3828   done
3829 fi
3830 if test -z "$CXX"; then
3831   ac_ct_CXX=$CXX
3832   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3833 do
3834   # Extract the first word of "$ac_prog", so it can be a program name with args.
3835 set dummy $ac_prog; ac_word=$2
3836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3838 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841   if test -n "$ac_ct_CXX"; then
3842   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847   IFS=$as_save_IFS
3848   test -z "$as_dir" && as_dir=.
3849   for ac_exec_ext in '' $ac_executable_extensions; do
3850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851     ac_cv_prog_ac_ct_CXX="$ac_prog"
3852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3853     break 2
3854   fi
3855 done
3856 done
3857 IFS=$as_save_IFS
3858
3859 fi
3860 fi
3861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3862 if test -n "$ac_ct_CXX"; then
3863   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3864 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3865 else
3866   { echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6; }
3868 fi
3869
3870
3871   test -n "$ac_ct_CXX" && break
3872 done
3873
3874   if test "x$ac_ct_CXX" = x; then
3875     CXX="g++"
3876   else
3877     case $cross_compiling:$ac_tool_warned in
3878 yes:)
3879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3880 whose name does not start with the host triplet.  If you think this
3881 configuration is useful to you, please write to autoconf@gnu.org." >&5
3882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3883 whose name does not start with the host triplet.  If you think this
3884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3885 ac_tool_warned=yes ;;
3886 esac
3887     CXX=$ac_ct_CXX
3888   fi
3889 fi
3890
3891   fi
3892 fi
3893 # Provide some information about the compiler.
3894 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3895 ac_compiler=`set X $ac_compile; echo $2`
3896 { (ac_try="$ac_compiler --version >&5"
3897 case "(($ac_try" in
3898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899   *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902   (eval "$ac_compiler --version >&5") 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }
3906 { (ac_try="$ac_compiler -v >&5"
3907 case "(($ac_try" in
3908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909   *) ac_try_echo=$ac_try;;
3910 esac
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912   (eval "$ac_compiler -v >&5") 2>&5
3913   ac_status=$?
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); }
3916 { (ac_try="$ac_compiler -V >&5"
3917 case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922   (eval "$ac_compiler -V >&5") 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); }
3926
3927 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3928 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h.  */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h.  */
3938
3939 int
3940 main ()
3941 {
3942 #ifndef __GNUC__
3943        choke me
3944 #endif
3945
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (ac_try="$ac_compile"
3952 case "(($ac_try" in
3953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954   *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957   (eval "$ac_compile") 2>conftest.er1
3958   ac_status=$?
3959   grep -v '^ *+' conftest.er1 >conftest.err
3960   rm -f conftest.er1
3961   cat conftest.err >&5
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } && {
3964          test -z "$ac_cxx_werror_flag" ||
3965          test ! -s conftest.err
3966        } && test -s conftest.$ac_objext; then
3967   ac_compiler_gnu=yes
3968 else
3969   echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3971
3972         ac_compiler_gnu=no
3973 fi
3974
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3977
3978 fi
3979 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3980 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3981 GXX=`test $ac_compiler_gnu = yes && echo yes`
3982 ac_test_CXXFLAGS=${CXXFLAGS+set}
3983 ac_save_CXXFLAGS=$CXXFLAGS
3984 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3985 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3986 if test "${ac_cv_prog_cxx_g+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3990    ac_cxx_werror_flag=yes
3991    ac_cv_prog_cxx_g=no
3992    CXXFLAGS="-g"
3993    cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h.  */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h.  */
3999
4000 int
4001 main ()
4002 {
4003
4004   ;
4005   return 0;
4006 }
4007 _ACEOF
4008 rm -f conftest.$ac_objext
4009 if { (ac_try="$ac_compile"
4010 case "(($ac_try" in
4011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012   *) ac_try_echo=$ac_try;;
4013 esac
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015   (eval "$ac_compile") 2>conftest.er1
4016   ac_status=$?
4017   grep -v '^ *+' conftest.er1 >conftest.err
4018   rm -f conftest.er1
4019   cat conftest.err >&5
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); } && {
4022          test -z "$ac_cxx_werror_flag" ||
4023          test ! -s conftest.err
4024        } && test -s conftest.$ac_objext; then
4025   ac_cv_prog_cxx_g=yes
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030         CXXFLAGS=""
4031       cat >conftest.$ac_ext <<_ACEOF
4032 /* confdefs.h.  */
4033 _ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h.  */
4037
4038 int
4039 main ()
4040 {
4041
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 rm -f conftest.$ac_objext
4047 if { (ac_try="$ac_compile"
4048 case "(($ac_try" in
4049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050   *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053   (eval "$ac_compile") 2>conftest.er1
4054   ac_status=$?
4055   grep -v '^ *+' conftest.er1 >conftest.err
4056   rm -f conftest.er1
4057   cat conftest.err >&5
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); } && {
4060          test -z "$ac_cxx_werror_flag" ||
4061          test ! -s conftest.err
4062        } && test -s conftest.$ac_objext; then
4063   :
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4069          CXXFLAGS="-g"
4070          cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h.  */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h.  */
4076
4077 int
4078 main ()
4079 {
4080
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 rm -f conftest.$ac_objext
4086 if { (ac_try="$ac_compile"
4087 case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092   (eval "$ac_compile") 2>conftest.er1
4093   ac_status=$?
4094   grep -v '^ *+' conftest.er1 >conftest.err
4095   rm -f conftest.er1
4096   cat conftest.err >&5
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); } && {
4099          test -z "$ac_cxx_werror_flag" ||
4100          test ! -s conftest.err
4101        } && test -s conftest.$ac_objext; then
4102   ac_cv_prog_cxx_g=yes
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107
4108 fi
4109
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 fi
4112
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 fi
4115
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4118 fi
4119 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4120 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4121 if test "$ac_test_CXXFLAGS" = set; then
4122   CXXFLAGS=$ac_save_CXXFLAGS
4123 elif test $ac_cv_prog_cxx_g = yes; then
4124   if test "$GXX" = yes; then
4125     CXXFLAGS="-g -O2"
4126   else
4127     CXXFLAGS="-g"
4128   fi
4129 else
4130   if test "$GXX" = yes; then
4131     CXXFLAGS="-O2"
4132   else
4133     CXXFLAGS=
4134   fi
4135 fi
4136 ac_ext=c
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141
4142 depcc="$CXX"  am_compiler_list=
4143
4144 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4145 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4146 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4150   # We make a subdir and do the tests there.  Otherwise we can end up
4151   # making bogus files that we don't know about and never remove.  For
4152   # instance it was reported that on HP-UX the gcc test will end up
4153   # making a dummy file named `D' -- because `-MD' means `put the output
4154   # in D'.
4155   mkdir conftest.dir
4156   # Copy depcomp to subdir because otherwise we won't find it if we're
4157   # using a relative directory.
4158   cp "$am_depcomp" conftest.dir
4159   cd conftest.dir
4160   # We will build objects and dependencies in a subdirectory because
4161   # it helps to detect inapplicable dependency modes.  For instance
4162   # both Tru64's cc and ICC support -MD to output dependencies as a
4163   # side effect of compilation, but ICC will put the dependencies in
4164   # the current directory while Tru64 will put them in the object
4165   # directory.
4166   mkdir sub
4167
4168   am_cv_CXX_dependencies_compiler_type=none
4169   if test "$am_compiler_list" = ""; then
4170      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4171   fi
4172   for depmode in $am_compiler_list; do
4173     # Setup a source with many dependencies, because some compilers
4174     # like to wrap large dependency lists on column 80 (with \), and
4175     # we should not choose a depcomp mode which is confused by this.
4176     #
4177     # We need to recreate these files for each test, as the compiler may
4178     # overwrite some of them when testing with obscure command lines.
4179     # This happens at least with the AIX C compiler.
4180     : > sub/conftest.c
4181     for i in 1 2 3 4 5 6; do
4182       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4183       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4184       # Solaris 8's {/usr,}/bin/sh.
4185       touch sub/conftst$i.h
4186     done
4187     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4188
4189     case $depmode in
4190     nosideeffect)
4191       # after this tag, mechanisms are not by side-effect, so they'll
4192       # only be used when explicitly requested
4193       if test "x$enable_dependency_tracking" = xyes; then
4194         continue
4195       else
4196         break
4197       fi
4198       ;;
4199     none) break ;;
4200     esac
4201     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4202     # mode.  It turns out that the SunPro C++ compiler does not properly
4203     # handle `-M -o', and we need to detect this.
4204     if depmode=$depmode \
4205        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4206        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4207        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4208          >/dev/null 2>conftest.err &&
4209        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4210        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4211        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4212        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4213       # icc doesn't choke on unknown options, it will just issue warnings
4214       # or remarks (even with -Werror).  So we grep stderr for any message
4215       # that says an option was ignored or not supported.
4216       # When given -MP, icc 7.0 and 7.1 complain thusly:
4217       #   icc: Command line warning: ignoring option '-M'; no argument required
4218       # The diagnosis changed in icc 8.0:
4219       #   icc: Command line remark: option '-MP' not supported
4220       if (grep 'ignoring option' conftest.err ||
4221           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4222         am_cv_CXX_dependencies_compiler_type=$depmode
4223         break
4224       fi
4225     fi
4226   done
4227
4228   cd ..
4229   rm -rf conftest.dir
4230 else
4231   am_cv_CXX_dependencies_compiler_type=none
4232 fi
4233
4234 fi
4235 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4236 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4237 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4238
4239  if
4240   test "x$enable_dependency_tracking" != xno \
4241   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4242   am__fastdepCXX_TRUE=
4243   am__fastdepCXX_FALSE='#'
4244 else
4245   am__fastdepCXX_TRUE='#'
4246   am__fastdepCXX_FALSE=
4247 fi
4248
4249
4250  if test "$GCC" = yes; then
4251   GCC_TRUE=
4252   GCC_FALSE='#'
4253 else
4254   GCC_TRUE='#'
4255   GCC_FALSE=
4256 fi
4257    # let the Makefile know if we're gcc
4258
4259 # Check whether --enable-shared was given.
4260 if test "${enable_shared+set}" = set; then
4261   enableval=$enable_shared; p=${PACKAGE-default}
4262     case $enableval in
4263     yes) enable_shared=yes ;;
4264     no) enable_shared=no ;;
4265     *)
4266       enable_shared=no
4267       # Look at the argument we got.  We use all the common list separators.
4268       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4269       for pkg in $enableval; do
4270         IFS="$lt_save_ifs"
4271         if test "X$pkg" = "X$p"; then
4272           enable_shared=yes
4273         fi
4274       done
4275       IFS="$lt_save_ifs"
4276       ;;
4277     esac
4278 else
4279   enable_shared=yes
4280 fi
4281
4282
4283 # Check whether --enable-static was given.
4284 if test "${enable_static+set}" = set; then
4285   enableval=$enable_static; p=${PACKAGE-default}
4286     case $enableval in
4287     yes) enable_static=yes ;;
4288     no) enable_static=no ;;
4289     *)
4290      enable_static=no
4291       # Look at the argument we got.  We use all the common list separators.
4292       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4293       for pkg in $enableval; do
4294         IFS="$lt_save_ifs"
4295         if test "X$pkg" = "X$p"; then
4296           enable_static=yes
4297         fi
4298       done
4299       IFS="$lt_save_ifs"
4300       ;;
4301     esac
4302 else
4303   enable_static=yes
4304 fi
4305
4306
4307 # Check whether --enable-fast-install was given.
4308 if test "${enable_fast_install+set}" = set; then
4309   enableval=$enable_fast_install; p=${PACKAGE-default}
4310     case $enableval in
4311     yes) enable_fast_install=yes ;;
4312     no) enable_fast_install=no ;;
4313     *)
4314       enable_fast_install=no
4315       # Look at the argument we got.  We use all the common list separators.
4316       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4317       for pkg in $enableval; do
4318         IFS="$lt_save_ifs"
4319         if test "X$pkg" = "X$p"; then
4320           enable_fast_install=yes
4321         fi
4322       done
4323       IFS="$lt_save_ifs"
4324       ;;
4325     esac
4326 else
4327   enable_fast_install=yes
4328 fi
4329
4330
4331 # Make sure we can run config.sub.
4332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4333   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4334 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4335    { (exit 1); exit 1; }; }
4336
4337 { echo "$as_me:$LINENO: checking build system type" >&5
4338 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4339 if test "${ac_cv_build+set}" = set; then
4340   echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342   ac_build_alias=$build_alias
4343 test "x$ac_build_alias" = x &&
4344   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4345 test "x$ac_build_alias" = x &&
4346   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4347 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4348    { (exit 1); exit 1; }; }
4349 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4350   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4351 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4352    { (exit 1); exit 1; }; }
4353
4354 fi
4355 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4356 echo "${ECHO_T}$ac_cv_build" >&6; }
4357 case $ac_cv_build in
4358 *-*-*) ;;
4359 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4360 echo "$as_me: error: invalid value of canonical build" >&2;}
4361    { (exit 1); exit 1; }; };;
4362 esac
4363 build=$ac_cv_build
4364 ac_save_IFS=$IFS; IFS='-'
4365 set x $ac_cv_build
4366 shift
4367 build_cpu=$1
4368 build_vendor=$2
4369 shift; shift
4370 # Remember, the first character of IFS is used to create $*,
4371 # except with old shells:
4372 build_os=$*
4373 IFS=$ac_save_IFS
4374 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4375
4376
4377 { echo "$as_me:$LINENO: checking host system type" >&5
4378 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4379 if test "${ac_cv_host+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   if test "x$host_alias" = x; then
4383   ac_cv_host=$ac_cv_build
4384 else
4385   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4386     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4387 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4388    { (exit 1); exit 1; }; }
4389 fi
4390
4391 fi
4392 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4393 echo "${ECHO_T}$ac_cv_host" >&6; }
4394 case $ac_cv_host in
4395 *-*-*) ;;
4396 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4397 echo "$as_me: error: invalid value of canonical host" >&2;}
4398    { (exit 1); exit 1; }; };;
4399 esac
4400 host=$ac_cv_host
4401 ac_save_IFS=$IFS; IFS='-'
4402 set x $ac_cv_host
4403 shift
4404 host_cpu=$1
4405 host_vendor=$2
4406 shift; shift
4407 # Remember, the first character of IFS is used to create $*,
4408 # except with old shells:
4409 host_os=$*
4410 IFS=$ac_save_IFS
4411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4412
4413
4414 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4415 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4416 if test "${lt_cv_path_SED+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   # Loop through the user's path and test for sed and gsed.
4420 # Then use that list of sed's as ones to test for truncation.
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426   for lt_ac_prog in sed gsed; do
4427     for ac_exec_ext in '' $ac_executable_extensions; do
4428       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4429         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4430       fi
4431     done
4432   done
4433 done
4434 IFS=$as_save_IFS
4435 lt_ac_max=0
4436 lt_ac_count=0
4437 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4438 # along with /bin/sed that truncates output.
4439 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4440   test ! -f $lt_ac_sed && continue
4441   cat /dev/null > conftest.in
4442   lt_ac_count=0
4443   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4444   # Check for GNU sed and select it if it is found.
4445   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4446     lt_cv_path_SED=$lt_ac_sed
4447     break
4448   fi
4449   while true; do
4450     cat conftest.in conftest.in >conftest.tmp
4451     mv conftest.tmp conftest.in
4452     cp conftest.in conftest.nl
4453     echo >>conftest.nl
4454     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4455     cmp -s conftest.out conftest.nl || break
4456     # 10000 chars as input seems more than enough
4457     test $lt_ac_count -gt 10 && break
4458     lt_ac_count=`expr $lt_ac_count + 1`
4459     if test $lt_ac_count -gt $lt_ac_max; then
4460       lt_ac_max=$lt_ac_count
4461       lt_cv_path_SED=$lt_ac_sed
4462     fi
4463   done
4464 done
4465
4466 fi
4467
4468 SED=$lt_cv_path_SED
4469
4470 { echo "$as_me:$LINENO: result: $SED" >&5
4471 echo "${ECHO_T}$SED" >&6; }
4472
4473 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4474 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4475 if test "${ac_cv_path_GREP+set}" = set; then
4476   echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478   # Extract the first word of "grep ggrep" to use in msg output
4479 if test -z "$GREP"; then
4480 set dummy grep ggrep; ac_prog_name=$2
4481 if test "${ac_cv_path_GREP+set}" = set; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484   ac_path_GREP_found=false
4485 # Loop through the user's path and test for each of PROGNAME-LIST
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_prog in grep ggrep; do
4492   for ac_exec_ext in '' $ac_executable_extensions; do
4493     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4494     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4495     # Check for GNU ac_path_GREP and select it if it is found.
4496   # Check for GNU $ac_path_GREP
4497 case `"$ac_path_GREP" --version 2>&1` in
4498 *GNU*)
4499   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4500 *)
4501   ac_count=0
4502   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4503   while :
4504   do
4505     cat "conftest.in" "conftest.in" >"conftest.tmp"
4506     mv "conftest.tmp" "conftest.in"
4507     cp "conftest.in" "conftest.nl"
4508     echo 'GREP' >> "conftest.nl"
4509     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511     ac_count=`expr $ac_count + 1`
4512     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4513       # Best one so far, save it but keep looking for a better one
4514       ac_cv_path_GREP="$ac_path_GREP"
4515       ac_path_GREP_max=$ac_count
4516     fi
4517     # 10*(2^10) chars as input seems more than enough
4518     test $ac_count -gt 10 && break
4519   done
4520   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4521 esac
4522
4523
4524     $ac_path_GREP_found && break 3
4525   done
4526 done
4527
4528 done
4529 IFS=$as_save_IFS
4530
4531
4532 fi
4533
4534 GREP="$ac_cv_path_GREP"
4535 if test -z "$GREP"; then
4536   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4537 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4538    { (exit 1); exit 1; }; }
4539 fi
4540
4541 else
4542   ac_cv_path_GREP=$GREP
4543 fi
4544
4545
4546 fi
4547 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4548 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4549  GREP="$ac_cv_path_GREP"
4550
4551
4552 { echo "$as_me:$LINENO: checking for egrep" >&5
4553 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4554 if test "${ac_cv_path_EGREP+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4558    then ac_cv_path_EGREP="$GREP -E"
4559    else
4560      # Extract the first word of "egrep" to use in msg output
4561 if test -z "$EGREP"; then
4562 set dummy egrep; ac_prog_name=$2
4563 if test "${ac_cv_path_EGREP+set}" = set; then
4564   echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566   ac_path_EGREP_found=false
4567 # Loop through the user's path and test for each of PROGNAME-LIST
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4570 do
4571   IFS=$as_save_IFS
4572   test -z "$as_dir" && as_dir=.
4573   for ac_prog in egrep; do
4574   for ac_exec_ext in '' $ac_executable_extensions; do
4575     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4576     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4577     # Check for GNU ac_path_EGREP and select it if it is found.
4578   # Check for GNU $ac_path_EGREP
4579 case `"$ac_path_EGREP" --version 2>&1` in
4580 *GNU*)
4581   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4582 *)
4583   ac_count=0
4584   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4585   while :
4586   do
4587     cat "conftest.in" "conftest.in" >"conftest.tmp"
4588     mv "conftest.tmp" "conftest.in"
4589     cp "conftest.in" "conftest.nl"
4590     echo 'EGREP' >> "conftest.nl"
4591     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4592     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4593     ac_count=`expr $ac_count + 1`
4594     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4595       # Best one so far, save it but keep looking for a better one
4596       ac_cv_path_EGREP="$ac_path_EGREP"
4597       ac_path_EGREP_max=$ac_count
4598     fi
4599     # 10*(2^10) chars as input seems more than enough
4600     test $ac_count -gt 10 && break
4601   done
4602   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4603 esac
4604
4605
4606     $ac_path_EGREP_found && break 3
4607   done
4608 done
4609
4610 done
4611 IFS=$as_save_IFS
4612
4613
4614 fi
4615
4616 EGREP="$ac_cv_path_EGREP"
4617 if test -z "$EGREP"; then
4618   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4619 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4620    { (exit 1); exit 1; }; }
4621 fi
4622
4623 else
4624   ac_cv_path_EGREP=$EGREP
4625 fi
4626
4627
4628    fi
4629 fi
4630 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4631 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4632  EGREP="$ac_cv_path_EGREP"
4633
4634
4635
4636 # Check whether --with-gnu-ld was given.
4637 if test "${with_gnu_ld+set}" = set; then
4638   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4639 else
4640   with_gnu_ld=no
4641 fi
4642
4643 ac_prog=ld
4644 if test "$GCC" = yes; then
4645   # Check if gcc -print-prog-name=ld gives a path.
4646   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4647 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4648   case $host in
4649   *-*-mingw*)
4650     # gcc leaves a trailing carriage return which upsets mingw
4651     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4652   *)
4653     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4654   esac
4655   case $ac_prog in
4656     # Accept absolute paths.
4657     [\\/]* | ?:[\\/]*)
4658       re_direlt='/[^/][^/]*/\.\./'
4659       # Canonicalize the pathname of ld
4660       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4661       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4662         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4663       done
4664       test -z "$LD" && LD="$ac_prog"
4665       ;;
4666   "")
4667     # If it fails, then pretend we aren't using GCC.
4668     ac_prog=ld
4669     ;;
4670   *)
4671     # If it is relative, then search for the first ld in PATH.
4672     with_gnu_ld=unknown
4673     ;;
4674   esac
4675 elif test "$with_gnu_ld" = yes; then
4676   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4677 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4678 else
4679   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4680 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4681 fi
4682 if test "${lt_cv_path_LD+set}" = set; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   if test -z "$LD"; then
4686   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4687   for ac_dir in $PATH; do
4688     IFS="$lt_save_ifs"
4689     test -z "$ac_dir" && ac_dir=.
4690     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4691       lt_cv_path_LD="$ac_dir/$ac_prog"
4692       # Check to see if the program is GNU ld.  I'd rather use --version,
4693       # but apparently some variants of GNU ld only accept -v.
4694       # Break only if it was the GNU/non-GNU ld that we prefer.
4695       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4696       *GNU* | *'with BFD'*)
4697         test "$with_gnu_ld" != no && break
4698         ;;
4699       *)
4700         test "$with_gnu_ld" != yes && break
4701         ;;
4702       esac
4703     fi
4704   done
4705   IFS="$lt_save_ifs"
4706 else
4707   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4708 fi
4709 fi
4710
4711 LD="$lt_cv_path_LD"
4712 if test -n "$LD"; then
4713   { echo "$as_me:$LINENO: result: $LD" >&5
4714 echo "${ECHO_T}$LD" >&6; }
4715 else
4716   { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4718 fi
4719 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4720 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4721    { (exit 1); exit 1; }; }
4722 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4723 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4724 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4728 case `$LD -v 2>&1 </dev/null` in
4729 *GNU* | *'with BFD'*)
4730   lt_cv_prog_gnu_ld=yes
4731   ;;
4732 *)
4733   lt_cv_prog_gnu_ld=no
4734   ;;
4735 esac
4736 fi
4737 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4738 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4739 with_gnu_ld=$lt_cv_prog_gnu_ld
4740
4741
4742 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4743 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4744 if test "${lt_cv_ld_reload_flag+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   lt_cv_ld_reload_flag='-r'
4748 fi
4749 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4750 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4751 reload_flag=$lt_cv_ld_reload_flag
4752 case $reload_flag in
4753 "" | " "*) ;;
4754 *) reload_flag=" $reload_flag" ;;
4755 esac
4756 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4757 case $host_os in
4758   darwin*)
4759     if test "$GCC" = yes; then
4760       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4761     else
4762       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4763     fi
4764     ;;
4765 esac
4766
4767 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4768 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4769 if test "${lt_cv_path_NM+set}" = set; then
4770   echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772   if test -n "$NM"; then
4773   # Let the user override the test.
4774   lt_cv_path_NM="$NM"
4775 else
4776   lt_nm_to_check="${ac_tool_prefix}nm"
4777   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4778     lt_nm_to_check="$lt_nm_to_check nm"
4779   fi
4780   for lt_tmp_nm in $lt_nm_to_check; do
4781     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4782     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4783       IFS="$lt_save_ifs"
4784       test -z "$ac_dir" && ac_dir=.
4785       tmp_nm="$ac_dir/$lt_tmp_nm"
4786       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4787         # Check to see if the nm accepts a BSD-compat flag.
4788         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4789         #   nm: unknown option "B" ignored
4790         # Tru64's nm complains that /dev/null is an invalid object file
4791         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4792         */dev/null* | *'Invalid file or object type'*)
4793           lt_cv_path_NM="$tmp_nm -B"
4794           break
4795           ;;
4796         *)
4797           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4798           */dev/null*)
4799             lt_cv_path_NM="$tmp_nm -p"
4800             break
4801             ;;
4802           *)
4803             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4804             continue # so that we can try to find one that supports BSD flags
4805             ;;
4806           esac
4807           ;;
4808         esac
4809       fi
4810     done
4811     IFS="$lt_save_ifs"
4812   done
4813   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4814 fi
4815 fi
4816 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4817 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4818 NM="$lt_cv_path_NM"
4819
4820 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4821 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4822 LN_S=$as_ln_s
4823 if test "$LN_S" = "ln -s"; then
4824   { echo "$as_me:$LINENO: result: yes" >&5
4825 echo "${ECHO_T}yes" >&6; }
4826 else
4827   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4828 echo "${ECHO_T}no, using $LN_S" >&6; }
4829 fi
4830
4831 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4832 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4833 if test "${lt_cv_deplibs_check_method+set}" = set; then
4834   echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836   lt_cv_file_magic_cmd='$MAGIC_CMD'
4837 lt_cv_file_magic_test_file=
4838 lt_cv_deplibs_check_method='unknown'
4839 # Need to set the preceding variable on all platforms that support
4840 # interlibrary dependencies.
4841 # 'none' -- dependencies not supported.
4842 # `unknown' -- same as none, but documents that we really don't know.
4843 # 'pass_all' -- all dependencies passed with no checks.
4844 # 'test_compile' -- check by making test program.
4845 # 'file_magic [[regex]]' -- check by looking for files in library path
4846 # which responds to the $file_magic_cmd with a given extended regex.
4847 # If you have `file' or equivalent on your system and you're not sure
4848 # whether `pass_all' will *always* work, you probably want this one.
4849
4850 case $host_os in
4851 aix[4-9]*)
4852   lt_cv_deplibs_check_method=pass_all
4853   ;;
4854
4855 beos*)
4856   lt_cv_deplibs_check_method=pass_all
4857   ;;
4858
4859 bsdi[45]*)
4860   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4861   lt_cv_file_magic_cmd='/usr/bin/file -L'
4862   lt_cv_file_magic_test_file=/shlib/libc.so
4863   ;;
4864
4865 cygwin*)
4866   # func_win32_libid is a shell function defined in ltmain.sh
4867   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4868   lt_cv_file_magic_cmd='func_win32_libid'
4869   ;;
4870
4871 mingw* | pw32*)
4872   # Base MSYS/MinGW do not provide the 'file' command needed by
4873   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4874   # unless we find 'file', for example because we are cross-compiling.
4875   if ( file / ) >/dev/null 2>&1; then
4876     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4877     lt_cv_file_magic_cmd='func_win32_libid'
4878   else
4879     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4880     lt_cv_file_magic_cmd='$OBJDUMP -f'
4881   fi
4882   ;;
4883
4884 darwin* | rhapsody*)
4885   lt_cv_deplibs_check_method=pass_all
4886   ;;
4887
4888 freebsd* | dragonfly*)
4889   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4890     case $host_cpu in
4891     i*86 )
4892       # Not sure whether the presence of OpenBSD here was a mistake.
4893       # Let's accept both of them until this is cleared up.
4894       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4895       lt_cv_file_magic_cmd=/usr/bin/file
4896       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4897       ;;
4898     esac
4899   else
4900     lt_cv_deplibs_check_method=pass_all
4901   fi
4902   ;;
4903
4904 gnu*)
4905   lt_cv_deplibs_check_method=pass_all
4906   ;;
4907
4908 hpux10.20* | hpux11*)
4909   lt_cv_file_magic_cmd=/usr/bin/file
4910   case $host_cpu in
4911   ia64*)
4912     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4913     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4914     ;;
4915   hppa*64*)
4916     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]'
4917     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4918     ;;
4919   *)
4920     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4921     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4922     ;;
4923   esac
4924   ;;
4925
4926 interix[3-9]*)
4927   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4928   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4929   ;;
4930
4931 irix5* | irix6* | nonstopux*)
4932   case $LD in
4933   *-32|*"-32 ") libmagic=32-bit;;
4934   *-n32|*"-n32 ") libmagic=N32;;
4935   *-64|*"-64 ") libmagic=64-bit;;
4936   *) libmagic=never-match;;
4937   esac
4938   lt_cv_deplibs_check_method=pass_all
4939   ;;
4940
4941 # This must be Linux ELF.
4942 linux* | k*bsd*-gnu)
4943   lt_cv_deplibs_check_method=pass_all
4944   ;;
4945
4946 netbsd* | netbsdelf*-gnu)
4947   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4948     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4949   else
4950     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4951   fi
4952   ;;
4953
4954 newos6*)
4955   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4956   lt_cv_file_magic_cmd=/usr/bin/file
4957   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4958   ;;
4959
4960 nto-qnx*)
4961   lt_cv_deplibs_check_method=unknown
4962   ;;
4963
4964 openbsd*)
4965   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4966     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4967   else
4968     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4969   fi
4970   ;;
4971
4972 osf3* | osf4* | osf5*)
4973   lt_cv_deplibs_check_method=pass_all
4974   ;;
4975
4976 rdos*)
4977   lt_cv_deplibs_check_method=pass_all
4978   ;;
4979
4980 solaris*)
4981   lt_cv_deplibs_check_method=pass_all
4982   ;;
4983
4984 sysv4 | sysv4.3*)
4985   case $host_vendor in
4986   motorola)
4987     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]'
4988     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4989     ;;
4990   ncr)
4991     lt_cv_deplibs_check_method=pass_all
4992     ;;
4993   sequent)
4994     lt_cv_file_magic_cmd='/bin/file'
4995     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4996     ;;
4997   sni)
4998     lt_cv_file_magic_cmd='/bin/file'
4999     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5000     lt_cv_file_magic_test_file=/lib/libc.so
5001     ;;
5002   siemens)
5003     lt_cv_deplibs_check_method=pass_all
5004     ;;
5005   pc)
5006     lt_cv_deplibs_check_method=pass_all
5007     ;;
5008   esac
5009   ;;
5010
5011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5012   lt_cv_deplibs_check_method=pass_all
5013   ;;
5014 esac
5015
5016 fi
5017 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5018 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5019 file_magic_cmd=$lt_cv_file_magic_cmd
5020 deplibs_check_method=$lt_cv_deplibs_check_method
5021 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5022
5023
5024
5025
5026 # If no C compiler was specified, use CC.
5027 LTCC=${LTCC-"$CC"}
5028
5029 # If no C compiler flags were specified, use CFLAGS.
5030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5031
5032 # Allow CC to be a program name with arguments.
5033 compiler=$CC
5034
5035
5036 # Check whether --enable-libtool-lock was given.
5037 if test "${enable_libtool_lock+set}" = set; then
5038   enableval=$enable_libtool_lock;
5039 fi
5040
5041 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5042
5043 # Some flags need to be propagated to the compiler or linker for good
5044 # libtool support.
5045 case $host in
5046 ia64-*-hpux*)
5047   # Find out which ABI we are using.
5048   echo 'int i;' > conftest.$ac_ext
5049   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5050   (eval $ac_compile) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); }; then
5054     case `/usr/bin/file conftest.$ac_objext` in
5055     *ELF-32*)
5056       HPUX_IA64_MODE="32"
5057       ;;
5058     *ELF-64*)
5059       HPUX_IA64_MODE="64"
5060       ;;
5061     esac
5062   fi
5063   rm -rf conftest*
5064   ;;
5065 *-*-irix6*)
5066   # Find out which ABI we are using.
5067   echo '#line 5067 "configure"' > conftest.$ac_ext
5068   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5069   (eval $ac_compile) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }; then
5073    if test "$lt_cv_prog_gnu_ld" = yes; then
5074     case `/usr/bin/file conftest.$ac_objext` in
5075     *32-bit*)
5076       LD="${LD-ld} -melf32bsmip"
5077       ;;
5078     *N32*)
5079       LD="${LD-ld} -melf32bmipn32"
5080       ;;
5081     *64-bit*)
5082       LD="${LD-ld} -melf64bmip"
5083       ;;
5084     esac
5085    else
5086     case `/usr/bin/file conftest.$ac_objext` in
5087     *32-bit*)
5088       LD="${LD-ld} -32"
5089       ;;
5090     *N32*)
5091       LD="${LD-ld} -n32"
5092       ;;
5093     *64-bit*)
5094       LD="${LD-ld} -64"
5095       ;;
5096     esac
5097    fi
5098   fi
5099   rm -rf conftest*
5100   ;;
5101
5102 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5103 s390*-*linux*|sparc*-*linux*)
5104   # Find out which ABI we are using.
5105   echo 'int i;' > conftest.$ac_ext
5106   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5107   (eval $ac_compile) 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; then
5111     case `/usr/bin/file conftest.o` in
5112     *32-bit*)
5113       case $host in
5114         x86_64-*kfreebsd*-gnu)
5115           LD="${LD-ld} -m elf_i386_fbsd"
5116           ;;
5117         x86_64-*linux*)
5118           LD="${LD-ld} -m elf_i386"
5119           ;;
5120         ppc64-*linux*|powerpc64-*linux*)
5121           LD="${LD-ld} -m elf32ppclinux"
5122           ;;
5123         s390x-*linux*)
5124           LD="${LD-ld} -m elf_s390"
5125           ;;
5126         sparc64-*linux*)
5127           LD="${LD-ld} -m elf32_sparc"
5128           ;;
5129       esac
5130       ;;
5131     *64-bit*)
5132       case $host in
5133         x86_64-*kfreebsd*-gnu)
5134           LD="${LD-ld} -m elf_x86_64_fbsd"
5135           ;;
5136         x86_64-*linux*)
5137           LD="${LD-ld} -m elf_x86_64"
5138           ;;
5139         ppc*-*linux*|powerpc*-*linux*)
5140           LD="${LD-ld} -m elf64ppc"
5141           ;;
5142         s390*-*linux*)
5143           LD="${LD-ld} -m elf64_s390"
5144           ;;
5145         sparc*-*linux*)
5146           LD="${LD-ld} -m elf64_sparc"
5147           ;;
5148       esac
5149       ;;
5150     esac
5151   fi
5152   rm -rf conftest*
5153   ;;
5154
5155 *-*-sco3.2v5*)
5156   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5157   SAVE_CFLAGS="$CFLAGS"
5158   CFLAGS="$CFLAGS -belf"
5159   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5160 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5161 if test "${lt_cv_cc_needs_belf+set}" = set; then
5162   echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164   ac_ext=c
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169
5170      cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h.  */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h.  */
5176
5177 int
5178 main ()
5179 {
5180
5181   ;
5182   return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest.$ac_objext conftest$ac_exeext
5186 if { (ac_try="$ac_link"
5187 case "(($ac_try" in
5188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189   *) ac_try_echo=$ac_try;;
5190 esac
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192   (eval "$ac_link") 2>conftest.er1
5193   ac_status=$?
5194   grep -v '^ *+' conftest.er1 >conftest.err
5195   rm -f conftest.er1
5196   cat conftest.err >&5
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); } && {
5199          test -z "$ac_c_werror_flag" ||
5200          test ! -s conftest.err
5201        } && test -s conftest$ac_exeext &&
5202        $as_test_x conftest$ac_exeext; then
5203   lt_cv_cc_needs_belf=yes
5204 else
5205   echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208         lt_cv_cc_needs_belf=no
5209 fi
5210
5211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5212       conftest$ac_exeext conftest.$ac_ext
5213      ac_ext=c
5214 ac_cpp='$CPP $CPPFLAGS'
5215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218
5219 fi
5220 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5221 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5222   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5223     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5224     CFLAGS="$SAVE_CFLAGS"
5225   fi
5226   ;;
5227 sparc*-*solaris*)
5228   # Find out which ABI we are using.
5229   echo 'int i;' > conftest.$ac_ext
5230   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231   (eval $ac_compile) 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); }; then
5235     case `/usr/bin/file conftest.o` in
5236     *64-bit*)
5237       case $lt_cv_prog_gnu_ld in
5238       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5239       *)
5240         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5241           LD="${LD-ld} -64"
5242         fi
5243         ;;
5244       esac
5245       ;;
5246     esac
5247   fi
5248   rm -rf conftest*
5249   ;;
5250
5251
5252 esac
5253
5254 need_locks="$enable_libtool_lock"
5255
5256
5257
5258 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5259 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5260 if test "${ac_cv_header_stdc+set}" = set; then
5261   echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263   cat >conftest.$ac_ext <<_ACEOF
5264 /* confdefs.h.  */
5265 _ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h.  */
5269 #include <stdlib.h>
5270 #include <stdarg.h>
5271 #include <string.h>
5272 #include <float.h>
5273
5274 int
5275 main ()
5276 {
5277
5278   ;
5279   return 0;
5280 }
5281 _ACEOF
5282 rm -f conftest.$ac_objext
5283 if { (ac_try="$ac_compile"
5284 case "(($ac_try" in
5285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286   *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289   (eval "$ac_compile") 2>conftest.er1
5290   ac_status=$?
5291   grep -v '^ *+' conftest.er1 >conftest.err
5292   rm -f conftest.er1
5293   cat conftest.err >&5
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); } && {
5296          test -z "$ac_c_werror_flag" ||
5297          test ! -s conftest.err
5298        } && test -s conftest.$ac_objext; then
5299   ac_cv_header_stdc=yes
5300 else
5301   echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5303
5304         ac_cv_header_stdc=no
5305 fi
5306
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308
5309 if test $ac_cv_header_stdc = yes; then
5310   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5311   cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h.  */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h.  */
5317 #include <string.h>
5318
5319 _ACEOF
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321   $EGREP "memchr" >/dev/null 2>&1; then
5322   :
5323 else
5324   ac_cv_header_stdc=no
5325 fi
5326 rm -f conftest*
5327
5328 fi
5329
5330 if test $ac_cv_header_stdc = yes; then
5331   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5332   cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h.  */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h.  */
5338 #include <stdlib.h>
5339
5340 _ACEOF
5341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5342   $EGREP "free" >/dev/null 2>&1; then
5343   :
5344 else
5345   ac_cv_header_stdc=no
5346 fi
5347 rm -f conftest*
5348
5349 fi
5350
5351 if test $ac_cv_header_stdc = yes; then
5352   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5353   if test "$cross_compiling" = yes; then
5354   :
5355 else
5356   cat >conftest.$ac_ext <<_ACEOF
5357 /* confdefs.h.  */
5358 _ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h.  */
5362 #include <ctype.h>
5363 #include <stdlib.h>
5364 #if ((' ' & 0x0FF) == 0x020)
5365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5367 #else
5368 # define ISLOWER(c) \
5369                    (('a' <= (c) && (c) <= 'i') \
5370                      || ('j' <= (c) && (c) <= 'r') \
5371                      || ('s' <= (c) && (c) <= 'z'))
5372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5373 #endif
5374
5375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5376 int
5377 main ()
5378 {
5379   int i;
5380   for (i = 0; i < 256; i++)
5381     if (XOR (islower (i), ISLOWER (i))
5382         || toupper (i) != TOUPPER (i))
5383       return 2;
5384   return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest$ac_exeext
5388 if { (ac_try="$ac_link"
5389 case "(($ac_try" in
5390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391   *) ac_try_echo=$ac_try;;
5392 esac
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394   (eval "$ac_link") 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5398   { (case "(($ac_try" in
5399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400   *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403   (eval "$ac_try") 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); }; }; then
5407   :
5408 else
5409   echo "$as_me: program exited with status $ac_status" >&5
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413 ( exit $ac_status )
5414 ac_cv_header_stdc=no
5415 fi
5416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5417 fi
5418
5419
5420 fi
5421 fi
5422 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5423 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5424 if test $ac_cv_header_stdc = yes; then
5425
5426 cat >>confdefs.h <<\_ACEOF
5427 #define STDC_HEADERS 1
5428 _ACEOF
5429
5430 fi
5431
5432 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5443                   inttypes.h stdint.h unistd.h
5444 do
5445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451   cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h.  */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h.  */
5457 $ac_includes_default
5458
5459 #include <$ac_header>
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5463 case "(($ac_try" in
5464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465   *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468   (eval "$ac_compile") 2>conftest.er1
5469   ac_status=$?
5470   grep -v '^ *+' conftest.er1 >conftest.err
5471   rm -f conftest.er1
5472   cat conftest.err >&5
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); } && {
5475          test -z "$ac_c_werror_flag" ||
5476          test ! -s conftest.err
5477        } && test -s conftest.$ac_objext; then
5478   eval "$as_ac_Header=yes"
5479 else
5480   echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483         eval "$as_ac_Header=no"
5484 fi
5485
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 fi
5488 ac_res=`eval echo '${'$as_ac_Header'}'`
5489                { echo "$as_me:$LINENO: result: $ac_res" >&5
5490 echo "${ECHO_T}$ac_res" >&6; }
5491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5492   cat >>confdefs.h <<_ACEOF
5493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5494 _ACEOF
5495
5496 fi
5497
5498 done
5499
5500
5501
5502 for ac_header in dlfcn.h
5503 do
5504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5506   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 fi
5511 ac_res=`eval echo '${'$as_ac_Header'}'`
5512                { echo "$as_me:$LINENO: result: $ac_res" >&5
5513 echo "${ECHO_T}$ac_res" >&6; }
5514 else
5515   # Is the header compilable?
5516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524 $ac_includes_default
5525 #include <$ac_header>
5526 _ACEOF
5527 rm -f conftest.$ac_objext
5528 if { (ac_try="$ac_compile"
5529 case "(($ac_try" in
5530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531   *) ac_try_echo=$ac_try;;
5532 esac
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534   (eval "$ac_compile") 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } && {
5541          test -z "$ac_c_werror_flag" ||
5542          test ! -s conftest.err
5543        } && test -s conftest.$ac_objext; then
5544   ac_header_compiler=yes
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549         ac_header_compiler=no
5550 fi
5551
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554 echo "${ECHO_T}$ac_header_compiler" >&6; }
5555
5556 # Is the header present?
5557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565 #include <$ac_header>
5566 _ACEOF
5567 if { (ac_try="$ac_cpp conftest.$ac_ext"
5568 case "(($ac_try" in
5569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570   *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5574   ac_status=$?
5575   grep -v '^ *+' conftest.er1 >conftest.err
5576   rm -f conftest.er1
5577   cat conftest.err >&5
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } >/dev/null && {
5580          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5581          test ! -s conftest.err
5582        }; then
5583   ac_header_preproc=yes
5584 else
5585   echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5587
5588   ac_header_preproc=no
5589 fi
5590
5591 rm -f conftest.err conftest.$ac_ext
5592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5593 echo "${ECHO_T}$ac_header_preproc" >&6; }
5594
5595 # So?  What about this header?
5596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5597   yes:no: )
5598     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5602     ac_header_preproc=yes
5603     ;;
5604   no:yes:* )
5605     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5607     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5608 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5609     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5611     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5612 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5615     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5617     ( cat <<\_ASBOX
5618 ## ------------------------------------ ##
5619 ## Report this to opensource@google.com ##
5620 ## ------------------------------------ ##
5621 _ASBOX
5622      ) | sed "s/^/$as_me: WARNING:     /" >&2
5623     ;;
5624 esac
5625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   eval "$as_ac_Header=\$ac_header_preproc"
5631 fi
5632 ac_res=`eval echo '${'$as_ac_Header'}'`
5633                { echo "$as_me:$LINENO: result: $ac_res" >&5
5634 echo "${ECHO_T}$ac_res" >&6; }
5635
5636 fi
5637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5638   cat >>confdefs.h <<_ACEOF
5639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5640 _ACEOF
5641
5642 fi
5643
5644 done
5645
5646
5647
5648 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5649     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5650     (test "X$CXX" != "Xg++"))) ; then
5651   ac_ext=cpp
5652 ac_cpp='$CXXCPP $CPPFLAGS'
5653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5656 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5657 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5658 if test -z "$CXXCPP"; then
5659   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662       # Double quotes because CXXCPP needs to be expanded
5663     for CXXCPP in "$CXX -E" "/lib/cpp"
5664     do
5665       ac_preproc_ok=false
5666 for ac_cxx_preproc_warn_flag in '' yes
5667 do
5668   # Use a header file that comes with gcc, so configuring glibc
5669   # with a fresh cross-compiler works.
5670   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5671   # <limits.h> exists even on freestanding compilers.
5672   # On the NeXT, cc -E runs the code through the compiler's parser,
5673   # not just through cpp. "Syntax error" is here to catch this case.
5674   cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h.  */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h.  */
5680 #ifdef __STDC__
5681 # include <limits.h>
5682 #else
5683 # include <assert.h>
5684 #endif
5685                      Syntax error
5686 _ACEOF
5687 if { (ac_try="$ac_cpp conftest.$ac_ext"
5688 case "(($ac_try" in
5689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690   *) ac_try_echo=$ac_try;;
5691 esac
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5694   ac_status=$?
5695   grep -v '^ *+' conftest.er1 >conftest.err
5696   rm -f conftest.er1
5697   cat conftest.err >&5
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); } >/dev/null && {
5700          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5701          test ! -s conftest.err
5702        }; then
5703   :
5704 else
5705   echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5707
5708   # Broken: fails on valid input.
5709 continue
5710 fi
5711
5712 rm -f conftest.err conftest.$ac_ext
5713
5714   # OK, works on sane cases.  Now check whether nonexistent headers
5715   # can be detected and how.
5716   cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h.  */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h.  */
5722 #include <ac_nonexistent.h>
5723 _ACEOF
5724 if { (ac_try="$ac_cpp conftest.$ac_ext"
5725 case "(($ac_try" in
5726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727   *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5731   ac_status=$?
5732   grep -v '^ *+' conftest.er1 >conftest.err
5733   rm -f conftest.er1
5734   cat conftest.err >&5
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); } >/dev/null && {
5737          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5738          test ! -s conftest.err
5739        }; then
5740   # Broken: success on invalid input.
5741 continue
5742 else
5743   echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5745
5746   # Passes both tests.
5747 ac_preproc_ok=:
5748 break
5749 fi
5750
5751 rm -f conftest.err conftest.$ac_ext
5752
5753 done
5754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5755 rm -f conftest.err conftest.$ac_ext
5756 if $ac_preproc_ok; then
5757   break
5758 fi
5759
5760     done
5761     ac_cv_prog_CXXCPP=$CXXCPP
5762
5763 fi
5764   CXXCPP=$ac_cv_prog_CXXCPP
5765 else
5766   ac_cv_prog_CXXCPP=$CXXCPP
5767 fi
5768 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5769 echo "${ECHO_T}$CXXCPP" >&6; }
5770 ac_preproc_ok=false
5771 for ac_cxx_preproc_warn_flag in '' yes
5772 do
5773   # Use a header file that comes with gcc, so configuring glibc
5774   # with a fresh cross-compiler works.
5775   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5776   # <limits.h> exists even on freestanding compilers.
5777   # On the NeXT, cc -E runs the code through the compiler's parser,
5778   # not just through cpp. "Syntax error" is here to catch this case.
5779   cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h.  */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h.  */
5785 #ifdef __STDC__
5786 # include <limits.h>
5787 #else
5788 # include <assert.h>
5789 #endif
5790                      Syntax error
5791 _ACEOF
5792 if { (ac_try="$ac_cpp conftest.$ac_ext"
5793 case "(($ac_try" in
5794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795   *) ac_try_echo=$ac_try;;
5796 esac
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5799   ac_status=$?
5800   grep -v '^ *+' conftest.er1 >conftest.err
5801   rm -f conftest.er1
5802   cat conftest.err >&5
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); } >/dev/null && {
5805          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5806          test ! -s conftest.err
5807        }; then
5808   :
5809 else
5810   echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5812
5813   # Broken: fails on valid input.
5814 continue
5815 fi
5816
5817 rm -f conftest.err conftest.$ac_ext
5818
5819   # OK, works on sane cases.  Now check whether nonexistent headers
5820   # can be detected and how.
5821   cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h.  */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h.  */
5827 #include <ac_nonexistent.h>
5828 _ACEOF
5829 if { (ac_try="$ac_cpp conftest.$ac_ext"
5830 case "(($ac_try" in
5831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832   *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5836   ac_status=$?
5837   grep -v '^ *+' conftest.er1 >conftest.err
5838   rm -f conftest.er1
5839   cat conftest.err >&5
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); } >/dev/null && {
5842          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5843          test ! -s conftest.err
5844        }; then
5845   # Broken: success on invalid input.
5846 continue
5847 else
5848   echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851   # Passes both tests.
5852 ac_preproc_ok=:
5853 break
5854 fi
5855
5856 rm -f conftest.err conftest.$ac_ext
5857
5858 done
5859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5860 rm -f conftest.err conftest.$ac_ext
5861 if $ac_preproc_ok; then
5862   :
5863 else
5864   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5865 See \`config.log' for more details." >&5
5866 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5867 See \`config.log' for more details." >&2;}
5868    { (exit 1); exit 1; }; }
5869 fi
5870
5871 ac_ext=cpp
5872 ac_cpp='$CXXCPP $CPPFLAGS'
5873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5876
5877 fi
5878
5879
5880 ac_ext=f
5881 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5882 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5884 if test -n "$ac_tool_prefix"; then
5885   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
5886   do
5887     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5891 if test "${ac_cv_prog_F77+set}" = set; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   if test -n "$F77"; then
5895   ac_cv_prog_F77="$F77" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902   for ac_exec_ext in '' $ac_executable_extensions; do
5903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 F77=$ac_cv_prog_F77
5915 if test -n "$F77"; then
5916   { echo "$as_me:$LINENO: result: $F77" >&5
5917 echo "${ECHO_T}$F77" >&6; }
5918 else
5919   { echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6; }
5921 fi
5922
5923
5924     test -n "$F77" && break
5925   done
5926 fi
5927 if test -z "$F77"; then
5928   ac_ct_F77=$F77
5929   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
5930 do
5931   # Extract the first word of "$ac_prog", so it can be a program name with args.
5932 set dummy $ac_prog; ac_word=$2
5933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5935 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   if test -n "$ac_ct_F77"; then
5939   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5940 else
5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946   for ac_exec_ext in '' $ac_executable_extensions; do
5947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948     ac_cv_prog_ac_ct_F77="$ac_prog"
5949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953 done
5954 IFS=$as_save_IFS
5955
5956 fi
5957 fi
5958 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5959 if test -n "$ac_ct_F77"; then
5960   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5961 echo "${ECHO_T}$ac_ct_F77" >&6; }
5962 else
5963   { echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6; }
5965 fi
5966
5967
5968   test -n "$ac_ct_F77" && break
5969 done
5970
5971   if test "x$ac_ct_F77" = x; then
5972     F77=""
5973   else
5974     case $cross_compiling:$ac_tool_warned in
5975 yes:)
5976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5977 whose name does not start with the host triplet.  If you think this
5978 configuration is useful to you, please write to autoconf@gnu.org." >&5
5979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5980 whose name does not start with the host triplet.  If you think this
5981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5982 ac_tool_warned=yes ;;
5983 esac
5984     F77=$ac_ct_F77
5985   fi
5986 fi
5987
5988
5989 # Provide some information about the compiler.
5990 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5991 ac_compiler=`set X $ac_compile; echo $2`
5992 { (ac_try="$ac_compiler --version >&5"
5993 case "(($ac_try" in
5994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995   *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998   (eval "$ac_compiler --version >&5") 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }
6002 { (ac_try="$ac_compiler -v >&5"
6003 case "(($ac_try" in
6004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005   *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008   (eval "$ac_compiler -v >&5") 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }
6012 { (ac_try="$ac_compiler -V >&5"
6013 case "(($ac_try" in
6014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015   *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018   (eval "$ac_compiler -V >&5") 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }
6022 rm -f a.out
6023
6024 # If we don't use `.F' as extension, the preprocessor is not run on the
6025 # input file.  (Note that this only needs to work for GNU compilers.)
6026 ac_save_ext=$ac_ext
6027 ac_ext=F
6028 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6029 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6030 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033   cat >conftest.$ac_ext <<_ACEOF
6034       program main
6035 #ifndef __GNUC__
6036        choke me
6037 #endif
6038
6039       end
6040 _ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6043 case "(($ac_try" in
6044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045   *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048   (eval "$ac_compile") 2>conftest.er1
6049   ac_status=$?
6050   grep -v '^ *+' conftest.er1 >conftest.err
6051   rm -f conftest.er1
6052   cat conftest.err >&5
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } && {
6055          test -z "$ac_f77_werror_flag" ||
6056          test ! -s conftest.err
6057        } && test -s conftest.$ac_objext; then
6058   ac_compiler_gnu=yes
6059 else
6060   echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063         ac_compiler_gnu=no
6064 fi
6065
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6068
6069 fi
6070 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6071 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6072 ac_ext=$ac_save_ext
6073 ac_test_FFLAGS=${FFLAGS+set}
6074 ac_save_FFLAGS=$FFLAGS
6075 FFLAGS=
6076 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6077 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6078 if test "${ac_cv_prog_f77_g+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081   FFLAGS=-g
6082 cat >conftest.$ac_ext <<_ACEOF
6083       program main
6084
6085       end
6086 _ACEOF
6087 rm -f conftest.$ac_objext
6088 if { (ac_try="$ac_compile"
6089 case "(($ac_try" in
6090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091   *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094   (eval "$ac_compile") 2>conftest.er1
6095   ac_status=$?
6096   grep -v '^ *+' conftest.er1 >conftest.err
6097   rm -f conftest.er1
6098   cat conftest.err >&5
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); } && {
6101          test -z "$ac_f77_werror_flag" ||
6102          test ! -s conftest.err
6103        } && test -s conftest.$ac_objext; then
6104   ac_cv_prog_f77_g=yes
6105 else
6106   echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109         ac_cv_prog_f77_g=no
6110 fi
6111
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113
6114 fi
6115 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6116 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6117 if test "$ac_test_FFLAGS" = set; then
6118   FFLAGS=$ac_save_FFLAGS
6119 elif test $ac_cv_prog_f77_g = yes; then
6120   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6121     FFLAGS="-g -O2"
6122   else
6123     FFLAGS="-g"
6124   fi
6125 else
6126   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6127     FFLAGS="-O2"
6128   else
6129     FFLAGS=
6130   fi
6131 fi
6132
6133 G77=`test $ac_compiler_gnu = yes && echo yes`
6134 ac_ext=c
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139
6140
6141
6142 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6143 # find the maximum length of command line arguments
6144 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6145 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6146 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149     i=0
6150   teststring="ABCD"
6151
6152   case $build_os in
6153   msdosdjgpp*)
6154     # On DJGPP, this test can blow up pretty badly due to problems in libc
6155     # (any single argument exceeding 2000 bytes causes a buffer overrun
6156     # during glob expansion).  Even if it were fixed, the result of this
6157     # check would be larger than it should be.
6158     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6159     ;;
6160
6161   gnu*)
6162     # Under GNU Hurd, this test is not required because there is
6163     # no limit to the length of command line arguments.
6164     # Libtool will interpret -1 as no limit whatsoever
6165     lt_cv_sys_max_cmd_len=-1;
6166     ;;
6167
6168   cygwin* | mingw*)
6169     # On Win9x/ME, this test blows up -- it succeeds, but takes
6170     # about 5 minutes as the teststring grows exponentially.
6171     # Worse, since 9x/ME are not pre-emptively multitasking,
6172     # you end up with a "frozen" computer, even though with patience
6173     # the test eventually succeeds (with a max line length of 256k).
6174     # Instead, let's just punt: use the minimum linelength reported by
6175     # all of the supported platforms: 8192 (on NT/2K/XP).
6176     lt_cv_sys_max_cmd_len=8192;
6177     ;;
6178
6179   amigaos*)
6180     # On AmigaOS with pdksh, this test takes hours, literally.
6181     # So we just punt and use a minimum line length of 8192.
6182     lt_cv_sys_max_cmd_len=8192;
6183     ;;
6184
6185   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6186     # This has been around since 386BSD, at least.  Likely further.
6187     if test -x /sbin/sysctl; then
6188       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6189     elif test -x /usr/sbin/sysctl; then
6190       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6191     else
6192       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6193     fi
6194     # And add a safety zone
6195     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6196     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6197     ;;
6198
6199   interix*)
6200     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6201     lt_cv_sys_max_cmd_len=196608
6202     ;;
6203
6204   osf*)
6205     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6206     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6207     # nice to cause kernel panics so lets avoid the loop below.
6208     # First set a reasonable default.
6209     lt_cv_sys_max_cmd_len=16384
6210     #
6211     if test -x /sbin/sysconfig; then
6212       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6213         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6214       esac
6215     fi
6216     ;;
6217   sco3.2v5*)
6218     lt_cv_sys_max_cmd_len=102400
6219     ;;
6220   sysv5* | sco5v6* | sysv4.2uw2*)
6221     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6222     if test -n "$kargmax"; then
6223       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6224     else
6225       lt_cv_sys_max_cmd_len=32768
6226     fi
6227     ;;
6228   *)
6229     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6230     if test -n "$lt_cv_sys_max_cmd_len"; then
6231       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6232       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6233     else
6234       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6235       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6236                = "XX$teststring") >/dev/null 2>&1 &&
6237               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6238               lt_cv_sys_max_cmd_len=$new_result &&
6239               test $i != 17 # 1/2 MB should be enough
6240       do
6241         i=`expr $i + 1`
6242         teststring=$teststring$teststring
6243       done
6244       teststring=
6245       # Add a significant safety factor because C++ compilers can tack on massive
6246       # amounts of additional arguments before passing them to the linker.
6247       # It appears as though 1/2 is a usable value.
6248       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6249     fi
6250     ;;
6251   esac
6252
6253 fi
6254
6255 if test -n $lt_cv_sys_max_cmd_len ; then
6256   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6257 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6258 else
6259   { echo "$as_me:$LINENO: result: none" >&5
6260 echo "${ECHO_T}none" >&6; }
6261 fi
6262
6263
6264
6265
6266
6267 # Check for command to grab the raw symbol name followed by C symbol from nm.
6268 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6269 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6270 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273
6274 # These are sane defaults that work on at least a few old systems.
6275 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6276
6277 # Character class describing NM global symbol codes.
6278 symcode='[BCDEGRST]'
6279
6280 # Regexp to match symbols that can be accessed directly from C.
6281 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6282
6283 # Transform an extracted symbol line into a proper C declaration
6284 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6285
6286 # Transform an extracted symbol line into symbol name and symbol address
6287 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'"
6288
6289 # Define system-specific variables.
6290 case $host_os in
6291 aix*)
6292   symcode='[BCDT]'
6293   ;;
6294 cygwin* | mingw* | pw32*)
6295   symcode='[ABCDGISTW]'
6296   ;;
6297 hpux*) # Its linker distinguishes data from code symbols
6298   if test "$host_cpu" = ia64; then
6299     symcode='[ABCDEGRST]'
6300   fi
6301   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6302   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'"
6303   ;;
6304 linux* | k*bsd*-gnu)
6305   if test "$host_cpu" = ia64; then
6306     symcode='[ABCDGIRSTW]'
6307     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6308     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'"
6309   fi
6310   ;;
6311 irix* | nonstopux*)
6312   symcode='[BCDEGRST]'
6313   ;;
6314 osf*)
6315   symcode='[BCDEGQRST]'
6316   ;;
6317 solaris*)
6318   symcode='[BDRT]'
6319   ;;
6320 sco3.2v5*)
6321   symcode='[DT]'
6322   ;;
6323 sysv4.2uw2*)
6324   symcode='[DT]'
6325   ;;
6326 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6327   symcode='[ABDT]'
6328   ;;
6329 sysv4)
6330   symcode='[DFNSTU]'
6331   ;;
6332 esac
6333
6334 # Handle CRLF in mingw tool chain
6335 opt_cr=
6336 case $build_os in
6337 mingw*)
6338   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6339   ;;
6340 esac
6341
6342 # If we're using GNU nm, then use its standard symbol codes.
6343 case `$NM -V 2>&1` in
6344 *GNU* | *'with BFD'*)
6345   symcode='[ABCDGIRSTW]' ;;
6346 esac
6347
6348 # Try without a prefix undercore, then with it.
6349 for ac_symprfx in "" "_"; do
6350
6351   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6352   symxfrm="\\1 $ac_symprfx\\2 \\2"
6353
6354   # Write the raw and C identifiers.
6355   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6356
6357   # Check to see that the pipe works correctly.
6358   pipe_works=no
6359
6360   rm -f conftest*
6361   cat > conftest.$ac_ext <<EOF
6362 #ifdef __cplusplus
6363 extern "C" {
6364 #endif
6365 char nm_test_var;
6366 void nm_test_func(){}
6367 #ifdef __cplusplus
6368 }
6369 #endif
6370 int main(){nm_test_var='a';nm_test_func();return(0);}
6371 EOF
6372
6373   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374   (eval $ac_compile) 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }; then
6378     # Now try to grab the symbols.
6379     nlist=conftest.nm
6380     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6381   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6382   ac_status=$?
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); } && test -s "$nlist"; then
6385       # Try sorting and uniquifying the output.
6386       if sort "$nlist" | uniq > "$nlist"T; then
6387         mv -f "$nlist"T "$nlist"
6388       else
6389         rm -f "$nlist"T
6390       fi
6391
6392       # Make sure that we snagged all the symbols we need.
6393       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6394         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6395           cat <<EOF > conftest.$ac_ext
6396 #ifdef __cplusplus
6397 extern "C" {
6398 #endif
6399
6400 EOF
6401           # Now generate the symbol file.
6402           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6403
6404           cat <<EOF >> conftest.$ac_ext
6405 #if defined (__STDC__) && __STDC__
6406 # define lt_ptr_t void *
6407 #else
6408 # define lt_ptr_t char *
6409 # define const
6410 #endif
6411
6412 /* The mapping between symbol names and symbols. */
6413 const struct {
6414   const char *name;
6415   lt_ptr_t address;
6416 }
6417 lt_preloaded_symbols[] =
6418 {
6419 EOF
6420           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6421           cat <<\EOF >> conftest.$ac_ext
6422   {0, (lt_ptr_t) 0}
6423 };
6424
6425 #ifdef __cplusplus
6426 }
6427 #endif
6428 EOF
6429           # Now try linking the two files.
6430           mv conftest.$ac_objext conftstm.$ac_objext
6431           lt_save_LIBS="$LIBS"
6432           lt_save_CFLAGS="$CFLAGS"
6433           LIBS="conftstm.$ac_objext"
6434           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6435           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436   (eval $ac_link) 2>&5
6437   ac_status=$?
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6440             pipe_works=yes
6441           fi
6442           LIBS="$lt_save_LIBS"
6443           CFLAGS="$lt_save_CFLAGS"
6444         else
6445           echo "cannot find nm_test_func in $nlist" >&5
6446         fi
6447       else
6448         echo "cannot find nm_test_var in $nlist" >&5
6449       fi
6450     else
6451       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6452     fi
6453   else
6454     echo "$progname: failed program was:" >&5
6455     cat conftest.$ac_ext >&5
6456   fi
6457   rm -rf conftest* conftst*
6458
6459   # Do not use the global_symbol_pipe unless it works.
6460   if test "$pipe_works" = yes; then
6461     break
6462   else
6463     lt_cv_sys_global_symbol_pipe=
6464   fi
6465 done
6466
6467 fi
6468
6469 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6470   lt_cv_sys_global_symbol_to_cdecl=
6471 fi
6472 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6473   { echo "$as_me:$LINENO: result: failed" >&5
6474 echo "${ECHO_T}failed" >&6; }
6475 else
6476   { echo "$as_me:$LINENO: result: ok" >&5
6477 echo "${ECHO_T}ok" >&6; }
6478 fi
6479
6480 { echo "$as_me:$LINENO: checking for objdir" >&5
6481 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6482 if test "${lt_cv_objdir+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   rm -f .libs 2>/dev/null
6486 mkdir .libs 2>/dev/null
6487 if test -d .libs; then
6488   lt_cv_objdir=.libs
6489 else
6490   # MS-DOS does not allow filenames that begin with a dot.
6491   lt_cv_objdir=_libs
6492 fi
6493 rmdir .libs 2>/dev/null
6494 fi
6495 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6496 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6497 objdir=$lt_cv_objdir
6498
6499
6500
6501
6502
6503 case $host_os in
6504 aix3*)
6505   # AIX sometimes has problems with the GCC collect2 program.  For some
6506   # reason, if we set the COLLECT_NAMES environment variable, the problems
6507   # vanish in a puff of smoke.
6508   if test "X${COLLECT_NAMES+set}" != Xset; then
6509     COLLECT_NAMES=
6510     export COLLECT_NAMES
6511   fi
6512   ;;
6513 esac
6514
6515 # Sed substitution that helps us do robust quoting.  It backslashifies
6516 # metacharacters that are still active within double-quoted strings.
6517 Xsed='sed -e 1s/^X//'
6518 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6519
6520 # Same as above, but do not quote variable references.
6521 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6522
6523 # Sed substitution to delay expansion of an escaped shell variable in a
6524 # double_quote_subst'ed string.
6525 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6526
6527 # Sed substitution to avoid accidental globbing in evaled expressions
6528 no_glob_subst='s/\*/\\\*/g'
6529
6530 # Constants:
6531 rm="rm -f"
6532
6533 # Global variables:
6534 default_ofile=libtool
6535 can_build_shared=yes
6536
6537 # All known linkers require a `.a' archive for static linking (except MSVC,
6538 # which needs '.lib').
6539 libext=a
6540 ltmain="$ac_aux_dir/ltmain.sh"
6541 ofile="$default_ofile"
6542 with_gnu_ld="$lt_cv_prog_gnu_ld"
6543
6544 if test -n "$ac_tool_prefix"; then
6545   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6546 set dummy ${ac_tool_prefix}ar; ac_word=$2
6547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6549 if test "${ac_cv_prog_AR+set}" = set; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552   if test -n "$AR"; then
6553   ac_cv_prog_AR="$AR" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560   for ac_exec_ext in '' $ac_executable_extensions; do
6561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562     ac_cv_prog_AR="${ac_tool_prefix}ar"
6563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567 done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 AR=$ac_cv_prog_AR
6573 if test -n "$AR"; then
6574   { echo "$as_me:$LINENO: result: $AR" >&5
6575 echo "${ECHO_T}$AR" >&6; }
6576 else
6577   { echo "$as_me:$LINENO: result: no" >&5
6578 echo "${ECHO_T}no" >&6; }
6579 fi
6580
6581
6582 fi
6583 if test -z "$ac_cv_prog_AR"; then
6584   ac_ct_AR=$AR
6585   # Extract the first word of "ar", so it can be a program name with args.
6586 set dummy ar; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6590   echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592   if test -n "$ac_ct_AR"; then
6593   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600   for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_prog_ac_ct_AR="ar"
6603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6613 if test -n "$ac_ct_AR"; then
6614   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6615 echo "${ECHO_T}$ac_ct_AR" >&6; }
6616 else
6617   { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6619 fi
6620
6621   if test "x$ac_ct_AR" = x; then
6622     AR="false"
6623   else
6624     case $cross_compiling:$ac_tool_warned in
6625 yes:)
6626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6627 whose name does not start with the host triplet.  If you think this
6628 configuration is useful to you, please write to autoconf@gnu.org." >&5
6629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6630 whose name does not start with the host triplet.  If you think this
6631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6632 ac_tool_warned=yes ;;
6633 esac
6634     AR=$ac_ct_AR
6635   fi
6636 else
6637   AR="$ac_cv_prog_AR"
6638 fi
6639
6640 if test -n "$ac_tool_prefix"; then
6641   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6642 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_prog_RANLIB+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   if test -n "$RANLIB"; then
6649   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656   for ac_exec_ext in '' $ac_executable_extensions; do
6657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 RANLIB=$ac_cv_prog_RANLIB
6669 if test -n "$RANLIB"; then
6670   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6671 echo "${ECHO_T}$RANLIB" >&6; }
6672 else
6673   { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6675 fi
6676
6677
6678 fi
6679 if test -z "$ac_cv_prog_RANLIB"; then
6680   ac_ct_RANLIB=$RANLIB
6681   # Extract the first word of "ranlib", so it can be a program name with args.
6682 set dummy ranlib; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   if test -n "$ac_ct_RANLIB"; then
6689   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694   IFS=$as_save_IFS
6695   test -z "$as_dir" && as_dir=.
6696   for ac_exec_ext in '' $ac_executable_extensions; do
6697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698     ac_cv_prog_ac_ct_RANLIB="ranlib"
6699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700     break 2
6701   fi
6702 done
6703 done
6704 IFS=$as_save_IFS
6705
6706 fi
6707 fi
6708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6709 if test -n "$ac_ct_RANLIB"; then
6710   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6711 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6712 else
6713   { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6715 fi
6716
6717   if test "x$ac_ct_RANLIB" = x; then
6718     RANLIB=":"
6719   else
6720     case $cross_compiling:$ac_tool_warned in
6721 yes:)
6722 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6723 whose name does not start with the host triplet.  If you think this
6724 configuration is useful to you, please write to autoconf@gnu.org." >&5
6725 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6726 whose name does not start with the host triplet.  If you think this
6727 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6728 ac_tool_warned=yes ;;
6729 esac
6730     RANLIB=$ac_ct_RANLIB
6731   fi
6732 else
6733   RANLIB="$ac_cv_prog_RANLIB"
6734 fi
6735
6736 if test -n "$ac_tool_prefix"; then
6737   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6738 set dummy ${ac_tool_prefix}strip; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_prog_STRIP+set}" = set; then
6742   echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744   if test -n "$STRIP"; then
6745   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750   IFS=$as_save_IFS
6751   test -z "$as_dir" && as_dir=.
6752   for ac_exec_ext in '' $ac_executable_extensions; do
6753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756     break 2
6757   fi
6758 done
6759 done
6760 IFS=$as_save_IFS
6761
6762 fi
6763 fi
6764 STRIP=$ac_cv_prog_STRIP
6765 if test -n "$STRIP"; then
6766   { echo "$as_me:$LINENO: result: $STRIP" >&5
6767 echo "${ECHO_T}$STRIP" >&6; }
6768 else
6769   { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6771 fi
6772
6773
6774 fi
6775 if test -z "$ac_cv_prog_STRIP"; then
6776   ac_ct_STRIP=$STRIP
6777   # Extract the first word of "strip", so it can be a program name with args.
6778 set dummy strip; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   if test -n "$ac_ct_STRIP"; then
6785   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790   IFS=$as_save_IFS
6791   test -z "$as_dir" && as_dir=.
6792   for ac_exec_ext in '' $ac_executable_extensions; do
6793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794     ac_cv_prog_ac_ct_STRIP="strip"
6795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796     break 2
6797   fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6801
6802 fi
6803 fi
6804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6805 if test -n "$ac_ct_STRIP"; then
6806   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6807 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6808 else
6809   { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6811 fi
6812
6813   if test "x$ac_ct_STRIP" = x; then
6814     STRIP=":"
6815   else
6816     case $cross_compiling:$ac_tool_warned in
6817 yes:)
6818 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6819 whose name does not start with the host triplet.  If you think this
6820 configuration is useful to you, please write to autoconf@gnu.org." >&5
6821 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6822 whose name does not start with the host triplet.  If you think this
6823 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6824 ac_tool_warned=yes ;;
6825 esac
6826     STRIP=$ac_ct_STRIP
6827   fi
6828 else
6829   STRIP="$ac_cv_prog_STRIP"
6830 fi
6831
6832
6833 old_CC="$CC"
6834 old_CFLAGS="$CFLAGS"
6835
6836 # Set sane defaults for various variables
6837 test -z "$AR" && AR=ar
6838 test -z "$AR_FLAGS" && AR_FLAGS=cru
6839 test -z "$AS" && AS=as
6840 test -z "$CC" && CC=cc
6841 test -z "$LTCC" && LTCC=$CC
6842 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6843 test -z "$DLLTOOL" && DLLTOOL=dlltool
6844 test -z "$LD" && LD=ld
6845 test -z "$LN_S" && LN_S="ln -s"
6846 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6847 test -z "$NM" && NM=nm
6848 test -z "$SED" && SED=sed
6849 test -z "$OBJDUMP" && OBJDUMP=objdump
6850 test -z "$RANLIB" && RANLIB=:
6851 test -z "$STRIP" && STRIP=:
6852 test -z "$ac_objext" && ac_objext=o
6853
6854 # Determine commands to create old-style static archives.
6855 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6856 old_postinstall_cmds='chmod 644 $oldlib'
6857 old_postuninstall_cmds=
6858
6859 if test -n "$RANLIB"; then
6860   case $host_os in
6861   openbsd*)
6862     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6863     ;;
6864   *)
6865     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6866     ;;
6867   esac
6868   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6869 fi
6870
6871 for cc_temp in $compiler""; do
6872   case $cc_temp in
6873     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6874     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6875     \-*) ;;
6876     *) break;;
6877   esac
6878 done
6879 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6880
6881
6882 # Only perform the check for file, if the check method requires it
6883 case $deplibs_check_method in
6884 file_magic*)
6885   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6886     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6887 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   case $MAGIC_CMD in
6892 [\\/*] |  ?:[\\/]*)
6893   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6894   ;;
6895 *)
6896   lt_save_MAGIC_CMD="$MAGIC_CMD"
6897   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6898   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6899   for ac_dir in $ac_dummy; do
6900     IFS="$lt_save_ifs"
6901     test -z "$ac_dir" && ac_dir=.
6902     if test -f $ac_dir/${ac_tool_prefix}file; then
6903       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6904       if test -n "$file_magic_test_file"; then
6905         case $deplibs_check_method in
6906         "file_magic "*)
6907           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6908           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6909           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6910             $EGREP "$file_magic_regex" > /dev/null; then
6911             :
6912           else
6913             cat <<EOF 1>&2
6914
6915 *** Warning: the command libtool uses to detect shared libraries,
6916 *** $file_magic_cmd, produces output that libtool cannot recognize.
6917 *** The result is that libtool may fail to recognize shared libraries
6918 *** as such.  This will affect the creation of libtool libraries that
6919 *** depend on shared libraries, but programs linked with such libtool
6920 *** libraries will work regardless of this problem.  Nevertheless, you
6921 *** may want to report the problem to your system manager and/or to
6922 *** bug-libtool@gnu.org
6923
6924 EOF
6925           fi ;;
6926         esac
6927       fi
6928       break
6929     fi
6930   done
6931   IFS="$lt_save_ifs"
6932   MAGIC_CMD="$lt_save_MAGIC_CMD"
6933   ;;
6934 esac
6935 fi
6936
6937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6938 if test -n "$MAGIC_CMD"; then
6939   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6940 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6941 else
6942   { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6944 fi
6945
6946 if test -z "$lt_cv_path_MAGIC_CMD"; then
6947   if test -n "$ac_tool_prefix"; then
6948     { echo "$as_me:$LINENO: checking for file" >&5
6949 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6950 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   case $MAGIC_CMD in
6954 [\\/*] |  ?:[\\/]*)
6955   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6956   ;;
6957 *)
6958   lt_save_MAGIC_CMD="$MAGIC_CMD"
6959   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6960   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6961   for ac_dir in $ac_dummy; do
6962     IFS="$lt_save_ifs"
6963     test -z "$ac_dir" && ac_dir=.
6964     if test -f $ac_dir/file; then
6965       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6966       if test -n "$file_magic_test_file"; then
6967         case $deplibs_check_method in
6968         "file_magic "*)
6969           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6970           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6971           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6972             $EGREP "$file_magic_regex" > /dev/null; then
6973             :
6974           else
6975             cat <<EOF 1>&2
6976
6977 *** Warning: the command libtool uses to detect shared libraries,
6978 *** $file_magic_cmd, produces output that libtool cannot recognize.
6979 *** The result is that libtool may fail to recognize shared libraries
6980 *** as such.  This will affect the creation of libtool libraries that
6981 *** depend on shared libraries, but programs linked with such libtool
6982 *** libraries will work regardless of this problem.  Nevertheless, you
6983 *** may want to report the problem to your system manager and/or to
6984 *** bug-libtool@gnu.org
6985
6986 EOF
6987           fi ;;
6988         esac
6989       fi
6990       break
6991     fi
6992   done
6993   IFS="$lt_save_ifs"
6994   MAGIC_CMD="$lt_save_MAGIC_CMD"
6995   ;;
6996 esac
6997 fi
6998
6999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7000 if test -n "$MAGIC_CMD"; then
7001   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7002 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7003 else
7004   { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7006 fi
7007
7008   else
7009     MAGIC_CMD=:
7010   fi
7011 fi
7012
7013   fi
7014   ;;
7015 esac
7016
7017
7018   case $host_os in
7019     rhapsody* | darwin*)
7020     if test -n "$ac_tool_prefix"; then
7021   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7022 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   if test -n "$DSYMUTIL"; then
7029   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034   IFS=$as_save_IFS
7035   test -z "$as_dir" && as_dir=.
7036   for ac_exec_ext in '' $ac_executable_extensions; do
7037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040     break 2
7041   fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7049 if test -n "$DSYMUTIL"; then
7050   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7051 echo "${ECHO_T}$DSYMUTIL" >&6; }
7052 else
7053   { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7055 fi
7056
7057
7058 fi
7059 if test -z "$ac_cv_prog_DSYMUTIL"; then
7060   ac_ct_DSYMUTIL=$DSYMUTIL
7061   # Extract the first word of "dsymutil", so it can be a program name with args.
7062 set dummy dsymutil; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7066   echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068   if test -n "$ac_ct_DSYMUTIL"; then
7069   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074   IFS=$as_save_IFS
7075   test -z "$as_dir" && as_dir=.
7076   for ac_exec_ext in '' $ac_executable_extensions; do
7077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080     break 2
7081   fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7089 if test -n "$ac_ct_DSYMUTIL"; then
7090   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7091 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7092 else
7093   { echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6; }
7095 fi
7096
7097   if test "x$ac_ct_DSYMUTIL" = x; then
7098     DSYMUTIL=":"
7099   else
7100     case $cross_compiling:$ac_tool_warned in
7101 yes:)
7102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7103 whose name does not start with the host triplet.  If you think this
7104 configuration is useful to you, please write to autoconf@gnu.org." >&5
7105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7106 whose name does not start with the host triplet.  If you think this
7107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7108 ac_tool_warned=yes ;;
7109 esac
7110     DSYMUTIL=$ac_ct_DSYMUTIL
7111   fi
7112 else
7113   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7114 fi
7115
7116     if test -n "$ac_tool_prefix"; then
7117   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   if test -n "$NMEDIT"; then
7125   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132   for ac_exec_ext in '' $ac_executable_extensions; do
7133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 NMEDIT=$ac_cv_prog_NMEDIT
7145 if test -n "$NMEDIT"; then
7146   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7147 echo "${ECHO_T}$NMEDIT" >&6; }
7148 else
7149   { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7151 fi
7152
7153
7154 fi
7155 if test -z "$ac_cv_prog_NMEDIT"; then
7156   ac_ct_NMEDIT=$NMEDIT
7157   # Extract the first word of "nmedit", so it can be a program name with args.
7158 set dummy nmedit; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   if test -n "$ac_ct_NMEDIT"; then
7165   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172   for ac_exec_ext in '' $ac_executable_extensions; do
7173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7185 if test -n "$ac_ct_NMEDIT"; then
7186   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7187 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7188 else
7189   { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7191 fi
7192
7193   if test "x$ac_ct_NMEDIT" = x; then
7194     NMEDIT=":"
7195   else
7196     case $cross_compiling:$ac_tool_warned in
7197 yes:)
7198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7199 whose name does not start with the host triplet.  If you think this
7200 configuration is useful to you, please write to autoconf@gnu.org." >&5
7201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7202 whose name does not start with the host triplet.  If you think this
7203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7204 ac_tool_warned=yes ;;
7205 esac
7206     NMEDIT=$ac_ct_NMEDIT
7207   fi
7208 else
7209   NMEDIT="$ac_cv_prog_NMEDIT"
7210 fi
7211
7212
7213     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7214 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7215 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   lt_cv_apple_cc_single_mod=no
7219       if test -z "${LT_MULTI_MODULE}"; then
7220    # By default we will add the -single_module flag. You can override
7221    # by either setting the environment variable LT_MULTI_MODULE
7222    # non-empty at configure time, or by adding -multi_module to the
7223    # link flags.
7224    echo "int foo(void){return 1;}" > conftest.c
7225    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7226      -dynamiclib ${wl}-single_module conftest.c
7227    if test -f libconftest.dylib; then
7228      lt_cv_apple_cc_single_mod=yes
7229      rm -rf libconftest.dylib*
7230    fi
7231    rm conftest.c
7232       fi
7233 fi
7234 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7235 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7236     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7237 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7238 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7239   echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241   lt_cv_ld_exported_symbols_list=no
7242       save_LDFLAGS=$LDFLAGS
7243       echo "_main" > conftest.sym
7244       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7245       cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h.  */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h.  */
7251
7252 int
7253 main ()
7254 {
7255
7256   ;
7257   return 0;
7258 }
7259 _ACEOF
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (ac_try="$ac_link"
7262 case "(($ac_try" in
7263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7264   *) ac_try_echo=$ac_try;;
7265 esac
7266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267   (eval "$ac_link") 2>conftest.er1
7268   ac_status=$?
7269   grep -v '^ *+' conftest.er1 >conftest.err
7270   rm -f conftest.er1
7271   cat conftest.err >&5
7272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273   (exit $ac_status); } && {
7274          test -z "$ac_c_werror_flag" ||
7275          test ! -s conftest.err
7276        } && test -s conftest$ac_exeext &&
7277        $as_test_x conftest$ac_exeext; then
7278   lt_cv_ld_exported_symbols_list=yes
7279 else
7280   echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7282
7283         lt_cv_ld_exported_symbols_list=no
7284 fi
7285
7286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7287       conftest$ac_exeext conftest.$ac_ext
7288    LDFLAGS="$save_LDFLAGS"
7289
7290 fi
7291 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7292 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7293     case $host_os in
7294     rhapsody* | darwin1.[0123])
7295       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7296     darwin1.*)
7297      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7298     darwin*)
7299       # if running on 10.5 or later, the deployment target defaults
7300       # to the OS version, if on x86, and 10.4, the deployment
7301       # target defaults to 10.4. Don't you love it?
7302       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7303    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7304      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7305    10.[012]*)
7306      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7307    10.*)
7308      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7309       esac
7310     ;;
7311   esac
7312     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7313       _lt_dar_single_mod='$single_module'
7314     fi
7315     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7316       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7317     else
7318       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7319     fi
7320     if test "$DSYMUTIL" != ":"; then
7321       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7322     else
7323       _lt_dsymutil=
7324     fi
7325     ;;
7326   esac
7327
7328
7329 enable_dlopen=no
7330 enable_win32_dll=no
7331
7332 # Check whether --enable-libtool-lock was given.
7333 if test "${enable_libtool_lock+set}" = set; then
7334   enableval=$enable_libtool_lock;
7335 fi
7336
7337 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7338
7339
7340 # Check whether --with-pic was given.
7341 if test "${with_pic+set}" = set; then
7342   withval=$with_pic; pic_mode="$withval"
7343 else
7344   pic_mode=default
7345 fi
7346
7347 test -z "$pic_mode" && pic_mode=default
7348
7349 # Use C for the default configuration in the libtool script
7350 tagname=
7351 lt_save_CC="$CC"
7352 ac_ext=c
7353 ac_cpp='$CPP $CPPFLAGS'
7354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357
7358
7359 # Source file extension for C test sources.
7360 ac_ext=c
7361
7362 # Object file extension for compiled C test sources.
7363 objext=o
7364 objext=$objext
7365
7366 # Code to be used in simple compile tests
7367 lt_simple_compile_test_code="int some_variable = 0;"
7368
7369 # Code to be used in simple link tests
7370 lt_simple_link_test_code='int main(){return(0);}'
7371
7372
7373 # If no C compiler was specified, use CC.
7374 LTCC=${LTCC-"$CC"}
7375
7376 # If no C compiler flags were specified, use CFLAGS.
7377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7378
7379 # Allow CC to be a program name with arguments.
7380 compiler=$CC
7381
7382
7383 # save warnings/boilerplate of simple test code
7384 ac_outfile=conftest.$ac_objext
7385 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7386 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7387 _lt_compiler_boilerplate=`cat conftest.err`
7388 $rm conftest*
7389
7390 ac_outfile=conftest.$ac_objext
7391 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7392 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7393 _lt_linker_boilerplate=`cat conftest.err`
7394 $rm -r conftest*
7395
7396
7397
7398 lt_prog_compiler_no_builtin_flag=
7399
7400 if test "$GCC" = yes; then
7401   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7402
7403
7404 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7405 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7406 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   lt_cv_prog_compiler_rtti_exceptions=no
7410   ac_outfile=conftest.$ac_objext
7411    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7412    lt_compiler_flag="-fno-rtti -fno-exceptions"
7413    # Insert the option either (1) after the last *FLAGS variable, or
7414    # (2) before a word containing "conftest.", or (3) at the end.
7415    # Note that $ac_compile itself does not contain backslashes and begins
7416    # with a dollar sign (not a hyphen), so the echo should work correctly.
7417    # The option is referenced via a variable to avoid confusing sed.
7418    lt_compile=`echo "$ac_compile" | $SED \
7419    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7420    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7421    -e 's:$: $lt_compiler_flag:'`
7422    (eval echo "\"\$as_me:7422: $lt_compile\"" >&5)
7423    (eval "$lt_compile" 2>conftest.err)
7424    ac_status=$?
7425    cat conftest.err >&5
7426    echo "$as_me:7426: \$? = $ac_status" >&5
7427    if (exit $ac_status) && test -s "$ac_outfile"; then
7428      # The compiler can only warn and ignore the option if not recognized
7429      # So say no if there are warnings other than the usual output.
7430      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7431      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7432      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7433        lt_cv_prog_compiler_rtti_exceptions=yes
7434      fi
7435    fi
7436    $rm conftest*
7437
7438 fi
7439 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7440 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7441
7442 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7443     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7444 else
7445     :
7446 fi
7447
7448 fi
7449
7450 lt_prog_compiler_wl=
7451 lt_prog_compiler_pic=
7452 lt_prog_compiler_static=
7453
7454 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7455 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7456
7457   if test "$GCC" = yes; then
7458     lt_prog_compiler_wl='-Wl,'
7459     lt_prog_compiler_static='-static'
7460
7461     case $host_os in
7462       aix*)
7463       # All AIX code is PIC.
7464       if test "$host_cpu" = ia64; then
7465         # AIX 5 now supports IA64 processor
7466         lt_prog_compiler_static='-Bstatic'
7467       fi
7468       ;;
7469
7470     amigaos*)
7471       # FIXME: we need at least 68020 code to build shared libraries, but
7472       # adding the `-m68020' flag to GCC prevents building anything better,
7473       # like `-m68040'.
7474       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7475       ;;
7476
7477     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7478       # PIC is the default for these OSes.
7479       ;;
7480
7481     mingw* | cygwin* | pw32* | os2*)
7482       # This hack is so that the source file can tell whether it is being
7483       # built for inclusion in a dll (and should export symbols for example).
7484       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7485       # (--disable-auto-import) libraries
7486       lt_prog_compiler_pic='-DDLL_EXPORT'
7487       ;;
7488
7489     darwin* | rhapsody*)
7490       # PIC is the default on this platform
7491       # Common symbols not allowed in MH_DYLIB files
7492       lt_prog_compiler_pic='-fno-common'
7493       ;;
7494
7495     interix[3-9]*)
7496       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7497       # Instead, we relocate shared libraries at runtime.
7498       ;;
7499
7500     msdosdjgpp*)
7501       # Just because we use GCC doesn't mean we suddenly get shared libraries
7502       # on systems that don't support them.
7503       lt_prog_compiler_can_build_shared=no
7504       enable_shared=no
7505       ;;
7506
7507     sysv4*MP*)
7508       if test -d /usr/nec; then
7509         lt_prog_compiler_pic=-Kconform_pic
7510       fi
7511       ;;
7512
7513     hpux*)
7514       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7515       # not for PA HP-UX.
7516       case $host_cpu in
7517       hppa*64*|ia64*)
7518         # +Z the default
7519         ;;
7520       *)
7521         lt_prog_compiler_pic='-fPIC'
7522         ;;
7523       esac
7524       ;;
7525
7526     *)
7527       lt_prog_compiler_pic='-fPIC'
7528       ;;
7529     esac
7530   else
7531     # PORTME Check for flag to pass linker flags through the system compiler.
7532     case $host_os in
7533     aix*)
7534       lt_prog_compiler_wl='-Wl,'
7535       if test "$host_cpu" = ia64; then
7536         # AIX 5 now supports IA64 processor
7537         lt_prog_compiler_static='-Bstatic'
7538       else
7539         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7540       fi
7541       ;;
7542       darwin*)
7543         # PIC is the default on this platform
7544         # Common symbols not allowed in MH_DYLIB files
7545        case $cc_basename in
7546          xlc*)
7547          lt_prog_compiler_pic='-qnocommon'
7548          lt_prog_compiler_wl='-Wl,'
7549          ;;
7550        esac
7551        ;;
7552
7553     mingw* | cygwin* | pw32* | os2*)
7554       # This hack is so that the source file can tell whether it is being
7555       # built for inclusion in a dll (and should export symbols for example).
7556       lt_prog_compiler_pic='-DDLL_EXPORT'
7557       ;;
7558
7559     hpux9* | hpux10* | hpux11*)
7560       lt_prog_compiler_wl='-Wl,'
7561       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7562       # not for PA HP-UX.
7563       case $host_cpu in
7564       hppa*64*|ia64*)
7565         # +Z the default
7566         ;;
7567       *)
7568         lt_prog_compiler_pic='+Z'
7569         ;;
7570       esac
7571       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7572       lt_prog_compiler_static='${wl}-a ${wl}archive'
7573       ;;
7574
7575     irix5* | irix6* | nonstopux*)
7576       lt_prog_compiler_wl='-Wl,'
7577       # PIC (with -KPIC) is the default.
7578       lt_prog_compiler_static='-non_shared'
7579       ;;
7580
7581     newsos6)
7582       lt_prog_compiler_pic='-KPIC'
7583       lt_prog_compiler_static='-Bstatic'
7584       ;;
7585
7586     linux* | k*bsd*-gnu)
7587       case $cc_basename in
7588       icc* | ecc*)
7589         lt_prog_compiler_wl='-Wl,'
7590         lt_prog_compiler_pic='-KPIC'
7591         lt_prog_compiler_static='-static'
7592         ;;
7593       pgcc* | pgf77* | pgf90* | pgf95*)
7594         # Portland Group compilers (*not* the Pentium gcc compiler,
7595         # which looks to be a dead project)
7596         lt_prog_compiler_wl='-Wl,'
7597         lt_prog_compiler_pic='-fpic'
7598         lt_prog_compiler_static='-Bstatic'
7599         ;;
7600       ccc*)
7601         lt_prog_compiler_wl='-Wl,'
7602         # All Alpha code is PIC.
7603         lt_prog_compiler_static='-non_shared'
7604         ;;
7605       *)
7606         case `$CC -V 2>&1 | sed 5q` in
7607         *Sun\ C*)
7608           # Sun C 5.9
7609           lt_prog_compiler_pic='-KPIC'
7610           lt_prog_compiler_static='-Bstatic'
7611           lt_prog_compiler_wl='-Wl,'
7612           ;;
7613         *Sun\ F*)
7614           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7615           lt_prog_compiler_pic='-KPIC'
7616           lt_prog_compiler_static='-Bstatic'
7617           lt_prog_compiler_wl=''
7618           ;;
7619         esac
7620         ;;
7621       esac
7622       ;;
7623
7624     osf3* | osf4* | osf5*)
7625       lt_prog_compiler_wl='-Wl,'
7626       # All OSF/1 code is PIC.
7627       lt_prog_compiler_static='-non_shared'
7628       ;;
7629
7630     rdos*)
7631       lt_prog_compiler_static='-non_shared'
7632       ;;
7633
7634     solaris*)
7635       lt_prog_compiler_pic='-KPIC'
7636       lt_prog_compiler_static='-Bstatic'
7637       case $cc_basename in
7638       f77* | f90* | f95*)
7639         lt_prog_compiler_wl='-Qoption ld ';;
7640       *)
7641         lt_prog_compiler_wl='-Wl,';;
7642       esac
7643       ;;
7644
7645     sunos4*)
7646       lt_prog_compiler_wl='-Qoption ld '
7647       lt_prog_compiler_pic='-PIC'
7648       lt_prog_compiler_static='-Bstatic'
7649       ;;
7650
7651     sysv4 | sysv4.2uw2* | sysv4.3*)
7652       lt_prog_compiler_wl='-Wl,'
7653       lt_prog_compiler_pic='-KPIC'
7654       lt_prog_compiler_static='-Bstatic'
7655       ;;
7656
7657     sysv4*MP*)
7658       if test -d /usr/nec ;then
7659         lt_prog_compiler_pic='-Kconform_pic'
7660         lt_prog_compiler_static='-Bstatic'
7661       fi
7662       ;;
7663
7664     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7665       lt_prog_compiler_wl='-Wl,'
7666       lt_prog_compiler_pic='-KPIC'
7667       lt_prog_compiler_static='-Bstatic'
7668       ;;
7669
7670     unicos*)
7671       lt_prog_compiler_wl='-Wl,'
7672       lt_prog_compiler_can_build_shared=no
7673       ;;
7674
7675     uts4*)
7676       lt_prog_compiler_pic='-pic'
7677       lt_prog_compiler_static='-Bstatic'
7678       ;;
7679
7680     *)
7681       lt_prog_compiler_can_build_shared=no
7682       ;;
7683     esac
7684   fi
7685
7686 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7687 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7688
7689 #
7690 # Check to make sure the PIC flag actually works.
7691 #
7692 if test -n "$lt_prog_compiler_pic"; then
7693
7694 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7695 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7696 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   lt_cv_prog_compiler_pic_works=no
7700   ac_outfile=conftest.$ac_objext
7701    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7702    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7703    # Insert the option either (1) after the last *FLAGS variable, or
7704    # (2) before a word containing "conftest.", or (3) at the end.
7705    # Note that $ac_compile itself does not contain backslashes and begins
7706    # with a dollar sign (not a hyphen), so the echo should work correctly.
7707    # The option is referenced via a variable to avoid confusing sed.
7708    lt_compile=`echo "$ac_compile" | $SED \
7709    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7710    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7711    -e 's:$: $lt_compiler_flag:'`
7712    (eval echo "\"\$as_me:7712: $lt_compile\"" >&5)
7713    (eval "$lt_compile" 2>conftest.err)
7714    ac_status=$?
7715    cat conftest.err >&5
7716    echo "$as_me:7716: \$? = $ac_status" >&5
7717    if (exit $ac_status) && test -s "$ac_outfile"; then
7718      # The compiler can only warn and ignore the option if not recognized
7719      # So say no if there are warnings other than the usual output.
7720      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7721      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7722      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7723        lt_cv_prog_compiler_pic_works=yes
7724      fi
7725    fi
7726    $rm conftest*
7727
7728 fi
7729 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7730 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7731
7732 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7733     case $lt_prog_compiler_pic in
7734      "" | " "*) ;;
7735      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7736      esac
7737 else
7738     lt_prog_compiler_pic=
7739      lt_prog_compiler_can_build_shared=no
7740 fi
7741
7742 fi
7743 case $host_os in
7744   # For platforms which do not support PIC, -DPIC is meaningless:
7745   *djgpp*)
7746     lt_prog_compiler_pic=
7747     ;;
7748   *)
7749     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7750     ;;
7751 esac
7752
7753 #
7754 # Check to make sure the static flag actually works.
7755 #
7756 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7757 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7758 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7759 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7760   echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762   lt_cv_prog_compiler_static_works=no
7763    save_LDFLAGS="$LDFLAGS"
7764    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7765    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7766    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7767      # The linker can only warn and ignore the option if not recognized
7768      # So say no if there are warnings
7769      if test -s conftest.err; then
7770        # Append any errors to the config.log.
7771        cat conftest.err 1>&5
7772        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7773        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7774        if diff conftest.exp conftest.er2 >/dev/null; then
7775          lt_cv_prog_compiler_static_works=yes
7776        fi
7777      else
7778        lt_cv_prog_compiler_static_works=yes
7779      fi
7780    fi
7781    $rm -r conftest*
7782    LDFLAGS="$save_LDFLAGS"
7783
7784 fi
7785 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7786 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7787
7788 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7789     :
7790 else
7791     lt_prog_compiler_static=
7792 fi
7793
7794
7795 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7796 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7797 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800   lt_cv_prog_compiler_c_o=no
7801    $rm -r conftest 2>/dev/null
7802    mkdir conftest
7803    cd conftest
7804    mkdir out
7805    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7806
7807    lt_compiler_flag="-o out/conftest2.$ac_objext"
7808    # Insert the option either (1) after the last *FLAGS variable, or
7809    # (2) before a word containing "conftest.", or (3) at the end.
7810    # Note that $ac_compile itself does not contain backslashes and begins
7811    # with a dollar sign (not a hyphen), so the echo should work correctly.
7812    lt_compile=`echo "$ac_compile" | $SED \
7813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7815    -e 's:$: $lt_compiler_flag:'`
7816    (eval echo "\"\$as_me:7816: $lt_compile\"" >&5)
7817    (eval "$lt_compile" 2>out/conftest.err)
7818    ac_status=$?
7819    cat out/conftest.err >&5
7820    echo "$as_me:7820: \$? = $ac_status" >&5
7821    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7822    then
7823      # The compiler can only warn and ignore the option if not recognized
7824      # So say no if there are warnings
7825      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7826      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7827      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7828        lt_cv_prog_compiler_c_o=yes
7829      fi
7830    fi
7831    chmod u+w . 2>&5
7832    $rm conftest*
7833    # SGI C++ compiler will create directory out/ii_files/ for
7834    # template instantiation
7835    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7836    $rm out/* && rmdir out
7837    cd ..
7838    rmdir conftest
7839    $rm conftest*
7840
7841 fi
7842 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7843 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7844
7845
7846 hard_links="nottested"
7847 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7848   # do not overwrite the value of need_locks provided by the user
7849   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7850 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7851   hard_links=yes
7852   $rm conftest*
7853   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7854   touch conftest.a
7855   ln conftest.a conftest.b 2>&5 || hard_links=no
7856   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7857   { echo "$as_me:$LINENO: result: $hard_links" >&5
7858 echo "${ECHO_T}$hard_links" >&6; }
7859   if test "$hard_links" = no; then
7860     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7861 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7862     need_locks=warn
7863   fi
7864 else
7865   need_locks=no
7866 fi
7867
7868 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7869 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7870
7871   runpath_var=
7872   allow_undefined_flag=
7873   enable_shared_with_static_runtimes=no
7874   archive_cmds=
7875   archive_expsym_cmds=
7876   old_archive_From_new_cmds=
7877   old_archive_from_expsyms_cmds=
7878   export_dynamic_flag_spec=
7879   whole_archive_flag_spec=
7880   thread_safe_flag_spec=
7881   hardcode_libdir_flag_spec=
7882   hardcode_libdir_flag_spec_ld=
7883   hardcode_libdir_separator=
7884   hardcode_direct=no
7885   hardcode_minus_L=no
7886   hardcode_shlibpath_var=unsupported
7887   link_all_deplibs=unknown
7888   hardcode_automatic=no
7889   module_cmds=
7890   module_expsym_cmds=
7891   always_export_symbols=no
7892   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7893   # include_expsyms should be a list of space-separated symbols to be *always*
7894   # included in the symbol list
7895   include_expsyms=
7896   # exclude_expsyms can be an extended regexp of symbols to exclude
7897   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7898   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7899   # as well as any symbol that contains `d'.
7900   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7901   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7902   # platforms (ab)use it in PIC code, but their linkers get confused if
7903   # the symbol is explicitly referenced.  Since portable code cannot
7904   # rely on this symbol name, it's probably fine to never include it in
7905   # preloaded symbol tables.
7906   # Exclude shared library initialization/finalization symbols.
7907   extract_expsyms_cmds=
7908   # Just being paranoid about ensuring that cc_basename is set.
7909   for cc_temp in $compiler""; do
7910   case $cc_temp in
7911     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7912     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7913     \-*) ;;
7914     *) break;;
7915   esac
7916 done
7917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7918
7919   case $host_os in
7920   cygwin* | mingw* | pw32*)
7921     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7922     # When not using gcc, we currently assume that we are using
7923     # Microsoft Visual C++.
7924     if test "$GCC" != yes; then
7925       with_gnu_ld=no
7926     fi
7927     ;;
7928   interix*)
7929     # we just hope/assume this is gcc and not c89 (= MSVC++)
7930     with_gnu_ld=yes
7931     ;;
7932   openbsd*)
7933     with_gnu_ld=no
7934     ;;
7935   esac
7936
7937   ld_shlibs=yes
7938   if test "$with_gnu_ld" = yes; then
7939     # If archive_cmds runs LD, not CC, wlarc should be empty
7940     wlarc='${wl}'
7941
7942     # Set some defaults for GNU ld with shared library support. These
7943     # are reset later if shared libraries are not supported. Putting them
7944     # here allows them to be overridden if necessary.
7945     runpath_var=LD_RUN_PATH
7946     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7947     export_dynamic_flag_spec='${wl}--export-dynamic'
7948     # ancient GNU ld didn't support --whole-archive et. al.
7949     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7950         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7951       else
7952         whole_archive_flag_spec=
7953     fi
7954     supports_anon_versioning=no
7955     case `$LD -v 2>/dev/null` in
7956       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7957       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7958       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7959       *\ 2.11.*) ;; # other 2.11 versions
7960       *) supports_anon_versioning=yes ;;
7961     esac
7962
7963     # See if GNU ld supports shared libraries.
7964     case $host_os in
7965     aix[3-9]*)
7966       # On AIX/PPC, the GNU linker is very broken
7967       if test "$host_cpu" != ia64; then
7968         ld_shlibs=no
7969         cat <<EOF 1>&2
7970
7971 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7972 *** to be unable to reliably create shared libraries on AIX.
7973 *** Therefore, libtool is disabling shared libraries support.  If you
7974 *** really care for shared libraries, you may want to modify your PATH
7975 *** so that a non-GNU linker is found, and then restart.
7976
7977 EOF
7978       fi
7979       ;;
7980
7981     amigaos*)
7982       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)'
7983       hardcode_libdir_flag_spec='-L$libdir'
7984       hardcode_minus_L=yes
7985
7986       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7987       # that the semantics of dynamic libraries on AmigaOS, at least up
7988       # to version 4, is to share data among multiple programs linked
7989       # with the same dynamic library.  Since this doesn't match the
7990       # behavior of shared libraries on other platforms, we can't use
7991       # them.
7992       ld_shlibs=no
7993       ;;
7994
7995     beos*)
7996       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7997         allow_undefined_flag=unsupported
7998         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7999         # support --undefined.  This deserves some investigation.  FIXME
8000         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8001       else
8002         ld_shlibs=no
8003       fi
8004       ;;
8005
8006     cygwin* | mingw* | pw32*)
8007       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8008       # as there is no search path for DLLs.
8009       hardcode_libdir_flag_spec='-L$libdir'
8010       allow_undefined_flag=unsupported
8011       always_export_symbols=no
8012       enable_shared_with_static_runtimes=yes
8013       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8014
8015       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8016         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8017         # If the export-symbols file already is a .def file (1st line
8018         # is EXPORTS), use it as is; otherwise, prepend...
8019         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8020           cp $export_symbols $output_objdir/$soname.def;
8021         else
8022           echo EXPORTS > $output_objdir/$soname.def;
8023           cat $export_symbols >> $output_objdir/$soname.def;
8024         fi~
8025         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8026       else
8027         ld_shlibs=no
8028       fi
8029       ;;
8030
8031     interix[3-9]*)
8032       hardcode_direct=no
8033       hardcode_shlibpath_var=no
8034       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8035       export_dynamic_flag_spec='${wl}-E'
8036       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8037       # Instead, shared libraries are loaded at an image base (0x10000000 by
8038       # default) and relocated if they conflict, which is a slow very memory
8039       # consuming and fragmenting process.  To avoid this, we pick a random,
8040       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8041       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8042       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8043       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'
8044       ;;
8045
8046     gnu* | linux* | k*bsd*-gnu)
8047       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8048         tmp_addflag=
8049         case $cc_basename,$host_cpu in
8050         pgcc*)                          # Portland Group C compiler
8051           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'
8052           tmp_addflag=' $pic_flag'
8053           ;;
8054         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8055           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'
8056           tmp_addflag=' $pic_flag -Mnomain' ;;
8057         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8058           tmp_addflag=' -i_dynamic' ;;
8059         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8060           tmp_addflag=' -i_dynamic -nofor_main' ;;
8061         ifc* | ifort*)                  # Intel Fortran compiler
8062           tmp_addflag=' -nofor_main' ;;
8063         esac
8064         case `$CC -V 2>&1 | sed 5q` in
8065         *Sun\ C*)                       # Sun C 5.9
8066           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'
8067           tmp_sharedflag='-G' ;;
8068         *Sun\ F*)                       # Sun Fortran 8.3
8069           tmp_sharedflag='-G' ;;
8070         *)
8071           tmp_sharedflag='-shared' ;;
8072         esac
8073         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8074
8075         if test $supports_anon_versioning = yes; then
8076           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8077   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8078   $echo "local: *; };" >> $output_objdir/$libname.ver~
8079           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8080         fi
8081         link_all_deplibs=no
8082       else
8083         ld_shlibs=no
8084       fi
8085       ;;
8086
8087     netbsd* | netbsdelf*-gnu)
8088       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8089         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8090         wlarc=
8091       else
8092         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8094       fi
8095       ;;
8096
8097     solaris*)
8098       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8099         ld_shlibs=no
8100         cat <<EOF 1>&2
8101
8102 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8103 *** create shared libraries on Solaris systems.  Therefore, libtool
8104 *** is disabling shared libraries support.  We urge you to upgrade GNU
8105 *** binutils to release 2.9.1 or newer.  Another option is to modify
8106 *** your PATH or compiler configuration so that the native linker is
8107 *** used, and then restart.
8108
8109 EOF
8110       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8111         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8112         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8113       else
8114         ld_shlibs=no
8115       fi
8116       ;;
8117
8118     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8119       case `$LD -v 2>&1` in
8120         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8121         ld_shlibs=no
8122         cat <<_LT_EOF 1>&2
8123
8124 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8125 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8126 *** is disabling shared libraries support.  We urge you to upgrade GNU
8127 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8128 *** your PATH or compiler configuration so that the native linker is
8129 *** used, and then restart.
8130
8131 _LT_EOF
8132         ;;
8133         *)
8134           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8135             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8136             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8137             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8138           else
8139             ld_shlibs=no
8140           fi
8141         ;;
8142       esac
8143       ;;
8144
8145     sunos4*)
8146       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8147       wlarc=
8148       hardcode_direct=yes
8149       hardcode_shlibpath_var=no
8150       ;;
8151
8152     *)
8153       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8154         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8156       else
8157         ld_shlibs=no
8158       fi
8159       ;;
8160     esac
8161
8162     if test "$ld_shlibs" = no; then
8163       runpath_var=
8164       hardcode_libdir_flag_spec=
8165       export_dynamic_flag_spec=
8166       whole_archive_flag_spec=
8167     fi
8168   else
8169     # PORTME fill in a description of your system's linker (not GNU ld)
8170     case $host_os in
8171     aix3*)
8172       allow_undefined_flag=unsupported
8173       always_export_symbols=yes
8174       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'
8175       # Note: this linker hardcodes the directories in LIBPATH if there
8176       # are no directories specified by -L.
8177       hardcode_minus_L=yes
8178       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8179         # Neither direct hardcoding nor static linking is supported with a
8180         # broken collect2.
8181         hardcode_direct=unsupported
8182       fi
8183       ;;
8184
8185     aix[4-9]*)
8186       if test "$host_cpu" = ia64; then
8187         # On IA64, the linker does run time linking by default, so we don't
8188         # have to do anything special.
8189         aix_use_runtimelinking=no
8190         exp_sym_flag='-Bexport'
8191         no_entry_flag=""
8192       else
8193         # If we're using GNU nm, then we don't want the "-C" option.
8194         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8195         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8196           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'
8197         else
8198           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'
8199         fi
8200         aix_use_runtimelinking=no
8201
8202         # Test if we are trying to use run time linking or normal
8203         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8204         # need to do runtime linking.
8205         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8206           for ld_flag in $LDFLAGS; do
8207           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8208             aix_use_runtimelinking=yes
8209             break
8210           fi
8211           done
8212           ;;
8213         esac
8214
8215         exp_sym_flag='-bexport'
8216         no_entry_flag='-bnoentry'
8217       fi
8218
8219       # When large executables or shared objects are built, AIX ld can
8220       # have problems creating the table of contents.  If linking a library
8221       # or program results in "error TOC overflow" add -mminimal-toc to
8222       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8223       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8224
8225       archive_cmds=''
8226       hardcode_direct=yes
8227       hardcode_libdir_separator=':'
8228       link_all_deplibs=yes
8229
8230       if test "$GCC" = yes; then
8231         case $host_os in aix4.[012]|aix4.[012].*)
8232         # We only want to do this on AIX 4.2 and lower, the check
8233         # below for broken collect2 doesn't work under 4.3+
8234           collect2name=`${CC} -print-prog-name=collect2`
8235           if test -f "$collect2name" && \
8236            strings "$collect2name" | grep resolve_lib_name >/dev/null
8237           then
8238           # We have reworked collect2
8239           :
8240           else
8241           # We have old collect2
8242           hardcode_direct=unsupported
8243           # It fails to find uninstalled libraries when the uninstalled
8244           # path is not listed in the libpath.  Setting hardcode_minus_L
8245           # to unsupported forces relinking
8246           hardcode_minus_L=yes
8247           hardcode_libdir_flag_spec='-L$libdir'
8248           hardcode_libdir_separator=
8249           fi
8250           ;;
8251         esac
8252         shared_flag='-shared'
8253         if test "$aix_use_runtimelinking" = yes; then
8254           shared_flag="$shared_flag "'${wl}-G'
8255         fi
8256       else
8257         # not using gcc
8258         if test "$host_cpu" = ia64; then
8259         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8260         # chokes on -Wl,-G. The following line is correct:
8261           shared_flag='-G'
8262         else
8263           if test "$aix_use_runtimelinking" = yes; then
8264             shared_flag='${wl}-G'
8265           else
8266             shared_flag='${wl}-bM:SRE'
8267           fi
8268         fi
8269       fi
8270
8271       # It seems that -bexpall does not export symbols beginning with
8272       # underscore (_), so it is better to generate a list of symbols to export.
8273       always_export_symbols=yes
8274       if test "$aix_use_runtimelinking" = yes; then
8275         # Warning - without using the other runtime loading flags (-brtl),
8276         # -berok will link without error, but may produce a broken library.
8277         allow_undefined_flag='-berok'
8278        # Determine the default libpath from the value encoded in an empty executable.
8279        cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h.  */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h.  */
8285
8286 int
8287 main ()
8288 {
8289
8290   ;
8291   return 0;
8292 }
8293 _ACEOF
8294 rm -f conftest.$ac_objext conftest$ac_exeext
8295 if { (ac_try="$ac_link"
8296 case "(($ac_try" in
8297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298   *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301   (eval "$ac_link") 2>conftest.er1
8302   ac_status=$?
8303   grep -v '^ *+' conftest.er1 >conftest.err
8304   rm -f conftest.er1
8305   cat conftest.err >&5
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); } && {
8308          test -z "$ac_c_werror_flag" ||
8309          test ! -s conftest.err
8310        } && test -s conftest$ac_exeext &&
8311        $as_test_x conftest$ac_exeext; then
8312
8313 lt_aix_libpath_sed='
8314     /Import File Strings/,/^$/ {
8315         /^0/ {
8316             s/^0  *\(.*\)$/\1/
8317             p
8318         }
8319     }'
8320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8321 # Check for a 64-bit object if we didn't find anything.
8322 if test -z "$aix_libpath"; then
8323   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8324 fi
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329
8330 fi
8331
8332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8333       conftest$ac_exeext conftest.$ac_ext
8334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8335
8336        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8337         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"
8338        else
8339         if test "$host_cpu" = ia64; then
8340           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8341           allow_undefined_flag="-z nodefs"
8342           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"
8343         else
8344          # Determine the default libpath from the value encoded in an empty executable.
8345          cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h.  */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h.  */
8351
8352 int
8353 main ()
8354 {
8355
8356   ;
8357   return 0;
8358 }
8359 _ACEOF
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (ac_try="$ac_link"
8362 case "(($ac_try" in
8363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364   *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367   (eval "$ac_link") 2>conftest.er1
8368   ac_status=$?
8369   grep -v '^ *+' conftest.er1 >conftest.err
8370   rm -f conftest.er1
8371   cat conftest.err >&5
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); } && {
8374          test -z "$ac_c_werror_flag" ||
8375          test ! -s conftest.err
8376        } && test -s conftest$ac_exeext &&
8377        $as_test_x conftest$ac_exeext; then
8378
8379 lt_aix_libpath_sed='
8380     /Import File Strings/,/^$/ {
8381         /^0/ {
8382             s/^0  *\(.*\)$/\1/
8383             p
8384         }
8385     }'
8386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8387 # Check for a 64-bit object if we didn't find anything.
8388 if test -z "$aix_libpath"; then
8389   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8390 fi
8391 else
8392   echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395
8396 fi
8397
8398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8399       conftest$ac_exeext conftest.$ac_ext
8400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8401
8402          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8403           # Warning - without using the other run time loading flags,
8404           # -berok will link without error, but may produce a broken library.
8405           no_undefined_flag=' ${wl}-bernotok'
8406           allow_undefined_flag=' ${wl}-berok'
8407           # Exported symbols can be pulled into shared objects from archives
8408           whole_archive_flag_spec='$convenience'
8409           archive_cmds_need_lc=yes
8410           # This is similar to how AIX traditionally builds its shared libraries.
8411           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'
8412         fi
8413       fi
8414       ;;
8415
8416     amigaos*)
8417       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)'
8418       hardcode_libdir_flag_spec='-L$libdir'
8419       hardcode_minus_L=yes
8420       # see comment about different semantics on the GNU ld section
8421       ld_shlibs=no
8422       ;;
8423
8424     bsdi[45]*)
8425       export_dynamic_flag_spec=-rdynamic
8426       ;;
8427
8428     cygwin* | mingw* | pw32*)
8429       # When not using gcc, we currently assume that we are using
8430       # Microsoft Visual C++.
8431       # hardcode_libdir_flag_spec is actually meaningless, as there is
8432       # no search path for DLLs.
8433       hardcode_libdir_flag_spec=' '
8434       allow_undefined_flag=unsupported
8435       # Tell ltmain to make .lib files, not .a files.
8436       libext=lib
8437       # Tell ltmain to make .dll files, not .so files.
8438       shrext_cmds=".dll"
8439       # FIXME: Setting linknames here is a bad hack.
8440       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8441       # The linker will automatically build a .lib file if we build a DLL.
8442       old_archive_From_new_cmds='true'
8443       # FIXME: Should let the user specify the lib program.
8444       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8445       fix_srcfile_path='`cygpath -w "$srcfile"`'
8446       enable_shared_with_static_runtimes=yes
8447       ;;
8448
8449     darwin* | rhapsody*)
8450       case $host_os in
8451         rhapsody* | darwin1.[012])
8452          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8453          ;;
8454        *) # Darwin 1.3 on
8455          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8456            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8457          else
8458            case ${MACOSX_DEPLOYMENT_TARGET} in
8459              10.[012])
8460                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8461                ;;
8462              10.*)
8463                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8464                ;;
8465            esac
8466          fi
8467          ;;
8468       esac
8469       archive_cmds_need_lc=no
8470       hardcode_direct=no
8471       hardcode_automatic=yes
8472       hardcode_shlibpath_var=unsupported
8473       whole_archive_flag_spec=''
8474       link_all_deplibs=yes
8475     if test "$GCC" = yes ; then
8476         output_verbose_link_cmd='echo'
8477         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8478         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8479         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}"
8480         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}"
8481     else
8482       case $cc_basename in
8483         xlc*)
8484          output_verbose_link_cmd='echo'
8485          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8486          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8487           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8488          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}'
8489           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}'
8490           ;;
8491        *)
8492          ld_shlibs=no
8493           ;;
8494       esac
8495     fi
8496       ;;
8497
8498     dgux*)
8499       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500       hardcode_libdir_flag_spec='-L$libdir'
8501       hardcode_shlibpath_var=no
8502       ;;
8503
8504     freebsd1*)
8505       ld_shlibs=no
8506       ;;
8507
8508     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8509     # support.  Future versions do this automatically, but an explicit c++rt0.o
8510     # does not break anything, and helps significantly (at the cost of a little
8511     # extra space).
8512     freebsd2.2*)
8513       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8514       hardcode_libdir_flag_spec='-R$libdir'
8515       hardcode_direct=yes
8516       hardcode_shlibpath_var=no
8517       ;;
8518
8519     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8520     freebsd2*)
8521       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8522       hardcode_direct=yes
8523       hardcode_minus_L=yes
8524       hardcode_shlibpath_var=no
8525       ;;
8526
8527     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8528     freebsd* | dragonfly*)
8529       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8530       hardcode_libdir_flag_spec='-R$libdir'
8531       hardcode_direct=yes
8532       hardcode_shlibpath_var=no
8533       ;;
8534
8535     hpux9*)
8536       if test "$GCC" = yes; then
8537         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'
8538       else
8539         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'
8540       fi
8541       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8542       hardcode_libdir_separator=:
8543       hardcode_direct=yes
8544
8545       # hardcode_minus_L: Not really in the search PATH,
8546       # but as the default location of the library.
8547       hardcode_minus_L=yes
8548       export_dynamic_flag_spec='${wl}-E'
8549       ;;
8550
8551     hpux10*)
8552       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8553         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8554       else
8555         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8556       fi
8557       if test "$with_gnu_ld" = no; then
8558         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8559         hardcode_libdir_separator=:
8560
8561         hardcode_direct=yes
8562         export_dynamic_flag_spec='${wl}-E'
8563
8564         # hardcode_minus_L: Not really in the search PATH,
8565         # but as the default location of the library.
8566         hardcode_minus_L=yes
8567       fi
8568       ;;
8569
8570     hpux11*)
8571       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8572         case $host_cpu in
8573         hppa*64*)
8574           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8575           ;;
8576         ia64*)
8577           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8578           ;;
8579         *)
8580           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8581           ;;
8582         esac
8583       else
8584         case $host_cpu in
8585         hppa*64*)
8586           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8587           ;;
8588         ia64*)
8589           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8590           ;;
8591         *)
8592           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8593           ;;
8594         esac
8595       fi
8596       if test "$with_gnu_ld" = no; then
8597         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8598         hardcode_libdir_separator=:
8599
8600         case $host_cpu in
8601         hppa*64*|ia64*)
8602           hardcode_libdir_flag_spec_ld='+b $libdir'
8603           hardcode_direct=no
8604           hardcode_shlibpath_var=no
8605           ;;
8606         *)
8607           hardcode_direct=yes
8608           export_dynamic_flag_spec='${wl}-E'
8609
8610           # hardcode_minus_L: Not really in the search PATH,
8611           # but as the default location of the library.
8612           hardcode_minus_L=yes
8613           ;;
8614         esac
8615       fi
8616       ;;
8617
8618     irix5* | irix6* | nonstopux*)
8619       if test "$GCC" = yes; then
8620         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'
8621       else
8622         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'
8623         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8624       fi
8625       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8626       hardcode_libdir_separator=:
8627       link_all_deplibs=yes
8628       ;;
8629
8630     netbsd* | netbsdelf*-gnu)
8631       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8632         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8633       else
8634         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8635       fi
8636       hardcode_libdir_flag_spec='-R$libdir'
8637       hardcode_direct=yes
8638       hardcode_shlibpath_var=no
8639       ;;
8640
8641     newsos6)
8642       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643       hardcode_direct=yes
8644       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8645       hardcode_libdir_separator=:
8646       hardcode_shlibpath_var=no
8647       ;;
8648
8649     openbsd*)
8650       if test -f /usr/libexec/ld.so; then
8651         hardcode_direct=yes
8652         hardcode_shlibpath_var=no
8653         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8654           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8655           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8656           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8657           export_dynamic_flag_spec='${wl}-E'
8658         else
8659           case $host_os in
8660            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8661              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8662              hardcode_libdir_flag_spec='-R$libdir'
8663              ;;
8664            *)
8665              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8666              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8667              ;;
8668           esac
8669         fi
8670       else
8671         ld_shlibs=no
8672       fi
8673       ;;
8674
8675     os2*)
8676       hardcode_libdir_flag_spec='-L$libdir'
8677       hardcode_minus_L=yes
8678       allow_undefined_flag=unsupported
8679       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'
8680       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8681       ;;
8682
8683     osf3*)
8684       if test "$GCC" = yes; then
8685         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8686         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'
8687       else
8688         allow_undefined_flag=' -expect_unresolved \*'
8689         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'
8690       fi
8691       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8692       hardcode_libdir_separator=:
8693       ;;
8694
8695     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8696       if test "$GCC" = yes; then
8697         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8698         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'
8699         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700       else
8701         allow_undefined_flag=' -expect_unresolved \*'
8702         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'
8703         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8704         $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'
8705
8706         # Both c and cxx compiler support -rpath directly
8707         hardcode_libdir_flag_spec='-rpath $libdir'
8708       fi
8709       hardcode_libdir_separator=:
8710       ;;
8711
8712     solaris*)
8713       no_undefined_flag=' -z text'
8714       if test "$GCC" = yes; then
8715         wlarc='${wl}'
8716         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8717         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8718           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8719       else
8720         wlarc=''
8721         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8722         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8723         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8724       fi
8725       hardcode_libdir_flag_spec='-R$libdir'
8726       hardcode_shlibpath_var=no
8727       case $host_os in
8728       solaris2.[0-5] | solaris2.[0-5].*) ;;
8729       *)
8730         # The compiler driver will combine and reorder linker options,
8731         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8732         # but is careful enough not to reorder.
8733         # Supported since Solaris 2.6 (maybe 2.5.1?)
8734         if test "$GCC" = yes; then
8735           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8736         else
8737           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8738         fi
8739         ;;
8740       esac
8741       link_all_deplibs=yes
8742       ;;
8743
8744     sunos4*)
8745       if test "x$host_vendor" = xsequent; then
8746         # Use $CC to link under sequent, because it throws in some extra .o
8747         # files that make .init and .fini sections work.
8748         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8749       else
8750         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8751       fi
8752       hardcode_libdir_flag_spec='-L$libdir'
8753       hardcode_direct=yes
8754       hardcode_minus_L=yes
8755       hardcode_shlibpath_var=no
8756       ;;
8757
8758     sysv4)
8759       case $host_vendor in
8760         sni)
8761           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8762           hardcode_direct=yes # is this really true???
8763         ;;
8764         siemens)
8765           ## LD is ld it makes a PLAMLIB
8766           ## CC just makes a GrossModule.
8767           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8768           reload_cmds='$CC -r -o $output$reload_objs'
8769           hardcode_direct=no
8770         ;;
8771         motorola)
8772           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8774         ;;
8775       esac
8776       runpath_var='LD_RUN_PATH'
8777       hardcode_shlibpath_var=no
8778       ;;
8779
8780     sysv4.3*)
8781       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782       hardcode_shlibpath_var=no
8783       export_dynamic_flag_spec='-Bexport'
8784       ;;
8785
8786     sysv4*MP*)
8787       if test -d /usr/nec; then
8788         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789         hardcode_shlibpath_var=no
8790         runpath_var=LD_RUN_PATH
8791         hardcode_runpath_var=yes
8792         ld_shlibs=yes
8793       fi
8794       ;;
8795
8796     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8797       no_undefined_flag='${wl}-z,text'
8798       archive_cmds_need_lc=no
8799       hardcode_shlibpath_var=no
8800       runpath_var='LD_RUN_PATH'
8801
8802       if test "$GCC" = yes; then
8803         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8805       else
8806         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8807         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8808       fi
8809       ;;
8810
8811     sysv5* | sco3.2v5* | sco5v6*)
8812       # Note: We can NOT use -z defs as we might desire, because we do not
8813       # link with -lc, and that would cause any symbols used from libc to
8814       # always be unresolved, which means just about no library would
8815       # ever link correctly.  If we're not using GNU ld we use -z text
8816       # though, which does catch some bad symbols but isn't as heavy-handed
8817       # as -z defs.
8818       no_undefined_flag='${wl}-z,text'
8819       allow_undefined_flag='${wl}-z,nodefs'
8820       archive_cmds_need_lc=no
8821       hardcode_shlibpath_var=no
8822       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8823       hardcode_libdir_separator=':'
8824       link_all_deplibs=yes
8825       export_dynamic_flag_spec='${wl}-Bexport'
8826       runpath_var='LD_RUN_PATH'
8827
8828       if test "$GCC" = yes; then
8829         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8831       else
8832         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8833         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8834       fi
8835       ;;
8836
8837     uts4*)
8838       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839       hardcode_libdir_flag_spec='-L$libdir'
8840       hardcode_shlibpath_var=no
8841       ;;
8842
8843     *)
8844       ld_shlibs=no
8845       ;;
8846     esac
8847   fi
8848
8849 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8850 echo "${ECHO_T}$ld_shlibs" >&6; }
8851 test "$ld_shlibs" = no && can_build_shared=no
8852
8853 #
8854 # Do we need to explicitly link libc?
8855 #
8856 case "x$archive_cmds_need_lc" in
8857 x|xyes)
8858   # Assume -lc should be added
8859   archive_cmds_need_lc=yes
8860
8861   if test "$enable_shared" = yes && test "$GCC" = yes; then
8862     case $archive_cmds in
8863     *'~'*)
8864       # FIXME: we may have to deal with multi-command sequences.
8865       ;;
8866     '$CC '*)
8867       # Test whether the compiler implicitly links with -lc since on some
8868       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8869       # to ld, don't add -lc before -lgcc.
8870       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8871 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8872       $rm conftest*
8873       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8874
8875       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8876   (eval $ac_compile) 2>&5
8877   ac_status=$?
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); } 2>conftest.err; then
8880         soname=conftest
8881         lib=conftest
8882         libobjs=conftest.$ac_objext
8883         deplibs=
8884         wl=$lt_prog_compiler_wl
8885         pic_flag=$lt_prog_compiler_pic
8886         compiler_flags=-v
8887         linker_flags=-v
8888         verstring=
8889         output_objdir=.
8890         libname=conftest
8891         lt_save_allow_undefined_flag=$allow_undefined_flag
8892         allow_undefined_flag=
8893         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8894   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); }
8898         then
8899           archive_cmds_need_lc=no
8900         else
8901           archive_cmds_need_lc=yes
8902         fi
8903         allow_undefined_flag=$lt_save_allow_undefined_flag
8904       else
8905         cat conftest.err 1>&5
8906       fi
8907       $rm conftest*
8908       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8909 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8910       ;;
8911     esac
8912   fi
8913   ;;
8914 esac
8915
8916 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8917 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8918 library_names_spec=
8919 libname_spec='lib$name'
8920 soname_spec=
8921 shrext_cmds=".so"
8922 postinstall_cmds=
8923 postuninstall_cmds=
8924 finish_cmds=
8925 finish_eval=
8926 shlibpath_var=
8927 shlibpath_overrides_runpath=unknown
8928 version_type=none
8929 dynamic_linker="$host_os ld.so"
8930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8931
8932 if test "$GCC" = yes; then
8933   case $host_os in
8934     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8935     *) lt_awk_arg="/^libraries:/" ;;
8936   esac
8937   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8938   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8939     # if the path contains ";" then we assume it to be the separator
8940     # otherwise default to the standard path separator (i.e. ":") - it is
8941     # assumed that no part of a normal pathname contains ";" but that should
8942     # okay in the real world where ";" in dirpaths is itself problematic.
8943     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8944   else
8945     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8946   fi
8947   # Ok, now we have the path, separated by spaces, we can step through it
8948   # and add multilib dir if necessary.
8949   lt_tmp_lt_search_path_spec=
8950   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8951   for lt_sys_path in $lt_search_path_spec; do
8952     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8953       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8954     else
8955       test -d "$lt_sys_path" && \
8956         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8957     fi
8958   done
8959   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8960 BEGIN {RS=" "; FS="/|\n";} {
8961   lt_foo="";
8962   lt_count=0;
8963   for (lt_i = NF; lt_i > 0; lt_i--) {
8964     if ($lt_i != "" && $lt_i != ".") {
8965       if ($lt_i == "..") {
8966         lt_count++;
8967       } else {
8968         if (lt_count == 0) {
8969           lt_foo="/" $lt_i lt_foo;
8970         } else {
8971           lt_count--;
8972         }
8973       }
8974     }
8975   }
8976   if (lt_foo != "") { lt_freq[lt_foo]++; }
8977   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8978 }'`
8979   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8980 else
8981   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8982 fi
8983 need_lib_prefix=unknown
8984 hardcode_into_libs=no
8985
8986 # when you set need_version to no, make sure it does not cause -set_version
8987 # flags to be left without arguments
8988 need_version=unknown
8989
8990 case $host_os in
8991 aix3*)
8992   version_type=linux
8993   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8994   shlibpath_var=LIBPATH
8995
8996   # AIX 3 has no versioning support, so we append a major version to the name.
8997   soname_spec='${libname}${release}${shared_ext}$major'
8998   ;;
8999
9000 aix[4-9]*)
9001   version_type=linux
9002   need_lib_prefix=no
9003   need_version=no
9004   hardcode_into_libs=yes
9005   if test "$host_cpu" = ia64; then
9006     # AIX 5 supports IA64
9007     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9008     shlibpath_var=LD_LIBRARY_PATH
9009   else
9010     # With GCC up to 2.95.x, collect2 would create an import file
9011     # for dependence libraries.  The import file would start with
9012     # the line `#! .'.  This would cause the generated library to
9013     # depend on `.', always an invalid library.  This was fixed in
9014     # development snapshots of GCC prior to 3.0.
9015     case $host_os in
9016       aix4 | aix4.[01] | aix4.[01].*)
9017       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9018            echo ' yes '
9019            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9020         :
9021       else
9022         can_build_shared=no
9023       fi
9024       ;;
9025     esac
9026     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9027     # soname into executable. Probably we can add versioning support to
9028     # collect2, so additional links can be useful in future.
9029     if test "$aix_use_runtimelinking" = yes; then
9030       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9031       # instead of lib<name>.a to let people know that these are not
9032       # typical AIX shared libraries.
9033       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034     else
9035       # We preserve .a as extension for shared libraries through AIX4.2
9036       # and later when we are not doing run time linking.
9037       library_names_spec='${libname}${release}.a $libname.a'
9038       soname_spec='${libname}${release}${shared_ext}$major'
9039     fi
9040     shlibpath_var=LIBPATH
9041   fi
9042   ;;
9043
9044 amigaos*)
9045   library_names_spec='$libname.ixlibrary $libname.a'
9046   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9047   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'
9048   ;;
9049
9050 beos*)
9051   library_names_spec='${libname}${shared_ext}'
9052   dynamic_linker="$host_os ld.so"
9053   shlibpath_var=LIBRARY_PATH
9054   ;;
9055
9056 bsdi[45]*)
9057   version_type=linux
9058   need_version=no
9059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060   soname_spec='${libname}${release}${shared_ext}$major'
9061   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9062   shlibpath_var=LD_LIBRARY_PATH
9063   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9064   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9065   # the default ld.so.conf also contains /usr/contrib/lib and
9066   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9067   # libtool to hard-code these into programs
9068   ;;
9069
9070 cygwin* | mingw* | pw32*)
9071   version_type=windows
9072   shrext_cmds=".dll"
9073   need_version=no
9074   need_lib_prefix=no
9075
9076   case $GCC,$host_os in
9077   yes,cygwin* | yes,mingw* | yes,pw32*)
9078     library_names_spec='$libname.dll.a'
9079     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9080     postinstall_cmds='base_file=`basename \${file}`~
9081       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9082       dldir=$destdir/`dirname \$dlpath`~
9083       test -d \$dldir || mkdir -p \$dldir~
9084       $install_prog $dir/$dlname \$dldir/$dlname~
9085       chmod a+x \$dldir/$dlname'
9086     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9087       dlpath=$dir/\$dldll~
9088        $rm \$dlpath'
9089     shlibpath_overrides_runpath=yes
9090
9091     case $host_os in
9092     cygwin*)
9093       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9094       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9095       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9096       ;;
9097     mingw*)
9098       # MinGW DLLs use traditional 'lib' prefix
9099       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9100       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9101       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9102         # It is most probably a Windows format PATH printed by
9103         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9104         # path with ; separators, and with drive letters. We can handle the
9105         # drive letters (cygwin fileutils understands them), so leave them,
9106         # especially as we might pass files found there to a mingw objdump,
9107         # which wouldn't understand a cygwinified path. Ahh.
9108         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9109       else
9110         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9111       fi
9112       ;;
9113     pw32*)
9114       # pw32 DLLs use 'pw' prefix rather than 'lib'
9115       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9116       ;;
9117     esac
9118     ;;
9119
9120   *)
9121     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9122     ;;
9123   esac
9124   dynamic_linker='Win32 ld.exe'
9125   # FIXME: first we should search . and the directory the executable is in
9126   shlibpath_var=PATH
9127   ;;
9128
9129 darwin* | rhapsody*)
9130   dynamic_linker="$host_os dyld"
9131   version_type=darwin
9132   need_lib_prefix=no
9133   need_version=no
9134   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9135   soname_spec='${libname}${release}${major}$shared_ext'
9136   shlibpath_overrides_runpath=yes
9137   shlibpath_var=DYLD_LIBRARY_PATH
9138   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9139
9140   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9141   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9142   ;;
9143
9144 dgux*)
9145   version_type=linux
9146   need_lib_prefix=no
9147   need_version=no
9148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9149   soname_spec='${libname}${release}${shared_ext}$major'
9150   shlibpath_var=LD_LIBRARY_PATH
9151   ;;
9152
9153 freebsd1*)
9154   dynamic_linker=no
9155   ;;
9156
9157 freebsd* | dragonfly*)
9158   # DragonFly does not have aout.  When/if they implement a new
9159   # versioning mechanism, adjust this.
9160   if test -x /usr/bin/objformat; then
9161     objformat=`/usr/bin/objformat`
9162   else
9163     case $host_os in
9164     freebsd[123]*) objformat=aout ;;
9165     *) objformat=elf ;;
9166     esac
9167   fi
9168   version_type=freebsd-$objformat
9169   case $version_type in
9170     freebsd-elf*)
9171       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9172       need_version=no
9173       need_lib_prefix=no
9174       ;;
9175     freebsd-*)
9176       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9177       need_version=yes
9178       ;;
9179   esac
9180   shlibpath_var=LD_LIBRARY_PATH
9181   case $host_os in
9182   freebsd2*)
9183     shlibpath_overrides_runpath=yes
9184     ;;
9185   freebsd3.[01]* | freebsdelf3.[01]*)
9186     shlibpath_overrides_runpath=yes
9187     hardcode_into_libs=yes
9188     ;;
9189   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9190   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9191     shlibpath_overrides_runpath=no
9192     hardcode_into_libs=yes
9193     ;;
9194   *) # from 4.6 on, and DragonFly
9195     shlibpath_overrides_runpath=yes
9196     hardcode_into_libs=yes
9197     ;;
9198   esac
9199   ;;
9200
9201 gnu*)
9202   version_type=linux
9203   need_lib_prefix=no
9204   need_version=no
9205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9206   soname_spec='${libname}${release}${shared_ext}$major'
9207   shlibpath_var=LD_LIBRARY_PATH
9208   hardcode_into_libs=yes
9209   ;;
9210
9211 hpux9* | hpux10* | hpux11*)
9212   # Give a soname corresponding to the major version so that dld.sl refuses to
9213   # link against other versions.
9214   version_type=sunos
9215   need_lib_prefix=no
9216   need_version=no
9217   case $host_cpu in
9218   ia64*)
9219     shrext_cmds='.so'
9220     hardcode_into_libs=yes
9221     dynamic_linker="$host_os dld.so"
9222     shlibpath_var=LD_LIBRARY_PATH
9223     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225     soname_spec='${libname}${release}${shared_ext}$major'
9226     if test "X$HPUX_IA64_MODE" = X32; then
9227       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9228     else
9229       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9230     fi
9231     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9232     ;;
9233    hppa*64*)
9234      shrext_cmds='.sl'
9235      hardcode_into_libs=yes
9236      dynamic_linker="$host_os dld.sl"
9237      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9238      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9239      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240      soname_spec='${libname}${release}${shared_ext}$major'
9241      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9242      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9243      ;;
9244    *)
9245     shrext_cmds='.sl'
9246     dynamic_linker="$host_os dld.sl"
9247     shlibpath_var=SHLIB_PATH
9248     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250     soname_spec='${libname}${release}${shared_ext}$major'
9251     ;;
9252   esac
9253   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9254   postinstall_cmds='chmod 555 $lib'
9255   ;;
9256
9257 interix[3-9]*)
9258   version_type=linux
9259   need_lib_prefix=no
9260   need_version=no
9261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9262   soname_spec='${libname}${release}${shared_ext}$major'
9263   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9264   shlibpath_var=LD_LIBRARY_PATH
9265   shlibpath_overrides_runpath=no
9266   hardcode_into_libs=yes
9267   ;;
9268
9269 irix5* | irix6* | nonstopux*)
9270   case $host_os in
9271     nonstopux*) version_type=nonstopux ;;
9272     *)
9273         if test "$lt_cv_prog_gnu_ld" = yes; then
9274                 version_type=linux
9275         else
9276                 version_type=irix
9277         fi ;;
9278   esac
9279   need_lib_prefix=no
9280   need_version=no
9281   soname_spec='${libname}${release}${shared_ext}$major'
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9283   case $host_os in
9284   irix5* | nonstopux*)
9285     libsuff= shlibsuff=
9286     ;;
9287   *)
9288     case $LD in # libtool.m4 will add one of these switches to LD
9289     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9290       libsuff= shlibsuff= libmagic=32-bit;;
9291     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9292       libsuff=32 shlibsuff=N32 libmagic=N32;;
9293     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9294       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9295     *) libsuff= shlibsuff= libmagic=never-match;;
9296     esac
9297     ;;
9298   esac
9299   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9300   shlibpath_overrides_runpath=no
9301   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9302   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9303   hardcode_into_libs=yes
9304   ;;
9305
9306 # No shared lib support for Linux oldld, aout, or coff.
9307 linux*oldld* | linux*aout* | linux*coff*)
9308   dynamic_linker=no
9309   ;;
9310
9311 # This must be Linux ELF.
9312 linux* | k*bsd*-gnu)
9313   version_type=linux
9314   need_lib_prefix=no
9315   need_version=no
9316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317   soname_spec='${libname}${release}${shared_ext}$major'
9318   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9319   shlibpath_var=LD_LIBRARY_PATH
9320   shlibpath_overrides_runpath=no
9321   # This implies no fast_install, which is unacceptable.
9322   # Some rework will be needed to allow for fast_install
9323   # before this can be enabled.
9324   hardcode_into_libs=yes
9325
9326   # Append ld.so.conf contents to the search path
9327   if test -f /etc/ld.so.conf; then
9328     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' ' '`
9329     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9330   fi
9331
9332   # We used to test for /lib/ld.so.1 and disable shared libraries on
9333   # powerpc, because MkLinux only supported shared libraries with the
9334   # GNU dynamic linker.  Since this was broken with cross compilers,
9335   # most powerpc-linux boxes support dynamic linking these days and
9336   # people can always --disable-shared, the test was removed, and we
9337   # assume the GNU/Linux dynamic linker is in use.
9338   dynamic_linker='GNU/Linux ld.so'
9339   ;;
9340
9341 netbsdelf*-gnu)
9342   version_type=linux
9343   need_lib_prefix=no
9344   need_version=no
9345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9346   soname_spec='${libname}${release}${shared_ext}$major'
9347   shlibpath_var=LD_LIBRARY_PATH
9348   shlibpath_overrides_runpath=no
9349   hardcode_into_libs=yes
9350   dynamic_linker='NetBSD ld.elf_so'
9351   ;;
9352
9353 netbsd*)
9354   version_type=sunos
9355   need_lib_prefix=no
9356   need_version=no
9357   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9358     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9359     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9360     dynamic_linker='NetBSD (a.out) ld.so'
9361   else
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     dynamic_linker='NetBSD ld.elf_so'
9365   fi
9366   shlibpath_var=LD_LIBRARY_PATH
9367   shlibpath_overrides_runpath=yes
9368   hardcode_into_libs=yes
9369   ;;
9370
9371 newsos6)
9372   version_type=linux
9373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374   shlibpath_var=LD_LIBRARY_PATH
9375   shlibpath_overrides_runpath=yes
9376   ;;
9377
9378 nto-qnx*)
9379   version_type=linux
9380   need_lib_prefix=no
9381   need_version=no
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383   soname_spec='${libname}${release}${shared_ext}$major'
9384   shlibpath_var=LD_LIBRARY_PATH
9385   shlibpath_overrides_runpath=yes
9386   ;;
9387
9388 openbsd*)
9389   version_type=sunos
9390   sys_lib_dlsearch_path_spec="/usr/lib"
9391   need_lib_prefix=no
9392   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9393   case $host_os in
9394     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9395     *)                         need_version=no  ;;
9396   esac
9397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9398   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9399   shlibpath_var=LD_LIBRARY_PATH
9400   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9401     case $host_os in
9402       openbsd2.[89] | openbsd2.[89].*)
9403         shlibpath_overrides_runpath=no
9404         ;;
9405       *)
9406         shlibpath_overrides_runpath=yes
9407         ;;
9408       esac
9409   else
9410     shlibpath_overrides_runpath=yes
9411   fi
9412   ;;
9413
9414 os2*)
9415   libname_spec='$name'
9416   shrext_cmds=".dll"
9417   need_lib_prefix=no
9418   library_names_spec='$libname${shared_ext} $libname.a'
9419   dynamic_linker='OS/2 ld.exe'
9420   shlibpath_var=LIBPATH
9421   ;;
9422
9423 osf3* | osf4* | osf5*)
9424   version_type=osf
9425   need_lib_prefix=no
9426   need_version=no
9427   soname_spec='${libname}${release}${shared_ext}$major'
9428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429   shlibpath_var=LD_LIBRARY_PATH
9430   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9431   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9432   ;;
9433
9434 rdos*)
9435   dynamic_linker=no
9436   ;;
9437
9438 solaris*)
9439   version_type=linux
9440   need_lib_prefix=no
9441   need_version=no
9442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443   soname_spec='${libname}${release}${shared_ext}$major'
9444   shlibpath_var=LD_LIBRARY_PATH
9445   shlibpath_overrides_runpath=yes
9446   hardcode_into_libs=yes
9447   # ldd complains unless libraries are executable
9448   postinstall_cmds='chmod +x $lib'
9449   ;;
9450
9451 sunos4*)
9452   version_type=sunos
9453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9454   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9455   shlibpath_var=LD_LIBRARY_PATH
9456   shlibpath_overrides_runpath=yes
9457   if test "$with_gnu_ld" = yes; then
9458     need_lib_prefix=no
9459   fi
9460   need_version=yes
9461   ;;
9462
9463 sysv4 | sysv4.3*)
9464   version_type=linux
9465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466   soname_spec='${libname}${release}${shared_ext}$major'
9467   shlibpath_var=LD_LIBRARY_PATH
9468   case $host_vendor in
9469     sni)
9470       shlibpath_overrides_runpath=no
9471       need_lib_prefix=no
9472       export_dynamic_flag_spec='${wl}-Blargedynsym'
9473       runpath_var=LD_RUN_PATH
9474       ;;
9475     siemens)
9476       need_lib_prefix=no
9477       ;;
9478     motorola)
9479       need_lib_prefix=no
9480       need_version=no
9481       shlibpath_overrides_runpath=no
9482       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9483       ;;
9484   esac
9485   ;;
9486
9487 sysv4*MP*)
9488   if test -d /usr/nec ;then
9489     version_type=linux
9490     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9491     soname_spec='$libname${shared_ext}.$major'
9492     shlibpath_var=LD_LIBRARY_PATH
9493   fi
9494   ;;
9495
9496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9497   version_type=freebsd-elf
9498   need_lib_prefix=no
9499   need_version=no
9500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9501   soname_spec='${libname}${release}${shared_ext}$major'
9502   shlibpath_var=LD_LIBRARY_PATH
9503   hardcode_into_libs=yes
9504   if test "$with_gnu_ld" = yes; then
9505     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9506     shlibpath_overrides_runpath=no
9507   else
9508     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9509     shlibpath_overrides_runpath=yes
9510     case $host_os in
9511       sco3.2v5*)
9512         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9513         ;;
9514     esac
9515   fi
9516   sys_lib_dlsearch_path_spec='/usr/lib'
9517   ;;
9518
9519 uts4*)
9520   version_type=linux
9521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522   soname_spec='${libname}${release}${shared_ext}$major'
9523   shlibpath_var=LD_LIBRARY_PATH
9524   ;;
9525
9526 *)
9527   dynamic_linker=no
9528   ;;
9529 esac
9530 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9531 echo "${ECHO_T}$dynamic_linker" >&6; }
9532 test "$dynamic_linker" = no && can_build_shared=no
9533
9534 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9535   echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9538 fi
9539
9540 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9541 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9542   echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9545 fi
9546
9547 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9548
9549 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9550 if test "$GCC" = yes; then
9551   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9552 fi
9553
9554 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9555 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9556 hardcode_action=
9557 if test -n "$hardcode_libdir_flag_spec" || \
9558    test -n "$runpath_var" || \
9559    test "X$hardcode_automatic" = "Xyes" ; then
9560
9561   # We can hardcode non-existant directories.
9562   if test "$hardcode_direct" != no &&
9563      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9564      # have to relink, otherwise we might link with an installed library
9565      # when we should be linking with a yet-to-be-installed one
9566      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9567      test "$hardcode_minus_L" != no; then
9568     # Linking always hardcodes the temporary library directory.
9569     hardcode_action=relink
9570   else
9571     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9572     hardcode_action=immediate
9573   fi
9574 else
9575   # We cannot hardcode anything, or else we can only hardcode existing
9576   # directories.
9577   hardcode_action=unsupported
9578 fi
9579 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9580 echo "${ECHO_T}$hardcode_action" >&6; }
9581
9582 if test "$hardcode_action" = relink; then
9583   # Fast installation is not supported
9584   enable_fast_install=no
9585 elif test "$shlibpath_overrides_runpath" = yes ||
9586      test "$enable_shared" = no; then
9587   # Fast installation is not necessary
9588   enable_fast_install=needless
9589 fi
9590
9591 striplib=
9592 old_striplib=
9593 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9594 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9595 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9596   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9597   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9598   { echo "$as_me:$LINENO: result: yes" >&5
9599 echo "${ECHO_T}yes" >&6; }
9600 else
9601 # FIXME - insert some real tests, host_os isn't really good enough
9602   case $host_os in
9603    darwin*)
9604        if test -n "$STRIP" ; then
9605          striplib="$STRIP -x"
9606          old_striplib="$STRIP -S"
9607          { echo "$as_me:$LINENO: result: yes" >&5
9608 echo "${ECHO_T}yes" >&6; }
9609        else
9610   { echo "$as_me:$LINENO: result: no" >&5
9611 echo "${ECHO_T}no" >&6; }
9612 fi
9613        ;;
9614    *)
9615   { echo "$as_me:$LINENO: result: no" >&5
9616 echo "${ECHO_T}no" >&6; }
9617     ;;
9618   esac
9619 fi
9620
9621 if test "x$enable_dlopen" != xyes; then
9622   enable_dlopen=unknown
9623   enable_dlopen_self=unknown
9624   enable_dlopen_self_static=unknown
9625 else
9626   lt_cv_dlopen=no
9627   lt_cv_dlopen_libs=
9628
9629   case $host_os in
9630   beos*)
9631     lt_cv_dlopen="load_add_on"
9632     lt_cv_dlopen_libs=
9633     lt_cv_dlopen_self=yes
9634     ;;
9635
9636   mingw* | pw32*)
9637     lt_cv_dlopen="LoadLibrary"
9638     lt_cv_dlopen_libs=
9639    ;;
9640
9641   cygwin*)
9642     lt_cv_dlopen="dlopen"
9643     lt_cv_dlopen_libs=
9644    ;;
9645
9646   darwin*)
9647   # if libdl is installed we need to link against it
9648     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9649 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9650 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   ac_check_lib_save_LIBS=$LIBS
9654 LIBS="-ldl  $LIBS"
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h.  */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h.  */
9661
9662 /* Override any GCC internal prototype to avoid an error.
9663    Use char because int might match the return type of a GCC
9664    builtin and then its argument prototype would still apply.  */
9665 #ifdef __cplusplus
9666 extern "C"
9667 #endif
9668 char dlopen ();
9669 int
9670 main ()
9671 {
9672 return dlopen ();
9673   ;
9674   return 0;
9675 }
9676 _ACEOF
9677 rm -f conftest.$ac_objext conftest$ac_exeext
9678 if { (ac_try="$ac_link"
9679 case "(($ac_try" in
9680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681   *) ac_try_echo=$ac_try;;
9682 esac
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684   (eval "$ac_link") 2>conftest.er1
9685   ac_status=$?
9686   grep -v '^ *+' conftest.er1 >conftest.err
9687   rm -f conftest.er1
9688   cat conftest.err >&5
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } && {
9691          test -z "$ac_c_werror_flag" ||
9692          test ! -s conftest.err
9693        } && test -s conftest$ac_exeext &&
9694        $as_test_x conftest$ac_exeext; then
9695   ac_cv_lib_dl_dlopen=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700         ac_cv_lib_dl_dlopen=no
9701 fi
9702
9703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9704       conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9706 fi
9707 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9708 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9709 if test $ac_cv_lib_dl_dlopen = yes; then
9710   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9711 else
9712
9713     lt_cv_dlopen="dyld"
9714     lt_cv_dlopen_libs=
9715     lt_cv_dlopen_self=yes
9716
9717 fi
9718
9719    ;;
9720
9721   *)
9722     { echo "$as_me:$LINENO: checking for shl_load" >&5
9723 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9724 if test "${ac_cv_func_shl_load+set}" = set; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9735 #define shl_load innocuous_shl_load
9736
9737 /* System header to define __stub macros and hopefully few prototypes,
9738     which can conflict with char shl_load (); below.
9739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740     <limits.h> exists even on freestanding compilers.  */
9741
9742 #ifdef __STDC__
9743 # include <limits.h>
9744 #else
9745 # include <assert.h>
9746 #endif
9747
9748 #undef shl_load
9749
9750 /* Override any GCC internal prototype to avoid an error.
9751    Use char because int might match the return type of a GCC
9752    builtin and then its argument prototype would still apply.  */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 char shl_load ();
9757 /* The GNU C library defines this for functions which it implements
9758     to always fail with ENOSYS.  Some functions are actually named
9759     something starting with __ and the normal name is an alias.  */
9760 #if defined __stub_shl_load || defined __stub___shl_load
9761 choke me
9762 #endif
9763
9764 int
9765 main ()
9766 {
9767 return shl_load ();
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9774 case "(($ac_try" in
9775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776   *) ac_try_echo=$ac_try;;
9777 esac
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779   (eval "$ac_link") 2>conftest.er1
9780   ac_status=$?
9781   grep -v '^ *+' conftest.er1 >conftest.err
9782   rm -f conftest.er1
9783   cat conftest.err >&5
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } && {
9786          test -z "$ac_c_werror_flag" ||
9787          test ! -s conftest.err
9788        } && test -s conftest$ac_exeext &&
9789        $as_test_x conftest$ac_exeext; then
9790   ac_cv_func_shl_load=yes
9791 else
9792   echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9794
9795         ac_cv_func_shl_load=no
9796 fi
9797
9798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9799       conftest$ac_exeext conftest.$ac_ext
9800 fi
9801 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9802 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9803 if test $ac_cv_func_shl_load = yes; then
9804   lt_cv_dlopen="shl_load"
9805 else
9806   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9807 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9808 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9809   echo $ECHO_N "(cached) $ECHO_C" >&6
9810 else
9811   ac_check_lib_save_LIBS=$LIBS
9812 LIBS="-ldld  $LIBS"
9813 cat >conftest.$ac_ext <<_ACEOF
9814 /* confdefs.h.  */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h.  */
9819
9820 /* Override any GCC internal prototype to avoid an error.
9821    Use char because int might match the return type of a GCC
9822    builtin and then its argument prototype would still apply.  */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 char shl_load ();
9827 int
9828 main ()
9829 {
9830 return shl_load ();
9831   ;
9832   return 0;
9833 }
9834 _ACEOF
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9837 case "(($ac_try" in
9838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839   *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842   (eval "$ac_link") 2>conftest.er1
9843   ac_status=$?
9844   grep -v '^ *+' conftest.er1 >conftest.err
9845   rm -f conftest.er1
9846   cat conftest.err >&5
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); } && {
9849          test -z "$ac_c_werror_flag" ||
9850          test ! -s conftest.err
9851        } && test -s conftest$ac_exeext &&
9852        $as_test_x conftest$ac_exeext; then
9853   ac_cv_lib_dld_shl_load=yes
9854 else
9855   echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858         ac_cv_lib_dld_shl_load=no
9859 fi
9860
9861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9862       conftest$ac_exeext conftest.$ac_ext
9863 LIBS=$ac_check_lib_save_LIBS
9864 fi
9865 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9866 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9867 if test $ac_cv_lib_dld_shl_load = yes; then
9868   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9869 else
9870   { echo "$as_me:$LINENO: checking for dlopen" >&5
9871 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9872 if test "${ac_cv_func_dlopen+set}" = set; then
9873   echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875   cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h.  */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h.  */
9881 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9883 #define dlopen innocuous_dlopen
9884
9885 /* System header to define __stub macros and hopefully few prototypes,
9886     which can conflict with char dlopen (); below.
9887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9888     <limits.h> exists even on freestanding compilers.  */
9889
9890 #ifdef __STDC__
9891 # include <limits.h>
9892 #else
9893 # include <assert.h>
9894 #endif
9895
9896 #undef dlopen
9897
9898 /* Override any GCC internal prototype to avoid an error.
9899    Use char because int might match the return type of a GCC
9900    builtin and then its argument prototype would still apply.  */
9901 #ifdef __cplusplus
9902 extern "C"
9903 #endif
9904 char dlopen ();
9905 /* The GNU C library defines this for functions which it implements
9906     to always fail with ENOSYS.  Some functions are actually named
9907     something starting with __ and the normal name is an alias.  */
9908 #if defined __stub_dlopen || defined __stub___dlopen
9909 choke me
9910 #endif
9911
9912 int
9913 main ()
9914 {
9915 return dlopen ();
9916   ;
9917   return 0;
9918 }
9919 _ACEOF
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (ac_try="$ac_link"
9922 case "(($ac_try" in
9923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924   *) ac_try_echo=$ac_try;;
9925 esac
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927   (eval "$ac_link") 2>conftest.er1
9928   ac_status=$?
9929   grep -v '^ *+' conftest.er1 >conftest.err
9930   rm -f conftest.er1
9931   cat conftest.err >&5
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } && {
9934          test -z "$ac_c_werror_flag" ||
9935          test ! -s conftest.err
9936        } && test -s conftest$ac_exeext &&
9937        $as_test_x conftest$ac_exeext; then
9938   ac_cv_func_dlopen=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943         ac_cv_func_dlopen=no
9944 fi
9945
9946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9947       conftest$ac_exeext conftest.$ac_ext
9948 fi
9949 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9950 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9951 if test $ac_cv_func_dlopen = yes; then
9952   lt_cv_dlopen="dlopen"
9953 else
9954   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9955 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9956 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9957   echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959   ac_check_lib_save_LIBS=$LIBS
9960 LIBS="-ldl  $LIBS"
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967
9968 /* Override any GCC internal prototype to avoid an error.
9969    Use char because int might match the return type of a GCC
9970    builtin and then its argument prototype would still apply.  */
9971 #ifdef __cplusplus
9972 extern "C"
9973 #endif
9974 char dlopen ();
9975 int
9976 main ()
9977 {
9978 return dlopen ();
9979   ;
9980   return 0;
9981 }
9982 _ACEOF
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (ac_try="$ac_link"
9985 case "(($ac_try" in
9986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987   *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990   (eval "$ac_link") 2>conftest.er1
9991   ac_status=$?
9992   grep -v '^ *+' conftest.er1 >conftest.err
9993   rm -f conftest.er1
9994   cat conftest.err >&5
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); } && {
9997          test -z "$ac_c_werror_flag" ||
9998          test ! -s conftest.err
9999        } && test -s conftest$ac_exeext &&
10000        $as_test_x conftest$ac_exeext; then
10001   ac_cv_lib_dl_dlopen=yes
10002 else
10003   echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006         ac_cv_lib_dl_dlopen=no
10007 fi
10008
10009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10010       conftest$ac_exeext conftest.$ac_ext
10011 LIBS=$ac_check_lib_save_LIBS
10012 fi
10013 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10014 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10015 if test $ac_cv_lib_dl_dlopen = yes; then
10016   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10017 else
10018   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10019 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10020 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023   ac_check_lib_save_LIBS=$LIBS
10024 LIBS="-lsvld  $LIBS"
10025 cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h.  */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h.  */
10031
10032 /* Override any GCC internal prototype to avoid an error.
10033    Use char because int might match the return type of a GCC
10034    builtin and then its argument prototype would still apply.  */
10035 #ifdef __cplusplus
10036 extern "C"
10037 #endif
10038 char dlopen ();
10039 int
10040 main ()
10041 {
10042 return dlopen ();
10043   ;
10044   return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051   *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054   (eval "$ac_link") 2>conftest.er1
10055   ac_status=$?
10056   grep -v '^ *+' conftest.er1 >conftest.err
10057   rm -f conftest.er1
10058   cat conftest.err >&5
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } && {
10061          test -z "$ac_c_werror_flag" ||
10062          test ! -s conftest.err
10063        } && test -s conftest$ac_exeext &&
10064        $as_test_x conftest$ac_exeext; then
10065   ac_cv_lib_svld_dlopen=yes
10066 else
10067   echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070         ac_cv_lib_svld_dlopen=no
10071 fi
10072
10073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10074       conftest$ac_exeext conftest.$ac_ext
10075 LIBS=$ac_check_lib_save_LIBS
10076 fi
10077 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10078 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10079 if test $ac_cv_lib_svld_dlopen = yes; then
10080   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10081 else
10082   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10083 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10084 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10085   echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087   ac_check_lib_save_LIBS=$LIBS
10088 LIBS="-ldld  $LIBS"
10089 cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095
10096 /* Override any GCC internal prototype to avoid an error.
10097    Use char because int might match the return type of a GCC
10098    builtin and then its argument prototype would still apply.  */
10099 #ifdef __cplusplus
10100 extern "C"
10101 #endif
10102 char dld_link ();
10103 int
10104 main ()
10105 {
10106 return dld_link ();
10107   ;
10108   return 0;
10109 }
10110 _ACEOF
10111 rm -f conftest.$ac_objext conftest$ac_exeext
10112 if { (ac_try="$ac_link"
10113 case "(($ac_try" in
10114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115   *) ac_try_echo=$ac_try;;
10116 esac
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118   (eval "$ac_link") 2>conftest.er1
10119   ac_status=$?
10120   grep -v '^ *+' conftest.er1 >conftest.err
10121   rm -f conftest.er1
10122   cat conftest.err >&5
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); } && {
10125          test -z "$ac_c_werror_flag" ||
10126          test ! -s conftest.err
10127        } && test -s conftest$ac_exeext &&
10128        $as_test_x conftest$ac_exeext; then
10129   ac_cv_lib_dld_dld_link=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134         ac_cv_lib_dld_dld_link=no
10135 fi
10136
10137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10138       conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10140 fi
10141 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10142 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10143 if test $ac_cv_lib_dld_dld_link = yes; then
10144   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10145 fi
10146
10147
10148 fi
10149
10150
10151 fi
10152
10153
10154 fi
10155
10156
10157 fi
10158
10159
10160 fi
10161
10162     ;;
10163   esac
10164
10165   if test "x$lt_cv_dlopen" != xno; then
10166     enable_dlopen=yes
10167   else
10168     enable_dlopen=no
10169   fi
10170
10171   case $lt_cv_dlopen in
10172   dlopen)
10173     save_CPPFLAGS="$CPPFLAGS"
10174     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10175
10176     save_LDFLAGS="$LDFLAGS"
10177     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10178
10179     save_LIBS="$LIBS"
10180     LIBS="$lt_cv_dlopen_libs $LIBS"
10181
10182     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10183 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10184 if test "${lt_cv_dlopen_self+set}" = set; then
10185   echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187           if test "$cross_compiling" = yes; then :
10188   lt_cv_dlopen_self=cross
10189 else
10190   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10191   lt_status=$lt_dlunknown
10192   cat > conftest.$ac_ext <<EOF
10193 #line 10193 "configure"
10194 #include "confdefs.h"
10195
10196 #if HAVE_DLFCN_H
10197 #include <dlfcn.h>
10198 #endif
10199
10200 #include <stdio.h>
10201
10202 #ifdef RTLD_GLOBAL
10203 #  define LT_DLGLOBAL           RTLD_GLOBAL
10204 #else
10205 #  ifdef DL_GLOBAL
10206 #    define LT_DLGLOBAL         DL_GLOBAL
10207 #  else
10208 #    define LT_DLGLOBAL         0
10209 #  endif
10210 #endif
10211
10212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10213    find out it does not work in some platform. */
10214 #ifndef LT_DLLAZY_OR_NOW
10215 #  ifdef RTLD_LAZY
10216 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10217 #  else
10218 #    ifdef DL_LAZY
10219 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10220 #    else
10221 #      ifdef RTLD_NOW
10222 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10223 #      else
10224 #        ifdef DL_NOW
10225 #          define LT_DLLAZY_OR_NOW      DL_NOW
10226 #        else
10227 #          define LT_DLLAZY_OR_NOW      0
10228 #        endif
10229 #      endif
10230 #    endif
10231 #  endif
10232 #endif
10233
10234 #ifdef __cplusplus
10235 extern "C" void exit (int);
10236 #endif
10237
10238 void fnord() { int i=42;}
10239 int main ()
10240 {
10241   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10242   int status = $lt_dlunknown;
10243
10244   if (self)
10245     {
10246       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10247       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10248       /* dlclose (self); */
10249     }
10250   else
10251     puts (dlerror ());
10252
10253     exit (status);
10254 }
10255 EOF
10256   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10257   (eval $ac_link) 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10261     (./conftest; exit; ) >&5 2>/dev/null
10262     lt_status=$?
10263     case x$lt_status in
10264       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10265       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10266       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10267     esac
10268   else :
10269     # compilation failed
10270     lt_cv_dlopen_self=no
10271   fi
10272 fi
10273 rm -fr conftest*
10274
10275
10276 fi
10277 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10278 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10279
10280     if test "x$lt_cv_dlopen_self" = xyes; then
10281       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10282       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10283 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10284 if test "${lt_cv_dlopen_self_static+set}" = set; then
10285   echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10287           if test "$cross_compiling" = yes; then :
10288   lt_cv_dlopen_self_static=cross
10289 else
10290   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10291   lt_status=$lt_dlunknown
10292   cat > conftest.$ac_ext <<EOF
10293 #line 10293 "configure"
10294 #include "confdefs.h"
10295
10296 #if HAVE_DLFCN_H
10297 #include <dlfcn.h>
10298 #endif
10299
10300 #include <stdio.h>
10301
10302 #ifdef RTLD_GLOBAL
10303 #  define LT_DLGLOBAL           RTLD_GLOBAL
10304 #else
10305 #  ifdef DL_GLOBAL
10306 #    define LT_DLGLOBAL         DL_GLOBAL
10307 #  else
10308 #    define LT_DLGLOBAL         0
10309 #  endif
10310 #endif
10311
10312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10313    find out it does not work in some platform. */
10314 #ifndef LT_DLLAZY_OR_NOW
10315 #  ifdef RTLD_LAZY
10316 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10317 #  else
10318 #    ifdef DL_LAZY
10319 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10320 #    else
10321 #      ifdef RTLD_NOW
10322 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10323 #      else
10324 #        ifdef DL_NOW
10325 #          define LT_DLLAZY_OR_NOW      DL_NOW
10326 #        else
10327 #          define LT_DLLAZY_OR_NOW      0
10328 #        endif
10329 #      endif
10330 #    endif
10331 #  endif
10332 #endif
10333
10334 #ifdef __cplusplus
10335 extern "C" void exit (int);
10336 #endif
10337
10338 void fnord() { int i=42;}
10339 int main ()
10340 {
10341   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10342   int status = $lt_dlunknown;
10343
10344   if (self)
10345     {
10346       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10347       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10348       /* dlclose (self); */
10349     }
10350   else
10351     puts (dlerror ());
10352
10353     exit (status);
10354 }
10355 EOF
10356   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357   (eval $ac_link) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10361     (./conftest; exit; ) >&5 2>/dev/null
10362     lt_status=$?
10363     case x$lt_status in
10364       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10365       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10366       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10367     esac
10368   else :
10369     # compilation failed
10370     lt_cv_dlopen_self_static=no
10371   fi
10372 fi
10373 rm -fr conftest*
10374
10375
10376 fi
10377 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10378 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10379     fi
10380
10381     CPPFLAGS="$save_CPPFLAGS"
10382     LDFLAGS="$save_LDFLAGS"
10383     LIBS="$save_LIBS"
10384     ;;
10385   esac
10386
10387   case $lt_cv_dlopen_self in
10388   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10389   *) enable_dlopen_self=unknown ;;
10390   esac
10391
10392   case $lt_cv_dlopen_self_static in
10393   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10394   *) enable_dlopen_self_static=unknown ;;
10395   esac
10396 fi
10397
10398
10399 # Report which library types will actually be built
10400 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10401 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10402 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10403 echo "${ECHO_T}$can_build_shared" >&6; }
10404
10405 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10406 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10407 test "$can_build_shared" = "no" && enable_shared=no
10408
10409 # On AIX, shared libraries and static libraries use the same namespace, and
10410 # are all built from PIC.
10411 case $host_os in
10412 aix3*)
10413   test "$enable_shared" = yes && enable_static=no
10414   if test -n "$RANLIB"; then
10415     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10416     postinstall_cmds='$RANLIB $lib'
10417   fi
10418   ;;
10419
10420 aix[4-9]*)
10421   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10422     test "$enable_shared" = yes && enable_static=no
10423   fi
10424     ;;
10425 esac
10426 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10427 echo "${ECHO_T}$enable_shared" >&6; }
10428
10429 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10430 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10431 # Make sure either enable_shared or enable_static is yes.
10432 test "$enable_shared" = yes || enable_static=yes
10433 { echo "$as_me:$LINENO: result: $enable_static" >&5
10434 echo "${ECHO_T}$enable_static" >&6; }
10435
10436 # The else clause should only fire when bootstrapping the
10437 # libtool distribution, otherwise you forgot to ship ltmain.sh
10438 # with your package, and you will get complaints that there are
10439 # no rules to generate ltmain.sh.
10440 if test -f "$ltmain"; then
10441   # See if we are running on zsh, and set the options which allow our commands through
10442   # without removal of \ escapes.
10443   if test -n "${ZSH_VERSION+set}" ; then
10444     setopt NO_GLOB_SUBST
10445   fi
10446   # Now quote all the things that may contain metacharacters while being
10447   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10448   # variables and quote the copies for generation of the libtool script.
10449   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10450     SED SHELL STRIP \
10451     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10452     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10453     deplibs_check_method reload_flag reload_cmds need_locks \
10454     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10455     lt_cv_sys_global_symbol_to_c_name_address \
10456     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10457     old_postinstall_cmds old_postuninstall_cmds \
10458     compiler \
10459     CC \
10460     LD \
10461     lt_prog_compiler_wl \
10462     lt_prog_compiler_pic \
10463     lt_prog_compiler_static \
10464     lt_prog_compiler_no_builtin_flag \
10465     export_dynamic_flag_spec \
10466     thread_safe_flag_spec \
10467     whole_archive_flag_spec \
10468     enable_shared_with_static_runtimes \
10469     old_archive_cmds \
10470     old_archive_from_new_cmds \
10471     predep_objects \
10472     postdep_objects \
10473     predeps \
10474     postdeps \
10475     compiler_lib_search_path \
10476     compiler_lib_search_dirs \
10477     archive_cmds \
10478     archive_expsym_cmds \
10479     postinstall_cmds \
10480     postuninstall_cmds \
10481     old_archive_from_expsyms_cmds \
10482     allow_undefined_flag \
10483     no_undefined_flag \
10484     export_symbols_cmds \
10485     hardcode_libdir_flag_spec \
10486     hardcode_libdir_flag_spec_ld \
10487     hardcode_libdir_separator \
10488     hardcode_automatic \
10489     module_cmds \
10490     module_expsym_cmds \
10491     lt_cv_prog_compiler_c_o \
10492     fix_srcfile_path \
10493     exclude_expsyms \
10494     include_expsyms; do
10495
10496     case $var in
10497     old_archive_cmds | \
10498     old_archive_from_new_cmds | \
10499     archive_cmds | \
10500     archive_expsym_cmds | \
10501     module_cmds | \
10502     module_expsym_cmds | \
10503     old_archive_from_expsyms_cmds | \
10504     export_symbols_cmds | \
10505     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10506     postinstall_cmds | postuninstall_cmds | \
10507     old_postinstall_cmds | old_postuninstall_cmds | \
10508     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10509       # Double-quote double-evaled strings.
10510       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10511       ;;
10512     *)
10513       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10514       ;;
10515     esac
10516   done
10517
10518   case $lt_echo in
10519   *'\$0 --fallback-echo"')
10520     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10521     ;;
10522   esac
10523
10524 cfgfile="${ofile}T"
10525   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10526   $rm -f "$cfgfile"
10527   { echo "$as_me:$LINENO: creating $ofile" >&5
10528 echo "$as_me: creating $ofile" >&6;}
10529
10530   cat <<__EOF__ >> "$cfgfile"
10531 #! $SHELL
10532
10533 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10534 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10535 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10536 #
10537 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10538 # Free Software Foundation, Inc.
10539 #
10540 # This file is part of GNU Libtool:
10541 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10542 #
10543 # This program is free software; you can redistribute it and/or modify
10544 # it under the terms of the GNU General Public License as published by
10545 # the Free Software Foundation; either version 2 of the License, or
10546 # (at your option) any later version.
10547 #
10548 # This program is distributed in the hope that it will be useful, but
10549 # WITHOUT ANY WARRANTY; without even the implied warranty of
10550 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10551 # General Public License for more details.
10552 #
10553 # You should have received a copy of the GNU General Public License
10554 # along with this program; if not, write to the Free Software
10555 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10556 #
10557 # As a special exception to the GNU General Public License, if you
10558 # distribute this file as part of a program that contains a
10559 # configuration script generated by Autoconf, you may include it under
10560 # the same distribution terms that you use for the rest of that program.
10561
10562 # A sed program that does not truncate output.
10563 SED=$lt_SED
10564
10565 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10566 Xsed="$SED -e 1s/^X//"
10567
10568 # The HP-UX ksh and POSIX shell print the target directory to stdout
10569 # if CDPATH is set.
10570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10571
10572 # The names of the tagged configurations supported by this script.
10573 available_tags=
10574
10575 # ### BEGIN LIBTOOL CONFIG
10576
10577 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10578
10579 # Shell to use when invoking shell scripts.
10580 SHELL=$lt_SHELL
10581
10582 # Whether or not to build shared libraries.
10583 build_libtool_libs=$enable_shared
10584
10585 # Whether or not to build static libraries.
10586 build_old_libs=$enable_static
10587
10588 # Whether or not to add -lc for building shared libraries.
10589 build_libtool_need_lc=$archive_cmds_need_lc
10590
10591 # Whether or not to disallow shared libs when runtime libs are static
10592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10593
10594 # Whether or not to optimize for fast installation.
10595 fast_install=$enable_fast_install
10596
10597 # The host system.
10598 host_alias=$host_alias
10599 host=$host
10600 host_os=$host_os
10601
10602 # The build system.
10603 build_alias=$build_alias
10604 build=$build
10605 build_os=$build_os
10606
10607 # An echo program that does not interpret backslashes.
10608 echo=$lt_echo
10609
10610 # The archiver.
10611 AR=$lt_AR
10612 AR_FLAGS=$lt_AR_FLAGS
10613
10614 # A C compiler.
10615 LTCC=$lt_LTCC
10616
10617 # LTCC compiler flags.
10618 LTCFLAGS=$lt_LTCFLAGS
10619
10620 # A language-specific compiler.
10621 CC=$lt_compiler
10622
10623 # Is the compiler the GNU C compiler?
10624 with_gcc=$GCC
10625
10626 # An ERE matcher.
10627 EGREP=$lt_EGREP
10628
10629 # The linker used to build libraries.
10630 LD=$lt_LD
10631
10632 # Whether we need hard or soft links.
10633 LN_S=$lt_LN_S
10634
10635 # A BSD-compatible nm program.
10636 NM=$lt_NM
10637
10638 # A symbol stripping program
10639 STRIP=$lt_STRIP
10640
10641 # Used to examine libraries when file_magic_cmd begins "file"
10642 MAGIC_CMD=$MAGIC_CMD
10643
10644 # Used on cygwin: DLL creation program.
10645 DLLTOOL="$DLLTOOL"
10646
10647 # Used on cygwin: object dumper.
10648 OBJDUMP="$OBJDUMP"
10649
10650 # Used on cygwin: assembler.
10651 AS="$AS"
10652
10653 # The name of the directory that contains temporary libtool files.
10654 objdir=$objdir
10655
10656 # How to create reloadable object files.
10657 reload_flag=$lt_reload_flag
10658 reload_cmds=$lt_reload_cmds
10659
10660 # How to pass a linker flag through the compiler.
10661 wl=$lt_lt_prog_compiler_wl
10662
10663 # Object file suffix (normally "o").
10664 objext="$ac_objext"
10665
10666 # Old archive suffix (normally "a").
10667 libext="$libext"
10668
10669 # Shared library suffix (normally ".so").
10670 shrext_cmds='$shrext_cmds'
10671
10672 # Executable file suffix (normally "").
10673 exeext="$exeext"
10674
10675 # Additional compiler flags for building library objects.
10676 pic_flag=$lt_lt_prog_compiler_pic
10677 pic_mode=$pic_mode
10678
10679 # What is the maximum length of a command?
10680 max_cmd_len=$lt_cv_sys_max_cmd_len
10681
10682 # Does compiler simultaneously support -c and -o options?
10683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10684
10685 # Must we lock files when doing compilation?
10686 need_locks=$lt_need_locks
10687
10688 # Do we need the lib prefix for modules?
10689 need_lib_prefix=$need_lib_prefix
10690
10691 # Do we need a version for libraries?
10692 need_version=$need_version
10693
10694 # Whether dlopen is supported.
10695 dlopen_support=$enable_dlopen
10696
10697 # Whether dlopen of programs is supported.
10698 dlopen_self=$enable_dlopen_self
10699
10700 # Whether dlopen of statically linked programs is supported.
10701 dlopen_self_static=$enable_dlopen_self_static
10702
10703 # Compiler flag to prevent dynamic linking.
10704 link_static_flag=$lt_lt_prog_compiler_static
10705
10706 # Compiler flag to turn off builtin functions.
10707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10708
10709 # Compiler flag to allow reflexive dlopens.
10710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10711
10712 # Compiler flag to generate shared objects directly from archives.
10713 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10714
10715 # Compiler flag to generate thread-safe objects.
10716 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10717
10718 # Library versioning type.
10719 version_type=$version_type
10720
10721 # Format of library name prefix.
10722 libname_spec=$lt_libname_spec
10723
10724 # List of archive names.  First name is the real one, the rest are links.
10725 # The last name is the one that the linker finds with -lNAME.
10726 library_names_spec=$lt_library_names_spec
10727
10728 # The coded name of the library, if different from the real name.
10729 soname_spec=$lt_soname_spec
10730
10731 # Commands used to build and install an old-style archive.
10732 RANLIB=$lt_RANLIB
10733 old_archive_cmds=$lt_old_archive_cmds
10734 old_postinstall_cmds=$lt_old_postinstall_cmds
10735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10736
10737 # Create an old-style archive from a shared archive.
10738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10739
10740 # Create a temporary old-style archive to link instead of a shared archive.
10741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10742
10743 # Commands used to build and install a shared archive.
10744 archive_cmds=$lt_archive_cmds
10745 archive_expsym_cmds=$lt_archive_expsym_cmds
10746 postinstall_cmds=$lt_postinstall_cmds
10747 postuninstall_cmds=$lt_postuninstall_cmds
10748
10749 # Commands used to build a loadable module (assumed same as above if empty)
10750 module_cmds=$lt_module_cmds
10751 module_expsym_cmds=$lt_module_expsym_cmds
10752
10753 # Commands to strip libraries.
10754 old_striplib=$lt_old_striplib
10755 striplib=$lt_striplib
10756
10757 # Dependencies to place before the objects being linked to create a
10758 # shared library.
10759 predep_objects=$lt_predep_objects
10760
10761 # Dependencies to place after the objects being linked to create a
10762 # shared library.
10763 postdep_objects=$lt_postdep_objects
10764
10765 # Dependencies to place before the objects being linked to create a
10766 # shared library.
10767 predeps=$lt_predeps
10768
10769 # Dependencies to place after the objects being linked to create a
10770 # shared library.
10771 postdeps=$lt_postdeps
10772
10773 # The directories searched by this compiler when creating a shared
10774 # library
10775 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10776
10777 # The library search path used internally by the compiler when linking
10778 # a shared library.
10779 compiler_lib_search_path=$lt_compiler_lib_search_path
10780
10781 # Method to check whether dependent libraries are shared objects.
10782 deplibs_check_method=$lt_deplibs_check_method
10783
10784 # Command to use when deplibs_check_method == file_magic.
10785 file_magic_cmd=$lt_file_magic_cmd
10786
10787 # Flag that allows shared libraries with undefined symbols to be built.
10788 allow_undefined_flag=$lt_allow_undefined_flag
10789
10790 # Flag that forces no undefined symbols.
10791 no_undefined_flag=$lt_no_undefined_flag
10792
10793 # Commands used to finish a libtool library installation in a directory.
10794 finish_cmds=$lt_finish_cmds
10795
10796 # Same as above, but a single script fragment to be evaled but not shown.
10797 finish_eval=$lt_finish_eval
10798
10799 # Take the output of nm and produce a listing of raw symbols and C names.
10800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10801
10802 # Transform the output of nm in a proper C declaration
10803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10804
10805 # Transform the output of nm in a C name address pair
10806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10807
10808 # This is the shared library runtime path variable.
10809 runpath_var=$runpath_var
10810
10811 # This is the shared library path variable.
10812 shlibpath_var=$shlibpath_var
10813
10814 # Is shlibpath searched before the hard-coded library search path?
10815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10816
10817 # How to hardcode a shared library path into an executable.
10818 hardcode_action=$hardcode_action
10819
10820 # Whether we should hardcode library paths into libraries.
10821 hardcode_into_libs=$hardcode_into_libs
10822
10823 # Flag to hardcode \$libdir into a binary during linking.
10824 # This must work even if \$libdir does not exist.
10825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10826
10827 # If ld is used when linking, flag to hardcode \$libdir into
10828 # a binary during linking. This must work even if \$libdir does
10829 # not exist.
10830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10831
10832 # Whether we need a single -rpath flag with a separated argument.
10833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10834
10835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10836 # resulting binary.
10837 hardcode_direct=$hardcode_direct
10838
10839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10840 # resulting binary.
10841 hardcode_minus_L=$hardcode_minus_L
10842
10843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10844 # the resulting binary.
10845 hardcode_shlibpath_var=$hardcode_shlibpath_var
10846
10847 # Set to yes if building a shared library automatically hardcodes DIR into the library
10848 # and all subsequent libraries and executables linked against it.
10849 hardcode_automatic=$hardcode_automatic
10850
10851 # Variables whose values should be saved in libtool wrapper scripts and
10852 # restored at relink time.
10853 variables_saved_for_relink="$variables_saved_for_relink"
10854
10855 # Whether libtool must link a program against all its dependency libraries.
10856 link_all_deplibs=$link_all_deplibs
10857
10858 # Compile-time system search path for libraries
10859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10860
10861 # Run-time system search path for libraries
10862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10863
10864 # Fix the shell variable \$srcfile for the compiler.
10865 fix_srcfile_path=$lt_fix_srcfile_path
10866
10867 # Set to yes if exported symbols are required.
10868 always_export_symbols=$always_export_symbols
10869
10870 # The commands to list exported symbols.
10871 export_symbols_cmds=$lt_export_symbols_cmds
10872
10873 # The commands to extract the exported symbol list from a shared archive.
10874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10875
10876 # Symbols that should not be listed in the preloaded symbols.
10877 exclude_expsyms=$lt_exclude_expsyms
10878
10879 # Symbols that must always be exported.
10880 include_expsyms=$lt_include_expsyms
10881
10882 # ### END LIBTOOL CONFIG
10883
10884 __EOF__
10885
10886
10887   case $host_os in
10888   aix3*)
10889     cat <<\EOF >> "$cfgfile"
10890
10891 # AIX sometimes has problems with the GCC collect2 program.  For some
10892 # reason, if we set the COLLECT_NAMES environment variable, the problems
10893 # vanish in a puff of smoke.
10894 if test "X${COLLECT_NAMES+set}" != Xset; then
10895   COLLECT_NAMES=
10896   export COLLECT_NAMES
10897 fi
10898 EOF
10899     ;;
10900   esac
10901
10902   # We use sed instead of cat because bash on DJGPP gets confused if
10903   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10904   # text mode, it properly converts lines to CR/LF.  This bash problem
10905   # is reportedly fixed, but why not run on old versions too?
10906   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10907
10908   mv -f "$cfgfile" "$ofile" || \
10909     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10910   chmod +x "$ofile"
10911
10912 else
10913   # If there is no Makefile yet, we rely on a make rule to execute
10914   # `config.status --recheck' to rerun these tests and create the
10915   # libtool script then.
10916   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10917   if test -f "$ltmain_in"; then
10918     test -f Makefile && make "$ltmain"
10919   fi
10920 fi
10921
10922
10923 ac_ext=c
10924 ac_cpp='$CPP $CPPFLAGS'
10925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10928
10929 CC="$lt_save_CC"
10930
10931
10932 # Check whether --with-tags was given.
10933 if test "${with_tags+set}" = set; then
10934   withval=$with_tags; tagnames="$withval"
10935 fi
10936
10937
10938 if test -f "$ltmain" && test -n "$tagnames"; then
10939   if test ! -f "${ofile}"; then
10940     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10941 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10942   fi
10943
10944   if test -z "$LTCC"; then
10945     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10946     if test -z "$LTCC"; then
10947       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10948 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10949     else
10950       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10951 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10952     fi
10953   fi
10954   if test -z "$LTCFLAGS"; then
10955     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10956   fi
10957
10958   # Extract list of available tagged configurations in $ofile.
10959   # Note that this assumes the entire list is on one line.
10960   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10961
10962   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10963   for tagname in $tagnames; do
10964     IFS="$lt_save_ifs"
10965     # Check whether tagname contains only valid characters
10966     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10967     "") ;;
10968     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10969 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10970    { (exit 1); exit 1; }; }
10971         ;;
10972     esac
10973
10974     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10975     then
10976       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10977 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10978    { (exit 1); exit 1; }; }
10979     fi
10980
10981     # Update the list of available tags.
10982     if test -n "$tagname"; then
10983       echo appending configuration tag \"$tagname\" to $ofile
10984
10985       case $tagname in
10986       CXX)
10987         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10988             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10989             (test "X$CXX" != "Xg++"))) ; then
10990           ac_ext=cpp
10991 ac_cpp='$CXXCPP $CPPFLAGS'
10992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10995
10996
10997
10998
10999 archive_cmds_need_lc_CXX=no
11000 allow_undefined_flag_CXX=
11001 always_export_symbols_CXX=no
11002 archive_expsym_cmds_CXX=
11003 export_dynamic_flag_spec_CXX=
11004 hardcode_direct_CXX=no
11005 hardcode_libdir_flag_spec_CXX=
11006 hardcode_libdir_flag_spec_ld_CXX=
11007 hardcode_libdir_separator_CXX=
11008 hardcode_minus_L_CXX=no
11009 hardcode_shlibpath_var_CXX=unsupported
11010 hardcode_automatic_CXX=no
11011 module_cmds_CXX=
11012 module_expsym_cmds_CXX=
11013 link_all_deplibs_CXX=unknown
11014 old_archive_cmds_CXX=$old_archive_cmds
11015 no_undefined_flag_CXX=
11016 whole_archive_flag_spec_CXX=
11017 enable_shared_with_static_runtimes_CXX=no
11018
11019 # Dependencies to place before and after the object being linked:
11020 predep_objects_CXX=
11021 postdep_objects_CXX=
11022 predeps_CXX=
11023 postdeps_CXX=
11024 compiler_lib_search_path_CXX=
11025 compiler_lib_search_dirs_CXX=
11026
11027 # Source file extension for C++ test sources.
11028 ac_ext=cpp
11029
11030 # Object file extension for compiled C++ test sources.
11031 objext=o
11032 objext_CXX=$objext
11033
11034 # Code to be used in simple compile tests
11035 lt_simple_compile_test_code="int some_variable = 0;"
11036
11037 # Code to be used in simple link tests
11038 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11039
11040 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11041
11042 # If no C compiler was specified, use CC.
11043 LTCC=${LTCC-"$CC"}
11044
11045 # If no C compiler flags were specified, use CFLAGS.
11046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11047
11048 # Allow CC to be a program name with arguments.
11049 compiler=$CC
11050
11051
11052 # save warnings/boilerplate of simple test code
11053 ac_outfile=conftest.$ac_objext
11054 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11056 _lt_compiler_boilerplate=`cat conftest.err`
11057 $rm conftest*
11058
11059 ac_outfile=conftest.$ac_objext
11060 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11062 _lt_linker_boilerplate=`cat conftest.err`
11063 $rm -r conftest*
11064
11065
11066 # Allow CC to be a program name with arguments.
11067 lt_save_CC=$CC
11068 lt_save_LD=$LD
11069 lt_save_GCC=$GCC
11070 GCC=$GXX
11071 lt_save_with_gnu_ld=$with_gnu_ld
11072 lt_save_path_LD=$lt_cv_path_LD
11073 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11074   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11075 else
11076   $as_unset lt_cv_prog_gnu_ld
11077 fi
11078 if test -n "${lt_cv_path_LDCXX+set}"; then
11079   lt_cv_path_LD=$lt_cv_path_LDCXX
11080 else
11081   $as_unset lt_cv_path_LD
11082 fi
11083 test -z "${LDCXX+set}" || LD=$LDCXX
11084 CC=${CXX-"c++"}
11085 compiler=$CC
11086 compiler_CXX=$CC
11087 for cc_temp in $compiler""; do
11088   case $cc_temp in
11089     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11090     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11091     \-*) ;;
11092     *) break;;
11093   esac
11094 done
11095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11096
11097
11098 # We don't want -fno-exception wen compiling C++ code, so set the
11099 # no_builtin_flag separately
11100 if test "$GXX" = yes; then
11101   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11102 else
11103   lt_prog_compiler_no_builtin_flag_CXX=
11104 fi
11105
11106 if test "$GXX" = yes; then
11107   # Set up default GNU C++ configuration
11108
11109
11110 # Check whether --with-gnu-ld was given.
11111 if test "${with_gnu_ld+set}" = set; then
11112   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11113 else
11114   with_gnu_ld=no
11115 fi
11116
11117 ac_prog=ld
11118 if test "$GCC" = yes; then
11119   # Check if gcc -print-prog-name=ld gives a path.
11120   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11121 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11122   case $host in
11123   *-*-mingw*)
11124     # gcc leaves a trailing carriage return which upsets mingw
11125     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11126   *)
11127     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11128   esac
11129   case $ac_prog in
11130     # Accept absolute paths.
11131     [\\/]* | ?:[\\/]*)
11132       re_direlt='/[^/][^/]*/\.\./'
11133       # Canonicalize the pathname of ld
11134       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11135       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11136         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11137       done
11138       test -z "$LD" && LD="$ac_prog"
11139       ;;
11140   "")
11141     # If it fails, then pretend we aren't using GCC.
11142     ac_prog=ld
11143     ;;
11144   *)
11145     # If it is relative, then search for the first ld in PATH.
11146     with_gnu_ld=unknown
11147     ;;
11148   esac
11149 elif test "$with_gnu_ld" = yes; then
11150   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11151 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11152 else
11153   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11154 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11155 fi
11156 if test "${lt_cv_path_LD+set}" = set; then
11157   echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159   if test -z "$LD"; then
11160   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11161   for ac_dir in $PATH; do
11162     IFS="$lt_save_ifs"
11163     test -z "$ac_dir" && ac_dir=.
11164     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11165       lt_cv_path_LD="$ac_dir/$ac_prog"
11166       # Check to see if the program is GNU ld.  I'd rather use --version,
11167       # but apparently some variants of GNU ld only accept -v.
11168       # Break only if it was the GNU/non-GNU ld that we prefer.
11169       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11170       *GNU* | *'with BFD'*)
11171         test "$with_gnu_ld" != no && break
11172         ;;
11173       *)
11174         test "$with_gnu_ld" != yes && break
11175         ;;
11176       esac
11177     fi
11178   done
11179   IFS="$lt_save_ifs"
11180 else
11181   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11182 fi
11183 fi
11184
11185 LD="$lt_cv_path_LD"
11186 if test -n "$LD"; then
11187   { echo "$as_me:$LINENO: result: $LD" >&5
11188 echo "${ECHO_T}$LD" >&6; }
11189 else
11190   { echo "$as_me:$LINENO: result: no" >&5
11191 echo "${ECHO_T}no" >&6; }
11192 fi
11193 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11194 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11195    { (exit 1); exit 1; }; }
11196 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11197 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11198 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11199   echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11202 case `$LD -v 2>&1 </dev/null` in
11203 *GNU* | *'with BFD'*)
11204   lt_cv_prog_gnu_ld=yes
11205   ;;
11206 *)
11207   lt_cv_prog_gnu_ld=no
11208   ;;
11209 esac
11210 fi
11211 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11212 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11213 with_gnu_ld=$lt_cv_prog_gnu_ld
11214
11215
11216
11217   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11218   # archiving commands below assume that GNU ld is being used.
11219   if test "$with_gnu_ld" = yes; then
11220     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11221     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'
11222
11223     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11224     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11225
11226     # If archive_cmds runs LD, not CC, wlarc should be empty
11227     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11228     #     investigate it a little bit more. (MM)
11229     wlarc='${wl}'
11230
11231     # ancient GNU ld didn't support --whole-archive et. al.
11232     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11233         grep 'no-whole-archive' > /dev/null; then
11234       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11235     else
11236       whole_archive_flag_spec_CXX=
11237     fi
11238   else
11239     with_gnu_ld=no
11240     wlarc=
11241
11242     # A generic and very simple default shared library creation
11243     # command for GNU C++ for the case where it uses the native
11244     # linker, instead of GNU ld.  If possible, this setting should
11245     # overridden to take advantage of the native linker features on
11246     # the platform it is being used on.
11247     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11248   fi
11249
11250   # Commands to make compiler produce verbose output that lists
11251   # what "hidden" libraries, object files and flags are used when
11252   # linking a shared library.
11253   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11254
11255 else
11256   GXX=no
11257   with_gnu_ld=no
11258   wlarc=
11259 fi
11260
11261 # PORTME: fill in a description of your system's C++ link characteristics
11262 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11263 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11264 ld_shlibs_CXX=yes
11265 case $host_os in
11266   aix3*)
11267     # FIXME: insert proper C++ library support
11268     ld_shlibs_CXX=no
11269     ;;
11270   aix[4-9]*)
11271     if test "$host_cpu" = ia64; then
11272       # On IA64, the linker does run time linking by default, so we don't
11273       # have to do anything special.
11274       aix_use_runtimelinking=no
11275       exp_sym_flag='-Bexport'
11276       no_entry_flag=""
11277     else
11278       aix_use_runtimelinking=no
11279
11280       # Test if we are trying to use run time linking or normal
11281       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11282       # need to do runtime linking.
11283       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11284         for ld_flag in $LDFLAGS; do
11285           case $ld_flag in
11286           *-brtl*)
11287             aix_use_runtimelinking=yes
11288             break
11289             ;;
11290           esac
11291         done
11292         ;;
11293       esac
11294
11295       exp_sym_flag='-bexport'
11296       no_entry_flag='-bnoentry'
11297     fi
11298
11299     # When large executables or shared objects are built, AIX ld can
11300     # have problems creating the table of contents.  If linking a library
11301     # or program results in "error TOC overflow" add -mminimal-toc to
11302     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11303     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11304
11305     archive_cmds_CXX=''
11306     hardcode_direct_CXX=yes
11307     hardcode_libdir_separator_CXX=':'
11308     link_all_deplibs_CXX=yes
11309
11310     if test "$GXX" = yes; then
11311       case $host_os in aix4.[012]|aix4.[012].*)
11312       # We only want to do this on AIX 4.2 and lower, the check
11313       # below for broken collect2 doesn't work under 4.3+
11314         collect2name=`${CC} -print-prog-name=collect2`
11315         if test -f "$collect2name" && \
11316            strings "$collect2name" | grep resolve_lib_name >/dev/null
11317         then
11318           # We have reworked collect2
11319           :
11320         else
11321           # We have old collect2
11322           hardcode_direct_CXX=unsupported
11323           # It fails to find uninstalled libraries when the uninstalled
11324           # path is not listed in the libpath.  Setting hardcode_minus_L
11325           # to unsupported forces relinking
11326           hardcode_minus_L_CXX=yes
11327           hardcode_libdir_flag_spec_CXX='-L$libdir'
11328           hardcode_libdir_separator_CXX=
11329         fi
11330         ;;
11331       esac
11332       shared_flag='-shared'
11333       if test "$aix_use_runtimelinking" = yes; then
11334         shared_flag="$shared_flag "'${wl}-G'
11335       fi
11336     else
11337       # not using gcc
11338       if test "$host_cpu" = ia64; then
11339         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11340         # chokes on -Wl,-G. The following line is correct:
11341         shared_flag='-G'
11342       else
11343         if test "$aix_use_runtimelinking" = yes; then
11344           shared_flag='${wl}-G'
11345         else
11346           shared_flag='${wl}-bM:SRE'
11347         fi
11348       fi
11349     fi
11350
11351     # It seems that -bexpall does not export symbols beginning with
11352     # underscore (_), so it is better to generate a list of symbols to export.
11353     always_export_symbols_CXX=yes
11354     if test "$aix_use_runtimelinking" = yes; then
11355       # Warning - without using the other runtime loading flags (-brtl),
11356       # -berok will link without error, but may produce a broken library.
11357       allow_undefined_flag_CXX='-berok'
11358       # Determine the default libpath from the value encoded in an empty executable.
11359       cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h.  */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h.  */
11365
11366 int
11367 main ()
11368 {
11369
11370   ;
11371   return 0;
11372 }
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (ac_try="$ac_link"
11376 case "(($ac_try" in
11377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378   *) ac_try_echo=$ac_try;;
11379 esac
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381   (eval "$ac_link") 2>conftest.er1
11382   ac_status=$?
11383   grep -v '^ *+' conftest.er1 >conftest.err
11384   rm -f conftest.er1
11385   cat conftest.err >&5
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); } && {
11388          test -z "$ac_cxx_werror_flag" ||
11389          test ! -s conftest.err
11390        } && test -s conftest$ac_exeext &&
11391        $as_test_x conftest$ac_exeext; then
11392
11393 lt_aix_libpath_sed='
11394     /Import File Strings/,/^$/ {
11395         /^0/ {
11396             s/^0  *\(.*\)$/\1/
11397             p
11398         }
11399     }'
11400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11401 # Check for a 64-bit object if we didn't find anything.
11402 if test -z "$aix_libpath"; then
11403   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11404 fi
11405 else
11406   echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409
11410 fi
11411
11412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11413       conftest$ac_exeext conftest.$ac_ext
11414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11415
11416       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11417
11418       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"
11419      else
11420       if test "$host_cpu" = ia64; then
11421         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11422         allow_undefined_flag_CXX="-z nodefs"
11423         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"
11424       else
11425         # Determine the default libpath from the value encoded in an empty executable.
11426         cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h.  */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h.  */
11432
11433 int
11434 main ()
11435 {
11436
11437   ;
11438   return 0;
11439 }
11440 _ACEOF
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448   (eval "$ac_link") 2>conftest.er1
11449   ac_status=$?
11450   grep -v '^ *+' conftest.er1 >conftest.err
11451   rm -f conftest.er1
11452   cat conftest.err >&5
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); } && {
11455          test -z "$ac_cxx_werror_flag" ||
11456          test ! -s conftest.err
11457        } && test -s conftest$ac_exeext &&
11458        $as_test_x conftest$ac_exeext; then
11459
11460 lt_aix_libpath_sed='
11461     /Import File Strings/,/^$/ {
11462         /^0/ {
11463             s/^0  *\(.*\)$/\1/
11464             p
11465         }
11466     }'
11467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11468 # Check for a 64-bit object if we didn't find anything.
11469 if test -z "$aix_libpath"; then
11470   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11471 fi
11472 else
11473   echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11475
11476
11477 fi
11478
11479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11480       conftest$ac_exeext conftest.$ac_ext
11481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11482
11483         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11484         # Warning - without using the other run time loading flags,
11485         # -berok will link without error, but may produce a broken library.
11486         no_undefined_flag_CXX=' ${wl}-bernotok'
11487         allow_undefined_flag_CXX=' ${wl}-berok'
11488         # Exported symbols can be pulled into shared objects from archives
11489         whole_archive_flag_spec_CXX='$convenience'
11490         archive_cmds_need_lc_CXX=yes
11491         # This is similar to how AIX traditionally builds its shared libraries.
11492         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'
11493       fi
11494     fi
11495     ;;
11496
11497   beos*)
11498     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11499       allow_undefined_flag_CXX=unsupported
11500       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11501       # support --undefined.  This deserves some investigation.  FIXME
11502       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11503     else
11504       ld_shlibs_CXX=no
11505     fi
11506     ;;
11507
11508   chorus*)
11509     case $cc_basename in
11510       *)
11511         # FIXME: insert proper C++ library support
11512         ld_shlibs_CXX=no
11513         ;;
11514     esac
11515     ;;
11516
11517   cygwin* | mingw* | pw32*)
11518     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11519     # as there is no search path for DLLs.
11520     hardcode_libdir_flag_spec_CXX='-L$libdir'
11521     allow_undefined_flag_CXX=unsupported
11522     always_export_symbols_CXX=no
11523     enable_shared_with_static_runtimes_CXX=yes
11524
11525     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11526       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'
11527       # If the export-symbols file already is a .def file (1st line
11528       # is EXPORTS), use it as is; otherwise, prepend...
11529       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11530         cp $export_symbols $output_objdir/$soname.def;
11531       else
11532         echo EXPORTS > $output_objdir/$soname.def;
11533         cat $export_symbols >> $output_objdir/$soname.def;
11534       fi~
11535       $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'
11536     else
11537       ld_shlibs_CXX=no
11538     fi
11539   ;;
11540       darwin* | rhapsody*)
11541       archive_cmds_need_lc_CXX=no
11542       hardcode_direct_CXX=no
11543       hardcode_automatic_CXX=yes
11544       hardcode_shlibpath_var_CXX=unsupported
11545       whole_archive_flag_spec_CXX=''
11546       link_all_deplibs_CXX=yes
11547       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11548       if test "$GXX" = yes ; then
11549       output_verbose_link_cmd='echo'
11550       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}"
11551       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11552       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}"
11553       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}"
11554       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11555         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}"
11556         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}"
11557       fi
11558       else
11559       case $cc_basename in
11560         xlc*)
11561          output_verbose_link_cmd='echo'
11562           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'
11563           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11564           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11565           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}'
11566           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}'
11567           ;;
11568        *)
11569          ld_shlibs_CXX=no
11570           ;;
11571       esac
11572       fi
11573         ;;
11574
11575   dgux*)
11576     case $cc_basename in
11577       ec++*)
11578         # FIXME: insert proper C++ library support
11579         ld_shlibs_CXX=no
11580         ;;
11581       ghcx*)
11582         # Green Hills C++ Compiler
11583         # FIXME: insert proper C++ library support
11584         ld_shlibs_CXX=no
11585         ;;
11586       *)
11587         # FIXME: insert proper C++ library support
11588         ld_shlibs_CXX=no
11589         ;;
11590     esac
11591     ;;
11592   freebsd[12]*)
11593     # C++ shared libraries reported to be fairly broken before switch to ELF
11594     ld_shlibs_CXX=no
11595     ;;
11596   freebsd-elf*)
11597     archive_cmds_need_lc_CXX=no
11598     ;;
11599   freebsd* | dragonfly*)
11600     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11601     # conventions
11602     ld_shlibs_CXX=yes
11603     ;;
11604   gnu*)
11605     ;;
11606   hpux9*)
11607     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11608     hardcode_libdir_separator_CXX=:
11609     export_dynamic_flag_spec_CXX='${wl}-E'
11610     hardcode_direct_CXX=yes
11611     hardcode_minus_L_CXX=yes # Not in the search PATH,
11612                                 # but as the default
11613                                 # location of the library.
11614
11615     case $cc_basename in
11616     CC*)
11617       # FIXME: insert proper C++ library support
11618       ld_shlibs_CXX=no
11619       ;;
11620     aCC*)
11621       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'
11622       # Commands to make compiler produce verbose output that lists
11623       # what "hidden" libraries, object files and flags are used when
11624       # linking a shared library.
11625       #
11626       # There doesn't appear to be a way to prevent this compiler from
11627       # explicitly linking system object files so we need to strip them
11628       # from the output so that they don't get included in the library
11629       # dependencies.
11630       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'
11631       ;;
11632     *)
11633       if test "$GXX" = yes; then
11634         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'
11635       else
11636         # FIXME: insert proper C++ library support
11637         ld_shlibs_CXX=no
11638       fi
11639       ;;
11640     esac
11641     ;;
11642   hpux10*|hpux11*)
11643     if test $with_gnu_ld = no; then
11644       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11645       hardcode_libdir_separator_CXX=:
11646
11647       case $host_cpu in
11648       hppa*64*|ia64*) ;;
11649       *)
11650         export_dynamic_flag_spec_CXX='${wl}-E'
11651         ;;
11652       esac
11653     fi
11654     case $host_cpu in
11655     hppa*64*|ia64*)
11656       hardcode_direct_CXX=no
11657       hardcode_shlibpath_var_CXX=no
11658       ;;
11659     *)
11660       hardcode_direct_CXX=yes
11661       hardcode_minus_L_CXX=yes # Not in the search PATH,
11662                                               # but as the default
11663                                               # location of the library.
11664       ;;
11665     esac
11666
11667     case $cc_basename in
11668       CC*)
11669         # FIXME: insert proper C++ library support
11670         ld_shlibs_CXX=no
11671         ;;
11672       aCC*)
11673         case $host_cpu in
11674         hppa*64*)
11675           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11676           ;;
11677         ia64*)
11678           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11679           ;;
11680         *)
11681           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11682           ;;
11683         esac
11684         # Commands to make compiler produce verbose output that lists
11685         # what "hidden" libraries, object files and flags are used when
11686         # linking a shared library.
11687         #
11688         # There doesn't appear to be a way to prevent this compiler from
11689         # explicitly linking system object files so we need to strip them
11690         # from the output so that they don't get included in the library
11691         # dependencies.
11692         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'
11693         ;;
11694       *)
11695         if test "$GXX" = yes; then
11696           if test $with_gnu_ld = no; then
11697             case $host_cpu in
11698             hppa*64*)
11699               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11700               ;;
11701             ia64*)
11702               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11703               ;;
11704             *)
11705               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'
11706               ;;
11707             esac
11708           fi
11709         else
11710           # FIXME: insert proper C++ library support
11711           ld_shlibs_CXX=no
11712         fi
11713         ;;
11714     esac
11715     ;;
11716   interix[3-9]*)
11717     hardcode_direct_CXX=no
11718     hardcode_shlibpath_var_CXX=no
11719     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11720     export_dynamic_flag_spec_CXX='${wl}-E'
11721     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11722     # Instead, shared libraries are loaded at an image base (0x10000000 by
11723     # default) and relocated if they conflict, which is a slow very memory
11724     # consuming and fragmenting process.  To avoid this, we pick a random,
11725     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11726     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11727     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'
11728     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'
11729     ;;
11730   irix5* | irix6*)
11731     case $cc_basename in
11732       CC*)
11733         # SGI C++
11734         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'
11735
11736         # Archives containing C++ object files must be created using
11737         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11738         # necessary to make sure instantiated templates are included
11739         # in the archive.
11740         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11741         ;;
11742       *)
11743         if test "$GXX" = yes; then
11744           if test "$with_gnu_ld" = no; then
11745             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'
11746           else
11747             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'
11748           fi
11749         fi
11750         link_all_deplibs_CXX=yes
11751         ;;
11752     esac
11753     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11754     hardcode_libdir_separator_CXX=:
11755     ;;
11756   linux* | k*bsd*-gnu)
11757     case $cc_basename in
11758       KCC*)
11759         # Kuck and Associates, Inc. (KAI) C++ Compiler
11760
11761         # KCC will only create a shared library if the output file
11762         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11763         # to its proper name (with version) after linking.
11764         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'
11765         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'
11766         # Commands to make compiler produce verbose output that lists
11767         # what "hidden" libraries, object files and flags are used when
11768         # linking a shared library.
11769         #
11770         # There doesn't appear to be a way to prevent this compiler from
11771         # explicitly linking system object files so we need to strip them
11772         # from the output so that they don't get included in the library
11773         # dependencies.
11774         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'
11775
11776         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11777         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11778
11779         # Archives containing C++ object files must be created using
11780         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11781         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11782         ;;
11783       icpc*)
11784         # Intel C++
11785         with_gnu_ld=yes
11786         # version 8.0 and above of icpc choke on multiply defined symbols
11787         # if we add $predep_objects and $postdep_objects, however 7.1 and
11788         # earlier do not add the objects themselves.
11789         case `$CC -V 2>&1` in
11790         *"Version 7."*)
11791           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11792           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'
11793           ;;
11794         *)  # Version 8.0 or newer
11795           tmp_idyn=
11796           case $host_cpu in
11797             ia64*) tmp_idyn=' -i_dynamic';;
11798           esac
11799           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11800           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'
11801           ;;
11802         esac
11803         archive_cmds_need_lc_CXX=no
11804         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11805         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11806         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11807         ;;
11808       pgCC* | pgcpp*)
11809         # Portland Group C++ compiler
11810         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11811         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'
11812
11813         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11814         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11815         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'
11816         ;;
11817       cxx*)
11818         # Compaq C++
11819         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11820         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'
11821
11822         runpath_var=LD_RUN_PATH
11823         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11824         hardcode_libdir_separator_CXX=:
11825
11826         # Commands to make compiler produce verbose output that lists
11827         # what "hidden" libraries, object files and flags are used when
11828         # linking a shared library.
11829         #
11830         # There doesn't appear to be a way to prevent this compiler from
11831         # explicitly linking system object files so we need to strip them
11832         # from the output so that they don't get included in the library
11833         # dependencies.
11834         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'
11835         ;;
11836       *)
11837         case `$CC -V 2>&1 | sed 5q` in
11838         *Sun\ C*)
11839           # Sun C++ 5.9
11840           no_undefined_flag_CXX=' -zdefs'
11841           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11842           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'
11843           hardcode_libdir_flag_spec_CXX='-R$libdir'
11844           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'
11845
11846           # Not sure whether something based on
11847           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11848           # would be better.
11849           output_verbose_link_cmd='echo'
11850
11851           # Archives containing C++ object files must be created using
11852           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11853           # necessary to make sure instantiated templates are included
11854           # in the archive.
11855           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11856           ;;
11857         esac
11858         ;;
11859     esac
11860     ;;
11861   lynxos*)
11862     # FIXME: insert proper C++ library support
11863     ld_shlibs_CXX=no
11864     ;;
11865   m88k*)
11866     # FIXME: insert proper C++ library support
11867     ld_shlibs_CXX=no
11868     ;;
11869   mvs*)
11870     case $cc_basename in
11871       cxx*)
11872         # FIXME: insert proper C++ library support
11873         ld_shlibs_CXX=no
11874         ;;
11875       *)
11876         # FIXME: insert proper C++ library support
11877         ld_shlibs_CXX=no
11878         ;;
11879     esac
11880     ;;
11881   netbsd* | netbsdelf*-gnu)
11882     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11883       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11884       wlarc=
11885       hardcode_libdir_flag_spec_CXX='-R$libdir'
11886       hardcode_direct_CXX=yes
11887       hardcode_shlibpath_var_CXX=no
11888     fi
11889     # Workaround some broken pre-1.5 toolchains
11890     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11891     ;;
11892   openbsd2*)
11893     # C++ shared libraries are fairly broken
11894     ld_shlibs_CXX=no
11895     ;;
11896   openbsd*)
11897     if test -f /usr/libexec/ld.so; then
11898       hardcode_direct_CXX=yes
11899       hardcode_shlibpath_var_CXX=no
11900       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11901       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11902       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11903         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11904         export_dynamic_flag_spec_CXX='${wl}-E'
11905         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11906       fi
11907       output_verbose_link_cmd='echo'
11908     else
11909       ld_shlibs_CXX=no
11910     fi
11911     ;;
11912   osf3*)
11913     case $cc_basename in
11914       KCC*)
11915         # Kuck and Associates, Inc. (KAI) C++ Compiler
11916
11917         # KCC will only create a shared library if the output file
11918         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11919         # to its proper name (with version) after linking.
11920         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'
11921
11922         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11923         hardcode_libdir_separator_CXX=:
11924
11925         # Archives containing C++ object files must be created using
11926         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11927         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11928
11929         ;;
11930       RCC*)
11931         # Rational C++ 2.4.1
11932         # FIXME: insert proper C++ library support
11933         ld_shlibs_CXX=no
11934         ;;
11935       cxx*)
11936         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11937         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'
11938
11939         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11940         hardcode_libdir_separator_CXX=:
11941
11942         # Commands to make compiler produce verbose output that lists
11943         # what "hidden" libraries, object files and flags are used when
11944         # linking a shared library.
11945         #
11946         # There doesn't appear to be a way to prevent this compiler from
11947         # explicitly linking system object files so we need to strip them
11948         # from the output so that they don't get included in the library
11949         # dependencies.
11950         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'
11951         ;;
11952       *)
11953         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11954           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11955           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'
11956
11957           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11958           hardcode_libdir_separator_CXX=:
11959
11960           # Commands to make compiler produce verbose output that lists
11961           # what "hidden" libraries, object files and flags are used when
11962           # linking a shared library.
11963           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11964
11965         else
11966           # FIXME: insert proper C++ library support
11967           ld_shlibs_CXX=no
11968         fi
11969         ;;
11970     esac
11971     ;;
11972   osf4* | osf5*)
11973     case $cc_basename in
11974       KCC*)
11975         # Kuck and Associates, Inc. (KAI) C++ Compiler
11976
11977         # KCC will only create a shared library if the output file
11978         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11979         # to its proper name (with version) after linking.
11980         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'
11981
11982         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11983         hardcode_libdir_separator_CXX=:
11984
11985         # Archives containing C++ object files must be created using
11986         # the KAI C++ compiler.
11987         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11988         ;;
11989       RCC*)
11990         # Rational C++ 2.4.1
11991         # FIXME: insert proper C++ library support
11992         ld_shlibs_CXX=no
11993         ;;
11994       cxx*)
11995         allow_undefined_flag_CXX=' -expect_unresolved \*'
11996         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'
11997         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11998           echo "-hidden">> $lib.exp~
11999           $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~
12000           $rm $lib.exp'
12001
12002         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12003         hardcode_libdir_separator_CXX=:
12004
12005         # Commands to make compiler produce verbose output that lists
12006         # what "hidden" libraries, object files and flags are used when
12007         # linking a shared library.
12008         #
12009         # There doesn't appear to be a way to prevent this compiler from
12010         # explicitly linking system object files so we need to strip them
12011         # from the output so that they don't get included in the library
12012         # dependencies.
12013         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'
12014         ;;
12015       *)
12016         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12017           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12018          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'
12019
12020           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12021           hardcode_libdir_separator_CXX=:
12022
12023           # Commands to make compiler produce verbose output that lists
12024           # what "hidden" libraries, object files and flags are used when
12025           # linking a shared library.
12026           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12027
12028         else
12029           # FIXME: insert proper C++ library support
12030           ld_shlibs_CXX=no
12031         fi
12032         ;;
12033     esac
12034     ;;
12035   psos*)
12036     # FIXME: insert proper C++ library support
12037     ld_shlibs_CXX=no
12038     ;;
12039   sunos4*)
12040     case $cc_basename in
12041       CC*)
12042         # Sun C++ 4.x
12043         # FIXME: insert proper C++ library support
12044         ld_shlibs_CXX=no
12045         ;;
12046       lcc*)
12047         # Lucid
12048         # FIXME: insert proper C++ library support
12049         ld_shlibs_CXX=no
12050         ;;
12051       *)
12052         # FIXME: insert proper C++ library support
12053         ld_shlibs_CXX=no
12054         ;;
12055     esac
12056     ;;
12057   solaris*)
12058     case $cc_basename in
12059       CC*)
12060         # Sun C++ 4.2, 5.x and Centerline C++
12061         archive_cmds_need_lc_CXX=yes
12062         no_undefined_flag_CXX=' -zdefs'
12063         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12064         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12065         $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'
12066
12067         hardcode_libdir_flag_spec_CXX='-R$libdir'
12068         hardcode_shlibpath_var_CXX=no
12069         case $host_os in
12070           solaris2.[0-5] | solaris2.[0-5].*) ;;
12071           *)
12072             # The compiler driver will combine and reorder linker options,
12073             # but understands `-z linker_flag'.
12074             # Supported since Solaris 2.6 (maybe 2.5.1?)
12075             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12076             ;;
12077         esac
12078         link_all_deplibs_CXX=yes
12079
12080         output_verbose_link_cmd='echo'
12081
12082         # Archives containing C++ object files must be created using
12083         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12084         # necessary to make sure instantiated templates are included
12085         # in the archive.
12086         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12087         ;;
12088       gcx*)
12089         # Green Hills C++ Compiler
12090         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12091
12092         # The C++ compiler must be used to create the archive.
12093         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12094         ;;
12095       *)
12096         # GNU C++ compiler with Solaris linker
12097         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12098           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12099           if $CC --version | grep -v '^2\.7' > /dev/null; then
12100             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12101             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12102                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12103
12104             # Commands to make compiler produce verbose output that lists
12105             # what "hidden" libraries, object files and flags are used when
12106             # linking a shared library.
12107             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12108           else
12109             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12110             # platform.
12111             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12112             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12113                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12114
12115             # Commands to make compiler produce verbose output that lists
12116             # what "hidden" libraries, object files and flags are used when
12117             # linking a shared library.
12118             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12119           fi
12120
12121           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12122           case $host_os in
12123           solaris2.[0-5] | solaris2.[0-5].*) ;;
12124           *)
12125             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12126             ;;
12127           esac
12128         fi
12129         ;;
12130     esac
12131     ;;
12132   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12133     no_undefined_flag_CXX='${wl}-z,text'
12134     archive_cmds_need_lc_CXX=no
12135     hardcode_shlibpath_var_CXX=no
12136     runpath_var='LD_RUN_PATH'
12137
12138     case $cc_basename in
12139       CC*)
12140         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12141         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142         ;;
12143       *)
12144         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12145         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12146         ;;
12147     esac
12148     ;;
12149   sysv5* | sco3.2v5* | sco5v6*)
12150     # Note: We can NOT use -z defs as we might desire, because we do not
12151     # link with -lc, and that would cause any symbols used from libc to
12152     # always be unresolved, which means just about no library would
12153     # ever link correctly.  If we're not using GNU ld we use -z text
12154     # though, which does catch some bad symbols but isn't as heavy-handed
12155     # as -z defs.
12156     # For security reasons, it is highly recommended that you always
12157     # use absolute paths for naming shared libraries, and exclude the
12158     # DT_RUNPATH tag from executables and libraries.  But doing so
12159     # requires that you compile everything twice, which is a pain.
12160     # So that behaviour is only enabled if SCOABSPATH is set to a
12161     # non-empty value in the environment.  Most likely only useful for
12162     # creating official distributions of packages.
12163     # This is a hack until libtool officially supports absolute path
12164     # names for shared libraries.
12165     no_undefined_flag_CXX='${wl}-z,text'
12166     allow_undefined_flag_CXX='${wl}-z,nodefs'
12167     archive_cmds_need_lc_CXX=no
12168     hardcode_shlibpath_var_CXX=no
12169     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12170     hardcode_libdir_separator_CXX=':'
12171     link_all_deplibs_CXX=yes
12172     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12173     runpath_var='LD_RUN_PATH'
12174
12175     case $cc_basename in
12176       CC*)
12177         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12178         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12179         ;;
12180       *)
12181         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12182         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12183         ;;
12184     esac
12185     ;;
12186   tandem*)
12187     case $cc_basename in
12188       NCC*)
12189         # NonStop-UX NCC 3.20
12190         # FIXME: insert proper C++ library support
12191         ld_shlibs_CXX=no
12192         ;;
12193       *)
12194         # FIXME: insert proper C++ library support
12195         ld_shlibs_CXX=no
12196         ;;
12197     esac
12198     ;;
12199   vxworks*)
12200     # FIXME: insert proper C++ library support
12201     ld_shlibs_CXX=no
12202     ;;
12203   *)
12204     # FIXME: insert proper C++ library support
12205     ld_shlibs_CXX=no
12206     ;;
12207 esac
12208 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12209 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12210 test "$ld_shlibs_CXX" = no && can_build_shared=no
12211
12212 GCC_CXX="$GXX"
12213 LD_CXX="$LD"
12214
12215 cat > conftest.$ac_ext <<EOF
12216 class Foo
12217 {
12218 public:
12219   Foo (void) { a = 0; }
12220 private:
12221   int a;
12222 };
12223 EOF
12224
12225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12226   (eval $ac_compile) 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; then
12230   # Parse the compiler output and extract the necessary
12231   # objects, libraries and library flags.
12232
12233   # Sentinel used to keep track of whether or not we are before
12234   # the conftest object file.
12235   pre_test_object_deps_done=no
12236
12237   # The `*' in the case matches for architectures that use `case' in
12238   # $output_verbose_cmd can trigger glob expansion during the loop
12239   # eval without this substitution.
12240   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12241
12242   for p in `eval $output_verbose_link_cmd`; do
12243     case $p in
12244
12245     -L* | -R* | -l*)
12246        # Some compilers place space between "-{L,R}" and the path.
12247        # Remove the space.
12248        if test $p = "-L" \
12249           || test $p = "-R"; then
12250          prev=$p
12251          continue
12252        else
12253          prev=
12254        fi
12255
12256        if test "$pre_test_object_deps_done" = no; then
12257          case $p in
12258          -L* | -R*)
12259            # Internal compiler library paths should come after those
12260            # provided the user.  The postdeps already come after the
12261            # user supplied libs so there is no need to process them.
12262            if test -z "$compiler_lib_search_path_CXX"; then
12263              compiler_lib_search_path_CXX="${prev}${p}"
12264            else
12265              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12266            fi
12267            ;;
12268          # The "-l" case would never come before the object being
12269          # linked, so don't bother handling this case.
12270          esac
12271        else
12272          if test -z "$postdeps_CXX"; then
12273            postdeps_CXX="${prev}${p}"
12274          else
12275            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12276          fi
12277        fi
12278        ;;
12279
12280     *.$objext)
12281        # This assumes that the test object file only shows up
12282        # once in the compiler output.
12283        if test "$p" = "conftest.$objext"; then
12284          pre_test_object_deps_done=yes
12285          continue
12286        fi
12287
12288        if test "$pre_test_object_deps_done" = no; then
12289          if test -z "$predep_objects_CXX"; then
12290            predep_objects_CXX="$p"
12291          else
12292            predep_objects_CXX="$predep_objects_CXX $p"
12293          fi
12294        else
12295          if test -z "$postdep_objects_CXX"; then
12296            postdep_objects_CXX="$p"
12297          else
12298            postdep_objects_CXX="$postdep_objects_CXX $p"
12299          fi
12300        fi
12301        ;;
12302
12303     *) ;; # Ignore the rest.
12304
12305     esac
12306   done
12307
12308   # Clean up.
12309   rm -f a.out a.exe
12310 else
12311   echo "libtool.m4: error: problem compiling CXX test program"
12312 fi
12313
12314 $rm -f confest.$objext
12315
12316 compiler_lib_search_dirs_CXX=
12317 if test -n "$compiler_lib_search_path_CXX"; then
12318   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12319 fi
12320
12321 # PORTME: override above test on systems where it is broken
12322 case $host_os in
12323 interix[3-9]*)
12324   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12325   # hack all around it, let's just trust "g++" to DTRT.
12326   predep_objects_CXX=
12327   postdep_objects_CXX=
12328   postdeps_CXX=
12329   ;;
12330
12331 linux*)
12332   case `$CC -V 2>&1 | sed 5q` in
12333   *Sun\ C*)
12334     # Sun C++ 5.9
12335     #
12336     # The more standards-conforming stlport4 library is
12337     # incompatible with the Cstd library. Avoid specifying
12338     # it if it's in CXXFLAGS. Ignore libCrun as
12339     # -library=stlport4 depends on it.
12340     case " $CXX $CXXFLAGS " in
12341     *" -library=stlport4 "*)
12342       solaris_use_stlport4=yes
12343       ;;
12344     esac
12345     if test "$solaris_use_stlport4" != yes; then
12346       postdeps_CXX='-library=Cstd -library=Crun'
12347     fi
12348     ;;
12349   esac
12350   ;;
12351
12352 solaris*)
12353   case $cc_basename in
12354   CC*)
12355     # The more standards-conforming stlport4 library is
12356     # incompatible with the Cstd library. Avoid specifying
12357     # it if it's in CXXFLAGS. Ignore libCrun as
12358     # -library=stlport4 depends on it.
12359     case " $CXX $CXXFLAGS " in
12360     *" -library=stlport4 "*)
12361       solaris_use_stlport4=yes
12362       ;;
12363     esac
12364
12365     # Adding this requires a known-good setup of shared libraries for
12366     # Sun compiler versions before 5.6, else PIC objects from an old
12367     # archive will be linked into the output, leading to subtle bugs.
12368     if test "$solaris_use_stlport4" != yes; then
12369       postdeps_CXX='-library=Cstd -library=Crun'
12370     fi
12371     ;;
12372   esac
12373   ;;
12374 esac
12375
12376 case " $postdeps_CXX " in
12377 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12378 esac
12379
12380 lt_prog_compiler_wl_CXX=
12381 lt_prog_compiler_pic_CXX=
12382 lt_prog_compiler_static_CXX=
12383
12384 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12386
12387   # C++ specific cases for pic, static, wl, etc.
12388   if test "$GXX" = yes; then
12389     lt_prog_compiler_wl_CXX='-Wl,'
12390     lt_prog_compiler_static_CXX='-static'
12391
12392     case $host_os in
12393     aix*)
12394       # All AIX code is PIC.
12395       if test "$host_cpu" = ia64; then
12396         # AIX 5 now supports IA64 processor
12397         lt_prog_compiler_static_CXX='-Bstatic'
12398       fi
12399       ;;
12400     amigaos*)
12401       # FIXME: we need at least 68020 code to build shared libraries, but
12402       # adding the `-m68020' flag to GCC prevents building anything better,
12403       # like `-m68040'.
12404       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12405       ;;
12406     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12407       # PIC is the default for these OSes.
12408       ;;
12409     mingw* | cygwin* | os2* | pw32*)
12410       # This hack is so that the source file can tell whether it is being
12411       # built for inclusion in a dll (and should export symbols for example).
12412       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12413       # (--disable-auto-import) libraries
12414       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12415       ;;
12416     darwin* | rhapsody*)
12417       # PIC is the default on this platform
12418       # Common symbols not allowed in MH_DYLIB files
12419       lt_prog_compiler_pic_CXX='-fno-common'
12420       ;;
12421     *djgpp*)
12422       # DJGPP does not support shared libraries at all
12423       lt_prog_compiler_pic_CXX=
12424       ;;
12425     interix[3-9]*)
12426       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12427       # Instead, we relocate shared libraries at runtime.
12428       ;;
12429     sysv4*MP*)
12430       if test -d /usr/nec; then
12431         lt_prog_compiler_pic_CXX=-Kconform_pic
12432       fi
12433       ;;
12434     hpux*)
12435       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12436       # not for PA HP-UX.
12437       case $host_cpu in
12438       hppa*64*|ia64*)
12439         ;;
12440       *)
12441         lt_prog_compiler_pic_CXX='-fPIC'
12442         ;;
12443       esac
12444       ;;
12445     *)
12446       lt_prog_compiler_pic_CXX='-fPIC'
12447       ;;
12448     esac
12449   else
12450     case $host_os in
12451       aix[4-9]*)
12452         # All AIX code is PIC.
12453         if test "$host_cpu" = ia64; then
12454           # AIX 5 now supports IA64 processor
12455           lt_prog_compiler_static_CXX='-Bstatic'
12456         else
12457           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12458         fi
12459         ;;
12460       chorus*)
12461         case $cc_basename in
12462         cxch68*)
12463           # Green Hills C++ Compiler
12464           # _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"
12465           ;;
12466         esac
12467         ;;
12468        darwin*)
12469          # PIC is the default on this platform
12470          # Common symbols not allowed in MH_DYLIB files
12471          case $cc_basename in
12472            xlc*)
12473            lt_prog_compiler_pic_CXX='-qnocommon'
12474            lt_prog_compiler_wl_CXX='-Wl,'
12475            ;;
12476          esac
12477        ;;
12478       dgux*)
12479         case $cc_basename in
12480           ec++*)
12481             lt_prog_compiler_pic_CXX='-KPIC'
12482             ;;
12483           ghcx*)
12484             # Green Hills C++ Compiler
12485             lt_prog_compiler_pic_CXX='-pic'
12486             ;;
12487           *)
12488             ;;
12489         esac
12490         ;;
12491       freebsd* | dragonfly*)
12492         # FreeBSD uses GNU C++
12493         ;;
12494       hpux9* | hpux10* | hpux11*)
12495         case $cc_basename in
12496           CC*)
12497             lt_prog_compiler_wl_CXX='-Wl,'
12498             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12499             if test "$host_cpu" != ia64; then
12500               lt_prog_compiler_pic_CXX='+Z'
12501             fi
12502             ;;
12503           aCC*)
12504             lt_prog_compiler_wl_CXX='-Wl,'
12505             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12506             case $host_cpu in
12507             hppa*64*|ia64*)
12508               # +Z the default
12509               ;;
12510             *)
12511               lt_prog_compiler_pic_CXX='+Z'
12512               ;;
12513             esac
12514             ;;
12515           *)
12516             ;;
12517         esac
12518         ;;
12519       interix*)
12520         # This is c89, which is MS Visual C++ (no shared libs)
12521         # Anyone wants to do a port?
12522         ;;
12523       irix5* | irix6* | nonstopux*)
12524         case $cc_basename in
12525           CC*)
12526             lt_prog_compiler_wl_CXX='-Wl,'
12527             lt_prog_compiler_static_CXX='-non_shared'
12528             # CC pic flag -KPIC is the default.
12529             ;;
12530           *)
12531             ;;
12532         esac
12533         ;;
12534       linux* | k*bsd*-gnu)
12535         case $cc_basename in
12536           KCC*)
12537             # KAI C++ Compiler
12538             lt_prog_compiler_wl_CXX='--backend -Wl,'
12539             lt_prog_compiler_pic_CXX='-fPIC'
12540             ;;
12541           icpc* | ecpc*)
12542             # Intel C++
12543             lt_prog_compiler_wl_CXX='-Wl,'
12544             lt_prog_compiler_pic_CXX='-KPIC'
12545             lt_prog_compiler_static_CXX='-static'
12546             ;;
12547           pgCC* | pgcpp*)
12548             # Portland Group C++ compiler.
12549             lt_prog_compiler_wl_CXX='-Wl,'
12550             lt_prog_compiler_pic_CXX='-fpic'
12551             lt_prog_compiler_static_CXX='-Bstatic'
12552             ;;
12553           cxx*)
12554             # Compaq C++
12555             # Make sure the PIC flag is empty.  It appears that all Alpha
12556             # Linux and Compaq Tru64 Unix objects are PIC.
12557             lt_prog_compiler_pic_CXX=
12558             lt_prog_compiler_static_CXX='-non_shared'
12559             ;;
12560           *)
12561             case `$CC -V 2>&1 | sed 5q` in
12562             *Sun\ C*)
12563               # Sun C++ 5.9
12564               lt_prog_compiler_pic_CXX='-KPIC'
12565               lt_prog_compiler_static_CXX='-Bstatic'
12566               lt_prog_compiler_wl_CXX='-Qoption ld '
12567               ;;
12568             esac
12569             ;;
12570         esac
12571         ;;
12572       lynxos*)
12573         ;;
12574       m88k*)
12575         ;;
12576       mvs*)
12577         case $cc_basename in
12578           cxx*)
12579             lt_prog_compiler_pic_CXX='-W c,exportall'
12580             ;;
12581           *)
12582             ;;
12583         esac
12584         ;;
12585       netbsd* | netbsdelf*-gnu)
12586         ;;
12587       osf3* | osf4* | osf5*)
12588         case $cc_basename in
12589           KCC*)
12590             lt_prog_compiler_wl_CXX='--backend -Wl,'
12591             ;;
12592           RCC*)
12593             # Rational C++ 2.4.1
12594             lt_prog_compiler_pic_CXX='-pic'
12595             ;;
12596           cxx*)
12597             # Digital/Compaq C++
12598             lt_prog_compiler_wl_CXX='-Wl,'
12599             # Make sure the PIC flag is empty.  It appears that all Alpha
12600             # Linux and Compaq Tru64 Unix objects are PIC.
12601             lt_prog_compiler_pic_CXX=
12602             lt_prog_compiler_static_CXX='-non_shared'
12603             ;;
12604           *)
12605             ;;
12606         esac
12607         ;;
12608       psos*)
12609         ;;
12610       solaris*)
12611         case $cc_basename in
12612           CC*)
12613             # Sun C++ 4.2, 5.x and Centerline C++
12614             lt_prog_compiler_pic_CXX='-KPIC'
12615             lt_prog_compiler_static_CXX='-Bstatic'
12616             lt_prog_compiler_wl_CXX='-Qoption ld '
12617             ;;
12618           gcx*)
12619             # Green Hills C++ Compiler
12620             lt_prog_compiler_pic_CXX='-PIC'
12621             ;;
12622           *)
12623             ;;
12624         esac
12625         ;;
12626       sunos4*)
12627         case $cc_basename in
12628           CC*)
12629             # Sun C++ 4.x
12630             lt_prog_compiler_pic_CXX='-pic'
12631             lt_prog_compiler_static_CXX='-Bstatic'
12632             ;;
12633           lcc*)
12634             # Lucid
12635             lt_prog_compiler_pic_CXX='-pic'
12636             ;;
12637           *)
12638             ;;
12639         esac
12640         ;;
12641       tandem*)
12642         case $cc_basename in
12643           NCC*)
12644             # NonStop-UX NCC 3.20
12645             lt_prog_compiler_pic_CXX='-KPIC'
12646             ;;
12647           *)
12648             ;;
12649         esac
12650         ;;
12651       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12652         case $cc_basename in
12653           CC*)
12654             lt_prog_compiler_wl_CXX='-Wl,'
12655             lt_prog_compiler_pic_CXX='-KPIC'
12656             lt_prog_compiler_static_CXX='-Bstatic'
12657             ;;
12658         esac
12659         ;;
12660       vxworks*)
12661         ;;
12662       *)
12663         lt_prog_compiler_can_build_shared_CXX=no
12664         ;;
12665     esac
12666   fi
12667
12668 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12669 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12670
12671 #
12672 # Check to make sure the PIC flag actually works.
12673 #
12674 if test -n "$lt_prog_compiler_pic_CXX"; then
12675
12676 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12677 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12678 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12679   echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681   lt_cv_prog_compiler_pic_works_CXX=no
12682   ac_outfile=conftest.$ac_objext
12683    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12684    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12685    # Insert the option either (1) after the last *FLAGS variable, or
12686    # (2) before a word containing "conftest.", or (3) at the end.
12687    # Note that $ac_compile itself does not contain backslashes and begins
12688    # with a dollar sign (not a hyphen), so the echo should work correctly.
12689    # The option is referenced via a variable to avoid confusing sed.
12690    lt_compile=`echo "$ac_compile" | $SED \
12691    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12692    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12693    -e 's:$: $lt_compiler_flag:'`
12694    (eval echo "\"\$as_me:12694: $lt_compile\"" >&5)
12695    (eval "$lt_compile" 2>conftest.err)
12696    ac_status=$?
12697    cat conftest.err >&5
12698    echo "$as_me:12698: \$? = $ac_status" >&5
12699    if (exit $ac_status) && test -s "$ac_outfile"; then
12700      # The compiler can only warn and ignore the option if not recognized
12701      # So say no if there are warnings other than the usual output.
12702      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12703      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12704      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12705        lt_cv_prog_compiler_pic_works_CXX=yes
12706      fi
12707    fi
12708    $rm conftest*
12709
12710 fi
12711 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12712 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12713
12714 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12715     case $lt_prog_compiler_pic_CXX in
12716      "" | " "*) ;;
12717      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12718      esac
12719 else
12720     lt_prog_compiler_pic_CXX=
12721      lt_prog_compiler_can_build_shared_CXX=no
12722 fi
12723
12724 fi
12725 case $host_os in
12726   # For platforms which do not support PIC, -DPIC is meaningless:
12727   *djgpp*)
12728     lt_prog_compiler_pic_CXX=
12729     ;;
12730   *)
12731     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12732     ;;
12733 esac
12734
12735 #
12736 # Check to make sure the static flag actually works.
12737 #
12738 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12739 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12740 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12741 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12742   echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744   lt_cv_prog_compiler_static_works_CXX=no
12745    save_LDFLAGS="$LDFLAGS"
12746    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12747    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12748    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12749      # The linker can only warn and ignore the option if not recognized
12750      # So say no if there are warnings
12751      if test -s conftest.err; then
12752        # Append any errors to the config.log.
12753        cat conftest.err 1>&5
12754        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12755        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12756        if diff conftest.exp conftest.er2 >/dev/null; then
12757          lt_cv_prog_compiler_static_works_CXX=yes
12758        fi
12759      else
12760        lt_cv_prog_compiler_static_works_CXX=yes
12761      fi
12762    fi
12763    $rm -r conftest*
12764    LDFLAGS="$save_LDFLAGS"
12765
12766 fi
12767 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12768 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12769
12770 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12771     :
12772 else
12773     lt_prog_compiler_static_CXX=
12774 fi
12775
12776
12777 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12778 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12779 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782   lt_cv_prog_compiler_c_o_CXX=no
12783    $rm -r conftest 2>/dev/null
12784    mkdir conftest
12785    cd conftest
12786    mkdir out
12787    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12788
12789    lt_compiler_flag="-o out/conftest2.$ac_objext"
12790    # Insert the option either (1) after the last *FLAGS variable, or
12791    # (2) before a word containing "conftest.", or (3) at the end.
12792    # Note that $ac_compile itself does not contain backslashes and begins
12793    # with a dollar sign (not a hyphen), so the echo should work correctly.
12794    lt_compile=`echo "$ac_compile" | $SED \
12795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12797    -e 's:$: $lt_compiler_flag:'`
12798    (eval echo "\"\$as_me:12798: $lt_compile\"" >&5)
12799    (eval "$lt_compile" 2>out/conftest.err)
12800    ac_status=$?
12801    cat out/conftest.err >&5
12802    echo "$as_me:12802: \$? = $ac_status" >&5
12803    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12804    then
12805      # The compiler can only warn and ignore the option if not recognized
12806      # So say no if there are warnings
12807      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12808      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12809      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12810        lt_cv_prog_compiler_c_o_CXX=yes
12811      fi
12812    fi
12813    chmod u+w . 2>&5
12814    $rm conftest*
12815    # SGI C++ compiler will create directory out/ii_files/ for
12816    # template instantiation
12817    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12818    $rm out/* && rmdir out
12819    cd ..
12820    rmdir conftest
12821    $rm conftest*
12822
12823 fi
12824 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12825 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12826
12827
12828 hard_links="nottested"
12829 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12830   # do not overwrite the value of need_locks provided by the user
12831   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12832 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12833   hard_links=yes
12834   $rm conftest*
12835   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12836   touch conftest.a
12837   ln conftest.a conftest.b 2>&5 || hard_links=no
12838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12839   { echo "$as_me:$LINENO: result: $hard_links" >&5
12840 echo "${ECHO_T}$hard_links" >&6; }
12841   if test "$hard_links" = no; then
12842     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12843 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12844     need_locks=warn
12845   fi
12846 else
12847   need_locks=no
12848 fi
12849
12850 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12852
12853   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12854   case $host_os in
12855   aix[4-9]*)
12856     # If we're using GNU nm, then we don't want the "-C" option.
12857     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12858     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12859       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'
12860     else
12861       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'
12862     fi
12863     ;;
12864   pw32*)
12865     export_symbols_cmds_CXX="$ltdll_cmds"
12866   ;;
12867   cygwin* | mingw*)
12868     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'
12869   ;;
12870   linux* | k*bsd*-gnu)
12871     link_all_deplibs_CXX=no
12872   ;;
12873   *)
12874     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12875   ;;
12876   esac
12877   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12878
12879 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12880 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12881 test "$ld_shlibs_CXX" = no && can_build_shared=no
12882
12883 #
12884 # Do we need to explicitly link libc?
12885 #
12886 case "x$archive_cmds_need_lc_CXX" in
12887 x|xyes)
12888   # Assume -lc should be added
12889   archive_cmds_need_lc_CXX=yes
12890
12891   if test "$enable_shared" = yes && test "$GCC" = yes; then
12892     case $archive_cmds_CXX in
12893     *'~'*)
12894       # FIXME: we may have to deal with multi-command sequences.
12895       ;;
12896     '$CC '*)
12897       # Test whether the compiler implicitly links with -lc since on some
12898       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12899       # to ld, don't add -lc before -lgcc.
12900       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12901 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12902       $rm conftest*
12903       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12904
12905       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906   (eval $ac_compile) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); } 2>conftest.err; then
12910         soname=conftest
12911         lib=conftest
12912         libobjs=conftest.$ac_objext
12913         deplibs=
12914         wl=$lt_prog_compiler_wl_CXX
12915         pic_flag=$lt_prog_compiler_pic_CXX
12916         compiler_flags=-v
12917         linker_flags=-v
12918         verstring=
12919         output_objdir=.
12920         libname=conftest
12921         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12922         allow_undefined_flag_CXX=
12923         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12924   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }
12928         then
12929           archive_cmds_need_lc_CXX=no
12930         else
12931           archive_cmds_need_lc_CXX=yes
12932         fi
12933         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12934       else
12935         cat conftest.err 1>&5
12936       fi
12937       $rm conftest*
12938       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12939 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12940       ;;
12941     esac
12942   fi
12943   ;;
12944 esac
12945
12946 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12947 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12948 library_names_spec=
12949 libname_spec='lib$name'
12950 soname_spec=
12951 shrext_cmds=".so"
12952 postinstall_cmds=
12953 postuninstall_cmds=
12954 finish_cmds=
12955 finish_eval=
12956 shlibpath_var=
12957 shlibpath_overrides_runpath=unknown
12958 version_type=none
12959 dynamic_linker="$host_os ld.so"
12960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12961
12962 need_lib_prefix=unknown
12963 hardcode_into_libs=no
12964
12965 # when you set need_version to no, make sure it does not cause -set_version
12966 # flags to be left without arguments
12967 need_version=unknown
12968
12969 case $host_os in
12970 aix3*)
12971   version_type=linux
12972   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12973   shlibpath_var=LIBPATH
12974
12975   # AIX 3 has no versioning support, so we append a major version to the name.
12976   soname_spec='${libname}${release}${shared_ext}$major'
12977   ;;
12978
12979 aix[4-9]*)
12980   version_type=linux
12981   need_lib_prefix=no
12982   need_version=no
12983   hardcode_into_libs=yes
12984   if test "$host_cpu" = ia64; then
12985     # AIX 5 supports IA64
12986     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12987     shlibpath_var=LD_LIBRARY_PATH
12988   else
12989     # With GCC up to 2.95.x, collect2 would create an import file
12990     # for dependence libraries.  The import file would start with
12991     # the line `#! .'.  This would cause the generated library to
12992     # depend on `.', always an invalid library.  This was fixed in
12993     # development snapshots of GCC prior to 3.0.
12994     case $host_os in
12995       aix4 | aix4.[01] | aix4.[01].*)
12996       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12997            echo ' yes '
12998            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12999         :
13000       else
13001         can_build_shared=no
13002       fi
13003       ;;
13004     esac
13005     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13006     # soname into executable. Probably we can add versioning support to
13007     # collect2, so additional links can be useful in future.
13008     if test "$aix_use_runtimelinking" = yes; then
13009       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13010       # instead of lib<name>.a to let people know that these are not
13011       # typical AIX shared libraries.
13012       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013     else
13014       # We preserve .a as extension for shared libraries through AIX4.2
13015       # and later when we are not doing run time linking.
13016       library_names_spec='${libname}${release}.a $libname.a'
13017       soname_spec='${libname}${release}${shared_ext}$major'
13018     fi
13019     shlibpath_var=LIBPATH
13020   fi
13021   ;;
13022
13023 amigaos*)
13024   library_names_spec='$libname.ixlibrary $libname.a'
13025   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13026   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'
13027   ;;
13028
13029 beos*)
13030   library_names_spec='${libname}${shared_ext}'
13031   dynamic_linker="$host_os ld.so"
13032   shlibpath_var=LIBRARY_PATH
13033   ;;
13034
13035 bsdi[45]*)
13036   version_type=linux
13037   need_version=no
13038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039   soname_spec='${libname}${release}${shared_ext}$major'
13040   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13041   shlibpath_var=LD_LIBRARY_PATH
13042   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13043   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13044   # the default ld.so.conf also contains /usr/contrib/lib and
13045   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13046   # libtool to hard-code these into programs
13047   ;;
13048
13049 cygwin* | mingw* | pw32*)
13050   version_type=windows
13051   shrext_cmds=".dll"
13052   need_version=no
13053   need_lib_prefix=no
13054
13055   case $GCC,$host_os in
13056   yes,cygwin* | yes,mingw* | yes,pw32*)
13057     library_names_spec='$libname.dll.a'
13058     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13059     postinstall_cmds='base_file=`basename \${file}`~
13060       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13061       dldir=$destdir/`dirname \$dlpath`~
13062       test -d \$dldir || mkdir -p \$dldir~
13063       $install_prog $dir/$dlname \$dldir/$dlname~
13064       chmod a+x \$dldir/$dlname'
13065     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13066       dlpath=$dir/\$dldll~
13067        $rm \$dlpath'
13068     shlibpath_overrides_runpath=yes
13069
13070     case $host_os in
13071     cygwin*)
13072       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13073       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13074       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13075       ;;
13076     mingw*)
13077       # MinGW DLLs use traditional 'lib' prefix
13078       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13079       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13080       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13081         # It is most probably a Windows format PATH printed by
13082         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13083         # path with ; separators, and with drive letters. We can handle the
13084         # drive letters (cygwin fileutils understands them), so leave them,
13085         # especially as we might pass files found there to a mingw objdump,
13086         # which wouldn't understand a cygwinified path. Ahh.
13087         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13088       else
13089         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13090       fi
13091       ;;
13092     pw32*)
13093       # pw32 DLLs use 'pw' prefix rather than 'lib'
13094       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13095       ;;
13096     esac
13097     ;;
13098
13099   *)
13100     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13101     ;;
13102   esac
13103   dynamic_linker='Win32 ld.exe'
13104   # FIXME: first we should search . and the directory the executable is in
13105   shlibpath_var=PATH
13106   ;;
13107
13108 darwin* | rhapsody*)
13109   dynamic_linker="$host_os dyld"
13110   version_type=darwin
13111   need_lib_prefix=no
13112   need_version=no
13113   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13114   soname_spec='${libname}${release}${major}$shared_ext'
13115   shlibpath_overrides_runpath=yes
13116   shlibpath_var=DYLD_LIBRARY_PATH
13117   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13118
13119   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13120   ;;
13121
13122 dgux*)
13123   version_type=linux
13124   need_lib_prefix=no
13125   need_version=no
13126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13127   soname_spec='${libname}${release}${shared_ext}$major'
13128   shlibpath_var=LD_LIBRARY_PATH
13129   ;;
13130
13131 freebsd1*)
13132   dynamic_linker=no
13133   ;;
13134
13135 freebsd* | dragonfly*)
13136   # DragonFly does not have aout.  When/if they implement a new
13137   # versioning mechanism, adjust this.
13138   if test -x /usr/bin/objformat; then
13139     objformat=`/usr/bin/objformat`
13140   else
13141     case $host_os in
13142     freebsd[123]*) objformat=aout ;;
13143     *) objformat=elf ;;
13144     esac
13145   fi
13146   version_type=freebsd-$objformat
13147   case $version_type in
13148     freebsd-elf*)
13149       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13150       need_version=no
13151       need_lib_prefix=no
13152       ;;
13153     freebsd-*)
13154       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13155       need_version=yes
13156       ;;
13157   esac
13158   shlibpath_var=LD_LIBRARY_PATH
13159   case $host_os in
13160   freebsd2*)
13161     shlibpath_overrides_runpath=yes
13162     ;;
13163   freebsd3.[01]* | freebsdelf3.[01]*)
13164     shlibpath_overrides_runpath=yes
13165     hardcode_into_libs=yes
13166     ;;
13167   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13168   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13169     shlibpath_overrides_runpath=no
13170     hardcode_into_libs=yes
13171     ;;
13172   *) # from 4.6 on, and DragonFly
13173     shlibpath_overrides_runpath=yes
13174     hardcode_into_libs=yes
13175     ;;
13176   esac
13177   ;;
13178
13179 gnu*)
13180   version_type=linux
13181   need_lib_prefix=no
13182   need_version=no
13183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13184   soname_spec='${libname}${release}${shared_ext}$major'
13185   shlibpath_var=LD_LIBRARY_PATH
13186   hardcode_into_libs=yes
13187   ;;
13188
13189 hpux9* | hpux10* | hpux11*)
13190   # Give a soname corresponding to the major version so that dld.sl refuses to
13191   # link against other versions.
13192   version_type=sunos
13193   need_lib_prefix=no
13194   need_version=no
13195   case $host_cpu in
13196   ia64*)
13197     shrext_cmds='.so'
13198     hardcode_into_libs=yes
13199     dynamic_linker="$host_os dld.so"
13200     shlibpath_var=LD_LIBRARY_PATH
13201     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203     soname_spec='${libname}${release}${shared_ext}$major'
13204     if test "X$HPUX_IA64_MODE" = X32; then
13205       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13206     else
13207       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13208     fi
13209     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13210     ;;
13211    hppa*64*)
13212      shrext_cmds='.sl'
13213      hardcode_into_libs=yes
13214      dynamic_linker="$host_os dld.sl"
13215      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13216      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13217      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13218      soname_spec='${libname}${release}${shared_ext}$major'
13219      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13220      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13221      ;;
13222    *)
13223     shrext_cmds='.sl'
13224     dynamic_linker="$host_os dld.sl"
13225     shlibpath_var=SHLIB_PATH
13226     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228     soname_spec='${libname}${release}${shared_ext}$major'
13229     ;;
13230   esac
13231   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13232   postinstall_cmds='chmod 555 $lib'
13233   ;;
13234
13235 interix[3-9]*)
13236   version_type=linux
13237   need_lib_prefix=no
13238   need_version=no
13239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13240   soname_spec='${libname}${release}${shared_ext}$major'
13241   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13242   shlibpath_var=LD_LIBRARY_PATH
13243   shlibpath_overrides_runpath=no
13244   hardcode_into_libs=yes
13245   ;;
13246
13247 irix5* | irix6* | nonstopux*)
13248   case $host_os in
13249     nonstopux*) version_type=nonstopux ;;
13250     *)
13251         if test "$lt_cv_prog_gnu_ld" = yes; then
13252                 version_type=linux
13253         else
13254                 version_type=irix
13255         fi ;;
13256   esac
13257   need_lib_prefix=no
13258   need_version=no
13259   soname_spec='${libname}${release}${shared_ext}$major'
13260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13261   case $host_os in
13262   irix5* | nonstopux*)
13263     libsuff= shlibsuff=
13264     ;;
13265   *)
13266     case $LD in # libtool.m4 will add one of these switches to LD
13267     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13268       libsuff= shlibsuff= libmagic=32-bit;;
13269     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13270       libsuff=32 shlibsuff=N32 libmagic=N32;;
13271     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13272       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13273     *) libsuff= shlibsuff= libmagic=never-match;;
13274     esac
13275     ;;
13276   esac
13277   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13278   shlibpath_overrides_runpath=no
13279   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13280   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13281   hardcode_into_libs=yes
13282   ;;
13283
13284 # No shared lib support for Linux oldld, aout, or coff.
13285 linux*oldld* | linux*aout* | linux*coff*)
13286   dynamic_linker=no
13287   ;;
13288
13289 # This must be Linux ELF.
13290 linux* | k*bsd*-gnu)
13291   version_type=linux
13292   need_lib_prefix=no
13293   need_version=no
13294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13295   soname_spec='${libname}${release}${shared_ext}$major'
13296   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13297   shlibpath_var=LD_LIBRARY_PATH
13298   shlibpath_overrides_runpath=no
13299   # This implies no fast_install, which is unacceptable.
13300   # Some rework will be needed to allow for fast_install
13301   # before this can be enabled.
13302   hardcode_into_libs=yes
13303
13304   # Append ld.so.conf contents to the search path
13305   if test -f /etc/ld.so.conf; then
13306     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' ' '`
13307     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13308   fi
13309
13310   # We used to test for /lib/ld.so.1 and disable shared libraries on
13311   # powerpc, because MkLinux only supported shared libraries with the
13312   # GNU dynamic linker.  Since this was broken with cross compilers,
13313   # most powerpc-linux boxes support dynamic linking these days and
13314   # people can always --disable-shared, the test was removed, and we
13315   # assume the GNU/Linux dynamic linker is in use.
13316   dynamic_linker='GNU/Linux ld.so'
13317   ;;
13318
13319 netbsdelf*-gnu)
13320   version_type=linux
13321   need_lib_prefix=no
13322   need_version=no
13323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13324   soname_spec='${libname}${release}${shared_ext}$major'
13325   shlibpath_var=LD_LIBRARY_PATH
13326   shlibpath_overrides_runpath=no
13327   hardcode_into_libs=yes
13328   dynamic_linker='NetBSD ld.elf_so'
13329   ;;
13330
13331 netbsd*)
13332   version_type=sunos
13333   need_lib_prefix=no
13334   need_version=no
13335   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13337     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13338     dynamic_linker='NetBSD (a.out) ld.so'
13339   else
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     dynamic_linker='NetBSD ld.elf_so'
13343   fi
13344   shlibpath_var=LD_LIBRARY_PATH
13345   shlibpath_overrides_runpath=yes
13346   hardcode_into_libs=yes
13347   ;;
13348
13349 newsos6)
13350   version_type=linux
13351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13352   shlibpath_var=LD_LIBRARY_PATH
13353   shlibpath_overrides_runpath=yes
13354   ;;
13355
13356 nto-qnx*)
13357   version_type=linux
13358   need_lib_prefix=no
13359   need_version=no
13360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361   soname_spec='${libname}${release}${shared_ext}$major'
13362   shlibpath_var=LD_LIBRARY_PATH
13363   shlibpath_overrides_runpath=yes
13364   ;;
13365
13366 openbsd*)
13367   version_type=sunos
13368   sys_lib_dlsearch_path_spec="/usr/lib"
13369   need_lib_prefix=no
13370   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13371   case $host_os in
13372     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13373     *)                         need_version=no  ;;
13374   esac
13375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13376   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13377   shlibpath_var=LD_LIBRARY_PATH
13378   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13379     case $host_os in
13380       openbsd2.[89] | openbsd2.[89].*)
13381         shlibpath_overrides_runpath=no
13382         ;;
13383       *)
13384         shlibpath_overrides_runpath=yes
13385         ;;
13386       esac
13387   else
13388     shlibpath_overrides_runpath=yes
13389   fi
13390   ;;
13391
13392 os2*)
13393   libname_spec='$name'
13394   shrext_cmds=".dll"
13395   need_lib_prefix=no
13396   library_names_spec='$libname${shared_ext} $libname.a'
13397   dynamic_linker='OS/2 ld.exe'
13398   shlibpath_var=LIBPATH
13399   ;;
13400
13401 osf3* | osf4* | osf5*)
13402   version_type=osf
13403   need_lib_prefix=no
13404   need_version=no
13405   soname_spec='${libname}${release}${shared_ext}$major'
13406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407   shlibpath_var=LD_LIBRARY_PATH
13408   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13409   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13410   ;;
13411
13412 rdos*)
13413   dynamic_linker=no
13414   ;;
13415
13416 solaris*)
13417   version_type=linux
13418   need_lib_prefix=no
13419   need_version=no
13420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13421   soname_spec='${libname}${release}${shared_ext}$major'
13422   shlibpath_var=LD_LIBRARY_PATH
13423   shlibpath_overrides_runpath=yes
13424   hardcode_into_libs=yes
13425   # ldd complains unless libraries are executable
13426   postinstall_cmds='chmod +x $lib'
13427   ;;
13428
13429 sunos4*)
13430   version_type=sunos
13431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13432   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13433   shlibpath_var=LD_LIBRARY_PATH
13434   shlibpath_overrides_runpath=yes
13435   if test "$with_gnu_ld" = yes; then
13436     need_lib_prefix=no
13437   fi
13438   need_version=yes
13439   ;;
13440
13441 sysv4 | sysv4.3*)
13442   version_type=linux
13443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444   soname_spec='${libname}${release}${shared_ext}$major'
13445   shlibpath_var=LD_LIBRARY_PATH
13446   case $host_vendor in
13447     sni)
13448       shlibpath_overrides_runpath=no
13449       need_lib_prefix=no
13450       export_dynamic_flag_spec='${wl}-Blargedynsym'
13451       runpath_var=LD_RUN_PATH
13452       ;;
13453     siemens)
13454       need_lib_prefix=no
13455       ;;
13456     motorola)
13457       need_lib_prefix=no
13458       need_version=no
13459       shlibpath_overrides_runpath=no
13460       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13461       ;;
13462   esac
13463   ;;
13464
13465 sysv4*MP*)
13466   if test -d /usr/nec ;then
13467     version_type=linux
13468     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13469     soname_spec='$libname${shared_ext}.$major'
13470     shlibpath_var=LD_LIBRARY_PATH
13471   fi
13472   ;;
13473
13474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13475   version_type=freebsd-elf
13476   need_lib_prefix=no
13477   need_version=no
13478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13479   soname_spec='${libname}${release}${shared_ext}$major'
13480   shlibpath_var=LD_LIBRARY_PATH
13481   hardcode_into_libs=yes
13482   if test "$with_gnu_ld" = yes; then
13483     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13484     shlibpath_overrides_runpath=no
13485   else
13486     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13487     shlibpath_overrides_runpath=yes
13488     case $host_os in
13489       sco3.2v5*)
13490         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13491         ;;
13492     esac
13493   fi
13494   sys_lib_dlsearch_path_spec='/usr/lib'
13495   ;;
13496
13497 uts4*)
13498   version_type=linux
13499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500   soname_spec='${libname}${release}${shared_ext}$major'
13501   shlibpath_var=LD_LIBRARY_PATH
13502   ;;
13503
13504 *)
13505   dynamic_linker=no
13506   ;;
13507 esac
13508 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13509 echo "${ECHO_T}$dynamic_linker" >&6; }
13510 test "$dynamic_linker" = no && can_build_shared=no
13511
13512 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13513   echo $ECHO_N "(cached) $ECHO_C" >&6
13514 else
13515   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13516 fi
13517
13518 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13519 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13520   echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13523 fi
13524
13525 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13526
13527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13528 if test "$GCC" = yes; then
13529   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13530 fi
13531
13532 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13533 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13534 hardcode_action_CXX=
13535 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13536    test -n "$runpath_var_CXX" || \
13537    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13538
13539   # We can hardcode non-existant directories.
13540   if test "$hardcode_direct_CXX" != no &&
13541      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13542      # have to relink, otherwise we might link with an installed library
13543      # when we should be linking with a yet-to-be-installed one
13544      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13545      test "$hardcode_minus_L_CXX" != no; then
13546     # Linking always hardcodes the temporary library directory.
13547     hardcode_action_CXX=relink
13548   else
13549     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13550     hardcode_action_CXX=immediate
13551   fi
13552 else
13553   # We cannot hardcode anything, or else we can only hardcode existing
13554   # directories.
13555   hardcode_action_CXX=unsupported
13556 fi
13557 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13558 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13559
13560 if test "$hardcode_action_CXX" = relink; then
13561   # Fast installation is not supported
13562   enable_fast_install=no
13563 elif test "$shlibpath_overrides_runpath" = yes ||
13564      test "$enable_shared" = no; then
13565   # Fast installation is not necessary
13566   enable_fast_install=needless
13567 fi
13568
13569
13570 # The else clause should only fire when bootstrapping the
13571 # libtool distribution, otherwise you forgot to ship ltmain.sh
13572 # with your package, and you will get complaints that there are
13573 # no rules to generate ltmain.sh.
13574 if test -f "$ltmain"; then
13575   # See if we are running on zsh, and set the options which allow our commands through
13576   # without removal of \ escapes.
13577   if test -n "${ZSH_VERSION+set}" ; then
13578     setopt NO_GLOB_SUBST
13579   fi
13580   # Now quote all the things that may contain metacharacters while being
13581   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13582   # variables and quote the copies for generation of the libtool script.
13583   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13584     SED SHELL STRIP \
13585     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13586     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13587     deplibs_check_method reload_flag reload_cmds need_locks \
13588     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13589     lt_cv_sys_global_symbol_to_c_name_address \
13590     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13591     old_postinstall_cmds old_postuninstall_cmds \
13592     compiler_CXX \
13593     CC_CXX \
13594     LD_CXX \
13595     lt_prog_compiler_wl_CXX \
13596     lt_prog_compiler_pic_CXX \
13597     lt_prog_compiler_static_CXX \
13598     lt_prog_compiler_no_builtin_flag_CXX \
13599     export_dynamic_flag_spec_CXX \
13600     thread_safe_flag_spec_CXX \
13601     whole_archive_flag_spec_CXX \
13602     enable_shared_with_static_runtimes_CXX \
13603     old_archive_cmds_CXX \
13604     old_archive_from_new_cmds_CXX \
13605     predep_objects_CXX \
13606     postdep_objects_CXX \
13607     predeps_CXX \
13608     postdeps_CXX \
13609     compiler_lib_search_path_CXX \
13610     compiler_lib_search_dirs_CXX \
13611     archive_cmds_CXX \
13612     archive_expsym_cmds_CXX \
13613     postinstall_cmds_CXX \
13614     postuninstall_cmds_CXX \
13615     old_archive_from_expsyms_cmds_CXX \
13616     allow_undefined_flag_CXX \
13617     no_undefined_flag_CXX \
13618     export_symbols_cmds_CXX \
13619     hardcode_libdir_flag_spec_CXX \
13620     hardcode_libdir_flag_spec_ld_CXX \
13621     hardcode_libdir_separator_CXX \
13622     hardcode_automatic_CXX \
13623     module_cmds_CXX \
13624     module_expsym_cmds_CXX \
13625     lt_cv_prog_compiler_c_o_CXX \
13626     fix_srcfile_path_CXX \
13627     exclude_expsyms_CXX \
13628     include_expsyms_CXX; do
13629
13630     case $var in
13631     old_archive_cmds_CXX | \
13632     old_archive_from_new_cmds_CXX | \
13633     archive_cmds_CXX | \
13634     archive_expsym_cmds_CXX | \
13635     module_cmds_CXX | \
13636     module_expsym_cmds_CXX | \
13637     old_archive_from_expsyms_cmds_CXX | \
13638     export_symbols_cmds_CXX | \
13639     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13640     postinstall_cmds | postuninstall_cmds | \
13641     old_postinstall_cmds | old_postuninstall_cmds | \
13642     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13643       # Double-quote double-evaled strings.
13644       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13645       ;;
13646     *)
13647       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13648       ;;
13649     esac
13650   done
13651
13652   case $lt_echo in
13653   *'\$0 --fallback-echo"')
13654     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13655     ;;
13656   esac
13657
13658 cfgfile="$ofile"
13659
13660   cat <<__EOF__ >> "$cfgfile"
13661 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13662
13663 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13664
13665 # Shell to use when invoking shell scripts.
13666 SHELL=$lt_SHELL
13667
13668 # Whether or not to build shared libraries.
13669 build_libtool_libs=$enable_shared
13670
13671 # Whether or not to build static libraries.
13672 build_old_libs=$enable_static
13673
13674 # Whether or not to add -lc for building shared libraries.
13675 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13676
13677 # Whether or not to disallow shared libs when runtime libs are static
13678 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13679
13680 # Whether or not to optimize for fast installation.
13681 fast_install=$enable_fast_install
13682
13683 # The host system.
13684 host_alias=$host_alias
13685 host=$host
13686 host_os=$host_os
13687
13688 # The build system.
13689 build_alias=$build_alias
13690 build=$build
13691 build_os=$build_os
13692
13693 # An echo program that does not interpret backslashes.
13694 echo=$lt_echo
13695
13696 # The archiver.
13697 AR=$lt_AR
13698 AR_FLAGS=$lt_AR_FLAGS
13699
13700 # A C compiler.
13701 LTCC=$lt_LTCC
13702
13703 # LTCC compiler flags.
13704 LTCFLAGS=$lt_LTCFLAGS
13705
13706 # A language-specific compiler.
13707 CC=$lt_compiler_CXX
13708
13709 # Is the compiler the GNU C compiler?
13710 with_gcc=$GCC_CXX
13711
13712 # An ERE matcher.
13713 EGREP=$lt_EGREP
13714
13715 # The linker used to build libraries.
13716 LD=$lt_LD_CXX
13717
13718 # Whether we need hard or soft links.
13719 LN_S=$lt_LN_S
13720
13721 # A BSD-compatible nm program.
13722 NM=$lt_NM
13723
13724 # A symbol stripping program
13725 STRIP=$lt_STRIP
13726
13727 # Used to examine libraries when file_magic_cmd begins "file"
13728 MAGIC_CMD=$MAGIC_CMD
13729
13730 # Used on cygwin: DLL creation program.
13731 DLLTOOL="$DLLTOOL"
13732
13733 # Used on cygwin: object dumper.
13734 OBJDUMP="$OBJDUMP"
13735
13736 # Used on cygwin: assembler.
13737 AS="$AS"
13738
13739 # The name of the directory that contains temporary libtool files.
13740 objdir=$objdir
13741
13742 # How to create reloadable object files.
13743 reload_flag=$lt_reload_flag
13744 reload_cmds=$lt_reload_cmds
13745
13746 # How to pass a linker flag through the compiler.
13747 wl=$lt_lt_prog_compiler_wl_CXX
13748
13749 # Object file suffix (normally "o").
13750 objext="$ac_objext"
13751
13752 # Old archive suffix (normally "a").
13753 libext="$libext"
13754
13755 # Shared library suffix (normally ".so").
13756 shrext_cmds='$shrext_cmds'
13757
13758 # Executable file suffix (normally "").
13759 exeext="$exeext"
13760
13761 # Additional compiler flags for building library objects.
13762 pic_flag=$lt_lt_prog_compiler_pic_CXX
13763 pic_mode=$pic_mode
13764
13765 # What is the maximum length of a command?
13766 max_cmd_len=$lt_cv_sys_max_cmd_len
13767
13768 # Does compiler simultaneously support -c and -o options?
13769 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13770
13771 # Must we lock files when doing compilation?
13772 need_locks=$lt_need_locks
13773
13774 # Do we need the lib prefix for modules?
13775 need_lib_prefix=$need_lib_prefix
13776
13777 # Do we need a version for libraries?
13778 need_version=$need_version
13779
13780 # Whether dlopen is supported.
13781 dlopen_support=$enable_dlopen
13782
13783 # Whether dlopen of programs is supported.
13784 dlopen_self=$enable_dlopen_self
13785
13786 # Whether dlopen of statically linked programs is supported.
13787 dlopen_self_static=$enable_dlopen_self_static
13788
13789 # Compiler flag to prevent dynamic linking.
13790 link_static_flag=$lt_lt_prog_compiler_static_CXX
13791
13792 # Compiler flag to turn off builtin functions.
13793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13794
13795 # Compiler flag to allow reflexive dlopens.
13796 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13797
13798 # Compiler flag to generate shared objects directly from archives.
13799 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13800
13801 # Compiler flag to generate thread-safe objects.
13802 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13803
13804 # Library versioning type.
13805 version_type=$version_type
13806
13807 # Format of library name prefix.
13808 libname_spec=$lt_libname_spec
13809
13810 # List of archive names.  First name is the real one, the rest are links.
13811 # The last name is the one that the linker finds with -lNAME.
13812 library_names_spec=$lt_library_names_spec
13813
13814 # The coded name of the library, if different from the real name.
13815 soname_spec=$lt_soname_spec
13816
13817 # Commands used to build and install an old-style archive.
13818 RANLIB=$lt_RANLIB
13819 old_archive_cmds=$lt_old_archive_cmds_CXX
13820 old_postinstall_cmds=$lt_old_postinstall_cmds
13821 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13822
13823 # Create an old-style archive from a shared archive.
13824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13825
13826 # Create a temporary old-style archive to link instead of a shared archive.
13827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13828
13829 # Commands used to build and install a shared archive.
13830 archive_cmds=$lt_archive_cmds_CXX
13831 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13832 postinstall_cmds=$lt_postinstall_cmds
13833 postuninstall_cmds=$lt_postuninstall_cmds
13834
13835 # Commands used to build a loadable module (assumed same as above if empty)
13836 module_cmds=$lt_module_cmds_CXX
13837 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13838
13839 # Commands to strip libraries.
13840 old_striplib=$lt_old_striplib
13841 striplib=$lt_striplib
13842
13843 # Dependencies to place before the objects being linked to create a
13844 # shared library.
13845 predep_objects=$lt_predep_objects_CXX
13846
13847 # Dependencies to place after the objects being linked to create a
13848 # shared library.
13849 postdep_objects=$lt_postdep_objects_CXX
13850
13851 # Dependencies to place before the objects being linked to create a
13852 # shared library.
13853 predeps=$lt_predeps_CXX
13854
13855 # Dependencies to place after the objects being linked to create a
13856 # shared library.
13857 postdeps=$lt_postdeps_CXX
13858
13859 # The directories searched by this compiler when creating a shared
13860 # library
13861 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13862
13863 # The library search path used internally by the compiler when linking
13864 # a shared library.
13865 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13866
13867 # Method to check whether dependent libraries are shared objects.
13868 deplibs_check_method=$lt_deplibs_check_method
13869
13870 # Command to use when deplibs_check_method == file_magic.
13871 file_magic_cmd=$lt_file_magic_cmd
13872
13873 # Flag that allows shared libraries with undefined symbols to be built.
13874 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13875
13876 # Flag that forces no undefined symbols.
13877 no_undefined_flag=$lt_no_undefined_flag_CXX
13878
13879 # Commands used to finish a libtool library installation in a directory.
13880 finish_cmds=$lt_finish_cmds
13881
13882 # Same as above, but a single script fragment to be evaled but not shown.
13883 finish_eval=$lt_finish_eval
13884
13885 # Take the output of nm and produce a listing of raw symbols and C names.
13886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13887
13888 # Transform the output of nm in a proper C declaration
13889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13890
13891 # Transform the output of nm in a C name address pair
13892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13893
13894 # This is the shared library runtime path variable.
13895 runpath_var=$runpath_var
13896
13897 # This is the shared library path variable.
13898 shlibpath_var=$shlibpath_var
13899
13900 # Is shlibpath searched before the hard-coded library search path?
13901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13902
13903 # How to hardcode a shared library path into an executable.
13904 hardcode_action=$hardcode_action_CXX
13905
13906 # Whether we should hardcode library paths into libraries.
13907 hardcode_into_libs=$hardcode_into_libs
13908
13909 # Flag to hardcode \$libdir into a binary during linking.
13910 # This must work even if \$libdir does not exist.
13911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13912
13913 # If ld is used when linking, flag to hardcode \$libdir into
13914 # a binary during linking. This must work even if \$libdir does
13915 # not exist.
13916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13917
13918 # Whether we need a single -rpath flag with a separated argument.
13919 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13920
13921 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13922 # resulting binary.
13923 hardcode_direct=$hardcode_direct_CXX
13924
13925 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13926 # resulting binary.
13927 hardcode_minus_L=$hardcode_minus_L_CXX
13928
13929 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13930 # the resulting binary.
13931 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13932
13933 # Set to yes if building a shared library automatically hardcodes DIR into the library
13934 # and all subsequent libraries and executables linked against it.
13935 hardcode_automatic=$hardcode_automatic_CXX
13936
13937 # Variables whose values should be saved in libtool wrapper scripts and
13938 # restored at relink time.
13939 variables_saved_for_relink="$variables_saved_for_relink"
13940
13941 # Whether libtool must link a program against all its dependency libraries.
13942 link_all_deplibs=$link_all_deplibs_CXX
13943
13944 # Compile-time system search path for libraries
13945 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13946
13947 # Run-time system search path for libraries
13948 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13949
13950 # Fix the shell variable \$srcfile for the compiler.
13951 fix_srcfile_path=$lt_fix_srcfile_path
13952
13953 # Set to yes if exported symbols are required.
13954 always_export_symbols=$always_export_symbols_CXX
13955
13956 # The commands to list exported symbols.
13957 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13958
13959 # The commands to extract the exported symbol list from a shared archive.
13960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13961
13962 # Symbols that should not be listed in the preloaded symbols.
13963 exclude_expsyms=$lt_exclude_expsyms_CXX
13964
13965 # Symbols that must always be exported.
13966 include_expsyms=$lt_include_expsyms_CXX
13967
13968 # ### END LIBTOOL TAG CONFIG: $tagname
13969
13970 __EOF__
13971
13972
13973 else
13974   # If there is no Makefile yet, we rely on a make rule to execute
13975   # `config.status --recheck' to rerun these tests and create the
13976   # libtool script then.
13977   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13978   if test -f "$ltmain_in"; then
13979     test -f Makefile && make "$ltmain"
13980   fi
13981 fi
13982
13983
13984 ac_ext=c
13985 ac_cpp='$CPP $CPPFLAGS'
13986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13989
13990 CC=$lt_save_CC
13991 LDCXX=$LD
13992 LD=$lt_save_LD
13993 GCC=$lt_save_GCC
13994 with_gnu_ldcxx=$with_gnu_ld
13995 with_gnu_ld=$lt_save_with_gnu_ld
13996 lt_cv_path_LDCXX=$lt_cv_path_LD
13997 lt_cv_path_LD=$lt_save_path_LD
13998 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13999 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14000
14001         else
14002           tagname=""
14003         fi
14004         ;;
14005
14006       F77)
14007         if test -n "$F77" && test "X$F77" != "Xno"; then
14008
14009 ac_ext=f
14010 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14011 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14012 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14013
14014
14015 archive_cmds_need_lc_F77=no
14016 allow_undefined_flag_F77=
14017 always_export_symbols_F77=no
14018 archive_expsym_cmds_F77=
14019 export_dynamic_flag_spec_F77=
14020 hardcode_direct_F77=no
14021 hardcode_libdir_flag_spec_F77=
14022 hardcode_libdir_flag_spec_ld_F77=
14023 hardcode_libdir_separator_F77=
14024 hardcode_minus_L_F77=no
14025 hardcode_automatic_F77=no
14026 module_cmds_F77=
14027 module_expsym_cmds_F77=
14028 link_all_deplibs_F77=unknown
14029 old_archive_cmds_F77=$old_archive_cmds
14030 no_undefined_flag_F77=
14031 whole_archive_flag_spec_F77=
14032 enable_shared_with_static_runtimes_F77=no
14033
14034 # Source file extension for f77 test sources.
14035 ac_ext=f
14036
14037 # Object file extension for compiled f77 test sources.
14038 objext=o
14039 objext_F77=$objext
14040
14041 # Code to be used in simple compile tests
14042 lt_simple_compile_test_code="\
14043       subroutine t
14044       return
14045       end
14046 "
14047
14048 # Code to be used in simple link tests
14049 lt_simple_link_test_code="\
14050       program t
14051       end
14052 "
14053
14054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14055
14056 # If no C compiler was specified, use CC.
14057 LTCC=${LTCC-"$CC"}
14058
14059 # If no C compiler flags were specified, use CFLAGS.
14060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14061
14062 # Allow CC to be a program name with arguments.
14063 compiler=$CC
14064
14065
14066 # save warnings/boilerplate of simple test code
14067 ac_outfile=conftest.$ac_objext
14068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14070 _lt_compiler_boilerplate=`cat conftest.err`
14071 $rm conftest*
14072
14073 ac_outfile=conftest.$ac_objext
14074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14076 _lt_linker_boilerplate=`cat conftest.err`
14077 $rm -r conftest*
14078
14079
14080 # Allow CC to be a program name with arguments.
14081 lt_save_CC="$CC"
14082 CC=${F77-"f77"}
14083 compiler=$CC
14084 compiler_F77=$CC
14085 for cc_temp in $compiler""; do
14086   case $cc_temp in
14087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14089     \-*) ;;
14090     *) break;;
14091   esac
14092 done
14093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14094
14095
14096 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14097 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14098 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14099 echo "${ECHO_T}$can_build_shared" >&6; }
14100
14101 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14102 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14103 test "$can_build_shared" = "no" && enable_shared=no
14104
14105 # On AIX, shared libraries and static libraries use the same namespace, and
14106 # are all built from PIC.
14107 case $host_os in
14108 aix3*)
14109   test "$enable_shared" = yes && enable_static=no
14110   if test -n "$RANLIB"; then
14111     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14112     postinstall_cmds='$RANLIB $lib'
14113   fi
14114   ;;
14115 aix[4-9]*)
14116   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14117     test "$enable_shared" = yes && enable_static=no
14118   fi
14119   ;;
14120 esac
14121 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14122 echo "${ECHO_T}$enable_shared" >&6; }
14123
14124 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14125 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14126 # Make sure either enable_shared or enable_static is yes.
14127 test "$enable_shared" = yes || enable_static=yes
14128 { echo "$as_me:$LINENO: result: $enable_static" >&5
14129 echo "${ECHO_T}$enable_static" >&6; }
14130
14131 GCC_F77="$G77"
14132 LD_F77="$LD"
14133
14134 lt_prog_compiler_wl_F77=
14135 lt_prog_compiler_pic_F77=
14136 lt_prog_compiler_static_F77=
14137
14138 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14139 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14140
14141   if test "$GCC" = yes; then
14142     lt_prog_compiler_wl_F77='-Wl,'
14143     lt_prog_compiler_static_F77='-static'
14144
14145     case $host_os in
14146       aix*)
14147       # All AIX code is PIC.
14148       if test "$host_cpu" = ia64; then
14149         # AIX 5 now supports IA64 processor
14150         lt_prog_compiler_static_F77='-Bstatic'
14151       fi
14152       ;;
14153
14154     amigaos*)
14155       # FIXME: we need at least 68020 code to build shared libraries, but
14156       # adding the `-m68020' flag to GCC prevents building anything better,
14157       # like `-m68040'.
14158       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14159       ;;
14160
14161     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14162       # PIC is the default for these OSes.
14163       ;;
14164
14165     mingw* | cygwin* | pw32* | os2*)
14166       # This hack is so that the source file can tell whether it is being
14167       # built for inclusion in a dll (and should export symbols for example).
14168       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14169       # (--disable-auto-import) libraries
14170       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14171       ;;
14172
14173     darwin* | rhapsody*)
14174       # PIC is the default on this platform
14175       # Common symbols not allowed in MH_DYLIB files
14176       lt_prog_compiler_pic_F77='-fno-common'
14177       ;;
14178
14179     interix[3-9]*)
14180       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14181       # Instead, we relocate shared libraries at runtime.
14182       ;;
14183
14184     msdosdjgpp*)
14185       # Just because we use GCC doesn't mean we suddenly get shared libraries
14186       # on systems that don't support them.
14187       lt_prog_compiler_can_build_shared_F77=no
14188       enable_shared=no
14189       ;;
14190
14191     sysv4*MP*)
14192       if test -d /usr/nec; then
14193         lt_prog_compiler_pic_F77=-Kconform_pic
14194       fi
14195       ;;
14196
14197     hpux*)
14198       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14199       # not for PA HP-UX.
14200       case $host_cpu in
14201       hppa*64*|ia64*)
14202         # +Z the default
14203         ;;
14204       *)
14205         lt_prog_compiler_pic_F77='-fPIC'
14206         ;;
14207       esac
14208       ;;
14209
14210     *)
14211       lt_prog_compiler_pic_F77='-fPIC'
14212       ;;
14213     esac
14214   else
14215     # PORTME Check for flag to pass linker flags through the system compiler.
14216     case $host_os in
14217     aix*)
14218       lt_prog_compiler_wl_F77='-Wl,'
14219       if test "$host_cpu" = ia64; then
14220         # AIX 5 now supports IA64 processor
14221         lt_prog_compiler_static_F77='-Bstatic'
14222       else
14223         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14224       fi
14225       ;;
14226       darwin*)
14227         # PIC is the default on this platform
14228         # Common symbols not allowed in MH_DYLIB files
14229        case $cc_basename in
14230          xlc*)
14231          lt_prog_compiler_pic_F77='-qnocommon'
14232          lt_prog_compiler_wl_F77='-Wl,'
14233          ;;
14234        esac
14235        ;;
14236
14237     mingw* | cygwin* | pw32* | os2*)
14238       # This hack is so that the source file can tell whether it is being
14239       # built for inclusion in a dll (and should export symbols for example).
14240       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14241       ;;
14242
14243     hpux9* | hpux10* | hpux11*)
14244       lt_prog_compiler_wl_F77='-Wl,'
14245       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14246       # not for PA HP-UX.
14247       case $host_cpu in
14248       hppa*64*|ia64*)
14249         # +Z the default
14250         ;;
14251       *)
14252         lt_prog_compiler_pic_F77='+Z'
14253         ;;
14254       esac
14255       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14256       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14257       ;;
14258
14259     irix5* | irix6* | nonstopux*)
14260       lt_prog_compiler_wl_F77='-Wl,'
14261       # PIC (with -KPIC) is the default.
14262       lt_prog_compiler_static_F77='-non_shared'
14263       ;;
14264
14265     newsos6)
14266       lt_prog_compiler_pic_F77='-KPIC'
14267       lt_prog_compiler_static_F77='-Bstatic'
14268       ;;
14269
14270     linux* | k*bsd*-gnu)
14271       case $cc_basename in
14272       icc* | ecc*)
14273         lt_prog_compiler_wl_F77='-Wl,'
14274         lt_prog_compiler_pic_F77='-KPIC'
14275         lt_prog_compiler_static_F77='-static'
14276         ;;
14277       pgcc* | pgf77* | pgf90* | pgf95*)
14278         # Portland Group compilers (*not* the Pentium gcc compiler,
14279         # which looks to be a dead project)
14280         lt_prog_compiler_wl_F77='-Wl,'
14281         lt_prog_compiler_pic_F77='-fpic'
14282         lt_prog_compiler_static_F77='-Bstatic'
14283         ;;
14284       ccc*)
14285         lt_prog_compiler_wl_F77='-Wl,'
14286         # All Alpha code is PIC.
14287         lt_prog_compiler_static_F77='-non_shared'
14288         ;;
14289       *)
14290         case `$CC -V 2>&1 | sed 5q` in
14291         *Sun\ C*)
14292           # Sun C 5.9
14293           lt_prog_compiler_pic_F77='-KPIC'
14294           lt_prog_compiler_static_F77='-Bstatic'
14295           lt_prog_compiler_wl_F77='-Wl,'
14296           ;;
14297         *Sun\ F*)
14298           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14299           lt_prog_compiler_pic_F77='-KPIC'
14300           lt_prog_compiler_static_F77='-Bstatic'
14301           lt_prog_compiler_wl_F77=''
14302           ;;
14303         esac
14304         ;;
14305       esac
14306       ;;
14307
14308     osf3* | osf4* | osf5*)
14309       lt_prog_compiler_wl_F77='-Wl,'
14310       # All OSF/1 code is PIC.
14311       lt_prog_compiler_static_F77='-non_shared'
14312       ;;
14313
14314     rdos*)
14315       lt_prog_compiler_static_F77='-non_shared'
14316       ;;
14317
14318     solaris*)
14319       lt_prog_compiler_pic_F77='-KPIC'
14320       lt_prog_compiler_static_F77='-Bstatic'
14321       case $cc_basename in
14322       f77* | f90* | f95*)
14323         lt_prog_compiler_wl_F77='-Qoption ld ';;
14324       *)
14325         lt_prog_compiler_wl_F77='-Wl,';;
14326       esac
14327       ;;
14328
14329     sunos4*)
14330       lt_prog_compiler_wl_F77='-Qoption ld '
14331       lt_prog_compiler_pic_F77='-PIC'
14332       lt_prog_compiler_static_F77='-Bstatic'
14333       ;;
14334
14335     sysv4 | sysv4.2uw2* | sysv4.3*)
14336       lt_prog_compiler_wl_F77='-Wl,'
14337       lt_prog_compiler_pic_F77='-KPIC'
14338       lt_prog_compiler_static_F77='-Bstatic'
14339       ;;
14340
14341     sysv4*MP*)
14342       if test -d /usr/nec ;then
14343         lt_prog_compiler_pic_F77='-Kconform_pic'
14344         lt_prog_compiler_static_F77='-Bstatic'
14345       fi
14346       ;;
14347
14348     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14349       lt_prog_compiler_wl_F77='-Wl,'
14350       lt_prog_compiler_pic_F77='-KPIC'
14351       lt_prog_compiler_static_F77='-Bstatic'
14352       ;;
14353
14354     unicos*)
14355       lt_prog_compiler_wl_F77='-Wl,'
14356       lt_prog_compiler_can_build_shared_F77=no
14357       ;;
14358
14359     uts4*)
14360       lt_prog_compiler_pic_F77='-pic'
14361       lt_prog_compiler_static_F77='-Bstatic'
14362       ;;
14363
14364     *)
14365       lt_prog_compiler_can_build_shared_F77=no
14366       ;;
14367     esac
14368   fi
14369
14370 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14371 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14372
14373 #
14374 # Check to make sure the PIC flag actually works.
14375 #
14376 if test -n "$lt_prog_compiler_pic_F77"; then
14377
14378 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14379 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14380 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383   lt_cv_prog_compiler_pic_works_F77=no
14384   ac_outfile=conftest.$ac_objext
14385    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14386    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14387    # Insert the option either (1) after the last *FLAGS variable, or
14388    # (2) before a word containing "conftest.", or (3) at the end.
14389    # Note that $ac_compile itself does not contain backslashes and begins
14390    # with a dollar sign (not a hyphen), so the echo should work correctly.
14391    # The option is referenced via a variable to avoid confusing sed.
14392    lt_compile=`echo "$ac_compile" | $SED \
14393    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14394    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14395    -e 's:$: $lt_compiler_flag:'`
14396    (eval echo "\"\$as_me:14396: $lt_compile\"" >&5)
14397    (eval "$lt_compile" 2>conftest.err)
14398    ac_status=$?
14399    cat conftest.err >&5
14400    echo "$as_me:14400: \$? = $ac_status" >&5
14401    if (exit $ac_status) && test -s "$ac_outfile"; then
14402      # The compiler can only warn and ignore the option if not recognized
14403      # So say no if there are warnings other than the usual output.
14404      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14405      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14406      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14407        lt_cv_prog_compiler_pic_works_F77=yes
14408      fi
14409    fi
14410    $rm conftest*
14411
14412 fi
14413 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14414 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14415
14416 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14417     case $lt_prog_compiler_pic_F77 in
14418      "" | " "*) ;;
14419      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14420      esac
14421 else
14422     lt_prog_compiler_pic_F77=
14423      lt_prog_compiler_can_build_shared_F77=no
14424 fi
14425
14426 fi
14427 case $host_os in
14428   # For platforms which do not support PIC, -DPIC is meaningless:
14429   *djgpp*)
14430     lt_prog_compiler_pic_F77=
14431     ;;
14432   *)
14433     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14434     ;;
14435 esac
14436
14437 #
14438 # Check to make sure the static flag actually works.
14439 #
14440 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14441 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14442 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14443 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14444   echo $ECHO_N "(cached) $ECHO_C" >&6
14445 else
14446   lt_cv_prog_compiler_static_works_F77=no
14447    save_LDFLAGS="$LDFLAGS"
14448    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14449    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14450    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14451      # The linker can only warn and ignore the option if not recognized
14452      # So say no if there are warnings
14453      if test -s conftest.err; then
14454        # Append any errors to the config.log.
14455        cat conftest.err 1>&5
14456        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14457        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14458        if diff conftest.exp conftest.er2 >/dev/null; then
14459          lt_cv_prog_compiler_static_works_F77=yes
14460        fi
14461      else
14462        lt_cv_prog_compiler_static_works_F77=yes
14463      fi
14464    fi
14465    $rm -r conftest*
14466    LDFLAGS="$save_LDFLAGS"
14467
14468 fi
14469 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14470 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14471
14472 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14473     :
14474 else
14475     lt_prog_compiler_static_F77=
14476 fi
14477
14478
14479 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14480 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14481 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14482   echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484   lt_cv_prog_compiler_c_o_F77=no
14485    $rm -r conftest 2>/dev/null
14486    mkdir conftest
14487    cd conftest
14488    mkdir out
14489    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14490
14491    lt_compiler_flag="-o out/conftest2.$ac_objext"
14492    # Insert the option either (1) after the last *FLAGS variable, or
14493    # (2) before a word containing "conftest.", or (3) at the end.
14494    # Note that $ac_compile itself does not contain backslashes and begins
14495    # with a dollar sign (not a hyphen), so the echo should work correctly.
14496    lt_compile=`echo "$ac_compile" | $SED \
14497    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14498    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14499    -e 's:$: $lt_compiler_flag:'`
14500    (eval echo "\"\$as_me:14500: $lt_compile\"" >&5)
14501    (eval "$lt_compile" 2>out/conftest.err)
14502    ac_status=$?
14503    cat out/conftest.err >&5
14504    echo "$as_me:14504: \$? = $ac_status" >&5
14505    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14506    then
14507      # The compiler can only warn and ignore the option if not recognized
14508      # So say no if there are warnings
14509      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14510      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14511      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14512        lt_cv_prog_compiler_c_o_F77=yes
14513      fi
14514    fi
14515    chmod u+w . 2>&5
14516    $rm conftest*
14517    # SGI C++ compiler will create directory out/ii_files/ for
14518    # template instantiation
14519    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14520    $rm out/* && rmdir out
14521    cd ..
14522    rmdir conftest
14523    $rm conftest*
14524
14525 fi
14526 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14527 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14528
14529
14530 hard_links="nottested"
14531 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14532   # do not overwrite the value of need_locks provided by the user
14533   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14534 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14535   hard_links=yes
14536   $rm conftest*
14537   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14538   touch conftest.a
14539   ln conftest.a conftest.b 2>&5 || hard_links=no
14540   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14541   { echo "$as_me:$LINENO: result: $hard_links" >&5
14542 echo "${ECHO_T}$hard_links" >&6; }
14543   if test "$hard_links" = no; then
14544     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14545 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14546     need_locks=warn
14547   fi
14548 else
14549   need_locks=no
14550 fi
14551
14552 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14553 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14554
14555   runpath_var=
14556   allow_undefined_flag_F77=
14557   enable_shared_with_static_runtimes_F77=no
14558   archive_cmds_F77=
14559   archive_expsym_cmds_F77=
14560   old_archive_From_new_cmds_F77=
14561   old_archive_from_expsyms_cmds_F77=
14562   export_dynamic_flag_spec_F77=
14563   whole_archive_flag_spec_F77=
14564   thread_safe_flag_spec_F77=
14565   hardcode_libdir_flag_spec_F77=
14566   hardcode_libdir_flag_spec_ld_F77=
14567   hardcode_libdir_separator_F77=
14568   hardcode_direct_F77=no
14569   hardcode_minus_L_F77=no
14570   hardcode_shlibpath_var_F77=unsupported
14571   link_all_deplibs_F77=unknown
14572   hardcode_automatic_F77=no
14573   module_cmds_F77=
14574   module_expsym_cmds_F77=
14575   always_export_symbols_F77=no
14576   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14577   # include_expsyms should be a list of space-separated symbols to be *always*
14578   # included in the symbol list
14579   include_expsyms_F77=
14580   # exclude_expsyms can be an extended regexp of symbols to exclude
14581   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14582   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14583   # as well as any symbol that contains `d'.
14584   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14585   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14586   # platforms (ab)use it in PIC code, but their linkers get confused if
14587   # the symbol is explicitly referenced.  Since portable code cannot
14588   # rely on this symbol name, it's probably fine to never include it in
14589   # preloaded symbol tables.
14590   # Exclude shared library initialization/finalization symbols.
14591   extract_expsyms_cmds=
14592   # Just being paranoid about ensuring that cc_basename is set.
14593   for cc_temp in $compiler""; do
14594   case $cc_temp in
14595     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14596     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14597     \-*) ;;
14598     *) break;;
14599   esac
14600 done
14601 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14602
14603   case $host_os in
14604   cygwin* | mingw* | pw32*)
14605     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14606     # When not using gcc, we currently assume that we are using
14607     # Microsoft Visual C++.
14608     if test "$GCC" != yes; then
14609       with_gnu_ld=no
14610     fi
14611     ;;
14612   interix*)
14613     # we just hope/assume this is gcc and not c89 (= MSVC++)
14614     with_gnu_ld=yes
14615     ;;
14616   openbsd*)
14617     with_gnu_ld=no
14618     ;;
14619   esac
14620
14621   ld_shlibs_F77=yes
14622   if test "$with_gnu_ld" = yes; then
14623     # If archive_cmds runs LD, not CC, wlarc should be empty
14624     wlarc='${wl}'
14625
14626     # Set some defaults for GNU ld with shared library support. These
14627     # are reset later if shared libraries are not supported. Putting them
14628     # here allows them to be overridden if necessary.
14629     runpath_var=LD_RUN_PATH
14630     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14631     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14632     # ancient GNU ld didn't support --whole-archive et. al.
14633     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14634         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14635       else
14636         whole_archive_flag_spec_F77=
14637     fi
14638     supports_anon_versioning=no
14639     case `$LD -v 2>/dev/null` in
14640       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14641       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14642       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14643       *\ 2.11.*) ;; # other 2.11 versions
14644       *) supports_anon_versioning=yes ;;
14645     esac
14646
14647     # See if GNU ld supports shared libraries.
14648     case $host_os in
14649     aix[3-9]*)
14650       # On AIX/PPC, the GNU linker is very broken
14651       if test "$host_cpu" != ia64; then
14652         ld_shlibs_F77=no
14653         cat <<EOF 1>&2
14654
14655 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14656 *** to be unable to reliably create shared libraries on AIX.
14657 *** Therefore, libtool is disabling shared libraries support.  If you
14658 *** really care for shared libraries, you may want to modify your PATH
14659 *** so that a non-GNU linker is found, and then restart.
14660
14661 EOF
14662       fi
14663       ;;
14664
14665     amigaos*)
14666       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)'
14667       hardcode_libdir_flag_spec_F77='-L$libdir'
14668       hardcode_minus_L_F77=yes
14669
14670       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14671       # that the semantics of dynamic libraries on AmigaOS, at least up
14672       # to version 4, is to share data among multiple programs linked
14673       # with the same dynamic library.  Since this doesn't match the
14674       # behavior of shared libraries on other platforms, we can't use
14675       # them.
14676       ld_shlibs_F77=no
14677       ;;
14678
14679     beos*)
14680       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14681         allow_undefined_flag_F77=unsupported
14682         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14683         # support --undefined.  This deserves some investigation.  FIXME
14684         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14685       else
14686         ld_shlibs_F77=no
14687       fi
14688       ;;
14689
14690     cygwin* | mingw* | pw32*)
14691       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14692       # as there is no search path for DLLs.
14693       hardcode_libdir_flag_spec_F77='-L$libdir'
14694       allow_undefined_flag_F77=unsupported
14695       always_export_symbols_F77=no
14696       enable_shared_with_static_runtimes_F77=yes
14697       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14698
14699       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14700         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14701         # If the export-symbols file already is a .def file (1st line
14702         # is EXPORTS), use it as is; otherwise, prepend...
14703         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14704           cp $export_symbols $output_objdir/$soname.def;
14705         else
14706           echo EXPORTS > $output_objdir/$soname.def;
14707           cat $export_symbols >> $output_objdir/$soname.def;
14708         fi~
14709         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14710       else
14711         ld_shlibs_F77=no
14712       fi
14713       ;;
14714
14715     interix[3-9]*)
14716       hardcode_direct_F77=no
14717       hardcode_shlibpath_var_F77=no
14718       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14719       export_dynamic_flag_spec_F77='${wl}-E'
14720       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14721       # Instead, shared libraries are loaded at an image base (0x10000000 by
14722       # default) and relocated if they conflict, which is a slow very memory
14723       # consuming and fragmenting process.  To avoid this, we pick a random,
14724       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14725       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14726       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'
14727       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'
14728       ;;
14729
14730     gnu* | linux* | k*bsd*-gnu)
14731       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14732         tmp_addflag=
14733         case $cc_basename,$host_cpu in
14734         pgcc*)                          # Portland Group C compiler
14735           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'
14736           tmp_addflag=' $pic_flag'
14737           ;;
14738         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14739           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'
14740           tmp_addflag=' $pic_flag -Mnomain' ;;
14741         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14742           tmp_addflag=' -i_dynamic' ;;
14743         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14744           tmp_addflag=' -i_dynamic -nofor_main' ;;
14745         ifc* | ifort*)                  # Intel Fortran compiler
14746           tmp_addflag=' -nofor_main' ;;
14747         esac
14748         case `$CC -V 2>&1 | sed 5q` in
14749         *Sun\ C*)                       # Sun C 5.9
14750           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'
14751           tmp_sharedflag='-G' ;;
14752         *Sun\ F*)                       # Sun Fortran 8.3
14753           tmp_sharedflag='-G' ;;
14754         *)
14755           tmp_sharedflag='-shared' ;;
14756         esac
14757         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758
14759         if test $supports_anon_versioning = yes; then
14760           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14761   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14762   $echo "local: *; };" >> $output_objdir/$libname.ver~
14763           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14764         fi
14765         link_all_deplibs_F77=no
14766       else
14767         ld_shlibs_F77=no
14768       fi
14769       ;;
14770
14771     netbsd* | netbsdelf*-gnu)
14772       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14773         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14774         wlarc=
14775       else
14776         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14777         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14778       fi
14779       ;;
14780
14781     solaris*)
14782       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14783         ld_shlibs_F77=no
14784         cat <<EOF 1>&2
14785
14786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14787 *** create shared libraries on Solaris systems.  Therefore, libtool
14788 *** is disabling shared libraries support.  We urge you to upgrade GNU
14789 *** binutils to release 2.9.1 or newer.  Another option is to modify
14790 *** your PATH or compiler configuration so that the native linker is
14791 *** used, and then restart.
14792
14793 EOF
14794       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14795         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14796         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14797       else
14798         ld_shlibs_F77=no
14799       fi
14800       ;;
14801
14802     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14803       case `$LD -v 2>&1` in
14804         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14805         ld_shlibs_F77=no
14806         cat <<_LT_EOF 1>&2
14807
14808 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14809 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14810 *** is disabling shared libraries support.  We urge you to upgrade GNU
14811 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14812 *** your PATH or compiler configuration so that the native linker is
14813 *** used, and then restart.
14814
14815 _LT_EOF
14816         ;;
14817         *)
14818           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14819             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14820             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14821             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14822           else
14823             ld_shlibs_F77=no
14824           fi
14825         ;;
14826       esac
14827       ;;
14828
14829     sunos4*)
14830       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14831       wlarc=
14832       hardcode_direct_F77=yes
14833       hardcode_shlibpath_var_F77=no
14834       ;;
14835
14836     *)
14837       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14838         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14839         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14840       else
14841         ld_shlibs_F77=no
14842       fi
14843       ;;
14844     esac
14845
14846     if test "$ld_shlibs_F77" = no; then
14847       runpath_var=
14848       hardcode_libdir_flag_spec_F77=
14849       export_dynamic_flag_spec_F77=
14850       whole_archive_flag_spec_F77=
14851     fi
14852   else
14853     # PORTME fill in a description of your system's linker (not GNU ld)
14854     case $host_os in
14855     aix3*)
14856       allow_undefined_flag_F77=unsupported
14857       always_export_symbols_F77=yes
14858       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'
14859       # Note: this linker hardcodes the directories in LIBPATH if there
14860       # are no directories specified by -L.
14861       hardcode_minus_L_F77=yes
14862       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14863         # Neither direct hardcoding nor static linking is supported with a
14864         # broken collect2.
14865         hardcode_direct_F77=unsupported
14866       fi
14867       ;;
14868
14869     aix[4-9]*)
14870       if test "$host_cpu" = ia64; then
14871         # On IA64, the linker does run time linking by default, so we don't
14872         # have to do anything special.
14873         aix_use_runtimelinking=no
14874         exp_sym_flag='-Bexport'
14875         no_entry_flag=""
14876       else
14877         # If we're using GNU nm, then we don't want the "-C" option.
14878         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14879         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14880           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'
14881         else
14882           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'
14883         fi
14884         aix_use_runtimelinking=no
14885
14886         # Test if we are trying to use run time linking or normal
14887         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14888         # need to do runtime linking.
14889         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14890           for ld_flag in $LDFLAGS; do
14891           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14892             aix_use_runtimelinking=yes
14893             break
14894           fi
14895           done
14896           ;;
14897         esac
14898
14899         exp_sym_flag='-bexport'
14900         no_entry_flag='-bnoentry'
14901       fi
14902
14903       # When large executables or shared objects are built, AIX ld can
14904       # have problems creating the table of contents.  If linking a library
14905       # or program results in "error TOC overflow" add -mminimal-toc to
14906       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14907       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14908
14909       archive_cmds_F77=''
14910       hardcode_direct_F77=yes
14911       hardcode_libdir_separator_F77=':'
14912       link_all_deplibs_F77=yes
14913
14914       if test "$GCC" = yes; then
14915         case $host_os in aix4.[012]|aix4.[012].*)
14916         # We only want to do this on AIX 4.2 and lower, the check
14917         # below for broken collect2 doesn't work under 4.3+
14918           collect2name=`${CC} -print-prog-name=collect2`
14919           if test -f "$collect2name" && \
14920            strings "$collect2name" | grep resolve_lib_name >/dev/null
14921           then
14922           # We have reworked collect2
14923           :
14924           else
14925           # We have old collect2
14926           hardcode_direct_F77=unsupported
14927           # It fails to find uninstalled libraries when the uninstalled
14928           # path is not listed in the libpath.  Setting hardcode_minus_L
14929           # to unsupported forces relinking
14930           hardcode_minus_L_F77=yes
14931           hardcode_libdir_flag_spec_F77='-L$libdir'
14932           hardcode_libdir_separator_F77=
14933           fi
14934           ;;
14935         esac
14936         shared_flag='-shared'
14937         if test "$aix_use_runtimelinking" = yes; then
14938           shared_flag="$shared_flag "'${wl}-G'
14939         fi
14940       else
14941         # not using gcc
14942         if test "$host_cpu" = ia64; then
14943         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14944         # chokes on -Wl,-G. The following line is correct:
14945           shared_flag='-G'
14946         else
14947           if test "$aix_use_runtimelinking" = yes; then
14948             shared_flag='${wl}-G'
14949           else
14950             shared_flag='${wl}-bM:SRE'
14951           fi
14952         fi
14953       fi
14954
14955       # It seems that -bexpall does not export symbols beginning with
14956       # underscore (_), so it is better to generate a list of symbols to export.
14957       always_export_symbols_F77=yes
14958       if test "$aix_use_runtimelinking" = yes; then
14959         # Warning - without using the other runtime loading flags (-brtl),
14960         # -berok will link without error, but may produce a broken library.
14961         allow_undefined_flag_F77='-berok'
14962        # Determine the default libpath from the value encoded in an empty executable.
14963        cat >conftest.$ac_ext <<_ACEOF
14964       program main
14965
14966       end
14967 _ACEOF
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (ac_try="$ac_link"
14970 case "(($ac_try" in
14971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972   *) ac_try_echo=$ac_try;;
14973 esac
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975   (eval "$ac_link") 2>conftest.er1
14976   ac_status=$?
14977   grep -v '^ *+' conftest.er1 >conftest.err
14978   rm -f conftest.er1
14979   cat conftest.err >&5
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } && {
14982          test -z "$ac_f77_werror_flag" ||
14983          test ! -s conftest.err
14984        } && test -s conftest$ac_exeext &&
14985        $as_test_x conftest$ac_exeext; then
14986
14987 lt_aix_libpath_sed='
14988     /Import File Strings/,/^$/ {
14989         /^0/ {
14990             s/^0  *\(.*\)$/\1/
14991             p
14992         }
14993     }'
14994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14995 # Check for a 64-bit object if we didn't find anything.
14996 if test -z "$aix_libpath"; then
14997   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14998 fi
14999 else
15000   echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003
15004 fi
15005
15006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15007       conftest$ac_exeext conftest.$ac_ext
15008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15009
15010        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15011         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"
15012        else
15013         if test "$host_cpu" = ia64; then
15014           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15015           allow_undefined_flag_F77="-z nodefs"
15016           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"
15017         else
15018          # Determine the default libpath from the value encoded in an empty executable.
15019          cat >conftest.$ac_ext <<_ACEOF
15020       program main
15021
15022       end
15023 _ACEOF
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (ac_try="$ac_link"
15026 case "(($ac_try" in
15027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028   *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031   (eval "$ac_link") 2>conftest.er1
15032   ac_status=$?
15033   grep -v '^ *+' conftest.er1 >conftest.err
15034   rm -f conftest.er1
15035   cat conftest.err >&5
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); } && {
15038          test -z "$ac_f77_werror_flag" ||
15039          test ! -s conftest.err
15040        } && test -s conftest$ac_exeext &&
15041        $as_test_x conftest$ac_exeext; then
15042
15043 lt_aix_libpath_sed='
15044     /Import File Strings/,/^$/ {
15045         /^0/ {
15046             s/^0  *\(.*\)$/\1/
15047             p
15048         }
15049     }'
15050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15051 # Check for a 64-bit object if we didn't find anything.
15052 if test -z "$aix_libpath"; then
15053   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15054 fi
15055 else
15056   echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15058
15059
15060 fi
15061
15062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15063       conftest$ac_exeext conftest.$ac_ext
15064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15065
15066          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15067           # Warning - without using the other run time loading flags,
15068           # -berok will link without error, but may produce a broken library.
15069           no_undefined_flag_F77=' ${wl}-bernotok'
15070           allow_undefined_flag_F77=' ${wl}-berok'
15071           # Exported symbols can be pulled into shared objects from archives
15072           whole_archive_flag_spec_F77='$convenience'
15073           archive_cmds_need_lc_F77=yes
15074           # This is similar to how AIX traditionally builds its shared libraries.
15075           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'
15076         fi
15077       fi
15078       ;;
15079
15080     amigaos*)
15081       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)'
15082       hardcode_libdir_flag_spec_F77='-L$libdir'
15083       hardcode_minus_L_F77=yes
15084       # see comment about different semantics on the GNU ld section
15085       ld_shlibs_F77=no
15086       ;;
15087
15088     bsdi[45]*)
15089       export_dynamic_flag_spec_F77=-rdynamic
15090       ;;
15091
15092     cygwin* | mingw* | pw32*)
15093       # When not using gcc, we currently assume that we are using
15094       # Microsoft Visual C++.
15095       # hardcode_libdir_flag_spec is actually meaningless, as there is
15096       # no search path for DLLs.
15097       hardcode_libdir_flag_spec_F77=' '
15098       allow_undefined_flag_F77=unsupported
15099       # Tell ltmain to make .lib files, not .a files.
15100       libext=lib
15101       # Tell ltmain to make .dll files, not .so files.
15102       shrext_cmds=".dll"
15103       # FIXME: Setting linknames here is a bad hack.
15104       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15105       # The linker will automatically build a .lib file if we build a DLL.
15106       old_archive_From_new_cmds_F77='true'
15107       # FIXME: Should let the user specify the lib program.
15108       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15109       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15110       enable_shared_with_static_runtimes_F77=yes
15111       ;;
15112
15113     darwin* | rhapsody*)
15114       case $host_os in
15115         rhapsody* | darwin1.[012])
15116          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15117          ;;
15118        *) # Darwin 1.3 on
15119          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15120            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15121          else
15122            case ${MACOSX_DEPLOYMENT_TARGET} in
15123              10.[012])
15124                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15125                ;;
15126              10.*)
15127                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15128                ;;
15129            esac
15130          fi
15131          ;;
15132       esac
15133       archive_cmds_need_lc_F77=no
15134       hardcode_direct_F77=no
15135       hardcode_automatic_F77=yes
15136       hardcode_shlibpath_var_F77=unsupported
15137       whole_archive_flag_spec_F77=''
15138       link_all_deplibs_F77=yes
15139     if test "$GCC" = yes ; then
15140         output_verbose_link_cmd='echo'
15141         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}"
15142         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15143         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}"
15144         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}"
15145     else
15146       case $cc_basename in
15147         xlc*)
15148          output_verbose_link_cmd='echo'
15149          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15150          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15151           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15152          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}'
15153           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}'
15154           ;;
15155        *)
15156          ld_shlibs_F77=no
15157           ;;
15158       esac
15159     fi
15160       ;;
15161
15162     dgux*)
15163       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15164       hardcode_libdir_flag_spec_F77='-L$libdir'
15165       hardcode_shlibpath_var_F77=no
15166       ;;
15167
15168     freebsd1*)
15169       ld_shlibs_F77=no
15170       ;;
15171
15172     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15173     # support.  Future versions do this automatically, but an explicit c++rt0.o
15174     # does not break anything, and helps significantly (at the cost of a little
15175     # extra space).
15176     freebsd2.2*)
15177       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15178       hardcode_libdir_flag_spec_F77='-R$libdir'
15179       hardcode_direct_F77=yes
15180       hardcode_shlibpath_var_F77=no
15181       ;;
15182
15183     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15184     freebsd2*)
15185       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15186       hardcode_direct_F77=yes
15187       hardcode_minus_L_F77=yes
15188       hardcode_shlibpath_var_F77=no
15189       ;;
15190
15191     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15192     freebsd* | dragonfly*)
15193       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15194       hardcode_libdir_flag_spec_F77='-R$libdir'
15195       hardcode_direct_F77=yes
15196       hardcode_shlibpath_var_F77=no
15197       ;;
15198
15199     hpux9*)
15200       if test "$GCC" = yes; then
15201         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'
15202       else
15203         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'
15204       fi
15205       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15206       hardcode_libdir_separator_F77=:
15207       hardcode_direct_F77=yes
15208
15209       # hardcode_minus_L: Not really in the search PATH,
15210       # but as the default location of the library.
15211       hardcode_minus_L_F77=yes
15212       export_dynamic_flag_spec_F77='${wl}-E'
15213       ;;
15214
15215     hpux10*)
15216       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15217         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15218       else
15219         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15220       fi
15221       if test "$with_gnu_ld" = no; then
15222         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15223         hardcode_libdir_separator_F77=:
15224
15225         hardcode_direct_F77=yes
15226         export_dynamic_flag_spec_F77='${wl}-E'
15227
15228         # hardcode_minus_L: Not really in the search PATH,
15229         # but as the default location of the library.
15230         hardcode_minus_L_F77=yes
15231       fi
15232       ;;
15233
15234     hpux11*)
15235       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15236         case $host_cpu in
15237         hppa*64*)
15238           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15239           ;;
15240         ia64*)
15241           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15242           ;;
15243         *)
15244           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15245           ;;
15246         esac
15247       else
15248         case $host_cpu in
15249         hppa*64*)
15250           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15251           ;;
15252         ia64*)
15253           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15254           ;;
15255         *)
15256           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15257           ;;
15258         esac
15259       fi
15260       if test "$with_gnu_ld" = no; then
15261         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15262         hardcode_libdir_separator_F77=:
15263
15264         case $host_cpu in
15265         hppa*64*|ia64*)
15266           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15267           hardcode_direct_F77=no
15268           hardcode_shlibpath_var_F77=no
15269           ;;
15270         *)
15271           hardcode_direct_F77=yes
15272           export_dynamic_flag_spec_F77='${wl}-E'
15273
15274           # hardcode_minus_L: Not really in the search PATH,
15275           # but as the default location of the library.
15276           hardcode_minus_L_F77=yes
15277           ;;
15278         esac
15279       fi
15280       ;;
15281
15282     irix5* | irix6* | nonstopux*)
15283       if test "$GCC" = yes; then
15284         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'
15285       else
15286         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'
15287         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15288       fi
15289       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15290       hardcode_libdir_separator_F77=:
15291       link_all_deplibs_F77=yes
15292       ;;
15293
15294     netbsd* | netbsdelf*-gnu)
15295       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15296         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15297       else
15298         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15299       fi
15300       hardcode_libdir_flag_spec_F77='-R$libdir'
15301       hardcode_direct_F77=yes
15302       hardcode_shlibpath_var_F77=no
15303       ;;
15304
15305     newsos6)
15306       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15307       hardcode_direct_F77=yes
15308       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15309       hardcode_libdir_separator_F77=:
15310       hardcode_shlibpath_var_F77=no
15311       ;;
15312
15313     openbsd*)
15314       if test -f /usr/libexec/ld.so; then
15315         hardcode_direct_F77=yes
15316         hardcode_shlibpath_var_F77=no
15317         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15318           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15319           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15320           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15321           export_dynamic_flag_spec_F77='${wl}-E'
15322         else
15323           case $host_os in
15324            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15325              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15326              hardcode_libdir_flag_spec_F77='-R$libdir'
15327              ;;
15328            *)
15329              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15330              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15331              ;;
15332           esac
15333         fi
15334       else
15335         ld_shlibs_F77=no
15336       fi
15337       ;;
15338
15339     os2*)
15340       hardcode_libdir_flag_spec_F77='-L$libdir'
15341       hardcode_minus_L_F77=yes
15342       allow_undefined_flag_F77=unsupported
15343       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'
15344       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15345       ;;
15346
15347     osf3*)
15348       if test "$GCC" = yes; then
15349         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15350         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'
15351       else
15352         allow_undefined_flag_F77=' -expect_unresolved \*'
15353         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'
15354       fi
15355       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15356       hardcode_libdir_separator_F77=:
15357       ;;
15358
15359     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15360       if test "$GCC" = yes; then
15361         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15362         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'
15363         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15364       else
15365         allow_undefined_flag_F77=' -expect_unresolved \*'
15366         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'
15367         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~
15368         $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'
15369
15370         # Both c and cxx compiler support -rpath directly
15371         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15372       fi
15373       hardcode_libdir_separator_F77=:
15374       ;;
15375
15376     solaris*)
15377       no_undefined_flag_F77=' -z text'
15378       if test "$GCC" = yes; then
15379         wlarc='${wl}'
15380         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15381         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15382           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15383       else
15384         wlarc=''
15385         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15386         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15387         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15388       fi
15389       hardcode_libdir_flag_spec_F77='-R$libdir'
15390       hardcode_shlibpath_var_F77=no
15391       case $host_os in
15392       solaris2.[0-5] | solaris2.[0-5].*) ;;
15393       *)
15394         # The compiler driver will combine and reorder linker options,
15395         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15396         # but is careful enough not to reorder.
15397         # Supported since Solaris 2.6 (maybe 2.5.1?)
15398         if test "$GCC" = yes; then
15399           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15400         else
15401           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15402         fi
15403         ;;
15404       esac
15405       link_all_deplibs_F77=yes
15406       ;;
15407
15408     sunos4*)
15409       if test "x$host_vendor" = xsequent; then
15410         # Use $CC to link under sequent, because it throws in some extra .o
15411         # files that make .init and .fini sections work.
15412         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15413       else
15414         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15415       fi
15416       hardcode_libdir_flag_spec_F77='-L$libdir'
15417       hardcode_direct_F77=yes
15418       hardcode_minus_L_F77=yes
15419       hardcode_shlibpath_var_F77=no
15420       ;;
15421
15422     sysv4)
15423       case $host_vendor in
15424         sni)
15425           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15426           hardcode_direct_F77=yes # is this really true???
15427         ;;
15428         siemens)
15429           ## LD is ld it makes a PLAMLIB
15430           ## CC just makes a GrossModule.
15431           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15432           reload_cmds_F77='$CC -r -o $output$reload_objs'
15433           hardcode_direct_F77=no
15434         ;;
15435         motorola)
15436           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15437           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15438         ;;
15439       esac
15440       runpath_var='LD_RUN_PATH'
15441       hardcode_shlibpath_var_F77=no
15442       ;;
15443
15444     sysv4.3*)
15445       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446       hardcode_shlibpath_var_F77=no
15447       export_dynamic_flag_spec_F77='-Bexport'
15448       ;;
15449
15450     sysv4*MP*)
15451       if test -d /usr/nec; then
15452         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453         hardcode_shlibpath_var_F77=no
15454         runpath_var=LD_RUN_PATH
15455         hardcode_runpath_var=yes
15456         ld_shlibs_F77=yes
15457       fi
15458       ;;
15459
15460     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15461       no_undefined_flag_F77='${wl}-z,text'
15462       archive_cmds_need_lc_F77=no
15463       hardcode_shlibpath_var_F77=no
15464       runpath_var='LD_RUN_PATH'
15465
15466       if test "$GCC" = yes; then
15467         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15468         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15469       else
15470         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15471         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15472       fi
15473       ;;
15474
15475     sysv5* | sco3.2v5* | sco5v6*)
15476       # Note: We can NOT use -z defs as we might desire, because we do not
15477       # link with -lc, and that would cause any symbols used from libc to
15478       # always be unresolved, which means just about no library would
15479       # ever link correctly.  If we're not using GNU ld we use -z text
15480       # though, which does catch some bad symbols but isn't as heavy-handed
15481       # as -z defs.
15482       no_undefined_flag_F77='${wl}-z,text'
15483       allow_undefined_flag_F77='${wl}-z,nodefs'
15484       archive_cmds_need_lc_F77=no
15485       hardcode_shlibpath_var_F77=no
15486       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15487       hardcode_libdir_separator_F77=':'
15488       link_all_deplibs_F77=yes
15489       export_dynamic_flag_spec_F77='${wl}-Bexport'
15490       runpath_var='LD_RUN_PATH'
15491
15492       if test "$GCC" = yes; then
15493         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15494         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15495       else
15496         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15497         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15498       fi
15499       ;;
15500
15501     uts4*)
15502       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15503       hardcode_libdir_flag_spec_F77='-L$libdir'
15504       hardcode_shlibpath_var_F77=no
15505       ;;
15506
15507     *)
15508       ld_shlibs_F77=no
15509       ;;
15510     esac
15511   fi
15512
15513 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15514 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15515 test "$ld_shlibs_F77" = no && can_build_shared=no
15516
15517 #
15518 # Do we need to explicitly link libc?
15519 #
15520 case "x$archive_cmds_need_lc_F77" in
15521 x|xyes)
15522   # Assume -lc should be added
15523   archive_cmds_need_lc_F77=yes
15524
15525   if test "$enable_shared" = yes && test "$GCC" = yes; then
15526     case $archive_cmds_F77 in
15527     *'~'*)
15528       # FIXME: we may have to deal with multi-command sequences.
15529       ;;
15530     '$CC '*)
15531       # Test whether the compiler implicitly links with -lc since on some
15532       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15533       # to ld, don't add -lc before -lgcc.
15534       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15535 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15536       $rm conftest*
15537       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15538
15539       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15540   (eval $ac_compile) 2>&5
15541   ac_status=$?
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); } 2>conftest.err; then
15544         soname=conftest
15545         lib=conftest
15546         libobjs=conftest.$ac_objext
15547         deplibs=
15548         wl=$lt_prog_compiler_wl_F77
15549         pic_flag=$lt_prog_compiler_pic_F77
15550         compiler_flags=-v
15551         linker_flags=-v
15552         verstring=
15553         output_objdir=.
15554         libname=conftest
15555         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15556         allow_undefined_flag_F77=
15557         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15558   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15559   ac_status=$?
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); }
15562         then
15563           archive_cmds_need_lc_F77=no
15564         else
15565           archive_cmds_need_lc_F77=yes
15566         fi
15567         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15568       else
15569         cat conftest.err 1>&5
15570       fi
15571       $rm conftest*
15572       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15573 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15574       ;;
15575     esac
15576   fi
15577   ;;
15578 esac
15579
15580 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15581 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15582 library_names_spec=
15583 libname_spec='lib$name'
15584 soname_spec=
15585 shrext_cmds=".so"
15586 postinstall_cmds=
15587 postuninstall_cmds=
15588 finish_cmds=
15589 finish_eval=
15590 shlibpath_var=
15591 shlibpath_overrides_runpath=unknown
15592 version_type=none
15593 dynamic_linker="$host_os ld.so"
15594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15595
15596 need_lib_prefix=unknown
15597 hardcode_into_libs=no
15598
15599 # when you set need_version to no, make sure it does not cause -set_version
15600 # flags to be left without arguments
15601 need_version=unknown
15602
15603 case $host_os in
15604 aix3*)
15605   version_type=linux
15606   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15607   shlibpath_var=LIBPATH
15608
15609   # AIX 3 has no versioning support, so we append a major version to the name.
15610   soname_spec='${libname}${release}${shared_ext}$major'
15611   ;;
15612
15613 aix[4-9]*)
15614   version_type=linux
15615   need_lib_prefix=no
15616   need_version=no
15617   hardcode_into_libs=yes
15618   if test "$host_cpu" = ia64; then
15619     # AIX 5 supports IA64
15620     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15621     shlibpath_var=LD_LIBRARY_PATH
15622   else
15623     # With GCC up to 2.95.x, collect2 would create an import file
15624     # for dependence libraries.  The import file would start with
15625     # the line `#! .'.  This would cause the generated library to
15626     # depend on `.', always an invalid library.  This was fixed in
15627     # development snapshots of GCC prior to 3.0.
15628     case $host_os in
15629       aix4 | aix4.[01] | aix4.[01].*)
15630       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15631            echo ' yes '
15632            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15633         :
15634       else
15635         can_build_shared=no
15636       fi
15637       ;;
15638     esac
15639     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15640     # soname into executable. Probably we can add versioning support to
15641     # collect2, so additional links can be useful in future.
15642     if test "$aix_use_runtimelinking" = yes; then
15643       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15644       # instead of lib<name>.a to let people know that these are not
15645       # typical AIX shared libraries.
15646       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647     else
15648       # We preserve .a as extension for shared libraries through AIX4.2
15649       # and later when we are not doing run time linking.
15650       library_names_spec='${libname}${release}.a $libname.a'
15651       soname_spec='${libname}${release}${shared_ext}$major'
15652     fi
15653     shlibpath_var=LIBPATH
15654   fi
15655   ;;
15656
15657 amigaos*)
15658   library_names_spec='$libname.ixlibrary $libname.a'
15659   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15660   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'
15661   ;;
15662
15663 beos*)
15664   library_names_spec='${libname}${shared_ext}'
15665   dynamic_linker="$host_os ld.so"
15666   shlibpath_var=LIBRARY_PATH
15667   ;;
15668
15669 bsdi[45]*)
15670   version_type=linux
15671   need_version=no
15672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673   soname_spec='${libname}${release}${shared_ext}$major'
15674   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15675   shlibpath_var=LD_LIBRARY_PATH
15676   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15677   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15678   # the default ld.so.conf also contains /usr/contrib/lib and
15679   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15680   # libtool to hard-code these into programs
15681   ;;
15682
15683 cygwin* | mingw* | pw32*)
15684   version_type=windows
15685   shrext_cmds=".dll"
15686   need_version=no
15687   need_lib_prefix=no
15688
15689   case $GCC,$host_os in
15690   yes,cygwin* | yes,mingw* | yes,pw32*)
15691     library_names_spec='$libname.dll.a'
15692     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15693     postinstall_cmds='base_file=`basename \${file}`~
15694       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15695       dldir=$destdir/`dirname \$dlpath`~
15696       test -d \$dldir || mkdir -p \$dldir~
15697       $install_prog $dir/$dlname \$dldir/$dlname~
15698       chmod a+x \$dldir/$dlname'
15699     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15700       dlpath=$dir/\$dldll~
15701        $rm \$dlpath'
15702     shlibpath_overrides_runpath=yes
15703
15704     case $host_os in
15705     cygwin*)
15706       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15707       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15708       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15709       ;;
15710     mingw*)
15711       # MinGW DLLs use traditional 'lib' prefix
15712       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15713       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15714       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15715         # It is most probably a Windows format PATH printed by
15716         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15717         # path with ; separators, and with drive letters. We can handle the
15718         # drive letters (cygwin fileutils understands them), so leave them,
15719         # especially as we might pass files found there to a mingw objdump,
15720         # which wouldn't understand a cygwinified path. Ahh.
15721         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15722       else
15723         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15724       fi
15725       ;;
15726     pw32*)
15727       # pw32 DLLs use 'pw' prefix rather than 'lib'
15728       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15729       ;;
15730     esac
15731     ;;
15732
15733   *)
15734     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15735     ;;
15736   esac
15737   dynamic_linker='Win32 ld.exe'
15738   # FIXME: first we should search . and the directory the executable is in
15739   shlibpath_var=PATH
15740   ;;
15741
15742 darwin* | rhapsody*)
15743   dynamic_linker="$host_os dyld"
15744   version_type=darwin
15745   need_lib_prefix=no
15746   need_version=no
15747   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15748   soname_spec='${libname}${release}${major}$shared_ext'
15749   shlibpath_overrides_runpath=yes
15750   shlibpath_var=DYLD_LIBRARY_PATH
15751   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15752
15753   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15754   ;;
15755
15756 dgux*)
15757   version_type=linux
15758   need_lib_prefix=no
15759   need_version=no
15760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15761   soname_spec='${libname}${release}${shared_ext}$major'
15762   shlibpath_var=LD_LIBRARY_PATH
15763   ;;
15764
15765 freebsd1*)
15766   dynamic_linker=no
15767   ;;
15768
15769 freebsd* | dragonfly*)
15770   # DragonFly does not have aout.  When/if they implement a new
15771   # versioning mechanism, adjust this.
15772   if test -x /usr/bin/objformat; then
15773     objformat=`/usr/bin/objformat`
15774   else
15775     case $host_os in
15776     freebsd[123]*) objformat=aout ;;
15777     *) objformat=elf ;;
15778     esac
15779   fi
15780   version_type=freebsd-$objformat
15781   case $version_type in
15782     freebsd-elf*)
15783       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15784       need_version=no
15785       need_lib_prefix=no
15786       ;;
15787     freebsd-*)
15788       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15789       need_version=yes
15790       ;;
15791   esac
15792   shlibpath_var=LD_LIBRARY_PATH
15793   case $host_os in
15794   freebsd2*)
15795     shlibpath_overrides_runpath=yes
15796     ;;
15797   freebsd3.[01]* | freebsdelf3.[01]*)
15798     shlibpath_overrides_runpath=yes
15799     hardcode_into_libs=yes
15800     ;;
15801   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15802   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15803     shlibpath_overrides_runpath=no
15804     hardcode_into_libs=yes
15805     ;;
15806   *) # from 4.6 on, and DragonFly
15807     shlibpath_overrides_runpath=yes
15808     hardcode_into_libs=yes
15809     ;;
15810   esac
15811   ;;
15812
15813 gnu*)
15814   version_type=linux
15815   need_lib_prefix=no
15816   need_version=no
15817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15818   soname_spec='${libname}${release}${shared_ext}$major'
15819   shlibpath_var=LD_LIBRARY_PATH
15820   hardcode_into_libs=yes
15821   ;;
15822
15823 hpux9* | hpux10* | hpux11*)
15824   # Give a soname corresponding to the major version so that dld.sl refuses to
15825   # link against other versions.
15826   version_type=sunos
15827   need_lib_prefix=no
15828   need_version=no
15829   case $host_cpu in
15830   ia64*)
15831     shrext_cmds='.so'
15832     hardcode_into_libs=yes
15833     dynamic_linker="$host_os dld.so"
15834     shlibpath_var=LD_LIBRARY_PATH
15835     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15836     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837     soname_spec='${libname}${release}${shared_ext}$major'
15838     if test "X$HPUX_IA64_MODE" = X32; then
15839       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15840     else
15841       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15842     fi
15843     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15844     ;;
15845    hppa*64*)
15846      shrext_cmds='.sl'
15847      hardcode_into_libs=yes
15848      dynamic_linker="$host_os dld.sl"
15849      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15850      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15851      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852      soname_spec='${libname}${release}${shared_ext}$major'
15853      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15854      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15855      ;;
15856    *)
15857     shrext_cmds='.sl'
15858     dynamic_linker="$host_os dld.sl"
15859     shlibpath_var=SHLIB_PATH
15860     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862     soname_spec='${libname}${release}${shared_ext}$major'
15863     ;;
15864   esac
15865   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15866   postinstall_cmds='chmod 555 $lib'
15867   ;;
15868
15869 interix[3-9]*)
15870   version_type=linux
15871   need_lib_prefix=no
15872   need_version=no
15873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15874   soname_spec='${libname}${release}${shared_ext}$major'
15875   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15876   shlibpath_var=LD_LIBRARY_PATH
15877   shlibpath_overrides_runpath=no
15878   hardcode_into_libs=yes
15879   ;;
15880
15881 irix5* | irix6* | nonstopux*)
15882   case $host_os in
15883     nonstopux*) version_type=nonstopux ;;
15884     *)
15885         if test "$lt_cv_prog_gnu_ld" = yes; then
15886                 version_type=linux
15887         else
15888                 version_type=irix
15889         fi ;;
15890   esac
15891   need_lib_prefix=no
15892   need_version=no
15893   soname_spec='${libname}${release}${shared_ext}$major'
15894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15895   case $host_os in
15896   irix5* | nonstopux*)
15897     libsuff= shlibsuff=
15898     ;;
15899   *)
15900     case $LD in # libtool.m4 will add one of these switches to LD
15901     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15902       libsuff= shlibsuff= libmagic=32-bit;;
15903     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15904       libsuff=32 shlibsuff=N32 libmagic=N32;;
15905     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15906       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15907     *) libsuff= shlibsuff= libmagic=never-match;;
15908     esac
15909     ;;
15910   esac
15911   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15912   shlibpath_overrides_runpath=no
15913   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15914   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15915   hardcode_into_libs=yes
15916   ;;
15917
15918 # No shared lib support for Linux oldld, aout, or coff.
15919 linux*oldld* | linux*aout* | linux*coff*)
15920   dynamic_linker=no
15921   ;;
15922
15923 # This must be Linux ELF.
15924 linux* | k*bsd*-gnu)
15925   version_type=linux
15926   need_lib_prefix=no
15927   need_version=no
15928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929   soname_spec='${libname}${release}${shared_ext}$major'
15930   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15931   shlibpath_var=LD_LIBRARY_PATH
15932   shlibpath_overrides_runpath=no
15933   # This implies no fast_install, which is unacceptable.
15934   # Some rework will be needed to allow for fast_install
15935   # before this can be enabled.
15936   hardcode_into_libs=yes
15937
15938   # Append ld.so.conf contents to the search path
15939   if test -f /etc/ld.so.conf; then
15940     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' ' '`
15941     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15942   fi
15943
15944   # We used to test for /lib/ld.so.1 and disable shared libraries on
15945   # powerpc, because MkLinux only supported shared libraries with the
15946   # GNU dynamic linker.  Since this was broken with cross compilers,
15947   # most powerpc-linux boxes support dynamic linking these days and
15948   # people can always --disable-shared, the test was removed, and we
15949   # assume the GNU/Linux dynamic linker is in use.
15950   dynamic_linker='GNU/Linux ld.so'
15951   ;;
15952
15953 netbsdelf*-gnu)
15954   version_type=linux
15955   need_lib_prefix=no
15956   need_version=no
15957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15958   soname_spec='${libname}${release}${shared_ext}$major'
15959   shlibpath_var=LD_LIBRARY_PATH
15960   shlibpath_overrides_runpath=no
15961   hardcode_into_libs=yes
15962   dynamic_linker='NetBSD ld.elf_so'
15963   ;;
15964
15965 netbsd*)
15966   version_type=sunos
15967   need_lib_prefix=no
15968   need_version=no
15969   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15971     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15972     dynamic_linker='NetBSD (a.out) ld.so'
15973   else
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     dynamic_linker='NetBSD ld.elf_so'
15977   fi
15978   shlibpath_var=LD_LIBRARY_PATH
15979   shlibpath_overrides_runpath=yes
15980   hardcode_into_libs=yes
15981   ;;
15982
15983 newsos6)
15984   version_type=linux
15985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986   shlibpath_var=LD_LIBRARY_PATH
15987   shlibpath_overrides_runpath=yes
15988   ;;
15989
15990 nto-qnx*)
15991   version_type=linux
15992   need_lib_prefix=no
15993   need_version=no
15994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995   soname_spec='${libname}${release}${shared_ext}$major'
15996   shlibpath_var=LD_LIBRARY_PATH
15997   shlibpath_overrides_runpath=yes
15998   ;;
15999
16000 openbsd*)
16001   version_type=sunos
16002   sys_lib_dlsearch_path_spec="/usr/lib"
16003   need_lib_prefix=no
16004   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16005   case $host_os in
16006     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16007     *)                         need_version=no  ;;
16008   esac
16009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16010   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16011   shlibpath_var=LD_LIBRARY_PATH
16012   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16013     case $host_os in
16014       openbsd2.[89] | openbsd2.[89].*)
16015         shlibpath_overrides_runpath=no
16016         ;;
16017       *)
16018         shlibpath_overrides_runpath=yes
16019         ;;
16020       esac
16021   else
16022     shlibpath_overrides_runpath=yes
16023   fi
16024   ;;
16025
16026 os2*)
16027   libname_spec='$name'
16028   shrext_cmds=".dll"
16029   need_lib_prefix=no
16030   library_names_spec='$libname${shared_ext} $libname.a'
16031   dynamic_linker='OS/2 ld.exe'
16032   shlibpath_var=LIBPATH
16033   ;;
16034
16035 osf3* | osf4* | osf5*)
16036   version_type=osf
16037   need_lib_prefix=no
16038   need_version=no
16039   soname_spec='${libname}${release}${shared_ext}$major'
16040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16041   shlibpath_var=LD_LIBRARY_PATH
16042   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16043   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16044   ;;
16045
16046 rdos*)
16047   dynamic_linker=no
16048   ;;
16049
16050 solaris*)
16051   version_type=linux
16052   need_lib_prefix=no
16053   need_version=no
16054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16055   soname_spec='${libname}${release}${shared_ext}$major'
16056   shlibpath_var=LD_LIBRARY_PATH
16057   shlibpath_overrides_runpath=yes
16058   hardcode_into_libs=yes
16059   # ldd complains unless libraries are executable
16060   postinstall_cmds='chmod +x $lib'
16061   ;;
16062
16063 sunos4*)
16064   version_type=sunos
16065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16067   shlibpath_var=LD_LIBRARY_PATH
16068   shlibpath_overrides_runpath=yes
16069   if test "$with_gnu_ld" = yes; then
16070     need_lib_prefix=no
16071   fi
16072   need_version=yes
16073   ;;
16074
16075 sysv4 | sysv4.3*)
16076   version_type=linux
16077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078   soname_spec='${libname}${release}${shared_ext}$major'
16079   shlibpath_var=LD_LIBRARY_PATH
16080   case $host_vendor in
16081     sni)
16082       shlibpath_overrides_runpath=no
16083       need_lib_prefix=no
16084       export_dynamic_flag_spec='${wl}-Blargedynsym'
16085       runpath_var=LD_RUN_PATH
16086       ;;
16087     siemens)
16088       need_lib_prefix=no
16089       ;;
16090     motorola)
16091       need_lib_prefix=no
16092       need_version=no
16093       shlibpath_overrides_runpath=no
16094       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16095       ;;
16096   esac
16097   ;;
16098
16099 sysv4*MP*)
16100   if test -d /usr/nec ;then
16101     version_type=linux
16102     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16103     soname_spec='$libname${shared_ext}.$major'
16104     shlibpath_var=LD_LIBRARY_PATH
16105   fi
16106   ;;
16107
16108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16109   version_type=freebsd-elf
16110   need_lib_prefix=no
16111   need_version=no
16112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16113   soname_spec='${libname}${release}${shared_ext}$major'
16114   shlibpath_var=LD_LIBRARY_PATH
16115   hardcode_into_libs=yes
16116   if test "$with_gnu_ld" = yes; then
16117     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16118     shlibpath_overrides_runpath=no
16119   else
16120     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16121     shlibpath_overrides_runpath=yes
16122     case $host_os in
16123       sco3.2v5*)
16124         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16125         ;;
16126     esac
16127   fi
16128   sys_lib_dlsearch_path_spec='/usr/lib'
16129   ;;
16130
16131 uts4*)
16132   version_type=linux
16133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134   soname_spec='${libname}${release}${shared_ext}$major'
16135   shlibpath_var=LD_LIBRARY_PATH
16136   ;;
16137
16138 *)
16139   dynamic_linker=no
16140   ;;
16141 esac
16142 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16143 echo "${ECHO_T}$dynamic_linker" >&6; }
16144 test "$dynamic_linker" = no && can_build_shared=no
16145
16146 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16147   echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16150 fi
16151
16152 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16153 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16154   echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16157 fi
16158
16159 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16160
16161 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16162 if test "$GCC" = yes; then
16163   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16164 fi
16165
16166 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16167 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16168 hardcode_action_F77=
16169 if test -n "$hardcode_libdir_flag_spec_F77" || \
16170    test -n "$runpath_var_F77" || \
16171    test "X$hardcode_automatic_F77" = "Xyes" ; then
16172
16173   # We can hardcode non-existant directories.
16174   if test "$hardcode_direct_F77" != no &&
16175      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16176      # have to relink, otherwise we might link with an installed library
16177      # when we should be linking with a yet-to-be-installed one
16178      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16179      test "$hardcode_minus_L_F77" != no; then
16180     # Linking always hardcodes the temporary library directory.
16181     hardcode_action_F77=relink
16182   else
16183     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16184     hardcode_action_F77=immediate
16185   fi
16186 else
16187   # We cannot hardcode anything, or else we can only hardcode existing
16188   # directories.
16189   hardcode_action_F77=unsupported
16190 fi
16191 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16192 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16193
16194 if test "$hardcode_action_F77" = relink; then
16195   # Fast installation is not supported
16196   enable_fast_install=no
16197 elif test "$shlibpath_overrides_runpath" = yes ||
16198      test "$enable_shared" = no; then
16199   # Fast installation is not necessary
16200   enable_fast_install=needless
16201 fi
16202
16203
16204 # The else clause should only fire when bootstrapping the
16205 # libtool distribution, otherwise you forgot to ship ltmain.sh
16206 # with your package, and you will get complaints that there are
16207 # no rules to generate ltmain.sh.
16208 if test -f "$ltmain"; then
16209   # See if we are running on zsh, and set the options which allow our commands through
16210   # without removal of \ escapes.
16211   if test -n "${ZSH_VERSION+set}" ; then
16212     setopt NO_GLOB_SUBST
16213   fi
16214   # Now quote all the things that may contain metacharacters while being
16215   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16216   # variables and quote the copies for generation of the libtool script.
16217   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16218     SED SHELL STRIP \
16219     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16220     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16221     deplibs_check_method reload_flag reload_cmds need_locks \
16222     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16223     lt_cv_sys_global_symbol_to_c_name_address \
16224     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16225     old_postinstall_cmds old_postuninstall_cmds \
16226     compiler_F77 \
16227     CC_F77 \
16228     LD_F77 \
16229     lt_prog_compiler_wl_F77 \
16230     lt_prog_compiler_pic_F77 \
16231     lt_prog_compiler_static_F77 \
16232     lt_prog_compiler_no_builtin_flag_F77 \
16233     export_dynamic_flag_spec_F77 \
16234     thread_safe_flag_spec_F77 \
16235     whole_archive_flag_spec_F77 \
16236     enable_shared_with_static_runtimes_F77 \
16237     old_archive_cmds_F77 \
16238     old_archive_from_new_cmds_F77 \
16239     predep_objects_F77 \
16240     postdep_objects_F77 \
16241     predeps_F77 \
16242     postdeps_F77 \
16243     compiler_lib_search_path_F77 \
16244     compiler_lib_search_dirs_F77 \
16245     archive_cmds_F77 \
16246     archive_expsym_cmds_F77 \
16247     postinstall_cmds_F77 \
16248     postuninstall_cmds_F77 \
16249     old_archive_from_expsyms_cmds_F77 \
16250     allow_undefined_flag_F77 \
16251     no_undefined_flag_F77 \
16252     export_symbols_cmds_F77 \
16253     hardcode_libdir_flag_spec_F77 \
16254     hardcode_libdir_flag_spec_ld_F77 \
16255     hardcode_libdir_separator_F77 \
16256     hardcode_automatic_F77 \
16257     module_cmds_F77 \
16258     module_expsym_cmds_F77 \
16259     lt_cv_prog_compiler_c_o_F77 \
16260     fix_srcfile_path_F77 \
16261     exclude_expsyms_F77 \
16262     include_expsyms_F77; do
16263
16264     case $var in
16265     old_archive_cmds_F77 | \
16266     old_archive_from_new_cmds_F77 | \
16267     archive_cmds_F77 | \
16268     archive_expsym_cmds_F77 | \
16269     module_cmds_F77 | \
16270     module_expsym_cmds_F77 | \
16271     old_archive_from_expsyms_cmds_F77 | \
16272     export_symbols_cmds_F77 | \
16273     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16274     postinstall_cmds | postuninstall_cmds | \
16275     old_postinstall_cmds | old_postuninstall_cmds | \
16276     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16277       # Double-quote double-evaled strings.
16278       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16279       ;;
16280     *)
16281       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16282       ;;
16283     esac
16284   done
16285
16286   case $lt_echo in
16287   *'\$0 --fallback-echo"')
16288     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16289     ;;
16290   esac
16291
16292 cfgfile="$ofile"
16293
16294   cat <<__EOF__ >> "$cfgfile"
16295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16296
16297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16298
16299 # Shell to use when invoking shell scripts.
16300 SHELL=$lt_SHELL
16301
16302 # Whether or not to build shared libraries.
16303 build_libtool_libs=$enable_shared
16304
16305 # Whether or not to build static libraries.
16306 build_old_libs=$enable_static
16307
16308 # Whether or not to add -lc for building shared libraries.
16309 build_libtool_need_lc=$archive_cmds_need_lc_F77
16310
16311 # Whether or not to disallow shared libs when runtime libs are static
16312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16313
16314 # Whether or not to optimize for fast installation.
16315 fast_install=$enable_fast_install
16316
16317 # The host system.
16318 host_alias=$host_alias
16319 host=$host
16320 host_os=$host_os
16321
16322 # The build system.
16323 build_alias=$build_alias
16324 build=$build
16325 build_os=$build_os
16326
16327 # An echo program that does not interpret backslashes.
16328 echo=$lt_echo
16329
16330 # The archiver.
16331 AR=$lt_AR
16332 AR_FLAGS=$lt_AR_FLAGS
16333
16334 # A C compiler.
16335 LTCC=$lt_LTCC
16336
16337 # LTCC compiler flags.
16338 LTCFLAGS=$lt_LTCFLAGS
16339
16340 # A language-specific compiler.
16341 CC=$lt_compiler_F77
16342
16343 # Is the compiler the GNU C compiler?
16344 with_gcc=$GCC_F77
16345
16346 # An ERE matcher.
16347 EGREP=$lt_EGREP
16348
16349 # The linker used to build libraries.
16350 LD=$lt_LD_F77
16351
16352 # Whether we need hard or soft links.
16353 LN_S=$lt_LN_S
16354
16355 # A BSD-compatible nm program.
16356 NM=$lt_NM
16357
16358 # A symbol stripping program
16359 STRIP=$lt_STRIP
16360
16361 # Used to examine libraries when file_magic_cmd begins "file"
16362 MAGIC_CMD=$MAGIC_CMD
16363
16364 # Used on cygwin: DLL creation program.
16365 DLLTOOL="$DLLTOOL"
16366
16367 # Used on cygwin: object dumper.
16368 OBJDUMP="$OBJDUMP"
16369
16370 # Used on cygwin: assembler.
16371 AS="$AS"
16372
16373 # The name of the directory that contains temporary libtool files.
16374 objdir=$objdir
16375
16376 # How to create reloadable object files.
16377 reload_flag=$lt_reload_flag
16378 reload_cmds=$lt_reload_cmds
16379
16380 # How to pass a linker flag through the compiler.
16381 wl=$lt_lt_prog_compiler_wl_F77
16382
16383 # Object file suffix (normally "o").
16384 objext="$ac_objext"
16385
16386 # Old archive suffix (normally "a").
16387 libext="$libext"
16388
16389 # Shared library suffix (normally ".so").
16390 shrext_cmds='$shrext_cmds'
16391
16392 # Executable file suffix (normally "").
16393 exeext="$exeext"
16394
16395 # Additional compiler flags for building library objects.
16396 pic_flag=$lt_lt_prog_compiler_pic_F77
16397 pic_mode=$pic_mode
16398
16399 # What is the maximum length of a command?
16400 max_cmd_len=$lt_cv_sys_max_cmd_len
16401
16402 # Does compiler simultaneously support -c and -o options?
16403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16404
16405 # Must we lock files when doing compilation?
16406 need_locks=$lt_need_locks
16407
16408 # Do we need the lib prefix for modules?
16409 need_lib_prefix=$need_lib_prefix
16410
16411 # Do we need a version for libraries?
16412 need_version=$need_version
16413
16414 # Whether dlopen is supported.
16415 dlopen_support=$enable_dlopen
16416
16417 # Whether dlopen of programs is supported.
16418 dlopen_self=$enable_dlopen_self
16419
16420 # Whether dlopen of statically linked programs is supported.
16421 dlopen_self_static=$enable_dlopen_self_static
16422
16423 # Compiler flag to prevent dynamic linking.
16424 link_static_flag=$lt_lt_prog_compiler_static_F77
16425
16426 # Compiler flag to turn off builtin functions.
16427 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16428
16429 # Compiler flag to allow reflexive dlopens.
16430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16431
16432 # Compiler flag to generate shared objects directly from archives.
16433 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16434
16435 # Compiler flag to generate thread-safe objects.
16436 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16437
16438 # Library versioning type.
16439 version_type=$version_type
16440
16441 # Format of library name prefix.
16442 libname_spec=$lt_libname_spec
16443
16444 # List of archive names.  First name is the real one, the rest are links.
16445 # The last name is the one that the linker finds with -lNAME.
16446 library_names_spec=$lt_library_names_spec
16447
16448 # The coded name of the library, if different from the real name.
16449 soname_spec=$lt_soname_spec
16450
16451 # Commands used to build and install an old-style archive.
16452 RANLIB=$lt_RANLIB
16453 old_archive_cmds=$lt_old_archive_cmds_F77
16454 old_postinstall_cmds=$lt_old_postinstall_cmds
16455 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16456
16457 # Create an old-style archive from a shared archive.
16458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16459
16460 # Create a temporary old-style archive to link instead of a shared archive.
16461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16462
16463 # Commands used to build and install a shared archive.
16464 archive_cmds=$lt_archive_cmds_F77
16465 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16466 postinstall_cmds=$lt_postinstall_cmds
16467 postuninstall_cmds=$lt_postuninstall_cmds
16468
16469 # Commands used to build a loadable module (assumed same as above if empty)
16470 module_cmds=$lt_module_cmds_F77
16471 module_expsym_cmds=$lt_module_expsym_cmds_F77
16472
16473 # Commands to strip libraries.
16474 old_striplib=$lt_old_striplib
16475 striplib=$lt_striplib
16476
16477 # Dependencies to place before the objects being linked to create a
16478 # shared library.
16479 predep_objects=$lt_predep_objects_F77
16480
16481 # Dependencies to place after the objects being linked to create a
16482 # shared library.
16483 postdep_objects=$lt_postdep_objects_F77
16484
16485 # Dependencies to place before the objects being linked to create a
16486 # shared library.
16487 predeps=$lt_predeps_F77
16488
16489 # Dependencies to place after the objects being linked to create a
16490 # shared library.
16491 postdeps=$lt_postdeps_F77
16492
16493 # The directories searched by this compiler when creating a shared
16494 # library
16495 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16496
16497 # The library search path used internally by the compiler when linking
16498 # a shared library.
16499 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16500
16501 # Method to check whether dependent libraries are shared objects.
16502 deplibs_check_method=$lt_deplibs_check_method
16503
16504 # Command to use when deplibs_check_method == file_magic.
16505 file_magic_cmd=$lt_file_magic_cmd
16506
16507 # Flag that allows shared libraries with undefined symbols to be built.
16508 allow_undefined_flag=$lt_allow_undefined_flag_F77
16509
16510 # Flag that forces no undefined symbols.
16511 no_undefined_flag=$lt_no_undefined_flag_F77
16512
16513 # Commands used to finish a libtool library installation in a directory.
16514 finish_cmds=$lt_finish_cmds
16515
16516 # Same as above, but a single script fragment to be evaled but not shown.
16517 finish_eval=$lt_finish_eval
16518
16519 # Take the output of nm and produce a listing of raw symbols and C names.
16520 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16521
16522 # Transform the output of nm in a proper C declaration
16523 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16524
16525 # Transform the output of nm in a C name address pair
16526 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16527
16528 # This is the shared library runtime path variable.
16529 runpath_var=$runpath_var
16530
16531 # This is the shared library path variable.
16532 shlibpath_var=$shlibpath_var
16533
16534 # Is shlibpath searched before the hard-coded library search path?
16535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16536
16537 # How to hardcode a shared library path into an executable.
16538 hardcode_action=$hardcode_action_F77
16539
16540 # Whether we should hardcode library paths into libraries.
16541 hardcode_into_libs=$hardcode_into_libs
16542
16543 # Flag to hardcode \$libdir into a binary during linking.
16544 # This must work even if \$libdir does not exist.
16545 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16546
16547 # If ld is used when linking, flag to hardcode \$libdir into
16548 # a binary during linking. This must work even if \$libdir does
16549 # not exist.
16550 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16551
16552 # Whether we need a single -rpath flag with a separated argument.
16553 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16554
16555 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16556 # resulting binary.
16557 hardcode_direct=$hardcode_direct_F77
16558
16559 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16560 # resulting binary.
16561 hardcode_minus_L=$hardcode_minus_L_F77
16562
16563 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16564 # the resulting binary.
16565 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16566
16567 # Set to yes if building a shared library automatically hardcodes DIR into the library
16568 # and all subsequent libraries and executables linked against it.
16569 hardcode_automatic=$hardcode_automatic_F77
16570
16571 # Variables whose values should be saved in libtool wrapper scripts and
16572 # restored at relink time.
16573 variables_saved_for_relink="$variables_saved_for_relink"
16574
16575 # Whether libtool must link a program against all its dependency libraries.
16576 link_all_deplibs=$link_all_deplibs_F77
16577
16578 # Compile-time system search path for libraries
16579 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16580
16581 # Run-time system search path for libraries
16582 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16583
16584 # Fix the shell variable \$srcfile for the compiler.
16585 fix_srcfile_path=$lt_fix_srcfile_path
16586
16587 # Set to yes if exported symbols are required.
16588 always_export_symbols=$always_export_symbols_F77
16589
16590 # The commands to list exported symbols.
16591 export_symbols_cmds=$lt_export_symbols_cmds_F77
16592
16593 # The commands to extract the exported symbol list from a shared archive.
16594 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16595
16596 # Symbols that should not be listed in the preloaded symbols.
16597 exclude_expsyms=$lt_exclude_expsyms_F77
16598
16599 # Symbols that must always be exported.
16600 include_expsyms=$lt_include_expsyms_F77
16601
16602 # ### END LIBTOOL TAG CONFIG: $tagname
16603
16604 __EOF__
16605
16606
16607 else
16608   # If there is no Makefile yet, we rely on a make rule to execute
16609   # `config.status --recheck' to rerun these tests and create the
16610   # libtool script then.
16611   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16612   if test -f "$ltmain_in"; then
16613     test -f Makefile && make "$ltmain"
16614   fi
16615 fi
16616
16617
16618 ac_ext=c
16619 ac_cpp='$CPP $CPPFLAGS'
16620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16623
16624 CC="$lt_save_CC"
16625
16626         else
16627           tagname=""
16628         fi
16629         ;;
16630
16631       GCJ)
16632         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16633
16634
16635 # Source file extension for Java test sources.
16636 ac_ext=java
16637
16638 # Object file extension for compiled Java test sources.
16639 objext=o
16640 objext_GCJ=$objext
16641
16642 # Code to be used in simple compile tests
16643 lt_simple_compile_test_code="class foo {}"
16644
16645 # Code to be used in simple link tests
16646 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16647
16648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16649
16650 # If no C compiler was specified, use CC.
16651 LTCC=${LTCC-"$CC"}
16652
16653 # If no C compiler flags were specified, use CFLAGS.
16654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16655
16656 # Allow CC to be a program name with arguments.
16657 compiler=$CC
16658
16659
16660 # save warnings/boilerplate of simple test code
16661 ac_outfile=conftest.$ac_objext
16662 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16663 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16664 _lt_compiler_boilerplate=`cat conftest.err`
16665 $rm conftest*
16666
16667 ac_outfile=conftest.$ac_objext
16668 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16669 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16670 _lt_linker_boilerplate=`cat conftest.err`
16671 $rm -r conftest*
16672
16673
16674 # Allow CC to be a program name with arguments.
16675 lt_save_CC="$CC"
16676 CC=${GCJ-"gcj"}
16677 compiler=$CC
16678 compiler_GCJ=$CC
16679 for cc_temp in $compiler""; do
16680   case $cc_temp in
16681     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16682     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16683     \-*) ;;
16684     *) break;;
16685   esac
16686 done
16687 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16688
16689
16690 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16691 archive_cmds_need_lc_GCJ=no
16692
16693 old_archive_cmds_GCJ=$old_archive_cmds
16694
16695
16696 lt_prog_compiler_no_builtin_flag_GCJ=
16697
16698 if test "$GCC" = yes; then
16699   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16700
16701
16702 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16703 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16704 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16705   echo $ECHO_N "(cached) $ECHO_C" >&6
16706 else
16707   lt_cv_prog_compiler_rtti_exceptions=no
16708   ac_outfile=conftest.$ac_objext
16709    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16710    lt_compiler_flag="-fno-rtti -fno-exceptions"
16711    # Insert the option either (1) after the last *FLAGS variable, or
16712    # (2) before a word containing "conftest.", or (3) at the end.
16713    # Note that $ac_compile itself does not contain backslashes and begins
16714    # with a dollar sign (not a hyphen), so the echo should work correctly.
16715    # The option is referenced via a variable to avoid confusing sed.
16716    lt_compile=`echo "$ac_compile" | $SED \
16717    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16719    -e 's:$: $lt_compiler_flag:'`
16720    (eval echo "\"\$as_me:16720: $lt_compile\"" >&5)
16721    (eval "$lt_compile" 2>conftest.err)
16722    ac_status=$?
16723    cat conftest.err >&5
16724    echo "$as_me:16724: \$? = $ac_status" >&5
16725    if (exit $ac_status) && test -s "$ac_outfile"; then
16726      # The compiler can only warn and ignore the option if not recognized
16727      # So say no if there are warnings other than the usual output.
16728      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16729      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16730      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16731        lt_cv_prog_compiler_rtti_exceptions=yes
16732      fi
16733    fi
16734    $rm conftest*
16735
16736 fi
16737 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16738 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16739
16740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16741     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16742 else
16743     :
16744 fi
16745
16746 fi
16747
16748 lt_prog_compiler_wl_GCJ=
16749 lt_prog_compiler_pic_GCJ=
16750 lt_prog_compiler_static_GCJ=
16751
16752 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16753 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16754
16755   if test "$GCC" = yes; then
16756     lt_prog_compiler_wl_GCJ='-Wl,'
16757     lt_prog_compiler_static_GCJ='-static'
16758
16759     case $host_os in
16760       aix*)
16761       # All AIX code is PIC.
16762       if test "$host_cpu" = ia64; then
16763         # AIX 5 now supports IA64 processor
16764         lt_prog_compiler_static_GCJ='-Bstatic'
16765       fi
16766       ;;
16767
16768     amigaos*)
16769       # FIXME: we need at least 68020 code to build shared libraries, but
16770       # adding the `-m68020' flag to GCC prevents building anything better,
16771       # like `-m68040'.
16772       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16773       ;;
16774
16775     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16776       # PIC is the default for these OSes.
16777       ;;
16778
16779     mingw* | cygwin* | pw32* | os2*)
16780       # This hack is so that the source file can tell whether it is being
16781       # built for inclusion in a dll (and should export symbols for example).
16782       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16783       # (--disable-auto-import) libraries
16784
16785       ;;
16786
16787     darwin* | rhapsody*)
16788       # PIC is the default on this platform
16789       # Common symbols not allowed in MH_DYLIB files
16790       lt_prog_compiler_pic_GCJ='-fno-common'
16791       ;;
16792
16793     interix[3-9]*)
16794       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16795       # Instead, we relocate shared libraries at runtime.
16796       ;;
16797
16798     msdosdjgpp*)
16799       # Just because we use GCC doesn't mean we suddenly get shared libraries
16800       # on systems that don't support them.
16801       lt_prog_compiler_can_build_shared_GCJ=no
16802       enable_shared=no
16803       ;;
16804
16805     sysv4*MP*)
16806       if test -d /usr/nec; then
16807         lt_prog_compiler_pic_GCJ=-Kconform_pic
16808       fi
16809       ;;
16810
16811     hpux*)
16812       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16813       # not for PA HP-UX.
16814       case $host_cpu in
16815       hppa*64*|ia64*)
16816         # +Z the default
16817         ;;
16818       *)
16819         lt_prog_compiler_pic_GCJ='-fPIC'
16820         ;;
16821       esac
16822       ;;
16823
16824     *)
16825       lt_prog_compiler_pic_GCJ='-fPIC'
16826       ;;
16827     esac
16828   else
16829     # PORTME Check for flag to pass linker flags through the system compiler.
16830     case $host_os in
16831     aix*)
16832       lt_prog_compiler_wl_GCJ='-Wl,'
16833       if test "$host_cpu" = ia64; then
16834         # AIX 5 now supports IA64 processor
16835         lt_prog_compiler_static_GCJ='-Bstatic'
16836       else
16837         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16838       fi
16839       ;;
16840       darwin*)
16841         # PIC is the default on this platform
16842         # Common symbols not allowed in MH_DYLIB files
16843        case $cc_basename in
16844          xlc*)
16845          lt_prog_compiler_pic_GCJ='-qnocommon'
16846          lt_prog_compiler_wl_GCJ='-Wl,'
16847          ;;
16848        esac
16849        ;;
16850
16851     mingw* | cygwin* | pw32* | os2*)
16852       # This hack is so that the source file can tell whether it is being
16853       # built for inclusion in a dll (and should export symbols for example).
16854
16855       ;;
16856
16857     hpux9* | hpux10* | hpux11*)
16858       lt_prog_compiler_wl_GCJ='-Wl,'
16859       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16860       # not for PA HP-UX.
16861       case $host_cpu in
16862       hppa*64*|ia64*)
16863         # +Z the default
16864         ;;
16865       *)
16866         lt_prog_compiler_pic_GCJ='+Z'
16867         ;;
16868       esac
16869       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16870       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16871       ;;
16872
16873     irix5* | irix6* | nonstopux*)
16874       lt_prog_compiler_wl_GCJ='-Wl,'
16875       # PIC (with -KPIC) is the default.
16876       lt_prog_compiler_static_GCJ='-non_shared'
16877       ;;
16878
16879     newsos6)
16880       lt_prog_compiler_pic_GCJ='-KPIC'
16881       lt_prog_compiler_static_GCJ='-Bstatic'
16882       ;;
16883
16884     linux* | k*bsd*-gnu)
16885       case $cc_basename in
16886       icc* | ecc*)
16887         lt_prog_compiler_wl_GCJ='-Wl,'
16888         lt_prog_compiler_pic_GCJ='-KPIC'
16889         lt_prog_compiler_static_GCJ='-static'
16890         ;;
16891       pgcc* | pgf77* | pgf90* | pgf95*)
16892         # Portland Group compilers (*not* the Pentium gcc compiler,
16893         # which looks to be a dead project)
16894         lt_prog_compiler_wl_GCJ='-Wl,'
16895         lt_prog_compiler_pic_GCJ='-fpic'
16896         lt_prog_compiler_static_GCJ='-Bstatic'
16897         ;;
16898       ccc*)
16899         lt_prog_compiler_wl_GCJ='-Wl,'
16900         # All Alpha code is PIC.
16901         lt_prog_compiler_static_GCJ='-non_shared'
16902         ;;
16903       *)
16904         case `$CC -V 2>&1 | sed 5q` in
16905         *Sun\ C*)
16906           # Sun C 5.9
16907           lt_prog_compiler_pic_GCJ='-KPIC'
16908           lt_prog_compiler_static_GCJ='-Bstatic'
16909           lt_prog_compiler_wl_GCJ='-Wl,'
16910           ;;
16911         *Sun\ F*)
16912           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16913           lt_prog_compiler_pic_GCJ='-KPIC'
16914           lt_prog_compiler_static_GCJ='-Bstatic'
16915           lt_prog_compiler_wl_GCJ=''
16916           ;;
16917         esac
16918         ;;
16919       esac
16920       ;;
16921
16922     osf3* | osf4* | osf5*)
16923       lt_prog_compiler_wl_GCJ='-Wl,'
16924       # All OSF/1 code is PIC.
16925       lt_prog_compiler_static_GCJ='-non_shared'
16926       ;;
16927
16928     rdos*)
16929       lt_prog_compiler_static_GCJ='-non_shared'
16930       ;;
16931
16932     solaris*)
16933       lt_prog_compiler_pic_GCJ='-KPIC'
16934       lt_prog_compiler_static_GCJ='-Bstatic'
16935       case $cc_basename in
16936       f77* | f90* | f95*)
16937         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16938       *)
16939         lt_prog_compiler_wl_GCJ='-Wl,';;
16940       esac
16941       ;;
16942
16943     sunos4*)
16944       lt_prog_compiler_wl_GCJ='-Qoption ld '
16945       lt_prog_compiler_pic_GCJ='-PIC'
16946       lt_prog_compiler_static_GCJ='-Bstatic'
16947       ;;
16948
16949     sysv4 | sysv4.2uw2* | sysv4.3*)
16950       lt_prog_compiler_wl_GCJ='-Wl,'
16951       lt_prog_compiler_pic_GCJ='-KPIC'
16952       lt_prog_compiler_static_GCJ='-Bstatic'
16953       ;;
16954
16955     sysv4*MP*)
16956       if test -d /usr/nec ;then
16957         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16958         lt_prog_compiler_static_GCJ='-Bstatic'
16959       fi
16960       ;;
16961
16962     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16963       lt_prog_compiler_wl_GCJ='-Wl,'
16964       lt_prog_compiler_pic_GCJ='-KPIC'
16965       lt_prog_compiler_static_GCJ='-Bstatic'
16966       ;;
16967
16968     unicos*)
16969       lt_prog_compiler_wl_GCJ='-Wl,'
16970       lt_prog_compiler_can_build_shared_GCJ=no
16971       ;;
16972
16973     uts4*)
16974       lt_prog_compiler_pic_GCJ='-pic'
16975       lt_prog_compiler_static_GCJ='-Bstatic'
16976       ;;
16977
16978     *)
16979       lt_prog_compiler_can_build_shared_GCJ=no
16980       ;;
16981     esac
16982   fi
16983
16984 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16985 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16986
16987 #
16988 # Check to make sure the PIC flag actually works.
16989 #
16990 if test -n "$lt_prog_compiler_pic_GCJ"; then
16991
16992 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16993 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16994 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16995   echo $ECHO_N "(cached) $ECHO_C" >&6
16996 else
16997   lt_cv_prog_compiler_pic_works_GCJ=no
16998   ac_outfile=conftest.$ac_objext
16999    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17000    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17001    # Insert the option either (1) after the last *FLAGS variable, or
17002    # (2) before a word containing "conftest.", or (3) at the end.
17003    # Note that $ac_compile itself does not contain backslashes and begins
17004    # with a dollar sign (not a hyphen), so the echo should work correctly.
17005    # The option is referenced via a variable to avoid confusing sed.
17006    lt_compile=`echo "$ac_compile" | $SED \
17007    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17008    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17009    -e 's:$: $lt_compiler_flag:'`
17010    (eval echo "\"\$as_me:17010: $lt_compile\"" >&5)
17011    (eval "$lt_compile" 2>conftest.err)
17012    ac_status=$?
17013    cat conftest.err >&5
17014    echo "$as_me:17014: \$? = $ac_status" >&5
17015    if (exit $ac_status) && test -s "$ac_outfile"; then
17016      # The compiler can only warn and ignore the option if not recognized
17017      # So say no if there are warnings other than the usual output.
17018      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17019      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17020      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17021        lt_cv_prog_compiler_pic_works_GCJ=yes
17022      fi
17023    fi
17024    $rm conftest*
17025
17026 fi
17027 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17028 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17029
17030 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17031     case $lt_prog_compiler_pic_GCJ in
17032      "" | " "*) ;;
17033      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17034      esac
17035 else
17036     lt_prog_compiler_pic_GCJ=
17037      lt_prog_compiler_can_build_shared_GCJ=no
17038 fi
17039
17040 fi
17041 case $host_os in
17042   # For platforms which do not support PIC, -DPIC is meaningless:
17043   *djgpp*)
17044     lt_prog_compiler_pic_GCJ=
17045     ;;
17046   *)
17047     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17048     ;;
17049 esac
17050
17051 #
17052 # Check to make sure the static flag actually works.
17053 #
17054 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17055 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17056 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17057 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17058   echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060   lt_cv_prog_compiler_static_works_GCJ=no
17061    save_LDFLAGS="$LDFLAGS"
17062    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17063    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17064    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17065      # The linker can only warn and ignore the option if not recognized
17066      # So say no if there are warnings
17067      if test -s conftest.err; then
17068        # Append any errors to the config.log.
17069        cat conftest.err 1>&5
17070        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17071        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17072        if diff conftest.exp conftest.er2 >/dev/null; then
17073          lt_cv_prog_compiler_static_works_GCJ=yes
17074        fi
17075      else
17076        lt_cv_prog_compiler_static_works_GCJ=yes
17077      fi
17078    fi
17079    $rm -r conftest*
17080    LDFLAGS="$save_LDFLAGS"
17081
17082 fi
17083 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17084 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17085
17086 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17087     :
17088 else
17089     lt_prog_compiler_static_GCJ=
17090 fi
17091
17092
17093 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17094 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17095 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17096   echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098   lt_cv_prog_compiler_c_o_GCJ=no
17099    $rm -r conftest 2>/dev/null
17100    mkdir conftest
17101    cd conftest
17102    mkdir out
17103    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17104
17105    lt_compiler_flag="-o out/conftest2.$ac_objext"
17106    # Insert the option either (1) after the last *FLAGS variable, or
17107    # (2) before a word containing "conftest.", or (3) at the end.
17108    # Note that $ac_compile itself does not contain backslashes and begins
17109    # with a dollar sign (not a hyphen), so the echo should work correctly.
17110    lt_compile=`echo "$ac_compile" | $SED \
17111    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17112    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17113    -e 's:$: $lt_compiler_flag:'`
17114    (eval echo "\"\$as_me:17114: $lt_compile\"" >&5)
17115    (eval "$lt_compile" 2>out/conftest.err)
17116    ac_status=$?
17117    cat out/conftest.err >&5
17118    echo "$as_me:17118: \$? = $ac_status" >&5
17119    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17120    then
17121      # The compiler can only warn and ignore the option if not recognized
17122      # So say no if there are warnings
17123      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17124      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17125      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17126        lt_cv_prog_compiler_c_o_GCJ=yes
17127      fi
17128    fi
17129    chmod u+w . 2>&5
17130    $rm conftest*
17131    # SGI C++ compiler will create directory out/ii_files/ for
17132    # template instantiation
17133    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17134    $rm out/* && rmdir out
17135    cd ..
17136    rmdir conftest
17137    $rm conftest*
17138
17139 fi
17140 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17141 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17142
17143
17144 hard_links="nottested"
17145 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17146   # do not overwrite the value of need_locks provided by the user
17147   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17148 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17149   hard_links=yes
17150   $rm conftest*
17151   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17152   touch conftest.a
17153   ln conftest.a conftest.b 2>&5 || hard_links=no
17154   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17155   { echo "$as_me:$LINENO: result: $hard_links" >&5
17156 echo "${ECHO_T}$hard_links" >&6; }
17157   if test "$hard_links" = no; then
17158     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17159 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17160     need_locks=warn
17161   fi
17162 else
17163   need_locks=no
17164 fi
17165
17166 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17167 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17168
17169   runpath_var=
17170   allow_undefined_flag_GCJ=
17171   enable_shared_with_static_runtimes_GCJ=no
17172   archive_cmds_GCJ=
17173   archive_expsym_cmds_GCJ=
17174   old_archive_From_new_cmds_GCJ=
17175   old_archive_from_expsyms_cmds_GCJ=
17176   export_dynamic_flag_spec_GCJ=
17177   whole_archive_flag_spec_GCJ=
17178   thread_safe_flag_spec_GCJ=
17179   hardcode_libdir_flag_spec_GCJ=
17180   hardcode_libdir_flag_spec_ld_GCJ=
17181   hardcode_libdir_separator_GCJ=
17182   hardcode_direct_GCJ=no
17183   hardcode_minus_L_GCJ=no
17184   hardcode_shlibpath_var_GCJ=unsupported
17185   link_all_deplibs_GCJ=unknown
17186   hardcode_automatic_GCJ=no
17187   module_cmds_GCJ=
17188   module_expsym_cmds_GCJ=
17189   always_export_symbols_GCJ=no
17190   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17191   # include_expsyms should be a list of space-separated symbols to be *always*
17192   # included in the symbol list
17193   include_expsyms_GCJ=
17194   # exclude_expsyms can be an extended regexp of symbols to exclude
17195   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17196   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17197   # as well as any symbol that contains `d'.
17198   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17199   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17200   # platforms (ab)use it in PIC code, but their linkers get confused if
17201   # the symbol is explicitly referenced.  Since portable code cannot
17202   # rely on this symbol name, it's probably fine to never include it in
17203   # preloaded symbol tables.
17204   # Exclude shared library initialization/finalization symbols.
17205   extract_expsyms_cmds=
17206   # Just being paranoid about ensuring that cc_basename is set.
17207   for cc_temp in $compiler""; do
17208   case $cc_temp in
17209     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17210     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17211     \-*) ;;
17212     *) break;;
17213   esac
17214 done
17215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17216
17217   case $host_os in
17218   cygwin* | mingw* | pw32*)
17219     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17220     # When not using gcc, we currently assume that we are using
17221     # Microsoft Visual C++.
17222     if test "$GCC" != yes; then
17223       with_gnu_ld=no
17224     fi
17225     ;;
17226   interix*)
17227     # we just hope/assume this is gcc and not c89 (= MSVC++)
17228     with_gnu_ld=yes
17229     ;;
17230   openbsd*)
17231     with_gnu_ld=no
17232     ;;
17233   esac
17234
17235   ld_shlibs_GCJ=yes
17236   if test "$with_gnu_ld" = yes; then
17237     # If archive_cmds runs LD, not CC, wlarc should be empty
17238     wlarc='${wl}'
17239
17240     # Set some defaults for GNU ld with shared library support. These
17241     # are reset later if shared libraries are not supported. Putting them
17242     # here allows them to be overridden if necessary.
17243     runpath_var=LD_RUN_PATH
17244     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17245     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17246     # ancient GNU ld didn't support --whole-archive et. al.
17247     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17248         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17249       else
17250         whole_archive_flag_spec_GCJ=
17251     fi
17252     supports_anon_versioning=no
17253     case `$LD -v 2>/dev/null` in
17254       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17255       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17256       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17257       *\ 2.11.*) ;; # other 2.11 versions
17258       *) supports_anon_versioning=yes ;;
17259     esac
17260
17261     # See if GNU ld supports shared libraries.
17262     case $host_os in
17263     aix[3-9]*)
17264       # On AIX/PPC, the GNU linker is very broken
17265       if test "$host_cpu" != ia64; then
17266         ld_shlibs_GCJ=no
17267         cat <<EOF 1>&2
17268
17269 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17270 *** to be unable to reliably create shared libraries on AIX.
17271 *** Therefore, libtool is disabling shared libraries support.  If you
17272 *** really care for shared libraries, you may want to modify your PATH
17273 *** so that a non-GNU linker is found, and then restart.
17274
17275 EOF
17276       fi
17277       ;;
17278
17279     amigaos*)
17280       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)'
17281       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17282       hardcode_minus_L_GCJ=yes
17283
17284       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17285       # that the semantics of dynamic libraries on AmigaOS, at least up
17286       # to version 4, is to share data among multiple programs linked
17287       # with the same dynamic library.  Since this doesn't match the
17288       # behavior of shared libraries on other platforms, we can't use
17289       # them.
17290       ld_shlibs_GCJ=no
17291       ;;
17292
17293     beos*)
17294       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17295         allow_undefined_flag_GCJ=unsupported
17296         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17297         # support --undefined.  This deserves some investigation.  FIXME
17298         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17299       else
17300         ld_shlibs_GCJ=no
17301       fi
17302       ;;
17303
17304     cygwin* | mingw* | pw32*)
17305       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17306       # as there is no search path for DLLs.
17307       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17308       allow_undefined_flag_GCJ=unsupported
17309       always_export_symbols_GCJ=no
17310       enable_shared_with_static_runtimes_GCJ=yes
17311       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17312
17313       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17314         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17315         # If the export-symbols file already is a .def file (1st line
17316         # is EXPORTS), use it as is; otherwise, prepend...
17317         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17318           cp $export_symbols $output_objdir/$soname.def;
17319         else
17320           echo EXPORTS > $output_objdir/$soname.def;
17321           cat $export_symbols >> $output_objdir/$soname.def;
17322         fi~
17323         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17324       else
17325         ld_shlibs_GCJ=no
17326       fi
17327       ;;
17328
17329     interix[3-9]*)
17330       hardcode_direct_GCJ=no
17331       hardcode_shlibpath_var_GCJ=no
17332       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17333       export_dynamic_flag_spec_GCJ='${wl}-E'
17334       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17335       # Instead, shared libraries are loaded at an image base (0x10000000 by
17336       # default) and relocated if they conflict, which is a slow very memory
17337       # consuming and fragmenting process.  To avoid this, we pick a random,
17338       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17339       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17340       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'
17341       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'
17342       ;;
17343
17344     gnu* | linux* | k*bsd*-gnu)
17345       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17346         tmp_addflag=
17347         case $cc_basename,$host_cpu in
17348         pgcc*)                          # Portland Group C compiler
17349           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'
17350           tmp_addflag=' $pic_flag'
17351           ;;
17352         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17353           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'
17354           tmp_addflag=' $pic_flag -Mnomain' ;;
17355         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17356           tmp_addflag=' -i_dynamic' ;;
17357         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17358           tmp_addflag=' -i_dynamic -nofor_main' ;;
17359         ifc* | ifort*)                  # Intel Fortran compiler
17360           tmp_addflag=' -nofor_main' ;;
17361         esac
17362         case `$CC -V 2>&1 | sed 5q` in
17363         *Sun\ C*)                       # Sun C 5.9
17364           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'
17365           tmp_sharedflag='-G' ;;
17366         *Sun\ F*)                       # Sun Fortran 8.3
17367           tmp_sharedflag='-G' ;;
17368         *)
17369           tmp_sharedflag='-shared' ;;
17370         esac
17371         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17372
17373         if test $supports_anon_versioning = yes; then
17374           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17375   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17376   $echo "local: *; };" >> $output_objdir/$libname.ver~
17377           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17378         fi
17379         link_all_deplibs_GCJ=no
17380       else
17381         ld_shlibs_GCJ=no
17382       fi
17383       ;;
17384
17385     netbsd* | netbsdelf*-gnu)
17386       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17387         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17388         wlarc=
17389       else
17390         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17391         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17392       fi
17393       ;;
17394
17395     solaris*)
17396       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17397         ld_shlibs_GCJ=no
17398         cat <<EOF 1>&2
17399
17400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17401 *** create shared libraries on Solaris systems.  Therefore, libtool
17402 *** is disabling shared libraries support.  We urge you to upgrade GNU
17403 *** binutils to release 2.9.1 or newer.  Another option is to modify
17404 *** your PATH or compiler configuration so that the native linker is
17405 *** used, and then restart.
17406
17407 EOF
17408       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17409         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17410         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17411       else
17412         ld_shlibs_GCJ=no
17413       fi
17414       ;;
17415
17416     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17417       case `$LD -v 2>&1` in
17418         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17419         ld_shlibs_GCJ=no
17420         cat <<_LT_EOF 1>&2
17421
17422 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17423 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17424 *** is disabling shared libraries support.  We urge you to upgrade GNU
17425 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17426 *** your PATH or compiler configuration so that the native linker is
17427 *** used, and then restart.
17428
17429 _LT_EOF
17430         ;;
17431         *)
17432           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17433             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17434             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17435             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17436           else
17437             ld_shlibs_GCJ=no
17438           fi
17439         ;;
17440       esac
17441       ;;
17442
17443     sunos4*)
17444       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17445       wlarc=
17446       hardcode_direct_GCJ=yes
17447       hardcode_shlibpath_var_GCJ=no
17448       ;;
17449
17450     *)
17451       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17452         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17453         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17454       else
17455         ld_shlibs_GCJ=no
17456       fi
17457       ;;
17458     esac
17459
17460     if test "$ld_shlibs_GCJ" = no; then
17461       runpath_var=
17462       hardcode_libdir_flag_spec_GCJ=
17463       export_dynamic_flag_spec_GCJ=
17464       whole_archive_flag_spec_GCJ=
17465     fi
17466   else
17467     # PORTME fill in a description of your system's linker (not GNU ld)
17468     case $host_os in
17469     aix3*)
17470       allow_undefined_flag_GCJ=unsupported
17471       always_export_symbols_GCJ=yes
17472       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'
17473       # Note: this linker hardcodes the directories in LIBPATH if there
17474       # are no directories specified by -L.
17475       hardcode_minus_L_GCJ=yes
17476       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17477         # Neither direct hardcoding nor static linking is supported with a
17478         # broken collect2.
17479         hardcode_direct_GCJ=unsupported
17480       fi
17481       ;;
17482
17483     aix[4-9]*)
17484       if test "$host_cpu" = ia64; then
17485         # On IA64, the linker does run time linking by default, so we don't
17486         # have to do anything special.
17487         aix_use_runtimelinking=no
17488         exp_sym_flag='-Bexport'
17489         no_entry_flag=""
17490       else
17491         # If we're using GNU nm, then we don't want the "-C" option.
17492         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17493         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17494           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'
17495         else
17496           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'
17497         fi
17498         aix_use_runtimelinking=no
17499
17500         # Test if we are trying to use run time linking or normal
17501         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17502         # need to do runtime linking.
17503         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17504           for ld_flag in $LDFLAGS; do
17505           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17506             aix_use_runtimelinking=yes
17507             break
17508           fi
17509           done
17510           ;;
17511         esac
17512
17513         exp_sym_flag='-bexport'
17514         no_entry_flag='-bnoentry'
17515       fi
17516
17517       # When large executables or shared objects are built, AIX ld can
17518       # have problems creating the table of contents.  If linking a library
17519       # or program results in "error TOC overflow" add -mminimal-toc to
17520       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17521       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17522
17523       archive_cmds_GCJ=''
17524       hardcode_direct_GCJ=yes
17525       hardcode_libdir_separator_GCJ=':'
17526       link_all_deplibs_GCJ=yes
17527
17528       if test "$GCC" = yes; then
17529         case $host_os in aix4.[012]|aix4.[012].*)
17530         # We only want to do this on AIX 4.2 and lower, the check
17531         # below for broken collect2 doesn't work under 4.3+
17532           collect2name=`${CC} -print-prog-name=collect2`
17533           if test -f "$collect2name" && \
17534            strings "$collect2name" | grep resolve_lib_name >/dev/null
17535           then
17536           # We have reworked collect2
17537           :
17538           else
17539           # We have old collect2
17540           hardcode_direct_GCJ=unsupported
17541           # It fails to find uninstalled libraries when the uninstalled
17542           # path is not listed in the libpath.  Setting hardcode_minus_L
17543           # to unsupported forces relinking
17544           hardcode_minus_L_GCJ=yes
17545           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17546           hardcode_libdir_separator_GCJ=
17547           fi
17548           ;;
17549         esac
17550         shared_flag='-shared'
17551         if test "$aix_use_runtimelinking" = yes; then
17552           shared_flag="$shared_flag "'${wl}-G'
17553         fi
17554       else
17555         # not using gcc
17556         if test "$host_cpu" = ia64; then
17557         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17558         # chokes on -Wl,-G. The following line is correct:
17559           shared_flag='-G'
17560         else
17561           if test "$aix_use_runtimelinking" = yes; then
17562             shared_flag='${wl}-G'
17563           else
17564             shared_flag='${wl}-bM:SRE'
17565           fi
17566         fi
17567       fi
17568
17569       # It seems that -bexpall does not export symbols beginning with
17570       # underscore (_), so it is better to generate a list of symbols to export.
17571       always_export_symbols_GCJ=yes
17572       if test "$aix_use_runtimelinking" = yes; then
17573         # Warning - without using the other runtime loading flags (-brtl),
17574         # -berok will link without error, but may produce a broken library.
17575         allow_undefined_flag_GCJ='-berok'
17576        # Determine the default libpath from the value encoded in an empty executable.
17577        cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h.  */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h.  */
17583
17584 int
17585 main ()
17586 {
17587
17588   ;
17589   return 0;
17590 }
17591 _ACEOF
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (ac_try="$ac_link"
17594 case "(($ac_try" in
17595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596   *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599   (eval "$ac_link") 2>conftest.er1
17600   ac_status=$?
17601   grep -v '^ *+' conftest.er1 >conftest.err
17602   rm -f conftest.er1
17603   cat conftest.err >&5
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); } && {
17606          test -z "$ac_c_werror_flag" ||
17607          test ! -s conftest.err
17608        } && test -s conftest$ac_exeext &&
17609        $as_test_x conftest$ac_exeext; then
17610
17611 lt_aix_libpath_sed='
17612     /Import File Strings/,/^$/ {
17613         /^0/ {
17614             s/^0  *\(.*\)$/\1/
17615             p
17616         }
17617     }'
17618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17619 # Check for a 64-bit object if we didn't find anything.
17620 if test -z "$aix_libpath"; then
17621   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17622 fi
17623 else
17624   echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627
17628 fi
17629
17630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17631       conftest$ac_exeext conftest.$ac_ext
17632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17633
17634        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17635         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"
17636        else
17637         if test "$host_cpu" = ia64; then
17638           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17639           allow_undefined_flag_GCJ="-z nodefs"
17640           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"
17641         else
17642          # Determine the default libpath from the value encoded in an empty executable.
17643          cat >conftest.$ac_ext <<_ACEOF
17644 /* confdefs.h.  */
17645 _ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h.  */
17649
17650 int
17651 main ()
17652 {
17653
17654   ;
17655   return 0;
17656 }
17657 _ACEOF
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662   *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665   (eval "$ac_link") 2>conftest.er1
17666   ac_status=$?
17667   grep -v '^ *+' conftest.er1 >conftest.err
17668   rm -f conftest.er1
17669   cat conftest.err >&5
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); } && {
17672          test -z "$ac_c_werror_flag" ||
17673          test ! -s conftest.err
17674        } && test -s conftest$ac_exeext &&
17675        $as_test_x conftest$ac_exeext; then
17676
17677 lt_aix_libpath_sed='
17678     /Import File Strings/,/^$/ {
17679         /^0/ {
17680             s/^0  *\(.*\)$/\1/
17681             p
17682         }
17683     }'
17684 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17685 # Check for a 64-bit object if we didn't find anything.
17686 if test -z "$aix_libpath"; then
17687   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17688 fi
17689 else
17690   echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17692
17693
17694 fi
17695
17696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17697       conftest$ac_exeext conftest.$ac_ext
17698 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17699
17700          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17701           # Warning - without using the other run time loading flags,
17702           # -berok will link without error, but may produce a broken library.
17703           no_undefined_flag_GCJ=' ${wl}-bernotok'
17704           allow_undefined_flag_GCJ=' ${wl}-berok'
17705           # Exported symbols can be pulled into shared objects from archives
17706           whole_archive_flag_spec_GCJ='$convenience'
17707           archive_cmds_need_lc_GCJ=yes
17708           # This is similar to how AIX traditionally builds its shared libraries.
17709           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'
17710         fi
17711       fi
17712       ;;
17713
17714     amigaos*)
17715       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)'
17716       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17717       hardcode_minus_L_GCJ=yes
17718       # see comment about different semantics on the GNU ld section
17719       ld_shlibs_GCJ=no
17720       ;;
17721
17722     bsdi[45]*)
17723       export_dynamic_flag_spec_GCJ=-rdynamic
17724       ;;
17725
17726     cygwin* | mingw* | pw32*)
17727       # When not using gcc, we currently assume that we are using
17728       # Microsoft Visual C++.
17729       # hardcode_libdir_flag_spec is actually meaningless, as there is
17730       # no search path for DLLs.
17731       hardcode_libdir_flag_spec_GCJ=' '
17732       allow_undefined_flag_GCJ=unsupported
17733       # Tell ltmain to make .lib files, not .a files.
17734       libext=lib
17735       # Tell ltmain to make .dll files, not .so files.
17736       shrext_cmds=".dll"
17737       # FIXME: Setting linknames here is a bad hack.
17738       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17739       # The linker will automatically build a .lib file if we build a DLL.
17740       old_archive_From_new_cmds_GCJ='true'
17741       # FIXME: Should let the user specify the lib program.
17742       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17743       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17744       enable_shared_with_static_runtimes_GCJ=yes
17745       ;;
17746
17747     darwin* | rhapsody*)
17748       case $host_os in
17749         rhapsody* | darwin1.[012])
17750          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17751          ;;
17752        *) # Darwin 1.3 on
17753          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17754            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17755          else
17756            case ${MACOSX_DEPLOYMENT_TARGET} in
17757              10.[012])
17758                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17759                ;;
17760              10.*)
17761                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17762                ;;
17763            esac
17764          fi
17765          ;;
17766       esac
17767       archive_cmds_need_lc_GCJ=no
17768       hardcode_direct_GCJ=no
17769       hardcode_automatic_GCJ=yes
17770       hardcode_shlibpath_var_GCJ=unsupported
17771       whole_archive_flag_spec_GCJ=''
17772       link_all_deplibs_GCJ=yes
17773     if test "$GCC" = yes ; then
17774         output_verbose_link_cmd='echo'
17775         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}"
17776         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17777         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}"
17778         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}"
17779     else
17780       case $cc_basename in
17781         xlc*)
17782          output_verbose_link_cmd='echo'
17783          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17784          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17785           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17786          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}'
17787           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}'
17788           ;;
17789        *)
17790          ld_shlibs_GCJ=no
17791           ;;
17792       esac
17793     fi
17794       ;;
17795
17796     dgux*)
17797       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17798       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17799       hardcode_shlibpath_var_GCJ=no
17800       ;;
17801
17802     freebsd1*)
17803       ld_shlibs_GCJ=no
17804       ;;
17805
17806     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17807     # support.  Future versions do this automatically, but an explicit c++rt0.o
17808     # does not break anything, and helps significantly (at the cost of a little
17809     # extra space).
17810     freebsd2.2*)
17811       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17812       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17813       hardcode_direct_GCJ=yes
17814       hardcode_shlibpath_var_GCJ=no
17815       ;;
17816
17817     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17818     freebsd2*)
17819       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17820       hardcode_direct_GCJ=yes
17821       hardcode_minus_L_GCJ=yes
17822       hardcode_shlibpath_var_GCJ=no
17823       ;;
17824
17825     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17826     freebsd* | dragonfly*)
17827       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17828       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17829       hardcode_direct_GCJ=yes
17830       hardcode_shlibpath_var_GCJ=no
17831       ;;
17832
17833     hpux9*)
17834       if test "$GCC" = yes; then
17835         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'
17836       else
17837         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'
17838       fi
17839       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17840       hardcode_libdir_separator_GCJ=:
17841       hardcode_direct_GCJ=yes
17842
17843       # hardcode_minus_L: Not really in the search PATH,
17844       # but as the default location of the library.
17845       hardcode_minus_L_GCJ=yes
17846       export_dynamic_flag_spec_GCJ='${wl}-E'
17847       ;;
17848
17849     hpux10*)
17850       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17851         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17852       else
17853         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17854       fi
17855       if test "$with_gnu_ld" = no; then
17856         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17857         hardcode_libdir_separator_GCJ=:
17858
17859         hardcode_direct_GCJ=yes
17860         export_dynamic_flag_spec_GCJ='${wl}-E'
17861
17862         # hardcode_minus_L: Not really in the search PATH,
17863         # but as the default location of the library.
17864         hardcode_minus_L_GCJ=yes
17865       fi
17866       ;;
17867
17868     hpux11*)
17869       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17870         case $host_cpu in
17871         hppa*64*)
17872           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17873           ;;
17874         ia64*)
17875           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17876           ;;
17877         *)
17878           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17879           ;;
17880         esac
17881       else
17882         case $host_cpu in
17883         hppa*64*)
17884           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17885           ;;
17886         ia64*)
17887           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17888           ;;
17889         *)
17890           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17891           ;;
17892         esac
17893       fi
17894       if test "$with_gnu_ld" = no; then
17895         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17896         hardcode_libdir_separator_GCJ=:
17897
17898         case $host_cpu in
17899         hppa*64*|ia64*)
17900           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17901           hardcode_direct_GCJ=no
17902           hardcode_shlibpath_var_GCJ=no
17903           ;;
17904         *)
17905           hardcode_direct_GCJ=yes
17906           export_dynamic_flag_spec_GCJ='${wl}-E'
17907
17908           # hardcode_minus_L: Not really in the search PATH,
17909           # but as the default location of the library.
17910           hardcode_minus_L_GCJ=yes
17911           ;;
17912         esac
17913       fi
17914       ;;
17915
17916     irix5* | irix6* | nonstopux*)
17917       if test "$GCC" = yes; then
17918         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'
17919       else
17920         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'
17921         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17922       fi
17923       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17924       hardcode_libdir_separator_GCJ=:
17925       link_all_deplibs_GCJ=yes
17926       ;;
17927
17928     netbsd* | netbsdelf*-gnu)
17929       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17930         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17931       else
17932         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17933       fi
17934       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17935       hardcode_direct_GCJ=yes
17936       hardcode_shlibpath_var_GCJ=no
17937       ;;
17938
17939     newsos6)
17940       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941       hardcode_direct_GCJ=yes
17942       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17943       hardcode_libdir_separator_GCJ=:
17944       hardcode_shlibpath_var_GCJ=no
17945       ;;
17946
17947     openbsd*)
17948       if test -f /usr/libexec/ld.so; then
17949         hardcode_direct_GCJ=yes
17950         hardcode_shlibpath_var_GCJ=no
17951         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17952           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17953           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17954           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17955           export_dynamic_flag_spec_GCJ='${wl}-E'
17956         else
17957           case $host_os in
17958            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17959              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17960              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17961              ;;
17962            *)
17963              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17964              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17965              ;;
17966           esac
17967         fi
17968       else
17969         ld_shlibs_GCJ=no
17970       fi
17971       ;;
17972
17973     os2*)
17974       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17975       hardcode_minus_L_GCJ=yes
17976       allow_undefined_flag_GCJ=unsupported
17977       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'
17978       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17979       ;;
17980
17981     osf3*)
17982       if test "$GCC" = yes; then
17983         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17984         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'
17985       else
17986         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17987         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'
17988       fi
17989       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17990       hardcode_libdir_separator_GCJ=:
17991       ;;
17992
17993     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17994       if test "$GCC" = yes; then
17995         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17996         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'
17997         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17998       else
17999         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18000         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'
18001         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~
18002         $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'
18003
18004         # Both c and cxx compiler support -rpath directly
18005         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18006       fi
18007       hardcode_libdir_separator_GCJ=:
18008       ;;
18009
18010     solaris*)
18011       no_undefined_flag_GCJ=' -z text'
18012       if test "$GCC" = yes; then
18013         wlarc='${wl}'
18014         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18015         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18016           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18017       else
18018         wlarc=''
18019         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18020         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18021         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18022       fi
18023       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18024       hardcode_shlibpath_var_GCJ=no
18025       case $host_os in
18026       solaris2.[0-5] | solaris2.[0-5].*) ;;
18027       *)
18028         # The compiler driver will combine and reorder linker options,
18029         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18030         # but is careful enough not to reorder.
18031         # Supported since Solaris 2.6 (maybe 2.5.1?)
18032         if test "$GCC" = yes; then
18033           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18034         else
18035           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18036         fi
18037         ;;
18038       esac
18039       link_all_deplibs_GCJ=yes
18040       ;;
18041
18042     sunos4*)
18043       if test "x$host_vendor" = xsequent; then
18044         # Use $CC to link under sequent, because it throws in some extra .o
18045         # files that make .init and .fini sections work.
18046         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18047       else
18048         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18049       fi
18050       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18051       hardcode_direct_GCJ=yes
18052       hardcode_minus_L_GCJ=yes
18053       hardcode_shlibpath_var_GCJ=no
18054       ;;
18055
18056     sysv4)
18057       case $host_vendor in
18058         sni)
18059           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18060           hardcode_direct_GCJ=yes # is this really true???
18061         ;;
18062         siemens)
18063           ## LD is ld it makes a PLAMLIB
18064           ## CC just makes a GrossModule.
18065           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18066           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18067           hardcode_direct_GCJ=no
18068         ;;
18069         motorola)
18070           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18071           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18072         ;;
18073       esac
18074       runpath_var='LD_RUN_PATH'
18075       hardcode_shlibpath_var_GCJ=no
18076       ;;
18077
18078     sysv4.3*)
18079       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18080       hardcode_shlibpath_var_GCJ=no
18081       export_dynamic_flag_spec_GCJ='-Bexport'
18082       ;;
18083
18084     sysv4*MP*)
18085       if test -d /usr/nec; then
18086         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18087         hardcode_shlibpath_var_GCJ=no
18088         runpath_var=LD_RUN_PATH
18089         hardcode_runpath_var=yes
18090         ld_shlibs_GCJ=yes
18091       fi
18092       ;;
18093
18094     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18095       no_undefined_flag_GCJ='${wl}-z,text'
18096       archive_cmds_need_lc_GCJ=no
18097       hardcode_shlibpath_var_GCJ=no
18098       runpath_var='LD_RUN_PATH'
18099
18100       if test "$GCC" = yes; then
18101         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18102         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18103       else
18104         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18105         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18106       fi
18107       ;;
18108
18109     sysv5* | sco3.2v5* | sco5v6*)
18110       # Note: We can NOT use -z defs as we might desire, because we do not
18111       # link with -lc, and that would cause any symbols used from libc to
18112       # always be unresolved, which means just about no library would
18113       # ever link correctly.  If we're not using GNU ld we use -z text
18114       # though, which does catch some bad symbols but isn't as heavy-handed
18115       # as -z defs.
18116       no_undefined_flag_GCJ='${wl}-z,text'
18117       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18118       archive_cmds_need_lc_GCJ=no
18119       hardcode_shlibpath_var_GCJ=no
18120       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18121       hardcode_libdir_separator_GCJ=':'
18122       link_all_deplibs_GCJ=yes
18123       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18124       runpath_var='LD_RUN_PATH'
18125
18126       if test "$GCC" = yes; then
18127         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18128         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129       else
18130         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18131         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18132       fi
18133       ;;
18134
18135     uts4*)
18136       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18137       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18138       hardcode_shlibpath_var_GCJ=no
18139       ;;
18140
18141     *)
18142       ld_shlibs_GCJ=no
18143       ;;
18144     esac
18145   fi
18146
18147 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18148 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18149 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18150
18151 #
18152 # Do we need to explicitly link libc?
18153 #
18154 case "x$archive_cmds_need_lc_GCJ" in
18155 x|xyes)
18156   # Assume -lc should be added
18157   archive_cmds_need_lc_GCJ=yes
18158
18159   if test "$enable_shared" = yes && test "$GCC" = yes; then
18160     case $archive_cmds_GCJ in
18161     *'~'*)
18162       # FIXME: we may have to deal with multi-command sequences.
18163       ;;
18164     '$CC '*)
18165       # Test whether the compiler implicitly links with -lc since on some
18166       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18167       # to ld, don't add -lc before -lgcc.
18168       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18169 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18170       $rm conftest*
18171       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18172
18173       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18174   (eval $ac_compile) 2>&5
18175   ac_status=$?
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); } 2>conftest.err; then
18178         soname=conftest
18179         lib=conftest
18180         libobjs=conftest.$ac_objext
18181         deplibs=
18182         wl=$lt_prog_compiler_wl_GCJ
18183         pic_flag=$lt_prog_compiler_pic_GCJ
18184         compiler_flags=-v
18185         linker_flags=-v
18186         verstring=
18187         output_objdir=.
18188         libname=conftest
18189         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18190         allow_undefined_flag_GCJ=
18191         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18192   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18193   ac_status=$?
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); }
18196         then
18197           archive_cmds_need_lc_GCJ=no
18198         else
18199           archive_cmds_need_lc_GCJ=yes
18200         fi
18201         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18202       else
18203         cat conftest.err 1>&5
18204       fi
18205       $rm conftest*
18206       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18207 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18208       ;;
18209     esac
18210   fi
18211   ;;
18212 esac
18213
18214 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18215 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18216 library_names_spec=
18217 libname_spec='lib$name'
18218 soname_spec=
18219 shrext_cmds=".so"
18220 postinstall_cmds=
18221 postuninstall_cmds=
18222 finish_cmds=
18223 finish_eval=
18224 shlibpath_var=
18225 shlibpath_overrides_runpath=unknown
18226 version_type=none
18227 dynamic_linker="$host_os ld.so"
18228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18229
18230 need_lib_prefix=unknown
18231 hardcode_into_libs=no
18232
18233 # when you set need_version to no, make sure it does not cause -set_version
18234 # flags to be left without arguments
18235 need_version=unknown
18236
18237 case $host_os in
18238 aix3*)
18239   version_type=linux
18240   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18241   shlibpath_var=LIBPATH
18242
18243   # AIX 3 has no versioning support, so we append a major version to the name.
18244   soname_spec='${libname}${release}${shared_ext}$major'
18245   ;;
18246
18247 aix[4-9]*)
18248   version_type=linux
18249   need_lib_prefix=no
18250   need_version=no
18251   hardcode_into_libs=yes
18252   if test "$host_cpu" = ia64; then
18253     # AIX 5 supports IA64
18254     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18255     shlibpath_var=LD_LIBRARY_PATH
18256   else
18257     # With GCC up to 2.95.x, collect2 would create an import file
18258     # for dependence libraries.  The import file would start with
18259     # the line `#! .'.  This would cause the generated library to
18260     # depend on `.', always an invalid library.  This was fixed in
18261     # development snapshots of GCC prior to 3.0.
18262     case $host_os in
18263       aix4 | aix4.[01] | aix4.[01].*)
18264       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18265            echo ' yes '
18266            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18267         :
18268       else
18269         can_build_shared=no
18270       fi
18271       ;;
18272     esac
18273     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18274     # soname into executable. Probably we can add versioning support to
18275     # collect2, so additional links can be useful in future.
18276     if test "$aix_use_runtimelinking" = yes; then
18277       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18278       # instead of lib<name>.a to let people know that these are not
18279       # typical AIX shared libraries.
18280       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18281     else
18282       # We preserve .a as extension for shared libraries through AIX4.2
18283       # and later when we are not doing run time linking.
18284       library_names_spec='${libname}${release}.a $libname.a'
18285       soname_spec='${libname}${release}${shared_ext}$major'
18286     fi
18287     shlibpath_var=LIBPATH
18288   fi
18289   ;;
18290
18291 amigaos*)
18292   library_names_spec='$libname.ixlibrary $libname.a'
18293   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18294   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'
18295   ;;
18296
18297 beos*)
18298   library_names_spec='${libname}${shared_ext}'
18299   dynamic_linker="$host_os ld.so"
18300   shlibpath_var=LIBRARY_PATH
18301   ;;
18302
18303 bsdi[45]*)
18304   version_type=linux
18305   need_version=no
18306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18307   soname_spec='${libname}${release}${shared_ext}$major'
18308   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18309   shlibpath_var=LD_LIBRARY_PATH
18310   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18311   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18312   # the default ld.so.conf also contains /usr/contrib/lib and
18313   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18314   # libtool to hard-code these into programs
18315   ;;
18316
18317 cygwin* | mingw* | pw32*)
18318   version_type=windows
18319   shrext_cmds=".dll"
18320   need_version=no
18321   need_lib_prefix=no
18322
18323   case $GCC,$host_os in
18324   yes,cygwin* | yes,mingw* | yes,pw32*)
18325     library_names_spec='$libname.dll.a'
18326     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18327     postinstall_cmds='base_file=`basename \${file}`~
18328       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18329       dldir=$destdir/`dirname \$dlpath`~
18330       test -d \$dldir || mkdir -p \$dldir~
18331       $install_prog $dir/$dlname \$dldir/$dlname~
18332       chmod a+x \$dldir/$dlname'
18333     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18334       dlpath=$dir/\$dldll~
18335        $rm \$dlpath'
18336     shlibpath_overrides_runpath=yes
18337
18338     case $host_os in
18339     cygwin*)
18340       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18341       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18342       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18343       ;;
18344     mingw*)
18345       # MinGW DLLs use traditional 'lib' prefix
18346       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18347       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18348       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18349         # It is most probably a Windows format PATH printed by
18350         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18351         # path with ; separators, and with drive letters. We can handle the
18352         # drive letters (cygwin fileutils understands them), so leave them,
18353         # especially as we might pass files found there to a mingw objdump,
18354         # which wouldn't understand a cygwinified path. Ahh.
18355         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18356       else
18357         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18358       fi
18359       ;;
18360     pw32*)
18361       # pw32 DLLs use 'pw' prefix rather than 'lib'
18362       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18363       ;;
18364     esac
18365     ;;
18366
18367   *)
18368     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18369     ;;
18370   esac
18371   dynamic_linker='Win32 ld.exe'
18372   # FIXME: first we should search . and the directory the executable is in
18373   shlibpath_var=PATH
18374   ;;
18375
18376 darwin* | rhapsody*)
18377   dynamic_linker="$host_os dyld"
18378   version_type=darwin
18379   need_lib_prefix=no
18380   need_version=no
18381   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18382   soname_spec='${libname}${release}${major}$shared_ext'
18383   shlibpath_overrides_runpath=yes
18384   shlibpath_var=DYLD_LIBRARY_PATH
18385   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18386
18387   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18388   ;;
18389
18390 dgux*)
18391   version_type=linux
18392   need_lib_prefix=no
18393   need_version=no
18394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18395   soname_spec='${libname}${release}${shared_ext}$major'
18396   shlibpath_var=LD_LIBRARY_PATH
18397   ;;
18398
18399 freebsd1*)
18400   dynamic_linker=no
18401   ;;
18402
18403 freebsd* | dragonfly*)
18404   # DragonFly does not have aout.  When/if they implement a new
18405   # versioning mechanism, adjust this.
18406   if test -x /usr/bin/objformat; then
18407     objformat=`/usr/bin/objformat`
18408   else
18409     case $host_os in
18410     freebsd[123]*) objformat=aout ;;
18411     *) objformat=elf ;;
18412     esac
18413   fi
18414   version_type=freebsd-$objformat
18415   case $version_type in
18416     freebsd-elf*)
18417       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18418       need_version=no
18419       need_lib_prefix=no
18420       ;;
18421     freebsd-*)
18422       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18423       need_version=yes
18424       ;;
18425   esac
18426   shlibpath_var=LD_LIBRARY_PATH
18427   case $host_os in
18428   freebsd2*)
18429     shlibpath_overrides_runpath=yes
18430     ;;
18431   freebsd3.[01]* | freebsdelf3.[01]*)
18432     shlibpath_overrides_runpath=yes
18433     hardcode_into_libs=yes
18434     ;;
18435   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18436   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18437     shlibpath_overrides_runpath=no
18438     hardcode_into_libs=yes
18439     ;;
18440   *) # from 4.6 on, and DragonFly
18441     shlibpath_overrides_runpath=yes
18442     hardcode_into_libs=yes
18443     ;;
18444   esac
18445   ;;
18446
18447 gnu*)
18448   version_type=linux
18449   need_lib_prefix=no
18450   need_version=no
18451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18452   soname_spec='${libname}${release}${shared_ext}$major'
18453   shlibpath_var=LD_LIBRARY_PATH
18454   hardcode_into_libs=yes
18455   ;;
18456
18457 hpux9* | hpux10* | hpux11*)
18458   # Give a soname corresponding to the major version so that dld.sl refuses to
18459   # link against other versions.
18460   version_type=sunos
18461   need_lib_prefix=no
18462   need_version=no
18463   case $host_cpu in
18464   ia64*)
18465     shrext_cmds='.so'
18466     hardcode_into_libs=yes
18467     dynamic_linker="$host_os dld.so"
18468     shlibpath_var=LD_LIBRARY_PATH
18469     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18471     soname_spec='${libname}${release}${shared_ext}$major'
18472     if test "X$HPUX_IA64_MODE" = X32; then
18473       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18474     else
18475       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18476     fi
18477     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18478     ;;
18479    hppa*64*)
18480      shrext_cmds='.sl'
18481      hardcode_into_libs=yes
18482      dynamic_linker="$host_os dld.sl"
18483      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18484      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18485      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18486      soname_spec='${libname}${release}${shared_ext}$major'
18487      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18488      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18489      ;;
18490    *)
18491     shrext_cmds='.sl'
18492     dynamic_linker="$host_os dld.sl"
18493     shlibpath_var=SHLIB_PATH
18494     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496     soname_spec='${libname}${release}${shared_ext}$major'
18497     ;;
18498   esac
18499   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18500   postinstall_cmds='chmod 555 $lib'
18501   ;;
18502
18503 interix[3-9]*)
18504   version_type=linux
18505   need_lib_prefix=no
18506   need_version=no
18507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18508   soname_spec='${libname}${release}${shared_ext}$major'
18509   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18510   shlibpath_var=LD_LIBRARY_PATH
18511   shlibpath_overrides_runpath=no
18512   hardcode_into_libs=yes
18513   ;;
18514
18515 irix5* | irix6* | nonstopux*)
18516   case $host_os in
18517     nonstopux*) version_type=nonstopux ;;
18518     *)
18519         if test "$lt_cv_prog_gnu_ld" = yes; then
18520                 version_type=linux
18521         else
18522                 version_type=irix
18523         fi ;;
18524   esac
18525   need_lib_prefix=no
18526   need_version=no
18527   soname_spec='${libname}${release}${shared_ext}$major'
18528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18529   case $host_os in
18530   irix5* | nonstopux*)
18531     libsuff= shlibsuff=
18532     ;;
18533   *)
18534     case $LD in # libtool.m4 will add one of these switches to LD
18535     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18536       libsuff= shlibsuff= libmagic=32-bit;;
18537     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18538       libsuff=32 shlibsuff=N32 libmagic=N32;;
18539     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18540       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18541     *) libsuff= shlibsuff= libmagic=never-match;;
18542     esac
18543     ;;
18544   esac
18545   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18546   shlibpath_overrides_runpath=no
18547   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18548   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18549   hardcode_into_libs=yes
18550   ;;
18551
18552 # No shared lib support for Linux oldld, aout, or coff.
18553 linux*oldld* | linux*aout* | linux*coff*)
18554   dynamic_linker=no
18555   ;;
18556
18557 # This must be Linux ELF.
18558 linux* | k*bsd*-gnu)
18559   version_type=linux
18560   need_lib_prefix=no
18561   need_version=no
18562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18563   soname_spec='${libname}${release}${shared_ext}$major'
18564   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18565   shlibpath_var=LD_LIBRARY_PATH
18566   shlibpath_overrides_runpath=no
18567   # This implies no fast_install, which is unacceptable.
18568   # Some rework will be needed to allow for fast_install
18569   # before this can be enabled.
18570   hardcode_into_libs=yes
18571
18572   # Append ld.so.conf contents to the search path
18573   if test -f /etc/ld.so.conf; then
18574     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' ' '`
18575     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18576   fi
18577
18578   # We used to test for /lib/ld.so.1 and disable shared libraries on
18579   # powerpc, because MkLinux only supported shared libraries with the
18580   # GNU dynamic linker.  Since this was broken with cross compilers,
18581   # most powerpc-linux boxes support dynamic linking these days and
18582   # people can always --disable-shared, the test was removed, and we
18583   # assume the GNU/Linux dynamic linker is in use.
18584   dynamic_linker='GNU/Linux ld.so'
18585   ;;
18586
18587 netbsdelf*-gnu)
18588   version_type=linux
18589   need_lib_prefix=no
18590   need_version=no
18591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18592   soname_spec='${libname}${release}${shared_ext}$major'
18593   shlibpath_var=LD_LIBRARY_PATH
18594   shlibpath_overrides_runpath=no
18595   hardcode_into_libs=yes
18596   dynamic_linker='NetBSD ld.elf_so'
18597   ;;
18598
18599 netbsd*)
18600   version_type=sunos
18601   need_lib_prefix=no
18602   need_version=no
18603   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18605     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18606     dynamic_linker='NetBSD (a.out) ld.so'
18607   else
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     dynamic_linker='NetBSD ld.elf_so'
18611   fi
18612   shlibpath_var=LD_LIBRARY_PATH
18613   shlibpath_overrides_runpath=yes
18614   hardcode_into_libs=yes
18615   ;;
18616
18617 newsos6)
18618   version_type=linux
18619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18620   shlibpath_var=LD_LIBRARY_PATH
18621   shlibpath_overrides_runpath=yes
18622   ;;
18623
18624 nto-qnx*)
18625   version_type=linux
18626   need_lib_prefix=no
18627   need_version=no
18628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629   soname_spec='${libname}${release}${shared_ext}$major'
18630   shlibpath_var=LD_LIBRARY_PATH
18631   shlibpath_overrides_runpath=yes
18632   ;;
18633
18634 openbsd*)
18635   version_type=sunos
18636   sys_lib_dlsearch_path_spec="/usr/lib"
18637   need_lib_prefix=no
18638   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18639   case $host_os in
18640     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18641     *)                         need_version=no  ;;
18642   esac
18643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18644   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18645   shlibpath_var=LD_LIBRARY_PATH
18646   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18647     case $host_os in
18648       openbsd2.[89] | openbsd2.[89].*)
18649         shlibpath_overrides_runpath=no
18650         ;;
18651       *)
18652         shlibpath_overrides_runpath=yes
18653         ;;
18654       esac
18655   else
18656     shlibpath_overrides_runpath=yes
18657   fi
18658   ;;
18659
18660 os2*)
18661   libname_spec='$name'
18662   shrext_cmds=".dll"
18663   need_lib_prefix=no
18664   library_names_spec='$libname${shared_ext} $libname.a'
18665   dynamic_linker='OS/2 ld.exe'
18666   shlibpath_var=LIBPATH
18667   ;;
18668
18669 osf3* | osf4* | osf5*)
18670   version_type=osf
18671   need_lib_prefix=no
18672   need_version=no
18673   soname_spec='${libname}${release}${shared_ext}$major'
18674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18675   shlibpath_var=LD_LIBRARY_PATH
18676   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18677   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18678   ;;
18679
18680 rdos*)
18681   dynamic_linker=no
18682   ;;
18683
18684 solaris*)
18685   version_type=linux
18686   need_lib_prefix=no
18687   need_version=no
18688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18689   soname_spec='${libname}${release}${shared_ext}$major'
18690   shlibpath_var=LD_LIBRARY_PATH
18691   shlibpath_overrides_runpath=yes
18692   hardcode_into_libs=yes
18693   # ldd complains unless libraries are executable
18694   postinstall_cmds='chmod +x $lib'
18695   ;;
18696
18697 sunos4*)
18698   version_type=sunos
18699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18700   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18701   shlibpath_var=LD_LIBRARY_PATH
18702   shlibpath_overrides_runpath=yes
18703   if test "$with_gnu_ld" = yes; then
18704     need_lib_prefix=no
18705   fi
18706   need_version=yes
18707   ;;
18708
18709 sysv4 | sysv4.3*)
18710   version_type=linux
18711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18712   soname_spec='${libname}${release}${shared_ext}$major'
18713   shlibpath_var=LD_LIBRARY_PATH
18714   case $host_vendor in
18715     sni)
18716       shlibpath_overrides_runpath=no
18717       need_lib_prefix=no
18718       export_dynamic_flag_spec='${wl}-Blargedynsym'
18719       runpath_var=LD_RUN_PATH
18720       ;;
18721     siemens)
18722       need_lib_prefix=no
18723       ;;
18724     motorola)
18725       need_lib_prefix=no
18726       need_version=no
18727       shlibpath_overrides_runpath=no
18728       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18729       ;;
18730   esac
18731   ;;
18732
18733 sysv4*MP*)
18734   if test -d /usr/nec ;then
18735     version_type=linux
18736     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18737     soname_spec='$libname${shared_ext}.$major'
18738     shlibpath_var=LD_LIBRARY_PATH
18739   fi
18740   ;;
18741
18742 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18743   version_type=freebsd-elf
18744   need_lib_prefix=no
18745   need_version=no
18746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18747   soname_spec='${libname}${release}${shared_ext}$major'
18748   shlibpath_var=LD_LIBRARY_PATH
18749   hardcode_into_libs=yes
18750   if test "$with_gnu_ld" = yes; then
18751     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18752     shlibpath_overrides_runpath=no
18753   else
18754     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18755     shlibpath_overrides_runpath=yes
18756     case $host_os in
18757       sco3.2v5*)
18758         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18759         ;;
18760     esac
18761   fi
18762   sys_lib_dlsearch_path_spec='/usr/lib'
18763   ;;
18764
18765 uts4*)
18766   version_type=linux
18767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18768   soname_spec='${libname}${release}${shared_ext}$major'
18769   shlibpath_var=LD_LIBRARY_PATH
18770   ;;
18771
18772 *)
18773   dynamic_linker=no
18774   ;;
18775 esac
18776 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18777 echo "${ECHO_T}$dynamic_linker" >&6; }
18778 test "$dynamic_linker" = no && can_build_shared=no
18779
18780 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18781   echo $ECHO_N "(cached) $ECHO_C" >&6
18782 else
18783   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18784 fi
18785
18786 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18787 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18788   echo $ECHO_N "(cached) $ECHO_C" >&6
18789 else
18790   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18791 fi
18792
18793 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18794
18795 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18796 if test "$GCC" = yes; then
18797   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18798 fi
18799
18800 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18801 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18802 hardcode_action_GCJ=
18803 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18804    test -n "$runpath_var_GCJ" || \
18805    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18806
18807   # We can hardcode non-existant directories.
18808   if test "$hardcode_direct_GCJ" != no &&
18809      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18810      # have to relink, otherwise we might link with an installed library
18811      # when we should be linking with a yet-to-be-installed one
18812      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18813      test "$hardcode_minus_L_GCJ" != no; then
18814     # Linking always hardcodes the temporary library directory.
18815     hardcode_action_GCJ=relink
18816   else
18817     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18818     hardcode_action_GCJ=immediate
18819   fi
18820 else
18821   # We cannot hardcode anything, or else we can only hardcode existing
18822   # directories.
18823   hardcode_action_GCJ=unsupported
18824 fi
18825 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18826 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18827
18828 if test "$hardcode_action_GCJ" = relink; then
18829   # Fast installation is not supported
18830   enable_fast_install=no
18831 elif test "$shlibpath_overrides_runpath" = yes ||
18832      test "$enable_shared" = no; then
18833   # Fast installation is not necessary
18834   enable_fast_install=needless
18835 fi
18836
18837
18838 # The else clause should only fire when bootstrapping the
18839 # libtool distribution, otherwise you forgot to ship ltmain.sh
18840 # with your package, and you will get complaints that there are
18841 # no rules to generate ltmain.sh.
18842 if test -f "$ltmain"; then
18843   # See if we are running on zsh, and set the options which allow our commands through
18844   # without removal of \ escapes.
18845   if test -n "${ZSH_VERSION+set}" ; then
18846     setopt NO_GLOB_SUBST
18847   fi
18848   # Now quote all the things that may contain metacharacters while being
18849   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18850   # variables and quote the copies for generation of the libtool script.
18851   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18852     SED SHELL STRIP \
18853     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18854     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18855     deplibs_check_method reload_flag reload_cmds need_locks \
18856     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18857     lt_cv_sys_global_symbol_to_c_name_address \
18858     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18859     old_postinstall_cmds old_postuninstall_cmds \
18860     compiler_GCJ \
18861     CC_GCJ \
18862     LD_GCJ \
18863     lt_prog_compiler_wl_GCJ \
18864     lt_prog_compiler_pic_GCJ \
18865     lt_prog_compiler_static_GCJ \
18866     lt_prog_compiler_no_builtin_flag_GCJ \
18867     export_dynamic_flag_spec_GCJ \
18868     thread_safe_flag_spec_GCJ \
18869     whole_archive_flag_spec_GCJ \
18870     enable_shared_with_static_runtimes_GCJ \
18871     old_archive_cmds_GCJ \
18872     old_archive_from_new_cmds_GCJ \
18873     predep_objects_GCJ \
18874     postdep_objects_GCJ \
18875     predeps_GCJ \
18876     postdeps_GCJ \
18877     compiler_lib_search_path_GCJ \
18878     compiler_lib_search_dirs_GCJ \
18879     archive_cmds_GCJ \
18880     archive_expsym_cmds_GCJ \
18881     postinstall_cmds_GCJ \
18882     postuninstall_cmds_GCJ \
18883     old_archive_from_expsyms_cmds_GCJ \
18884     allow_undefined_flag_GCJ \
18885     no_undefined_flag_GCJ \
18886     export_symbols_cmds_GCJ \
18887     hardcode_libdir_flag_spec_GCJ \
18888     hardcode_libdir_flag_spec_ld_GCJ \
18889     hardcode_libdir_separator_GCJ \
18890     hardcode_automatic_GCJ \
18891     module_cmds_GCJ \
18892     module_expsym_cmds_GCJ \
18893     lt_cv_prog_compiler_c_o_GCJ \
18894     fix_srcfile_path_GCJ \
18895     exclude_expsyms_GCJ \
18896     include_expsyms_GCJ; do
18897
18898     case $var in
18899     old_archive_cmds_GCJ | \
18900     old_archive_from_new_cmds_GCJ | \
18901     archive_cmds_GCJ | \
18902     archive_expsym_cmds_GCJ | \
18903     module_cmds_GCJ | \
18904     module_expsym_cmds_GCJ | \
18905     old_archive_from_expsyms_cmds_GCJ | \
18906     export_symbols_cmds_GCJ | \
18907     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18908     postinstall_cmds | postuninstall_cmds | \
18909     old_postinstall_cmds | old_postuninstall_cmds | \
18910     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18911       # Double-quote double-evaled strings.
18912       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18913       ;;
18914     *)
18915       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18916       ;;
18917     esac
18918   done
18919
18920   case $lt_echo in
18921   *'\$0 --fallback-echo"')
18922     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18923     ;;
18924   esac
18925
18926 cfgfile="$ofile"
18927
18928   cat <<__EOF__ >> "$cfgfile"
18929 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18930
18931 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18932
18933 # Shell to use when invoking shell scripts.
18934 SHELL=$lt_SHELL
18935
18936 # Whether or not to build shared libraries.
18937 build_libtool_libs=$enable_shared
18938
18939 # Whether or not to build static libraries.
18940 build_old_libs=$enable_static
18941
18942 # Whether or not to add -lc for building shared libraries.
18943 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18944
18945 # Whether or not to disallow shared libs when runtime libs are static
18946 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18947
18948 # Whether or not to optimize for fast installation.
18949 fast_install=$enable_fast_install
18950
18951 # The host system.
18952 host_alias=$host_alias
18953 host=$host
18954 host_os=$host_os
18955
18956 # The build system.
18957 build_alias=$build_alias
18958 build=$build
18959 build_os=$build_os
18960
18961 # An echo program that does not interpret backslashes.
18962 echo=$lt_echo
18963
18964 # The archiver.
18965 AR=$lt_AR
18966 AR_FLAGS=$lt_AR_FLAGS
18967
18968 # A C compiler.
18969 LTCC=$lt_LTCC
18970
18971 # LTCC compiler flags.
18972 LTCFLAGS=$lt_LTCFLAGS
18973
18974 # A language-specific compiler.
18975 CC=$lt_compiler_GCJ
18976
18977 # Is the compiler the GNU C compiler?
18978 with_gcc=$GCC_GCJ
18979
18980 # An ERE matcher.
18981 EGREP=$lt_EGREP
18982
18983 # The linker used to build libraries.
18984 LD=$lt_LD_GCJ
18985
18986 # Whether we need hard or soft links.
18987 LN_S=$lt_LN_S
18988
18989 # A BSD-compatible nm program.
18990 NM=$lt_NM
18991
18992 # A symbol stripping program
18993 STRIP=$lt_STRIP
18994
18995 # Used to examine libraries when file_magic_cmd begins "file"
18996 MAGIC_CMD=$MAGIC_CMD
18997
18998 # Used on cygwin: DLL creation program.
18999 DLLTOOL="$DLLTOOL"
19000
19001 # Used on cygwin: object dumper.
19002 OBJDUMP="$OBJDUMP"
19003
19004 # Used on cygwin: assembler.
19005 AS="$AS"
19006
19007 # The name of the directory that contains temporary libtool files.
19008 objdir=$objdir
19009
19010 # How to create reloadable object files.
19011 reload_flag=$lt_reload_flag
19012 reload_cmds=$lt_reload_cmds
19013
19014 # How to pass a linker flag through the compiler.
19015 wl=$lt_lt_prog_compiler_wl_GCJ
19016
19017 # Object file suffix (normally "o").
19018 objext="$ac_objext"
19019
19020 # Old archive suffix (normally "a").
19021 libext="$libext"
19022
19023 # Shared library suffix (normally ".so").
19024 shrext_cmds='$shrext_cmds'
19025
19026 # Executable file suffix (normally "").
19027 exeext="$exeext"
19028
19029 # Additional compiler flags for building library objects.
19030 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19031 pic_mode=$pic_mode
19032
19033 # What is the maximum length of a command?
19034 max_cmd_len=$lt_cv_sys_max_cmd_len
19035
19036 # Does compiler simultaneously support -c and -o options?
19037 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19038
19039 # Must we lock files when doing compilation?
19040 need_locks=$lt_need_locks
19041
19042 # Do we need the lib prefix for modules?
19043 need_lib_prefix=$need_lib_prefix
19044
19045 # Do we need a version for libraries?
19046 need_version=$need_version
19047
19048 # Whether dlopen is supported.
19049 dlopen_support=$enable_dlopen
19050
19051 # Whether dlopen of programs is supported.
19052 dlopen_self=$enable_dlopen_self
19053
19054 # Whether dlopen of statically linked programs is supported.
19055 dlopen_self_static=$enable_dlopen_self_static
19056
19057 # Compiler flag to prevent dynamic linking.
19058 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19059
19060 # Compiler flag to turn off builtin functions.
19061 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19062
19063 # Compiler flag to allow reflexive dlopens.
19064 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19065
19066 # Compiler flag to generate shared objects directly from archives.
19067 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19068
19069 # Compiler flag to generate thread-safe objects.
19070 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19071
19072 # Library versioning type.
19073 version_type=$version_type
19074
19075 # Format of library name prefix.
19076 libname_spec=$lt_libname_spec
19077
19078 # List of archive names.  First name is the real one, the rest are links.
19079 # The last name is the one that the linker finds with -lNAME.
19080 library_names_spec=$lt_library_names_spec
19081
19082 # The coded name of the library, if different from the real name.
19083 soname_spec=$lt_soname_spec
19084
19085 # Commands used to build and install an old-style archive.
19086 RANLIB=$lt_RANLIB
19087 old_archive_cmds=$lt_old_archive_cmds_GCJ
19088 old_postinstall_cmds=$lt_old_postinstall_cmds
19089 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19090
19091 # Create an old-style archive from a shared archive.
19092 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19093
19094 # Create a temporary old-style archive to link instead of a shared archive.
19095 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19096
19097 # Commands used to build and install a shared archive.
19098 archive_cmds=$lt_archive_cmds_GCJ
19099 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19100 postinstall_cmds=$lt_postinstall_cmds
19101 postuninstall_cmds=$lt_postuninstall_cmds
19102
19103 # Commands used to build a loadable module (assumed same as above if empty)
19104 module_cmds=$lt_module_cmds_GCJ
19105 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19106
19107 # Commands to strip libraries.
19108 old_striplib=$lt_old_striplib
19109 striplib=$lt_striplib
19110
19111 # Dependencies to place before the objects being linked to create a
19112 # shared library.
19113 predep_objects=$lt_predep_objects_GCJ
19114
19115 # Dependencies to place after the objects being linked to create a
19116 # shared library.
19117 postdep_objects=$lt_postdep_objects_GCJ
19118
19119 # Dependencies to place before the objects being linked to create a
19120 # shared library.
19121 predeps=$lt_predeps_GCJ
19122
19123 # Dependencies to place after the objects being linked to create a
19124 # shared library.
19125 postdeps=$lt_postdeps_GCJ
19126
19127 # The directories searched by this compiler when creating a shared
19128 # library
19129 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19130
19131 # The library search path used internally by the compiler when linking
19132 # a shared library.
19133 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19134
19135 # Method to check whether dependent libraries are shared objects.
19136 deplibs_check_method=$lt_deplibs_check_method
19137
19138 # Command to use when deplibs_check_method == file_magic.
19139 file_magic_cmd=$lt_file_magic_cmd
19140
19141 # Flag that allows shared libraries with undefined symbols to be built.
19142 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19143
19144 # Flag that forces no undefined symbols.
19145 no_undefined_flag=$lt_no_undefined_flag_GCJ
19146
19147 # Commands used to finish a libtool library installation in a directory.
19148 finish_cmds=$lt_finish_cmds
19149
19150 # Same as above, but a single script fragment to be evaled but not shown.
19151 finish_eval=$lt_finish_eval
19152
19153 # Take the output of nm and produce a listing of raw symbols and C names.
19154 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19155
19156 # Transform the output of nm in a proper C declaration
19157 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19158
19159 # Transform the output of nm in a C name address pair
19160 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19161
19162 # This is the shared library runtime path variable.
19163 runpath_var=$runpath_var
19164
19165 # This is the shared library path variable.
19166 shlibpath_var=$shlibpath_var
19167
19168 # Is shlibpath searched before the hard-coded library search path?
19169 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19170
19171 # How to hardcode a shared library path into an executable.
19172 hardcode_action=$hardcode_action_GCJ
19173
19174 # Whether we should hardcode library paths into libraries.
19175 hardcode_into_libs=$hardcode_into_libs
19176
19177 # Flag to hardcode \$libdir into a binary during linking.
19178 # This must work even if \$libdir does not exist.
19179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19180
19181 # If ld is used when linking, flag to hardcode \$libdir into
19182 # a binary during linking. This must work even if \$libdir does
19183 # not exist.
19184 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19185
19186 # Whether we need a single -rpath flag with a separated argument.
19187 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19188
19189 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19190 # resulting binary.
19191 hardcode_direct=$hardcode_direct_GCJ
19192
19193 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19194 # resulting binary.
19195 hardcode_minus_L=$hardcode_minus_L_GCJ
19196
19197 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19198 # the resulting binary.
19199 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19200
19201 # Set to yes if building a shared library automatically hardcodes DIR into the library
19202 # and all subsequent libraries and executables linked against it.
19203 hardcode_automatic=$hardcode_automatic_GCJ
19204
19205 # Variables whose values should be saved in libtool wrapper scripts and
19206 # restored at relink time.
19207 variables_saved_for_relink="$variables_saved_for_relink"
19208
19209 # Whether libtool must link a program against all its dependency libraries.
19210 link_all_deplibs=$link_all_deplibs_GCJ
19211
19212 # Compile-time system search path for libraries
19213 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19214
19215 # Run-time system search path for libraries
19216 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19217
19218 # Fix the shell variable \$srcfile for the compiler.
19219 fix_srcfile_path=$lt_fix_srcfile_path
19220
19221 # Set to yes if exported symbols are required.
19222 always_export_symbols=$always_export_symbols_GCJ
19223
19224 # The commands to list exported symbols.
19225 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19226
19227 # The commands to extract the exported symbol list from a shared archive.
19228 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19229
19230 # Symbols that should not be listed in the preloaded symbols.
19231 exclude_expsyms=$lt_exclude_expsyms_GCJ
19232
19233 # Symbols that must always be exported.
19234 include_expsyms=$lt_include_expsyms_GCJ
19235
19236 # ### END LIBTOOL TAG CONFIG: $tagname
19237
19238 __EOF__
19239
19240
19241 else
19242   # If there is no Makefile yet, we rely on a make rule to execute
19243   # `config.status --recheck' to rerun these tests and create the
19244   # libtool script then.
19245   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19246   if test -f "$ltmain_in"; then
19247     test -f Makefile && make "$ltmain"
19248   fi
19249 fi
19250
19251
19252 ac_ext=c
19253 ac_cpp='$CPP $CPPFLAGS'
19254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19257
19258 CC="$lt_save_CC"
19259
19260         else
19261           tagname=""
19262         fi
19263         ;;
19264
19265       RC)
19266
19267
19268 # Source file extension for RC test sources.
19269 ac_ext=rc
19270
19271 # Object file extension for compiled RC test sources.
19272 objext=o
19273 objext_RC=$objext
19274
19275 # Code to be used in simple compile tests
19276 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19277
19278 # Code to be used in simple link tests
19279 lt_simple_link_test_code="$lt_simple_compile_test_code"
19280
19281 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19282
19283 # If no C compiler was specified, use CC.
19284 LTCC=${LTCC-"$CC"}
19285
19286 # If no C compiler flags were specified, use CFLAGS.
19287 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19288
19289 # Allow CC to be a program name with arguments.
19290 compiler=$CC
19291
19292
19293 # save warnings/boilerplate of simple test code
19294 ac_outfile=conftest.$ac_objext
19295 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19296 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19297 _lt_compiler_boilerplate=`cat conftest.err`
19298 $rm conftest*
19299
19300 ac_outfile=conftest.$ac_objext
19301 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19302 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19303 _lt_linker_boilerplate=`cat conftest.err`
19304 $rm -r conftest*
19305
19306
19307 # Allow CC to be a program name with arguments.
19308 lt_save_CC="$CC"
19309 CC=${RC-"windres"}
19310 compiler=$CC
19311 compiler_RC=$CC
19312 for cc_temp in $compiler""; do
19313   case $cc_temp in
19314     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19315     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19316     \-*) ;;
19317     *) break;;
19318   esac
19319 done
19320 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19321
19322 lt_cv_prog_compiler_c_o_RC=yes
19323
19324 # The else clause should only fire when bootstrapping the
19325 # libtool distribution, otherwise you forgot to ship ltmain.sh
19326 # with your package, and you will get complaints that there are
19327 # no rules to generate ltmain.sh.
19328 if test -f "$ltmain"; then
19329   # See if we are running on zsh, and set the options which allow our commands through
19330   # without removal of \ escapes.
19331   if test -n "${ZSH_VERSION+set}" ; then
19332     setopt NO_GLOB_SUBST
19333   fi
19334   # Now quote all the things that may contain metacharacters while being
19335   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19336   # variables and quote the copies for generation of the libtool script.
19337   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19338     SED SHELL STRIP \
19339     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19340     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19341     deplibs_check_method reload_flag reload_cmds need_locks \
19342     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19343     lt_cv_sys_global_symbol_to_c_name_address \
19344     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19345     old_postinstall_cmds old_postuninstall_cmds \
19346     compiler_RC \
19347     CC_RC \
19348     LD_RC \
19349     lt_prog_compiler_wl_RC \
19350     lt_prog_compiler_pic_RC \
19351     lt_prog_compiler_static_RC \
19352     lt_prog_compiler_no_builtin_flag_RC \
19353     export_dynamic_flag_spec_RC \
19354     thread_safe_flag_spec_RC \
19355     whole_archive_flag_spec_RC \
19356     enable_shared_with_static_runtimes_RC \
19357     old_archive_cmds_RC \
19358     old_archive_from_new_cmds_RC \
19359     predep_objects_RC \
19360     postdep_objects_RC \
19361     predeps_RC \
19362     postdeps_RC \
19363     compiler_lib_search_path_RC \
19364     compiler_lib_search_dirs_RC \
19365     archive_cmds_RC \
19366     archive_expsym_cmds_RC \
19367     postinstall_cmds_RC \
19368     postuninstall_cmds_RC \
19369     old_archive_from_expsyms_cmds_RC \
19370     allow_undefined_flag_RC \
19371     no_undefined_flag_RC \
19372     export_symbols_cmds_RC \
19373     hardcode_libdir_flag_spec_RC \
19374     hardcode_libdir_flag_spec_ld_RC \
19375     hardcode_libdir_separator_RC \
19376     hardcode_automatic_RC \
19377     module_cmds_RC \
19378     module_expsym_cmds_RC \
19379     lt_cv_prog_compiler_c_o_RC \
19380     fix_srcfile_path_RC \
19381     exclude_expsyms_RC \
19382     include_expsyms_RC; do
19383
19384     case $var in
19385     old_archive_cmds_RC | \
19386     old_archive_from_new_cmds_RC | \
19387     archive_cmds_RC | \
19388     archive_expsym_cmds_RC | \
19389     module_cmds_RC | \
19390     module_expsym_cmds_RC | \
19391     old_archive_from_expsyms_cmds_RC | \
19392     export_symbols_cmds_RC | \
19393     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19394     postinstall_cmds | postuninstall_cmds | \
19395     old_postinstall_cmds | old_postuninstall_cmds | \
19396     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19397       # Double-quote double-evaled strings.
19398       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19399       ;;
19400     *)
19401       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19402       ;;
19403     esac
19404   done
19405
19406   case $lt_echo in
19407   *'\$0 --fallback-echo"')
19408     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19409     ;;
19410   esac
19411
19412 cfgfile="$ofile"
19413
19414   cat <<__EOF__ >> "$cfgfile"
19415 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19416
19417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19418
19419 # Shell to use when invoking shell scripts.
19420 SHELL=$lt_SHELL
19421
19422 # Whether or not to build shared libraries.
19423 build_libtool_libs=$enable_shared
19424
19425 # Whether or not to build static libraries.
19426 build_old_libs=$enable_static
19427
19428 # Whether or not to add -lc for building shared libraries.
19429 build_libtool_need_lc=$archive_cmds_need_lc_RC
19430
19431 # Whether or not to disallow shared libs when runtime libs are static
19432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19433
19434 # Whether or not to optimize for fast installation.
19435 fast_install=$enable_fast_install
19436
19437 # The host system.
19438 host_alias=$host_alias
19439 host=$host
19440 host_os=$host_os
19441
19442 # The build system.
19443 build_alias=$build_alias
19444 build=$build
19445 build_os=$build_os
19446
19447 # An echo program that does not interpret backslashes.
19448 echo=$lt_echo
19449
19450 # The archiver.
19451 AR=$lt_AR
19452 AR_FLAGS=$lt_AR_FLAGS
19453
19454 # A C compiler.
19455 LTCC=$lt_LTCC
19456
19457 # LTCC compiler flags.
19458 LTCFLAGS=$lt_LTCFLAGS
19459
19460 # A language-specific compiler.
19461 CC=$lt_compiler_RC
19462
19463 # Is the compiler the GNU C compiler?
19464 with_gcc=$GCC_RC
19465
19466 # An ERE matcher.
19467 EGREP=$lt_EGREP
19468
19469 # The linker used to build libraries.
19470 LD=$lt_LD_RC
19471
19472 # Whether we need hard or soft links.
19473 LN_S=$lt_LN_S
19474
19475 # A BSD-compatible nm program.
19476 NM=$lt_NM
19477
19478 # A symbol stripping program
19479 STRIP=$lt_STRIP
19480
19481 # Used to examine libraries when file_magic_cmd begins "file"
19482 MAGIC_CMD=$MAGIC_CMD
19483
19484 # Used on cygwin: DLL creation program.
19485 DLLTOOL="$DLLTOOL"
19486
19487 # Used on cygwin: object dumper.
19488 OBJDUMP="$OBJDUMP"
19489
19490 # Used on cygwin: assembler.
19491 AS="$AS"
19492
19493 # The name of the directory that contains temporary libtool files.
19494 objdir=$objdir
19495
19496 # How to create reloadable object files.
19497 reload_flag=$lt_reload_flag
19498 reload_cmds=$lt_reload_cmds
19499
19500 # How to pass a linker flag through the compiler.
19501 wl=$lt_lt_prog_compiler_wl_RC
19502
19503 # Object file suffix (normally "o").
19504 objext="$ac_objext"
19505
19506 # Old archive suffix (normally "a").
19507 libext="$libext"
19508
19509 # Shared library suffix (normally ".so").
19510 shrext_cmds='$shrext_cmds'
19511
19512 # Executable file suffix (normally "").
19513 exeext="$exeext"
19514
19515 # Additional compiler flags for building library objects.
19516 pic_flag=$lt_lt_prog_compiler_pic_RC
19517 pic_mode=$pic_mode
19518
19519 # What is the maximum length of a command?
19520 max_cmd_len=$lt_cv_sys_max_cmd_len
19521
19522 # Does compiler simultaneously support -c and -o options?
19523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19524
19525 # Must we lock files when doing compilation?
19526 need_locks=$lt_need_locks
19527
19528 # Do we need the lib prefix for modules?
19529 need_lib_prefix=$need_lib_prefix
19530
19531 # Do we need a version for libraries?
19532 need_version=$need_version
19533
19534 # Whether dlopen is supported.
19535 dlopen_support=$enable_dlopen
19536
19537 # Whether dlopen of programs is supported.
19538 dlopen_self=$enable_dlopen_self
19539
19540 # Whether dlopen of statically linked programs is supported.
19541 dlopen_self_static=$enable_dlopen_self_static
19542
19543 # Compiler flag to prevent dynamic linking.
19544 link_static_flag=$lt_lt_prog_compiler_static_RC
19545
19546 # Compiler flag to turn off builtin functions.
19547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19548
19549 # Compiler flag to allow reflexive dlopens.
19550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19551
19552 # Compiler flag to generate shared objects directly from archives.
19553 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19554
19555 # Compiler flag to generate thread-safe objects.
19556 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19557
19558 # Library versioning type.
19559 version_type=$version_type
19560
19561 # Format of library name prefix.
19562 libname_spec=$lt_libname_spec
19563
19564 # List of archive names.  First name is the real one, the rest are links.
19565 # The last name is the one that the linker finds with -lNAME.
19566 library_names_spec=$lt_library_names_spec
19567
19568 # The coded name of the library, if different from the real name.
19569 soname_spec=$lt_soname_spec
19570
19571 # Commands used to build and install an old-style archive.
19572 RANLIB=$lt_RANLIB
19573 old_archive_cmds=$lt_old_archive_cmds_RC
19574 old_postinstall_cmds=$lt_old_postinstall_cmds
19575 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19576
19577 # Create an old-style archive from a shared archive.
19578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19579
19580 # Create a temporary old-style archive to link instead of a shared archive.
19581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19582
19583 # Commands used to build and install a shared archive.
19584 archive_cmds=$lt_archive_cmds_RC
19585 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19586 postinstall_cmds=$lt_postinstall_cmds
19587 postuninstall_cmds=$lt_postuninstall_cmds
19588
19589 # Commands used to build a loadable module (assumed same as above if empty)
19590 module_cmds=$lt_module_cmds_RC
19591 module_expsym_cmds=$lt_module_expsym_cmds_RC
19592
19593 # Commands to strip libraries.
19594 old_striplib=$lt_old_striplib
19595 striplib=$lt_striplib
19596
19597 # Dependencies to place before the objects being linked to create a
19598 # shared library.
19599 predep_objects=$lt_predep_objects_RC
19600
19601 # Dependencies to place after the objects being linked to create a
19602 # shared library.
19603 postdep_objects=$lt_postdep_objects_RC
19604
19605 # Dependencies to place before the objects being linked to create a
19606 # shared library.
19607 predeps=$lt_predeps_RC
19608
19609 # Dependencies to place after the objects being linked to create a
19610 # shared library.
19611 postdeps=$lt_postdeps_RC
19612
19613 # The directories searched by this compiler when creating a shared
19614 # library
19615 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19616
19617 # The library search path used internally by the compiler when linking
19618 # a shared library.
19619 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19620
19621 # Method to check whether dependent libraries are shared objects.
19622 deplibs_check_method=$lt_deplibs_check_method
19623
19624 # Command to use when deplibs_check_method == file_magic.
19625 file_magic_cmd=$lt_file_magic_cmd
19626
19627 # Flag that allows shared libraries with undefined symbols to be built.
19628 allow_undefined_flag=$lt_allow_undefined_flag_RC
19629
19630 # Flag that forces no undefined symbols.
19631 no_undefined_flag=$lt_no_undefined_flag_RC
19632
19633 # Commands used to finish a libtool library installation in a directory.
19634 finish_cmds=$lt_finish_cmds
19635
19636 # Same as above, but a single script fragment to be evaled but not shown.
19637 finish_eval=$lt_finish_eval
19638
19639 # Take the output of nm and produce a listing of raw symbols and C names.
19640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19641
19642 # Transform the output of nm in a proper C declaration
19643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19644
19645 # Transform the output of nm in a C name address pair
19646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19647
19648 # This is the shared library runtime path variable.
19649 runpath_var=$runpath_var
19650
19651 # This is the shared library path variable.
19652 shlibpath_var=$shlibpath_var
19653
19654 # Is shlibpath searched before the hard-coded library search path?
19655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19656
19657 # How to hardcode a shared library path into an executable.
19658 hardcode_action=$hardcode_action_RC
19659
19660 # Whether we should hardcode library paths into libraries.
19661 hardcode_into_libs=$hardcode_into_libs
19662
19663 # Flag to hardcode \$libdir into a binary during linking.
19664 # This must work even if \$libdir does not exist.
19665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19666
19667 # If ld is used when linking, flag to hardcode \$libdir into
19668 # a binary during linking. This must work even if \$libdir does
19669 # not exist.
19670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19671
19672 # Whether we need a single -rpath flag with a separated argument.
19673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19674
19675 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19676 # resulting binary.
19677 hardcode_direct=$hardcode_direct_RC
19678
19679 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19680 # resulting binary.
19681 hardcode_minus_L=$hardcode_minus_L_RC
19682
19683 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19684 # the resulting binary.
19685 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19686
19687 # Set to yes if building a shared library automatically hardcodes DIR into the library
19688 # and all subsequent libraries and executables linked against it.
19689 hardcode_automatic=$hardcode_automatic_RC
19690
19691 # Variables whose values should be saved in libtool wrapper scripts and
19692 # restored at relink time.
19693 variables_saved_for_relink="$variables_saved_for_relink"
19694
19695 # Whether libtool must link a program against all its dependency libraries.
19696 link_all_deplibs=$link_all_deplibs_RC
19697
19698 # Compile-time system search path for libraries
19699 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19700
19701 # Run-time system search path for libraries
19702 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19703
19704 # Fix the shell variable \$srcfile for the compiler.
19705 fix_srcfile_path=$lt_fix_srcfile_path
19706
19707 # Set to yes if exported symbols are required.
19708 always_export_symbols=$always_export_symbols_RC
19709
19710 # The commands to list exported symbols.
19711 export_symbols_cmds=$lt_export_symbols_cmds_RC
19712
19713 # The commands to extract the exported symbol list from a shared archive.
19714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19715
19716 # Symbols that should not be listed in the preloaded symbols.
19717 exclude_expsyms=$lt_exclude_expsyms_RC
19718
19719 # Symbols that must always be exported.
19720 include_expsyms=$lt_include_expsyms_RC
19721
19722 # ### END LIBTOOL TAG CONFIG: $tagname
19723
19724 __EOF__
19725
19726
19727 else
19728   # If there is no Makefile yet, we rely on a make rule to execute
19729   # `config.status --recheck' to rerun these tests and create the
19730   # libtool script then.
19731   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19732   if test -f "$ltmain_in"; then
19733     test -f Makefile && make "$ltmain"
19734   fi
19735 fi
19736
19737
19738 ac_ext=c
19739 ac_cpp='$CPP $CPPFLAGS'
19740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
19744 CC="$lt_save_CC"
19745
19746         ;;
19747
19748       *)
19749         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19750 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19751    { (exit 1); exit 1; }; }
19752         ;;
19753       esac
19754
19755       # Append the new tag name to the list of available tags.
19756       if test -n "$tagname" ; then
19757       available_tags="$available_tags $tagname"
19758     fi
19759     fi
19760   done
19761   IFS="$lt_save_ifs"
19762
19763   # Now substitute the updated list of available tags.
19764   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19765     mv "${ofile}T" "$ofile"
19766     chmod +x "$ofile"
19767   else
19768     rm -f "${ofile}T"
19769     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19770 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19771    { (exit 1); exit 1; }; }
19772   fi
19773 fi
19774
19775
19776
19777 # This can be used to rebuild libtool when needed
19778 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19779
19780 # Always use our own libtool.
19781 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19782
19783 # Prevent multiple expansion
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806 # Check whether some low-level functions/files are available
19807 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19809 if test "${ac_cv_header_stdc+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812   cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h.  */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h.  */
19818 #include <stdlib.h>
19819 #include <stdarg.h>
19820 #include <string.h>
19821 #include <float.h>
19822
19823 int
19824 main ()
19825 {
19826
19827   ;
19828   return 0;
19829 }
19830 _ACEOF
19831 rm -f conftest.$ac_objext
19832 if { (ac_try="$ac_compile"
19833 case "(($ac_try" in
19834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835   *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838   (eval "$ac_compile") 2>conftest.er1
19839   ac_status=$?
19840   grep -v '^ *+' conftest.er1 >conftest.err
19841   rm -f conftest.er1
19842   cat conftest.err >&5
19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); } && {
19845          test -z "$ac_c_werror_flag" ||
19846          test ! -s conftest.err
19847        } && test -s conftest.$ac_objext; then
19848   ac_cv_header_stdc=yes
19849 else
19850   echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19852
19853         ac_cv_header_stdc=no
19854 fi
19855
19856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857
19858 if test $ac_cv_header_stdc = yes; then
19859   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19860   cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h.  */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h.  */
19866 #include <string.h>
19867
19868 _ACEOF
19869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19870   $EGREP "memchr" >/dev/null 2>&1; then
19871   :
19872 else
19873   ac_cv_header_stdc=no
19874 fi
19875 rm -f conftest*
19876
19877 fi
19878
19879 if test $ac_cv_header_stdc = yes; then
19880   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19881   cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h.  */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h.  */
19887 #include <stdlib.h>
19888
19889 _ACEOF
19890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19891   $EGREP "free" >/dev/null 2>&1; then
19892   :
19893 else
19894   ac_cv_header_stdc=no
19895 fi
19896 rm -f conftest*
19897
19898 fi
19899
19900 if test $ac_cv_header_stdc = yes; then
19901   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19902   if test "$cross_compiling" = yes; then
19903   :
19904 else
19905   cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911 #include <ctype.h>
19912 #include <stdlib.h>
19913 #if ((' ' & 0x0FF) == 0x020)
19914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19916 #else
19917 # define ISLOWER(c) \
19918                    (('a' <= (c) && (c) <= 'i') \
19919                      || ('j' <= (c) && (c) <= 'r') \
19920                      || ('s' <= (c) && (c) <= 'z'))
19921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19922 #endif
19923
19924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19925 int
19926 main ()
19927 {
19928   int i;
19929   for (i = 0; i < 256; i++)
19930     if (XOR (islower (i), ISLOWER (i))
19931         || toupper (i) != TOUPPER (i))
19932       return 2;
19933   return 0;
19934 }
19935 _ACEOF
19936 rm -f conftest$ac_exeext
19937 if { (ac_try="$ac_link"
19938 case "(($ac_try" in
19939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940   *) ac_try_echo=$ac_try;;
19941 esac
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943   (eval "$ac_link") 2>&5
19944   ac_status=$?
19945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19947   { (case "(($ac_try" in
19948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949   *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952   (eval "$ac_try") 2>&5
19953   ac_status=$?
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); }; }; then
19956   :
19957 else
19958   echo "$as_me: program exited with status $ac_status" >&5
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19961
19962 ( exit $ac_status )
19963 ac_cv_header_stdc=no
19964 fi
19965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19966 fi
19967
19968
19969 fi
19970 fi
19971 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19972 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19973 if test $ac_cv_header_stdc = yes; then
19974
19975 cat >>confdefs.h <<\_ACEOF
19976 #define STDC_HEADERS 1
19977 _ACEOF
19978
19979 fi
19980
19981
19982 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19983 if test "${ac_cv_header_stdint_h+set}" = set; then
19984   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19985 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19986 if test "${ac_cv_header_stdint_h+set}" = set; then
19987   echo $ECHO_N "(cached) $ECHO_C" >&6
19988 fi
19989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19990 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
19991 else
19992   # Is the header compilable?
19993 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
19994 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
19995 cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h.  */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h.  */
20001 $ac_includes_default
20002 #include <stdint.h>
20003 _ACEOF
20004 rm -f conftest.$ac_objext
20005 if { (ac_try="$ac_compile"
20006 case "(($ac_try" in
20007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008   *) ac_try_echo=$ac_try;;
20009 esac
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011   (eval "$ac_compile") 2>conftest.er1
20012   ac_status=$?
20013   grep -v '^ *+' conftest.er1 >conftest.err
20014   rm -f conftest.er1
20015   cat conftest.err >&5
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); } && {
20018          test -z "$ac_c_werror_flag" ||
20019          test ! -s conftest.err
20020        } && test -s conftest.$ac_objext; then
20021   ac_header_compiler=yes
20022 else
20023   echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20025
20026         ac_header_compiler=no
20027 fi
20028
20029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20031 echo "${ECHO_T}$ac_header_compiler" >&6; }
20032
20033 # Is the header present?
20034 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20035 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20036 cat >conftest.$ac_ext <<_ACEOF
20037 /* confdefs.h.  */
20038 _ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h.  */
20042 #include <stdint.h>
20043 _ACEOF
20044 if { (ac_try="$ac_cpp conftest.$ac_ext"
20045 case "(($ac_try" in
20046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047   *) ac_try_echo=$ac_try;;
20048 esac
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20051   ac_status=$?
20052   grep -v '^ *+' conftest.er1 >conftest.err
20053   rm -f conftest.er1
20054   cat conftest.err >&5
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); } >/dev/null && {
20057          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20058          test ! -s conftest.err
20059        }; then
20060   ac_header_preproc=yes
20061 else
20062   echo "$as_me: failed program was:" >&5
20063 sed 's/^/| /' conftest.$ac_ext >&5
20064
20065   ac_header_preproc=no
20066 fi
20067
20068 rm -f conftest.err conftest.$ac_ext
20069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20070 echo "${ECHO_T}$ac_header_preproc" >&6; }
20071
20072 # So?  What about this header?
20073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20074   yes:no: )
20075     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20076 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20077     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20078 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20079     ac_header_preproc=yes
20080     ;;
20081   no:yes:* )
20082     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20083 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20084     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20085 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20086     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20087 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20088     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20089 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20090     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20091 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20092     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20093 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20094     ( cat <<\_ASBOX
20095 ## ------------------------------------ ##
20096 ## Report this to opensource@google.com ##
20097 ## ------------------------------------ ##
20098 _ASBOX
20099      ) | sed "s/^/$as_me: WARNING:     /" >&2
20100     ;;
20101 esac
20102 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20103 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20104 if test "${ac_cv_header_stdint_h+set}" = set; then
20105   echo $ECHO_N "(cached) $ECHO_C" >&6
20106 else
20107   ac_cv_header_stdint_h=$ac_header_preproc
20108 fi
20109 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20110 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20111
20112 fi
20113 if test $ac_cv_header_stdint_h = yes; then
20114   ac_cv_have_stdint_h=1
20115 else
20116   ac_cv_have_stdint_h=0
20117 fi
20118
20119
20120 if test "${ac_cv_header_sys_types_h+set}" = set; then
20121   { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20122 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20123 if test "${ac_cv_header_sys_types_h+set}" = set; then
20124   echo $ECHO_N "(cached) $ECHO_C" >&6
20125 fi
20126 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20127 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20128 else
20129   # Is the header compilable?
20130 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20131 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20132 cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h.  */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h.  */
20138 $ac_includes_default
20139 #include <sys/types.h>
20140 _ACEOF
20141 rm -f conftest.$ac_objext
20142 if { (ac_try="$ac_compile"
20143 case "(($ac_try" in
20144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145   *) ac_try_echo=$ac_try;;
20146 esac
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148   (eval "$ac_compile") 2>conftest.er1
20149   ac_status=$?
20150   grep -v '^ *+' conftest.er1 >conftest.err
20151   rm -f conftest.er1
20152   cat conftest.err >&5
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); } && {
20155          test -z "$ac_c_werror_flag" ||
20156          test ! -s conftest.err
20157        } && test -s conftest.$ac_objext; then
20158   ac_header_compiler=yes
20159 else
20160   echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163         ac_header_compiler=no
20164 fi
20165
20166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20168 echo "${ECHO_T}$ac_header_compiler" >&6; }
20169
20170 # Is the header present?
20171 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20172 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h.  */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h.  */
20179 #include <sys/types.h>
20180 _ACEOF
20181 if { (ac_try="$ac_cpp conftest.$ac_ext"
20182 case "(($ac_try" in
20183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184   *) ac_try_echo=$ac_try;;
20185 esac
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20188   ac_status=$?
20189   grep -v '^ *+' conftest.er1 >conftest.err
20190   rm -f conftest.er1
20191   cat conftest.err >&5
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); } >/dev/null && {
20194          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20195          test ! -s conftest.err
20196        }; then
20197   ac_header_preproc=yes
20198 else
20199   echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.$ac_ext >&5
20201
20202   ac_header_preproc=no
20203 fi
20204
20205 rm -f conftest.err conftest.$ac_ext
20206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20207 echo "${ECHO_T}$ac_header_preproc" >&6; }
20208
20209 # So?  What about this header?
20210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20211   yes:no: )
20212     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20213 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20214     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20215 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20216     ac_header_preproc=yes
20217     ;;
20218   no:yes:* )
20219     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20220 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20221     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20222 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20223     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20224 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20225     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20226 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20227     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20228 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20229     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20230 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20231     ( cat <<\_ASBOX
20232 ## ------------------------------------ ##
20233 ## Report this to opensource@google.com ##
20234 ## ------------------------------------ ##
20235 _ASBOX
20236      ) | sed "s/^/$as_me: WARNING:     /" >&2
20237     ;;
20238 esac
20239 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20240 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20241 if test "${ac_cv_header_sys_types_h+set}" = set; then
20242   echo $ECHO_N "(cached) $ECHO_C" >&6
20243 else
20244   ac_cv_header_sys_types_h=$ac_header_preproc
20245 fi
20246 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20247 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20248
20249 fi
20250 if test $ac_cv_header_sys_types_h = yes; then
20251   ac_cv_have_systypes_h=1
20252 else
20253   ac_cv_have_systypes_h=0
20254 fi
20255
20256
20257 if test "${ac_cv_header_inttypes_h+set}" = set; then
20258   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20259 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20260 if test "${ac_cv_header_inttypes_h+set}" = set; then
20261   echo $ECHO_N "(cached) $ECHO_C" >&6
20262 fi
20263 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20264 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20265 else
20266   # Is the header compilable?
20267 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20268 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275 $ac_includes_default
20276 #include <inttypes.h>
20277 _ACEOF
20278 rm -f conftest.$ac_objext
20279 if { (ac_try="$ac_compile"
20280 case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285   (eval "$ac_compile") 2>conftest.er1
20286   ac_status=$?
20287   grep -v '^ *+' conftest.er1 >conftest.err
20288   rm -f conftest.er1
20289   cat conftest.err >&5
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } && {
20292          test -z "$ac_c_werror_flag" ||
20293          test ! -s conftest.err
20294        } && test -s conftest.$ac_objext; then
20295   ac_header_compiler=yes
20296 else
20297   echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300         ac_header_compiler=no
20301 fi
20302
20303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20305 echo "${ECHO_T}$ac_header_compiler" >&6; }
20306
20307 # Is the header present?
20308 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20309 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20310 cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316 #include <inttypes.h>
20317 _ACEOF
20318 if { (ac_try="$ac_cpp conftest.$ac_ext"
20319 case "(($ac_try" in
20320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321   *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20325   ac_status=$?
20326   grep -v '^ *+' conftest.er1 >conftest.err
20327   rm -f conftest.er1
20328   cat conftest.err >&5
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); } >/dev/null && {
20331          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20332          test ! -s conftest.err
20333        }; then
20334   ac_header_preproc=yes
20335 else
20336   echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20338
20339   ac_header_preproc=no
20340 fi
20341
20342 rm -f conftest.err conftest.$ac_ext
20343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20344 echo "${ECHO_T}$ac_header_preproc" >&6; }
20345
20346 # So?  What about this header?
20347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20348   yes:no: )
20349     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20350 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20351     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20352 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20353     ac_header_preproc=yes
20354     ;;
20355   no:yes:* )
20356     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20357 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20358     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20359 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20360     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20361 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20362     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20363 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20364     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20365 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20366     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20367 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20368     ( cat <<\_ASBOX
20369 ## ------------------------------------ ##
20370 ## Report this to opensource@google.com ##
20371 ## ------------------------------------ ##
20372 _ASBOX
20373      ) | sed "s/^/$as_me: WARNING:     /" >&2
20374     ;;
20375 esac
20376 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20377 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20378 if test "${ac_cv_header_inttypes_h+set}" = set; then
20379   echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381   ac_cv_header_inttypes_h=$ac_header_preproc
20382 fi
20383 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20384 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20385
20386 fi
20387 if test $ac_cv_header_inttypes_h = yes; then
20388   ac_cv_have_inttypes_h=1
20389 else
20390   ac_cv_have_inttypes_h=0
20391 fi
20392
20393
20394
20395 for ac_header in unistd.h
20396 do
20397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20399   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20402   echo $ECHO_N "(cached) $ECHO_C" >&6
20403 fi
20404 ac_res=`eval echo '${'$as_ac_Header'}'`
20405                { echo "$as_me:$LINENO: result: $ac_res" >&5
20406 echo "${ECHO_T}$ac_res" >&6; }
20407 else
20408   # Is the header compilable?
20409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417 $ac_includes_default
20418 #include <$ac_header>
20419 _ACEOF
20420 rm -f conftest.$ac_objext
20421 if { (ac_try="$ac_compile"
20422 case "(($ac_try" in
20423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424   *) ac_try_echo=$ac_try;;
20425 esac
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427   (eval "$ac_compile") 2>conftest.er1
20428   ac_status=$?
20429   grep -v '^ *+' conftest.er1 >conftest.err
20430   rm -f conftest.er1
20431   cat conftest.err >&5
20432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433   (exit $ac_status); } && {
20434          test -z "$ac_c_werror_flag" ||
20435          test ! -s conftest.err
20436        } && test -s conftest.$ac_objext; then
20437   ac_header_compiler=yes
20438 else
20439   echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20441
20442         ac_header_compiler=no
20443 fi
20444
20445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20447 echo "${ECHO_T}$ac_header_compiler" >&6; }
20448
20449 # Is the header present?
20450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20452 cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h.  */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h.  */
20458 #include <$ac_header>
20459 _ACEOF
20460 if { (ac_try="$ac_cpp conftest.$ac_ext"
20461 case "(($ac_try" in
20462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463   *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20467   ac_status=$?
20468   grep -v '^ *+' conftest.er1 >conftest.err
20469   rm -f conftest.er1
20470   cat conftest.err >&5
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); } >/dev/null && {
20473          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20474          test ! -s conftest.err
20475        }; then
20476   ac_header_preproc=yes
20477 else
20478   echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20480
20481   ac_header_preproc=no
20482 fi
20483
20484 rm -f conftest.err conftest.$ac_ext
20485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20486 echo "${ECHO_T}$ac_header_preproc" >&6; }
20487
20488 # So?  What about this header?
20489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20490   yes:no: )
20491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20495     ac_header_preproc=yes
20496     ;;
20497   no:yes:* )
20498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20500     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20501 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20502     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20504     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20505 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20508     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20510     ( cat <<\_ASBOX
20511 ## ------------------------------------ ##
20512 ## Report this to opensource@google.com ##
20513 ## ------------------------------------ ##
20514 _ASBOX
20515      ) | sed "s/^/$as_me: WARNING:     /" >&2
20516     ;;
20517 esac
20518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20521   echo $ECHO_N "(cached) $ECHO_C" >&6
20522 else
20523   eval "$as_ac_Header=\$ac_header_preproc"
20524 fi
20525 ac_res=`eval echo '${'$as_ac_Header'}'`
20526                { echo "$as_me:$LINENO: result: $ac_res" >&5
20527 echo "${ECHO_T}$ac_res" >&6; }
20528
20529 fi
20530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20531   cat >>confdefs.h <<_ACEOF
20532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20533 _ACEOF
20534  ac_cv_have_unistd_h=1
20535 else
20536   ac_cv_have_unistd_h=0
20537 fi
20538
20539 done
20540
20541
20542 for ac_header in syscall.h
20543 do
20544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20546   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20549   echo $ECHO_N "(cached) $ECHO_C" >&6
20550 fi
20551 ac_res=`eval echo '${'$as_ac_Header'}'`
20552                { echo "$as_me:$LINENO: result: $ac_res" >&5
20553 echo "${ECHO_T}$ac_res" >&6; }
20554 else
20555   # Is the header compilable?
20556 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20558 cat >conftest.$ac_ext <<_ACEOF
20559 /* confdefs.h.  */
20560 _ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h.  */
20564 $ac_includes_default
20565 #include <$ac_header>
20566 _ACEOF
20567 rm -f conftest.$ac_objext
20568 if { (ac_try="$ac_compile"
20569 case "(($ac_try" in
20570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571   *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574   (eval "$ac_compile") 2>conftest.er1
20575   ac_status=$?
20576   grep -v '^ *+' conftest.er1 >conftest.err
20577   rm -f conftest.er1
20578   cat conftest.err >&5
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } && {
20581          test -z "$ac_c_werror_flag" ||
20582          test ! -s conftest.err
20583        } && test -s conftest.$ac_objext; then
20584   ac_header_compiler=yes
20585 else
20586   echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20588
20589         ac_header_compiler=no
20590 fi
20591
20592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20594 echo "${ECHO_T}$ac_header_compiler" >&6; }
20595
20596 # Is the header present?
20597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20599 cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h.  */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h.  */
20605 #include <$ac_header>
20606 _ACEOF
20607 if { (ac_try="$ac_cpp conftest.$ac_ext"
20608 case "(($ac_try" in
20609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610   *) ac_try_echo=$ac_try;;
20611 esac
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20614   ac_status=$?
20615   grep -v '^ *+' conftest.er1 >conftest.err
20616   rm -f conftest.er1
20617   cat conftest.err >&5
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); } >/dev/null && {
20620          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20621          test ! -s conftest.err
20622        }; then
20623   ac_header_preproc=yes
20624 else
20625   echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628   ac_header_preproc=no
20629 fi
20630
20631 rm -f conftest.err conftest.$ac_ext
20632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20633 echo "${ECHO_T}$ac_header_preproc" >&6; }
20634
20635 # So?  What about this header?
20636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20637   yes:no: )
20638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20642     ac_header_preproc=yes
20643     ;;
20644   no:yes:* )
20645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20657     ( cat <<\_ASBOX
20658 ## ------------------------------------ ##
20659 ## Report this to opensource@google.com ##
20660 ## ------------------------------------ ##
20661 _ASBOX
20662      ) | sed "s/^/$as_me: WARNING:     /" >&2
20663     ;;
20664 esac
20665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20668   echo $ECHO_N "(cached) $ECHO_C" >&6
20669 else
20670   eval "$as_ac_Header=\$ac_header_preproc"
20671 fi
20672 ac_res=`eval echo '${'$as_ac_Header'}'`
20673                { echo "$as_me:$LINENO: result: $ac_res" >&5
20674 echo "${ECHO_T}$ac_res" >&6; }
20675
20676 fi
20677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20678   cat >>confdefs.h <<_ACEOF
20679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20680 _ACEOF
20681
20682 fi
20683
20684 done
20685
20686
20687 for ac_header in sys/syscall.h
20688 do
20689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20691   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20694   echo $ECHO_N "(cached) $ECHO_C" >&6
20695 fi
20696 ac_res=`eval echo '${'$as_ac_Header'}'`
20697                { echo "$as_me:$LINENO: result: $ac_res" >&5
20698 echo "${ECHO_T}$ac_res" >&6; }
20699 else
20700   # Is the header compilable?
20701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20703 cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h.  */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h.  */
20709 $ac_includes_default
20710 #include <$ac_header>
20711 _ACEOF
20712 rm -f conftest.$ac_objext
20713 if { (ac_try="$ac_compile"
20714 case "(($ac_try" in
20715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716   *) ac_try_echo=$ac_try;;
20717 esac
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719   (eval "$ac_compile") 2>conftest.er1
20720   ac_status=$?
20721   grep -v '^ *+' conftest.er1 >conftest.err
20722   rm -f conftest.er1
20723   cat conftest.err >&5
20724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725   (exit $ac_status); } && {
20726          test -z "$ac_c_werror_flag" ||
20727          test ! -s conftest.err
20728        } && test -s conftest.$ac_objext; then
20729   ac_header_compiler=yes
20730 else
20731   echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20733
20734         ac_header_compiler=no
20735 fi
20736
20737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20739 echo "${ECHO_T}$ac_header_compiler" >&6; }
20740
20741 # Is the header present?
20742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20744 cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h.  */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h.  */
20750 #include <$ac_header>
20751 _ACEOF
20752 if { (ac_try="$ac_cpp conftest.$ac_ext"
20753 case "(($ac_try" in
20754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755   *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20759   ac_status=$?
20760   grep -v '^ *+' conftest.er1 >conftest.err
20761   rm -f conftest.er1
20762   cat conftest.err >&5
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); } >/dev/null && {
20765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20766          test ! -s conftest.err
20767        }; then
20768   ac_header_preproc=yes
20769 else
20770   echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773   ac_header_preproc=no
20774 fi
20775
20776 rm -f conftest.err conftest.$ac_ext
20777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20778 echo "${ECHO_T}$ac_header_preproc" >&6; }
20779
20780 # So?  What about this header?
20781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20782   yes:no: )
20783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20787     ac_header_preproc=yes
20788     ;;
20789   no:yes:* )
20790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20792     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20793 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20794     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20796     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20797 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20800     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20802     ( cat <<\_ASBOX
20803 ## ------------------------------------ ##
20804 ## Report this to opensource@google.com ##
20805 ## ------------------------------------ ##
20806 _ASBOX
20807      ) | sed "s/^/$as_me: WARNING:     /" >&2
20808     ;;
20809 esac
20810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20813   echo $ECHO_N "(cached) $ECHO_C" >&6
20814 else
20815   eval "$as_ac_Header=\$ac_header_preproc"
20816 fi
20817 ac_res=`eval echo '${'$as_ac_Header'}'`
20818                { echo "$as_me:$LINENO: result: $ac_res" >&5
20819 echo "${ECHO_T}$ac_res" >&6; }
20820
20821 fi
20822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20823   cat >>confdefs.h <<_ACEOF
20824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20825 _ACEOF
20826
20827 fi
20828
20829 done
20830
20831 # For backtrace with glibc.
20832
20833 for ac_header in execinfo.h
20834 do
20835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20837   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20840   echo $ECHO_N "(cached) $ECHO_C" >&6
20841 fi
20842 ac_res=`eval echo '${'$as_ac_Header'}'`
20843                { echo "$as_me:$LINENO: result: $ac_res" >&5
20844 echo "${ECHO_T}$ac_res" >&6; }
20845 else
20846   # Is the header compilable?
20847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h.  */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h.  */
20855 $ac_includes_default
20856 #include <$ac_header>
20857 _ACEOF
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862   *) ac_try_echo=$ac_try;;
20863 esac
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865   (eval "$ac_compile") 2>conftest.er1
20866   ac_status=$?
20867   grep -v '^ *+' conftest.er1 >conftest.err
20868   rm -f conftest.er1
20869   cat conftest.err >&5
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); } && {
20872          test -z "$ac_c_werror_flag" ||
20873          test ! -s conftest.err
20874        } && test -s conftest.$ac_objext; then
20875   ac_header_compiler=yes
20876 else
20877   echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880         ac_header_compiler=no
20881 fi
20882
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20885 echo "${ECHO_T}$ac_header_compiler" >&6; }
20886
20887 # Is the header present?
20888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20890 cat >conftest.$ac_ext <<_ACEOF
20891 /* confdefs.h.  */
20892 _ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h.  */
20896 #include <$ac_header>
20897 _ACEOF
20898 if { (ac_try="$ac_cpp conftest.$ac_ext"
20899 case "(($ac_try" in
20900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901   *) ac_try_echo=$ac_try;;
20902 esac
20903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20905   ac_status=$?
20906   grep -v '^ *+' conftest.er1 >conftest.err
20907   rm -f conftest.er1
20908   cat conftest.err >&5
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); } >/dev/null && {
20911          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20912          test ! -s conftest.err
20913        }; then
20914   ac_header_preproc=yes
20915 else
20916   echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919   ac_header_preproc=no
20920 fi
20921
20922 rm -f conftest.err conftest.$ac_ext
20923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20924 echo "${ECHO_T}$ac_header_preproc" >&6; }
20925
20926 # So?  What about this header?
20927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20928   yes:no: )
20929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20933     ac_header_preproc=yes
20934     ;;
20935   no:yes:* )
20936     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20938     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20939 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20940     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20942     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20943 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20946     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20948     ( cat <<\_ASBOX
20949 ## ------------------------------------ ##
20950 ## Report this to opensource@google.com ##
20951 ## ------------------------------------ ##
20952 _ASBOX
20953      ) | sed "s/^/$as_me: WARNING:     /" >&2
20954     ;;
20955 esac
20956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20959   echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961   eval "$as_ac_Header=\$ac_header_preproc"
20962 fi
20963 ac_res=`eval echo '${'$as_ac_Header'}'`
20964                { echo "$as_me:$LINENO: result: $ac_res" >&5
20965 echo "${ECHO_T}$ac_res" >&6; }
20966
20967 fi
20968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20969   cat >>confdefs.h <<_ACEOF
20970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20971 _ACEOF
20972
20973 fi
20974
20975 done
20976
20977 # For backtrace with libunwind.
20978
20979 for ac_header in libunwind.h
20980 do
20981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20983   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20986   echo $ECHO_N "(cached) $ECHO_C" >&6
20987 fi
20988 ac_res=`eval echo '${'$as_ac_Header'}'`
20989                { echo "$as_me:$LINENO: result: $ac_res" >&5
20990 echo "${ECHO_T}$ac_res" >&6; }
20991 else
20992   # Is the header compilable?
20993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20995 cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h.  */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h.  */
21001 $ac_includes_default
21002 #include <$ac_header>
21003 _ACEOF
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011   (eval "$ac_compile") 2>conftest.er1
21012   ac_status=$?
21013   grep -v '^ *+' conftest.er1 >conftest.err
21014   rm -f conftest.er1
21015   cat conftest.err >&5
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); } && {
21018          test -z "$ac_c_werror_flag" ||
21019          test ! -s conftest.err
21020        } && test -s conftest.$ac_objext; then
21021   ac_header_compiler=yes
21022 else
21023   echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026         ac_header_compiler=no
21027 fi
21028
21029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21031 echo "${ECHO_T}$ac_header_compiler" >&6; }
21032
21033 # Is the header present?
21034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21036 cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h.  */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h.  */
21042 #include <$ac_header>
21043 _ACEOF
21044 if { (ac_try="$ac_cpp conftest.$ac_ext"
21045 case "(($ac_try" in
21046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047   *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21051   ac_status=$?
21052   grep -v '^ *+' conftest.er1 >conftest.err
21053   rm -f conftest.er1
21054   cat conftest.err >&5
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); } >/dev/null && {
21057          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21058          test ! -s conftest.err
21059        }; then
21060   ac_header_preproc=yes
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065   ac_header_preproc=no
21066 fi
21067
21068 rm -f conftest.err conftest.$ac_ext
21069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21070 echo "${ECHO_T}$ac_header_preproc" >&6; }
21071
21072 # So?  What about this header?
21073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21074   yes:no: )
21075     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21079     ac_header_preproc=yes
21080     ;;
21081   no:yes:* )
21082     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21084     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21085 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21086     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21088     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21089 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21092     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21094     ( cat <<\_ASBOX
21095 ## ------------------------------------ ##
21096 ## Report this to opensource@google.com ##
21097 ## ------------------------------------ ##
21098 _ASBOX
21099      ) | sed "s/^/$as_me: WARNING:     /" >&2
21100     ;;
21101 esac
21102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21105   echo $ECHO_N "(cached) $ECHO_C" >&6
21106 else
21107   eval "$as_ac_Header=\$ac_header_preproc"
21108 fi
21109 ac_res=`eval echo '${'$as_ac_Header'}'`
21110                { echo "$as_me:$LINENO: result: $ac_res" >&5
21111 echo "${ECHO_T}$ac_res" >&6; }
21112
21113 fi
21114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21115   cat >>confdefs.h <<_ACEOF
21116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21117 _ACEOF
21118
21119 fi
21120
21121 done
21122
21123
21124 for ac_header in ucontext.h
21125 do
21126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21131   echo $ECHO_N "(cached) $ECHO_C" >&6
21132 fi
21133 ac_res=`eval echo '${'$as_ac_Header'}'`
21134                { echo "$as_me:$LINENO: result: $ac_res" >&5
21135 echo "${ECHO_T}$ac_res" >&6; }
21136 else
21137   # Is the header compilable?
21138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h.  */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h.  */
21146 $ac_includes_default
21147 #include <$ac_header>
21148 _ACEOF
21149 rm -f conftest.$ac_objext
21150 if { (ac_try="$ac_compile"
21151 case "(($ac_try" in
21152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153   *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156   (eval "$ac_compile") 2>conftest.er1
21157   ac_status=$?
21158   grep -v '^ *+' conftest.er1 >conftest.err
21159   rm -f conftest.er1
21160   cat conftest.err >&5
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); } && {
21163          test -z "$ac_c_werror_flag" ||
21164          test ! -s conftest.err
21165        } && test -s conftest.$ac_objext; then
21166   ac_header_compiler=yes
21167 else
21168   echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21170
21171         ac_header_compiler=no
21172 fi
21173
21174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21176 echo "${ECHO_T}$ac_header_compiler" >&6; }
21177
21178 # Is the header present?
21179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h.  */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h.  */
21187 #include <$ac_header>
21188 _ACEOF
21189 if { (ac_try="$ac_cpp conftest.$ac_ext"
21190 case "(($ac_try" in
21191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192   *) ac_try_echo=$ac_try;;
21193 esac
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21196   ac_status=$?
21197   grep -v '^ *+' conftest.er1 >conftest.err
21198   rm -f conftest.er1
21199   cat conftest.err >&5
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); } >/dev/null && {
21202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21203          test ! -s conftest.err
21204        }; then
21205   ac_header_preproc=yes
21206 else
21207   echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21209
21210   ac_header_preproc=no
21211 fi
21212
21213 rm -f conftest.err conftest.$ac_ext
21214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21215 echo "${ECHO_T}$ac_header_preproc" >&6; }
21216
21217 # So?  What about this header?
21218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21219   yes:no: )
21220     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21224     ac_header_preproc=yes
21225     ;;
21226   no:yes:* )
21227     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21229     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21230 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21231     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21233     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21234 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21237     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21239     ( cat <<\_ASBOX
21240 ## ------------------------------------ ##
21241 ## Report this to opensource@google.com ##
21242 ## ------------------------------------ ##
21243 _ASBOX
21244      ) | sed "s/^/$as_me: WARNING:     /" >&2
21245     ;;
21246 esac
21247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21250   echo $ECHO_N "(cached) $ECHO_C" >&6
21251 else
21252   eval "$as_ac_Header=\$ac_header_preproc"
21253 fi
21254 ac_res=`eval echo '${'$as_ac_Header'}'`
21255                { echo "$as_me:$LINENO: result: $ac_res" >&5
21256 echo "${ECHO_T}$ac_res" >&6; }
21257
21258 fi
21259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21260   cat >>confdefs.h <<_ACEOF
21261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21262 _ACEOF
21263
21264 fi
21265
21266 done
21267
21268
21269 for ac_header in sys/utsname.h
21270 do
21271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21273   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21276   echo $ECHO_N "(cached) $ECHO_C" >&6
21277 fi
21278 ac_res=`eval echo '${'$as_ac_Header'}'`
21279                { echo "$as_me:$LINENO: result: $ac_res" >&5
21280 echo "${ECHO_T}$ac_res" >&6; }
21281 else
21282   # Is the header compilable?
21283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21285 cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h.  */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h.  */
21291 $ac_includes_default
21292 #include <$ac_header>
21293 _ACEOF
21294 rm -f conftest.$ac_objext
21295 if { (ac_try="$ac_compile"
21296 case "(($ac_try" in
21297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298   *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301   (eval "$ac_compile") 2>conftest.er1
21302   ac_status=$?
21303   grep -v '^ *+' conftest.er1 >conftest.err
21304   rm -f conftest.er1
21305   cat conftest.err >&5
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); } && {
21308          test -z "$ac_c_werror_flag" ||
21309          test ! -s conftest.err
21310        } && test -s conftest.$ac_objext; then
21311   ac_header_compiler=yes
21312 else
21313   echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316         ac_header_compiler=no
21317 fi
21318
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21321 echo "${ECHO_T}$ac_header_compiler" >&6; }
21322
21323 # Is the header present?
21324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21326 cat >conftest.$ac_ext <<_ACEOF
21327 /* confdefs.h.  */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h.  */
21332 #include <$ac_header>
21333 _ACEOF
21334 if { (ac_try="$ac_cpp conftest.$ac_ext"
21335 case "(($ac_try" in
21336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337   *) ac_try_echo=$ac_try;;
21338 esac
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21341   ac_status=$?
21342   grep -v '^ *+' conftest.er1 >conftest.err
21343   rm -f conftest.er1
21344   cat conftest.err >&5
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); } >/dev/null && {
21347          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21348          test ! -s conftest.err
21349        }; then
21350   ac_header_preproc=yes
21351 else
21352   echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21354
21355   ac_header_preproc=no
21356 fi
21357
21358 rm -f conftest.err conftest.$ac_ext
21359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21360 echo "${ECHO_T}$ac_header_preproc" >&6; }
21361
21362 # So?  What about this header?
21363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21364   yes:no: )
21365     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21369     ac_header_preproc=yes
21370     ;;
21371   no:yes:* )
21372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21374     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21375 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21376     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21378     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21379 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21382     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21384     ( cat <<\_ASBOX
21385 ## ------------------------------------ ##
21386 ## Report this to opensource@google.com ##
21387 ## ------------------------------------ ##
21388 _ASBOX
21389      ) | sed "s/^/$as_me: WARNING:     /" >&2
21390     ;;
21391 esac
21392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21395   echo $ECHO_N "(cached) $ECHO_C" >&6
21396 else
21397   eval "$as_ac_Header=\$ac_header_preproc"
21398 fi
21399 ac_res=`eval echo '${'$as_ac_Header'}'`
21400                { echo "$as_me:$LINENO: result: $ac_res" >&5
21401 echo "${ECHO_T}$ac_res" >&6; }
21402
21403 fi
21404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21405   cat >>confdefs.h <<_ACEOF
21406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21407 _ACEOF
21408
21409 fi
21410
21411 done
21412
21413
21414 for ac_header in pwd.h
21415 do
21416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21421   echo $ECHO_N "(cached) $ECHO_C" >&6
21422 fi
21423 ac_res=`eval echo '${'$as_ac_Header'}'`
21424                { echo "$as_me:$LINENO: result: $ac_res" >&5
21425 echo "${ECHO_T}$ac_res" >&6; }
21426 else
21427   # Is the header compilable?
21428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21430 cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h.  */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h.  */
21436 $ac_includes_default
21437 #include <$ac_header>
21438 _ACEOF
21439 rm -f conftest.$ac_objext
21440 if { (ac_try="$ac_compile"
21441 case "(($ac_try" in
21442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443   *) ac_try_echo=$ac_try;;
21444 esac
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446   (eval "$ac_compile") 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } && {
21453          test -z "$ac_c_werror_flag" ||
21454          test ! -s conftest.err
21455        } && test -s conftest.$ac_objext; then
21456   ac_header_compiler=yes
21457 else
21458   echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461         ac_header_compiler=no
21462 fi
21463
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21466 echo "${ECHO_T}$ac_header_compiler" >&6; }
21467
21468 # Is the header present?
21469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21471 cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477 #include <$ac_header>
21478 _ACEOF
21479 if { (ac_try="$ac_cpp conftest.$ac_ext"
21480 case "(($ac_try" in
21481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482   *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21486   ac_status=$?
21487   grep -v '^ *+' conftest.er1 >conftest.err
21488   rm -f conftest.er1
21489   cat conftest.err >&5
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); } >/dev/null && {
21492          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21493          test ! -s conftest.err
21494        }; then
21495   ac_header_preproc=yes
21496 else
21497   echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21499
21500   ac_header_preproc=no
21501 fi
21502
21503 rm -f conftest.err conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505 echo "${ECHO_T}$ac_header_preproc" >&6; }
21506
21507 # So?  What about this header?
21508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21509   yes:no: )
21510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21514     ac_header_preproc=yes
21515     ;;
21516   no:yes:* )
21517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21529     ( cat <<\_ASBOX
21530 ## ------------------------------------ ##
21531 ## Report this to opensource@google.com ##
21532 ## ------------------------------------ ##
21533 _ASBOX
21534      ) | sed "s/^/$as_me: WARNING:     /" >&2
21535     ;;
21536 esac
21537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540   echo $ECHO_N "(cached) $ECHO_C" >&6
21541 else
21542   eval "$as_ac_Header=\$ac_header_preproc"
21543 fi
21544 ac_res=`eval echo '${'$as_ac_Header'}'`
21545                { echo "$as_me:$LINENO: result: $ac_res" >&5
21546 echo "${ECHO_T}$ac_res" >&6; }
21547
21548 fi
21549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21550   cat >>confdefs.h <<_ACEOF
21551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21552 _ACEOF
21553
21554 fi
21555
21556 done
21557
21558
21559 for ac_header in syslog.h
21560 do
21561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21563   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21566   echo $ECHO_N "(cached) $ECHO_C" >&6
21567 fi
21568 ac_res=`eval echo '${'$as_ac_Header'}'`
21569                { echo "$as_me:$LINENO: result: $ac_res" >&5
21570 echo "${ECHO_T}$ac_res" >&6; }
21571 else
21572   # Is the header compilable?
21573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21575 cat >conftest.$ac_ext <<_ACEOF
21576 /* confdefs.h.  */
21577 _ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h.  */
21581 $ac_includes_default
21582 #include <$ac_header>
21583 _ACEOF
21584 rm -f conftest.$ac_objext
21585 if { (ac_try="$ac_compile"
21586 case "(($ac_try" in
21587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588   *) ac_try_echo=$ac_try;;
21589 esac
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591   (eval "$ac_compile") 2>conftest.er1
21592   ac_status=$?
21593   grep -v '^ *+' conftest.er1 >conftest.err
21594   rm -f conftest.er1
21595   cat conftest.err >&5
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); } && {
21598          test -z "$ac_c_werror_flag" ||
21599          test ! -s conftest.err
21600        } && test -s conftest.$ac_objext; then
21601   ac_header_compiler=yes
21602 else
21603   echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21605
21606         ac_header_compiler=no
21607 fi
21608
21609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21611 echo "${ECHO_T}$ac_header_compiler" >&6; }
21612
21613 # Is the header present?
21614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21616 cat >conftest.$ac_ext <<_ACEOF
21617 /* confdefs.h.  */
21618 _ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h.  */
21622 #include <$ac_header>
21623 _ACEOF
21624 if { (ac_try="$ac_cpp conftest.$ac_ext"
21625 case "(($ac_try" in
21626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627   *) ac_try_echo=$ac_try;;
21628 esac
21629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21631   ac_status=$?
21632   grep -v '^ *+' conftest.er1 >conftest.err
21633   rm -f conftest.er1
21634   cat conftest.err >&5
21635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636   (exit $ac_status); } >/dev/null && {
21637          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21638          test ! -s conftest.err
21639        }; then
21640   ac_header_preproc=yes
21641 else
21642   echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21644
21645   ac_header_preproc=no
21646 fi
21647
21648 rm -f conftest.err conftest.$ac_ext
21649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21650 echo "${ECHO_T}$ac_header_preproc" >&6; }
21651
21652 # So?  What about this header?
21653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21654   yes:no: )
21655     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21659     ac_header_preproc=yes
21660     ;;
21661   no:yes:* )
21662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21664     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21665 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21666     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21668     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21669 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21672     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21674     ( cat <<\_ASBOX
21675 ## ------------------------------------ ##
21676 ## Report this to opensource@google.com ##
21677 ## ------------------------------------ ##
21678 _ASBOX
21679      ) | sed "s/^/$as_me: WARNING:     /" >&2
21680     ;;
21681 esac
21682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21685   echo $ECHO_N "(cached) $ECHO_C" >&6
21686 else
21687   eval "$as_ac_Header=\$ac_header_preproc"
21688 fi
21689 ac_res=`eval echo '${'$as_ac_Header'}'`
21690                { echo "$as_me:$LINENO: result: $ac_res" >&5
21691 echo "${ECHO_T}$ac_res" >&6; }
21692
21693 fi
21694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21695   cat >>confdefs.h <<_ACEOF
21696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21697 _ACEOF
21698
21699 fi
21700
21701 done
21702
21703
21704 for ac_header in sys/time.h
21705 do
21706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21708   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21711   echo $ECHO_N "(cached) $ECHO_C" >&6
21712 fi
21713 ac_res=`eval echo '${'$as_ac_Header'}'`
21714                { echo "$as_me:$LINENO: result: $ac_res" >&5
21715 echo "${ECHO_T}$ac_res" >&6; }
21716 else
21717   # Is the header compilable?
21718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21720 cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h.  */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h.  */
21726 $ac_includes_default
21727 #include <$ac_header>
21728 _ACEOF
21729 rm -f conftest.$ac_objext
21730 if { (ac_try="$ac_compile"
21731 case "(($ac_try" in
21732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733   *) ac_try_echo=$ac_try;;
21734 esac
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736   (eval "$ac_compile") 2>conftest.er1
21737   ac_status=$?
21738   grep -v '^ *+' conftest.er1 >conftest.err
21739   rm -f conftest.er1
21740   cat conftest.err >&5
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); } && {
21743          test -z "$ac_c_werror_flag" ||
21744          test ! -s conftest.err
21745        } && test -s conftest.$ac_objext; then
21746   ac_header_compiler=yes
21747 else
21748   echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21750
21751         ac_header_compiler=no
21752 fi
21753
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21756 echo "${ECHO_T}$ac_header_compiler" >&6; }
21757
21758 # Is the header present?
21759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21761 cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h.  */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h.  */
21767 #include <$ac_header>
21768 _ACEOF
21769 if { (ac_try="$ac_cpp conftest.$ac_ext"
21770 case "(($ac_try" in
21771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772   *) ac_try_echo=$ac_try;;
21773 esac
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21776   ac_status=$?
21777   grep -v '^ *+' conftest.er1 >conftest.err
21778   rm -f conftest.er1
21779   cat conftest.err >&5
21780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781   (exit $ac_status); } >/dev/null && {
21782          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21783          test ! -s conftest.err
21784        }; then
21785   ac_header_preproc=yes
21786 else
21787   echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21789
21790   ac_header_preproc=no
21791 fi
21792
21793 rm -f conftest.err conftest.$ac_ext
21794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21795 echo "${ECHO_T}$ac_header_preproc" >&6; }
21796
21797 # So?  What about this header?
21798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21799   yes:no: )
21800     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21804     ac_header_preproc=yes
21805     ;;
21806   no:yes:* )
21807     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21809     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21810 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21811     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21813     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21814 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21817     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21819     ( cat <<\_ASBOX
21820 ## ------------------------------------ ##
21821 ## Report this to opensource@google.com ##
21822 ## ------------------------------------ ##
21823 _ASBOX
21824      ) | sed "s/^/$as_me: WARNING:     /" >&2
21825     ;;
21826 esac
21827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21830   echo $ECHO_N "(cached) $ECHO_C" >&6
21831 else
21832   eval "$as_ac_Header=\$ac_header_preproc"
21833 fi
21834 ac_res=`eval echo '${'$as_ac_Header'}'`
21835                { echo "$as_me:$LINENO: result: $ac_res" >&5
21836 echo "${ECHO_T}$ac_res" >&6; }
21837
21838 fi
21839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21840   cat >>confdefs.h <<_ACEOF
21841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21842 _ACEOF
21843
21844 fi
21845
21846 done
21847
21848
21849 for ac_header in glob.h
21850 do
21851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21853   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21856   echo $ECHO_N "(cached) $ECHO_C" >&6
21857 fi
21858 ac_res=`eval echo '${'$as_ac_Header'}'`
21859                { echo "$as_me:$LINENO: result: $ac_res" >&5
21860 echo "${ECHO_T}$ac_res" >&6; }
21861 else
21862   # Is the header compilable?
21863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21865 cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h.  */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h.  */
21871 $ac_includes_default
21872 #include <$ac_header>
21873 _ACEOF
21874 rm -f conftest.$ac_objext
21875 if { (ac_try="$ac_compile"
21876 case "(($ac_try" in
21877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878   *) ac_try_echo=$ac_try;;
21879 esac
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881   (eval "$ac_compile") 2>conftest.er1
21882   ac_status=$?
21883   grep -v '^ *+' conftest.er1 >conftest.err
21884   rm -f conftest.er1
21885   cat conftest.err >&5
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); } && {
21888          test -z "$ac_c_werror_flag" ||
21889          test ! -s conftest.err
21890        } && test -s conftest.$ac_objext; then
21891   ac_header_compiler=yes
21892 else
21893   echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21895
21896         ac_header_compiler=no
21897 fi
21898
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21901 echo "${ECHO_T}$ac_header_compiler" >&6; }
21902
21903 # Is the header present?
21904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21906 cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 #include <$ac_header>
21913 _ACEOF
21914 if { (ac_try="$ac_cpp conftest.$ac_ext"
21915 case "(($ac_try" in
21916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917   *) ac_try_echo=$ac_try;;
21918 esac
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21921   ac_status=$?
21922   grep -v '^ *+' conftest.er1 >conftest.err
21923   rm -f conftest.er1
21924   cat conftest.err >&5
21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926   (exit $ac_status); } >/dev/null && {
21927          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21928          test ! -s conftest.err
21929        }; then
21930   ac_header_preproc=yes
21931 else
21932   echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21934
21935   ac_header_preproc=no
21936 fi
21937
21938 rm -f conftest.err conftest.$ac_ext
21939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21940 echo "${ECHO_T}$ac_header_preproc" >&6; }
21941
21942 # So?  What about this header?
21943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21944   yes:no: )
21945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21949     ac_header_preproc=yes
21950     ;;
21951   no:yes:* )
21952     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21954     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21955 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21956     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21958     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21959 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21962     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21964     ( cat <<\_ASBOX
21965 ## ------------------------------------ ##
21966 ## Report this to opensource@google.com ##
21967 ## ------------------------------------ ##
21968 _ASBOX
21969      ) | sed "s/^/$as_me: WARNING:     /" >&2
21970     ;;
21971 esac
21972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21975   echo $ECHO_N "(cached) $ECHO_C" >&6
21976 else
21977   eval "$as_ac_Header=\$ac_header_preproc"
21978 fi
21979 ac_res=`eval echo '${'$as_ac_Header'}'`
21980                { echo "$as_me:$LINENO: result: $ac_res" >&5
21981 echo "${ECHO_T}$ac_res" >&6; }
21982
21983 fi
21984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21985   cat >>confdefs.h <<_ACEOF
21986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21987 _ACEOF
21988
21989 fi
21990
21991 done
21992
21993
21994 { echo "$as_me:$LINENO: checking for void *" >&5
21995 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21996 if test "${ac_cv_type_void_p+set}" = set; then
21997   echo $ECHO_N "(cached) $ECHO_C" >&6
21998 else
21999   cat >conftest.$ac_ext <<_ACEOF
22000 /* confdefs.h.  */
22001 _ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h.  */
22005 $ac_includes_default
22006 typedef void * ac__type_new_;
22007 int
22008 main ()
22009 {
22010 if ((ac__type_new_ *) 0)
22011   return 0;
22012 if (sizeof (ac__type_new_))
22013   return 0;
22014   ;
22015   return 0;
22016 }
22017 _ACEOF
22018 rm -f conftest.$ac_objext
22019 if { (ac_try="$ac_compile"
22020 case "(($ac_try" in
22021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022   *) ac_try_echo=$ac_try;;
22023 esac
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025   (eval "$ac_compile") 2>conftest.er1
22026   ac_status=$?
22027   grep -v '^ *+' conftest.er1 >conftest.err
22028   rm -f conftest.er1
22029   cat conftest.err >&5
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); } && {
22032          test -z "$ac_c_werror_flag" ||
22033          test ! -s conftest.err
22034        } && test -s conftest.$ac_objext; then
22035   ac_cv_type_void_p=yes
22036 else
22037   echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22039
22040         ac_cv_type_void_p=no
22041 fi
22042
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044 fi
22045 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22046 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22047
22048 # The cast to long int works around a bug in the HP C Compiler
22049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22050 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22051 # This bug is HP SR number 8606223364.
22052 { echo "$as_me:$LINENO: checking size of void *" >&5
22053 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22054 if test "${ac_cv_sizeof_void_p+set}" = set; then
22055   echo $ECHO_N "(cached) $ECHO_C" >&6
22056 else
22057   if test "$cross_compiling" = yes; then
22058   # Depending upon the size, compute the lo and hi bounds.
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h.  */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h.  */
22065 $ac_includes_default
22066    typedef void * ac__type_sizeof_;
22067 int
22068 main ()
22069 {
22070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22071 test_array [0] = 0
22072
22073   ;
22074   return 0;
22075 }
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081   *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084   (eval "$ac_compile") 2>conftest.er1
22085   ac_status=$?
22086   grep -v '^ *+' conftest.er1 >conftest.err
22087   rm -f conftest.er1
22088   cat conftest.err >&5
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } && {
22091          test -z "$ac_c_werror_flag" ||
22092          test ! -s conftest.err
22093        } && test -s conftest.$ac_objext; then
22094   ac_lo=0 ac_mid=0
22095   while :; do
22096     cat >conftest.$ac_ext <<_ACEOF
22097 /* confdefs.h.  */
22098 _ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h.  */
22102 $ac_includes_default
22103    typedef void * ac__type_sizeof_;
22104 int
22105 main ()
22106 {
22107 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22108 test_array [0] = 0
22109
22110   ;
22111   return 0;
22112 }
22113 _ACEOF
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118   *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121   (eval "$ac_compile") 2>conftest.er1
22122   ac_status=$?
22123   grep -v '^ *+' conftest.er1 >conftest.err
22124   rm -f conftest.er1
22125   cat conftest.err >&5
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); } && {
22128          test -z "$ac_c_werror_flag" ||
22129          test ! -s conftest.err
22130        } && test -s conftest.$ac_objext; then
22131   ac_hi=$ac_mid; break
22132 else
22133   echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22135
22136         ac_lo=`expr $ac_mid + 1`
22137                         if test $ac_lo -le $ac_mid; then
22138                           ac_lo= ac_hi=
22139                           break
22140                         fi
22141                         ac_mid=`expr 2 '*' $ac_mid + 1`
22142 fi
22143
22144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22145   done
22146 else
22147   echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22149
22150         cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h.  */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h.  */
22156 $ac_includes_default
22157    typedef void * ac__type_sizeof_;
22158 int
22159 main ()
22160 {
22161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22162 test_array [0] = 0
22163
22164   ;
22165   return 0;
22166 }
22167 _ACEOF
22168 rm -f conftest.$ac_objext
22169 if { (ac_try="$ac_compile"
22170 case "(($ac_try" in
22171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172   *) ac_try_echo=$ac_try;;
22173 esac
22174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22175   (eval "$ac_compile") 2>conftest.er1
22176   ac_status=$?
22177   grep -v '^ *+' conftest.er1 >conftest.err
22178   rm -f conftest.er1
22179   cat conftest.err >&5
22180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181   (exit $ac_status); } && {
22182          test -z "$ac_c_werror_flag" ||
22183          test ! -s conftest.err
22184        } && test -s conftest.$ac_objext; then
22185   ac_hi=-1 ac_mid=-1
22186   while :; do
22187     cat >conftest.$ac_ext <<_ACEOF
22188 /* confdefs.h.  */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h.  */
22193 $ac_includes_default
22194    typedef void * ac__type_sizeof_;
22195 int
22196 main ()
22197 {
22198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22199 test_array [0] = 0
22200
22201   ;
22202   return 0;
22203 }
22204 _ACEOF
22205 rm -f conftest.$ac_objext
22206 if { (ac_try="$ac_compile"
22207 case "(($ac_try" in
22208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209   *) ac_try_echo=$ac_try;;
22210 esac
22211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22212   (eval "$ac_compile") 2>conftest.er1
22213   ac_status=$?
22214   grep -v '^ *+' conftest.er1 >conftest.err
22215   rm -f conftest.er1
22216   cat conftest.err >&5
22217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218   (exit $ac_status); } && {
22219          test -z "$ac_c_werror_flag" ||
22220          test ! -s conftest.err
22221        } && test -s conftest.$ac_objext; then
22222   ac_lo=$ac_mid; break
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227         ac_hi=`expr '(' $ac_mid ')' - 1`
22228                         if test $ac_mid -le $ac_hi; then
22229                           ac_lo= ac_hi=
22230                           break
22231                         fi
22232                         ac_mid=`expr 2 '*' $ac_mid`
22233 fi
22234
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236   done
22237 else
22238   echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22240
22241         ac_lo= ac_hi=
22242 fi
22243
22244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 fi
22246
22247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 # Binary search between lo and hi bounds.
22249 while test "x$ac_lo" != "x$ac_hi"; do
22250   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22251   cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h.  */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h.  */
22257 $ac_includes_default
22258    typedef void * ac__type_sizeof_;
22259 int
22260 main ()
22261 {
22262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22263 test_array [0] = 0
22264
22265   ;
22266   return 0;
22267 }
22268 _ACEOF
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273   *) ac_try_echo=$ac_try;;
22274 esac
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276   (eval "$ac_compile") 2>conftest.er1
22277   ac_status=$?
22278   grep -v '^ *+' conftest.er1 >conftest.err
22279   rm -f conftest.er1
22280   cat conftest.err >&5
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } && {
22283          test -z "$ac_c_werror_flag" ||
22284          test ! -s conftest.err
22285        } && test -s conftest.$ac_objext; then
22286   ac_hi=$ac_mid
22287 else
22288   echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22290
22291         ac_lo=`expr '(' $ac_mid ')' + 1`
22292 fi
22293
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 done
22296 case $ac_lo in
22297 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22298 '') if test "$ac_cv_type_void_p" = yes; then
22299      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22300 See \`config.log' for more details." >&5
22301 echo "$as_me: error: cannot compute sizeof (void *)
22302 See \`config.log' for more details." >&2;}
22303    { (exit 77); exit 77; }; }
22304    else
22305      ac_cv_sizeof_void_p=0
22306    fi ;;
22307 esac
22308 else
22309   cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h.  */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h.  */
22315 $ac_includes_default
22316    typedef void * ac__type_sizeof_;
22317 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22318 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22319 #include <stdio.h>
22320 #include <stdlib.h>
22321 int
22322 main ()
22323 {
22324
22325   FILE *f = fopen ("conftest.val", "w");
22326   if (! f)
22327     return 1;
22328   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22329     {
22330       long int i = longval ();
22331       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22332         return 1;
22333       fprintf (f, "%ld\n", i);
22334     }
22335   else
22336     {
22337       unsigned long int i = ulongval ();
22338       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22339         return 1;
22340       fprintf (f, "%lu\n", i);
22341     }
22342   return ferror (f) || fclose (f) != 0;
22343
22344   ;
22345   return 0;
22346 }
22347 _ACEOF
22348 rm -f conftest$ac_exeext
22349 if { (ac_try="$ac_link"
22350 case "(($ac_try" in
22351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22352   *) ac_try_echo=$ac_try;;
22353 esac
22354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22355   (eval "$ac_link") 2>&5
22356   ac_status=$?
22357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22359   { (case "(($ac_try" in
22360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361   *) ac_try_echo=$ac_try;;
22362 esac
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364   (eval "$ac_try") 2>&5
22365   ac_status=$?
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); }; }; then
22368   ac_cv_sizeof_void_p=`cat conftest.val`
22369 else
22370   echo "$as_me: program exited with status $ac_status" >&5
22371 echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22373
22374 ( exit $ac_status )
22375 if test "$ac_cv_type_void_p" = yes; then
22376      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22377 See \`config.log' for more details." >&5
22378 echo "$as_me: error: cannot compute sizeof (void *)
22379 See \`config.log' for more details." >&2;}
22380    { (exit 77); exit 77; }; }
22381    else
22382      ac_cv_sizeof_void_p=0
22383    fi
22384 fi
22385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22386 fi
22387 rm -f conftest.val
22388 fi
22389 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22390 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22391
22392
22393
22394 cat >>confdefs.h <<_ACEOF
22395 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22396 _ACEOF
22397
22398
22399
22400 # These are the types I need.  We look for them in either stdint.h,
22401 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
22402 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22403 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22404 if test "${ac_cv_type_uint16_t+set}" = set; then
22405   echo $ECHO_N "(cached) $ECHO_C" >&6
22406 else
22407   cat >conftest.$ac_ext <<_ACEOF
22408 /* confdefs.h.  */
22409 _ACEOF
22410 cat confdefs.h >>conftest.$ac_ext
22411 cat >>conftest.$ac_ext <<_ACEOF
22412 /* end confdefs.h.  */
22413 $ac_includes_default
22414 typedef uint16_t ac__type_new_;
22415 int
22416 main ()
22417 {
22418 if ((ac__type_new_ *) 0)
22419   return 0;
22420 if (sizeof (ac__type_new_))
22421   return 0;
22422   ;
22423   return 0;
22424 }
22425 _ACEOF
22426 rm -f conftest.$ac_objext
22427 if { (ac_try="$ac_compile"
22428 case "(($ac_try" in
22429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430   *) ac_try_echo=$ac_try;;
22431 esac
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433   (eval "$ac_compile") 2>conftest.er1
22434   ac_status=$?
22435   grep -v '^ *+' conftest.er1 >conftest.err
22436   rm -f conftest.er1
22437   cat conftest.err >&5
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); } && {
22440          test -z "$ac_c_werror_flag" ||
22441          test ! -s conftest.err
22442        } && test -s conftest.$ac_objext; then
22443   ac_cv_type_uint16_t=yes
22444 else
22445   echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22447
22448         ac_cv_type_uint16_t=no
22449 fi
22450
22451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22452 fi
22453 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22454 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22455 if test $ac_cv_type_uint16_t = yes; then
22456   ac_cv_have_uint16_t=1
22457 else
22458   ac_cv_have_uint16_t=0
22459 fi
22460
22461 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
22462 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
22463 if test "${ac_cv_type_u_int16_t+set}" = set; then
22464   echo $ECHO_N "(cached) $ECHO_C" >&6
22465 else
22466   cat >conftest.$ac_ext <<_ACEOF
22467 /* confdefs.h.  */
22468 _ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h.  */
22472 $ac_includes_default
22473 typedef u_int16_t ac__type_new_;
22474 int
22475 main ()
22476 {
22477 if ((ac__type_new_ *) 0)
22478   return 0;
22479 if (sizeof (ac__type_new_))
22480   return 0;
22481   ;
22482   return 0;
22483 }
22484 _ACEOF
22485 rm -f conftest.$ac_objext
22486 if { (ac_try="$ac_compile"
22487 case "(($ac_try" in
22488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489   *) ac_try_echo=$ac_try;;
22490 esac
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492   (eval "$ac_compile") 2>conftest.er1
22493   ac_status=$?
22494   grep -v '^ *+' conftest.er1 >conftest.err
22495   rm -f conftest.er1
22496   cat conftest.err >&5
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); } && {
22499          test -z "$ac_c_werror_flag" ||
22500          test ! -s conftest.err
22501        } && test -s conftest.$ac_objext; then
22502   ac_cv_type_u_int16_t=yes
22503 else
22504   echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22506
22507         ac_cv_type_u_int16_t=no
22508 fi
22509
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22511 fi
22512 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
22513 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
22514 if test $ac_cv_type_u_int16_t = yes; then
22515   ac_cv_have_u_int16_t=1
22516 else
22517   ac_cv_have_u_int16_t=0
22518 fi
22519
22520 { echo "$as_me:$LINENO: checking for __uint16" >&5
22521 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
22522 if test "${ac_cv_type___uint16+set}" = set; then
22523   echo $ECHO_N "(cached) $ECHO_C" >&6
22524 else
22525   cat >conftest.$ac_ext <<_ACEOF
22526 /* confdefs.h.  */
22527 _ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h.  */
22531 $ac_includes_default
22532 typedef __uint16 ac__type_new_;
22533 int
22534 main ()
22535 {
22536 if ((ac__type_new_ *) 0)
22537   return 0;
22538 if (sizeof (ac__type_new_))
22539   return 0;
22540   ;
22541   return 0;
22542 }
22543 _ACEOF
22544 rm -f conftest.$ac_objext
22545 if { (ac_try="$ac_compile"
22546 case "(($ac_try" in
22547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548   *) ac_try_echo=$ac_try;;
22549 esac
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551   (eval "$ac_compile") 2>conftest.er1
22552   ac_status=$?
22553   grep -v '^ *+' conftest.er1 >conftest.err
22554   rm -f conftest.er1
22555   cat conftest.err >&5
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); } && {
22558          test -z "$ac_c_werror_flag" ||
22559          test ! -s conftest.err
22560        } && test -s conftest.$ac_objext; then
22561   ac_cv_type___uint16=yes
22562 else
22563   echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22565
22566         ac_cv_type___uint16=no
22567 fi
22568
22569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 fi
22571 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
22572 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
22573 if test $ac_cv_type___uint16 = yes; then
22574   ac_cv_have___uint16=1
22575 else
22576   ac_cv_have___uint16=0
22577 fi
22578
22579
22580 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
22581 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
22582 if test "${ac_cv_func_sigaltstack+set}" = set; then
22583   echo $ECHO_N "(cached) $ECHO_C" >&6
22584 else
22585   cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h.  */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h.  */
22591 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
22592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22593 #define sigaltstack innocuous_sigaltstack
22594
22595 /* System header to define __stub macros and hopefully few prototypes,
22596     which can conflict with char sigaltstack (); below.
22597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22598     <limits.h> exists even on freestanding compilers.  */
22599
22600 #ifdef __STDC__
22601 # include <limits.h>
22602 #else
22603 # include <assert.h>
22604 #endif
22605
22606 #undef sigaltstack
22607
22608 /* Override any GCC internal prototype to avoid an error.
22609    Use char because int might match the return type of a GCC
22610    builtin and then its argument prototype would still apply.  */
22611 #ifdef __cplusplus
22612 extern "C"
22613 #endif
22614 char sigaltstack ();
22615 /* The GNU C library defines this for functions which it implements
22616     to always fail with ENOSYS.  Some functions are actually named
22617     something starting with __ and the normal name is an alias.  */
22618 #if defined __stub_sigaltstack || defined __stub___sigaltstack
22619 choke me
22620 #endif
22621
22622 int
22623 main ()
22624 {
22625 return sigaltstack ();
22626   ;
22627   return 0;
22628 }
22629 _ACEOF
22630 rm -f conftest.$ac_objext conftest$ac_exeext
22631 if { (ac_try="$ac_link"
22632 case "(($ac_try" in
22633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634   *) ac_try_echo=$ac_try;;
22635 esac
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637   (eval "$ac_link") 2>conftest.er1
22638   ac_status=$?
22639   grep -v '^ *+' conftest.er1 >conftest.err
22640   rm -f conftest.er1
22641   cat conftest.err >&5
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); } && {
22644          test -z "$ac_c_werror_flag" ||
22645          test ! -s conftest.err
22646        } && test -s conftest$ac_exeext &&
22647        $as_test_x conftest$ac_exeext; then
22648   ac_cv_func_sigaltstack=yes
22649 else
22650   echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22652
22653         ac_cv_func_sigaltstack=no
22654 fi
22655
22656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22657       conftest$ac_exeext conftest.$ac_ext
22658 fi
22659 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
22660 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
22661 if test $ac_cv_func_sigaltstack = yes; then
22662
22663 cat >>confdefs.h <<\_ACEOF
22664 #define HAVE_SIGALTSTACK 1
22665 _ACEOF
22666
22667 fi
22668
22669 { echo "$as_me:$LINENO: checking for dladdr" >&5
22670 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
22671 if test "${ac_cv_func_dladdr+set}" = set; then
22672   echo $ECHO_N "(cached) $ECHO_C" >&6
22673 else
22674   cat >conftest.$ac_ext <<_ACEOF
22675 /* confdefs.h.  */
22676 _ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h.  */
22680 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
22681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22682 #define dladdr innocuous_dladdr
22683
22684 /* System header to define __stub macros and hopefully few prototypes,
22685     which can conflict with char dladdr (); below.
22686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22687     <limits.h> exists even on freestanding compilers.  */
22688
22689 #ifdef __STDC__
22690 # include <limits.h>
22691 #else
22692 # include <assert.h>
22693 #endif
22694
22695 #undef dladdr
22696
22697 /* Override any GCC internal prototype to avoid an error.
22698    Use char because int might match the return type of a GCC
22699    builtin and then its argument prototype would still apply.  */
22700 #ifdef __cplusplus
22701 extern "C"
22702 #endif
22703 char dladdr ();
22704 /* The GNU C library defines this for functions which it implements
22705     to always fail with ENOSYS.  Some functions are actually named
22706     something starting with __ and the normal name is an alias.  */
22707 #if defined __stub_dladdr || defined __stub___dladdr
22708 choke me
22709 #endif
22710
22711 int
22712 main ()
22713 {
22714 return dladdr ();
22715   ;
22716   return 0;
22717 }
22718 _ACEOF
22719 rm -f conftest.$ac_objext conftest$ac_exeext
22720 if { (ac_try="$ac_link"
22721 case "(($ac_try" in
22722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22723   *) ac_try_echo=$ac_try;;
22724 esac
22725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22726   (eval "$ac_link") 2>conftest.er1
22727   ac_status=$?
22728   grep -v '^ *+' conftest.er1 >conftest.err
22729   rm -f conftest.er1
22730   cat conftest.err >&5
22731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732   (exit $ac_status); } && {
22733          test -z "$ac_c_werror_flag" ||
22734          test ! -s conftest.err
22735        } && test -s conftest$ac_exeext &&
22736        $as_test_x conftest$ac_exeext; then
22737   ac_cv_func_dladdr=yes
22738 else
22739   echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22741
22742         ac_cv_func_dladdr=no
22743 fi
22744
22745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22746       conftest$ac_exeext conftest.$ac_ext
22747 fi
22748 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
22749 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
22750 if test $ac_cv_func_dladdr = yes; then
22751
22752 cat >>confdefs.h <<\_ACEOF
22753 #define HAVE_DLADDR 1
22754 _ACEOF
22755
22756 fi
22757
22758 { echo "$as_me:$LINENO: checking for fcntl" >&5
22759 echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
22760 if test "${ac_cv_func_fcntl+set}" = set; then
22761   echo $ECHO_N "(cached) $ECHO_C" >&6
22762 else
22763   cat >conftest.$ac_ext <<_ACEOF
22764 /* confdefs.h.  */
22765 _ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h.  */
22769 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
22770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22771 #define fcntl innocuous_fcntl
22772
22773 /* System header to define __stub macros and hopefully few prototypes,
22774     which can conflict with char fcntl (); below.
22775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22776     <limits.h> exists even on freestanding compilers.  */
22777
22778 #ifdef __STDC__
22779 # include <limits.h>
22780 #else
22781 # include <assert.h>
22782 #endif
22783
22784 #undef fcntl
22785
22786 /* Override any GCC internal prototype to avoid an error.
22787    Use char because int might match the return type of a GCC
22788    builtin and then its argument prototype would still apply.  */
22789 #ifdef __cplusplus
22790 extern "C"
22791 #endif
22792 char fcntl ();
22793 /* The GNU C library defines this for functions which it implements
22794     to always fail with ENOSYS.  Some functions are actually named
22795     something starting with __ and the normal name is an alias.  */
22796 #if defined __stub_fcntl || defined __stub___fcntl
22797 choke me
22798 #endif
22799
22800 int
22801 main ()
22802 {
22803 return fcntl ();
22804   ;
22805   return 0;
22806 }
22807 _ACEOF
22808 rm -f conftest.$ac_objext conftest$ac_exeext
22809 if { (ac_try="$ac_link"
22810 case "(($ac_try" in
22811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812   *) ac_try_echo=$ac_try;;
22813 esac
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815   (eval "$ac_link") 2>conftest.er1
22816   ac_status=$?
22817   grep -v '^ *+' conftest.er1 >conftest.err
22818   rm -f conftest.er1
22819   cat conftest.err >&5
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); } && {
22822          test -z "$ac_c_werror_flag" ||
22823          test ! -s conftest.err
22824        } && test -s conftest$ac_exeext &&
22825        $as_test_x conftest$ac_exeext; then
22826   ac_cv_func_fcntl=yes
22827 else
22828   echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831         ac_cv_func_fcntl=no
22832 fi
22833
22834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22835       conftest$ac_exeext conftest.$ac_ext
22836 fi
22837 { echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5
22838 echo "${ECHO_T}$ac_cv_func_fcntl" >&6; }
22839 if test $ac_cv_func_fcntl = yes; then
22840
22841 cat >>confdefs.h <<\_ACEOF
22842 #define HAVE_FCNTL 1
22843 _ACEOF
22844
22845 fi
22846
22847
22848
22849   { echo "$as_me:$LINENO: checking for __attribute__" >&5
22850 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
22851   if test "${ac_cv___attribute__+set}" = set; then
22852   echo $ECHO_N "(cached) $ECHO_C" >&6
22853 else
22854
22855     cat >conftest.$ac_ext <<_ACEOF
22856 /* confdefs.h.  */
22857 _ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h.  */
22861 #include <stdlib.h>
22862        static void foo(void) __attribute__ ((unused));
22863        void foo(void) { exit(1); }
22864 int
22865 main ()
22866 {
22867
22868   ;
22869   return 0;
22870 }
22871 _ACEOF
22872 rm -f conftest.$ac_objext
22873 if { (ac_try="$ac_compile"
22874 case "(($ac_try" in
22875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876   *) ac_try_echo=$ac_try;;
22877 esac
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879   (eval "$ac_compile") 2>conftest.er1
22880   ac_status=$?
22881   grep -v '^ *+' conftest.er1 >conftest.err
22882   rm -f conftest.er1
22883   cat conftest.err >&5
22884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885   (exit $ac_status); } && {
22886          test -z "$ac_c_werror_flag" ||
22887          test ! -s conftest.err
22888        } && test -s conftest.$ac_objext; then
22889   ac_cv___attribute__=yes
22890 else
22891   echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22893
22894         ac_cv___attribute__=no
22895
22896 fi
22897
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899 fi
22900
22901   if test "$ac_cv___attribute__" = "yes"; then
22902
22903 cat >>confdefs.h <<\_ACEOF
22904 #define HAVE___ATTRIBUTE__ 1
22905 _ACEOF
22906
22907   fi
22908   { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
22909 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
22910
22911 # We only care about these two attributes.
22912 if test x"$ac_cv___attribute__" = x"yes"; then
22913   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
22914   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
22915 else
22916   ac_cv___attribute___noreturn=
22917   ac_cv___attribute___printf_4_5=
22918 fi
22919
22920
22921   { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
22922 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
22923   if test "${ac_cv___builtin_expect+set}" = set; then
22924   echo $ECHO_N "(cached) $ECHO_C" >&6
22925 else
22926
22927     cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h.  */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h.  */
22933 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
22934 int
22935 main ()
22936 {
22937
22938   ;
22939   return 0;
22940 }
22941 _ACEOF
22942 rm -f conftest.$ac_objext
22943 if { (ac_try="$ac_compile"
22944 case "(($ac_try" in
22945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946   *) ac_try_echo=$ac_try;;
22947 esac
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949   (eval "$ac_compile") 2>conftest.er1
22950   ac_status=$?
22951   grep -v '^ *+' conftest.er1 >conftest.err
22952   rm -f conftest.er1
22953   cat conftest.err >&5
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); } && {
22956          test -z "$ac_c_werror_flag" ||
22957          test ! -s conftest.err
22958        } && test -s conftest.$ac_objext; then
22959   ac_cv___builtin_expect=yes
22960 else
22961   echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22963
22964         ac_cv___builtin_expect=no
22965
22966 fi
22967
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969 fi
22970
22971   if test "$ac_cv___builtin_expect" = "yes"; then
22972
22973 cat >>confdefs.h <<\_ACEOF
22974 #define HAVE___BUILTIN_EXPECT 1
22975 _ACEOF
22976
22977   fi
22978   { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22979 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
22980
22981 if test x"$ac_cv___builtin_expect" = x"yes"; then
22982   ac_cv_have___builtin_expect=1
22983 else
22984   ac_cv_have___builtin_expect=0
22985 fi
22986
22987
22988   { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
22989 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
22990   if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
22991   echo $ECHO_N "(cached) $ECHO_C" >&6
22992 else
22993
22994     cat >conftest.$ac_ext <<_ACEOF
22995 /* confdefs.h.  */
22996 _ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h.  */
23000 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
23001 int
23002 main ()
23003 {
23004
23005   ;
23006   return 0;
23007 }
23008 _ACEOF
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (ac_try="$ac_link"
23011 case "(($ac_try" in
23012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013   *) ac_try_echo=$ac_try;;
23014 esac
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016   (eval "$ac_link") 2>conftest.er1
23017   ac_status=$?
23018   grep -v '^ *+' conftest.er1 >conftest.err
23019   rm -f conftest.er1
23020   cat conftest.err >&5
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); } && {
23023          test -z "$ac_c_werror_flag" ||
23024          test ! -s conftest.err
23025        } && test -s conftest$ac_exeext &&
23026        $as_test_x conftest$ac_exeext; then
23027   ac_cv___sync_val_compare_and_swap=yes
23028 else
23029   echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23031
23032         ac_cv___sync_val_compare_and_swap=no
23033
23034 fi
23035
23036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23037       conftest$ac_exeext conftest.$ac_ext
23038 fi
23039
23040   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
23041
23042 cat >>confdefs.h <<\_ACEOF
23043 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
23044 _ACEOF
23045
23046   fi
23047   { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
23048 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
23049
23050
23051 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
23052 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
23053 # Check whether --enable-frame_pointers was given.
23054 if test "${enable_frame_pointers+set}" = set; then
23055   enableval=$enable_frame_pointers; enable_frame_pointers=no
23056 fi
23057
23058 cat >conftest.$ac_ext <<_ACEOF
23059 /* confdefs.h.  */
23060 _ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h.  */
23064
23065 int
23066 main ()
23067 {
23068 return __x86_64__ == 1 ? 0 : 1
23069   ;
23070   return 0;
23071 }
23072 _ACEOF
23073 rm -f conftest.$ac_objext
23074 if { (ac_try="$ac_compile"
23075 case "(($ac_try" in
23076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077   *) ac_try_echo=$ac_try;;
23078 esac
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080   (eval "$ac_compile") 2>conftest.er1
23081   ac_status=$?
23082   grep -v '^ *+' conftest.er1 >conftest.err
23083   rm -f conftest.er1
23084   cat conftest.err >&5
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); } && {
23087          test -z "$ac_c_werror_flag" ||
23088          test ! -s conftest.err
23089        } && test -s conftest.$ac_objext; then
23090   is_x86_64=yes
23091 else
23092   echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23094
23095         is_x86_64=no
23096 fi
23097
23098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23099  if test "$enable_frame_pointers" = yes; then
23100   ENABLE_FRAME_POINTERS_TRUE=
23101   ENABLE_FRAME_POINTERS_FALSE='#'
23102 else
23103   ENABLE_FRAME_POINTERS_TRUE='#'
23104   ENABLE_FRAME_POINTERS_FALSE=
23105 fi
23106
23107  if test "$is_x86_64" = yes; then
23108   X86_64_TRUE=
23109   X86_64_FALSE='#'
23110 else
23111   X86_64_TRUE='#'
23112   X86_64_FALSE=
23113 fi
23114
23115
23116 # Some of the code in this directory depends on pthreads
23117
23118
23119
23120 ac_ext=c
23121 ac_cpp='$CPP $CPPFLAGS'
23122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23125
23126 acx_pthread_ok=no
23127
23128 # We used to check for pthread.h first, but this fails if pthread.h
23129 # requires special compiler flags (e.g. on True64 or Sequent).
23130 # It gets checked for in the link test anyway.
23131
23132 # First of all, check if the user has set any of the PTHREAD_LIBS,
23133 # etcetera environment variables, and if threads linking works using
23134 # them:
23135 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23136         save_CFLAGS="$CFLAGS"
23137         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23138         save_LIBS="$LIBS"
23139         LIBS="$PTHREAD_LIBS $LIBS"
23140         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23141 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
23142         cat >conftest.$ac_ext <<_ACEOF
23143 /* confdefs.h.  */
23144 _ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h.  */
23148
23149 /* Override any GCC internal prototype to avoid an error.
23150    Use char because int might match the return type of a GCC
23151    builtin and then its argument prototype would still apply.  */
23152 #ifdef __cplusplus
23153 extern "C"
23154 #endif
23155 char pthread_join ();
23156 int
23157 main ()
23158 {
23159 return pthread_join ();
23160   ;
23161   return 0;
23162 }
23163 _ACEOF
23164 rm -f conftest.$ac_objext conftest$ac_exeext
23165 if { (ac_try="$ac_link"
23166 case "(($ac_try" in
23167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168   *) ac_try_echo=$ac_try;;
23169 esac
23170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171   (eval "$ac_link") 2>conftest.er1
23172   ac_status=$?
23173   grep -v '^ *+' conftest.er1 >conftest.err
23174   rm -f conftest.er1
23175   cat conftest.err >&5
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); } && {
23178          test -z "$ac_c_werror_flag" ||
23179          test ! -s conftest.err
23180        } && test -s conftest$ac_exeext &&
23181        $as_test_x conftest$ac_exeext; then
23182   acx_pthread_ok=yes
23183 else
23184   echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23186
23187
23188 fi
23189
23190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23191       conftest$ac_exeext conftest.$ac_ext
23192         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23193 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23194         if test x"$acx_pthread_ok" = xno; then
23195                 PTHREAD_LIBS=""
23196                 PTHREAD_CFLAGS=""
23197         fi
23198         LIBS="$save_LIBS"
23199         CFLAGS="$save_CFLAGS"
23200 fi
23201
23202 # We must check for the threads library under a number of different
23203 # names; the ordering is very important because some systems
23204 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23205 # libraries is broken (non-POSIX).
23206
23207 # Create a list of thread flags to try.  Items starting with a "-" are
23208 # C compiler flags, and other items are library names, except for "none"
23209 # which indicates that we try without any flags at all, and "pthread-config"
23210 # which is a program returning the flags for the Pth emulation library.
23211
23212 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23213
23214 # The ordering *is* (sometimes) important.  Some notes on the
23215 # individual items follow:
23216
23217 # pthreads: AIX (must check this before -lpthread)
23218 # none: in case threads are in libc; should be tried before -Kthread and
23219 #       other compiler flags to prevent continual compiler warnings
23220 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23221 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23222 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23223 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23224 # -pthreads: Solaris/gcc
23225 # -mthreads: Mingw32/gcc, Lynx/gcc
23226 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23227 #      doesn't hurt to check since this sometimes defines pthreads too;
23228 #      also defines -D_REENTRANT)
23229 #      ... -mt is also the pthreads flag for HP/aCC
23230 # pthread: Linux, etcetera
23231 # --thread-safe: KAI C++
23232 # pthread-config: use pthread-config program (for GNU Pth library)
23233
23234 case "${host_cpu}-${host_os}" in
23235         *solaris*)
23236
23237         # On Solaris (at least, for some versions), libc contains stubbed
23238         # (non-functional) versions of the pthreads routines, so link-based
23239         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
23240         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
23241         # a function called by this macro, so we could check for that, but
23242         # who knows whether they'll stub that too in a future libc.)  So,
23243         # we'll just look for -pthreads and -lpthread first:
23244
23245         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
23246         ;;
23247 esac
23248
23249 if test x"$acx_pthread_ok" = xno; then
23250 for flag in $acx_pthread_flags; do
23251
23252         case $flag in
23253                 none)
23254                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23255 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
23256                 ;;
23257
23258                 -*)
23259                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23260 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
23261                 PTHREAD_CFLAGS="$flag"
23262                 ;;
23263
23264                 pthread-config)
23265                 # Extract the first word of "pthread-config", so it can be a program name with args.
23266 set dummy pthread-config; ac_word=$2
23267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23269 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23270   echo $ECHO_N "(cached) $ECHO_C" >&6
23271 else
23272   if test -n "$acx_pthread_config"; then
23273   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23274 else
23275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23276 for as_dir in $PATH
23277 do
23278   IFS=$as_save_IFS
23279   test -z "$as_dir" && as_dir=.
23280   for ac_exec_ext in '' $ac_executable_extensions; do
23281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23282     ac_cv_prog_acx_pthread_config="yes"
23283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23284     break 2
23285   fi
23286 done
23287 done
23288 IFS=$as_save_IFS
23289
23290   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23291 fi
23292 fi
23293 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23294 if test -n "$acx_pthread_config"; then
23295   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23296 echo "${ECHO_T}$acx_pthread_config" >&6; }
23297 else
23298   { echo "$as_me:$LINENO: result: no" >&5
23299 echo "${ECHO_T}no" >&6; }
23300 fi
23301
23302
23303                 if test x"$acx_pthread_config" = xno; then continue; fi
23304                 PTHREAD_CFLAGS="`pthread-config --cflags`"
23305                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23306                 ;;
23307
23308                 *)
23309                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23310 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
23311                 PTHREAD_LIBS="-l$flag"
23312                 ;;
23313         esac
23314
23315         save_LIBS="$LIBS"
23316         save_CFLAGS="$CFLAGS"
23317         LIBS="$PTHREAD_LIBS $LIBS"
23318         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23319
23320         # Check for various functions.  We must include pthread.h,
23321         # since some functions may be macros.  (On the Sequent, we
23322         # need a special flag -Kthread to make this header compile.)
23323         # We check for pthread_join because it is in -lpthread on IRIX
23324         # while pthread_create is in libc.  We check for pthread_attr_init
23325         # due to DEC craziness with -lpthreads.  We check for
23326         # pthread_cleanup_push because it is one of the few pthread
23327         # functions on Solaris that doesn't have a non-functional libc stub.
23328         # We try pthread_create on general principles.
23329         cat >conftest.$ac_ext <<_ACEOF
23330 /* confdefs.h.  */
23331 _ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h.  */
23335 #include <pthread.h>
23336 int
23337 main ()
23338 {
23339 pthread_t th; pthread_join(th, 0);
23340                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23341                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23342   ;
23343   return 0;
23344 }
23345 _ACEOF
23346 rm -f conftest.$ac_objext conftest$ac_exeext
23347 if { (ac_try="$ac_link"
23348 case "(($ac_try" in
23349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350   *) ac_try_echo=$ac_try;;
23351 esac
23352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23353   (eval "$ac_link") 2>conftest.er1
23354   ac_status=$?
23355   grep -v '^ *+' conftest.er1 >conftest.err
23356   rm -f conftest.er1
23357   cat conftest.err >&5
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); } && {
23360          test -z "$ac_c_werror_flag" ||
23361          test ! -s conftest.err
23362        } && test -s conftest$ac_exeext &&
23363        $as_test_x conftest$ac_exeext; then
23364   acx_pthread_ok=yes
23365 else
23366   echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23368
23369
23370 fi
23371
23372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23373       conftest$ac_exeext conftest.$ac_ext
23374
23375         LIBS="$save_LIBS"
23376         CFLAGS="$save_CFLAGS"
23377
23378         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23379 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23380         if test "x$acx_pthread_ok" = xyes; then
23381                 break;
23382         fi
23383
23384         PTHREAD_LIBS=""
23385         PTHREAD_CFLAGS=""
23386 done
23387 fi
23388
23389 # Various other checks:
23390 if test "x$acx_pthread_ok" = xyes; then
23391         save_LIBS="$LIBS"
23392         LIBS="$PTHREAD_LIBS $LIBS"
23393         save_CFLAGS="$CFLAGS"
23394         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23395
23396         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23397         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23398 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
23399         attr_name=unknown
23400         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23401             cat >conftest.$ac_ext <<_ACEOF
23402 /* confdefs.h.  */
23403 _ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h.  */
23407 #include <pthread.h>
23408 int
23409 main ()
23410 {
23411 int attr=$attr; return attr;
23412   ;
23413   return 0;
23414 }
23415 _ACEOF
23416 rm -f conftest.$ac_objext conftest$ac_exeext
23417 if { (ac_try="$ac_link"
23418 case "(($ac_try" in
23419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420   *) ac_try_echo=$ac_try;;
23421 esac
23422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23423   (eval "$ac_link") 2>conftest.er1
23424   ac_status=$?
23425   grep -v '^ *+' conftest.er1 >conftest.err
23426   rm -f conftest.er1
23427   cat conftest.err >&5
23428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429   (exit $ac_status); } && {
23430          test -z "$ac_c_werror_flag" ||
23431          test ! -s conftest.err
23432        } && test -s conftest$ac_exeext &&
23433        $as_test_x conftest$ac_exeext; then
23434   attr_name=$attr; break
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439
23440 fi
23441
23442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23443       conftest$ac_exeext conftest.$ac_ext
23444         done
23445         { echo "$as_me:$LINENO: result: $attr_name" >&5
23446 echo "${ECHO_T}$attr_name" >&6; }
23447         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
23448
23449 cat >>confdefs.h <<_ACEOF
23450 #define PTHREAD_CREATE_JOINABLE $attr_name
23451 _ACEOF
23452
23453         fi
23454
23455         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23456 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
23457         flag=no
23458         case "${host_cpu}-${host_os}" in
23459             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23460             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23461         esac
23462         { echo "$as_me:$LINENO: result: ${flag}" >&5
23463 echo "${ECHO_T}${flag}" >&6; }
23464         if test "x$flag" != xno; then
23465             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23466         fi
23467
23468         LIBS="$save_LIBS"
23469         CFLAGS="$save_CFLAGS"
23470         # More AIX lossage: must compile with xlc_r or cc_r
23471         if test x"$GCC" != xyes; then
23472           for ac_prog in xlc_r cc_r
23473 do
23474   # Extract the first word of "$ac_prog", so it can be a program name with args.
23475 set dummy $ac_prog; ac_word=$2
23476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23478 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23479   echo $ECHO_N "(cached) $ECHO_C" >&6
23480 else
23481   if test -n "$PTHREAD_CC"; then
23482   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23483 else
23484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23485 for as_dir in $PATH
23486 do
23487   IFS=$as_save_IFS
23488   test -z "$as_dir" && as_dir=.
23489   for ac_exec_ext in '' $ac_executable_extensions; do
23490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23491     ac_cv_prog_PTHREAD_CC="$ac_prog"
23492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23493     break 2
23494   fi
23495 done
23496 done
23497 IFS=$as_save_IFS
23498
23499 fi
23500 fi
23501 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23502 if test -n "$PTHREAD_CC"; then
23503   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23504 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23505 else
23506   { echo "$as_me:$LINENO: result: no" >&5
23507 echo "${ECHO_T}no" >&6; }
23508 fi
23509
23510
23511   test -n "$PTHREAD_CC" && break
23512 done
23513 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23514
23515         else
23516           PTHREAD_CC=$CC
23517         fi
23518
23519    # The next part tries to detect GCC inconsistency with -shared on some
23520    # architectures and systems. The problem is that in certain
23521    # configurations, when -shared is specified, GCC "forgets" to
23522    # internally use various flags which are still necessary.
23523
23524    { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
23525 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
23526    check_inconsistencies=yes
23527    case "${host_cpu}-${host_os}" in
23528      *-darwin*) check_inconsistencies=no ;;
23529    esac
23530    if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
23531       { echo "$as_me:$LINENO: result: no" >&5
23532 echo "${ECHO_T}no" >&6; }
23533    else
23534       { echo "$as_me:$LINENO: result: yes" >&5
23535 echo "${ECHO_T}yes" >&6; }
23536
23537       # In order not to create several levels of indentation, we test
23538       # the value of "$ok" until we find out the cure or run out of
23539       # ideas.
23540       ok="no"
23541
23542       #
23543       # Prepare the flags
23544       #
23545       save_CFLAGS="$CFLAGS"
23546       save_LIBS="$LIBS"
23547       save_CC="$CC"
23548       # Try with the flags determined by the earlier checks.
23549       #
23550       # -Wl,-z,defs forces link-time symbol resolution, so that the
23551       # linking checks with -shared actually have any value
23552       #
23553       # FIXME: -fPIC is required for -shared on many architectures,
23554       # so we specify it here, but the right way would probably be to
23555       # properly detect whether it is actually required.
23556       CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
23557       LIBS="$PTHREAD_LIBS $LIBS"
23558       CC="$PTHREAD_CC"
23559
23560       { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
23561 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
23562       cat >conftest.$ac_ext <<_ACEOF
23563 /* confdefs.h.  */
23564 _ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h.  */
23568 #include <pthread.h>
23569 int
23570 main ()
23571 {
23572 pthread_t th; pthread_join(th, 0);
23573          pthread_attr_init(0); pthread_cleanup_push(0, 0);
23574          pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23575   ;
23576   return 0;
23577 }
23578 _ACEOF
23579 rm -f conftest.$ac_objext conftest$ac_exeext
23580 if { (ac_try="$ac_link"
23581 case "(($ac_try" in
23582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23583   *) ac_try_echo=$ac_try;;
23584 esac
23585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23586   (eval "$ac_link") 2>conftest.er1
23587   ac_status=$?
23588   grep -v '^ *+' conftest.er1 >conftest.err
23589   rm -f conftest.er1
23590   cat conftest.err >&5
23591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592   (exit $ac_status); } && {
23593          test -z "$ac_c_werror_flag" ||
23594          test ! -s conftest.err
23595        } && test -s conftest$ac_exeext &&
23596        $as_test_x conftest$ac_exeext; then
23597   ok=yes
23598 else
23599   echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23601
23602
23603 fi
23604
23605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23606       conftest$ac_exeext conftest.$ac_ext
23607
23608       if test "x$ok" = xyes; then
23609          { echo "$as_me:$LINENO: result: yes" >&5
23610 echo "${ECHO_T}yes" >&6; }
23611       else
23612          { echo "$as_me:$LINENO: result: no" >&5
23613 echo "${ECHO_T}no" >&6; }
23614       fi
23615
23616       #
23617       # Linux gcc on some architectures such as mips/mipsel forgets
23618       # about -lpthread
23619       #
23620       if test x"$ok" = xno; then
23621          { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
23622 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
23623          LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
23624          cat >conftest.$ac_ext <<_ACEOF
23625 /* confdefs.h.  */
23626 _ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h.  */
23630 #include <pthread.h>
23631 int
23632 main ()
23633 {
23634 pthread_t th; pthread_join(th, 0);
23635             pthread_attr_init(0); pthread_cleanup_push(0, 0);
23636             pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23637   ;
23638   return 0;
23639 }
23640 _ACEOF
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (ac_try="$ac_link"
23643 case "(($ac_try" in
23644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645   *) ac_try_echo=$ac_try;;
23646 esac
23647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648   (eval "$ac_link") 2>conftest.er1
23649   ac_status=$?
23650   grep -v '^ *+' conftest.er1 >conftest.err
23651   rm -f conftest.er1
23652   cat conftest.err >&5
23653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654   (exit $ac_status); } && {
23655          test -z "$ac_c_werror_flag" ||
23656          test ! -s conftest.err
23657        } && test -s conftest$ac_exeext &&
23658        $as_test_x conftest$ac_exeext; then
23659   ok=yes
23660 else
23661   echo "$as_me: failed program was:" >&5
23662 sed 's/^/| /' conftest.$ac_ext >&5
23663
23664
23665 fi
23666
23667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23668       conftest$ac_exeext conftest.$ac_ext
23669
23670          if test "x$ok" = xyes; then
23671             { echo "$as_me:$LINENO: result: yes" >&5
23672 echo "${ECHO_T}yes" >&6; }
23673             PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
23674          else
23675             { echo "$as_me:$LINENO: result: no" >&5
23676 echo "${ECHO_T}no" >&6; }
23677          fi
23678       fi
23679       #
23680       # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
23681       #
23682       if test x"$ok" = xno; then
23683          { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
23684 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
23685          LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
23686          cat >conftest.$ac_ext <<_ACEOF
23687 /* confdefs.h.  */
23688 _ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h.  */
23692 #include <pthread.h>
23693 int
23694 main ()
23695 {
23696 pthread_t th; pthread_join(th, 0);
23697               pthread_attr_init(0); pthread_cleanup_push(0, 0);
23698               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23699   ;
23700   return 0;
23701 }
23702 _ACEOF
23703 rm -f conftest.$ac_objext conftest$ac_exeext
23704 if { (ac_try="$ac_link"
23705 case "(($ac_try" in
23706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707   *) ac_try_echo=$ac_try;;
23708 esac
23709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710   (eval "$ac_link") 2>conftest.er1
23711   ac_status=$?
23712   grep -v '^ *+' conftest.er1 >conftest.err
23713   rm -f conftest.er1
23714   cat conftest.err >&5
23715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716   (exit $ac_status); } && {
23717          test -z "$ac_c_werror_flag" ||
23718          test ! -s conftest.err
23719        } && test -s conftest$ac_exeext &&
23720        $as_test_x conftest$ac_exeext; then
23721   ok=yes
23722 else
23723   echo "$as_me: failed program was:" >&5
23724 sed 's/^/| /' conftest.$ac_ext >&5
23725
23726
23727 fi
23728
23729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23730       conftest$ac_exeext conftest.$ac_ext
23731
23732          if test "x$ok" = xyes; then
23733             { echo "$as_me:$LINENO: result: yes" >&5
23734 echo "${ECHO_T}yes" >&6; }
23735             PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
23736          else
23737             { echo "$as_me:$LINENO: result: no" >&5
23738 echo "${ECHO_T}no" >&6; }
23739          fi
23740       fi
23741       if test x"$ok" = xno; then
23742          # OK, we have run out of ideas
23743          { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
23744 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
23745
23746          # so it's not safe to assume that we may use pthreads
23747          acx_pthread_ok=no
23748       fi
23749
23750       CFLAGS="$save_CFLAGS"
23751       LIBS="$save_LIBS"
23752       CC="$save_CC"
23753    fi
23754 else
23755         PTHREAD_CC="$CC"
23756 fi
23757
23758
23759
23760
23761
23762 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23763 if test x"$acx_pthread_ok" = xyes; then
23764
23765 cat >>confdefs.h <<\_ACEOF
23766 #define HAVE_PTHREAD 1
23767 _ACEOF
23768
23769         :
23770 else
23771         acx_pthread_ok=no
23772
23773 fi
23774 ac_ext=c
23775 ac_cpp='$CPP $CPPFLAGS'
23776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23779
23780
23781 # To make libglog depend on libpthread on Linux, we need to add
23782 # -lpthread in addition to -pthread.
23783
23784 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
23785 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
23786 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
23787   echo $ECHO_N "(cached) $ECHO_C" >&6
23788 else
23789   ac_check_lib_save_LIBS=$LIBS
23790 LIBS="-lpthread  $LIBS"
23791 cat >conftest.$ac_ext <<_ACEOF
23792 /* confdefs.h.  */
23793 _ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h.  */
23797
23798 /* Override any GCC internal prototype to avoid an error.
23799    Use char because int might match the return type of a GCC
23800    builtin and then its argument prototype would still apply.  */
23801 #ifdef __cplusplus
23802 extern "C"
23803 #endif
23804 char pthread_self ();
23805 int
23806 main ()
23807 {
23808 return pthread_self ();
23809   ;
23810   return 0;
23811 }
23812 _ACEOF
23813 rm -f conftest.$ac_objext conftest$ac_exeext
23814 if { (ac_try="$ac_link"
23815 case "(($ac_try" in
23816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817   *) ac_try_echo=$ac_try;;
23818 esac
23819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23820   (eval "$ac_link") 2>conftest.er1
23821   ac_status=$?
23822   grep -v '^ *+' conftest.er1 >conftest.err
23823   rm -f conftest.er1
23824   cat conftest.err >&5
23825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826   (exit $ac_status); } && {
23827          test -z "$ac_c_werror_flag" ||
23828          test ! -s conftest.err
23829        } && test -s conftest$ac_exeext &&
23830        $as_test_x conftest$ac_exeext; then
23831   ac_cv_lib_pthread_pthread_self=yes
23832 else
23833   echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23835
23836         ac_cv_lib_pthread_pthread_self=no
23837 fi
23838
23839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23840       conftest$ac_exeext conftest.$ac_ext
23841 LIBS=$ac_check_lib_save_LIBS
23842 fi
23843 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
23844 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
23845 if test $ac_cv_lib_pthread_pthread_self = yes; then
23846   cat >>confdefs.h <<_ACEOF
23847 #define HAVE_LIBPTHREAD 1
23848 _ACEOF
23849
23850   LIBS="-lpthread $LIBS"
23851
23852 fi
23853
23854
23855 # Check if there is google-gflags library installed.
23856 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
23857 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
23858 if test "${ac_cv_lib_gflags_main+set}" = set; then
23859   echo $ECHO_N "(cached) $ECHO_C" >&6
23860 else
23861   ac_check_lib_save_LIBS=$LIBS
23862 LIBS="-lgflags  $LIBS"
23863 cat >conftest.$ac_ext <<_ACEOF
23864 /* confdefs.h.  */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h.  */
23869
23870
23871 int
23872 main ()
23873 {
23874 return main ();
23875   ;
23876   return 0;
23877 }
23878 _ACEOF
23879 rm -f conftest.$ac_objext conftest$ac_exeext
23880 if { (ac_try="$ac_link"
23881 case "(($ac_try" in
23882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883   *) ac_try_echo=$ac_try;;
23884 esac
23885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23886   (eval "$ac_link") 2>conftest.er1
23887   ac_status=$?
23888   grep -v '^ *+' conftest.er1 >conftest.err
23889   rm -f conftest.er1
23890   cat conftest.err >&5
23891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892   (exit $ac_status); } && {
23893          test -z "$ac_c_werror_flag" ||
23894          test ! -s conftest.err
23895        } && test -s conftest$ac_exeext &&
23896        $as_test_x conftest$ac_exeext; then
23897   ac_cv_lib_gflags_main=yes
23898 else
23899   echo "$as_me: failed program was:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23901
23902         ac_cv_lib_gflags_main=no
23903 fi
23904
23905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23906       conftest$ac_exeext conftest.$ac_ext
23907 LIBS=$ac_check_lib_save_LIBS
23908 fi
23909 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
23910 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
23911 if test $ac_cv_lib_gflags_main = yes; then
23912   ac_cv_have_libgflags=1
23913 else
23914   ac_cv_have_libgflags=0
23915 fi
23916
23917 if test x"$ac_cv_have_libgflags" = x"1"; then
23918   GFLAGS_LIBS=-lgflags
23919
23920 cat >>confdefs.h <<\_ACEOF
23921 #define HAVE_LIB_GFLAGS 1
23922 _ACEOF
23923
23924 else
23925   GFLAGS_LIBS=
23926 fi
23927
23928 # We want to link in libunwind if it exists
23929 UNWIND_LIBS=
23930 # Unfortunately, we need to check the header file in addition to the
23931 # lib file to check if libunwind is available since libunwind-0.98
23932 # doesn't install all necessary header files.
23933 if test x"$ac_cv_have_libunwind_h" = x"1"; then
23934  { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
23935 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
23936 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
23937   echo $ECHO_N "(cached) $ECHO_C" >&6
23938 else
23939   ac_check_lib_save_LIBS=$LIBS
23940 LIBS="-lunwind  $LIBS"
23941 cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h.  */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h.  */
23947
23948 /* Override any GCC internal prototype to avoid an error.
23949    Use char because int might match the return type of a GCC
23950    builtin and then its argument prototype would still apply.  */
23951 #ifdef __cplusplus
23952 extern "C"
23953 #endif
23954 char backtrace ();
23955 int
23956 main ()
23957 {
23958 return backtrace ();
23959   ;
23960   return 0;
23961 }
23962 _ACEOF
23963 rm -f conftest.$ac_objext conftest$ac_exeext
23964 if { (ac_try="$ac_link"
23965 case "(($ac_try" in
23966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23967   *) ac_try_echo=$ac_try;;
23968 esac
23969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970   (eval "$ac_link") 2>conftest.er1
23971   ac_status=$?
23972   grep -v '^ *+' conftest.er1 >conftest.err
23973   rm -f conftest.er1
23974   cat conftest.err >&5
23975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); } && {
23977          test -z "$ac_c_werror_flag" ||
23978          test ! -s conftest.err
23979        } && test -s conftest$ac_exeext &&
23980        $as_test_x conftest$ac_exeext; then
23981   ac_cv_lib_unwind_backtrace=yes
23982 else
23983   echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986         ac_cv_lib_unwind_backtrace=no
23987 fi
23988
23989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23990       conftest$ac_exeext conftest.$ac_ext
23991 LIBS=$ac_check_lib_save_LIBS
23992 fi
23993 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
23994 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
23995 if test $ac_cv_lib_unwind_backtrace = yes; then
23996   UNWIND_LIBS=-lunwind
23997 fi
23998
23999 fi
24000
24001 if test x"$UNWIND_LIBS" != x""; then
24002
24003 cat >>confdefs.h <<\_ACEOF
24004 #define HAVE_LIB_UNWIND 1
24005 _ACEOF
24006
24007 fi
24008
24009 # We'd like to use read/write locks in several places in the code.
24010 # See if our pthreads support extends to that.  Note: for linux, it
24011 # does as long as you define _XOPEN_SOURCE appropriately.
24012 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
24013 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
24014 if test "${ac_rwlock+set}" = set; then
24015   echo $ECHO_N "(cached) $ECHO_C" >&6
24016 else
24017
24018  ac_ext=c
24019 ac_cpp='$CPP $CPPFLAGS'
24020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24023
24024  cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h.  */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h.  */
24030 #define _XOPEN_SOURCE 500
24031                  #include <pthread.h>
24032 int
24033 main ()
24034 {
24035 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
24036                  pthread_rwlock_rdlock(&l);
24037                  return 0;
24038   ;
24039   return 0;
24040 }
24041 _ACEOF
24042 rm -f conftest.$ac_objext
24043 if { (ac_try="$ac_compile"
24044 case "(($ac_try" in
24045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046   *) ac_try_echo=$ac_try;;
24047 esac
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049   (eval "$ac_compile") 2>conftest.er1
24050   ac_status=$?
24051   grep -v '^ *+' conftest.er1 >conftest.err
24052   rm -f conftest.er1
24053   cat conftest.err >&5
24054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055   (exit $ac_status); } && {
24056          test -z "$ac_c_werror_flag" ||
24057          test ! -s conftest.err
24058        } && test -s conftest.$ac_objext; then
24059   ac_rwlock=yes
24060 else
24061   echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24063
24064         ac_rwlock=no
24065 fi
24066
24067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24068  ac_ext=c
24069 ac_cpp='$CPP $CPPFLAGS'
24070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24073
24074
24075 fi
24076 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
24077 echo "${ECHO_T}$ac_rwlock" >&6; }
24078 if test "$ac_rwlock" = yes; then
24079
24080 cat >>confdefs.h <<\_ACEOF
24081 #define HAVE_RWLOCK 1
24082 _ACEOF
24083
24084 fi
24085
24086
24087 # Find out what namespace 'normal' STL code lives in, and also what namespace
24088 # the user wants our classes to be defined in
24089 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
24090 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
24091 if test "${ac_cv_cxx_namespaces+set}" = set; then
24092   echo $ECHO_N "(cached) $ECHO_C" >&6
24093 else
24094
24095                   ac_ext=cpp
24096 ac_cpp='$CXXCPP $CPPFLAGS'
24097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24100
24101                   cat >conftest.$ac_ext <<_ACEOF
24102 /* confdefs.h.  */
24103 _ACEOF
24104 cat confdefs.h >>conftest.$ac_ext
24105 cat >>conftest.$ac_ext <<_ACEOF
24106 /* end confdefs.h.  */
24107 namespace Outer {
24108                                     namespace Inner { int i = 0; }}
24109 int
24110 main ()
24111 {
24112 using namespace Outer::Inner; return i;
24113   ;
24114   return 0;
24115 }
24116 _ACEOF
24117 rm -f conftest.$ac_objext
24118 if { (ac_try="$ac_compile"
24119 case "(($ac_try" in
24120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24121   *) ac_try_echo=$ac_try;;
24122 esac
24123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24124   (eval "$ac_compile") 2>conftest.er1
24125   ac_status=$?
24126   grep -v '^ *+' conftest.er1 >conftest.err
24127   rm -f conftest.er1
24128   cat conftest.err >&5
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); } && {
24131          test -z "$ac_cxx_werror_flag" ||
24132          test ! -s conftest.err
24133        } && test -s conftest.$ac_objext; then
24134   ac_cv_cxx_namespaces=yes
24135 else
24136   echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139         ac_cv_cxx_namespaces=no
24140 fi
24141
24142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24143                   ac_ext=c
24144 ac_cpp='$CPP $CPPFLAGS'
24145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24148
24149 fi
24150 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
24151 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
24152   if test "$ac_cv_cxx_namespaces" = yes; then
24153
24154 cat >>confdefs.h <<\_ACEOF
24155 #define HAVE_NAMESPACES 1
24156 _ACEOF
24157
24158   fi
24159 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
24160 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
24161 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
24162   echo $ECHO_N "(cached) $ECHO_C" >&6
24163 else
24164
24165
24166       ac_ext=cpp
24167 ac_cpp='$CXXCPP $CPPFLAGS'
24168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24171
24172       cat >conftest.$ac_ext <<_ACEOF
24173 /* confdefs.h.  */
24174 _ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h.  */
24178 #include <vector>
24179 int
24180 main ()
24181 {
24182 vector<int> t; return 0;
24183   ;
24184   return 0;
24185 }
24186 _ACEOF
24187 rm -f conftest.$ac_objext
24188 if { (ac_try="$ac_compile"
24189 case "(($ac_try" in
24190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191   *) ac_try_echo=$ac_try;;
24192 esac
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194   (eval "$ac_compile") 2>conftest.er1
24195   ac_status=$?
24196   grep -v '^ *+' conftest.er1 >conftest.err
24197   rm -f conftest.er1
24198   cat conftest.err >&5
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); } && {
24201          test -z "$ac_cxx_werror_flag" ||
24202          test ! -s conftest.err
24203        } && test -s conftest.$ac_objext; then
24204   ac_cv_cxx_stl_namespace=none
24205 else
24206   echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24208
24209
24210 fi
24211
24212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24213       cat >conftest.$ac_ext <<_ACEOF
24214 /* confdefs.h.  */
24215 _ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h.  */
24219 #include <vector>
24220 int
24221 main ()
24222 {
24223 std::vector<int> t; return 0;
24224   ;
24225   return 0;
24226 }
24227 _ACEOF
24228 rm -f conftest.$ac_objext
24229 if { (ac_try="$ac_compile"
24230 case "(($ac_try" in
24231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232   *) ac_try_echo=$ac_try;;
24233 esac
24234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24235   (eval "$ac_compile") 2>conftest.er1
24236   ac_status=$?
24237   grep -v '^ *+' conftest.er1 >conftest.err
24238   rm -f conftest.er1
24239   cat conftest.err >&5
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); } && {
24242          test -z "$ac_cxx_werror_flag" ||
24243          test ! -s conftest.err
24244        } && test -s conftest.$ac_objext; then
24245   ac_cv_cxx_stl_namespace=std
24246 else
24247   echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24249
24250
24251 fi
24252
24253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24254       ac_ext=c
24255 ac_cpp='$CPP $CPPFLAGS'
24256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24259
24260 fi
24261 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
24262 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
24263    if test "$ac_cv_cxx_stl_namespace" = none; then
24264
24265 cat >>confdefs.h <<\_ACEOF
24266 #define STL_NAMESPACE
24267 _ACEOF
24268
24269    fi
24270    if test "$ac_cv_cxx_stl_namespace" = std; then
24271
24272 cat >>confdefs.h <<\_ACEOF
24273 #define STL_NAMESPACE std
24274 _ACEOF
24275
24276    fi
24277
24278 google_namespace_default=google
24279    # Check whether --enable-namespace was given.
24280 if test "${enable_namespace+set}" = set; then
24281   enableval=$enable_namespace; case "$enableval" in
24282                     yes) google_namespace="$google_namespace_default" ;;
24283                      no) google_namespace="" ;;
24284                       *) google_namespace="$enableval" ;;
24285                   esac
24286 else
24287   google_namespace="$google_namespace_default"
24288 fi
24289
24290    if test -n "$google_namespace"; then
24291      ac_google_namespace="$google_namespace"
24292      ac_google_start_namespace="namespace $google_namespace {"
24293      ac_google_end_namespace="}"
24294    else
24295      ac_google_namespace=""
24296      ac_google_start_namespace=""
24297      ac_google_end_namespace=""
24298    fi
24299
24300 cat >>confdefs.h <<_ACEOF
24301 #define GOOGLE_NAMESPACE $ac_google_namespace
24302 _ACEOF
24303
24304
24305 cat >>confdefs.h <<_ACEOF
24306 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
24307 _ACEOF
24308
24309
24310 cat >>confdefs.h <<_ACEOF
24311 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
24312 _ACEOF
24313
24314
24315
24316 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
24317 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
24318 if test "${ac_cv_cxx_using_operator+set}" = set; then
24319   echo $ECHO_N "(cached) $ECHO_C" >&6
24320 else
24321
24322        ac_ext=cpp
24323 ac_cpp='$CXXCPP $CPPFLAGS'
24324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24327
24328        cat >conftest.$ac_ext <<_ACEOF
24329 /* confdefs.h.  */
24330 _ACEOF
24331 cat confdefs.h >>conftest.$ac_ext
24332 cat >>conftest.$ac_ext <<_ACEOF
24333 /* end confdefs.h.  */
24334 #include <iostream>
24335                        std::ostream& operator<<(std::ostream&, struct s);
24336 int
24337 main ()
24338 {
24339 using ::operator<<; return 0;
24340   ;
24341   return 0;
24342 }
24343 _ACEOF
24344 rm -f conftest.$ac_objext
24345 if { (ac_try="$ac_compile"
24346 case "(($ac_try" in
24347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348   *) ac_try_echo=$ac_try;;
24349 esac
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351   (eval "$ac_compile") 2>conftest.er1
24352   ac_status=$?
24353   grep -v '^ *+' conftest.er1 >conftest.err
24354   rm -f conftest.er1
24355   cat conftest.err >&5
24356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357   (exit $ac_status); } && {
24358          test -z "$ac_cxx_werror_flag" ||
24359          test ! -s conftest.err
24360        } && test -s conftest.$ac_objext; then
24361   ac_cv_cxx_using_operator=1
24362 else
24363   echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24365
24366         ac_cv_cxx_using_operator=0
24367 fi
24368
24369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24370       ac_ext=c
24371 ac_cpp='$CPP $CPPFLAGS'
24372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24375
24376 fi
24377 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
24378 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
24379   if test "$ac_cv_cxx_using_operator" = 1; then
24380
24381 cat >>confdefs.h <<\_ACEOF
24382 #define HAVE_USING_OPERATOR 1
24383 _ACEOF
24384
24385   fi
24386
24387 # We want to access the "PC" (Program Counter) register from a struct
24388 # ucontext.  Every system has its own way of doing that.  We try all the
24389 # possibilities we know about.  Note REG_PC should come first (REG_RIP
24390 # is also defined on solaris, but does the wrong thing).
24391 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
24392 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
24393 pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
24394 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
24395 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
24396 pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
24397 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
24398 pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
24399 pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
24400 pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
24401 pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
24402 pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
24403 pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
24404 pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
24405 pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
24406 pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
24407 pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
24408 pc_field_found=false
24409 for pc_field in $pc_fields; do
24410   if ! $pc_field_found; then
24411     cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h.  */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h.  */
24417 #define _GNU_SOURCE 1
24418                     #include <ucontext.h>
24419 int
24420 main ()
24421 {
24422 ucontext_t u; return u.$pc_field == 0;
24423   ;
24424   return 0;
24425 }
24426 _ACEOF
24427 rm -f conftest.$ac_objext
24428 if { (ac_try="$ac_compile"
24429 case "(($ac_try" in
24430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431   *) ac_try_echo=$ac_try;;
24432 esac
24433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434   (eval "$ac_compile") 2>conftest.er1
24435   ac_status=$?
24436   grep -v '^ *+' conftest.er1 >conftest.err
24437   rm -f conftest.er1
24438   cat conftest.err >&5
24439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440   (exit $ac_status); } && {
24441          test -z "$ac_c_werror_flag" ||
24442          test ! -s conftest.err
24443        } && test -s conftest.$ac_objext; then
24444
24445 cat >>confdefs.h <<_ACEOF
24446 #define PC_FROM_UCONTEXT $pc_field
24447 _ACEOF
24448
24449                    { echo "$as_me:$LINENO: result: $pc_field" >&5
24450 echo "${ECHO_T}$pc_field" >&6; }
24451                  pc_field_found=true
24452 else
24453   echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24455
24456
24457 fi
24458
24459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24460   fi
24461 done
24462 if ! $pc_field_found; then
24463   { echo "$as_me:$LINENO: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
24464 echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
24465 fi
24466
24467 # These are what's needed by logging.h.in and raw_logging.h.in
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485 # Write generated configuration file
24486 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"
24487
24488 cat >confcache <<\_ACEOF
24489 # This file is a shell script that caches the results of configure
24490 # tests run on this system so they can be shared between configure
24491 # scripts and configure runs, see configure's option --config-cache.
24492 # It is not useful on other systems.  If it contains results you don't
24493 # want to keep, you may remove or edit it.
24494 #
24495 # config.status only pays attention to the cache file if you give it
24496 # the --recheck option to rerun configure.
24497 #
24498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24500 # following values.
24501
24502 _ACEOF
24503
24504 # The following way of writing the cache mishandles newlines in values,
24505 # but we know of no workaround that is simple, portable, and efficient.
24506 # So, we kill variables containing newlines.
24507 # Ultrix sh set writes to stderr and can't be redirected directly,
24508 # and sets the high bit in the cache file unless we assign to the vars.
24509 (
24510   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24511     eval ac_val=\$$ac_var
24512     case $ac_val in #(
24513     *${as_nl}*)
24514       case $ac_var in #(
24515       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24516 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24517       esac
24518       case $ac_var in #(
24519       _ | IFS | as_nl) ;; #(
24520       *) $as_unset $ac_var ;;
24521       esac ;;
24522     esac
24523   done
24524
24525   (set) 2>&1 |
24526     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24527     *${as_nl}ac_space=\ *)
24528       # `set' does not quote correctly, so add quotes (double-quote
24529       # substitution turns \\\\ into \\, and sed turns \\ into \).
24530       sed -n \
24531         "s/'/'\\\\''/g;
24532           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24533       ;; #(
24534     *)
24535       # `set' quotes correctly as required by POSIX, so do not add quotes.
24536       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24537       ;;
24538     esac |
24539     sort
24540 ) |
24541   sed '
24542      /^ac_cv_env_/b end
24543      t clear
24544      :clear
24545      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24546      t end
24547      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24548      :end' >>confcache
24549 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24550   if test -w "$cache_file"; then
24551     test "x$cache_file" != "x/dev/null" &&
24552       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24553 echo "$as_me: updating cache $cache_file" >&6;}
24554     cat confcache >$cache_file
24555   else
24556     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24557 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24558   fi
24559 fi
24560 rm -f confcache
24561
24562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24563 # Let make expand exec_prefix.
24564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24565
24566 DEFS=-DHAVE_CONFIG_H
24567
24568 ac_libobjs=
24569 ac_ltlibobjs=
24570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24571   # 1. Remove the extension, and $U if already installed.
24572   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24573   ac_i=`echo "$ac_i" | sed "$ac_script"`
24574   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24575   #    will be set to the directory where LIBOBJS objects are built.
24576   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24577   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24578 done
24579 LIBOBJS=$ac_libobjs
24580
24581 LTLIBOBJS=$ac_ltlibobjs
24582
24583
24584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24585   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24586 Usually this means the macro was only invoked conditionally." >&5
24587 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24588 Usually this means the macro was only invoked conditionally." >&2;}
24589    { (exit 1); exit 1; }; }
24590 fi
24591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24592   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24593 Usually this means the macro was only invoked conditionally." >&5
24594 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24595 Usually this means the macro was only invoked conditionally." >&2;}
24596    { (exit 1); exit 1; }; }
24597 fi
24598 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24599   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24600 Usually this means the macro was only invoked conditionally." >&5
24601 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24602 Usually this means the macro was only invoked conditionally." >&2;}
24603    { (exit 1); exit 1; }; }
24604 fi
24605 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
24606   { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
24607 Usually this means the macro was only invoked conditionally." >&5
24608 echo "$as_me: error: conditional \"GCC\" was never defined.
24609 Usually this means the macro was only invoked conditionally." >&2;}
24610    { (exit 1); exit 1; }; }
24611 fi
24612 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
24613   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24614 Usually this means the macro was only invoked conditionally." >&5
24615 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24616 Usually this means the macro was only invoked conditionally." >&2;}
24617    { (exit 1); exit 1; }; }
24618 fi
24619 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
24620   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
24621 Usually this means the macro was only invoked conditionally." >&5
24622 echo "$as_me: error: conditional \"X86_64\" was never defined.
24623 Usually this means the macro was only invoked conditionally." >&2;}
24624    { (exit 1); exit 1; }; }
24625 fi
24626
24627 : ${CONFIG_STATUS=./config.status}
24628 ac_clean_files_save=$ac_clean_files
24629 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24630 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24631 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24632 cat >$CONFIG_STATUS <<_ACEOF
24633 #! $SHELL
24634 # Generated by $as_me.
24635 # Run this file to recreate the current configuration.
24636 # Compiler output produced by configure, useful for debugging
24637 # configure, is in config.log if it exists.
24638
24639 debug=false
24640 ac_cs_recheck=false
24641 ac_cs_silent=false
24642 SHELL=\${CONFIG_SHELL-$SHELL}
24643 _ACEOF
24644
24645 cat >>$CONFIG_STATUS <<\_ACEOF
24646 ## --------------------- ##
24647 ## M4sh Initialization.  ##
24648 ## --------------------- ##
24649
24650 # Be more Bourne compatible
24651 DUALCASE=1; export DUALCASE # for MKS sh
24652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24653   emulate sh
24654   NULLCMD=:
24655   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24656   # is contrary to our usage.  Disable this feature.
24657   alias -g '${1+"$@"}'='"$@"'
24658   setopt NO_GLOB_SUBST
24659 else
24660   case `(set -o) 2>/dev/null` in
24661   *posix*) set -o posix ;;
24662 esac
24663
24664 fi
24665
24666
24667
24668
24669 # PATH needs CR
24670 # Avoid depending upon Character Ranges.
24671 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24672 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24673 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24674 as_cr_digits='0123456789'
24675 as_cr_alnum=$as_cr_Letters$as_cr_digits
24676
24677 # The user is always right.
24678 if test "${PATH_SEPARATOR+set}" != set; then
24679   echo "#! /bin/sh" >conf$$.sh
24680   echo  "exit 0"   >>conf$$.sh
24681   chmod +x conf$$.sh
24682   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24683     PATH_SEPARATOR=';'
24684   else
24685     PATH_SEPARATOR=:
24686   fi
24687   rm -f conf$$.sh
24688 fi
24689
24690 # Support unset when possible.
24691 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24692   as_unset=unset
24693 else
24694   as_unset=false
24695 fi
24696
24697
24698 # IFS
24699 # We need space, tab and new line, in precisely that order.  Quoting is
24700 # there to prevent editors from complaining about space-tab.
24701 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24702 # splitting by setting IFS to empty value.)
24703 as_nl='
24704 '
24705 IFS=" ""        $as_nl"
24706
24707 # Find who we are.  Look in the path if we contain no directory separator.
24708 case $0 in
24709   *[\\/]* ) as_myself=$0 ;;
24710   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24711 for as_dir in $PATH
24712 do
24713   IFS=$as_save_IFS
24714   test -z "$as_dir" && as_dir=.
24715   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24716 done
24717 IFS=$as_save_IFS
24718
24719      ;;
24720 esac
24721 # We did not find ourselves, most probably we were run as `sh COMMAND'
24722 # in which case we are not to be found in the path.
24723 if test "x$as_myself" = x; then
24724   as_myself=$0
24725 fi
24726 if test ! -f "$as_myself"; then
24727   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24728   { (exit 1); exit 1; }
24729 fi
24730
24731 # Work around bugs in pre-3.0 UWIN ksh.
24732 for as_var in ENV MAIL MAILPATH
24733 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24734 done
24735 PS1='$ '
24736 PS2='> '
24737 PS4='+ '
24738
24739 # NLS nuisances.
24740 for as_var in \
24741   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24742   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24743   LC_TELEPHONE LC_TIME
24744 do
24745   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24746     eval $as_var=C; export $as_var
24747   else
24748     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24749   fi
24750 done
24751
24752 # Required to use basename.
24753 if expr a : '\(a\)' >/dev/null 2>&1 &&
24754    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24755   as_expr=expr
24756 else
24757   as_expr=false
24758 fi
24759
24760 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24761   as_basename=basename
24762 else
24763   as_basename=false
24764 fi
24765
24766
24767 # Name of the executable.
24768 as_me=`$as_basename -- "$0" ||
24769 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24770          X"$0" : 'X\(//\)$' \| \
24771          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24772 echo X/"$0" |
24773     sed '/^.*\/\([^/][^/]*\)\/*$/{
24774             s//\1/
24775             q
24776           }
24777           /^X\/\(\/\/\)$/{
24778             s//\1/
24779             q
24780           }
24781           /^X\/\(\/\).*/{
24782             s//\1/
24783             q
24784           }
24785           s/.*/./; q'`
24786
24787 # CDPATH.
24788 $as_unset CDPATH
24789
24790
24791
24792   as_lineno_1=$LINENO
24793   as_lineno_2=$LINENO
24794   test "x$as_lineno_1" != "x$as_lineno_2" &&
24795   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24796
24797   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24798   # uniformly replaced by the line number.  The first 'sed' inserts a
24799   # line-number line after each line using $LINENO; the second 'sed'
24800   # does the real work.  The second script uses 'N' to pair each
24801   # line-number line with the line containing $LINENO, and appends
24802   # trailing '-' during substitution so that $LINENO is not a special
24803   # case at line end.
24804   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24805   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24806   # E. McMahon (1931-1989) for sed's syntax.  :-)
24807   sed -n '
24808     p
24809     /[$]LINENO/=
24810   ' <$as_myself |
24811     sed '
24812       s/[$]LINENO.*/&-/
24813       t lineno
24814       b
24815       :lineno
24816       N
24817       :loop
24818       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24819       t loop
24820       s/-\n.*//
24821     ' >$as_me.lineno &&
24822   chmod +x "$as_me.lineno" ||
24823     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24824    { (exit 1); exit 1; }; }
24825
24826   # Don't try to exec as it changes $[0], causing all sort of problems
24827   # (the dirname of $[0] is not the place where we might find the
24828   # original and so on.  Autoconf is especially sensitive to this).
24829   . "./$as_me.lineno"
24830   # Exit status is that of the last command.
24831   exit
24832 }
24833
24834
24835 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24836   as_dirname=dirname
24837 else
24838   as_dirname=false
24839 fi
24840
24841 ECHO_C= ECHO_N= ECHO_T=
24842 case `echo -n x` in
24843 -n*)
24844   case `echo 'x\c'` in
24845   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24846   *)   ECHO_C='\c';;
24847   esac;;
24848 *)
24849   ECHO_N='-n';;
24850 esac
24851
24852 if expr a : '\(a\)' >/dev/null 2>&1 &&
24853    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24854   as_expr=expr
24855 else
24856   as_expr=false
24857 fi
24858
24859 rm -f conf$$ conf$$.exe conf$$.file
24860 if test -d conf$$.dir; then
24861   rm -f conf$$.dir/conf$$.file
24862 else
24863   rm -f conf$$.dir
24864   mkdir conf$$.dir
24865 fi
24866 echo >conf$$.file
24867 if ln -s conf$$.file conf$$ 2>/dev/null; then
24868   as_ln_s='ln -s'
24869   # ... but there are two gotchas:
24870   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24871   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24872   # In both cases, we have to default to `cp -p'.
24873   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24874     as_ln_s='cp -p'
24875 elif ln conf$$.file conf$$ 2>/dev/null; then
24876   as_ln_s=ln
24877 else
24878   as_ln_s='cp -p'
24879 fi
24880 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24881 rmdir conf$$.dir 2>/dev/null
24882
24883 if mkdir -p . 2>/dev/null; then
24884   as_mkdir_p=:
24885 else
24886   test -d ./-p && rmdir ./-p
24887   as_mkdir_p=false
24888 fi
24889
24890 if test -x / >/dev/null 2>&1; then
24891   as_test_x='test -x'
24892 else
24893   if ls -dL / >/dev/null 2>&1; then
24894     as_ls_L_option=L
24895   else
24896     as_ls_L_option=
24897   fi
24898   as_test_x='
24899     eval sh -c '\''
24900       if test -d "$1"; then
24901         test -d "$1/.";
24902       else
24903         case $1 in
24904         -*)set "./$1";;
24905         esac;
24906         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24907         ???[sx]*):;;*)false;;esac;fi
24908     '\'' sh
24909   '
24910 fi
24911 as_executable_p=$as_test_x
24912
24913 # Sed expression to map a string onto a valid CPP name.
24914 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24915
24916 # Sed expression to map a string onto a valid variable name.
24917 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24918
24919
24920 exec 6>&1
24921
24922 # Save the log message, to keep $[0] and so on meaningful, and to
24923 # report actual input values of CONFIG_FILES etc. instead of their
24924 # values after options handling.
24925 ac_log="
24926 This file was extended by glog $as_me 0.1.2, which was
24927 generated by GNU Autoconf 2.61.  Invocation command line was
24928
24929   CONFIG_FILES    = $CONFIG_FILES
24930   CONFIG_HEADERS  = $CONFIG_HEADERS
24931   CONFIG_LINKS    = $CONFIG_LINKS
24932   CONFIG_COMMANDS = $CONFIG_COMMANDS
24933   $ $0 $@
24934
24935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24936 "
24937
24938 _ACEOF
24939
24940 cat >>$CONFIG_STATUS <<_ACEOF
24941 # Files that config.status was made for.
24942 config_files="$ac_config_files"
24943 config_headers="$ac_config_headers"
24944 config_commands="$ac_config_commands"
24945
24946 _ACEOF
24947
24948 cat >>$CONFIG_STATUS <<\_ACEOF
24949 ac_cs_usage="\
24950 \`$as_me' instantiates files from templates according to the
24951 current configuration.
24952
24953 Usage: $0 [OPTIONS] [FILE]...
24954
24955   -h, --help       print this help, then exit
24956   -V, --version    print version number and configuration settings, then exit
24957   -q, --quiet      do not print progress messages
24958   -d, --debug      don't remove temporary files
24959       --recheck    update $as_me by reconfiguring in the same conditions
24960   --file=FILE[:TEMPLATE]
24961                    instantiate the configuration file FILE
24962   --header=FILE[:TEMPLATE]
24963                    instantiate the configuration header FILE
24964
24965 Configuration files:
24966 $config_files
24967
24968 Configuration headers:
24969 $config_headers
24970
24971 Configuration commands:
24972 $config_commands
24973
24974 Report bugs to <bug-autoconf@gnu.org>."
24975
24976 _ACEOF
24977 cat >>$CONFIG_STATUS <<_ACEOF
24978 ac_cs_version="\\
24979 glog config.status 0.1.2
24980 configured by $0, generated by GNU Autoconf 2.61,
24981   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24982
24983 Copyright (C) 2006 Free Software Foundation, Inc.
24984 This config.status script is free software; the Free Software Foundation
24985 gives unlimited permission to copy, distribute and modify it."
24986
24987 ac_pwd='$ac_pwd'
24988 srcdir='$srcdir'
24989 INSTALL='$INSTALL'
24990 MKDIR_P='$MKDIR_P'
24991 _ACEOF
24992
24993 cat >>$CONFIG_STATUS <<\_ACEOF
24994 # If no file are specified by the user, then we need to provide default
24995 # value.  By we need to know if files were specified by the user.
24996 ac_need_defaults=:
24997 while test $# != 0
24998 do
24999   case $1 in
25000   --*=*)
25001     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25002     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25003     ac_shift=:
25004     ;;
25005   *)
25006     ac_option=$1
25007     ac_optarg=$2
25008     ac_shift=shift
25009     ;;
25010   esac
25011
25012   case $ac_option in
25013   # Handling of the options.
25014   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25015     ac_cs_recheck=: ;;
25016   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25017     echo "$ac_cs_version"; exit ;;
25018   --debug | --debu | --deb | --de | --d | -d )
25019     debug=: ;;
25020   --file | --fil | --fi | --f )
25021     $ac_shift
25022     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25023     ac_need_defaults=false;;
25024   --header | --heade | --head | --hea )
25025     $ac_shift
25026     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25027     ac_need_defaults=false;;
25028   --he | --h)
25029     # Conflict between --help and --header
25030     { echo "$as_me: error: ambiguous option: $1
25031 Try \`$0 --help' for more information." >&2
25032    { (exit 1); exit 1; }; };;
25033   --help | --hel | -h )
25034     echo "$ac_cs_usage"; exit ;;
25035   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25036   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25037     ac_cs_silent=: ;;
25038
25039   # This is an error.
25040   -*) { echo "$as_me: error: unrecognized option: $1
25041 Try \`$0 --help' for more information." >&2
25042    { (exit 1); exit 1; }; } ;;
25043
25044   *) ac_config_targets="$ac_config_targets $1"
25045      ac_need_defaults=false ;;
25046
25047   esac
25048   shift
25049 done
25050
25051 ac_configure_extra_args=
25052
25053 if $ac_cs_silent; then
25054   exec 6>/dev/null
25055   ac_configure_extra_args="$ac_configure_extra_args --silent"
25056 fi
25057
25058 _ACEOF
25059 cat >>$CONFIG_STATUS <<_ACEOF
25060 if \$ac_cs_recheck; then
25061   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25062   CONFIG_SHELL=$SHELL
25063   export CONFIG_SHELL
25064   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25065 fi
25066
25067 _ACEOF
25068 cat >>$CONFIG_STATUS <<\_ACEOF
25069 exec 5>>config.log
25070 {
25071   echo
25072   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25073 ## Running $as_me. ##
25074 _ASBOX
25075   echo "$ac_log"
25076 } >&5
25077
25078 _ACEOF
25079 cat >>$CONFIG_STATUS <<_ACEOF
25080 #
25081 # INIT-COMMANDS
25082 #
25083 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25084
25085 _ACEOF
25086
25087 cat >>$CONFIG_STATUS <<\_ACEOF
25088
25089 # Handling of arguments.
25090 for ac_config_target in $ac_config_targets
25091 do
25092   case $ac_config_target in
25093     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25094     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25095     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25096     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
25097     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
25098     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
25099     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
25100
25101   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25102 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25103    { (exit 1); exit 1; }; };;
25104   esac
25105 done
25106
25107
25108 # If the user did not use the arguments to specify the items to instantiate,
25109 # then the envvar interface is used.  Set only those that are not.
25110 # We use the long form for the default assignment because of an extremely
25111 # bizarre bug on SunOS 4.1.3.
25112 if $ac_need_defaults; then
25113   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25114   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25115   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25116 fi
25117
25118 # Have a temporary directory for convenience.  Make it in the build tree
25119 # simply because there is no reason against having it here, and in addition,
25120 # creating and moving files from /tmp can sometimes cause problems.
25121 # Hook for its removal unless debugging.
25122 # Note that there is a small window in which the directory will not be cleaned:
25123 # after its creation but before its name has been assigned to `$tmp'.
25124 $debug ||
25125 {
25126   tmp=
25127   trap 'exit_status=$?
25128   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25129 ' 0
25130   trap '{ (exit 1); exit 1; }' 1 2 13 15
25131 }
25132 # Create a (secure) tmp directory for tmp files.
25133
25134 {
25135   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25136   test -n "$tmp" && test -d "$tmp"
25137 }  ||
25138 {
25139   tmp=./conf$$-$RANDOM
25140   (umask 077 && mkdir "$tmp")
25141 } ||
25142 {
25143    echo "$me: cannot create a temporary directory in ." >&2
25144    { (exit 1); exit 1; }
25145 }
25146
25147 #
25148 # Set up the sed scripts for CONFIG_FILES section.
25149 #
25150
25151 # No need to generate the scripts if there are no CONFIG_FILES.
25152 # This happens for instance when ./config.status config.h
25153 if test -n "$CONFIG_FILES"; then
25154
25155 _ACEOF
25156
25157
25158
25159 ac_delim='%!_!# '
25160 for ac_last_try in false false false false false :; do
25161   cat >conf$$subs.sed <<_ACEOF
25162 SHELL!$SHELL$ac_delim
25163 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25164 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25165 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25166 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25167 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25168 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25169 exec_prefix!$exec_prefix$ac_delim
25170 prefix!$prefix$ac_delim
25171 program_transform_name!$program_transform_name$ac_delim
25172 bindir!$bindir$ac_delim
25173 sbindir!$sbindir$ac_delim
25174 libexecdir!$libexecdir$ac_delim
25175 datarootdir!$datarootdir$ac_delim
25176 datadir!$datadir$ac_delim
25177 sysconfdir!$sysconfdir$ac_delim
25178 sharedstatedir!$sharedstatedir$ac_delim
25179 localstatedir!$localstatedir$ac_delim
25180 includedir!$includedir$ac_delim
25181 oldincludedir!$oldincludedir$ac_delim
25182 docdir!$docdir$ac_delim
25183 infodir!$infodir$ac_delim
25184 htmldir!$htmldir$ac_delim
25185 dvidir!$dvidir$ac_delim
25186 pdfdir!$pdfdir$ac_delim
25187 psdir!$psdir$ac_delim
25188 libdir!$libdir$ac_delim
25189 localedir!$localedir$ac_delim
25190 mandir!$mandir$ac_delim
25191 DEFS!$DEFS$ac_delim
25192 ECHO_C!$ECHO_C$ac_delim
25193 ECHO_N!$ECHO_N$ac_delim
25194 ECHO_T!$ECHO_T$ac_delim
25195 LIBS!$LIBS$ac_delim
25196 build_alias!$build_alias$ac_delim
25197 host_alias!$host_alias$ac_delim
25198 target_alias!$target_alias$ac_delim
25199 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25200 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25201 INSTALL_DATA!$INSTALL_DATA$ac_delim
25202 am__isrc!$am__isrc$ac_delim
25203 CYGPATH_W!$CYGPATH_W$ac_delim
25204 PACKAGE!$PACKAGE$ac_delim
25205 VERSION!$VERSION$ac_delim
25206 ACLOCAL!$ACLOCAL$ac_delim
25207 AUTOCONF!$AUTOCONF$ac_delim
25208 AUTOMAKE!$AUTOMAKE$ac_delim
25209 AUTOHEADER!$AUTOHEADER$ac_delim
25210 MAKEINFO!$MAKEINFO$ac_delim
25211 install_sh!$install_sh$ac_delim
25212 STRIP!$STRIP$ac_delim
25213 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25214 mkdir_p!$mkdir_p$ac_delim
25215 AWK!$AWK$ac_delim
25216 SET_MAKE!$SET_MAKE$ac_delim
25217 am__leading_dot!$am__leading_dot$ac_delim
25218 AMTAR!$AMTAR$ac_delim
25219 am__tar!$am__tar$ac_delim
25220 am__untar!$am__untar$ac_delim
25221 CC!$CC$ac_delim
25222 CFLAGS!$CFLAGS$ac_delim
25223 LDFLAGS!$LDFLAGS$ac_delim
25224 CPPFLAGS!$CPPFLAGS$ac_delim
25225 ac_ct_CC!$ac_ct_CC$ac_delim
25226 EXEEXT!$EXEEXT$ac_delim
25227 OBJEXT!$OBJEXT$ac_delim
25228 DEPDIR!$DEPDIR$ac_delim
25229 am__include!$am__include$ac_delim
25230 am__quote!$am__quote$ac_delim
25231 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25232 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25233 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25234 CCDEPMODE!$CCDEPMODE$ac_delim
25235 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25236 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25237 CPP!$CPP$ac_delim
25238 CXX!$CXX$ac_delim
25239 CXXFLAGS!$CXXFLAGS$ac_delim
25240 ac_ct_CXX!$ac_ct_CXX$ac_delim
25241 CXXDEPMODE!$CXXDEPMODE$ac_delim
25242 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25243 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25244 GCC_TRUE!$GCC_TRUE$ac_delim
25245 GCC_FALSE!$GCC_FALSE$ac_delim
25246 build!$build$ac_delim
25247 build_cpu!$build_cpu$ac_delim
25248 build_vendor!$build_vendor$ac_delim
25249 build_os!$build_os$ac_delim
25250 host!$host$ac_delim
25251 host_cpu!$host_cpu$ac_delim
25252 host_vendor!$host_vendor$ac_delim
25253 host_os!$host_os$ac_delim
25254 SED!$SED$ac_delim
25255 GREP!$GREP$ac_delim
25256 EGREP!$EGREP$ac_delim
25257 LN_S!$LN_S$ac_delim
25258 ECHO!$ECHO$ac_delim
25259 _ACEOF
25260
25261   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25262     break
25263   elif $ac_last_try; then
25264     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25265 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25266    { (exit 1); exit 1; }; }
25267   else
25268     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25269   fi
25270 done
25271
25272 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25273 if test -n "$ac_eof"; then
25274   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25275   ac_eof=`expr $ac_eof + 1`
25276 fi
25277
25278 cat >>$CONFIG_STATUS <<_ACEOF
25279 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25281 _ACEOF
25282 sed '
25283 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25284 s/^/s,@/; s/!/@,|#_!!_#|/
25285 :n
25286 t n
25287 s/'"$ac_delim"'$/,g/; t
25288 s/$/\\/; p
25289 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25290 ' >>$CONFIG_STATUS <conf$$subs.sed
25291 rm -f conf$$subs.sed
25292 cat >>$CONFIG_STATUS <<_ACEOF
25293 CEOF$ac_eof
25294 _ACEOF
25295
25296
25297 ac_delim='%!_!# '
25298 for ac_last_try in false false false false false :; do
25299   cat >conf$$subs.sed <<_ACEOF
25300 AR!$AR$ac_delim
25301 RANLIB!$RANLIB$ac_delim
25302 DSYMUTIL!$DSYMUTIL$ac_delim
25303 NMEDIT!$NMEDIT$ac_delim
25304 CXXCPP!$CXXCPP$ac_delim
25305 F77!$F77$ac_delim
25306 FFLAGS!$FFLAGS$ac_delim
25307 ac_ct_F77!$ac_ct_F77$ac_delim
25308 LIBTOOL!$LIBTOOL$ac_delim
25309 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
25310 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
25311 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
25312 X86_64_TRUE!$X86_64_TRUE$ac_delim
25313 X86_64_FALSE!$X86_64_FALSE$ac_delim
25314 acx_pthread_config!$acx_pthread_config$ac_delim
25315 PTHREAD_CC!$PTHREAD_CC$ac_delim
25316 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
25317 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25318 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
25319 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
25320 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
25321 ac_google_namespace!$ac_google_namespace$ac_delim
25322 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
25323 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
25324 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
25325 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
25326 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
25327 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
25328 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
25329 ac_cv_have_unistd_h!$ac_cv_have_unistd_h$ac_delim
25330 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
25331 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
25332 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
25333 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
25334 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
25335 LIBOBJS!$LIBOBJS$ac_delim
25336 LTLIBOBJS!$LTLIBOBJS$ac_delim
25337 _ACEOF
25338
25339   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 37; then
25340     break
25341   elif $ac_last_try; then
25342     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25343 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25344    { (exit 1); exit 1; }; }
25345   else
25346     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25347   fi
25348 done
25349
25350 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25351 if test -n "$ac_eof"; then
25352   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25353   ac_eof=`expr $ac_eof + 1`
25354 fi
25355
25356 cat >>$CONFIG_STATUS <<_ACEOF
25357 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25359 _ACEOF
25360 sed '
25361 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25362 s/^/s,@/; s/!/@,|#_!!_#|/
25363 :n
25364 t n
25365 s/'"$ac_delim"'$/,g/; t
25366 s/$/\\/; p
25367 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25368 ' >>$CONFIG_STATUS <conf$$subs.sed
25369 rm -f conf$$subs.sed
25370 cat >>$CONFIG_STATUS <<_ACEOF
25371 :end
25372 s/|#_!!_#|//g
25373 CEOF$ac_eof
25374 _ACEOF
25375
25376
25377 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25378 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25379 # trailing colons and then remove the whole line if VPATH becomes empty
25380 # (actually we leave an empty line to preserve line numbers).
25381 if test "x$srcdir" = x.; then
25382   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25383 s/:*\$(srcdir):*/:/
25384 s/:*\${srcdir}:*/:/
25385 s/:*@srcdir@:*/:/
25386 s/^\([^=]*=[     ]*\):*/\1/
25387 s/:*$//
25388 s/^[^=]*=[       ]*$//
25389 }'
25390 fi
25391
25392 cat >>$CONFIG_STATUS <<\_ACEOF
25393 fi # test -n "$CONFIG_FILES"
25394
25395
25396 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25397 do
25398   case $ac_tag in
25399   :[FHLC]) ac_mode=$ac_tag; continue;;
25400   esac
25401   case $ac_mode$ac_tag in
25402   :[FHL]*:*);;
25403   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25404 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25405    { (exit 1); exit 1; }; };;
25406   :[FH]-) ac_tag=-:-;;
25407   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25408   esac
25409   ac_save_IFS=$IFS
25410   IFS=:
25411   set x $ac_tag
25412   IFS=$ac_save_IFS
25413   shift
25414   ac_file=$1
25415   shift
25416
25417   case $ac_mode in
25418   :L) ac_source=$1;;
25419   :[FH])
25420     ac_file_inputs=
25421     for ac_f
25422     do
25423       case $ac_f in
25424       -) ac_f="$tmp/stdin";;
25425       *) # Look for the file first in the build tree, then in the source tree
25426          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25427          # because $ac_f cannot contain `:'.
25428          test -f "$ac_f" ||
25429            case $ac_f in
25430            [\\/$]*) false;;
25431            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25432            esac ||
25433            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25434 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25435    { (exit 1); exit 1; }; };;
25436       esac
25437       ac_file_inputs="$ac_file_inputs $ac_f"
25438     done
25439
25440     # Let's still pretend it is `configure' which instantiates (i.e., don't
25441     # use $as_me), people would be surprised to read:
25442     #    /* config.h.  Generated by config.status.  */
25443     configure_input="Generated from "`IFS=:
25444           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25445     if test x"$ac_file" != x-; then
25446       configure_input="$ac_file.  $configure_input"
25447       { echo "$as_me:$LINENO: creating $ac_file" >&5
25448 echo "$as_me: creating $ac_file" >&6;}
25449     fi
25450
25451     case $ac_tag in
25452     *:-:* | *:-) cat >"$tmp/stdin";;
25453     esac
25454     ;;
25455   esac
25456
25457   ac_dir=`$as_dirname -- "$ac_file" ||
25458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25459          X"$ac_file" : 'X\(//\)[^/]' \| \
25460          X"$ac_file" : 'X\(//\)$' \| \
25461          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25462 echo X"$ac_file" |
25463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25464             s//\1/
25465             q
25466           }
25467           /^X\(\/\/\)[^/].*/{
25468             s//\1/
25469             q
25470           }
25471           /^X\(\/\/\)$/{
25472             s//\1/
25473             q
25474           }
25475           /^X\(\/\).*/{
25476             s//\1/
25477             q
25478           }
25479           s/.*/./; q'`
25480   { as_dir="$ac_dir"
25481   case $as_dir in #(
25482   -*) as_dir=./$as_dir;;
25483   esac
25484   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25485     as_dirs=
25486     while :; do
25487       case $as_dir in #(
25488       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25489       *) as_qdir=$as_dir;;
25490       esac
25491       as_dirs="'$as_qdir' $as_dirs"
25492       as_dir=`$as_dirname -- "$as_dir" ||
25493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25494          X"$as_dir" : 'X\(//\)[^/]' \| \
25495          X"$as_dir" : 'X\(//\)$' \| \
25496          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25497 echo X"$as_dir" |
25498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25499             s//\1/
25500             q
25501           }
25502           /^X\(\/\/\)[^/].*/{
25503             s//\1/
25504             q
25505           }
25506           /^X\(\/\/\)$/{
25507             s//\1/
25508             q
25509           }
25510           /^X\(\/\).*/{
25511             s//\1/
25512             q
25513           }
25514           s/.*/./; q'`
25515       test -d "$as_dir" && break
25516     done
25517     test -z "$as_dirs" || eval "mkdir $as_dirs"
25518   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25519 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25520    { (exit 1); exit 1; }; }; }
25521   ac_builddir=.
25522
25523 case "$ac_dir" in
25524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25525 *)
25526   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25527   # A ".." for each directory in $ac_dir_suffix.
25528   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25529   case $ac_top_builddir_sub in
25530   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25531   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25532   esac ;;
25533 esac
25534 ac_abs_top_builddir=$ac_pwd
25535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25536 # for backward compatibility:
25537 ac_top_builddir=$ac_top_build_prefix
25538
25539 case $srcdir in
25540   .)  # We are building in place.
25541     ac_srcdir=.
25542     ac_top_srcdir=$ac_top_builddir_sub
25543     ac_abs_top_srcdir=$ac_pwd ;;
25544   [\\/]* | ?:[\\/]* )  # Absolute name.
25545     ac_srcdir=$srcdir$ac_dir_suffix;
25546     ac_top_srcdir=$srcdir
25547     ac_abs_top_srcdir=$srcdir ;;
25548   *) # Relative name.
25549     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25550     ac_top_srcdir=$ac_top_build_prefix$srcdir
25551     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25552 esac
25553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25554
25555
25556   case $ac_mode in
25557   :F)
25558   #
25559   # CONFIG_FILE
25560   #
25561
25562   case $INSTALL in
25563   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25564   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25565   esac
25566   ac_MKDIR_P=$MKDIR_P
25567   case $MKDIR_P in
25568   [\\/$]* | ?:[\\/]* ) ;;
25569   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25570   esac
25571 _ACEOF
25572
25573 cat >>$CONFIG_STATUS <<\_ACEOF
25574 # If the template does not know about datarootdir, expand it.
25575 # FIXME: This hack should be removed a few years after 2.60.
25576 ac_datarootdir_hack=; ac_datarootdir_seen=
25577
25578 case `sed -n '/datarootdir/ {
25579   p
25580   q
25581 }
25582 /@datadir@/p
25583 /@docdir@/p
25584 /@infodir@/p
25585 /@localedir@/p
25586 /@mandir@/p
25587 ' $ac_file_inputs` in
25588 *datarootdir*) ac_datarootdir_seen=yes;;
25589 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25590   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25591 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25592 _ACEOF
25593 cat >>$CONFIG_STATUS <<_ACEOF
25594   ac_datarootdir_hack='
25595   s&@datadir@&$datadir&g
25596   s&@docdir@&$docdir&g
25597   s&@infodir@&$infodir&g
25598   s&@localedir@&$localedir&g
25599   s&@mandir@&$mandir&g
25600     s&\\\${datarootdir}&$datarootdir&g' ;;
25601 esac
25602 _ACEOF
25603
25604 # Neutralize VPATH when `$srcdir' = `.'.
25605 # Shell code in configure.ac might set extrasub.
25606 # FIXME: do we really want to maintain this feature?
25607 cat >>$CONFIG_STATUS <<_ACEOF
25608   sed "$ac_vpsub
25609 $extrasub
25610 _ACEOF
25611 cat >>$CONFIG_STATUS <<\_ACEOF
25612 :t
25613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25614 s&@configure_input@&$configure_input&;t t
25615 s&@top_builddir@&$ac_top_builddir_sub&;t t
25616 s&@srcdir@&$ac_srcdir&;t t
25617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25618 s&@top_srcdir@&$ac_top_srcdir&;t t
25619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25620 s&@builddir@&$ac_builddir&;t t
25621 s&@abs_builddir@&$ac_abs_builddir&;t t
25622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25623 s&@INSTALL@&$ac_INSTALL&;t t
25624 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25625 $ac_datarootdir_hack
25626 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25627
25628 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25629   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25630   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25631   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25632 which seems to be undefined.  Please make sure it is defined." >&5
25633 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25634 which seems to be undefined.  Please make sure it is defined." >&2;}
25635
25636   rm -f "$tmp/stdin"
25637   case $ac_file in
25638   -) cat "$tmp/out"; rm -f "$tmp/out";;
25639   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25640   esac
25641  ;;
25642   :H)
25643   #
25644   # CONFIG_HEADER
25645   #
25646 _ACEOF
25647
25648 # Transform confdefs.h into a sed script `conftest.defines', that
25649 # substitutes the proper values into config.h.in to produce config.h.
25650 rm -f conftest.defines conftest.tail
25651 # First, append a space to every undef/define line, to ease matching.
25652 echo 's/$/ /' >conftest.defines
25653 # Then, protect against being on the right side of a sed subst, or in
25654 # an unquoted here document, in config.status.  If some macros were
25655 # called several times there might be several #defines for the same
25656 # symbol, which is useless.  But do not sort them, since the last
25657 # AC_DEFINE must be honored.
25658 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25659 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25660 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25661 # PARAMS is the parameter list in the macro definition--in most cases, it's
25662 # just an empty string.
25663 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25664 ac_dB='\\)[      (].*,\\1define\\2'
25665 ac_dC=' '
25666 ac_dD=' ,'
25667
25668 uniq confdefs.h |
25669   sed -n '
25670         t rset
25671         :rset
25672         s/^[     ]*#[    ]*define[       ][      ]*//
25673         t ok
25674         d
25675         :ok
25676         s/[\\&,]/\\&/g
25677         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25678         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25679   ' >>conftest.defines
25680
25681 # Remove the space that was appended to ease matching.
25682 # Then replace #undef with comments.  This is necessary, for
25683 # example, in the case of _POSIX_SOURCE, which is predefined and required
25684 # on some systems where configure will not decide to define it.
25685 # (The regexp can be short, since the line contains either #define or #undef.)
25686 echo 's/ $//
25687 s,^[     #]*u.*,/* & */,' >>conftest.defines
25688
25689 # Break up conftest.defines:
25690 ac_max_sed_lines=50
25691
25692 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25693 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25694 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25695 # et cetera.
25696 ac_in='$ac_file_inputs'
25697 ac_out='"$tmp/out1"'
25698 ac_nxt='"$tmp/out2"'
25699
25700 while :
25701 do
25702   # Write a here document:
25703     cat >>$CONFIG_STATUS <<_ACEOF
25704     # First, check the format of the line:
25705     cat >"\$tmp/defines.sed" <<\\CEOF
25706 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25707 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25708 b
25709 :def
25710 _ACEOF
25711   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25712   echo 'CEOF
25713     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25714   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25715   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25716   grep . conftest.tail >/dev/null || break
25717   rm -f conftest.defines
25718   mv conftest.tail conftest.defines
25719 done
25720 rm -f conftest.defines conftest.tail
25721
25722 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25723 cat >>$CONFIG_STATUS <<\_ACEOF
25724   if test x"$ac_file" != x-; then
25725     echo "/* $configure_input  */" >"$tmp/config.h"
25726     cat "$ac_result" >>"$tmp/config.h"
25727     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25728       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25729 echo "$as_me: $ac_file is unchanged" >&6;}
25730     else
25731       rm -f $ac_file
25732       mv "$tmp/config.h" $ac_file
25733     fi
25734   else
25735     echo "/* $configure_input  */"
25736     cat "$ac_result"
25737   fi
25738   rm -f "$tmp/out12"
25739 # Compute $ac_file's index in $config_headers.
25740 _am_arg=$ac_file
25741 _am_stamp_count=1
25742 for _am_header in $config_headers :; do
25743   case $_am_header in
25744     $_am_arg | $_am_arg:* )
25745       break ;;
25746     * )
25747       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25748   esac
25749 done
25750 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25751 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25752          X"$_am_arg" : 'X\(//\)[^/]' \| \
25753          X"$_am_arg" : 'X\(//\)$' \| \
25754          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25755 echo X"$_am_arg" |
25756     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25757             s//\1/
25758             q
25759           }
25760           /^X\(\/\/\)[^/].*/{
25761             s//\1/
25762             q
25763           }
25764           /^X\(\/\/\)$/{
25765             s//\1/
25766             q
25767           }
25768           /^X\(\/\).*/{
25769             s//\1/
25770             q
25771           }
25772           s/.*/./; q'`/stamp-h$_am_stamp_count
25773  ;;
25774
25775   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25776 echo "$as_me: executing $ac_file commands" >&6;}
25777  ;;
25778   esac
25779
25780
25781   case $ac_file$ac_mode in
25782     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25783   # Strip MF so we end up with the name of the file.
25784   mf=`echo "$mf" | sed -e 's/:.*$//'`
25785   # Check whether this is an Automake generated Makefile or not.
25786   # We used to match only the files named `Makefile.in', but
25787   # some people rename them; so instead we look at the file content.
25788   # Grep'ing the first line is not enough: some people post-process
25789   # each Makefile.in and add a new line on top of each file to say so.
25790   # Grep'ing the whole file is not good either: AIX grep has a line
25791   # limit of 2048, but all sed's we know have understand at least 4000.
25792   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25793     dirpart=`$as_dirname -- "$mf" ||
25794 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25795          X"$mf" : 'X\(//\)[^/]' \| \
25796          X"$mf" : 'X\(//\)$' \| \
25797          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25798 echo X"$mf" |
25799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25800             s//\1/
25801             q
25802           }
25803           /^X\(\/\/\)[^/].*/{
25804             s//\1/
25805             q
25806           }
25807           /^X\(\/\/\)$/{
25808             s//\1/
25809             q
25810           }
25811           /^X\(\/\).*/{
25812             s//\1/
25813             q
25814           }
25815           s/.*/./; q'`
25816   else
25817     continue
25818   fi
25819   # Extract the definition of DEPDIR, am__include, and am__quote
25820   # from the Makefile without running `make'.
25821   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25822   test -z "$DEPDIR" && continue
25823   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25824   test -z "am__include" && continue
25825   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25826   # When using ansi2knr, U may be empty or an underscore; expand it
25827   U=`sed -n 's/^U = //p' < "$mf"`
25828   # Find all dependency output files, they are included files with
25829   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25830   # simplest approach to changing $(DEPDIR) to its actual value in the
25831   # expansion.
25832   for file in `sed -n "
25833     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25834        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25835     # Make sure the directory exists.
25836     test -f "$dirpart/$file" && continue
25837     fdir=`$as_dirname -- "$file" ||
25838 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25839          X"$file" : 'X\(//\)[^/]' \| \
25840          X"$file" : 'X\(//\)$' \| \
25841          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25842 echo X"$file" |
25843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25844             s//\1/
25845             q
25846           }
25847           /^X\(\/\/\)[^/].*/{
25848             s//\1/
25849             q
25850           }
25851           /^X\(\/\/\)$/{
25852             s//\1/
25853             q
25854           }
25855           /^X\(\/\).*/{
25856             s//\1/
25857             q
25858           }
25859           s/.*/./; q'`
25860     { as_dir=$dirpart/$fdir
25861   case $as_dir in #(
25862   -*) as_dir=./$as_dir;;
25863   esac
25864   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25865     as_dirs=
25866     while :; do
25867       case $as_dir in #(
25868       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25869       *) as_qdir=$as_dir;;
25870       esac
25871       as_dirs="'$as_qdir' $as_dirs"
25872       as_dir=`$as_dirname -- "$as_dir" ||
25873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25874          X"$as_dir" : 'X\(//\)[^/]' \| \
25875          X"$as_dir" : 'X\(//\)$' \| \
25876          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25877 echo X"$as_dir" |
25878     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25879             s//\1/
25880             q
25881           }
25882           /^X\(\/\/\)[^/].*/{
25883             s//\1/
25884             q
25885           }
25886           /^X\(\/\/\)$/{
25887             s//\1/
25888             q
25889           }
25890           /^X\(\/\).*/{
25891             s//\1/
25892             q
25893           }
25894           s/.*/./; q'`
25895       test -d "$as_dir" && break
25896     done
25897     test -z "$as_dirs" || eval "mkdir $as_dirs"
25898   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25899 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25900    { (exit 1); exit 1; }; }; }
25901     # echo "creating $dirpart/$file"
25902     echo '# dummy' > "$dirpart/$file"
25903   done
25904 done
25905  ;;
25906
25907   esac
25908 done # for ac_tag
25909
25910
25911 { (exit 0); exit 0; }
25912 _ACEOF
25913 chmod +x $CONFIG_STATUS
25914 ac_clean_files=$ac_clean_files_save
25915
25916
25917 # configure is writing to config.log, and then calls config.status.
25918 # config.status does its own redirection, appending to config.log.
25919 # Unfortunately, on DOS this fails, as config.log is still kept open
25920 # by configure, so config.status won't be able to write to it; its
25921 # output is simply discarded.  So we exec the FD to /dev/null,
25922 # effectively closing config.log, so it can be properly (re)opened and
25923 # appended to by config.status.  When coming back to configure, we
25924 # need to make the FD available again.
25925 if test "$no_create" != yes; then
25926   ac_cs_success=:
25927   ac_config_status_args=
25928   test "$silent" = yes &&
25929     ac_config_status_args="$ac_config_status_args --quiet"
25930   exec 5>/dev/null
25931   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25932   exec 5>>config.log
25933   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25934   # would make configure fail if this is the last instruction.
25935   $ac_cs_success || { (exit 1); exit 1; }
25936 fi
25937