Use gtest and gmock if installed.
[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 GTEST_LIBS
905 GMOCK_LIBS
906 LIBOBJS
907 LTLIBOBJS'
908 ac_subst_files=''
909       ac_precious_vars='build_alias
910 host_alias
911 target_alias
912 CC
913 CFLAGS
914 LDFLAGS
915 LIBS
916 CPPFLAGS
917 CPP
918 CXX
919 CXXFLAGS
920 CCC
921 CXXCPP
922 F77
923 FFLAGS'
924
925
926 # Initialize some variables set by options.
927 ac_init_help=
928 ac_init_version=false
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
945
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
971
972 ac_prev=
973 ac_dashdash=
974 for ac_option
975 do
976   # If the previous option needs an argument, assign it.
977   if test -n "$ac_prev"; then
978     eval $ac_prev=\$ac_option
979     ac_prev=
980     continue
981   fi
982
983   case $ac_option in
984   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985   *)    ac_optarg=yes ;;
986   esac
987
988   # Accept the important Cygnus configure options, so we can diagnose typos.
989
990   case $ac_dashdash$ac_option in
991   --)
992     ac_dashdash=yes ;;
993
994   -bindir | --bindir | --bindi | --bind | --bin | --bi)
995     ac_prev=bindir ;;
996   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997     bindir=$ac_optarg ;;
998
999   -build | --build | --buil | --bui | --bu)
1000     ac_prev=build_alias ;;
1001   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002     build_alias=$ac_optarg ;;
1003
1004   -cache-file | --cache-file | --cache-fil | --cache-fi \
1005   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006     ac_prev=cache_file ;;
1007   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009     cache_file=$ac_optarg ;;
1010
1011   --config-cache | -C)
1012     cache_file=config.cache ;;
1013
1014   -datadir | --datadir | --datadi | --datad)
1015     ac_prev=datadir ;;
1016   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017     datadir=$ac_optarg ;;
1018
1019   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020   | --dataroo | --dataro | --datar)
1021     ac_prev=datarootdir ;;
1022   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024     datarootdir=$ac_optarg ;;
1025
1026   -disable-* | --disable-*)
1027     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031    { (exit 1); exit 1; }; }
1032     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1033     eval enable_$ac_feature=no ;;
1034
1035   -docdir | --docdir | --docdi | --doc | --do)
1036     ac_prev=docdir ;;
1037   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038     docdir=$ac_optarg ;;
1039
1040   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041     ac_prev=dvidir ;;
1042   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043     dvidir=$ac_optarg ;;
1044
1045   -enable-* | --enable-*)
1046     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050    { (exit 1); exit 1; }; }
1051     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052     eval enable_$ac_feature=\$ac_optarg ;;
1053
1054   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056   | --exec | --exe | --ex)
1057     ac_prev=exec_prefix ;;
1058   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060   | --exec=* | --exe=* | --ex=*)
1061     exec_prefix=$ac_optarg ;;
1062
1063   -gas | --gas | --ga | --g)
1064     # Obsolete; use --with-gas.
1065     with_gas=yes ;;
1066
1067   -help | --help | --hel | --he | -h)
1068     ac_init_help=long ;;
1069   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070     ac_init_help=recursive ;;
1071   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072     ac_init_help=short ;;
1073
1074   -host | --host | --hos | --ho)
1075     ac_prev=host_alias ;;
1076   -host=* | --host=* | --hos=* | --ho=*)
1077     host_alias=$ac_optarg ;;
1078
1079   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080     ac_prev=htmldir ;;
1081   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082   | --ht=*)
1083     htmldir=$ac_optarg ;;
1084
1085   -includedir | --includedir | --includedi | --included | --include \
1086   | --includ | --inclu | --incl | --inc)
1087     ac_prev=includedir ;;
1088   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089   | --includ=* | --inclu=* | --incl=* | --inc=*)
1090     includedir=$ac_optarg ;;
1091
1092   -infodir | --infodir | --infodi | --infod | --info | --inf)
1093     ac_prev=infodir ;;
1094   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095     infodir=$ac_optarg ;;
1096
1097   -libdir | --libdir | --libdi | --libd)
1098     ac_prev=libdir ;;
1099   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100     libdir=$ac_optarg ;;
1101
1102   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103   | --libexe | --libex | --libe)
1104     ac_prev=libexecdir ;;
1105   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106   | --libexe=* | --libex=* | --libe=*)
1107     libexecdir=$ac_optarg ;;
1108
1109   -localedir | --localedir | --localedi | --localed | --locale)
1110     ac_prev=localedir ;;
1111   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112     localedir=$ac_optarg ;;
1113
1114   -localstatedir | --localstatedir | --localstatedi | --localstated \
1115   | --localstate | --localstat | --localsta | --localst | --locals)
1116     ac_prev=localstatedir ;;
1117   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119     localstatedir=$ac_optarg ;;
1120
1121   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122     ac_prev=mandir ;;
1123   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124     mandir=$ac_optarg ;;
1125
1126   -nfp | --nfp | --nf)
1127     # Obsolete; use --without-fp.
1128     with_fp=no ;;
1129
1130   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131   | --no-cr | --no-c | -n)
1132     no_create=yes ;;
1133
1134   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136     no_recursion=yes ;;
1137
1138   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140   | --oldin | --oldi | --old | --ol | --o)
1141     ac_prev=oldincludedir ;;
1142   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145     oldincludedir=$ac_optarg ;;
1146
1147   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148     ac_prev=prefix ;;
1149   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150     prefix=$ac_optarg ;;
1151
1152   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153   | --program-pre | --program-pr | --program-p)
1154     ac_prev=program_prefix ;;
1155   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157     program_prefix=$ac_optarg ;;
1158
1159   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160   | --program-suf | --program-su | --program-s)
1161     ac_prev=program_suffix ;;
1162   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164     program_suffix=$ac_optarg ;;
1165
1166   -program-transform-name | --program-transform-name \
1167   | --program-transform-nam | --program-transform-na \
1168   | --program-transform-n | --program-transform- \
1169   | --program-transform | --program-transfor \
1170   | --program-transfo | --program-transf \
1171   | --program-trans | --program-tran \
1172   | --progr-tra | --program-tr | --program-t)
1173     ac_prev=program_transform_name ;;
1174   -program-transform-name=* | --program-transform-name=* \
1175   | --program-transform-nam=* | --program-transform-na=* \
1176   | --program-transform-n=* | --program-transform-=* \
1177   | --program-transform=* | --program-transfor=* \
1178   | --program-transfo=* | --program-transf=* \
1179   | --program-trans=* | --program-tran=* \
1180   | --progr-tra=* | --program-tr=* | --program-t=*)
1181     program_transform_name=$ac_optarg ;;
1182
1183   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184     ac_prev=pdfdir ;;
1185   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186     pdfdir=$ac_optarg ;;
1187
1188   -psdir | --psdir | --psdi | --psd | --ps)
1189     ac_prev=psdir ;;
1190   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191     psdir=$ac_optarg ;;
1192
1193   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194   | -silent | --silent | --silen | --sile | --sil)
1195     silent=yes ;;
1196
1197   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198     ac_prev=sbindir ;;
1199   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200   | --sbi=* | --sb=*)
1201     sbindir=$ac_optarg ;;
1202
1203   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205   | --sharedst | --shareds | --shared | --share | --shar \
1206   | --sha | --sh)
1207     ac_prev=sharedstatedir ;;
1208   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211   | --sha=* | --sh=*)
1212     sharedstatedir=$ac_optarg ;;
1213
1214   -site | --site | --sit)
1215     ac_prev=site ;;
1216   -site=* | --site=* | --sit=*)
1217     site=$ac_optarg ;;
1218
1219   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220     ac_prev=srcdir ;;
1221   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222     srcdir=$ac_optarg ;;
1223
1224   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225   | --syscon | --sysco | --sysc | --sys | --sy)
1226     ac_prev=sysconfdir ;;
1227   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229     sysconfdir=$ac_optarg ;;
1230
1231   -target | --target | --targe | --targ | --tar | --ta | --t)
1232     ac_prev=target_alias ;;
1233   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234     target_alias=$ac_optarg ;;
1235
1236   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237     verbose=yes ;;
1238
1239   -version | --version | --versio | --versi | --vers | -V)
1240     ac_init_version=: ;;
1241
1242   -with-* | --with-*)
1243     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244     # Reject names that are not valid shell variable names.
1245     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246       { echo "$as_me: error: invalid package name: $ac_package" >&2
1247    { (exit 1); exit 1; }; }
1248     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249     eval with_$ac_package=\$ac_optarg ;;
1250
1251   -without-* | --without-*)
1252     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255       { echo "$as_me: error: invalid package name: $ac_package" >&2
1256    { (exit 1); exit 1; }; }
1257     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1258     eval with_$ac_package=no ;;
1259
1260   --x)
1261     # Obsolete; use --with-x.
1262     with_x=yes ;;
1263
1264   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265   | --x-incl | --x-inc | --x-in | --x-i)
1266     ac_prev=x_includes ;;
1267   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269     x_includes=$ac_optarg ;;
1270
1271   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273     ac_prev=x_libraries ;;
1274   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276     x_libraries=$ac_optarg ;;
1277
1278   -*) { echo "$as_me: error: unrecognized option: $ac_option
1279 Try \`$0 --help' for more information." >&2
1280    { (exit 1); exit 1; }; }
1281     ;;
1282
1283   *=*)
1284     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285     # Reject names that are not valid shell variable names.
1286     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1287       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1288    { (exit 1); exit 1; }; }
1289     eval $ac_envvar=\$ac_optarg
1290     export $ac_envvar ;;
1291
1292   *)
1293     # FIXME: should be removed in autoconf 3.0.
1294     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298     ;;
1299
1300   esac
1301 done
1302
1303 if test -n "$ac_prev"; then
1304   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305   { echo "$as_me: error: missing argument to $ac_option" >&2
1306    { (exit 1); exit 1; }; }
1307 fi
1308
1309 # Be sure to have absolute directory names.
1310 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311                 datadir sysconfdir sharedstatedir localstatedir includedir \
1312                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313                 libdir localedir mandir
1314 do
1315   eval ac_val=\$$ac_var
1316   case $ac_val in
1317     [\\/$]* | ?:[\\/]* )  continue;;
1318     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319   esac
1320   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1321    { (exit 1); exit 1; }; }
1322 done
1323
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1327 build=$build_alias
1328 host=$host_alias
1329 target=$target_alias
1330
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x; then
1333   if test "x$build_alias" = x; then
1334     cross_compiling=maybe
1335     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1336     If a cross compiler is detected then cross compile mode will be used." >&2
1337   elif test "x$build_alias" != "x$host_alias"; then
1338     cross_compiling=yes
1339   fi
1340 fi
1341
1342 ac_tool_prefix=
1343 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344
1345 test "$silent" = yes && exec 6>/dev/null
1346
1347
1348 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di=`ls -di .` &&
1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1351   { echo "$as_me: error: Working directory cannot be determined" >&2
1352    { (exit 1); exit 1; }; }
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354   { echo "$as_me: error: pwd does not report name of working directory" >&2
1355    { (exit 1); exit 1; }; }
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360   ac_srcdir_defaulted=yes
1361   # Try the directory containing this script, then the parent directory.
1362   ac_confdir=`$as_dirname -- "$0" ||
1363 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364          X"$0" : 'X\(//\)[^/]' \| \
1365          X"$0" : 'X\(//\)$' \| \
1366          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1367 echo X"$0" |
1368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\/\)[^/].*/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)$/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\).*/{
1381             s//\1/
1382             q
1383           }
1384           s/.*/./; q'`
1385   srcdir=$ac_confdir
1386   if test ! -r "$srcdir/$ac_unique_file"; then
1387     srcdir=..
1388   fi
1389 else
1390   ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1395    { (exit 1); exit 1; }; }
1396 fi
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1400    { (exit 1); exit 1; }; }
1401         pwd)`
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404   srcdir=.
1405 fi
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1409 case $srcdir in
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 esac
1412 for ac_var in $ac_precious_vars; do
1413   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414   eval ac_env_${ac_var}_value=\$${ac_var}
1415   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417 done
1418
1419 #
1420 # Report the --help message.
1421 #
1422 if test "$ac_init_help" = "long"; then
1423   # Omit some internal or obsolete options to make the list less imposing.
1424   # This message is too long to be a string in the A/UX 3.1 sh.
1425   cat <<_ACEOF
1426 \`configure' configures glog 0.1.2 to adapt to many kinds of systems.
1427
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1429
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE.  See below for descriptions of some of the useful variables.
1432
1433 Defaults for the options are specified in brackets.
1434
1435 Configuration:
1436   -h, --help              display this help and exit
1437       --help=short        display options specific to this package
1438       --help=recursive    display the short help of all the included packages
1439   -V, --version           display version information and exit
1440   -q, --quiet, --silent   do not print \`checking...' messages
1441       --cache-file=FILE   cache test results in FILE [disabled]
1442   -C, --config-cache      alias for \`--cache-file=config.cache'
1443   -n, --no-create         do not create output files
1444       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1445
1446 Installation directories:
1447   --prefix=PREFIX         install architecture-independent files in PREFIX
1448                           [$ac_default_prefix]
1449   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1450                           [PREFIX]
1451
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1456
1457 For better control, use the options below.
1458
1459 Fine tuning of the installation directories:
1460   --bindir=DIR           user executables [EPREFIX/bin]
1461   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1462   --libexecdir=DIR       program executables [EPREFIX/libexec]
1463   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1464   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1465   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1466   --libdir=DIR           object code libraries [EPREFIX/lib]
1467   --includedir=DIR       C header files [PREFIX/include]
1468   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1469   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1470   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1471   --infodir=DIR          info documentation [DATAROOTDIR/info]
1472   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1473   --mandir=DIR           man documentation [DATAROOTDIR/man]
1474   --docdir=DIR           documentation root [DATAROOTDIR/doc/glog]
1475   --htmldir=DIR          html documentation [DOCDIR]
1476   --dvidir=DIR           dvi documentation [DOCDIR]
1477   --pdfdir=DIR           pdf documentation [DOCDIR]
1478   --psdir=DIR            ps documentation [DOCDIR]
1479 _ACEOF
1480
1481   cat <<\_ACEOF
1482
1483 Program names:
1484   --program-prefix=PREFIX            prepend PREFIX to installed program names
1485   --program-suffix=SUFFIX            append SUFFIX to installed program names
1486   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1487
1488 System types:
1489   --build=BUILD     configure for building on BUILD [guessed]
1490   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1491 _ACEOF
1492 fi
1493
1494 if test -n "$ac_init_help"; then
1495   case $ac_init_help in
1496      short | recursive ) echo "Configuration of glog 0.1.2:";;
1497    esac
1498   cat <<\_ACEOF
1499
1500 Optional Features:
1501   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1502   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1503   --disable-dependency-tracking  speeds up one-time build
1504   --enable-dependency-tracking   do not reject slow dependency extractors
1505   --enable-shared[=PKGS]  build shared libraries [default=yes]
1506   --enable-static[=PKGS]  build static libraries [default=yes]
1507   --enable-fast-install[=PKGS]
1508                           optimize for fast installation [default=yes]
1509   --disable-libtool-lock  avoid locking (might break parallel builds)
1510   --enable-frame-pointers On x86_64 systems, compile with
1511                           -fno-omit-frame-pointer (see INSTALL)
1512   --enable-namespace=FOO to define these Google
1513                              classes in the FOO namespace. --disable-namespace
1514                              to define them in the global namespace. Default
1515                              is to define them in namespace google.
1516
1517 Optional Packages:
1518   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1519   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1520   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1521   --with-pic              try to use only PIC/non-PIC objects [default=use
1522                           both]
1523   --with-tags[=TAGS]      include additional configurations [automatic]
1524
1525 Some influential environment variables:
1526   CC          C compiler command
1527   CFLAGS      C compiler flags
1528   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1529               nonstandard directory <lib dir>
1530   LIBS        libraries to pass to the linker, e.g. -l<library>
1531   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1532               you have headers in a nonstandard directory <include dir>
1533   CPP         C preprocessor
1534   CXX         C++ compiler command
1535   CXXFLAGS    C++ compiler flags
1536   CXXCPP      C++ preprocessor
1537   F77         Fortran 77 compiler command
1538   FFLAGS      Fortran 77 compiler flags
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 Report bugs to <opensource@google.com>.
1544 _ACEOF
1545 ac_status=$?
1546 fi
1547
1548 if test "$ac_init_help" = "recursive"; then
1549   # If there are subdirs, report their specific --help.
1550   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551     test -d "$ac_dir" || continue
1552     ac_builddir=.
1553
1554 case "$ac_dir" in
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *)
1557   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1558   # A ".." for each directory in $ac_dir_suffix.
1559   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1560   case $ac_top_builddir_sub in
1561   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563   esac ;;
1564 esac
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1569
1570 case $srcdir in
1571   .)  # We are building in place.
1572     ac_srcdir=.
1573     ac_top_srcdir=$ac_top_builddir_sub
1574     ac_abs_top_srcdir=$ac_pwd ;;
1575   [\\/]* | ?:[\\/]* )  # Absolute name.
1576     ac_srcdir=$srcdir$ac_dir_suffix;
1577     ac_top_srcdir=$srcdir
1578     ac_abs_top_srcdir=$srcdir ;;
1579   *) # Relative name.
1580     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581     ac_top_srcdir=$ac_top_build_prefix$srcdir
1582     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 esac
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586     cd "$ac_dir" || { ac_status=$?; continue; }
1587     # Check for guested configure.
1588     if test -f "$ac_srcdir/configure.gnu"; then
1589       echo &&
1590       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591     elif test -f "$ac_srcdir/configure"; then
1592       echo &&
1593       $SHELL "$ac_srcdir/configure" --help=recursive
1594     else
1595       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596     fi || ac_status=$?
1597     cd "$ac_pwd" || { ac_status=$?; break; }
1598   done
1599 fi
1600
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1603   cat <<\_ACEOF
1604 glog configure 0.1.2
1605 generated by GNU Autoconf 2.61
1606
1607 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1608 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611 _ACEOF
1612   exit
1613 fi
1614 cat >config.log <<_ACEOF
1615 This file contains any messages produced by compilers while
1616 running configure, to aid debugging if configure makes a mistake.
1617
1618 It was created by glog $as_me 0.1.2, which was
1619 generated by GNU Autoconf 2.61.  Invocation command line was
1620
1621   $ $0 $@
1622
1623 _ACEOF
1624 exec 5>>config.log
1625 {
1626 cat <<_ASUNAME
1627 ## --------- ##
1628 ## Platform. ##
1629 ## --------- ##
1630
1631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1636
1637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1638 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1639
1640 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1641 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1643 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1644 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1645 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1646 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1647
1648 _ASUNAME
1649
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651 for as_dir in $PATH
1652 do
1653   IFS=$as_save_IFS
1654   test -z "$as_dir" && as_dir=.
1655   echo "PATH: $as_dir"
1656 done
1657 IFS=$as_save_IFS
1658
1659 } >&5
1660
1661 cat >&5 <<_ACEOF
1662
1663
1664 ## ----------- ##
1665 ## Core tests. ##
1666 ## ----------- ##
1667
1668 _ACEOF
1669
1670
1671 # Keep a trace of the command line.
1672 # Strip out --no-create and --no-recursion so they do not pile up.
1673 # Strip out --silent because we don't want to record it for future runs.
1674 # Also quote any args containing shell meta-characters.
1675 # Make two passes to allow for proper duplicate-argument suppression.
1676 ac_configure_args=
1677 ac_configure_args0=
1678 ac_configure_args1=
1679 ac_must_keep_next=false
1680 for ac_pass in 1 2
1681 do
1682   for ac_arg
1683   do
1684     case $ac_arg in
1685     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1686     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1687     | -silent | --silent | --silen | --sile | --sil)
1688       continue ;;
1689     *\'*)
1690       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1691     esac
1692     case $ac_pass in
1693     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1694     2)
1695       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1696       if test $ac_must_keep_next = true; then
1697         ac_must_keep_next=false # Got value, back to normal.
1698       else
1699         case $ac_arg in
1700           *=* | --config-cache | -C | -disable-* | --disable-* \
1701           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1702           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1703           | -with-* | --with-* | -without-* | --without-* | --x)
1704             case "$ac_configure_args0 " in
1705               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1706             esac
1707             ;;
1708           -* ) ac_must_keep_next=true ;;
1709         esac
1710       fi
1711       ac_configure_args="$ac_configure_args '$ac_arg'"
1712       ;;
1713     esac
1714   done
1715 done
1716 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1717 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1718
1719 # When interrupted or exit'd, cleanup temporary files, and complete
1720 # config.log.  We remove comments because anyway the quotes in there
1721 # would cause problems or look ugly.
1722 # WARNING: Use '\'' to represent an apostrophe within the trap.
1723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1724 trap 'exit_status=$?
1725   # Save into config.log some information that might help in debugging.
1726   {
1727     echo
1728
1729     cat <<\_ASBOX
1730 ## ---------------- ##
1731 ## Cache variables. ##
1732 ## ---------------- ##
1733 _ASBOX
1734     echo
1735     # The following way of writing the cache mishandles newlines in values,
1736 (
1737   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1738     eval ac_val=\$$ac_var
1739     case $ac_val in #(
1740     *${as_nl}*)
1741       case $ac_var in #(
1742       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1743 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1744       esac
1745       case $ac_var in #(
1746       _ | IFS | as_nl) ;; #(
1747       *) $as_unset $ac_var ;;
1748       esac ;;
1749     esac
1750   done
1751   (set) 2>&1 |
1752     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1753     *${as_nl}ac_space=\ *)
1754       sed -n \
1755         "s/'\''/'\''\\\\'\'''\''/g;
1756           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1757       ;; #(
1758     *)
1759       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1760       ;;
1761     esac |
1762     sort
1763 )
1764     echo
1765
1766     cat <<\_ASBOX
1767 ## ----------------- ##
1768 ## Output variables. ##
1769 ## ----------------- ##
1770 _ASBOX
1771     echo
1772     for ac_var in $ac_subst_vars
1773     do
1774       eval ac_val=\$$ac_var
1775       case $ac_val in
1776       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777       esac
1778       echo "$ac_var='\''$ac_val'\''"
1779     done | sort
1780     echo
1781
1782     if test -n "$ac_subst_files"; then
1783       cat <<\_ASBOX
1784 ## ------------------- ##
1785 ## File substitutions. ##
1786 ## ------------------- ##
1787 _ASBOX
1788       echo
1789       for ac_var in $ac_subst_files
1790       do
1791         eval ac_val=\$$ac_var
1792         case $ac_val in
1793         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794         esac
1795         echo "$ac_var='\''$ac_val'\''"
1796       done | sort
1797       echo
1798     fi
1799
1800     if test -s confdefs.h; then
1801       cat <<\_ASBOX
1802 ## ----------- ##
1803 ## confdefs.h. ##
1804 ## ----------- ##
1805 _ASBOX
1806       echo
1807       cat confdefs.h
1808       echo
1809     fi
1810     test "$ac_signal" != 0 &&
1811       echo "$as_me: caught signal $ac_signal"
1812     echo "$as_me: exit $exit_status"
1813   } >&5
1814   rm -f core *.core core.conftest.* &&
1815     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1816     exit $exit_status
1817 ' 0
1818 for ac_signal in 1 2 13 15; do
1819   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1820 done
1821 ac_signal=0
1822
1823 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1824 rm -f -r conftest* confdefs.h
1825
1826 # Predefined preprocessor variables.
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_NAME "$PACKAGE_NAME"
1830 _ACEOF
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1835 _ACEOF
1836
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1840 _ACEOF
1841
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_STRING "$PACKAGE_STRING"
1845 _ACEOF
1846
1847
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1850 _ACEOF
1851
1852
1853 # Let the site file select an alternate cache file if it wants to.
1854 # Prefer explicitly selected file to automatically selected ones.
1855 if test -n "$CONFIG_SITE"; then
1856   set x "$CONFIG_SITE"
1857 elif test "x$prefix" != xNONE; then
1858   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1859 else
1860   set x "$ac_default_prefix/share/config.site" \
1861         "$ac_default_prefix/etc/config.site"
1862 fi
1863 shift
1864 for ac_site_file
1865 do
1866   if test -r "$ac_site_file"; then
1867     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1868 echo "$as_me: loading site script $ac_site_file" >&6;}
1869     sed 's/^/| /' "$ac_site_file" >&5
1870     . "$ac_site_file"
1871   fi
1872 done
1873
1874 if test -r "$cache_file"; then
1875   # Some versions of bash will fail to source /dev/null (special
1876   # files actually), so we avoid doing that.
1877   if test -f "$cache_file"; then
1878     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1879 echo "$as_me: loading cache $cache_file" >&6;}
1880     case $cache_file in
1881       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882       *)                      . "./$cache_file";;
1883     esac
1884   fi
1885 else
1886   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1887 echo "$as_me: creating cache $cache_file" >&6;}
1888   >$cache_file
1889 fi
1890
1891 # Check that the precious variables saved in the cache have kept the same
1892 # value.
1893 ac_cache_corrupted=false
1894 for ac_var in $ac_precious_vars; do
1895   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1896   eval ac_new_set=\$ac_env_${ac_var}_set
1897   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1898   eval ac_new_val=\$ac_env_${ac_var}_value
1899   case $ac_old_set,$ac_new_set in
1900     set,)
1901       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1902 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1903       ac_cache_corrupted=: ;;
1904     ,set)
1905       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1906 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1907       ac_cache_corrupted=: ;;
1908     ,);;
1909     *)
1910       if test "x$ac_old_val" != "x$ac_new_val"; then
1911         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1913         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1914 echo "$as_me:   former value:  $ac_old_val" >&2;}
1915         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1916 echo "$as_me:   current value: $ac_new_val" >&2;}
1917         ac_cache_corrupted=:
1918       fi;;
1919   esac
1920   # Pass precious variables to config.status.
1921   if test "$ac_new_set" = set; then
1922     case $ac_new_val in
1923     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1924     *) ac_arg=$ac_var=$ac_new_val ;;
1925     esac
1926     case " $ac_configure_args " in
1927       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1928       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1929     esac
1930   fi
1931 done
1932 if $ac_cache_corrupted; then
1933   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1934 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1935   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1936 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1937    { (exit 1); exit 1; }; }
1938 fi
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964 ac_ext=c
1965 ac_cpp='$CPP $CPPFLAGS'
1966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969
1970
1971 # The argument here is just something that should be in the current directory
1972 # (for sanity checking)
1973
1974 am__api_version='1.10'
1975
1976 ac_aux_dir=
1977 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1978   if test -f "$ac_dir/install-sh"; then
1979     ac_aux_dir=$ac_dir
1980     ac_install_sh="$ac_aux_dir/install-sh -c"
1981     break
1982   elif test -f "$ac_dir/install.sh"; then
1983     ac_aux_dir=$ac_dir
1984     ac_install_sh="$ac_aux_dir/install.sh -c"
1985     break
1986   elif test -f "$ac_dir/shtool"; then
1987     ac_aux_dir=$ac_dir
1988     ac_install_sh="$ac_aux_dir/shtool install -c"
1989     break
1990   fi
1991 done
1992 if test -z "$ac_aux_dir"; then
1993   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1994 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 # These three variables are undocumented and unsupported,
1999 # and are intended to be withdrawn in a future Autoconf release.
2000 # They can cause serious problems if a builder's source tree is in a directory
2001 # whose full name contains unusual characters.
2002 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2003 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2004 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2005
2006
2007 # Find a good install program.  We prefer a C program (faster),
2008 # so one script is as good as another.  But avoid the broken or
2009 # incompatible versions:
2010 # SysV /etc/install, /usr/sbin/install
2011 # SunOS /usr/etc/install
2012 # IRIX /sbin/install
2013 # AIX /bin/install
2014 # AmigaOS /C/install, which installs bootblocks on floppy discs
2015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2018 # OS/2's system install, which has a completely different semantic
2019 # ./install, which can be erroneously created by make from ./install.sh.
2020 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2021 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2022 if test -z "$INSTALL"; then
2023 if test "${ac_cv_path_install+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029   IFS=$as_save_IFS
2030   test -z "$as_dir" && as_dir=.
2031   # Account for people who put trailing slashes in PATH elements.
2032 case $as_dir/ in
2033   ./ | .// | /cC/* | \
2034   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2035   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2036   /usr/ucb/* ) ;;
2037   *)
2038     # OSF1 and SCO ODT 3.0 have their own names for install.
2039     # Don't use installbsd from OSF since it installs stuff as root
2040     # by default.
2041     for ac_prog in ginstall scoinst install; do
2042       for ac_exec_ext in '' $ac_executable_extensions; do
2043         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2044           if test $ac_prog = install &&
2045             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046             # AIX install.  It has an incompatible calling convention.
2047             :
2048           elif test $ac_prog = install &&
2049             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2050             # program-specific install script used by HP pwplus--don't use.
2051             :
2052           else
2053             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2054             break 3
2055           fi
2056         fi
2057       done
2058     done
2059     ;;
2060 esac
2061 done
2062 IFS=$as_save_IFS
2063
2064
2065 fi
2066   if test "${ac_cv_path_install+set}" = set; then
2067     INSTALL=$ac_cv_path_install
2068   else
2069     # As a last resort, use the slow shell script.  Don't cache a
2070     # value for INSTALL within a source directory, because that will
2071     # break other packages using the cache if that directory is
2072     # removed, or if the value is a relative name.
2073     INSTALL=$ac_install_sh
2074   fi
2075 fi
2076 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2077 echo "${ECHO_T}$INSTALL" >&6; }
2078
2079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2080 # It thinks the first close brace ends the variable substitution.
2081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2082
2083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2084
2085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2086
2087 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2088 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2089 # Just in case
2090 sleep 1
2091 echo timestamp > conftest.file
2092 # Do `set' in a subshell so we don't clobber the current shell's
2093 # arguments.  Must try -L first in case configure is actually a
2094 # symlink; some systems play weird games with the mod time of symlinks
2095 # (eg FreeBSD returns the mod time of the symlink's containing
2096 # directory).
2097 if (
2098    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2099    if test "$*" = "X"; then
2100       # -L didn't work.
2101       set X `ls -t $srcdir/configure conftest.file`
2102    fi
2103    rm -f conftest.file
2104    if test "$*" != "X $srcdir/configure conftest.file" \
2105       && test "$*" != "X conftest.file $srcdir/configure"; then
2106
2107       # If neither matched, then we have a broken ls.  This can happen
2108       # if, for instance, CONFIG_SHELL is bash and it inherits a
2109       # broken ls alias from the environment.  This has actually
2110       # happened.  Such a system could not be considered "sane".
2111       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2112 alias in your environment" >&5
2113 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2114 alias in your environment" >&2;}
2115    { (exit 1); exit 1; }; }
2116    fi
2117
2118    test "$2" = conftest.file
2119    )
2120 then
2121    # Ok.
2122    :
2123 else
2124    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2125 Check your system clock" >&5
2126 echo "$as_me: error: newly created file is older than distributed files!
2127 Check your system clock" >&2;}
2128    { (exit 1); exit 1; }; }
2129 fi
2130 { echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6; }
2132 test "$program_prefix" != NONE &&
2133   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2134 # Use a double $ so make ignores it.
2135 test "$program_suffix" != NONE &&
2136   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2137 # Double any \ or $.  echo might interpret backslashes.
2138 # By default was `s,x,x', remove it if useless.
2139 cat <<\_ACEOF >conftest.sed
2140 s/[\\$]/&&/g;s/;s,x,x,$//
2141 _ACEOF
2142 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2143 rm -f conftest.sed
2144
2145 # expand $ac_aux_dir to an absolute path
2146 am_aux_dir=`cd $ac_aux_dir && pwd`
2147
2148 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2149 # Use eval to expand $SHELL
2150 if eval "$MISSING --run true"; then
2151   am_missing_run="$MISSING --run "
2152 else
2153   am_missing_run=
2154   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2155 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2156 fi
2157
2158 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2159 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2160 if test -z "$MKDIR_P"; then
2161   if test "${ac_cv_path_mkdir+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2166 do
2167   IFS=$as_save_IFS
2168   test -z "$as_dir" && as_dir=.
2169   for ac_prog in mkdir gmkdir; do
2170          for ac_exec_ext in '' $ac_executable_extensions; do
2171            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2172            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2173              'mkdir (GNU coreutils) '* | \
2174              'mkdir (coreutils) '* | \
2175              'mkdir (fileutils) '4.1*)
2176                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2177                break 3;;
2178            esac
2179          done
2180        done
2181 done
2182 IFS=$as_save_IFS
2183
2184 fi
2185
2186   if test "${ac_cv_path_mkdir+set}" = set; then
2187     MKDIR_P="$ac_cv_path_mkdir -p"
2188   else
2189     # As a last resort, use the slow shell script.  Don't cache a
2190     # value for MKDIR_P within a source directory, because that will
2191     # break other packages using the cache if that directory is
2192     # removed, or if the value is a relative name.
2193     test -d ./--version && rmdir ./--version
2194     MKDIR_P="$ac_install_sh -d"
2195   fi
2196 fi
2197 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2198 echo "${ECHO_T}$MKDIR_P" >&6; }
2199
2200 mkdir_p="$MKDIR_P"
2201 case $mkdir_p in
2202   [\\/$]* | ?:[\\/]*) ;;
2203   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2204 esac
2205
2206 for ac_prog in gawk mawk nawk awk
2207 do
2208   # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy $ac_prog; ac_word=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_AWK+set}" = set; then
2213   echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215   if test -n "$AWK"; then
2216   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221   IFS=$as_save_IFS
2222   test -z "$as_dir" && as_dir=.
2223   for ac_exec_ext in '' $ac_executable_extensions; do
2224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225     ac_cv_prog_AWK="$ac_prog"
2226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227     break 2
2228   fi
2229 done
2230 done
2231 IFS=$as_save_IFS
2232
2233 fi
2234 fi
2235 AWK=$ac_cv_prog_AWK
2236 if test -n "$AWK"; then
2237   { echo "$as_me:$LINENO: result: $AWK" >&5
2238 echo "${ECHO_T}$AWK" >&6; }
2239 else
2240   { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2242 fi
2243
2244
2245   test -n "$AWK" && break
2246 done
2247
2248 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2250 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   cat >conftest.make <<\_ACEOF
2255 SHELL = /bin/sh
2256 all:
2257         @echo '@@@%%%=$(MAKE)=@@@%%%'
2258 _ACEOF
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2261   *@@@%%%=?*=@@@%%%*)
2262     eval ac_cv_prog_make_${ac_make}_set=yes;;
2263   *)
2264     eval ac_cv_prog_make_${ac_make}_set=no;;
2265 esac
2266 rm -f conftest.make
2267 fi
2268 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2269   { echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6; }
2271   SET_MAKE=
2272 else
2273   { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275   SET_MAKE="MAKE=${MAKE-make}"
2276 fi
2277
2278 rm -rf .tst 2>/dev/null
2279 mkdir .tst 2>/dev/null
2280 if test -d .tst; then
2281   am__leading_dot=.
2282 else
2283   am__leading_dot=_
2284 fi
2285 rmdir .tst 2>/dev/null
2286
2287 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2288   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2289   # is not polluted with repeated "-I."
2290   am__isrc=' -I$(srcdir)'
2291   # test to see if srcdir already configured
2292   if test -f $srcdir/config.status; then
2293     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2294 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2295    { (exit 1); exit 1; }; }
2296   fi
2297 fi
2298
2299 # test whether we have cygpath
2300 if test -z "$CYGPATH_W"; then
2301   if (cygpath --version) >/dev/null 2>/dev/null; then
2302     CYGPATH_W='cygpath -w'
2303   else
2304     CYGPATH_W=echo
2305   fi
2306 fi
2307
2308
2309 # Define the identity of the package.
2310  PACKAGE='glog'
2311  VERSION='0.1.2'
2312
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE "$PACKAGE"
2316 _ACEOF
2317
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define VERSION "$VERSION"
2321 _ACEOF
2322
2323 # Some tools Automake needs.
2324
2325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2326
2327
2328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2329
2330
2331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2332
2333
2334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2335
2336
2337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2338
2339 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2340
2341 # Installed binaries are usually stripped using `strip' when the user
2342 # run `make install-strip'.  However `strip' might not be the right
2343 # tool to use in cross-compilation environments, therefore Automake
2344 # will honor the `STRIP' environment variable to overrule this program.
2345 if test "$cross_compiling" != no; then
2346   if test -n "$ac_tool_prefix"; then
2347   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}strip; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_STRIP+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   if test -n "$STRIP"; then
2355   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360   IFS=$as_save_IFS
2361   test -z "$as_dir" && as_dir=.
2362   for ac_exec_ext in '' $ac_executable_extensions; do
2363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366     break 2
2367   fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 fi
2373 fi
2374 STRIP=$ac_cv_prog_STRIP
2375 if test -n "$STRIP"; then
2376   { echo "$as_me:$LINENO: result: $STRIP" >&5
2377 echo "${ECHO_T}$STRIP" >&6; }
2378 else
2379   { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2381 fi
2382
2383
2384 fi
2385 if test -z "$ac_cv_prog_STRIP"; then
2386   ac_ct_STRIP=$STRIP
2387   # Extract the first word of "strip", so it can be a program name with args.
2388 set dummy strip; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   if test -n "$ac_ct_STRIP"; then
2395   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400   IFS=$as_save_IFS
2401   test -z "$as_dir" && as_dir=.
2402   for ac_exec_ext in '' $ac_executable_extensions; do
2403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404     ac_cv_prog_ac_ct_STRIP="strip"
2405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406     break 2
2407   fi
2408 done
2409 done
2410 IFS=$as_save_IFS
2411
2412 fi
2413 fi
2414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415 if test -n "$ac_ct_STRIP"; then
2416   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2418 else
2419   { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2421 fi
2422
2423   if test "x$ac_ct_STRIP" = x; then
2424     STRIP=":"
2425   else
2426     case $cross_compiling:$ac_tool_warned in
2427 yes:)
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet.  If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet.  If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2435 esac
2436     STRIP=$ac_ct_STRIP
2437   fi
2438 else
2439   STRIP="$ac_cv_prog_STRIP"
2440 fi
2441
2442 fi
2443 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2444
2445 # We need awk for the "check" target.  The system "awk" is bad on
2446 # some platforms.
2447 # Always define AMTAR for backward compatibility.
2448
2449 AMTAR=${AMTAR-"${am_missing_run}tar"}
2450
2451 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2452
2453
2454
2455
2456
2457 ac_config_headers="$ac_config_headers src/config.h"
2458
2459
2460 # Checks for programs.
2461 ac_ext=c
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466 if test -n "$ac_tool_prefix"; then
2467   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2468 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2471 if test "${ac_cv_prog_CC+set}" = set; then
2472   echo $ECHO_N "(cached) $ECHO_C" >&6
2473 else
2474   if test -n "$CC"; then
2475   ac_cv_prog_CC="$CC" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480   IFS=$as_save_IFS
2481   test -z "$as_dir" && as_dir=.
2482   for ac_exec_ext in '' $ac_executable_extensions; do
2483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486     break 2
2487   fi
2488 done
2489 done
2490 IFS=$as_save_IFS
2491
2492 fi
2493 fi
2494 CC=$ac_cv_prog_CC
2495 if test -n "$CC"; then
2496   { echo "$as_me:$LINENO: result: $CC" >&5
2497 echo "${ECHO_T}$CC" >&6; }
2498 else
2499   { echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6; }
2501 fi
2502
2503
2504 fi
2505 if test -z "$ac_cv_prog_CC"; then
2506   ac_ct_CC=$CC
2507   # Extract the first word of "gcc", so it can be a program name with args.
2508 set dummy gcc; ac_word=$2
2509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2512   echo $ECHO_N "(cached) $ECHO_C" >&6
2513 else
2514   if test -n "$ac_ct_CC"; then
2515   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2516 else
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 for as_dir in $PATH
2519 do
2520   IFS=$as_save_IFS
2521   test -z "$as_dir" && as_dir=.
2522   for ac_exec_ext in '' $ac_executable_extensions; do
2523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524     ac_cv_prog_ac_ct_CC="gcc"
2525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526     break 2
2527   fi
2528 done
2529 done
2530 IFS=$as_save_IFS
2531
2532 fi
2533 fi
2534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2535 if test -n "$ac_ct_CC"; then
2536   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2537 echo "${ECHO_T}$ac_ct_CC" >&6; }
2538 else
2539   { echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6; }
2541 fi
2542
2543   if test "x$ac_ct_CC" = x; then
2544     CC=""
2545   else
2546     case $cross_compiling:$ac_tool_warned in
2547 yes:)
2548 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2549 whose name does not start with the host triplet.  If you think this
2550 configuration is useful to you, please write to autoconf@gnu.org." >&5
2551 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2552 whose name does not start with the host triplet.  If you think this
2553 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2554 ac_tool_warned=yes ;;
2555 esac
2556     CC=$ac_ct_CC
2557   fi
2558 else
2559   CC="$ac_cv_prog_CC"
2560 fi
2561
2562 if test -z "$CC"; then
2563           if test -n "$ac_tool_prefix"; then
2564     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2565 set dummy ${ac_tool_prefix}cc; ac_word=$2
2566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2568 if test "${ac_cv_prog_CC+set}" = set; then
2569   echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571   if test -n "$CC"; then
2572   ac_cv_prog_CC="$CC" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579   for ac_exec_ext in '' $ac_executable_extensions; do
2580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581     ac_cv_prog_CC="${ac_tool_prefix}cc"
2582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583     break 2
2584   fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 CC=$ac_cv_prog_CC
2592 if test -n "$CC"; then
2593   { echo "$as_me:$LINENO: result: $CC" >&5
2594 echo "${ECHO_T}$CC" >&6; }
2595 else
2596   { echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6; }
2598 fi
2599
2600
2601   fi
2602 fi
2603 if test -z "$CC"; then
2604   # Extract the first word of "cc", so it can be a program name with args.
2605 set dummy cc; ac_word=$2
2606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2608 if test "${ac_cv_prog_CC+set}" = set; then
2609   echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611   if test -n "$CC"; then
2612   ac_cv_prog_CC="$CC" # Let the user override the test.
2613 else
2614   ac_prog_rejected=no
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620   for ac_exec_ext in '' $ac_executable_extensions; do
2621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2623        ac_prog_rejected=yes
2624        continue
2625      fi
2626     ac_cv_prog_CC="cc"
2627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628     break 2
2629   fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 if test $ac_prog_rejected = yes; then
2635   # We found a bogon in the path, so make sure we never use it.
2636   set dummy $ac_cv_prog_CC
2637   shift
2638   if test $# != 0; then
2639     # We chose a different compiler from the bogus one.
2640     # However, it has the same basename, so the bogon will be chosen
2641     # first if we set CC to just the basename; use the full file name.
2642     shift
2643     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2644   fi
2645 fi
2646 fi
2647 fi
2648 CC=$ac_cv_prog_CC
2649 if test -n "$CC"; then
2650   { echo "$as_me:$LINENO: result: $CC" >&5
2651 echo "${ECHO_T}$CC" >&6; }
2652 else
2653   { echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6; }
2655 fi
2656
2657
2658 fi
2659 if test -z "$CC"; then
2660   if test -n "$ac_tool_prefix"; then
2661   for ac_prog in cl.exe
2662   do
2663     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then
2668   echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670   if test -n "$CC"; then
2671   ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678   for ac_exec_ext in '' $ac_executable_extensions; do
2679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 CC=$ac_cv_prog_CC
2691 if test -n "$CC"; then
2692   { echo "$as_me:$LINENO: result: $CC" >&5
2693 echo "${ECHO_T}$CC" >&6; }
2694 else
2695   { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2697 fi
2698
2699
2700     test -n "$CC" && break
2701   done
2702 fi
2703 if test -z "$CC"; then
2704   ac_ct_CC=$CC
2705   for ac_prog in cl.exe
2706 do
2707   # Extract the first word of "$ac_prog", so it can be a program name with args.
2708 set dummy $ac_prog; ac_word=$2
2709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2712   echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714   if test -n "$ac_ct_CC"; then
2715   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720   IFS=$as_save_IFS
2721   test -z "$as_dir" && as_dir=.
2722   for ac_exec_ext in '' $ac_executable_extensions; do
2723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724     ac_cv_prog_ac_ct_CC="$ac_prog"
2725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726     break 2
2727   fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735 if test -n "$ac_ct_CC"; then
2736   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2737 echo "${ECHO_T}$ac_ct_CC" >&6; }
2738 else
2739   { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2741 fi
2742
2743
2744   test -n "$ac_ct_CC" && break
2745 done
2746
2747   if test "x$ac_ct_CC" = x; then
2748     CC=""
2749   else
2750     case $cross_compiling:$ac_tool_warned in
2751 yes:)
2752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2753 whose name does not start with the host triplet.  If you think this
2754 configuration is useful to you, please write to autoconf@gnu.org." >&5
2755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2756 whose name does not start with the host triplet.  If you think this
2757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2758 ac_tool_warned=yes ;;
2759 esac
2760     CC=$ac_ct_CC
2761   fi
2762 fi
2763
2764 fi
2765
2766
2767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2768 See \`config.log' for more details." >&5
2769 echo "$as_me: error: no acceptable C compiler found in \$PATH
2770 See \`config.log' for more details." >&2;}
2771    { (exit 1); exit 1; }; }
2772
2773 # Provide some information about the compiler.
2774 echo "$as_me:$LINENO: checking for C compiler version" >&5
2775 ac_compiler=`set X $ac_compile; echo $2`
2776 { (ac_try="$ac_compiler --version >&5"
2777 case "(($ac_try" in
2778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779   *) ac_try_echo=$ac_try;;
2780 esac
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782   (eval "$ac_compiler --version >&5") 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }
2786 { (ac_try="$ac_compiler -v >&5"
2787 case "(($ac_try" in
2788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789   *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792   (eval "$ac_compiler -v >&5") 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }
2796 { (ac_try="$ac_compiler -V >&5"
2797 case "(($ac_try" in
2798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799   *) ac_try_echo=$ac_try;;
2800 esac
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802   (eval "$ac_compiler -V >&5") 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); }
2806
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h.  */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h.  */
2813
2814 int
2815 main ()
2816 {
2817
2818   ;
2819   return 0;
2820 }
2821 _ACEOF
2822 ac_clean_files_save=$ac_clean_files
2823 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2824 # Try to create an executable without -o first, disregard a.out.
2825 # It will help us diagnose broken compilers, and finding out an intuition
2826 # of exeext.
2827 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2828 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2829 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2830 #
2831 # List of possible output files, starting from the most likely.
2832 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2833 # only as a last resort.  b.out is created by i960 compilers.
2834 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2835 #
2836 # The IRIX 6 linker writes into existing files which may not be
2837 # executable, retaining their permissions.  Remove them first so a
2838 # subsequent execution test works.
2839 ac_rmfiles=
2840 for ac_file in $ac_files
2841 do
2842   case $ac_file in
2843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2844     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2845   esac
2846 done
2847 rm -f $ac_rmfiles
2848
2849 if { (ac_try="$ac_link_default"
2850 case "(($ac_try" in
2851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852   *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855   (eval "$ac_link_default") 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; then
2859   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2861 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2862 # so that the user can short-circuit this test for compilers unknown to
2863 # Autoconf.
2864 for ac_file in $ac_files ''
2865 do
2866   test -f "$ac_file" || continue
2867   case $ac_file in
2868     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2869         ;;
2870     [ab].out )
2871         # We found the default executable, but exeext='' is most
2872         # certainly right.
2873         break;;
2874     *.* )
2875         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2876         then :; else
2877            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2878         fi
2879         # We set ac_cv_exeext here because the later test for it is not
2880         # safe: cross compilers may not add the suffix if given an `-o'
2881         # argument, so we may need to know it at that point already.
2882         # Even if this section looks crufty: it has the advantage of
2883         # actually working.
2884         break;;
2885     * )
2886         break;;
2887   esac
2888 done
2889 test "$ac_cv_exeext" = no && ac_cv_exeext=
2890
2891 else
2892   ac_file=''
2893 fi
2894
2895 { echo "$as_me:$LINENO: result: $ac_file" >&5
2896 echo "${ECHO_T}$ac_file" >&6; }
2897 if test -z "$ac_file"; then
2898   echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2900
2901 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: C compiler cannot create executables
2904 See \`config.log' for more details." >&2;}
2905    { (exit 77); exit 77; }; }
2906 fi
2907
2908 ac_exeext=$ac_cv_exeext
2909
2910 # Check that the compiler produces executables we can run.  If not, either
2911 # the compiler is broken, or we cross compile.
2912 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2913 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2914 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2915 # If not cross compiling, check that we can run a simple program.
2916 if test "$cross_compiling" != yes; then
2917   if { ac_try='./$ac_file'
2918   { (case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_try") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; }; then
2927     cross_compiling=no
2928   else
2929     if test "$cross_compiling" = maybe; then
2930         cross_compiling=yes
2931     else
2932         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2933 If you meant to cross compile, use \`--host'.
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: cannot run C compiled programs.
2936 If you meant to cross compile, use \`--host'.
2937 See \`config.log' for more details." >&2;}
2938    { (exit 1); exit 1; }; }
2939     fi
2940   fi
2941 fi
2942 { echo "$as_me:$LINENO: result: yes" >&5
2943 echo "${ECHO_T}yes" >&6; }
2944
2945 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2946 ac_clean_files=$ac_clean_files_save
2947 # Check that the compiler produces executables we can run.  If not, either
2948 # the compiler is broken, or we cross compile.
2949 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2950 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2951 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2952 echo "${ECHO_T}$cross_compiling" >&6; }
2953
2954 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2955 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2956 if { (ac_try="$ac_link"
2957 case "(($ac_try" in
2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959   *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962   (eval "$ac_link") 2>&5
2963   ac_status=$?
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); }; then
2966   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2967 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2968 # work properly (i.e., refer to `conftest.exe'), while it won't with
2969 # `rm'.
2970 for ac_file in conftest.exe conftest conftest.*; do
2971   test -f "$ac_file" || continue
2972   case $ac_file in
2973     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2974     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2975           break;;
2976     * ) break;;
2977   esac
2978 done
2979 else
2980   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2981 See \`config.log' for more details." >&5
2982 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2983 See \`config.log' for more details." >&2;}
2984    { (exit 1); exit 1; }; }
2985 fi
2986
2987 rm -f conftest$ac_cv_exeext
2988 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2989 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2990
2991 rm -f conftest.$ac_ext
2992 EXEEXT=$ac_cv_exeext
2993 ac_exeext=$EXEEXT
2994 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2995 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2996 if test "${ac_cv_objext+set}" = set; then
2997   echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999   cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h.  */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h.  */
3005
3006 int
3007 main ()
3008 {
3009
3010   ;
3011   return 0;
3012 }
3013 _ACEOF
3014 rm -f conftest.o conftest.obj
3015 if { (ac_try="$ac_compile"
3016 case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_compile") 2>&5
3022   ac_status=$?
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); }; then
3025   for ac_file in conftest.o conftest.obj conftest.*; do
3026   test -f "$ac_file" || continue;
3027   case $ac_file in
3028     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3029     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3030        break;;
3031   esac
3032 done
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3038 See \`config.log' for more details." >&5
3039 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3040 See \`config.log' for more details." >&2;}
3041    { (exit 1); exit 1; }; }
3042 fi
3043
3044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3045 fi
3046 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3047 echo "${ECHO_T}$ac_cv_objext" >&6; }
3048 OBJEXT=$ac_cv_objext
3049 ac_objext=$OBJEXT
3050 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3051 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3052 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055   cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061
3062 int
3063 main ()
3064 {
3065 #ifndef __GNUC__
3066        choke me
3067 #endif
3068
3069   ;
3070   return 0;
3071 }
3072 _ACEOF
3073 rm -f conftest.$ac_objext
3074 if { (ac_try="$ac_compile"
3075 case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080   (eval "$ac_compile") 2>conftest.er1
3081   ac_status=$?
3082   grep -v '^ *+' conftest.er1 >conftest.err
3083   rm -f conftest.er1
3084   cat conftest.err >&5
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); } && {
3087          test -z "$ac_c_werror_flag" ||
3088          test ! -s conftest.err
3089        } && test -s conftest.$ac_objext; then
3090   ac_compiler_gnu=yes
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095         ac_compiler_gnu=no
3096 fi
3097
3098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3100
3101 fi
3102 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3103 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3104 GCC=`test $ac_compiler_gnu = yes && echo yes`
3105 ac_test_CFLAGS=${CFLAGS+set}
3106 ac_save_CFLAGS=$CFLAGS
3107 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3109 if test "${ac_cv_prog_cc_g+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   ac_save_c_werror_flag=$ac_c_werror_flag
3113    ac_c_werror_flag=yes
3114    ac_cv_prog_cc_g=no
3115    CFLAGS="-g"
3116    cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_compile") 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } && {
3145          test -z "$ac_c_werror_flag" ||
3146          test ! -s conftest.err
3147        } && test -s conftest.$ac_objext; then
3148   ac_cv_prog_cc_g=yes
3149 else
3150   echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153         CFLAGS=""
3154       cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h.  */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3171 case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176   (eval "$ac_compile") 2>conftest.er1
3177   ac_status=$?
3178   grep -v '^ *+' conftest.er1 >conftest.err
3179   rm -f conftest.er1
3180   cat conftest.err >&5
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); } && {
3183          test -z "$ac_c_werror_flag" ||
3184          test ! -s conftest.err
3185        } && test -s conftest.$ac_objext; then
3186   :
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191         ac_c_werror_flag=$ac_save_c_werror_flag
3192          CFLAGS="-g"
3193          cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h.  */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h.  */
3199
3200 int
3201 main ()
3202 {
3203
3204   ;
3205   return 0;
3206 }
3207 _ACEOF
3208 rm -f conftest.$ac_objext
3209 if { (ac_try="$ac_compile"
3210 case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215   (eval "$ac_compile") 2>conftest.er1
3216   ac_status=$?
3217   grep -v '^ *+' conftest.er1 >conftest.err
3218   rm -f conftest.er1
3219   cat conftest.err >&5
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); } && {
3222          test -z "$ac_c_werror_flag" ||
3223          test ! -s conftest.err
3224        } && test -s conftest.$ac_objext; then
3225   ac_cv_prog_cc_g=yes
3226 else
3227   echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 fi
3235
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240    ac_c_werror_flag=$ac_save_c_werror_flag
3241 fi
3242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3243 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3244 if test "$ac_test_CFLAGS" = set; then
3245   CFLAGS=$ac_save_CFLAGS
3246 elif test $ac_cv_prog_cc_g = yes; then
3247   if test "$GCC" = yes; then
3248     CFLAGS="-g -O2"
3249   else
3250     CFLAGS="-g"
3251   fi
3252 else
3253   if test "$GCC" = yes; then
3254     CFLAGS="-O2"
3255   else
3256     CFLAGS=
3257   fi
3258 fi
3259 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3260 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cc_c89+set}" = set; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264   ac_cv_prog_cc_c89=no
3265 ac_save_CC=$CC
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <stdarg.h>
3273 #include <stdio.h>
3274 #include <sys/types.h>
3275 #include <sys/stat.h>
3276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3277 struct buf { int x; };
3278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279 static char *e (p, i)
3280      char **p;
3281      int i;
3282 {
3283   return p[i];
3284 }
3285 static char *f (char * (*g) (char **, int), char **p, ...)
3286 {
3287   char *s;
3288   va_list v;
3289   va_start (v,p);
3290   s = g (p, va_arg (v,int));
3291   va_end (v);
3292   return s;
3293 }
3294
3295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3296    function prototypes and stuff, but not '\xHH' hex character constants.
3297    These don't provoke an error unfortunately, instead are silently treated
3298    as 'x'.  The following induces an error, until -std is added to get
3299    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3300    array size at least.  It's necessary to write '\x00'==0 to get something
3301    that's true only with -std.  */
3302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303
3304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3305    inside strings and character constants.  */
3306 #define FOO(x) 'x'
3307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308
3309 int test (int i, double x);
3310 struct s1 {int (*f) (int a);};
3311 struct s2 {int (*f) (double a);};
3312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313 int argc;
3314 char **argv;
3315 int
3316 main ()
3317 {
3318 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3324         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3325 do
3326   CC="$ac_save_CC $ac_arg"
3327   rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334   (eval "$ac_compile") 2>conftest.er1
3335   ac_status=$?
3336   grep -v '^ *+' conftest.er1 >conftest.err
3337   rm -f conftest.er1
3338   cat conftest.err >&5
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); } && {
3341          test -z "$ac_c_werror_flag" ||
3342          test ! -s conftest.err
3343        } && test -s conftest.$ac_objext; then
3344   ac_cv_prog_cc_c89=$ac_arg
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349
3350 fi
3351
3352 rm -f core conftest.err conftest.$ac_objext
3353   test "x$ac_cv_prog_cc_c89" != "xno" && break
3354 done
3355 rm -f conftest.$ac_ext
3356 CC=$ac_save_CC
3357
3358 fi
3359 # AC_CACHE_VAL
3360 case "x$ac_cv_prog_cc_c89" in
3361   x)
3362     { echo "$as_me:$LINENO: result: none needed" >&5
3363 echo "${ECHO_T}none needed" >&6; } ;;
3364   xno)
3365     { echo "$as_me:$LINENO: result: unsupported" >&5
3366 echo "${ECHO_T}unsupported" >&6; } ;;
3367   *)
3368     CC="$CC $ac_cv_prog_cc_c89"
3369     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3370 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3371 esac
3372
3373
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 DEPDIR="${am__leading_dot}deps"
3380
3381 ac_config_commands="$ac_config_commands depfiles"
3382
3383
3384 am_make=${MAKE-make}
3385 cat > confinc << 'END'
3386 am__doit:
3387         @echo done
3388 .PHONY: am__doit
3389 END
3390 # If we don't find an include directive, just comment out the code.
3391 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3392 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3393 am__include="#"
3394 am__quote=
3395 _am_result=none
3396 # First try GNU make style include.
3397 echo "include confinc" > confmf
3398 # We grep out `Entering directory' and `Leaving directory'
3399 # messages which can occur if `w' ends up in MAKEFLAGS.
3400 # In particular we don't look at `^make:' because GNU make might
3401 # be invoked under some other name (usually "gmake"), in which
3402 # case it prints its new name instead of `make'.
3403 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3404    am__include=include
3405    am__quote=
3406    _am_result=GNU
3407 fi
3408 # Now try BSD make style include.
3409 if test "$am__include" = "#"; then
3410    echo '.include "confinc"' > confmf
3411    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3412       am__include=.include
3413       am__quote="\""
3414       _am_result=BSD
3415    fi
3416 fi
3417
3418
3419 { echo "$as_me:$LINENO: result: $_am_result" >&5
3420 echo "${ECHO_T}$_am_result" >&6; }
3421 rm -f confinc confmf
3422
3423 # Check whether --enable-dependency-tracking was given.
3424 if test "${enable_dependency_tracking+set}" = set; then
3425   enableval=$enable_dependency_tracking;
3426 fi
3427
3428 if test "x$enable_dependency_tracking" != xno; then
3429   am_depcomp="$ac_aux_dir/depcomp"
3430   AMDEPBACKSLASH='\'
3431 fi
3432  if test "x$enable_dependency_tracking" != xno; then
3433   AMDEP_TRUE=
3434   AMDEP_FALSE='#'
3435 else
3436   AMDEP_TRUE='#'
3437   AMDEP_FALSE=
3438 fi
3439
3440
3441
3442 depcc="$CC"   am_compiler_list=
3443
3444 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3445 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3446 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3447   echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3450   # We make a subdir and do the tests there.  Otherwise we can end up
3451   # making bogus files that we don't know about and never remove.  For
3452   # instance it was reported that on HP-UX the gcc test will end up
3453   # making a dummy file named `D' -- because `-MD' means `put the output
3454   # in D'.
3455   mkdir conftest.dir
3456   # Copy depcomp to subdir because otherwise we won't find it if we're
3457   # using a relative directory.
3458   cp "$am_depcomp" conftest.dir
3459   cd conftest.dir
3460   # We will build objects and dependencies in a subdirectory because
3461   # it helps to detect inapplicable dependency modes.  For instance
3462   # both Tru64's cc and ICC support -MD to output dependencies as a
3463   # side effect of compilation, but ICC will put the dependencies in
3464   # the current directory while Tru64 will put them in the object
3465   # directory.
3466   mkdir sub
3467
3468   am_cv_CC_dependencies_compiler_type=none
3469   if test "$am_compiler_list" = ""; then
3470      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3471   fi
3472   for depmode in $am_compiler_list; do
3473     # Setup a source with many dependencies, because some compilers
3474     # like to wrap large dependency lists on column 80 (with \), and
3475     # we should not choose a depcomp mode which is confused by this.
3476     #
3477     # We need to recreate these files for each test, as the compiler may
3478     # overwrite some of them when testing with obscure command lines.
3479     # This happens at least with the AIX C compiler.
3480     : > sub/conftest.c
3481     for i in 1 2 3 4 5 6; do
3482       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3483       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3484       # Solaris 8's {/usr,}/bin/sh.
3485       touch sub/conftst$i.h
3486     done
3487     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3488
3489     case $depmode in
3490     nosideeffect)
3491       # after this tag, mechanisms are not by side-effect, so they'll
3492       # only be used when explicitly requested
3493       if test "x$enable_dependency_tracking" = xyes; then
3494         continue
3495       else
3496         break
3497       fi
3498       ;;
3499     none) break ;;
3500     esac
3501     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3502     # mode.  It turns out that the SunPro C++ compiler does not properly
3503     # handle `-M -o', and we need to detect this.
3504     if depmode=$depmode \
3505        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3506        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3507        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3508          >/dev/null 2>conftest.err &&
3509        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3510        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3511        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3512        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3513       # icc doesn't choke on unknown options, it will just issue warnings
3514       # or remarks (even with -Werror).  So we grep stderr for any message
3515       # that says an option was ignored or not supported.
3516       # When given -MP, icc 7.0 and 7.1 complain thusly:
3517       #   icc: Command line warning: ignoring option '-M'; no argument required
3518       # The diagnosis changed in icc 8.0:
3519       #   icc: Command line remark: option '-MP' not supported
3520       if (grep 'ignoring option' conftest.err ||
3521           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3522         am_cv_CC_dependencies_compiler_type=$depmode
3523         break
3524       fi
3525     fi
3526   done
3527
3528   cd ..
3529   rm -rf conftest.dir
3530 else
3531   am_cv_CC_dependencies_compiler_type=none
3532 fi
3533
3534 fi
3535 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3536 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3538
3539  if
3540   test "x$enable_dependency_tracking" != xno \
3541   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3542   am__fastdepCC_TRUE=
3543   am__fastdepCC_FALSE='#'
3544 else
3545   am__fastdepCC_TRUE='#'
3546   am__fastdepCC_FALSE=
3547 fi
3548
3549
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3556 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3557 # On Suns, sometimes $CPP names a directory.
3558 if test -n "$CPP" && test -d "$CPP"; then
3559   CPP=
3560 fi
3561 if test -z "$CPP"; then
3562   if test "${ac_cv_prog_CPP+set}" = set; then
3563   echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565       # Double quotes because CPP needs to be expanded
3566     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3567     do
3568       ac_preproc_ok=false
3569 for ac_c_preproc_warn_flag in '' yes
3570 do
3571   # Use a header file that comes with gcc, so configuring glibc
3572   # with a fresh cross-compiler works.
3573   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574   # <limits.h> exists even on freestanding compilers.
3575   # On the NeXT, cc -E runs the code through the compiler's parser,
3576   # not just through cpp. "Syntax error" is here to catch this case.
3577   cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h.  */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h.  */
3583 #ifdef __STDC__
3584 # include <limits.h>
3585 #else
3586 # include <assert.h>
3587 #endif
3588                      Syntax error
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597   ac_status=$?
3598   grep -v '^ *+' conftest.er1 >conftest.err
3599   rm -f conftest.er1
3600   cat conftest.err >&5
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } >/dev/null && {
3603          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3604          test ! -s conftest.err
3605        }; then
3606   :
3607 else
3608   echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611   # Broken: fails on valid input.
3612 continue
3613 fi
3614
3615 rm -f conftest.err conftest.$ac_ext
3616
3617   # OK, works on sane cases.  Now check whether nonexistent headers
3618   # can be detected and how.
3619   cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h.  */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h.  */
3625 #include <ac_nonexistent.h>
3626 _ACEOF
3627 if { (ac_try="$ac_cpp conftest.$ac_ext"
3628 case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3634   ac_status=$?
3635   grep -v '^ *+' conftest.er1 >conftest.err
3636   rm -f conftest.er1
3637   cat conftest.err >&5
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); } >/dev/null && {
3640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3641          test ! -s conftest.err
3642        }; then
3643   # Broken: success on invalid input.
3644 continue
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649   # Passes both tests.
3650 ac_preproc_ok=:
3651 break
3652 fi
3653
3654 rm -f conftest.err conftest.$ac_ext
3655
3656 done
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658 rm -f conftest.err conftest.$ac_ext
3659 if $ac_preproc_ok; then
3660   break
3661 fi
3662
3663     done
3664     ac_cv_prog_CPP=$CPP
3665
3666 fi
3667   CPP=$ac_cv_prog_CPP
3668 else
3669   ac_cv_prog_CPP=$CPP
3670 fi
3671 { echo "$as_me:$LINENO: result: $CPP" >&5
3672 echo "${ECHO_T}$CPP" >&6; }
3673 ac_preproc_ok=false
3674 for ac_c_preproc_warn_flag in '' yes
3675 do
3676   # Use a header file that comes with gcc, so configuring glibc
3677   # with a fresh cross-compiler works.
3678   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3679   # <limits.h> exists even on freestanding compilers.
3680   # On the NeXT, cc -E runs the code through the compiler's parser,
3681   # not just through cpp. "Syntax error" is here to catch this case.
3682   cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h.  */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h.  */
3688 #ifdef __STDC__
3689 # include <limits.h>
3690 #else
3691 # include <assert.h>
3692 #endif
3693                      Syntax error
3694 _ACEOF
3695 if { (ac_try="$ac_cpp conftest.$ac_ext"
3696 case "(($ac_try" in
3697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698   *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3702   ac_status=$?
3703   grep -v '^ *+' conftest.er1 >conftest.err
3704   rm -f conftest.er1
3705   cat conftest.err >&5
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); } >/dev/null && {
3708          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3709          test ! -s conftest.err
3710        }; then
3711   :
3712 else
3713   echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716   # Broken: fails on valid input.
3717 continue
3718 fi
3719
3720 rm -f conftest.err conftest.$ac_ext
3721
3722   # OK, works on sane cases.  Now check whether nonexistent headers
3723   # can be detected and how.
3724   cat >conftest.$ac_ext <<_ACEOF
3725 /* confdefs.h.  */
3726 _ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h.  */
3730 #include <ac_nonexistent.h>
3731 _ACEOF
3732 if { (ac_try="$ac_cpp conftest.$ac_ext"
3733 case "(($ac_try" in
3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735   *) ac_try_echo=$ac_try;;
3736 esac
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3739   ac_status=$?
3740   grep -v '^ *+' conftest.er1 >conftest.err
3741   rm -f conftest.er1
3742   cat conftest.err >&5
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } >/dev/null && {
3745          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3746          test ! -s conftest.err
3747        }; then
3748   # Broken: success on invalid input.
3749 continue
3750 else
3751   echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754   # Passes both tests.
3755 ac_preproc_ok=:
3756 break
3757 fi
3758
3759 rm -f conftest.err conftest.$ac_ext
3760
3761 done
3762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3763 rm -f conftest.err conftest.$ac_ext
3764 if $ac_preproc_ok; then
3765   :
3766 else
3767   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3768 See \`config.log' for more details." >&5
3769 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3770 See \`config.log' for more details." >&2;}
3771    { (exit 1); exit 1; }; }
3772 fi
3773
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779
3780 ac_ext=cpp
3781 ac_cpp='$CXXCPP $CPPFLAGS'
3782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3785 if test -z "$CXX"; then
3786   if test -n "$CCC"; then
3787     CXX=$CCC
3788   else
3789     if test -n "$ac_tool_prefix"; then
3790   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3791   do
3792     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3796 if test "${ac_cv_prog_CXX+set}" = set; then
3797   echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799   if test -n "$CXX"; then
3800   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805   IFS=$as_save_IFS
3806   test -z "$as_dir" && as_dir=.
3807   for ac_exec_ext in '' $ac_executable_extensions; do
3808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811     break 2
3812   fi
3813 done
3814 done
3815 IFS=$as_save_IFS
3816
3817 fi
3818 fi
3819 CXX=$ac_cv_prog_CXX
3820 if test -n "$CXX"; then
3821   { echo "$as_me:$LINENO: result: $CXX" >&5
3822 echo "${ECHO_T}$CXX" >&6; }
3823 else
3824   { echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6; }
3826 fi
3827
3828
3829     test -n "$CXX" && break
3830   done
3831 fi
3832 if test -z "$CXX"; then
3833   ac_ct_CXX=$CXX
3834   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3835 do
3836   # Extract the first word of "$ac_prog", so it can be a program name with args.
3837 set dummy $ac_prog; ac_word=$2
3838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   if test -n "$ac_ct_CXX"; then
3844   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851   for ac_exec_ext in '' $ac_executable_extensions; do
3852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853     ac_cv_prog_ac_ct_CXX="$ac_prog"
3854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858 done
3859 IFS=$as_save_IFS
3860
3861 fi
3862 fi
3863 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3864 if test -n "$ac_ct_CXX"; then
3865   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3866 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3867 else
3868   { echo "$as_me:$LINENO: result: no" >&5
3869 echo "${ECHO_T}no" >&6; }
3870 fi
3871
3872
3873   test -n "$ac_ct_CXX" && break
3874 done
3875
3876   if test "x$ac_ct_CXX" = x; then
3877     CXX="g++"
3878   else
3879     case $cross_compiling:$ac_tool_warned in
3880 yes:)
3881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3882 whose name does not start with the host triplet.  If you think this
3883 configuration is useful to you, please write to autoconf@gnu.org." >&5
3884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3885 whose name does not start with the host triplet.  If you think this
3886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3887 ac_tool_warned=yes ;;
3888 esac
3889     CXX=$ac_ct_CXX
3890   fi
3891 fi
3892
3893   fi
3894 fi
3895 # Provide some information about the compiler.
3896 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3897 ac_compiler=`set X $ac_compile; echo $2`
3898 { (ac_try="$ac_compiler --version >&5"
3899 case "(($ac_try" in
3900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901   *) ac_try_echo=$ac_try;;
3902 esac
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904   (eval "$ac_compiler --version >&5") 2>&5
3905   ac_status=$?
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); }
3908 { (ac_try="$ac_compiler -v >&5"
3909 case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914   (eval "$ac_compiler -v >&5") 2>&5
3915   ac_status=$?
3916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); }
3918 { (ac_try="$ac_compiler -V >&5"
3919 case "(($ac_try" in
3920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921   *) ac_try_echo=$ac_try;;
3922 esac
3923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924   (eval "$ac_compiler -V >&5") 2>&5
3925   ac_status=$?
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); }
3928
3929 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3930 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934   cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h.  */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h.  */
3940
3941 int
3942 main ()
3943 {
3944 #ifndef __GNUC__
3945        choke me
3946 #endif
3947
3948   ;
3949   return 0;
3950 }
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3954 case "(($ac_try" in
3955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956   *) ac_try_echo=$ac_try;;
3957 esac
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959   (eval "$ac_compile") 2>conftest.er1
3960   ac_status=$?
3961   grep -v '^ *+' conftest.er1 >conftest.err
3962   rm -f conftest.er1
3963   cat conftest.err >&5
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); } && {
3966          test -z "$ac_cxx_werror_flag" ||
3967          test ! -s conftest.err
3968        } && test -s conftest.$ac_objext; then
3969   ac_compiler_gnu=yes
3970 else
3971   echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974         ac_compiler_gnu=no
3975 fi
3976
3977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3979
3980 fi
3981 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3982 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3983 GXX=`test $ac_compiler_gnu = yes && echo yes`
3984 ac_test_CXXFLAGS=${CXXFLAGS+set}
3985 ac_save_CXXFLAGS=$CXXFLAGS
3986 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3987 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3988 if test "${ac_cv_prog_cxx_g+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3992    ac_cxx_werror_flag=yes
3993    ac_cv_prog_cxx_g=no
3994    CXXFLAGS="-g"
3995    cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h.  */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h.  */
4001
4002 int
4003 main ()
4004 {
4005
4006   ;
4007   return 0;
4008 }
4009 _ACEOF
4010 rm -f conftest.$ac_objext
4011 if { (ac_try="$ac_compile"
4012 case "(($ac_try" in
4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014   *) ac_try_echo=$ac_try;;
4015 esac
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017   (eval "$ac_compile") 2>conftest.er1
4018   ac_status=$?
4019   grep -v '^ *+' conftest.er1 >conftest.err
4020   rm -f conftest.er1
4021   cat conftest.err >&5
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); } && {
4024          test -z "$ac_cxx_werror_flag" ||
4025          test ! -s conftest.err
4026        } && test -s conftest.$ac_objext; then
4027   ac_cv_prog_cxx_g=yes
4028 else
4029   echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032         CXXFLAGS=""
4033       cat >conftest.$ac_ext <<_ACEOF
4034 /* confdefs.h.  */
4035 _ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h.  */
4039
4040 int
4041 main ()
4042 {
4043
4044   ;
4045   return 0;
4046 }
4047 _ACEOF
4048 rm -f conftest.$ac_objext
4049 if { (ac_try="$ac_compile"
4050 case "(($ac_try" in
4051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052   *) ac_try_echo=$ac_try;;
4053 esac
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055   (eval "$ac_compile") 2>conftest.er1
4056   ac_status=$?
4057   grep -v '^ *+' conftest.er1 >conftest.err
4058   rm -f conftest.er1
4059   cat conftest.err >&5
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); } && {
4062          test -z "$ac_cxx_werror_flag" ||
4063          test ! -s conftest.err
4064        } && test -s conftest.$ac_objext; then
4065   :
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4071          CXXFLAGS="-g"
4072          cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h.  */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h.  */
4078
4079 int
4080 main ()
4081 {
4082
4083   ;
4084   return 0;
4085 }
4086 _ACEOF
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094   (eval "$ac_compile") 2>conftest.er1
4095   ac_status=$?
4096   grep -v '^ *+' conftest.er1 >conftest.err
4097   rm -f conftest.er1
4098   cat conftest.err >&5
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); } && {
4101          test -z "$ac_cxx_werror_flag" ||
4102          test ! -s conftest.err
4103        } && test -s conftest.$ac_objext; then
4104   ac_cv_prog_cxx_g=yes
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109
4110 fi
4111
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 fi
4114
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 fi
4117
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4120 fi
4121 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4122 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4123 if test "$ac_test_CXXFLAGS" = set; then
4124   CXXFLAGS=$ac_save_CXXFLAGS
4125 elif test $ac_cv_prog_cxx_g = yes; then
4126   if test "$GXX" = yes; then
4127     CXXFLAGS="-g -O2"
4128   else
4129     CXXFLAGS="-g"
4130   fi
4131 else
4132   if test "$GXX" = yes; then
4133     CXXFLAGS="-O2"
4134   else
4135     CXXFLAGS=
4136   fi
4137 fi
4138 ac_ext=c
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144 depcc="$CXX"  am_compiler_list=
4145
4146 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4147 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4148 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4152   # We make a subdir and do the tests there.  Otherwise we can end up
4153   # making bogus files that we don't know about and never remove.  For
4154   # instance it was reported that on HP-UX the gcc test will end up
4155   # making a dummy file named `D' -- because `-MD' means `put the output
4156   # in D'.
4157   mkdir conftest.dir
4158   # Copy depcomp to subdir because otherwise we won't find it if we're
4159   # using a relative directory.
4160   cp "$am_depcomp" conftest.dir
4161   cd conftest.dir
4162   # We will build objects and dependencies in a subdirectory because
4163   # it helps to detect inapplicable dependency modes.  For instance
4164   # both Tru64's cc and ICC support -MD to output dependencies as a
4165   # side effect of compilation, but ICC will put the dependencies in
4166   # the current directory while Tru64 will put them in the object
4167   # directory.
4168   mkdir sub
4169
4170   am_cv_CXX_dependencies_compiler_type=none
4171   if test "$am_compiler_list" = ""; then
4172      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4173   fi
4174   for depmode in $am_compiler_list; do
4175     # Setup a source with many dependencies, because some compilers
4176     # like to wrap large dependency lists on column 80 (with \), and
4177     # we should not choose a depcomp mode which is confused by this.
4178     #
4179     # We need to recreate these files for each test, as the compiler may
4180     # overwrite some of them when testing with obscure command lines.
4181     # This happens at least with the AIX C compiler.
4182     : > sub/conftest.c
4183     for i in 1 2 3 4 5 6; do
4184       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4185       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4186       # Solaris 8's {/usr,}/bin/sh.
4187       touch sub/conftst$i.h
4188     done
4189     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4190
4191     case $depmode in
4192     nosideeffect)
4193       # after this tag, mechanisms are not by side-effect, so they'll
4194       # only be used when explicitly requested
4195       if test "x$enable_dependency_tracking" = xyes; then
4196         continue
4197       else
4198         break
4199       fi
4200       ;;
4201     none) break ;;
4202     esac
4203     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4204     # mode.  It turns out that the SunPro C++ compiler does not properly
4205     # handle `-M -o', and we need to detect this.
4206     if depmode=$depmode \
4207        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4208        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4209        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4210          >/dev/null 2>conftest.err &&
4211        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4212        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4213        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4214        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4215       # icc doesn't choke on unknown options, it will just issue warnings
4216       # or remarks (even with -Werror).  So we grep stderr for any message
4217       # that says an option was ignored or not supported.
4218       # When given -MP, icc 7.0 and 7.1 complain thusly:
4219       #   icc: Command line warning: ignoring option '-M'; no argument required
4220       # The diagnosis changed in icc 8.0:
4221       #   icc: Command line remark: option '-MP' not supported
4222       if (grep 'ignoring option' conftest.err ||
4223           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4224         am_cv_CXX_dependencies_compiler_type=$depmode
4225         break
4226       fi
4227     fi
4228   done
4229
4230   cd ..
4231   rm -rf conftest.dir
4232 else
4233   am_cv_CXX_dependencies_compiler_type=none
4234 fi
4235
4236 fi
4237 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4238 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4239 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4240
4241  if
4242   test "x$enable_dependency_tracking" != xno \
4243   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4244   am__fastdepCXX_TRUE=
4245   am__fastdepCXX_FALSE='#'
4246 else
4247   am__fastdepCXX_TRUE='#'
4248   am__fastdepCXX_FALSE=
4249 fi
4250
4251
4252  if test "$GCC" = yes; then
4253   GCC_TRUE=
4254   GCC_FALSE='#'
4255 else
4256   GCC_TRUE='#'
4257   GCC_FALSE=
4258 fi
4259    # let the Makefile know if we're gcc
4260
4261 # Check whether --enable-shared was given.
4262 if test "${enable_shared+set}" = set; then
4263   enableval=$enable_shared; p=${PACKAGE-default}
4264     case $enableval in
4265     yes) enable_shared=yes ;;
4266     no) enable_shared=no ;;
4267     *)
4268       enable_shared=no
4269       # Look at the argument we got.  We use all the common list separators.
4270       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4271       for pkg in $enableval; do
4272         IFS="$lt_save_ifs"
4273         if test "X$pkg" = "X$p"; then
4274           enable_shared=yes
4275         fi
4276       done
4277       IFS="$lt_save_ifs"
4278       ;;
4279     esac
4280 else
4281   enable_shared=yes
4282 fi
4283
4284
4285 # Check whether --enable-static was given.
4286 if test "${enable_static+set}" = set; then
4287   enableval=$enable_static; p=${PACKAGE-default}
4288     case $enableval in
4289     yes) enable_static=yes ;;
4290     no) enable_static=no ;;
4291     *)
4292      enable_static=no
4293       # Look at the argument we got.  We use all the common list separators.
4294       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4295       for pkg in $enableval; do
4296         IFS="$lt_save_ifs"
4297         if test "X$pkg" = "X$p"; then
4298           enable_static=yes
4299         fi
4300       done
4301       IFS="$lt_save_ifs"
4302       ;;
4303     esac
4304 else
4305   enable_static=yes
4306 fi
4307
4308
4309 # Check whether --enable-fast-install was given.
4310 if test "${enable_fast_install+set}" = set; then
4311   enableval=$enable_fast_install; p=${PACKAGE-default}
4312     case $enableval in
4313     yes) enable_fast_install=yes ;;
4314     no) enable_fast_install=no ;;
4315     *)
4316       enable_fast_install=no
4317       # Look at the argument we got.  We use all the common list separators.
4318       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4319       for pkg in $enableval; do
4320         IFS="$lt_save_ifs"
4321         if test "X$pkg" = "X$p"; then
4322           enable_fast_install=yes
4323         fi
4324       done
4325       IFS="$lt_save_ifs"
4326       ;;
4327     esac
4328 else
4329   enable_fast_install=yes
4330 fi
4331
4332
4333 # Make sure we can run config.sub.
4334 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4335   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4336 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4337    { (exit 1); exit 1; }; }
4338
4339 { echo "$as_me:$LINENO: checking build system type" >&5
4340 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4341 if test "${ac_cv_build+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   ac_build_alias=$build_alias
4345 test "x$ac_build_alias" = x &&
4346   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4347 test "x$ac_build_alias" = x &&
4348   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4349 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4350    { (exit 1); exit 1; }; }
4351 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4352   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4353 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4354    { (exit 1); exit 1; }; }
4355
4356 fi
4357 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4358 echo "${ECHO_T}$ac_cv_build" >&6; }
4359 case $ac_cv_build in
4360 *-*-*) ;;
4361 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4362 echo "$as_me: error: invalid value of canonical build" >&2;}
4363    { (exit 1); exit 1; }; };;
4364 esac
4365 build=$ac_cv_build
4366 ac_save_IFS=$IFS; IFS='-'
4367 set x $ac_cv_build
4368 shift
4369 build_cpu=$1
4370 build_vendor=$2
4371 shift; shift
4372 # Remember, the first character of IFS is used to create $*,
4373 # except with old shells:
4374 build_os=$*
4375 IFS=$ac_save_IFS
4376 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4377
4378
4379 { echo "$as_me:$LINENO: checking host system type" >&5
4380 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4381 if test "${ac_cv_host+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   if test "x$host_alias" = x; then
4385   ac_cv_host=$ac_cv_build
4386 else
4387   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4388     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4389 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4390    { (exit 1); exit 1; }; }
4391 fi
4392
4393 fi
4394 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4395 echo "${ECHO_T}$ac_cv_host" >&6; }
4396 case $ac_cv_host in
4397 *-*-*) ;;
4398 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4399 echo "$as_me: error: invalid value of canonical host" >&2;}
4400    { (exit 1); exit 1; }; };;
4401 esac
4402 host=$ac_cv_host
4403 ac_save_IFS=$IFS; IFS='-'
4404 set x $ac_cv_host
4405 shift
4406 host_cpu=$1
4407 host_vendor=$2
4408 shift; shift
4409 # Remember, the first character of IFS is used to create $*,
4410 # except with old shells:
4411 host_os=$*
4412 IFS=$ac_save_IFS
4413 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4414
4415
4416 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4417 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4418 if test "${lt_cv_path_SED+set}" = set; then
4419   echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421   # Loop through the user's path and test for sed and gsed.
4422 # Then use that list of sed's as ones to test for truncation.
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428   for lt_ac_prog in sed gsed; do
4429     for ac_exec_ext in '' $ac_executable_extensions; do
4430       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4431         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4432       fi
4433     done
4434   done
4435 done
4436 IFS=$as_save_IFS
4437 lt_ac_max=0
4438 lt_ac_count=0
4439 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4440 # along with /bin/sed that truncates output.
4441 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4442   test ! -f $lt_ac_sed && continue
4443   cat /dev/null > conftest.in
4444   lt_ac_count=0
4445   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4446   # Check for GNU sed and select it if it is found.
4447   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4448     lt_cv_path_SED=$lt_ac_sed
4449     break
4450   fi
4451   while true; do
4452     cat conftest.in conftest.in >conftest.tmp
4453     mv conftest.tmp conftest.in
4454     cp conftest.in conftest.nl
4455     echo >>conftest.nl
4456     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4457     cmp -s conftest.out conftest.nl || break
4458     # 10000 chars as input seems more than enough
4459     test $lt_ac_count -gt 10 && break
4460     lt_ac_count=`expr $lt_ac_count + 1`
4461     if test $lt_ac_count -gt $lt_ac_max; then
4462       lt_ac_max=$lt_ac_count
4463       lt_cv_path_SED=$lt_ac_sed
4464     fi
4465   done
4466 done
4467
4468 fi
4469
4470 SED=$lt_cv_path_SED
4471
4472 { echo "$as_me:$LINENO: result: $SED" >&5
4473 echo "${ECHO_T}$SED" >&6; }
4474
4475 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4476 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4477 if test "${ac_cv_path_GREP+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   # Extract the first word of "grep ggrep" to use in msg output
4481 if test -z "$GREP"; then
4482 set dummy grep ggrep; ac_prog_name=$2
4483 if test "${ac_cv_path_GREP+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   ac_path_GREP_found=false
4487 # Loop through the user's path and test for each of PROGNAME-LIST
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493   for ac_prog in grep ggrep; do
4494   for ac_exec_ext in '' $ac_executable_extensions; do
4495     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4496     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4497     # Check for GNU ac_path_GREP and select it if it is found.
4498   # Check for GNU $ac_path_GREP
4499 case `"$ac_path_GREP" --version 2>&1` in
4500 *GNU*)
4501   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4502 *)
4503   ac_count=0
4504   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4505   while :
4506   do
4507     cat "conftest.in" "conftest.in" >"conftest.tmp"
4508     mv "conftest.tmp" "conftest.in"
4509     cp "conftest.in" "conftest.nl"
4510     echo 'GREP' >> "conftest.nl"
4511     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4512     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4513     ac_count=`expr $ac_count + 1`
4514     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4515       # Best one so far, save it but keep looking for a better one
4516       ac_cv_path_GREP="$ac_path_GREP"
4517       ac_path_GREP_max=$ac_count
4518     fi
4519     # 10*(2^10) chars as input seems more than enough
4520     test $ac_count -gt 10 && break
4521   done
4522   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4523 esac
4524
4525
4526     $ac_path_GREP_found && break 3
4527   done
4528 done
4529
4530 done
4531 IFS=$as_save_IFS
4532
4533
4534 fi
4535
4536 GREP="$ac_cv_path_GREP"
4537 if test -z "$GREP"; then
4538   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4539 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4540    { (exit 1); exit 1; }; }
4541 fi
4542
4543 else
4544   ac_cv_path_GREP=$GREP
4545 fi
4546
4547
4548 fi
4549 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4550 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4551  GREP="$ac_cv_path_GREP"
4552
4553
4554 { echo "$as_me:$LINENO: checking for egrep" >&5
4555 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4556 if test "${ac_cv_path_EGREP+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4560    then ac_cv_path_EGREP="$GREP -E"
4561    else
4562      # Extract the first word of "egrep" to use in msg output
4563 if test -z "$EGREP"; then
4564 set dummy egrep; ac_prog_name=$2
4565 if test "${ac_cv_path_EGREP+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   ac_path_EGREP_found=false
4569 # Loop through the user's path and test for each of PROGNAME-LIST
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4572 do
4573   IFS=$as_save_IFS
4574   test -z "$as_dir" && as_dir=.
4575   for ac_prog in egrep; do
4576   for ac_exec_ext in '' $ac_executable_extensions; do
4577     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4578     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4579     # Check for GNU ac_path_EGREP and select it if it is found.
4580   # Check for GNU $ac_path_EGREP
4581 case `"$ac_path_EGREP" --version 2>&1` in
4582 *GNU*)
4583   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4584 *)
4585   ac_count=0
4586   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4587   while :
4588   do
4589     cat "conftest.in" "conftest.in" >"conftest.tmp"
4590     mv "conftest.tmp" "conftest.in"
4591     cp "conftest.in" "conftest.nl"
4592     echo 'EGREP' >> "conftest.nl"
4593     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4594     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4595     ac_count=`expr $ac_count + 1`
4596     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4597       # Best one so far, save it but keep looking for a better one
4598       ac_cv_path_EGREP="$ac_path_EGREP"
4599       ac_path_EGREP_max=$ac_count
4600     fi
4601     # 10*(2^10) chars as input seems more than enough
4602     test $ac_count -gt 10 && break
4603   done
4604   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4605 esac
4606
4607
4608     $ac_path_EGREP_found && break 3
4609   done
4610 done
4611
4612 done
4613 IFS=$as_save_IFS
4614
4615
4616 fi
4617
4618 EGREP="$ac_cv_path_EGREP"
4619 if test -z "$EGREP"; then
4620   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4621 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4622    { (exit 1); exit 1; }; }
4623 fi
4624
4625 else
4626   ac_cv_path_EGREP=$EGREP
4627 fi
4628
4629
4630    fi
4631 fi
4632 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4633 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4634  EGREP="$ac_cv_path_EGREP"
4635
4636
4637
4638 # Check whether --with-gnu-ld was given.
4639 if test "${with_gnu_ld+set}" = set; then
4640   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4641 else
4642   with_gnu_ld=no
4643 fi
4644
4645 ac_prog=ld
4646 if test "$GCC" = yes; then
4647   # Check if gcc -print-prog-name=ld gives a path.
4648   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4649 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4650   case $host in
4651   *-*-mingw*)
4652     # gcc leaves a trailing carriage return which upsets mingw
4653     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4654   *)
4655     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4656   esac
4657   case $ac_prog in
4658     # Accept absolute paths.
4659     [\\/]* | ?:[\\/]*)
4660       re_direlt='/[^/][^/]*/\.\./'
4661       # Canonicalize the pathname of ld
4662       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4663       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4664         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4665       done
4666       test -z "$LD" && LD="$ac_prog"
4667       ;;
4668   "")
4669     # If it fails, then pretend we aren't using GCC.
4670     ac_prog=ld
4671     ;;
4672   *)
4673     # If it is relative, then search for the first ld in PATH.
4674     with_gnu_ld=unknown
4675     ;;
4676   esac
4677 elif test "$with_gnu_ld" = yes; then
4678   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4679 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4680 else
4681   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4682 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4683 fi
4684 if test "${lt_cv_path_LD+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   if test -z "$LD"; then
4688   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4689   for ac_dir in $PATH; do
4690     IFS="$lt_save_ifs"
4691     test -z "$ac_dir" && ac_dir=.
4692     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4693       lt_cv_path_LD="$ac_dir/$ac_prog"
4694       # Check to see if the program is GNU ld.  I'd rather use --version,
4695       # but apparently some variants of GNU ld only accept -v.
4696       # Break only if it was the GNU/non-GNU ld that we prefer.
4697       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4698       *GNU* | *'with BFD'*)
4699         test "$with_gnu_ld" != no && break
4700         ;;
4701       *)
4702         test "$with_gnu_ld" != yes && break
4703         ;;
4704       esac
4705     fi
4706   done
4707   IFS="$lt_save_ifs"
4708 else
4709   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4710 fi
4711 fi
4712
4713 LD="$lt_cv_path_LD"
4714 if test -n "$LD"; then
4715   { echo "$as_me:$LINENO: result: $LD" >&5
4716 echo "${ECHO_T}$LD" >&6; }
4717 else
4718   { echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6; }
4720 fi
4721 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4722 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4723    { (exit 1); exit 1; }; }
4724 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4725 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4726 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4730 case `$LD -v 2>&1 </dev/null` in
4731 *GNU* | *'with BFD'*)
4732   lt_cv_prog_gnu_ld=yes
4733   ;;
4734 *)
4735   lt_cv_prog_gnu_ld=no
4736   ;;
4737 esac
4738 fi
4739 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4740 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4741 with_gnu_ld=$lt_cv_prog_gnu_ld
4742
4743
4744 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4745 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4746 if test "${lt_cv_ld_reload_flag+set}" = set; then
4747   echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749   lt_cv_ld_reload_flag='-r'
4750 fi
4751 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4752 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4753 reload_flag=$lt_cv_ld_reload_flag
4754 case $reload_flag in
4755 "" | " "*) ;;
4756 *) reload_flag=" $reload_flag" ;;
4757 esac
4758 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4759 case $host_os in
4760   darwin*)
4761     if test "$GCC" = yes; then
4762       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4763     else
4764       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4765     fi
4766     ;;
4767 esac
4768
4769 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4770 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4771 if test "${lt_cv_path_NM+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   if test -n "$NM"; then
4775   # Let the user override the test.
4776   lt_cv_path_NM="$NM"
4777 else
4778   lt_nm_to_check="${ac_tool_prefix}nm"
4779   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4780     lt_nm_to_check="$lt_nm_to_check nm"
4781   fi
4782   for lt_tmp_nm in $lt_nm_to_check; do
4783     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4784     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4785       IFS="$lt_save_ifs"
4786       test -z "$ac_dir" && ac_dir=.
4787       tmp_nm="$ac_dir/$lt_tmp_nm"
4788       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4789         # Check to see if the nm accepts a BSD-compat flag.
4790         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4791         #   nm: unknown option "B" ignored
4792         # Tru64's nm complains that /dev/null is an invalid object file
4793         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4794         */dev/null* | *'Invalid file or object type'*)
4795           lt_cv_path_NM="$tmp_nm -B"
4796           break
4797           ;;
4798         *)
4799           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4800           */dev/null*)
4801             lt_cv_path_NM="$tmp_nm -p"
4802             break
4803             ;;
4804           *)
4805             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4806             continue # so that we can try to find one that supports BSD flags
4807             ;;
4808           esac
4809           ;;
4810         esac
4811       fi
4812     done
4813     IFS="$lt_save_ifs"
4814   done
4815   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4816 fi
4817 fi
4818 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4819 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4820 NM="$lt_cv_path_NM"
4821
4822 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4823 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4824 LN_S=$as_ln_s
4825 if test "$LN_S" = "ln -s"; then
4826   { echo "$as_me:$LINENO: result: yes" >&5
4827 echo "${ECHO_T}yes" >&6; }
4828 else
4829   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4830 echo "${ECHO_T}no, using $LN_S" >&6; }
4831 fi
4832
4833 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4834 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4835 if test "${lt_cv_deplibs_check_method+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   lt_cv_file_magic_cmd='$MAGIC_CMD'
4839 lt_cv_file_magic_test_file=
4840 lt_cv_deplibs_check_method='unknown'
4841 # Need to set the preceding variable on all platforms that support
4842 # interlibrary dependencies.
4843 # 'none' -- dependencies not supported.
4844 # `unknown' -- same as none, but documents that we really don't know.
4845 # 'pass_all' -- all dependencies passed with no checks.
4846 # 'test_compile' -- check by making test program.
4847 # 'file_magic [[regex]]' -- check by looking for files in library path
4848 # which responds to the $file_magic_cmd with a given extended regex.
4849 # If you have `file' or equivalent on your system and you're not sure
4850 # whether `pass_all' will *always* work, you probably want this one.
4851
4852 case $host_os in
4853 aix[4-9]*)
4854   lt_cv_deplibs_check_method=pass_all
4855   ;;
4856
4857 beos*)
4858   lt_cv_deplibs_check_method=pass_all
4859   ;;
4860
4861 bsdi[45]*)
4862   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4863   lt_cv_file_magic_cmd='/usr/bin/file -L'
4864   lt_cv_file_magic_test_file=/shlib/libc.so
4865   ;;
4866
4867 cygwin*)
4868   # func_win32_libid is a shell function defined in ltmain.sh
4869   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4870   lt_cv_file_magic_cmd='func_win32_libid'
4871   ;;
4872
4873 mingw* | pw32*)
4874   # Base MSYS/MinGW do not provide the 'file' command needed by
4875   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4876   # unless we find 'file', for example because we are cross-compiling.
4877   if ( file / ) >/dev/null 2>&1; then
4878     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4879     lt_cv_file_magic_cmd='func_win32_libid'
4880   else
4881     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4882     lt_cv_file_magic_cmd='$OBJDUMP -f'
4883   fi
4884   ;;
4885
4886 darwin* | rhapsody*)
4887   lt_cv_deplibs_check_method=pass_all
4888   ;;
4889
4890 freebsd* | dragonfly*)
4891   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4892     case $host_cpu in
4893     i*86 )
4894       # Not sure whether the presence of OpenBSD here was a mistake.
4895       # Let's accept both of them until this is cleared up.
4896       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4897       lt_cv_file_magic_cmd=/usr/bin/file
4898       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4899       ;;
4900     esac
4901   else
4902     lt_cv_deplibs_check_method=pass_all
4903   fi
4904   ;;
4905
4906 gnu*)
4907   lt_cv_deplibs_check_method=pass_all
4908   ;;
4909
4910 hpux10.20* | hpux11*)
4911   lt_cv_file_magic_cmd=/usr/bin/file
4912   case $host_cpu in
4913   ia64*)
4914     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4915     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4916     ;;
4917   hppa*64*)
4918     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]'
4919     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4920     ;;
4921   *)
4922     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4923     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4924     ;;
4925   esac
4926   ;;
4927
4928 interix[3-9]*)
4929   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4930   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4931   ;;
4932
4933 irix5* | irix6* | nonstopux*)
4934   case $LD in
4935   *-32|*"-32 ") libmagic=32-bit;;
4936   *-n32|*"-n32 ") libmagic=N32;;
4937   *-64|*"-64 ") libmagic=64-bit;;
4938   *) libmagic=never-match;;
4939   esac
4940   lt_cv_deplibs_check_method=pass_all
4941   ;;
4942
4943 # This must be Linux ELF.
4944 linux* | k*bsd*-gnu)
4945   lt_cv_deplibs_check_method=pass_all
4946   ;;
4947
4948 netbsd* | netbsdelf*-gnu)
4949   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4950     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4951   else
4952     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4953   fi
4954   ;;
4955
4956 newos6*)
4957   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4958   lt_cv_file_magic_cmd=/usr/bin/file
4959   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4960   ;;
4961
4962 nto-qnx*)
4963   lt_cv_deplibs_check_method=unknown
4964   ;;
4965
4966 openbsd*)
4967   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4968     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4969   else
4970     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4971   fi
4972   ;;
4973
4974 osf3* | osf4* | osf5*)
4975   lt_cv_deplibs_check_method=pass_all
4976   ;;
4977
4978 rdos*)
4979   lt_cv_deplibs_check_method=pass_all
4980   ;;
4981
4982 solaris*)
4983   lt_cv_deplibs_check_method=pass_all
4984   ;;
4985
4986 sysv4 | sysv4.3*)
4987   case $host_vendor in
4988   motorola)
4989     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]'
4990     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4991     ;;
4992   ncr)
4993     lt_cv_deplibs_check_method=pass_all
4994     ;;
4995   sequent)
4996     lt_cv_file_magic_cmd='/bin/file'
4997     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4998     ;;
4999   sni)
5000     lt_cv_file_magic_cmd='/bin/file'
5001     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5002     lt_cv_file_magic_test_file=/lib/libc.so
5003     ;;
5004   siemens)
5005     lt_cv_deplibs_check_method=pass_all
5006     ;;
5007   pc)
5008     lt_cv_deplibs_check_method=pass_all
5009     ;;
5010   esac
5011   ;;
5012
5013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5014   lt_cv_deplibs_check_method=pass_all
5015   ;;
5016 esac
5017
5018 fi
5019 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5020 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5021 file_magic_cmd=$lt_cv_file_magic_cmd
5022 deplibs_check_method=$lt_cv_deplibs_check_method
5023 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5024
5025
5026
5027
5028 # If no C compiler was specified, use CC.
5029 LTCC=${LTCC-"$CC"}
5030
5031 # If no C compiler flags were specified, use CFLAGS.
5032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5033
5034 # Allow CC to be a program name with arguments.
5035 compiler=$CC
5036
5037
5038 # Check whether --enable-libtool-lock was given.
5039 if test "${enable_libtool_lock+set}" = set; then
5040   enableval=$enable_libtool_lock;
5041 fi
5042
5043 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5044
5045 # Some flags need to be propagated to the compiler or linker for good
5046 # libtool support.
5047 case $host in
5048 ia64-*-hpux*)
5049   # Find out which ABI we are using.
5050   echo 'int i;' > conftest.$ac_ext
5051   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052   (eval $ac_compile) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); }; then
5056     case `/usr/bin/file conftest.$ac_objext` in
5057     *ELF-32*)
5058       HPUX_IA64_MODE="32"
5059       ;;
5060     *ELF-64*)
5061       HPUX_IA64_MODE="64"
5062       ;;
5063     esac
5064   fi
5065   rm -rf conftest*
5066   ;;
5067 *-*-irix6*)
5068   # Find out which ABI we are using.
5069   echo '#line 5069 "configure"' > conftest.$ac_ext
5070   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071   (eval $ac_compile) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); }; then
5075    if test "$lt_cv_prog_gnu_ld" = yes; then
5076     case `/usr/bin/file conftest.$ac_objext` in
5077     *32-bit*)
5078       LD="${LD-ld} -melf32bsmip"
5079       ;;
5080     *N32*)
5081       LD="${LD-ld} -melf32bmipn32"
5082       ;;
5083     *64-bit*)
5084       LD="${LD-ld} -melf64bmip"
5085       ;;
5086     esac
5087    else
5088     case `/usr/bin/file conftest.$ac_objext` in
5089     *32-bit*)
5090       LD="${LD-ld} -32"
5091       ;;
5092     *N32*)
5093       LD="${LD-ld} -n32"
5094       ;;
5095     *64-bit*)
5096       LD="${LD-ld} -64"
5097       ;;
5098     esac
5099    fi
5100   fi
5101   rm -rf conftest*
5102   ;;
5103
5104 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5105 s390*-*linux*|sparc*-*linux*)
5106   # Find out which ABI we are using.
5107   echo 'int i;' > conftest.$ac_ext
5108   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5109   (eval $ac_compile) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; then
5113     case `/usr/bin/file conftest.o` in
5114     *32-bit*)
5115       case $host in
5116         x86_64-*kfreebsd*-gnu)
5117           LD="${LD-ld} -m elf_i386_fbsd"
5118           ;;
5119         x86_64-*linux*)
5120           LD="${LD-ld} -m elf_i386"
5121           ;;
5122         ppc64-*linux*|powerpc64-*linux*)
5123           LD="${LD-ld} -m elf32ppclinux"
5124           ;;
5125         s390x-*linux*)
5126           LD="${LD-ld} -m elf_s390"
5127           ;;
5128         sparc64-*linux*)
5129           LD="${LD-ld} -m elf32_sparc"
5130           ;;
5131       esac
5132       ;;
5133     *64-bit*)
5134       case $host in
5135         x86_64-*kfreebsd*-gnu)
5136           LD="${LD-ld} -m elf_x86_64_fbsd"
5137           ;;
5138         x86_64-*linux*)
5139           LD="${LD-ld} -m elf_x86_64"
5140           ;;
5141         ppc*-*linux*|powerpc*-*linux*)
5142           LD="${LD-ld} -m elf64ppc"
5143           ;;
5144         s390*-*linux*)
5145           LD="${LD-ld} -m elf64_s390"
5146           ;;
5147         sparc*-*linux*)
5148           LD="${LD-ld} -m elf64_sparc"
5149           ;;
5150       esac
5151       ;;
5152     esac
5153   fi
5154   rm -rf conftest*
5155   ;;
5156
5157 *-*-sco3.2v5*)
5158   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5159   SAVE_CFLAGS="$CFLAGS"
5160   CFLAGS="$CFLAGS -belf"
5161   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5162 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5163 if test "${lt_cv_cc_needs_belf+set}" = set; then
5164   echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166   ac_ext=c
5167 ac_cpp='$CPP $CPPFLAGS'
5168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5171
5172      cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h.  */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h.  */
5178
5179 int
5180 main ()
5181 {
5182
5183   ;
5184   return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext conftest$ac_exeext
5188 if { (ac_try="$ac_link"
5189 case "(($ac_try" in
5190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191   *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194   (eval "$ac_link") 2>conftest.er1
5195   ac_status=$?
5196   grep -v '^ *+' conftest.er1 >conftest.err
5197   rm -f conftest.er1
5198   cat conftest.err >&5
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); } && {
5201          test -z "$ac_c_werror_flag" ||
5202          test ! -s conftest.err
5203        } && test -s conftest$ac_exeext &&
5204        $as_test_x conftest$ac_exeext; then
5205   lt_cv_cc_needs_belf=yes
5206 else
5207   echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210         lt_cv_cc_needs_belf=no
5211 fi
5212
5213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5214       conftest$ac_exeext conftest.$ac_ext
5215      ac_ext=c
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220
5221 fi
5222 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5223 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5224   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5225     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5226     CFLAGS="$SAVE_CFLAGS"
5227   fi
5228   ;;
5229 sparc*-*solaris*)
5230   # Find out which ABI we are using.
5231   echo 'int i;' > conftest.$ac_ext
5232   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233   (eval $ac_compile) 2>&5
5234   ac_status=$?
5235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); }; then
5237     case `/usr/bin/file conftest.o` in
5238     *64-bit*)
5239       case $lt_cv_prog_gnu_ld in
5240       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5241       *)
5242         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5243           LD="${LD-ld} -64"
5244         fi
5245         ;;
5246       esac
5247       ;;
5248     esac
5249   fi
5250   rm -rf conftest*
5251   ;;
5252
5253
5254 esac
5255
5256 need_locks="$enable_libtool_lock"
5257
5258
5259
5260 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5261 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5262 if test "${ac_cv_header_stdc+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h.  */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h.  */
5271 #include <stdlib.h>
5272 #include <stdarg.h>
5273 #include <string.h>
5274 #include <float.h>
5275
5276 int
5277 main ()
5278 {
5279
5280   ;
5281   return 0;
5282 }
5283 _ACEOF
5284 rm -f conftest.$ac_objext
5285 if { (ac_try="$ac_compile"
5286 case "(($ac_try" in
5287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288   *) ac_try_echo=$ac_try;;
5289 esac
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291   (eval "$ac_compile") 2>conftest.er1
5292   ac_status=$?
5293   grep -v '^ *+' conftest.er1 >conftest.err
5294   rm -f conftest.er1
5295   cat conftest.err >&5
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); } && {
5298          test -z "$ac_c_werror_flag" ||
5299          test ! -s conftest.err
5300        } && test -s conftest.$ac_objext; then
5301   ac_cv_header_stdc=yes
5302 else
5303   echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306         ac_cv_header_stdc=no
5307 fi
5308
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310
5311 if test $ac_cv_header_stdc = yes; then
5312   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5313   cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h.  */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h.  */
5319 #include <string.h>
5320
5321 _ACEOF
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323   $EGREP "memchr" >/dev/null 2>&1; then
5324   :
5325 else
5326   ac_cv_header_stdc=no
5327 fi
5328 rm -f conftest*
5329
5330 fi
5331
5332 if test $ac_cv_header_stdc = yes; then
5333   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5334   cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h.  */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h.  */
5340 #include <stdlib.h>
5341
5342 _ACEOF
5343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5344   $EGREP "free" >/dev/null 2>&1; then
5345   :
5346 else
5347   ac_cv_header_stdc=no
5348 fi
5349 rm -f conftest*
5350
5351 fi
5352
5353 if test $ac_cv_header_stdc = yes; then
5354   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5355   if test "$cross_compiling" = yes; then
5356   :
5357 else
5358   cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h.  */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h.  */
5364 #include <ctype.h>
5365 #include <stdlib.h>
5366 #if ((' ' & 0x0FF) == 0x020)
5367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5369 #else
5370 # define ISLOWER(c) \
5371                    (('a' <= (c) && (c) <= 'i') \
5372                      || ('j' <= (c) && (c) <= 'r') \
5373                      || ('s' <= (c) && (c) <= 'z'))
5374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5375 #endif
5376
5377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5378 int
5379 main ()
5380 {
5381   int i;
5382   for (i = 0; i < 256; i++)
5383     if (XOR (islower (i), ISLOWER (i))
5384         || toupper (i) != TOUPPER (i))
5385       return 2;
5386   return 0;
5387 }
5388 _ACEOF
5389 rm -f conftest$ac_exeext
5390 if { (ac_try="$ac_link"
5391 case "(($ac_try" in
5392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393   *) ac_try_echo=$ac_try;;
5394 esac
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396   (eval "$ac_link") 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5400   { (case "(($ac_try" in
5401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402   *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405   (eval "$ac_try") 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; }; then
5409   :
5410 else
5411   echo "$as_me: program exited with status $ac_status" >&5
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ( exit $ac_status )
5416 ac_cv_header_stdc=no
5417 fi
5418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5419 fi
5420
5421
5422 fi
5423 fi
5424 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5425 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5426 if test $ac_cv_header_stdc = yes; then
5427
5428 cat >>confdefs.h <<\_ACEOF
5429 #define STDC_HEADERS 1
5430 _ACEOF
5431
5432 fi
5433
5434 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5445                   inttypes.h stdint.h unistd.h
5446 do
5447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h.  */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h.  */
5459 $ac_includes_default
5460
5461 #include <$ac_header>
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467   *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470   (eval "$ac_compile") 2>conftest.er1
5471   ac_status=$?
5472   grep -v '^ *+' conftest.er1 >conftest.err
5473   rm -f conftest.er1
5474   cat conftest.err >&5
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } && {
5477          test -z "$ac_c_werror_flag" ||
5478          test ! -s conftest.err
5479        } && test -s conftest.$ac_objext; then
5480   eval "$as_ac_Header=yes"
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485         eval "$as_ac_Header=no"
5486 fi
5487
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 fi
5490 ac_res=`eval echo '${'$as_ac_Header'}'`
5491                { echo "$as_me:$LINENO: result: $ac_res" >&5
5492 echo "${ECHO_T}$ac_res" >&6; }
5493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5494   cat >>confdefs.h <<_ACEOF
5495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5496 _ACEOF
5497
5498 fi
5499
5500 done
5501
5502
5503
5504 for ac_header in dlfcn.h
5505 do
5506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5508   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5511   echo $ECHO_N "(cached) $ECHO_C" >&6
5512 fi
5513 ac_res=`eval echo '${'$as_ac_Header'}'`
5514                { echo "$as_me:$LINENO: result: $ac_res" >&5
5515 echo "${ECHO_T}$ac_res" >&6; }
5516 else
5517   # Is the header compilable?
5518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h.  */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h.  */
5526 $ac_includes_default
5527 #include <$ac_header>
5528 _ACEOF
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5531 case "(($ac_try" in
5532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533   *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536   (eval "$ac_compile") 2>conftest.er1
5537   ac_status=$?
5538   grep -v '^ *+' conftest.er1 >conftest.err
5539   rm -f conftest.er1
5540   cat conftest.err >&5
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } && {
5543          test -z "$ac_c_werror_flag" ||
5544          test ! -s conftest.err
5545        } && test -s conftest.$ac_objext; then
5546   ac_header_compiler=yes
5547 else
5548   echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5550
5551         ac_header_compiler=no
5552 fi
5553
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5556 echo "${ECHO_T}$ac_header_compiler" >&6; }
5557
5558 # Is the header present?
5559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h.  */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h.  */
5567 #include <$ac_header>
5568 _ACEOF
5569 if { (ac_try="$ac_cpp conftest.$ac_ext"
5570 case "(($ac_try" in
5571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572   *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5576   ac_status=$?
5577   grep -v '^ *+' conftest.er1 >conftest.err
5578   rm -f conftest.er1
5579   cat conftest.err >&5
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } >/dev/null && {
5582          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5583          test ! -s conftest.err
5584        }; then
5585   ac_header_preproc=yes
5586 else
5587   echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5589
5590   ac_header_preproc=no
5591 fi
5592
5593 rm -f conftest.err conftest.$ac_ext
5594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5595 echo "${ECHO_T}$ac_header_preproc" >&6; }
5596
5597 # So?  What about this header?
5598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5599   yes:no: )
5600     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5604     ac_header_preproc=yes
5605     ;;
5606   no:yes:* )
5607     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5609     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5610 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5611     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5613     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5614 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5617     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5619     ( cat <<\_ASBOX
5620 ## ------------------------------------ ##
5621 ## Report this to opensource@google.com ##
5622 ## ------------------------------------ ##
5623 _ASBOX
5624      ) | sed "s/^/$as_me: WARNING:     /" >&2
5625     ;;
5626 esac
5627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   eval "$as_ac_Header=\$ac_header_preproc"
5633 fi
5634 ac_res=`eval echo '${'$as_ac_Header'}'`
5635                { echo "$as_me:$LINENO: result: $ac_res" >&5
5636 echo "${ECHO_T}$ac_res" >&6; }
5637
5638 fi
5639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5640   cat >>confdefs.h <<_ACEOF
5641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5642 _ACEOF
5643
5644 fi
5645
5646 done
5647
5648
5649
5650 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5651     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5652     (test "X$CXX" != "Xg++"))) ; then
5653   ac_ext=cpp
5654 ac_cpp='$CXXCPP $CPPFLAGS'
5655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5658 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5659 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5660 if test -z "$CXXCPP"; then
5661   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664       # Double quotes because CXXCPP needs to be expanded
5665     for CXXCPP in "$CXX -E" "/lib/cpp"
5666     do
5667       ac_preproc_ok=false
5668 for ac_cxx_preproc_warn_flag in '' yes
5669 do
5670   # Use a header file that comes with gcc, so configuring glibc
5671   # with a fresh cross-compiler works.
5672   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673   # <limits.h> exists even on freestanding compilers.
5674   # On the NeXT, cc -E runs the code through the compiler's parser,
5675   # not just through cpp. "Syntax error" is here to catch this case.
5676   cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h.  */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h.  */
5682 #ifdef __STDC__
5683 # include <limits.h>
5684 #else
5685 # include <assert.h>
5686 #endif
5687                      Syntax error
5688 _ACEOF
5689 if { (ac_try="$ac_cpp conftest.$ac_ext"
5690 case "(($ac_try" in
5691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692   *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5696   ac_status=$?
5697   grep -v '^ *+' conftest.er1 >conftest.err
5698   rm -f conftest.er1
5699   cat conftest.err >&5
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); } >/dev/null && {
5702          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5703          test ! -s conftest.err
5704        }; then
5705   :
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710   # Broken: fails on valid input.
5711 continue
5712 fi
5713
5714 rm -f conftest.err conftest.$ac_ext
5715
5716   # OK, works on sane cases.  Now check whether nonexistent headers
5717   # can be detected and how.
5718   cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h.  */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h.  */
5724 #include <ac_nonexistent.h>
5725 _ACEOF
5726 if { (ac_try="$ac_cpp conftest.$ac_ext"
5727 case "(($ac_try" in
5728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729   *) ac_try_echo=$ac_try;;
5730 esac
5731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5733   ac_status=$?
5734   grep -v '^ *+' conftest.er1 >conftest.err
5735   rm -f conftest.er1
5736   cat conftest.err >&5
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } >/dev/null && {
5739          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5740          test ! -s conftest.err
5741        }; then
5742   # Broken: success on invalid input.
5743 continue
5744 else
5745   echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5747
5748   # Passes both tests.
5749 ac_preproc_ok=:
5750 break
5751 fi
5752
5753 rm -f conftest.err conftest.$ac_ext
5754
5755 done
5756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5757 rm -f conftest.err conftest.$ac_ext
5758 if $ac_preproc_ok; then
5759   break
5760 fi
5761
5762     done
5763     ac_cv_prog_CXXCPP=$CXXCPP
5764
5765 fi
5766   CXXCPP=$ac_cv_prog_CXXCPP
5767 else
5768   ac_cv_prog_CXXCPP=$CXXCPP
5769 fi
5770 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5771 echo "${ECHO_T}$CXXCPP" >&6; }
5772 ac_preproc_ok=false
5773 for ac_cxx_preproc_warn_flag in '' yes
5774 do
5775   # Use a header file that comes with gcc, so configuring glibc
5776   # with a fresh cross-compiler works.
5777   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5778   # <limits.h> exists even on freestanding compilers.
5779   # On the NeXT, cc -E runs the code through the compiler's parser,
5780   # not just through cpp. "Syntax error" is here to catch this case.
5781   cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h.  */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h.  */
5787 #ifdef __STDC__
5788 # include <limits.h>
5789 #else
5790 # include <assert.h>
5791 #endif
5792                      Syntax error
5793 _ACEOF
5794 if { (ac_try="$ac_cpp conftest.$ac_ext"
5795 case "(($ac_try" in
5796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797   *) ac_try_echo=$ac_try;;
5798 esac
5799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5801   ac_status=$?
5802   grep -v '^ *+' conftest.er1 >conftest.err
5803   rm -f conftest.er1
5804   cat conftest.err >&5
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); } >/dev/null && {
5807          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5808          test ! -s conftest.err
5809        }; then
5810   :
5811 else
5812   echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5814
5815   # Broken: fails on valid input.
5816 continue
5817 fi
5818
5819 rm -f conftest.err conftest.$ac_ext
5820
5821   # OK, works on sane cases.  Now check whether nonexistent headers
5822   # can be detected and how.
5823   cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829 #include <ac_nonexistent.h>
5830 _ACEOF
5831 if { (ac_try="$ac_cpp conftest.$ac_ext"
5832 case "(($ac_try" in
5833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834   *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5838   ac_status=$?
5839   grep -v '^ *+' conftest.er1 >conftest.err
5840   rm -f conftest.er1
5841   cat conftest.err >&5
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); } >/dev/null && {
5844          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5845          test ! -s conftest.err
5846        }; then
5847   # Broken: success on invalid input.
5848 continue
5849 else
5850   echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853   # Passes both tests.
5854 ac_preproc_ok=:
5855 break
5856 fi
5857
5858 rm -f conftest.err conftest.$ac_ext
5859
5860 done
5861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5862 rm -f conftest.err conftest.$ac_ext
5863 if $ac_preproc_ok; then
5864   :
5865 else
5866   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5867 See \`config.log' for more details." >&5
5868 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5869 See \`config.log' for more details." >&2;}
5870    { (exit 1); exit 1; }; }
5871 fi
5872
5873 ac_ext=cpp
5874 ac_cpp='$CXXCPP $CPPFLAGS'
5875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5878
5879 fi
5880
5881
5882 ac_ext=f
5883 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5884 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5885 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5886 if test -n "$ac_tool_prefix"; then
5887   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
5888   do
5889     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5893 if test "${ac_cv_prog_F77+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   if test -n "$F77"; then
5897   ac_cv_prog_F77="$F77" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904   for ac_exec_ext in '' $ac_executable_extensions; do
5905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911 done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 F77=$ac_cv_prog_F77
5917 if test -n "$F77"; then
5918   { echo "$as_me:$LINENO: result: $F77" >&5
5919 echo "${ECHO_T}$F77" >&6; }
5920 else
5921   { echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6; }
5923 fi
5924
5925
5926     test -n "$F77" && break
5927   done
5928 fi
5929 if test -z "$F77"; then
5930   ac_ct_F77=$F77
5931   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
5932 do
5933   # Extract the first word of "$ac_prog", so it can be a program name with args.
5934 set dummy $ac_prog; ac_word=$2
5935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5937 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5938   echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940   if test -n "$ac_ct_F77"; then
5941   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946   IFS=$as_save_IFS
5947   test -z "$as_dir" && as_dir=.
5948   for ac_exec_ext in '' $ac_executable_extensions; do
5949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950     ac_cv_prog_ac_ct_F77="$ac_prog"
5951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952     break 2
5953   fi
5954 done
5955 done
5956 IFS=$as_save_IFS
5957
5958 fi
5959 fi
5960 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5961 if test -n "$ac_ct_F77"; then
5962   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5963 echo "${ECHO_T}$ac_ct_F77" >&6; }
5964 else
5965   { echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6; }
5967 fi
5968
5969
5970   test -n "$ac_ct_F77" && break
5971 done
5972
5973   if test "x$ac_ct_F77" = x; then
5974     F77=""
5975   else
5976     case $cross_compiling:$ac_tool_warned in
5977 yes:)
5978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5979 whose name does not start with the host triplet.  If you think this
5980 configuration is useful to you, please write to autoconf@gnu.org." >&5
5981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5982 whose name does not start with the host triplet.  If you think this
5983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5984 ac_tool_warned=yes ;;
5985 esac
5986     F77=$ac_ct_F77
5987   fi
5988 fi
5989
5990
5991 # Provide some information about the compiler.
5992 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5993 ac_compiler=`set X $ac_compile; echo $2`
5994 { (ac_try="$ac_compiler --version >&5"
5995 case "(($ac_try" in
5996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997   *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000   (eval "$ac_compiler --version >&5") 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }
6004 { (ac_try="$ac_compiler -v >&5"
6005 case "(($ac_try" in
6006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007   *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010   (eval "$ac_compiler -v >&5") 2>&5
6011   ac_status=$?
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); }
6014 { (ac_try="$ac_compiler -V >&5"
6015 case "(($ac_try" in
6016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017   *) ac_try_echo=$ac_try;;
6018 esac
6019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020   (eval "$ac_compiler -V >&5") 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); }
6024 rm -f a.out
6025
6026 # If we don't use `.F' as extension, the preprocessor is not run on the
6027 # input file.  (Note that this only needs to work for GNU compilers.)
6028 ac_save_ext=$ac_ext
6029 ac_ext=F
6030 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6031 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6032 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   cat >conftest.$ac_ext <<_ACEOF
6036       program main
6037 #ifndef __GNUC__
6038        choke me
6039 #endif
6040
6041       end
6042 _ACEOF
6043 rm -f conftest.$ac_objext
6044 if { (ac_try="$ac_compile"
6045 case "(($ac_try" in
6046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047   *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050   (eval "$ac_compile") 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } && {
6057          test -z "$ac_f77_werror_flag" ||
6058          test ! -s conftest.err
6059        } && test -s conftest.$ac_objext; then
6060   ac_compiler_gnu=yes
6061 else
6062   echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065         ac_compiler_gnu=no
6066 fi
6067
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6070
6071 fi
6072 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6073 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6074 ac_ext=$ac_save_ext
6075 ac_test_FFLAGS=${FFLAGS+set}
6076 ac_save_FFLAGS=$FFLAGS
6077 FFLAGS=
6078 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6079 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6080 if test "${ac_cv_prog_f77_g+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   FFLAGS=-g
6084 cat >conftest.$ac_ext <<_ACEOF
6085       program main
6086
6087       end
6088 _ACEOF
6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6091 case "(($ac_try" in
6092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093   *) ac_try_echo=$ac_try;;
6094 esac
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096   (eval "$ac_compile") 2>conftest.er1
6097   ac_status=$?
6098   grep -v '^ *+' conftest.er1 >conftest.err
6099   rm -f conftest.er1
6100   cat conftest.err >&5
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); } && {
6103          test -z "$ac_f77_werror_flag" ||
6104          test ! -s conftest.err
6105        } && test -s conftest.$ac_objext; then
6106   ac_cv_prog_f77_g=yes
6107 else
6108   echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6110
6111         ac_cv_prog_f77_g=no
6112 fi
6113
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115
6116 fi
6117 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6118 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6119 if test "$ac_test_FFLAGS" = set; then
6120   FFLAGS=$ac_save_FFLAGS
6121 elif test $ac_cv_prog_f77_g = yes; then
6122   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6123     FFLAGS="-g -O2"
6124   else
6125     FFLAGS="-g"
6126   fi
6127 else
6128   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6129     FFLAGS="-O2"
6130   else
6131     FFLAGS=
6132   fi
6133 fi
6134
6135 G77=`test $ac_compiler_gnu = yes && echo yes`
6136 ac_ext=c
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141
6142
6143
6144 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6145 # find the maximum length of command line arguments
6146 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6147 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6148 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151     i=0
6152   teststring="ABCD"
6153
6154   case $build_os in
6155   msdosdjgpp*)
6156     # On DJGPP, this test can blow up pretty badly due to problems in libc
6157     # (any single argument exceeding 2000 bytes causes a buffer overrun
6158     # during glob expansion).  Even if it were fixed, the result of this
6159     # check would be larger than it should be.
6160     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6161     ;;
6162
6163   gnu*)
6164     # Under GNU Hurd, this test is not required because there is
6165     # no limit to the length of command line arguments.
6166     # Libtool will interpret -1 as no limit whatsoever
6167     lt_cv_sys_max_cmd_len=-1;
6168     ;;
6169
6170   cygwin* | mingw*)
6171     # On Win9x/ME, this test blows up -- it succeeds, but takes
6172     # about 5 minutes as the teststring grows exponentially.
6173     # Worse, since 9x/ME are not pre-emptively multitasking,
6174     # you end up with a "frozen" computer, even though with patience
6175     # the test eventually succeeds (with a max line length of 256k).
6176     # Instead, let's just punt: use the minimum linelength reported by
6177     # all of the supported platforms: 8192 (on NT/2K/XP).
6178     lt_cv_sys_max_cmd_len=8192;
6179     ;;
6180
6181   amigaos*)
6182     # On AmigaOS with pdksh, this test takes hours, literally.
6183     # So we just punt and use a minimum line length of 8192.
6184     lt_cv_sys_max_cmd_len=8192;
6185     ;;
6186
6187   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6188     # This has been around since 386BSD, at least.  Likely further.
6189     if test -x /sbin/sysctl; then
6190       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6191     elif test -x /usr/sbin/sysctl; then
6192       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6193     else
6194       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6195     fi
6196     # And add a safety zone
6197     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6198     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6199     ;;
6200
6201   interix*)
6202     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6203     lt_cv_sys_max_cmd_len=196608
6204     ;;
6205
6206   osf*)
6207     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6208     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6209     # nice to cause kernel panics so lets avoid the loop below.
6210     # First set a reasonable default.
6211     lt_cv_sys_max_cmd_len=16384
6212     #
6213     if test -x /sbin/sysconfig; then
6214       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6215         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6216       esac
6217     fi
6218     ;;
6219   sco3.2v5*)
6220     lt_cv_sys_max_cmd_len=102400
6221     ;;
6222   sysv5* | sco5v6* | sysv4.2uw2*)
6223     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6224     if test -n "$kargmax"; then
6225       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6226     else
6227       lt_cv_sys_max_cmd_len=32768
6228     fi
6229     ;;
6230   *)
6231     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6232     if test -n "$lt_cv_sys_max_cmd_len"; then
6233       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6234       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6235     else
6236       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6237       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6238                = "XX$teststring") >/dev/null 2>&1 &&
6239               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6240               lt_cv_sys_max_cmd_len=$new_result &&
6241               test $i != 17 # 1/2 MB should be enough
6242       do
6243         i=`expr $i + 1`
6244         teststring=$teststring$teststring
6245       done
6246       teststring=
6247       # Add a significant safety factor because C++ compilers can tack on massive
6248       # amounts of additional arguments before passing them to the linker.
6249       # It appears as though 1/2 is a usable value.
6250       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6251     fi
6252     ;;
6253   esac
6254
6255 fi
6256
6257 if test -n $lt_cv_sys_max_cmd_len ; then
6258   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6259 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6260 else
6261   { echo "$as_me:$LINENO: result: none" >&5
6262 echo "${ECHO_T}none" >&6; }
6263 fi
6264
6265
6266
6267
6268
6269 # Check for command to grab the raw symbol name followed by C symbol from nm.
6270 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6271 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6272 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275
6276 # These are sane defaults that work on at least a few old systems.
6277 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6278
6279 # Character class describing NM global symbol codes.
6280 symcode='[BCDEGRST]'
6281
6282 # Regexp to match symbols that can be accessed directly from C.
6283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6284
6285 # Transform an extracted symbol line into a proper C declaration
6286 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6287
6288 # Transform an extracted symbol line into symbol name and symbol address
6289 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'"
6290
6291 # Define system-specific variables.
6292 case $host_os in
6293 aix*)
6294   symcode='[BCDT]'
6295   ;;
6296 cygwin* | mingw* | pw32*)
6297   symcode='[ABCDGISTW]'
6298   ;;
6299 hpux*) # Its linker distinguishes data from code symbols
6300   if test "$host_cpu" = ia64; then
6301     symcode='[ABCDEGRST]'
6302   fi
6303   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6304   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6305   ;;
6306 linux* | k*bsd*-gnu)
6307   if test "$host_cpu" = ia64; then
6308     symcode='[ABCDGIRSTW]'
6309     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6310     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'"
6311   fi
6312   ;;
6313 irix* | nonstopux*)
6314   symcode='[BCDEGRST]'
6315   ;;
6316 osf*)
6317   symcode='[BCDEGQRST]'
6318   ;;
6319 solaris*)
6320   symcode='[BDRT]'
6321   ;;
6322 sco3.2v5*)
6323   symcode='[DT]'
6324   ;;
6325 sysv4.2uw2*)
6326   symcode='[DT]'
6327   ;;
6328 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6329   symcode='[ABDT]'
6330   ;;
6331 sysv4)
6332   symcode='[DFNSTU]'
6333   ;;
6334 esac
6335
6336 # Handle CRLF in mingw tool chain
6337 opt_cr=
6338 case $build_os in
6339 mingw*)
6340   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6341   ;;
6342 esac
6343
6344 # If we're using GNU nm, then use its standard symbol codes.
6345 case `$NM -V 2>&1` in
6346 *GNU* | *'with BFD'*)
6347   symcode='[ABCDGIRSTW]' ;;
6348 esac
6349
6350 # Try without a prefix undercore, then with it.
6351 for ac_symprfx in "" "_"; do
6352
6353   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6354   symxfrm="\\1 $ac_symprfx\\2 \\2"
6355
6356   # Write the raw and C identifiers.
6357   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6358
6359   # Check to see that the pipe works correctly.
6360   pipe_works=no
6361
6362   rm -f conftest*
6363   cat > conftest.$ac_ext <<EOF
6364 #ifdef __cplusplus
6365 extern "C" {
6366 #endif
6367 char nm_test_var;
6368 void nm_test_func(){}
6369 #ifdef __cplusplus
6370 }
6371 #endif
6372 int main(){nm_test_var='a';nm_test_func();return(0);}
6373 EOF
6374
6375   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376   (eval $ac_compile) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); }; then
6380     # Now try to grab the symbols.
6381     nlist=conftest.nm
6382     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6383   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6384   ac_status=$?
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); } && test -s "$nlist"; then
6387       # Try sorting and uniquifying the output.
6388       if sort "$nlist" | uniq > "$nlist"T; then
6389         mv -f "$nlist"T "$nlist"
6390       else
6391         rm -f "$nlist"T
6392       fi
6393
6394       # Make sure that we snagged all the symbols we need.
6395       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6396         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6397           cat <<EOF > conftest.$ac_ext
6398 #ifdef __cplusplus
6399 extern "C" {
6400 #endif
6401
6402 EOF
6403           # Now generate the symbol file.
6404           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6405
6406           cat <<EOF >> conftest.$ac_ext
6407 #if defined (__STDC__) && __STDC__
6408 # define lt_ptr_t void *
6409 #else
6410 # define lt_ptr_t char *
6411 # define const
6412 #endif
6413
6414 /* The mapping between symbol names and symbols. */
6415 const struct {
6416   const char *name;
6417   lt_ptr_t address;
6418 }
6419 lt_preloaded_symbols[] =
6420 {
6421 EOF
6422           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6423           cat <<\EOF >> conftest.$ac_ext
6424   {0, (lt_ptr_t) 0}
6425 };
6426
6427 #ifdef __cplusplus
6428 }
6429 #endif
6430 EOF
6431           # Now try linking the two files.
6432           mv conftest.$ac_objext conftstm.$ac_objext
6433           lt_save_LIBS="$LIBS"
6434           lt_save_CFLAGS="$CFLAGS"
6435           LIBS="conftstm.$ac_objext"
6436           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6437           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6438   (eval $ac_link) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6442             pipe_works=yes
6443           fi
6444           LIBS="$lt_save_LIBS"
6445           CFLAGS="$lt_save_CFLAGS"
6446         else
6447           echo "cannot find nm_test_func in $nlist" >&5
6448         fi
6449       else
6450         echo "cannot find nm_test_var in $nlist" >&5
6451       fi
6452     else
6453       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6454     fi
6455   else
6456     echo "$progname: failed program was:" >&5
6457     cat conftest.$ac_ext >&5
6458   fi
6459   rm -rf conftest* conftst*
6460
6461   # Do not use the global_symbol_pipe unless it works.
6462   if test "$pipe_works" = yes; then
6463     break
6464   else
6465     lt_cv_sys_global_symbol_pipe=
6466   fi
6467 done
6468
6469 fi
6470
6471 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6472   lt_cv_sys_global_symbol_to_cdecl=
6473 fi
6474 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6475   { echo "$as_me:$LINENO: result: failed" >&5
6476 echo "${ECHO_T}failed" >&6; }
6477 else
6478   { echo "$as_me:$LINENO: result: ok" >&5
6479 echo "${ECHO_T}ok" >&6; }
6480 fi
6481
6482 { echo "$as_me:$LINENO: checking for objdir" >&5
6483 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6484 if test "${lt_cv_objdir+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487   rm -f .libs 2>/dev/null
6488 mkdir .libs 2>/dev/null
6489 if test -d .libs; then
6490   lt_cv_objdir=.libs
6491 else
6492   # MS-DOS does not allow filenames that begin with a dot.
6493   lt_cv_objdir=_libs
6494 fi
6495 rmdir .libs 2>/dev/null
6496 fi
6497 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6498 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6499 objdir=$lt_cv_objdir
6500
6501
6502
6503
6504
6505 case $host_os in
6506 aix3*)
6507   # AIX sometimes has problems with the GCC collect2 program.  For some
6508   # reason, if we set the COLLECT_NAMES environment variable, the problems
6509   # vanish in a puff of smoke.
6510   if test "X${COLLECT_NAMES+set}" != Xset; then
6511     COLLECT_NAMES=
6512     export COLLECT_NAMES
6513   fi
6514   ;;
6515 esac
6516
6517 # Sed substitution that helps us do robust quoting.  It backslashifies
6518 # metacharacters that are still active within double-quoted strings.
6519 Xsed='sed -e 1s/^X//'
6520 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6521
6522 # Same as above, but do not quote variable references.
6523 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6524
6525 # Sed substitution to delay expansion of an escaped shell variable in a
6526 # double_quote_subst'ed string.
6527 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6528
6529 # Sed substitution to avoid accidental globbing in evaled expressions
6530 no_glob_subst='s/\*/\\\*/g'
6531
6532 # Constants:
6533 rm="rm -f"
6534
6535 # Global variables:
6536 default_ofile=libtool
6537 can_build_shared=yes
6538
6539 # All known linkers require a `.a' archive for static linking (except MSVC,
6540 # which needs '.lib').
6541 libext=a
6542 ltmain="$ac_aux_dir/ltmain.sh"
6543 ofile="$default_ofile"
6544 with_gnu_ld="$lt_cv_prog_gnu_ld"
6545
6546 if test -n "$ac_tool_prefix"; then
6547   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6548 set dummy ${ac_tool_prefix}ar; ac_word=$2
6549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6551 if test "${ac_cv_prog_AR+set}" = set; then
6552   echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554   if test -n "$AR"; then
6555   ac_cv_prog_AR="$AR" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560   IFS=$as_save_IFS
6561   test -z "$as_dir" && as_dir=.
6562   for ac_exec_ext in '' $ac_executable_extensions; do
6563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564     ac_cv_prog_AR="${ac_tool_prefix}ar"
6565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566     break 2
6567   fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 AR=$ac_cv_prog_AR
6575 if test -n "$AR"; then
6576   { echo "$as_me:$LINENO: result: $AR" >&5
6577 echo "${ECHO_T}$AR" >&6; }
6578 else
6579   { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6581 fi
6582
6583
6584 fi
6585 if test -z "$ac_cv_prog_AR"; then
6586   ac_ct_AR=$AR
6587   # Extract the first word of "ar", so it can be a program name with args.
6588 set dummy ar; ac_word=$2
6589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6592   echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594   if test -n "$ac_ct_AR"; then
6595   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602   for ac_exec_ext in '' $ac_executable_extensions; do
6603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604     ac_cv_prog_ac_ct_AR="ar"
6605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6615 if test -n "$ac_ct_AR"; then
6616   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6617 echo "${ECHO_T}$ac_ct_AR" >&6; }
6618 else
6619   { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6621 fi
6622
6623   if test "x$ac_ct_AR" = x; then
6624     AR="false"
6625   else
6626     case $cross_compiling:$ac_tool_warned in
6627 yes:)
6628 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6629 whose name does not start with the host triplet.  If you think this
6630 configuration is useful to you, please write to autoconf@gnu.org." >&5
6631 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6632 whose name does not start with the host triplet.  If you think this
6633 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6634 ac_tool_warned=yes ;;
6635 esac
6636     AR=$ac_ct_AR
6637   fi
6638 else
6639   AR="$ac_cv_prog_AR"
6640 fi
6641
6642 if test -n "$ac_tool_prefix"; then
6643   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6647 if test "${ac_cv_prog_RANLIB+set}" = set; then
6648   echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650   if test -n "$RANLIB"; then
6651   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658   for ac_exec_ext in '' $ac_executable_extensions; do
6659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665 done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 RANLIB=$ac_cv_prog_RANLIB
6671 if test -n "$RANLIB"; then
6672   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6673 echo "${ECHO_T}$RANLIB" >&6; }
6674 else
6675   { echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6; }
6677 fi
6678
6679
6680 fi
6681 if test -z "$ac_cv_prog_RANLIB"; then
6682   ac_ct_RANLIB=$RANLIB
6683   # Extract the first word of "ranlib", so it can be a program name with args.
6684 set dummy ranlib; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   if test -n "$ac_ct_RANLIB"; then
6691   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696   IFS=$as_save_IFS
6697   test -z "$as_dir" && as_dir=.
6698   for ac_exec_ext in '' $ac_executable_extensions; do
6699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700     ac_cv_prog_ac_ct_RANLIB="ranlib"
6701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702     break 2
6703   fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6711 if test -n "$ac_ct_RANLIB"; then
6712   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6713 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6714 else
6715   { echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6; }
6717 fi
6718
6719   if test "x$ac_ct_RANLIB" = x; then
6720     RANLIB=":"
6721   else
6722     case $cross_compiling:$ac_tool_warned in
6723 yes:)
6724 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6725 whose name does not start with the host triplet.  If you think this
6726 configuration is useful to you, please write to autoconf@gnu.org." >&5
6727 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6728 whose name does not start with the host triplet.  If you think this
6729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6730 ac_tool_warned=yes ;;
6731 esac
6732     RANLIB=$ac_ct_RANLIB
6733   fi
6734 else
6735   RANLIB="$ac_cv_prog_RANLIB"
6736 fi
6737
6738 if test -n "$ac_tool_prefix"; then
6739   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}strip; ac_word=$2
6741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743 if test "${ac_cv_prog_STRIP+set}" = set; then
6744   echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746   if test -n "$STRIP"; then
6747   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754   for ac_exec_ext in '' $ac_executable_extensions; do
6755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 STRIP=$ac_cv_prog_STRIP
6767 if test -n "$STRIP"; then
6768   { echo "$as_me:$LINENO: result: $STRIP" >&5
6769 echo "${ECHO_T}$STRIP" >&6; }
6770 else
6771   { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6773 fi
6774
6775
6776 fi
6777 if test -z "$ac_cv_prog_STRIP"; then
6778   ac_ct_STRIP=$STRIP
6779   # Extract the first word of "strip", so it can be a program name with args.
6780 set dummy strip; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   if test -n "$ac_ct_STRIP"; then
6787   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794   for ac_exec_ext in '' $ac_executable_extensions; do
6795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796     ac_cv_prog_ac_ct_STRIP="strip"
6797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6807 if test -n "$ac_ct_STRIP"; then
6808   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6809 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6810 else
6811   { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6813 fi
6814
6815   if test "x$ac_ct_STRIP" = x; then
6816     STRIP=":"
6817   else
6818     case $cross_compiling:$ac_tool_warned in
6819 yes:)
6820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6821 whose name does not start with the host triplet.  If you think this
6822 configuration is useful to you, please write to autoconf@gnu.org." >&5
6823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6824 whose name does not start with the host triplet.  If you think this
6825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6826 ac_tool_warned=yes ;;
6827 esac
6828     STRIP=$ac_ct_STRIP
6829   fi
6830 else
6831   STRIP="$ac_cv_prog_STRIP"
6832 fi
6833
6834
6835 old_CC="$CC"
6836 old_CFLAGS="$CFLAGS"
6837
6838 # Set sane defaults for various variables
6839 test -z "$AR" && AR=ar
6840 test -z "$AR_FLAGS" && AR_FLAGS=cru
6841 test -z "$AS" && AS=as
6842 test -z "$CC" && CC=cc
6843 test -z "$LTCC" && LTCC=$CC
6844 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6845 test -z "$DLLTOOL" && DLLTOOL=dlltool
6846 test -z "$LD" && LD=ld
6847 test -z "$LN_S" && LN_S="ln -s"
6848 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6849 test -z "$NM" && NM=nm
6850 test -z "$SED" && SED=sed
6851 test -z "$OBJDUMP" && OBJDUMP=objdump
6852 test -z "$RANLIB" && RANLIB=:
6853 test -z "$STRIP" && STRIP=:
6854 test -z "$ac_objext" && ac_objext=o
6855
6856 # Determine commands to create old-style static archives.
6857 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6858 old_postinstall_cmds='chmod 644 $oldlib'
6859 old_postuninstall_cmds=
6860
6861 if test -n "$RANLIB"; then
6862   case $host_os in
6863   openbsd*)
6864     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6865     ;;
6866   *)
6867     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6868     ;;
6869   esac
6870   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6871 fi
6872
6873 for cc_temp in $compiler""; do
6874   case $cc_temp in
6875     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6876     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6877     \-*) ;;
6878     *) break;;
6879   esac
6880 done
6881 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6882
6883
6884 # Only perform the check for file, if the check method requires it
6885 case $deplibs_check_method in
6886 file_magic*)
6887   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6888     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6889 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6890 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6891   echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893   case $MAGIC_CMD in
6894 [\\/*] |  ?:[\\/]*)
6895   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6896   ;;
6897 *)
6898   lt_save_MAGIC_CMD="$MAGIC_CMD"
6899   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6900   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6901   for ac_dir in $ac_dummy; do
6902     IFS="$lt_save_ifs"
6903     test -z "$ac_dir" && ac_dir=.
6904     if test -f $ac_dir/${ac_tool_prefix}file; then
6905       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6906       if test -n "$file_magic_test_file"; then
6907         case $deplibs_check_method in
6908         "file_magic "*)
6909           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6910           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6911           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6912             $EGREP "$file_magic_regex" > /dev/null; then
6913             :
6914           else
6915             cat <<EOF 1>&2
6916
6917 *** Warning: the command libtool uses to detect shared libraries,
6918 *** $file_magic_cmd, produces output that libtool cannot recognize.
6919 *** The result is that libtool may fail to recognize shared libraries
6920 *** as such.  This will affect the creation of libtool libraries that
6921 *** depend on shared libraries, but programs linked with such libtool
6922 *** libraries will work regardless of this problem.  Nevertheless, you
6923 *** may want to report the problem to your system manager and/or to
6924 *** bug-libtool@gnu.org
6925
6926 EOF
6927           fi ;;
6928         esac
6929       fi
6930       break
6931     fi
6932   done
6933   IFS="$lt_save_ifs"
6934   MAGIC_CMD="$lt_save_MAGIC_CMD"
6935   ;;
6936 esac
6937 fi
6938
6939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6940 if test -n "$MAGIC_CMD"; then
6941   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6942 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6943 else
6944   { echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6; }
6946 fi
6947
6948 if test -z "$lt_cv_path_MAGIC_CMD"; then
6949   if test -n "$ac_tool_prefix"; then
6950     { echo "$as_me:$LINENO: checking for file" >&5
6951 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6952 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6953   echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955   case $MAGIC_CMD in
6956 [\\/*] |  ?:[\\/]*)
6957   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6958   ;;
6959 *)
6960   lt_save_MAGIC_CMD="$MAGIC_CMD"
6961   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6962   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6963   for ac_dir in $ac_dummy; do
6964     IFS="$lt_save_ifs"
6965     test -z "$ac_dir" && ac_dir=.
6966     if test -f $ac_dir/file; then
6967       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6968       if test -n "$file_magic_test_file"; then
6969         case $deplibs_check_method in
6970         "file_magic "*)
6971           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6972           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6973           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6974             $EGREP "$file_magic_regex" > /dev/null; then
6975             :
6976           else
6977             cat <<EOF 1>&2
6978
6979 *** Warning: the command libtool uses to detect shared libraries,
6980 *** $file_magic_cmd, produces output that libtool cannot recognize.
6981 *** The result is that libtool may fail to recognize shared libraries
6982 *** as such.  This will affect the creation of libtool libraries that
6983 *** depend on shared libraries, but programs linked with such libtool
6984 *** libraries will work regardless of this problem.  Nevertheless, you
6985 *** may want to report the problem to your system manager and/or to
6986 *** bug-libtool@gnu.org
6987
6988 EOF
6989           fi ;;
6990         esac
6991       fi
6992       break
6993     fi
6994   done
6995   IFS="$lt_save_ifs"
6996   MAGIC_CMD="$lt_save_MAGIC_CMD"
6997   ;;
6998 esac
6999 fi
7000
7001 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7002 if test -n "$MAGIC_CMD"; then
7003   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7004 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7005 else
7006   { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7008 fi
7009
7010   else
7011     MAGIC_CMD=:
7012   fi
7013 fi
7014
7015   fi
7016   ;;
7017 esac
7018
7019
7020   case $host_os in
7021     rhapsody* | darwin*)
7022     if test -n "$ac_tool_prefix"; then
7023   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7024 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   if test -n "$DSYMUTIL"; then
7031   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038   for ac_exec_ext in '' $ac_executable_extensions; do
7039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045 done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7051 if test -n "$DSYMUTIL"; then
7052   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7053 echo "${ECHO_T}$DSYMUTIL" >&6; }
7054 else
7055   { echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6; }
7057 fi
7058
7059
7060 fi
7061 if test -z "$ac_cv_prog_DSYMUTIL"; then
7062   ac_ct_DSYMUTIL=$DSYMUTIL
7063   # Extract the first word of "dsymutil", so it can be a program name with args.
7064 set dummy dsymutil; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   if test -n "$ac_ct_DSYMUTIL"; then
7071   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078   for ac_exec_ext in '' $ac_executable_extensions; do
7079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7091 if test -n "$ac_ct_DSYMUTIL"; then
7092   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7093 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7094 else
7095   { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7097 fi
7098
7099   if test "x$ac_ct_DSYMUTIL" = x; then
7100     DSYMUTIL=":"
7101   else
7102     case $cross_compiling:$ac_tool_warned in
7103 yes:)
7104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet.  If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&5
7107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7108 whose name does not start with the host triplet.  If you think this
7109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112     DSYMUTIL=$ac_ct_DSYMUTIL
7113   fi
7114 else
7115   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7116 fi
7117
7118     if test -n "$ac_tool_prefix"; then
7119   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   if test -n "$NMEDIT"; then
7127   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   for ac_exec_ext in '' $ac_executable_extensions; do
7135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 NMEDIT=$ac_cv_prog_NMEDIT
7147 if test -n "$NMEDIT"; then
7148   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7149 echo "${ECHO_T}$NMEDIT" >&6; }
7150 else
7151   { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7153 fi
7154
7155
7156 fi
7157 if test -z "$ac_cv_prog_NMEDIT"; then
7158   ac_ct_NMEDIT=$NMEDIT
7159   # Extract the first word of "nmedit", so it can be a program name with args.
7160 set dummy nmedit; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   if test -n "$ac_ct_NMEDIT"; then
7167   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174   for ac_exec_ext in '' $ac_executable_extensions; do
7175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7187 if test -n "$ac_ct_NMEDIT"; then
7188   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7189 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7190 else
7191   { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7193 fi
7194
7195   if test "x$ac_ct_NMEDIT" = x; then
7196     NMEDIT=":"
7197   else
7198     case $cross_compiling:$ac_tool_warned in
7199 yes:)
7200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet.  If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&5
7203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7204 whose name does not start with the host triplet.  If you think this
7205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7206 ac_tool_warned=yes ;;
7207 esac
7208     NMEDIT=$ac_ct_NMEDIT
7209   fi
7210 else
7211   NMEDIT="$ac_cv_prog_NMEDIT"
7212 fi
7213
7214
7215     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7216 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7217 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   lt_cv_apple_cc_single_mod=no
7221       if test -z "${LT_MULTI_MODULE}"; then
7222    # By default we will add the -single_module flag. You can override
7223    # by either setting the environment variable LT_MULTI_MODULE
7224    # non-empty at configure time, or by adding -multi_module to the
7225    # link flags.
7226    echo "int foo(void){return 1;}" > conftest.c
7227    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7228      -dynamiclib ${wl}-single_module conftest.c
7229    if test -f libconftest.dylib; then
7230      lt_cv_apple_cc_single_mod=yes
7231      rm -rf libconftest.dylib*
7232    fi
7233    rm conftest.c
7234       fi
7235 fi
7236 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7237 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7238     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7239 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7240 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   lt_cv_ld_exported_symbols_list=no
7244       save_LDFLAGS=$LDFLAGS
7245       echo "_main" > conftest.sym
7246       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7247       cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h.  */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h.  */
7253
7254 int
7255 main ()
7256 {
7257
7258   ;
7259   return 0;
7260 }
7261 _ACEOF
7262 rm -f conftest.$ac_objext conftest$ac_exeext
7263 if { (ac_try="$ac_link"
7264 case "(($ac_try" in
7265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266   *) ac_try_echo=$ac_try;;
7267 esac
7268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269   (eval "$ac_link") 2>conftest.er1
7270   ac_status=$?
7271   grep -v '^ *+' conftest.er1 >conftest.err
7272   rm -f conftest.er1
7273   cat conftest.err >&5
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); } && {
7276          test -z "$ac_c_werror_flag" ||
7277          test ! -s conftest.err
7278        } && test -s conftest$ac_exeext &&
7279        $as_test_x conftest$ac_exeext; then
7280   lt_cv_ld_exported_symbols_list=yes
7281 else
7282   echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7284
7285         lt_cv_ld_exported_symbols_list=no
7286 fi
7287
7288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7289       conftest$ac_exeext conftest.$ac_ext
7290    LDFLAGS="$save_LDFLAGS"
7291
7292 fi
7293 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7294 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7295     case $host_os in
7296     rhapsody* | darwin1.[0123])
7297       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7298     darwin1.*)
7299      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7300     darwin*)
7301       # if running on 10.5 or later, the deployment target defaults
7302       # to the OS version, if on x86, and 10.4, the deployment
7303       # target defaults to 10.4. Don't you love it?
7304       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7305    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7306      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7307    10.[012]*)
7308      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7309    10.*)
7310      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7311       esac
7312     ;;
7313   esac
7314     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7315       _lt_dar_single_mod='$single_module'
7316     fi
7317     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7318       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7319     else
7320       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7321     fi
7322     if test "$DSYMUTIL" != ":"; then
7323       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7324     else
7325       _lt_dsymutil=
7326     fi
7327     ;;
7328   esac
7329
7330
7331 enable_dlopen=no
7332 enable_win32_dll=no
7333
7334 # Check whether --enable-libtool-lock was given.
7335 if test "${enable_libtool_lock+set}" = set; then
7336   enableval=$enable_libtool_lock;
7337 fi
7338
7339 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7340
7341
7342 # Check whether --with-pic was given.
7343 if test "${with_pic+set}" = set; then
7344   withval=$with_pic; pic_mode="$withval"
7345 else
7346   pic_mode=default
7347 fi
7348
7349 test -z "$pic_mode" && pic_mode=default
7350
7351 # Use C for the default configuration in the libtool script
7352 tagname=
7353 lt_save_CC="$CC"
7354 ac_ext=c
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359
7360
7361 # Source file extension for C test sources.
7362 ac_ext=c
7363
7364 # Object file extension for compiled C test sources.
7365 objext=o
7366 objext=$objext
7367
7368 # Code to be used in simple compile tests
7369 lt_simple_compile_test_code="int some_variable = 0;"
7370
7371 # Code to be used in simple link tests
7372 lt_simple_link_test_code='int main(){return(0);}'
7373
7374
7375 # If no C compiler was specified, use CC.
7376 LTCC=${LTCC-"$CC"}
7377
7378 # If no C compiler flags were specified, use CFLAGS.
7379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7380
7381 # Allow CC to be a program name with arguments.
7382 compiler=$CC
7383
7384
7385 # save warnings/boilerplate of simple test code
7386 ac_outfile=conftest.$ac_objext
7387 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7389 _lt_compiler_boilerplate=`cat conftest.err`
7390 $rm conftest*
7391
7392 ac_outfile=conftest.$ac_objext
7393 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7395 _lt_linker_boilerplate=`cat conftest.err`
7396 $rm -r conftest*
7397
7398
7399
7400 lt_prog_compiler_no_builtin_flag=
7401
7402 if test "$GCC" = yes; then
7403   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7404
7405
7406 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7407 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   lt_cv_prog_compiler_rtti_exceptions=no
7412   ac_outfile=conftest.$ac_objext
7413    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7414    lt_compiler_flag="-fno-rtti -fno-exceptions"
7415    # Insert the option either (1) after the last *FLAGS variable, or
7416    # (2) before a word containing "conftest.", or (3) at the end.
7417    # Note that $ac_compile itself does not contain backslashes and begins
7418    # with a dollar sign (not a hyphen), so the echo should work correctly.
7419    # The option is referenced via a variable to avoid confusing sed.
7420    lt_compile=`echo "$ac_compile" | $SED \
7421    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7423    -e 's:$: $lt_compiler_flag:'`
7424    (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
7425    (eval "$lt_compile" 2>conftest.err)
7426    ac_status=$?
7427    cat conftest.err >&5
7428    echo "$as_me:7428: \$? = $ac_status" >&5
7429    if (exit $ac_status) && test -s "$ac_outfile"; then
7430      # The compiler can only warn and ignore the option if not recognized
7431      # So say no if there are warnings other than the usual output.
7432      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7433      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7434      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7435        lt_cv_prog_compiler_rtti_exceptions=yes
7436      fi
7437    fi
7438    $rm conftest*
7439
7440 fi
7441 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7442 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7443
7444 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7445     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7446 else
7447     :
7448 fi
7449
7450 fi
7451
7452 lt_prog_compiler_wl=
7453 lt_prog_compiler_pic=
7454 lt_prog_compiler_static=
7455
7456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7458
7459   if test "$GCC" = yes; then
7460     lt_prog_compiler_wl='-Wl,'
7461     lt_prog_compiler_static='-static'
7462
7463     case $host_os in
7464       aix*)
7465       # All AIX code is PIC.
7466       if test "$host_cpu" = ia64; then
7467         # AIX 5 now supports IA64 processor
7468         lt_prog_compiler_static='-Bstatic'
7469       fi
7470       ;;
7471
7472     amigaos*)
7473       # FIXME: we need at least 68020 code to build shared libraries, but
7474       # adding the `-m68020' flag to GCC prevents building anything better,
7475       # like `-m68040'.
7476       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7477       ;;
7478
7479     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7480       # PIC is the default for these OSes.
7481       ;;
7482
7483     mingw* | cygwin* | pw32* | os2*)
7484       # This hack is so that the source file can tell whether it is being
7485       # built for inclusion in a dll (and should export symbols for example).
7486       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7487       # (--disable-auto-import) libraries
7488       lt_prog_compiler_pic='-DDLL_EXPORT'
7489       ;;
7490
7491     darwin* | rhapsody*)
7492       # PIC is the default on this platform
7493       # Common symbols not allowed in MH_DYLIB files
7494       lt_prog_compiler_pic='-fno-common'
7495       ;;
7496
7497     interix[3-9]*)
7498       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7499       # Instead, we relocate shared libraries at runtime.
7500       ;;
7501
7502     msdosdjgpp*)
7503       # Just because we use GCC doesn't mean we suddenly get shared libraries
7504       # on systems that don't support them.
7505       lt_prog_compiler_can_build_shared=no
7506       enable_shared=no
7507       ;;
7508
7509     sysv4*MP*)
7510       if test -d /usr/nec; then
7511         lt_prog_compiler_pic=-Kconform_pic
7512       fi
7513       ;;
7514
7515     hpux*)
7516       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7517       # not for PA HP-UX.
7518       case $host_cpu in
7519       hppa*64*|ia64*)
7520         # +Z the default
7521         ;;
7522       *)
7523         lt_prog_compiler_pic='-fPIC'
7524         ;;
7525       esac
7526       ;;
7527
7528     *)
7529       lt_prog_compiler_pic='-fPIC'
7530       ;;
7531     esac
7532   else
7533     # PORTME Check for flag to pass linker flags through the system compiler.
7534     case $host_os in
7535     aix*)
7536       lt_prog_compiler_wl='-Wl,'
7537       if test "$host_cpu" = ia64; then
7538         # AIX 5 now supports IA64 processor
7539         lt_prog_compiler_static='-Bstatic'
7540       else
7541         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7542       fi
7543       ;;
7544       darwin*)
7545         # PIC is the default on this platform
7546         # Common symbols not allowed in MH_DYLIB files
7547        case $cc_basename in
7548          xlc*)
7549          lt_prog_compiler_pic='-qnocommon'
7550          lt_prog_compiler_wl='-Wl,'
7551          ;;
7552        esac
7553        ;;
7554
7555     mingw* | cygwin* | pw32* | os2*)
7556       # This hack is so that the source file can tell whether it is being
7557       # built for inclusion in a dll (and should export symbols for example).
7558       lt_prog_compiler_pic='-DDLL_EXPORT'
7559       ;;
7560
7561     hpux9* | hpux10* | hpux11*)
7562       lt_prog_compiler_wl='-Wl,'
7563       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7564       # not for PA HP-UX.
7565       case $host_cpu in
7566       hppa*64*|ia64*)
7567         # +Z the default
7568         ;;
7569       *)
7570         lt_prog_compiler_pic='+Z'
7571         ;;
7572       esac
7573       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7574       lt_prog_compiler_static='${wl}-a ${wl}archive'
7575       ;;
7576
7577     irix5* | irix6* | nonstopux*)
7578       lt_prog_compiler_wl='-Wl,'
7579       # PIC (with -KPIC) is the default.
7580       lt_prog_compiler_static='-non_shared'
7581       ;;
7582
7583     newsos6)
7584       lt_prog_compiler_pic='-KPIC'
7585       lt_prog_compiler_static='-Bstatic'
7586       ;;
7587
7588     linux* | k*bsd*-gnu)
7589       case $cc_basename in
7590       icc* | ecc*)
7591         lt_prog_compiler_wl='-Wl,'
7592         lt_prog_compiler_pic='-KPIC'
7593         lt_prog_compiler_static='-static'
7594         ;;
7595       pgcc* | pgf77* | pgf90* | pgf95*)
7596         # Portland Group compilers (*not* the Pentium gcc compiler,
7597         # which looks to be a dead project)
7598         lt_prog_compiler_wl='-Wl,'
7599         lt_prog_compiler_pic='-fpic'
7600         lt_prog_compiler_static='-Bstatic'
7601         ;;
7602       ccc*)
7603         lt_prog_compiler_wl='-Wl,'
7604         # All Alpha code is PIC.
7605         lt_prog_compiler_static='-non_shared'
7606         ;;
7607       *)
7608         case `$CC -V 2>&1 | sed 5q` in
7609         *Sun\ C*)
7610           # Sun C 5.9
7611           lt_prog_compiler_pic='-KPIC'
7612           lt_prog_compiler_static='-Bstatic'
7613           lt_prog_compiler_wl='-Wl,'
7614           ;;
7615         *Sun\ F*)
7616           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7617           lt_prog_compiler_pic='-KPIC'
7618           lt_prog_compiler_static='-Bstatic'
7619           lt_prog_compiler_wl=''
7620           ;;
7621         esac
7622         ;;
7623       esac
7624       ;;
7625
7626     osf3* | osf4* | osf5*)
7627       lt_prog_compiler_wl='-Wl,'
7628       # All OSF/1 code is PIC.
7629       lt_prog_compiler_static='-non_shared'
7630       ;;
7631
7632     rdos*)
7633       lt_prog_compiler_static='-non_shared'
7634       ;;
7635
7636     solaris*)
7637       lt_prog_compiler_pic='-KPIC'
7638       lt_prog_compiler_static='-Bstatic'
7639       case $cc_basename in
7640       f77* | f90* | f95*)
7641         lt_prog_compiler_wl='-Qoption ld ';;
7642       *)
7643         lt_prog_compiler_wl='-Wl,';;
7644       esac
7645       ;;
7646
7647     sunos4*)
7648       lt_prog_compiler_wl='-Qoption ld '
7649       lt_prog_compiler_pic='-PIC'
7650       lt_prog_compiler_static='-Bstatic'
7651       ;;
7652
7653     sysv4 | sysv4.2uw2* | sysv4.3*)
7654       lt_prog_compiler_wl='-Wl,'
7655       lt_prog_compiler_pic='-KPIC'
7656       lt_prog_compiler_static='-Bstatic'
7657       ;;
7658
7659     sysv4*MP*)
7660       if test -d /usr/nec ;then
7661         lt_prog_compiler_pic='-Kconform_pic'
7662         lt_prog_compiler_static='-Bstatic'
7663       fi
7664       ;;
7665
7666     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7667       lt_prog_compiler_wl='-Wl,'
7668       lt_prog_compiler_pic='-KPIC'
7669       lt_prog_compiler_static='-Bstatic'
7670       ;;
7671
7672     unicos*)
7673       lt_prog_compiler_wl='-Wl,'
7674       lt_prog_compiler_can_build_shared=no
7675       ;;
7676
7677     uts4*)
7678       lt_prog_compiler_pic='-pic'
7679       lt_prog_compiler_static='-Bstatic'
7680       ;;
7681
7682     *)
7683       lt_prog_compiler_can_build_shared=no
7684       ;;
7685     esac
7686   fi
7687
7688 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7689 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7690
7691 #
7692 # Check to make sure the PIC flag actually works.
7693 #
7694 if test -n "$lt_prog_compiler_pic"; then
7695
7696 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7697 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7698 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7699   echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701   lt_cv_prog_compiler_pic_works=no
7702   ac_outfile=conftest.$ac_objext
7703    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7704    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7705    # Insert the option either (1) after the last *FLAGS variable, or
7706    # (2) before a word containing "conftest.", or (3) at the end.
7707    # Note that $ac_compile itself does not contain backslashes and begins
7708    # with a dollar sign (not a hyphen), so the echo should work correctly.
7709    # The option is referenced via a variable to avoid confusing sed.
7710    lt_compile=`echo "$ac_compile" | $SED \
7711    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7712    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7713    -e 's:$: $lt_compiler_flag:'`
7714    (eval echo "\"\$as_me:7714: $lt_compile\"" >&5)
7715    (eval "$lt_compile" 2>conftest.err)
7716    ac_status=$?
7717    cat conftest.err >&5
7718    echo "$as_me:7718: \$? = $ac_status" >&5
7719    if (exit $ac_status) && test -s "$ac_outfile"; then
7720      # The compiler can only warn and ignore the option if not recognized
7721      # So say no if there are warnings other than the usual output.
7722      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7723      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7724      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7725        lt_cv_prog_compiler_pic_works=yes
7726      fi
7727    fi
7728    $rm conftest*
7729
7730 fi
7731 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7732 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7733
7734 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7735     case $lt_prog_compiler_pic in
7736      "" | " "*) ;;
7737      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7738      esac
7739 else
7740     lt_prog_compiler_pic=
7741      lt_prog_compiler_can_build_shared=no
7742 fi
7743
7744 fi
7745 case $host_os in
7746   # For platforms which do not support PIC, -DPIC is meaningless:
7747   *djgpp*)
7748     lt_prog_compiler_pic=
7749     ;;
7750   *)
7751     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7752     ;;
7753 esac
7754
7755 #
7756 # Check to make sure the static flag actually works.
7757 #
7758 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7759 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7760 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7761 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7762   echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764   lt_cv_prog_compiler_static_works=no
7765    save_LDFLAGS="$LDFLAGS"
7766    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7767    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7768    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7769      # The linker can only warn and ignore the option if not recognized
7770      # So say no if there are warnings
7771      if test -s conftest.err; then
7772        # Append any errors to the config.log.
7773        cat conftest.err 1>&5
7774        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7775        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7776        if diff conftest.exp conftest.er2 >/dev/null; then
7777          lt_cv_prog_compiler_static_works=yes
7778        fi
7779      else
7780        lt_cv_prog_compiler_static_works=yes
7781      fi
7782    fi
7783    $rm -r conftest*
7784    LDFLAGS="$save_LDFLAGS"
7785
7786 fi
7787 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7788 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7789
7790 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7791     :
7792 else
7793     lt_prog_compiler_static=
7794 fi
7795
7796
7797 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7798 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7799 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   lt_cv_prog_compiler_c_o=no
7803    $rm -r conftest 2>/dev/null
7804    mkdir conftest
7805    cd conftest
7806    mkdir out
7807    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7808
7809    lt_compiler_flag="-o out/conftest2.$ac_objext"
7810    # Insert the option either (1) after the last *FLAGS variable, or
7811    # (2) before a word containing "conftest.", or (3) at the end.
7812    # Note that $ac_compile itself does not contain backslashes and begins
7813    # with a dollar sign (not a hyphen), so the echo should work correctly.
7814    lt_compile=`echo "$ac_compile" | $SED \
7815    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7816    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7817    -e 's:$: $lt_compiler_flag:'`
7818    (eval echo "\"\$as_me:7818: $lt_compile\"" >&5)
7819    (eval "$lt_compile" 2>out/conftest.err)
7820    ac_status=$?
7821    cat out/conftest.err >&5
7822    echo "$as_me:7822: \$? = $ac_status" >&5
7823    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7824    then
7825      # The compiler can only warn and ignore the option if not recognized
7826      # So say no if there are warnings
7827      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7828      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7829      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7830        lt_cv_prog_compiler_c_o=yes
7831      fi
7832    fi
7833    chmod u+w . 2>&5
7834    $rm conftest*
7835    # SGI C++ compiler will create directory out/ii_files/ for
7836    # template instantiation
7837    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7838    $rm out/* && rmdir out
7839    cd ..
7840    rmdir conftest
7841    $rm conftest*
7842
7843 fi
7844 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7845 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7846
7847
7848 hard_links="nottested"
7849 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7850   # do not overwrite the value of need_locks provided by the user
7851   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7852 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7853   hard_links=yes
7854   $rm conftest*
7855   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7856   touch conftest.a
7857   ln conftest.a conftest.b 2>&5 || hard_links=no
7858   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7859   { echo "$as_me:$LINENO: result: $hard_links" >&5
7860 echo "${ECHO_T}$hard_links" >&6; }
7861   if test "$hard_links" = no; then
7862     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7863 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7864     need_locks=warn
7865   fi
7866 else
7867   need_locks=no
7868 fi
7869
7870 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7871 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7872
7873   runpath_var=
7874   allow_undefined_flag=
7875   enable_shared_with_static_runtimes=no
7876   archive_cmds=
7877   archive_expsym_cmds=
7878   old_archive_From_new_cmds=
7879   old_archive_from_expsyms_cmds=
7880   export_dynamic_flag_spec=
7881   whole_archive_flag_spec=
7882   thread_safe_flag_spec=
7883   hardcode_libdir_flag_spec=
7884   hardcode_libdir_flag_spec_ld=
7885   hardcode_libdir_separator=
7886   hardcode_direct=no
7887   hardcode_minus_L=no
7888   hardcode_shlibpath_var=unsupported
7889   link_all_deplibs=unknown
7890   hardcode_automatic=no
7891   module_cmds=
7892   module_expsym_cmds=
7893   always_export_symbols=no
7894   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7895   # include_expsyms should be a list of space-separated symbols to be *always*
7896   # included in the symbol list
7897   include_expsyms=
7898   # exclude_expsyms can be an extended regexp of symbols to exclude
7899   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7900   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7901   # as well as any symbol that contains `d'.
7902   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7903   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7904   # platforms (ab)use it in PIC code, but their linkers get confused if
7905   # the symbol is explicitly referenced.  Since portable code cannot
7906   # rely on this symbol name, it's probably fine to never include it in
7907   # preloaded symbol tables.
7908   # Exclude shared library initialization/finalization symbols.
7909   extract_expsyms_cmds=
7910   # Just being paranoid about ensuring that cc_basename is set.
7911   for cc_temp in $compiler""; do
7912   case $cc_temp in
7913     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7914     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7915     \-*) ;;
7916     *) break;;
7917   esac
7918 done
7919 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7920
7921   case $host_os in
7922   cygwin* | mingw* | pw32*)
7923     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7924     # When not using gcc, we currently assume that we are using
7925     # Microsoft Visual C++.
7926     if test "$GCC" != yes; then
7927       with_gnu_ld=no
7928     fi
7929     ;;
7930   interix*)
7931     # we just hope/assume this is gcc and not c89 (= MSVC++)
7932     with_gnu_ld=yes
7933     ;;
7934   openbsd*)
7935     with_gnu_ld=no
7936     ;;
7937   esac
7938
7939   ld_shlibs=yes
7940   if test "$with_gnu_ld" = yes; then
7941     # If archive_cmds runs LD, not CC, wlarc should be empty
7942     wlarc='${wl}'
7943
7944     # Set some defaults for GNU ld with shared library support. These
7945     # are reset later if shared libraries are not supported. Putting them
7946     # here allows them to be overridden if necessary.
7947     runpath_var=LD_RUN_PATH
7948     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7949     export_dynamic_flag_spec='${wl}--export-dynamic'
7950     # ancient GNU ld didn't support --whole-archive et. al.
7951     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7952         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7953       else
7954         whole_archive_flag_spec=
7955     fi
7956     supports_anon_versioning=no
7957     case `$LD -v 2>/dev/null` in
7958       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7959       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7960       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7961       *\ 2.11.*) ;; # other 2.11 versions
7962       *) supports_anon_versioning=yes ;;
7963     esac
7964
7965     # See if GNU ld supports shared libraries.
7966     case $host_os in
7967     aix[3-9]*)
7968       # On AIX/PPC, the GNU linker is very broken
7969       if test "$host_cpu" != ia64; then
7970         ld_shlibs=no
7971         cat <<EOF 1>&2
7972
7973 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7974 *** to be unable to reliably create shared libraries on AIX.
7975 *** Therefore, libtool is disabling shared libraries support.  If you
7976 *** really care for shared libraries, you may want to modify your PATH
7977 *** so that a non-GNU linker is found, and then restart.
7978
7979 EOF
7980       fi
7981       ;;
7982
7983     amigaos*)
7984       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)'
7985       hardcode_libdir_flag_spec='-L$libdir'
7986       hardcode_minus_L=yes
7987
7988       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7989       # that the semantics of dynamic libraries on AmigaOS, at least up
7990       # to version 4, is to share data among multiple programs linked
7991       # with the same dynamic library.  Since this doesn't match the
7992       # behavior of shared libraries on other platforms, we can't use
7993       # them.
7994       ld_shlibs=no
7995       ;;
7996
7997     beos*)
7998       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7999         allow_undefined_flag=unsupported
8000         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8001         # support --undefined.  This deserves some investigation.  FIXME
8002         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8003       else
8004         ld_shlibs=no
8005       fi
8006       ;;
8007
8008     cygwin* | mingw* | pw32*)
8009       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8010       # as there is no search path for DLLs.
8011       hardcode_libdir_flag_spec='-L$libdir'
8012       allow_undefined_flag=unsupported
8013       always_export_symbols=no
8014       enable_shared_with_static_runtimes=yes
8015       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8016
8017       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8018         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8019         # If the export-symbols file already is a .def file (1st line
8020         # is EXPORTS), use it as is; otherwise, prepend...
8021         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8022           cp $export_symbols $output_objdir/$soname.def;
8023         else
8024           echo EXPORTS > $output_objdir/$soname.def;
8025           cat $export_symbols >> $output_objdir/$soname.def;
8026         fi~
8027         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8028       else
8029         ld_shlibs=no
8030       fi
8031       ;;
8032
8033     interix[3-9]*)
8034       hardcode_direct=no
8035       hardcode_shlibpath_var=no
8036       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8037       export_dynamic_flag_spec='${wl}-E'
8038       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8039       # Instead, shared libraries are loaded at an image base (0x10000000 by
8040       # default) and relocated if they conflict, which is a slow very memory
8041       # consuming and fragmenting process.  To avoid this, we pick a random,
8042       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8043       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8044       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8045       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'
8046       ;;
8047
8048     gnu* | linux* | k*bsd*-gnu)
8049       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8050         tmp_addflag=
8051         case $cc_basename,$host_cpu in
8052         pgcc*)                          # Portland Group C compiler
8053           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'
8054           tmp_addflag=' $pic_flag'
8055           ;;
8056         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8057           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'
8058           tmp_addflag=' $pic_flag -Mnomain' ;;
8059         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8060           tmp_addflag=' -i_dynamic' ;;
8061         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8062           tmp_addflag=' -i_dynamic -nofor_main' ;;
8063         ifc* | ifort*)                  # Intel Fortran compiler
8064           tmp_addflag=' -nofor_main' ;;
8065         esac
8066         case `$CC -V 2>&1 | sed 5q` in
8067         *Sun\ C*)                       # Sun C 5.9
8068           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'
8069           tmp_sharedflag='-G' ;;
8070         *Sun\ F*)                       # Sun Fortran 8.3
8071           tmp_sharedflag='-G' ;;
8072         *)
8073           tmp_sharedflag='-shared' ;;
8074         esac
8075         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8076
8077         if test $supports_anon_versioning = yes; then
8078           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8079   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8080   $echo "local: *; };" >> $output_objdir/$libname.ver~
8081           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8082         fi
8083         link_all_deplibs=no
8084       else
8085         ld_shlibs=no
8086       fi
8087       ;;
8088
8089     netbsd* | netbsdelf*-gnu)
8090       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8091         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8092         wlarc=
8093       else
8094         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8095         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8096       fi
8097       ;;
8098
8099     solaris*)
8100       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8101         ld_shlibs=no
8102         cat <<EOF 1>&2
8103
8104 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8105 *** create shared libraries on Solaris systems.  Therefore, libtool
8106 *** is disabling shared libraries support.  We urge you to upgrade GNU
8107 *** binutils to release 2.9.1 or newer.  Another option is to modify
8108 *** your PATH or compiler configuration so that the native linker is
8109 *** used, and then restart.
8110
8111 EOF
8112       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8113         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8114         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8115       else
8116         ld_shlibs=no
8117       fi
8118       ;;
8119
8120     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8121       case `$LD -v 2>&1` in
8122         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8123         ld_shlibs=no
8124         cat <<_LT_EOF 1>&2
8125
8126 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8127 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8128 *** is disabling shared libraries support.  We urge you to upgrade GNU
8129 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8130 *** your PATH or compiler configuration so that the native linker is
8131 *** used, and then restart.
8132
8133 _LT_EOF
8134         ;;
8135         *)
8136           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8137             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8138             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8139             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8140           else
8141             ld_shlibs=no
8142           fi
8143         ;;
8144       esac
8145       ;;
8146
8147     sunos4*)
8148       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8149       wlarc=
8150       hardcode_direct=yes
8151       hardcode_shlibpath_var=no
8152       ;;
8153
8154     *)
8155       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8156         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8157         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8158       else
8159         ld_shlibs=no
8160       fi
8161       ;;
8162     esac
8163
8164     if test "$ld_shlibs" = no; then
8165       runpath_var=
8166       hardcode_libdir_flag_spec=
8167       export_dynamic_flag_spec=
8168       whole_archive_flag_spec=
8169     fi
8170   else
8171     # PORTME fill in a description of your system's linker (not GNU ld)
8172     case $host_os in
8173     aix3*)
8174       allow_undefined_flag=unsupported
8175       always_export_symbols=yes
8176       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'
8177       # Note: this linker hardcodes the directories in LIBPATH if there
8178       # are no directories specified by -L.
8179       hardcode_minus_L=yes
8180       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8181         # Neither direct hardcoding nor static linking is supported with a
8182         # broken collect2.
8183         hardcode_direct=unsupported
8184       fi
8185       ;;
8186
8187     aix[4-9]*)
8188       if test "$host_cpu" = ia64; then
8189         # On IA64, the linker does run time linking by default, so we don't
8190         # have to do anything special.
8191         aix_use_runtimelinking=no
8192         exp_sym_flag='-Bexport'
8193         no_entry_flag=""
8194       else
8195         # If we're using GNU nm, then we don't want the "-C" option.
8196         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8197         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8198           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'
8199         else
8200           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'
8201         fi
8202         aix_use_runtimelinking=no
8203
8204         # Test if we are trying to use run time linking or normal
8205         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8206         # need to do runtime linking.
8207         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8208           for ld_flag in $LDFLAGS; do
8209           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8210             aix_use_runtimelinking=yes
8211             break
8212           fi
8213           done
8214           ;;
8215         esac
8216
8217         exp_sym_flag='-bexport'
8218         no_entry_flag='-bnoentry'
8219       fi
8220
8221       # When large executables or shared objects are built, AIX ld can
8222       # have problems creating the table of contents.  If linking a library
8223       # or program results in "error TOC overflow" add -mminimal-toc to
8224       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8225       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8226
8227       archive_cmds=''
8228       hardcode_direct=yes
8229       hardcode_libdir_separator=':'
8230       link_all_deplibs=yes
8231
8232       if test "$GCC" = yes; then
8233         case $host_os in aix4.[012]|aix4.[012].*)
8234         # We only want to do this on AIX 4.2 and lower, the check
8235         # below for broken collect2 doesn't work under 4.3+
8236           collect2name=`${CC} -print-prog-name=collect2`
8237           if test -f "$collect2name" && \
8238            strings "$collect2name" | grep resolve_lib_name >/dev/null
8239           then
8240           # We have reworked collect2
8241           :
8242           else
8243           # We have old collect2
8244           hardcode_direct=unsupported
8245           # It fails to find uninstalled libraries when the uninstalled
8246           # path is not listed in the libpath.  Setting hardcode_minus_L
8247           # to unsupported forces relinking
8248           hardcode_minus_L=yes
8249           hardcode_libdir_flag_spec='-L$libdir'
8250           hardcode_libdir_separator=
8251           fi
8252           ;;
8253         esac
8254         shared_flag='-shared'
8255         if test "$aix_use_runtimelinking" = yes; then
8256           shared_flag="$shared_flag "'${wl}-G'
8257         fi
8258       else
8259         # not using gcc
8260         if test "$host_cpu" = ia64; then
8261         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8262         # chokes on -Wl,-G. The following line is correct:
8263           shared_flag='-G'
8264         else
8265           if test "$aix_use_runtimelinking" = yes; then
8266             shared_flag='${wl}-G'
8267           else
8268             shared_flag='${wl}-bM:SRE'
8269           fi
8270         fi
8271       fi
8272
8273       # It seems that -bexpall does not export symbols beginning with
8274       # underscore (_), so it is better to generate a list of symbols to export.
8275       always_export_symbols=yes
8276       if test "$aix_use_runtimelinking" = yes; then
8277         # Warning - without using the other runtime loading flags (-brtl),
8278         # -berok will link without error, but may produce a broken library.
8279         allow_undefined_flag='-berok'
8280        # Determine the default libpath from the value encoded in an empty executable.
8281        cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287
8288 int
8289 main ()
8290 {
8291
8292   ;
8293   return 0;
8294 }
8295 _ACEOF
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (ac_try="$ac_link"
8298 case "(($ac_try" in
8299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300   *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303   (eval "$ac_link") 2>conftest.er1
8304   ac_status=$?
8305   grep -v '^ *+' conftest.er1 >conftest.err
8306   rm -f conftest.er1
8307   cat conftest.err >&5
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); } && {
8310          test -z "$ac_c_werror_flag" ||
8311          test ! -s conftest.err
8312        } && test -s conftest$ac_exeext &&
8313        $as_test_x conftest$ac_exeext; then
8314
8315 lt_aix_libpath_sed='
8316     /Import File Strings/,/^$/ {
8317         /^0/ {
8318             s/^0  *\(.*\)$/\1/
8319             p
8320         }
8321     }'
8322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8323 # Check for a 64-bit object if we didn't find anything.
8324 if test -z "$aix_libpath"; then
8325   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8326 fi
8327 else
8328   echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8330
8331
8332 fi
8333
8334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8335       conftest$ac_exeext conftest.$ac_ext
8336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8337
8338        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8339         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"
8340        else
8341         if test "$host_cpu" = ia64; then
8342           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8343           allow_undefined_flag="-z nodefs"
8344           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"
8345         else
8346          # Determine the default libpath from the value encoded in an empty executable.
8347          cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h.  */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h.  */
8353
8354 int
8355 main ()
8356 {
8357
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 rm -f conftest.$ac_objext conftest$ac_exeext
8363 if { (ac_try="$ac_link"
8364 case "(($ac_try" in
8365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366   *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369   (eval "$ac_link") 2>conftest.er1
8370   ac_status=$?
8371   grep -v '^ *+' conftest.er1 >conftest.err
8372   rm -f conftest.er1
8373   cat conftest.err >&5
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); } && {
8376          test -z "$ac_c_werror_flag" ||
8377          test ! -s conftest.err
8378        } && test -s conftest$ac_exeext &&
8379        $as_test_x conftest$ac_exeext; then
8380
8381 lt_aix_libpath_sed='
8382     /Import File Strings/,/^$/ {
8383         /^0/ {
8384             s/^0  *\(.*\)$/\1/
8385             p
8386         }
8387     }'
8388 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8389 # Check for a 64-bit object if we didn't find anything.
8390 if test -z "$aix_libpath"; then
8391   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8392 fi
8393 else
8394   echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8396
8397
8398 fi
8399
8400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8401       conftest$ac_exeext conftest.$ac_ext
8402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8403
8404          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8405           # Warning - without using the other run time loading flags,
8406           # -berok will link without error, but may produce a broken library.
8407           no_undefined_flag=' ${wl}-bernotok'
8408           allow_undefined_flag=' ${wl}-berok'
8409           # Exported symbols can be pulled into shared objects from archives
8410           whole_archive_flag_spec='$convenience'
8411           archive_cmds_need_lc=yes
8412           # This is similar to how AIX traditionally builds its shared libraries.
8413           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'
8414         fi
8415       fi
8416       ;;
8417
8418     amigaos*)
8419       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)'
8420       hardcode_libdir_flag_spec='-L$libdir'
8421       hardcode_minus_L=yes
8422       # see comment about different semantics on the GNU ld section
8423       ld_shlibs=no
8424       ;;
8425
8426     bsdi[45]*)
8427       export_dynamic_flag_spec=-rdynamic
8428       ;;
8429
8430     cygwin* | mingw* | pw32*)
8431       # When not using gcc, we currently assume that we are using
8432       # Microsoft Visual C++.
8433       # hardcode_libdir_flag_spec is actually meaningless, as there is
8434       # no search path for DLLs.
8435       hardcode_libdir_flag_spec=' '
8436       allow_undefined_flag=unsupported
8437       # Tell ltmain to make .lib files, not .a files.
8438       libext=lib
8439       # Tell ltmain to make .dll files, not .so files.
8440       shrext_cmds=".dll"
8441       # FIXME: Setting linknames here is a bad hack.
8442       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8443       # The linker will automatically build a .lib file if we build a DLL.
8444       old_archive_From_new_cmds='true'
8445       # FIXME: Should let the user specify the lib program.
8446       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8447       fix_srcfile_path='`cygpath -w "$srcfile"`'
8448       enable_shared_with_static_runtimes=yes
8449       ;;
8450
8451     darwin* | rhapsody*)
8452       case $host_os in
8453         rhapsody* | darwin1.[012])
8454          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8455          ;;
8456        *) # Darwin 1.3 on
8457          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8458            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8459          else
8460            case ${MACOSX_DEPLOYMENT_TARGET} in
8461              10.[012])
8462                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8463                ;;
8464              10.*)
8465                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8466                ;;
8467            esac
8468          fi
8469          ;;
8470       esac
8471       archive_cmds_need_lc=no
8472       hardcode_direct=no
8473       hardcode_automatic=yes
8474       hardcode_shlibpath_var=unsupported
8475       whole_archive_flag_spec=''
8476       link_all_deplibs=yes
8477     if test "$GCC" = yes ; then
8478         output_verbose_link_cmd='echo'
8479         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8480         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8481         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}"
8482         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}"
8483     else
8484       case $cc_basename in
8485         xlc*)
8486          output_verbose_link_cmd='echo'
8487          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8488          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8489           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8490          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}'
8491           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}'
8492           ;;
8493        *)
8494          ld_shlibs=no
8495           ;;
8496       esac
8497     fi
8498       ;;
8499
8500     dgux*)
8501       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8502       hardcode_libdir_flag_spec='-L$libdir'
8503       hardcode_shlibpath_var=no
8504       ;;
8505
8506     freebsd1*)
8507       ld_shlibs=no
8508       ;;
8509
8510     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8511     # support.  Future versions do this automatically, but an explicit c++rt0.o
8512     # does not break anything, and helps significantly (at the cost of a little
8513     # extra space).
8514     freebsd2.2*)
8515       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8516       hardcode_libdir_flag_spec='-R$libdir'
8517       hardcode_direct=yes
8518       hardcode_shlibpath_var=no
8519       ;;
8520
8521     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8522     freebsd2*)
8523       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8524       hardcode_direct=yes
8525       hardcode_minus_L=yes
8526       hardcode_shlibpath_var=no
8527       ;;
8528
8529     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8530     freebsd* | dragonfly*)
8531       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8532       hardcode_libdir_flag_spec='-R$libdir'
8533       hardcode_direct=yes
8534       hardcode_shlibpath_var=no
8535       ;;
8536
8537     hpux9*)
8538       if test "$GCC" = yes; then
8539         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'
8540       else
8541         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'
8542       fi
8543       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8544       hardcode_libdir_separator=:
8545       hardcode_direct=yes
8546
8547       # hardcode_minus_L: Not really in the search PATH,
8548       # but as the default location of the library.
8549       hardcode_minus_L=yes
8550       export_dynamic_flag_spec='${wl}-E'
8551       ;;
8552
8553     hpux10*)
8554       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8555         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8556       else
8557         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8558       fi
8559       if test "$with_gnu_ld" = no; then
8560         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8561         hardcode_libdir_separator=:
8562
8563         hardcode_direct=yes
8564         export_dynamic_flag_spec='${wl}-E'
8565
8566         # hardcode_minus_L: Not really in the search PATH,
8567         # but as the default location of the library.
8568         hardcode_minus_L=yes
8569       fi
8570       ;;
8571
8572     hpux11*)
8573       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8574         case $host_cpu in
8575         hppa*64*)
8576           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8577           ;;
8578         ia64*)
8579           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8580           ;;
8581         *)
8582           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8583           ;;
8584         esac
8585       else
8586         case $host_cpu in
8587         hppa*64*)
8588           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8589           ;;
8590         ia64*)
8591           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8592           ;;
8593         *)
8594           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8595           ;;
8596         esac
8597       fi
8598       if test "$with_gnu_ld" = no; then
8599         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8600         hardcode_libdir_separator=:
8601
8602         case $host_cpu in
8603         hppa*64*|ia64*)
8604           hardcode_libdir_flag_spec_ld='+b $libdir'
8605           hardcode_direct=no
8606           hardcode_shlibpath_var=no
8607           ;;
8608         *)
8609           hardcode_direct=yes
8610           export_dynamic_flag_spec='${wl}-E'
8611
8612           # hardcode_minus_L: Not really in the search PATH,
8613           # but as the default location of the library.
8614           hardcode_minus_L=yes
8615           ;;
8616         esac
8617       fi
8618       ;;
8619
8620     irix5* | irix6* | nonstopux*)
8621       if test "$GCC" = yes; then
8622         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'
8623       else
8624         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'
8625         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8626       fi
8627       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8628       hardcode_libdir_separator=:
8629       link_all_deplibs=yes
8630       ;;
8631
8632     netbsd* | netbsdelf*-gnu)
8633       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8634         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8635       else
8636         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8637       fi
8638       hardcode_libdir_flag_spec='-R$libdir'
8639       hardcode_direct=yes
8640       hardcode_shlibpath_var=no
8641       ;;
8642
8643     newsos6)
8644       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645       hardcode_direct=yes
8646       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8647       hardcode_libdir_separator=:
8648       hardcode_shlibpath_var=no
8649       ;;
8650
8651     openbsd*)
8652       if test -f /usr/libexec/ld.so; then
8653         hardcode_direct=yes
8654         hardcode_shlibpath_var=no
8655         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8656           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8657           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8658           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8659           export_dynamic_flag_spec='${wl}-E'
8660         else
8661           case $host_os in
8662            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8663              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8664              hardcode_libdir_flag_spec='-R$libdir'
8665              ;;
8666            *)
8667              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8668              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8669              ;;
8670           esac
8671         fi
8672       else
8673         ld_shlibs=no
8674       fi
8675       ;;
8676
8677     os2*)
8678       hardcode_libdir_flag_spec='-L$libdir'
8679       hardcode_minus_L=yes
8680       allow_undefined_flag=unsupported
8681       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'
8682       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8683       ;;
8684
8685     osf3*)
8686       if test "$GCC" = yes; then
8687         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8688         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'
8689       else
8690         allow_undefined_flag=' -expect_unresolved \*'
8691         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'
8692       fi
8693       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8694       hardcode_libdir_separator=:
8695       ;;
8696
8697     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8698       if test "$GCC" = yes; then
8699         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8700         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'
8701         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8702       else
8703         allow_undefined_flag=' -expect_unresolved \*'
8704         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'
8705         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8706         $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'
8707
8708         # Both c and cxx compiler support -rpath directly
8709         hardcode_libdir_flag_spec='-rpath $libdir'
8710       fi
8711       hardcode_libdir_separator=:
8712       ;;
8713
8714     solaris*)
8715       no_undefined_flag=' -z text'
8716       if test "$GCC" = yes; then
8717         wlarc='${wl}'
8718         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8719         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8720           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8721       else
8722         wlarc=''
8723         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8725         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8726       fi
8727       hardcode_libdir_flag_spec='-R$libdir'
8728       hardcode_shlibpath_var=no
8729       case $host_os in
8730       solaris2.[0-5] | solaris2.[0-5].*) ;;
8731       *)
8732         # The compiler driver will combine and reorder linker options,
8733         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8734         # but is careful enough not to reorder.
8735         # Supported since Solaris 2.6 (maybe 2.5.1?)
8736         if test "$GCC" = yes; then
8737           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8738         else
8739           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8740         fi
8741         ;;
8742       esac
8743       link_all_deplibs=yes
8744       ;;
8745
8746     sunos4*)
8747       if test "x$host_vendor" = xsequent; then
8748         # Use $CC to link under sequent, because it throws in some extra .o
8749         # files that make .init and .fini sections work.
8750         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8751       else
8752         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8753       fi
8754       hardcode_libdir_flag_spec='-L$libdir'
8755       hardcode_direct=yes
8756       hardcode_minus_L=yes
8757       hardcode_shlibpath_var=no
8758       ;;
8759
8760     sysv4)
8761       case $host_vendor in
8762         sni)
8763           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8764           hardcode_direct=yes # is this really true???
8765         ;;
8766         siemens)
8767           ## LD is ld it makes a PLAMLIB
8768           ## CC just makes a GrossModule.
8769           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8770           reload_cmds='$CC -r -o $output$reload_objs'
8771           hardcode_direct=no
8772         ;;
8773         motorola)
8774           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8776         ;;
8777       esac
8778       runpath_var='LD_RUN_PATH'
8779       hardcode_shlibpath_var=no
8780       ;;
8781
8782     sysv4.3*)
8783       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784       hardcode_shlibpath_var=no
8785       export_dynamic_flag_spec='-Bexport'
8786       ;;
8787
8788     sysv4*MP*)
8789       if test -d /usr/nec; then
8790         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791         hardcode_shlibpath_var=no
8792         runpath_var=LD_RUN_PATH
8793         hardcode_runpath_var=yes
8794         ld_shlibs=yes
8795       fi
8796       ;;
8797
8798     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8799       no_undefined_flag='${wl}-z,text'
8800       archive_cmds_need_lc=no
8801       hardcode_shlibpath_var=no
8802       runpath_var='LD_RUN_PATH'
8803
8804       if test "$GCC" = yes; then
8805         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8806         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8807       else
8808         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8809         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8810       fi
8811       ;;
8812
8813     sysv5* | sco3.2v5* | sco5v6*)
8814       # Note: We can NOT use -z defs as we might desire, because we do not
8815       # link with -lc, and that would cause any symbols used from libc to
8816       # always be unresolved, which means just about no library would
8817       # ever link correctly.  If we're not using GNU ld we use -z text
8818       # though, which does catch some bad symbols but isn't as heavy-handed
8819       # as -z defs.
8820       no_undefined_flag='${wl}-z,text'
8821       allow_undefined_flag='${wl}-z,nodefs'
8822       archive_cmds_need_lc=no
8823       hardcode_shlibpath_var=no
8824       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8825       hardcode_libdir_separator=':'
8826       link_all_deplibs=yes
8827       export_dynamic_flag_spec='${wl}-Bexport'
8828       runpath_var='LD_RUN_PATH'
8829
8830       if test "$GCC" = yes; then
8831         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8833       else
8834         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8835         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8836       fi
8837       ;;
8838
8839     uts4*)
8840       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841       hardcode_libdir_flag_spec='-L$libdir'
8842       hardcode_shlibpath_var=no
8843       ;;
8844
8845     *)
8846       ld_shlibs=no
8847       ;;
8848     esac
8849   fi
8850
8851 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8852 echo "${ECHO_T}$ld_shlibs" >&6; }
8853 test "$ld_shlibs" = no && can_build_shared=no
8854
8855 #
8856 # Do we need to explicitly link libc?
8857 #
8858 case "x$archive_cmds_need_lc" in
8859 x|xyes)
8860   # Assume -lc should be added
8861   archive_cmds_need_lc=yes
8862
8863   if test "$enable_shared" = yes && test "$GCC" = yes; then
8864     case $archive_cmds in
8865     *'~'*)
8866       # FIXME: we may have to deal with multi-command sequences.
8867       ;;
8868     '$CC '*)
8869       # Test whether the compiler implicitly links with -lc since on some
8870       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8871       # to ld, don't add -lc before -lgcc.
8872       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8873 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8874       $rm conftest*
8875       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8876
8877       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878   (eval $ac_compile) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); } 2>conftest.err; then
8882         soname=conftest
8883         lib=conftest
8884         libobjs=conftest.$ac_objext
8885         deplibs=
8886         wl=$lt_prog_compiler_wl
8887         pic_flag=$lt_prog_compiler_pic
8888         compiler_flags=-v
8889         linker_flags=-v
8890         verstring=
8891         output_objdir=.
8892         libname=conftest
8893         lt_save_allow_undefined_flag=$allow_undefined_flag
8894         allow_undefined_flag=
8895         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8896   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); }
8900         then
8901           archive_cmds_need_lc=no
8902         else
8903           archive_cmds_need_lc=yes
8904         fi
8905         allow_undefined_flag=$lt_save_allow_undefined_flag
8906       else
8907         cat conftest.err 1>&5
8908       fi
8909       $rm conftest*
8910       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8911 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8912       ;;
8913     esac
8914   fi
8915   ;;
8916 esac
8917
8918 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8919 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8920 library_names_spec=
8921 libname_spec='lib$name'
8922 soname_spec=
8923 shrext_cmds=".so"
8924 postinstall_cmds=
8925 postuninstall_cmds=
8926 finish_cmds=
8927 finish_eval=
8928 shlibpath_var=
8929 shlibpath_overrides_runpath=unknown
8930 version_type=none
8931 dynamic_linker="$host_os ld.so"
8932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8933
8934 if test "$GCC" = yes; then
8935   case $host_os in
8936     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8937     *) lt_awk_arg="/^libraries:/" ;;
8938   esac
8939   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8940   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8941     # if the path contains ";" then we assume it to be the separator
8942     # otherwise default to the standard path separator (i.e. ":") - it is
8943     # assumed that no part of a normal pathname contains ";" but that should
8944     # okay in the real world where ";" in dirpaths is itself problematic.
8945     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8946   else
8947     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8948   fi
8949   # Ok, now we have the path, separated by spaces, we can step through it
8950   # and add multilib dir if necessary.
8951   lt_tmp_lt_search_path_spec=
8952   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8953   for lt_sys_path in $lt_search_path_spec; do
8954     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8955       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8956     else
8957       test -d "$lt_sys_path" && \
8958         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8959     fi
8960   done
8961   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8962 BEGIN {RS=" "; FS="/|\n";} {
8963   lt_foo="";
8964   lt_count=0;
8965   for (lt_i = NF; lt_i > 0; lt_i--) {
8966     if ($lt_i != "" && $lt_i != ".") {
8967       if ($lt_i == "..") {
8968         lt_count++;
8969       } else {
8970         if (lt_count == 0) {
8971           lt_foo="/" $lt_i lt_foo;
8972         } else {
8973           lt_count--;
8974         }
8975       }
8976     }
8977   }
8978   if (lt_foo != "") { lt_freq[lt_foo]++; }
8979   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8980 }'`
8981   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8982 else
8983   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8984 fi
8985 need_lib_prefix=unknown
8986 hardcode_into_libs=no
8987
8988 # when you set need_version to no, make sure it does not cause -set_version
8989 # flags to be left without arguments
8990 need_version=unknown
8991
8992 case $host_os in
8993 aix3*)
8994   version_type=linux
8995   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8996   shlibpath_var=LIBPATH
8997
8998   # AIX 3 has no versioning support, so we append a major version to the name.
8999   soname_spec='${libname}${release}${shared_ext}$major'
9000   ;;
9001
9002 aix[4-9]*)
9003   version_type=linux
9004   need_lib_prefix=no
9005   need_version=no
9006   hardcode_into_libs=yes
9007   if test "$host_cpu" = ia64; then
9008     # AIX 5 supports IA64
9009     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9010     shlibpath_var=LD_LIBRARY_PATH
9011   else
9012     # With GCC up to 2.95.x, collect2 would create an import file
9013     # for dependence libraries.  The import file would start with
9014     # the line `#! .'.  This would cause the generated library to
9015     # depend on `.', always an invalid library.  This was fixed in
9016     # development snapshots of GCC prior to 3.0.
9017     case $host_os in
9018       aix4 | aix4.[01] | aix4.[01].*)
9019       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9020            echo ' yes '
9021            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9022         :
9023       else
9024         can_build_shared=no
9025       fi
9026       ;;
9027     esac
9028     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9029     # soname into executable. Probably we can add versioning support to
9030     # collect2, so additional links can be useful in future.
9031     if test "$aix_use_runtimelinking" = yes; then
9032       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9033       # instead of lib<name>.a to let people know that these are not
9034       # typical AIX shared libraries.
9035       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036     else
9037       # We preserve .a as extension for shared libraries through AIX4.2
9038       # and later when we are not doing run time linking.
9039       library_names_spec='${libname}${release}.a $libname.a'
9040       soname_spec='${libname}${release}${shared_ext}$major'
9041     fi
9042     shlibpath_var=LIBPATH
9043   fi
9044   ;;
9045
9046 amigaos*)
9047   library_names_spec='$libname.ixlibrary $libname.a'
9048   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9049   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'
9050   ;;
9051
9052 beos*)
9053   library_names_spec='${libname}${shared_ext}'
9054   dynamic_linker="$host_os ld.so"
9055   shlibpath_var=LIBRARY_PATH
9056   ;;
9057
9058 bsdi[45]*)
9059   version_type=linux
9060   need_version=no
9061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062   soname_spec='${libname}${release}${shared_ext}$major'
9063   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9064   shlibpath_var=LD_LIBRARY_PATH
9065   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9066   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9067   # the default ld.so.conf also contains /usr/contrib/lib and
9068   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9069   # libtool to hard-code these into programs
9070   ;;
9071
9072 cygwin* | mingw* | pw32*)
9073   version_type=windows
9074   shrext_cmds=".dll"
9075   need_version=no
9076   need_lib_prefix=no
9077
9078   case $GCC,$host_os in
9079   yes,cygwin* | yes,mingw* | yes,pw32*)
9080     library_names_spec='$libname.dll.a'
9081     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9082     postinstall_cmds='base_file=`basename \${file}`~
9083       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9084       dldir=$destdir/`dirname \$dlpath`~
9085       test -d \$dldir || mkdir -p \$dldir~
9086       $install_prog $dir/$dlname \$dldir/$dlname~
9087       chmod a+x \$dldir/$dlname'
9088     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9089       dlpath=$dir/\$dldll~
9090        $rm \$dlpath'
9091     shlibpath_overrides_runpath=yes
9092
9093     case $host_os in
9094     cygwin*)
9095       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9096       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9097       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9098       ;;
9099     mingw*)
9100       # MinGW DLLs use traditional 'lib' prefix
9101       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9102       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9103       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9104         # It is most probably a Windows format PATH printed by
9105         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9106         # path with ; separators, and with drive letters. We can handle the
9107         # drive letters (cygwin fileutils understands them), so leave them,
9108         # especially as we might pass files found there to a mingw objdump,
9109         # which wouldn't understand a cygwinified path. Ahh.
9110         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9111       else
9112         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9113       fi
9114       ;;
9115     pw32*)
9116       # pw32 DLLs use 'pw' prefix rather than 'lib'
9117       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9118       ;;
9119     esac
9120     ;;
9121
9122   *)
9123     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9124     ;;
9125   esac
9126   dynamic_linker='Win32 ld.exe'
9127   # FIXME: first we should search . and the directory the executable is in
9128   shlibpath_var=PATH
9129   ;;
9130
9131 darwin* | rhapsody*)
9132   dynamic_linker="$host_os dyld"
9133   version_type=darwin
9134   need_lib_prefix=no
9135   need_version=no
9136   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9137   soname_spec='${libname}${release}${major}$shared_ext'
9138   shlibpath_overrides_runpath=yes
9139   shlibpath_var=DYLD_LIBRARY_PATH
9140   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9141
9142   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9143   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9144   ;;
9145
9146 dgux*)
9147   version_type=linux
9148   need_lib_prefix=no
9149   need_version=no
9150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9151   soname_spec='${libname}${release}${shared_ext}$major'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   ;;
9154
9155 freebsd1*)
9156   dynamic_linker=no
9157   ;;
9158
9159 freebsd* | dragonfly*)
9160   # DragonFly does not have aout.  When/if they implement a new
9161   # versioning mechanism, adjust this.
9162   if test -x /usr/bin/objformat; then
9163     objformat=`/usr/bin/objformat`
9164   else
9165     case $host_os in
9166     freebsd[123]*) objformat=aout ;;
9167     *) objformat=elf ;;
9168     esac
9169   fi
9170   version_type=freebsd-$objformat
9171   case $version_type in
9172     freebsd-elf*)
9173       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9174       need_version=no
9175       need_lib_prefix=no
9176       ;;
9177     freebsd-*)
9178       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9179       need_version=yes
9180       ;;
9181   esac
9182   shlibpath_var=LD_LIBRARY_PATH
9183   case $host_os in
9184   freebsd2*)
9185     shlibpath_overrides_runpath=yes
9186     ;;
9187   freebsd3.[01]* | freebsdelf3.[01]*)
9188     shlibpath_overrides_runpath=yes
9189     hardcode_into_libs=yes
9190     ;;
9191   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9192   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9193     shlibpath_overrides_runpath=no
9194     hardcode_into_libs=yes
9195     ;;
9196   *) # from 4.6 on, and DragonFly
9197     shlibpath_overrides_runpath=yes
9198     hardcode_into_libs=yes
9199     ;;
9200   esac
9201   ;;
9202
9203 gnu*)
9204   version_type=linux
9205   need_lib_prefix=no
9206   need_version=no
9207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9208   soname_spec='${libname}${release}${shared_ext}$major'
9209   shlibpath_var=LD_LIBRARY_PATH
9210   hardcode_into_libs=yes
9211   ;;
9212
9213 hpux9* | hpux10* | hpux11*)
9214   # Give a soname corresponding to the major version so that dld.sl refuses to
9215   # link against other versions.
9216   version_type=sunos
9217   need_lib_prefix=no
9218   need_version=no
9219   case $host_cpu in
9220   ia64*)
9221     shrext_cmds='.so'
9222     hardcode_into_libs=yes
9223     dynamic_linker="$host_os dld.so"
9224     shlibpath_var=LD_LIBRARY_PATH
9225     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9226     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227     soname_spec='${libname}${release}${shared_ext}$major'
9228     if test "X$HPUX_IA64_MODE" = X32; then
9229       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9230     else
9231       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9232     fi
9233     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9234     ;;
9235    hppa*64*)
9236      shrext_cmds='.sl'
9237      hardcode_into_libs=yes
9238      dynamic_linker="$host_os dld.sl"
9239      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9240      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9241      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242      soname_spec='${libname}${release}${shared_ext}$major'
9243      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9244      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9245      ;;
9246    *)
9247     shrext_cmds='.sl'
9248     dynamic_linker="$host_os dld.sl"
9249     shlibpath_var=SHLIB_PATH
9250     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252     soname_spec='${libname}${release}${shared_ext}$major'
9253     ;;
9254   esac
9255   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9256   postinstall_cmds='chmod 555 $lib'
9257   ;;
9258
9259 interix[3-9]*)
9260   version_type=linux
9261   need_lib_prefix=no
9262   need_version=no
9263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9264   soname_spec='${libname}${release}${shared_ext}$major'
9265   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9266   shlibpath_var=LD_LIBRARY_PATH
9267   shlibpath_overrides_runpath=no
9268   hardcode_into_libs=yes
9269   ;;
9270
9271 irix5* | irix6* | nonstopux*)
9272   case $host_os in
9273     nonstopux*) version_type=nonstopux ;;
9274     *)
9275         if test "$lt_cv_prog_gnu_ld" = yes; then
9276                 version_type=linux
9277         else
9278                 version_type=irix
9279         fi ;;
9280   esac
9281   need_lib_prefix=no
9282   need_version=no
9283   soname_spec='${libname}${release}${shared_ext}$major'
9284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9285   case $host_os in
9286   irix5* | nonstopux*)
9287     libsuff= shlibsuff=
9288     ;;
9289   *)
9290     case $LD in # libtool.m4 will add one of these switches to LD
9291     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9292       libsuff= shlibsuff= libmagic=32-bit;;
9293     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9294       libsuff=32 shlibsuff=N32 libmagic=N32;;
9295     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9296       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9297     *) libsuff= shlibsuff= libmagic=never-match;;
9298     esac
9299     ;;
9300   esac
9301   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9302   shlibpath_overrides_runpath=no
9303   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9304   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9305   hardcode_into_libs=yes
9306   ;;
9307
9308 # No shared lib support for Linux oldld, aout, or coff.
9309 linux*oldld* | linux*aout* | linux*coff*)
9310   dynamic_linker=no
9311   ;;
9312
9313 # This must be Linux ELF.
9314 linux* | k*bsd*-gnu)
9315   version_type=linux
9316   need_lib_prefix=no
9317   need_version=no
9318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319   soname_spec='${libname}${release}${shared_ext}$major'
9320   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9321   shlibpath_var=LD_LIBRARY_PATH
9322   shlibpath_overrides_runpath=no
9323   # This implies no fast_install, which is unacceptable.
9324   # Some rework will be needed to allow for fast_install
9325   # before this can be enabled.
9326   hardcode_into_libs=yes
9327
9328   # Append ld.so.conf contents to the search path
9329   if test -f /etc/ld.so.conf; then
9330     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' ' '`
9331     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9332   fi
9333
9334   # We used to test for /lib/ld.so.1 and disable shared libraries on
9335   # powerpc, because MkLinux only supported shared libraries with the
9336   # GNU dynamic linker.  Since this was broken with cross compilers,
9337   # most powerpc-linux boxes support dynamic linking these days and
9338   # people can always --disable-shared, the test was removed, and we
9339   # assume the GNU/Linux dynamic linker is in use.
9340   dynamic_linker='GNU/Linux ld.so'
9341   ;;
9342
9343 netbsdelf*-gnu)
9344   version_type=linux
9345   need_lib_prefix=no
9346   need_version=no
9347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9348   soname_spec='${libname}${release}${shared_ext}$major'
9349   shlibpath_var=LD_LIBRARY_PATH
9350   shlibpath_overrides_runpath=no
9351   hardcode_into_libs=yes
9352   dynamic_linker='NetBSD ld.elf_so'
9353   ;;
9354
9355 netbsd*)
9356   version_type=sunos
9357   need_lib_prefix=no
9358   need_version=no
9359   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9361     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9362     dynamic_linker='NetBSD (a.out) ld.so'
9363   else
9364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9365     soname_spec='${libname}${release}${shared_ext}$major'
9366     dynamic_linker='NetBSD ld.elf_so'
9367   fi
9368   shlibpath_var=LD_LIBRARY_PATH
9369   shlibpath_overrides_runpath=yes
9370   hardcode_into_libs=yes
9371   ;;
9372
9373 newsos6)
9374   version_type=linux
9375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376   shlibpath_var=LD_LIBRARY_PATH
9377   shlibpath_overrides_runpath=yes
9378   ;;
9379
9380 nto-qnx*)
9381   version_type=linux
9382   need_lib_prefix=no
9383   need_version=no
9384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385   soname_spec='${libname}${release}${shared_ext}$major'
9386   shlibpath_var=LD_LIBRARY_PATH
9387   shlibpath_overrides_runpath=yes
9388   ;;
9389
9390 openbsd*)
9391   version_type=sunos
9392   sys_lib_dlsearch_path_spec="/usr/lib"
9393   need_lib_prefix=no
9394   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9395   case $host_os in
9396     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9397     *)                         need_version=no  ;;
9398   esac
9399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9400   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9401   shlibpath_var=LD_LIBRARY_PATH
9402   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9403     case $host_os in
9404       openbsd2.[89] | openbsd2.[89].*)
9405         shlibpath_overrides_runpath=no
9406         ;;
9407       *)
9408         shlibpath_overrides_runpath=yes
9409         ;;
9410       esac
9411   else
9412     shlibpath_overrides_runpath=yes
9413   fi
9414   ;;
9415
9416 os2*)
9417   libname_spec='$name'
9418   shrext_cmds=".dll"
9419   need_lib_prefix=no
9420   library_names_spec='$libname${shared_ext} $libname.a'
9421   dynamic_linker='OS/2 ld.exe'
9422   shlibpath_var=LIBPATH
9423   ;;
9424
9425 osf3* | osf4* | osf5*)
9426   version_type=osf
9427   need_lib_prefix=no
9428   need_version=no
9429   soname_spec='${libname}${release}${shared_ext}$major'
9430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431   shlibpath_var=LD_LIBRARY_PATH
9432   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9433   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9434   ;;
9435
9436 rdos*)
9437   dynamic_linker=no
9438   ;;
9439
9440 solaris*)
9441   version_type=linux
9442   need_lib_prefix=no
9443   need_version=no
9444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445   soname_spec='${libname}${release}${shared_ext}$major'
9446   shlibpath_var=LD_LIBRARY_PATH
9447   shlibpath_overrides_runpath=yes
9448   hardcode_into_libs=yes
9449   # ldd complains unless libraries are executable
9450   postinstall_cmds='chmod +x $lib'
9451   ;;
9452
9453 sunos4*)
9454   version_type=sunos
9455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9456   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9457   shlibpath_var=LD_LIBRARY_PATH
9458   shlibpath_overrides_runpath=yes
9459   if test "$with_gnu_ld" = yes; then
9460     need_lib_prefix=no
9461   fi
9462   need_version=yes
9463   ;;
9464
9465 sysv4 | sysv4.3*)
9466   version_type=linux
9467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468   soname_spec='${libname}${release}${shared_ext}$major'
9469   shlibpath_var=LD_LIBRARY_PATH
9470   case $host_vendor in
9471     sni)
9472       shlibpath_overrides_runpath=no
9473       need_lib_prefix=no
9474       export_dynamic_flag_spec='${wl}-Blargedynsym'
9475       runpath_var=LD_RUN_PATH
9476       ;;
9477     siemens)
9478       need_lib_prefix=no
9479       ;;
9480     motorola)
9481       need_lib_prefix=no
9482       need_version=no
9483       shlibpath_overrides_runpath=no
9484       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9485       ;;
9486   esac
9487   ;;
9488
9489 sysv4*MP*)
9490   if test -d /usr/nec ;then
9491     version_type=linux
9492     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9493     soname_spec='$libname${shared_ext}.$major'
9494     shlibpath_var=LD_LIBRARY_PATH
9495   fi
9496   ;;
9497
9498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9499   version_type=freebsd-elf
9500   need_lib_prefix=no
9501   need_version=no
9502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9503   soname_spec='${libname}${release}${shared_ext}$major'
9504   shlibpath_var=LD_LIBRARY_PATH
9505   hardcode_into_libs=yes
9506   if test "$with_gnu_ld" = yes; then
9507     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9508     shlibpath_overrides_runpath=no
9509   else
9510     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9511     shlibpath_overrides_runpath=yes
9512     case $host_os in
9513       sco3.2v5*)
9514         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9515         ;;
9516     esac
9517   fi
9518   sys_lib_dlsearch_path_spec='/usr/lib'
9519   ;;
9520
9521 uts4*)
9522   version_type=linux
9523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524   soname_spec='${libname}${release}${shared_ext}$major'
9525   shlibpath_var=LD_LIBRARY_PATH
9526   ;;
9527
9528 *)
9529   dynamic_linker=no
9530   ;;
9531 esac
9532 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9533 echo "${ECHO_T}$dynamic_linker" >&6; }
9534 test "$dynamic_linker" = no && can_build_shared=no
9535
9536 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9540 fi
9541
9542 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9543 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9547 fi
9548
9549 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9550
9551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9552 if test "$GCC" = yes; then
9553   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9554 fi
9555
9556 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9557 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9558 hardcode_action=
9559 if test -n "$hardcode_libdir_flag_spec" || \
9560    test -n "$runpath_var" || \
9561    test "X$hardcode_automatic" = "Xyes" ; then
9562
9563   # We can hardcode non-existant directories.
9564   if test "$hardcode_direct" != no &&
9565      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9566      # have to relink, otherwise we might link with an installed library
9567      # when we should be linking with a yet-to-be-installed one
9568      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9569      test "$hardcode_minus_L" != no; then
9570     # Linking always hardcodes the temporary library directory.
9571     hardcode_action=relink
9572   else
9573     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9574     hardcode_action=immediate
9575   fi
9576 else
9577   # We cannot hardcode anything, or else we can only hardcode existing
9578   # directories.
9579   hardcode_action=unsupported
9580 fi
9581 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9582 echo "${ECHO_T}$hardcode_action" >&6; }
9583
9584 if test "$hardcode_action" = relink; then
9585   # Fast installation is not supported
9586   enable_fast_install=no
9587 elif test "$shlibpath_overrides_runpath" = yes ||
9588      test "$enable_shared" = no; then
9589   # Fast installation is not necessary
9590   enable_fast_install=needless
9591 fi
9592
9593 striplib=
9594 old_striplib=
9595 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9596 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9597 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9598   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9599   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9600   { echo "$as_me:$LINENO: result: yes" >&5
9601 echo "${ECHO_T}yes" >&6; }
9602 else
9603 # FIXME - insert some real tests, host_os isn't really good enough
9604   case $host_os in
9605    darwin*)
9606        if test -n "$STRIP" ; then
9607          striplib="$STRIP -x"
9608          old_striplib="$STRIP -S"
9609          { echo "$as_me:$LINENO: result: yes" >&5
9610 echo "${ECHO_T}yes" >&6; }
9611        else
9612   { echo "$as_me:$LINENO: result: no" >&5
9613 echo "${ECHO_T}no" >&6; }
9614 fi
9615        ;;
9616    *)
9617   { echo "$as_me:$LINENO: result: no" >&5
9618 echo "${ECHO_T}no" >&6; }
9619     ;;
9620   esac
9621 fi
9622
9623 if test "x$enable_dlopen" != xyes; then
9624   enable_dlopen=unknown
9625   enable_dlopen_self=unknown
9626   enable_dlopen_self_static=unknown
9627 else
9628   lt_cv_dlopen=no
9629   lt_cv_dlopen_libs=
9630
9631   case $host_os in
9632   beos*)
9633     lt_cv_dlopen="load_add_on"
9634     lt_cv_dlopen_libs=
9635     lt_cv_dlopen_self=yes
9636     ;;
9637
9638   mingw* | pw32*)
9639     lt_cv_dlopen="LoadLibrary"
9640     lt_cv_dlopen_libs=
9641    ;;
9642
9643   cygwin*)
9644     lt_cv_dlopen="dlopen"
9645     lt_cv_dlopen_libs=
9646    ;;
9647
9648   darwin*)
9649   # if libdl is installed we need to link against it
9650     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9651 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9653   echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655   ac_check_lib_save_LIBS=$LIBS
9656 LIBS="-ldl  $LIBS"
9657 cat >conftest.$ac_ext <<_ACEOF
9658 /* confdefs.h.  */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h.  */
9663
9664 /* Override any GCC internal prototype to avoid an error.
9665    Use char because int might match the return type of a GCC
9666    builtin and then its argument prototype would still apply.  */
9667 #ifdef __cplusplus
9668 extern "C"
9669 #endif
9670 char dlopen ();
9671 int
9672 main ()
9673 {
9674 return dlopen ();
9675   ;
9676   return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest.$ac_objext conftest$ac_exeext
9680 if { (ac_try="$ac_link"
9681 case "(($ac_try" in
9682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683   *) ac_try_echo=$ac_try;;
9684 esac
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686   (eval "$ac_link") 2>conftest.er1
9687   ac_status=$?
9688   grep -v '^ *+' conftest.er1 >conftest.err
9689   rm -f conftest.er1
9690   cat conftest.err >&5
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); } && {
9693          test -z "$ac_c_werror_flag" ||
9694          test ! -s conftest.err
9695        } && test -s conftest$ac_exeext &&
9696        $as_test_x conftest$ac_exeext; then
9697   ac_cv_lib_dl_dlopen=yes
9698 else
9699   echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702         ac_cv_lib_dl_dlopen=no
9703 fi
9704
9705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9706       conftest$ac_exeext conftest.$ac_ext
9707 LIBS=$ac_check_lib_save_LIBS
9708 fi
9709 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9710 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9711 if test $ac_cv_lib_dl_dlopen = yes; then
9712   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9713 else
9714
9715     lt_cv_dlopen="dyld"
9716     lt_cv_dlopen_libs=
9717     lt_cv_dlopen_self=yes
9718
9719 fi
9720
9721    ;;
9722
9723   *)
9724     { echo "$as_me:$LINENO: checking for shl_load" >&5
9725 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9726 if test "${ac_cv_func_shl_load+set}" = set; then
9727   echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729   cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h.  */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h.  */
9735 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9737 #define shl_load innocuous_shl_load
9738
9739 /* System header to define __stub macros and hopefully few prototypes,
9740     which can conflict with char shl_load (); below.
9741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9742     <limits.h> exists even on freestanding compilers.  */
9743
9744 #ifdef __STDC__
9745 # include <limits.h>
9746 #else
9747 # include <assert.h>
9748 #endif
9749
9750 #undef shl_load
9751
9752 /* Override any GCC internal prototype to avoid an error.
9753    Use char because int might match the return type of a GCC
9754    builtin and then its argument prototype would still apply.  */
9755 #ifdef __cplusplus
9756 extern "C"
9757 #endif
9758 char shl_load ();
9759 /* The GNU C library defines this for functions which it implements
9760     to always fail with ENOSYS.  Some functions are actually named
9761     something starting with __ and the normal name is an alias.  */
9762 #if defined __stub_shl_load || defined __stub___shl_load
9763 choke me
9764 #endif
9765
9766 int
9767 main ()
9768 {
9769 return shl_load ();
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9776 case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_link") 2>conftest.er1
9782   ac_status=$?
9783   grep -v '^ *+' conftest.er1 >conftest.err
9784   rm -f conftest.er1
9785   cat conftest.err >&5
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } && {
9788          test -z "$ac_c_werror_flag" ||
9789          test ! -s conftest.err
9790        } && test -s conftest$ac_exeext &&
9791        $as_test_x conftest$ac_exeext; then
9792   ac_cv_func_shl_load=yes
9793 else
9794   echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9796
9797         ac_cv_func_shl_load=no
9798 fi
9799
9800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9801       conftest$ac_exeext conftest.$ac_ext
9802 fi
9803 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9804 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9805 if test $ac_cv_func_shl_load = yes; then
9806   lt_cv_dlopen="shl_load"
9807 else
9808   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9809 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9810 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9811   echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813   ac_check_lib_save_LIBS=$LIBS
9814 LIBS="-ldld  $LIBS"
9815 cat >conftest.$ac_ext <<_ACEOF
9816 /* confdefs.h.  */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h.  */
9821
9822 /* Override any GCC internal prototype to avoid an error.
9823    Use char because int might match the return type of a GCC
9824    builtin and then its argument prototype would still apply.  */
9825 #ifdef __cplusplus
9826 extern "C"
9827 #endif
9828 char shl_load ();
9829 int
9830 main ()
9831 {
9832 return shl_load ();
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (ac_try="$ac_link"
9839 case "(($ac_try" in
9840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841   *) ac_try_echo=$ac_try;;
9842 esac
9843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9844   (eval "$ac_link") 2>conftest.er1
9845   ac_status=$?
9846   grep -v '^ *+' conftest.er1 >conftest.err
9847   rm -f conftest.er1
9848   cat conftest.err >&5
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); } && {
9851          test -z "$ac_c_werror_flag" ||
9852          test ! -s conftest.err
9853        } && test -s conftest$ac_exeext &&
9854        $as_test_x conftest$ac_exeext; then
9855   ac_cv_lib_dld_shl_load=yes
9856 else
9857   echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9859
9860         ac_cv_lib_dld_shl_load=no
9861 fi
9862
9863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9864       conftest$ac_exeext conftest.$ac_ext
9865 LIBS=$ac_check_lib_save_LIBS
9866 fi
9867 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9868 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9869 if test $ac_cv_lib_dld_shl_load = yes; then
9870   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9871 else
9872   { echo "$as_me:$LINENO: checking for dlopen" >&5
9873 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9874 if test "${ac_cv_func_dlopen+set}" = set; then
9875   echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877   cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h.  */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h.  */
9883 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9885 #define dlopen innocuous_dlopen
9886
9887 /* System header to define __stub macros and hopefully few prototypes,
9888     which can conflict with char dlopen (); below.
9889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9890     <limits.h> exists even on freestanding compilers.  */
9891
9892 #ifdef __STDC__
9893 # include <limits.h>
9894 #else
9895 # include <assert.h>
9896 #endif
9897
9898 #undef dlopen
9899
9900 /* Override any GCC internal prototype to avoid an error.
9901    Use char because int might match the return type of a GCC
9902    builtin and then its argument prototype would still apply.  */
9903 #ifdef __cplusplus
9904 extern "C"
9905 #endif
9906 char dlopen ();
9907 /* The GNU C library defines this for functions which it implements
9908     to always fail with ENOSYS.  Some functions are actually named
9909     something starting with __ and the normal name is an alias.  */
9910 #if defined __stub_dlopen || defined __stub___dlopen
9911 choke me
9912 #endif
9913
9914 int
9915 main ()
9916 {
9917 return dlopen ();
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9924 case "(($ac_try" in
9925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926   *) ac_try_echo=$ac_try;;
9927 esac
9928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929   (eval "$ac_link") 2>conftest.er1
9930   ac_status=$?
9931   grep -v '^ *+' conftest.er1 >conftest.err
9932   rm -f conftest.er1
9933   cat conftest.err >&5
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); } && {
9936          test -z "$ac_c_werror_flag" ||
9937          test ! -s conftest.err
9938        } && test -s conftest$ac_exeext &&
9939        $as_test_x conftest$ac_exeext; then
9940   ac_cv_func_dlopen=yes
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945         ac_cv_func_dlopen=no
9946 fi
9947
9948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9949       conftest$ac_exeext conftest.$ac_ext
9950 fi
9951 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9952 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9953 if test $ac_cv_func_dlopen = yes; then
9954   lt_cv_dlopen="dlopen"
9955 else
9956   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9959   echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961   ac_check_lib_save_LIBS=$LIBS
9962 LIBS="-ldl  $LIBS"
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969
9970 /* Override any GCC internal prototype to avoid an error.
9971    Use char because int might match the return type of a GCC
9972    builtin and then its argument prototype would still apply.  */
9973 #ifdef __cplusplus
9974 extern "C"
9975 #endif
9976 char dlopen ();
9977 int
9978 main ()
9979 {
9980 return dlopen ();
9981   ;
9982   return 0;
9983 }
9984 _ACEOF
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (ac_try="$ac_link"
9987 case "(($ac_try" in
9988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989   *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992   (eval "$ac_link") 2>conftest.er1
9993   ac_status=$?
9994   grep -v '^ *+' conftest.er1 >conftest.err
9995   rm -f conftest.er1
9996   cat conftest.err >&5
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); } && {
9999          test -z "$ac_c_werror_flag" ||
10000          test ! -s conftest.err
10001        } && test -s conftest$ac_exeext &&
10002        $as_test_x conftest$ac_exeext; then
10003   ac_cv_lib_dl_dlopen=yes
10004 else
10005   echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10007
10008         ac_cv_lib_dl_dlopen=no
10009 fi
10010
10011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10012       conftest$ac_exeext conftest.$ac_ext
10013 LIBS=$ac_check_lib_save_LIBS
10014 fi
10015 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10016 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10017 if test $ac_cv_lib_dl_dlopen = yes; then
10018   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10019 else
10020   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10021 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lsvld  $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033
10034 /* Override any GCC internal prototype to avoid an error.
10035    Use char because int might match the return type of a GCC
10036    builtin and then its argument prototype would still apply.  */
10037 #ifdef __cplusplus
10038 extern "C"
10039 #endif
10040 char dlopen ();
10041 int
10042 main ()
10043 {
10044 return dlopen ();
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053   *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056   (eval "$ac_link") 2>conftest.er1
10057   ac_status=$?
10058   grep -v '^ *+' conftest.er1 >conftest.err
10059   rm -f conftest.er1
10060   cat conftest.err >&5
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); } && {
10063          test -z "$ac_c_werror_flag" ||
10064          test ! -s conftest.err
10065        } && test -s conftest$ac_exeext &&
10066        $as_test_x conftest$ac_exeext; then
10067   ac_cv_lib_svld_dlopen=yes
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072         ac_cv_lib_svld_dlopen=no
10073 fi
10074
10075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10076       conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10078 fi
10079 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10080 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10081 if test $ac_cv_lib_svld_dlopen = yes; then
10082   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10083 else
10084   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10085 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10086 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10087   echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089   ac_check_lib_save_LIBS=$LIBS
10090 LIBS="-ldld  $LIBS"
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h.  */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h.  */
10097
10098 /* Override any GCC internal prototype to avoid an error.
10099    Use char because int might match the return type of a GCC
10100    builtin and then its argument prototype would still apply.  */
10101 #ifdef __cplusplus
10102 extern "C"
10103 #endif
10104 char dld_link ();
10105 int
10106 main ()
10107 {
10108 return dld_link ();
10109   ;
10110   return 0;
10111 }
10112 _ACEOF
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117   *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120   (eval "$ac_link") 2>conftest.er1
10121   ac_status=$?
10122   grep -v '^ *+' conftest.er1 >conftest.err
10123   rm -f conftest.er1
10124   cat conftest.err >&5
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); } && {
10127          test -z "$ac_c_werror_flag" ||
10128          test ! -s conftest.err
10129        } && test -s conftest$ac_exeext &&
10130        $as_test_x conftest$ac_exeext; then
10131   ac_cv_lib_dld_dld_link=yes
10132 else
10133   echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136         ac_cv_lib_dld_dld_link=no
10137 fi
10138
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140       conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10142 fi
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10144 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10145 if test $ac_cv_lib_dld_dld_link = yes; then
10146   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10147 fi
10148
10149
10150 fi
10151
10152
10153 fi
10154
10155
10156 fi
10157
10158
10159 fi
10160
10161
10162 fi
10163
10164     ;;
10165   esac
10166
10167   if test "x$lt_cv_dlopen" != xno; then
10168     enable_dlopen=yes
10169   else
10170     enable_dlopen=no
10171   fi
10172
10173   case $lt_cv_dlopen in
10174   dlopen)
10175     save_CPPFLAGS="$CPPFLAGS"
10176     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10177
10178     save_LDFLAGS="$LDFLAGS"
10179     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10180
10181     save_LIBS="$LIBS"
10182     LIBS="$lt_cv_dlopen_libs $LIBS"
10183
10184     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10185 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10186 if test "${lt_cv_dlopen_self+set}" = set; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189           if test "$cross_compiling" = yes; then :
10190   lt_cv_dlopen_self=cross
10191 else
10192   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10193   lt_status=$lt_dlunknown
10194   cat > conftest.$ac_ext <<EOF
10195 #line 10195 "configure"
10196 #include "confdefs.h"
10197
10198 #if HAVE_DLFCN_H
10199 #include <dlfcn.h>
10200 #endif
10201
10202 #include <stdio.h>
10203
10204 #ifdef RTLD_GLOBAL
10205 #  define LT_DLGLOBAL           RTLD_GLOBAL
10206 #else
10207 #  ifdef DL_GLOBAL
10208 #    define LT_DLGLOBAL         DL_GLOBAL
10209 #  else
10210 #    define LT_DLGLOBAL         0
10211 #  endif
10212 #endif
10213
10214 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10215    find out it does not work in some platform. */
10216 #ifndef LT_DLLAZY_OR_NOW
10217 #  ifdef RTLD_LAZY
10218 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10219 #  else
10220 #    ifdef DL_LAZY
10221 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10222 #    else
10223 #      ifdef RTLD_NOW
10224 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10225 #      else
10226 #        ifdef DL_NOW
10227 #          define LT_DLLAZY_OR_NOW      DL_NOW
10228 #        else
10229 #          define LT_DLLAZY_OR_NOW      0
10230 #        endif
10231 #      endif
10232 #    endif
10233 #  endif
10234 #endif
10235
10236 #ifdef __cplusplus
10237 extern "C" void exit (int);
10238 #endif
10239
10240 void fnord() { int i=42;}
10241 int main ()
10242 {
10243   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10244   int status = $lt_dlunknown;
10245
10246   if (self)
10247     {
10248       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10249       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10250       /* dlclose (self); */
10251     }
10252   else
10253     puts (dlerror ());
10254
10255     exit (status);
10256 }
10257 EOF
10258   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10259   (eval $ac_link) 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10263     (./conftest; exit; ) >&5 2>/dev/null
10264     lt_status=$?
10265     case x$lt_status in
10266       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10267       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10268       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10269     esac
10270   else :
10271     # compilation failed
10272     lt_cv_dlopen_self=no
10273   fi
10274 fi
10275 rm -fr conftest*
10276
10277
10278 fi
10279 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10280 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10281
10282     if test "x$lt_cv_dlopen_self" = xyes; then
10283       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10284       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10285 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10286 if test "${lt_cv_dlopen_self_static+set}" = set; then
10287   echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289           if test "$cross_compiling" = yes; then :
10290   lt_cv_dlopen_self_static=cross
10291 else
10292   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10293   lt_status=$lt_dlunknown
10294   cat > conftest.$ac_ext <<EOF
10295 #line 10295 "configure"
10296 #include "confdefs.h"
10297
10298 #if HAVE_DLFCN_H
10299 #include <dlfcn.h>
10300 #endif
10301
10302 #include <stdio.h>
10303
10304 #ifdef RTLD_GLOBAL
10305 #  define LT_DLGLOBAL           RTLD_GLOBAL
10306 #else
10307 #  ifdef DL_GLOBAL
10308 #    define LT_DLGLOBAL         DL_GLOBAL
10309 #  else
10310 #    define LT_DLGLOBAL         0
10311 #  endif
10312 #endif
10313
10314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10315    find out it does not work in some platform. */
10316 #ifndef LT_DLLAZY_OR_NOW
10317 #  ifdef RTLD_LAZY
10318 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10319 #  else
10320 #    ifdef DL_LAZY
10321 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10322 #    else
10323 #      ifdef RTLD_NOW
10324 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10325 #      else
10326 #        ifdef DL_NOW
10327 #          define LT_DLLAZY_OR_NOW      DL_NOW
10328 #        else
10329 #          define LT_DLLAZY_OR_NOW      0
10330 #        endif
10331 #      endif
10332 #    endif
10333 #  endif
10334 #endif
10335
10336 #ifdef __cplusplus
10337 extern "C" void exit (int);
10338 #endif
10339
10340 void fnord() { int i=42;}
10341 int main ()
10342 {
10343   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10344   int status = $lt_dlunknown;
10345
10346   if (self)
10347     {
10348       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10349       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10350       /* dlclose (self); */
10351     }
10352   else
10353     puts (dlerror ());
10354
10355     exit (status);
10356 }
10357 EOF
10358   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10359   (eval $ac_link) 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10363     (./conftest; exit; ) >&5 2>/dev/null
10364     lt_status=$?
10365     case x$lt_status in
10366       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10367       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10368       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10369     esac
10370   else :
10371     # compilation failed
10372     lt_cv_dlopen_self_static=no
10373   fi
10374 fi
10375 rm -fr conftest*
10376
10377
10378 fi
10379 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10380 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10381     fi
10382
10383     CPPFLAGS="$save_CPPFLAGS"
10384     LDFLAGS="$save_LDFLAGS"
10385     LIBS="$save_LIBS"
10386     ;;
10387   esac
10388
10389   case $lt_cv_dlopen_self in
10390   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10391   *) enable_dlopen_self=unknown ;;
10392   esac
10393
10394   case $lt_cv_dlopen_self_static in
10395   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10396   *) enable_dlopen_self_static=unknown ;;
10397   esac
10398 fi
10399
10400
10401 # Report which library types will actually be built
10402 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10403 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10404 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10405 echo "${ECHO_T}$can_build_shared" >&6; }
10406
10407 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10408 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10409 test "$can_build_shared" = "no" && enable_shared=no
10410
10411 # On AIX, shared libraries and static libraries use the same namespace, and
10412 # are all built from PIC.
10413 case $host_os in
10414 aix3*)
10415   test "$enable_shared" = yes && enable_static=no
10416   if test -n "$RANLIB"; then
10417     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10418     postinstall_cmds='$RANLIB $lib'
10419   fi
10420   ;;
10421
10422 aix[4-9]*)
10423   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10424     test "$enable_shared" = yes && enable_static=no
10425   fi
10426     ;;
10427 esac
10428 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10429 echo "${ECHO_T}$enable_shared" >&6; }
10430
10431 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10432 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10433 # Make sure either enable_shared or enable_static is yes.
10434 test "$enable_shared" = yes || enable_static=yes
10435 { echo "$as_me:$LINENO: result: $enable_static" >&5
10436 echo "${ECHO_T}$enable_static" >&6; }
10437
10438 # The else clause should only fire when bootstrapping the
10439 # libtool distribution, otherwise you forgot to ship ltmain.sh
10440 # with your package, and you will get complaints that there are
10441 # no rules to generate ltmain.sh.
10442 if test -f "$ltmain"; then
10443   # See if we are running on zsh, and set the options which allow our commands through
10444   # without removal of \ escapes.
10445   if test -n "${ZSH_VERSION+set}" ; then
10446     setopt NO_GLOB_SUBST
10447   fi
10448   # Now quote all the things that may contain metacharacters while being
10449   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10450   # variables and quote the copies for generation of the libtool script.
10451   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10452     SED SHELL STRIP \
10453     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10454     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10455     deplibs_check_method reload_flag reload_cmds need_locks \
10456     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10457     lt_cv_sys_global_symbol_to_c_name_address \
10458     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10459     old_postinstall_cmds old_postuninstall_cmds \
10460     compiler \
10461     CC \
10462     LD \
10463     lt_prog_compiler_wl \
10464     lt_prog_compiler_pic \
10465     lt_prog_compiler_static \
10466     lt_prog_compiler_no_builtin_flag \
10467     export_dynamic_flag_spec \
10468     thread_safe_flag_spec \
10469     whole_archive_flag_spec \
10470     enable_shared_with_static_runtimes \
10471     old_archive_cmds \
10472     old_archive_from_new_cmds \
10473     predep_objects \
10474     postdep_objects \
10475     predeps \
10476     postdeps \
10477     compiler_lib_search_path \
10478     compiler_lib_search_dirs \
10479     archive_cmds \
10480     archive_expsym_cmds \
10481     postinstall_cmds \
10482     postuninstall_cmds \
10483     old_archive_from_expsyms_cmds \
10484     allow_undefined_flag \
10485     no_undefined_flag \
10486     export_symbols_cmds \
10487     hardcode_libdir_flag_spec \
10488     hardcode_libdir_flag_spec_ld \
10489     hardcode_libdir_separator \
10490     hardcode_automatic \
10491     module_cmds \
10492     module_expsym_cmds \
10493     lt_cv_prog_compiler_c_o \
10494     fix_srcfile_path \
10495     exclude_expsyms \
10496     include_expsyms; do
10497
10498     case $var in
10499     old_archive_cmds | \
10500     old_archive_from_new_cmds | \
10501     archive_cmds | \
10502     archive_expsym_cmds | \
10503     module_cmds | \
10504     module_expsym_cmds | \
10505     old_archive_from_expsyms_cmds | \
10506     export_symbols_cmds | \
10507     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10508     postinstall_cmds | postuninstall_cmds | \
10509     old_postinstall_cmds | old_postuninstall_cmds | \
10510     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10511       # Double-quote double-evaled strings.
10512       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10513       ;;
10514     *)
10515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10516       ;;
10517     esac
10518   done
10519
10520   case $lt_echo in
10521   *'\$0 --fallback-echo"')
10522     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10523     ;;
10524   esac
10525
10526 cfgfile="${ofile}T"
10527   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10528   $rm -f "$cfgfile"
10529   { echo "$as_me:$LINENO: creating $ofile" >&5
10530 echo "$as_me: creating $ofile" >&6;}
10531
10532   cat <<__EOF__ >> "$cfgfile"
10533 #! $SHELL
10534
10535 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10536 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10537 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10538 #
10539 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10540 # Free Software Foundation, Inc.
10541 #
10542 # This file is part of GNU Libtool:
10543 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10544 #
10545 # This program is free software; you can redistribute it and/or modify
10546 # it under the terms of the GNU General Public License as published by
10547 # the Free Software Foundation; either version 2 of the License, or
10548 # (at your option) any later version.
10549 #
10550 # This program is distributed in the hope that it will be useful, but
10551 # WITHOUT ANY WARRANTY; without even the implied warranty of
10552 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10553 # General Public License for more details.
10554 #
10555 # You should have received a copy of the GNU General Public License
10556 # along with this program; if not, write to the Free Software
10557 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10558 #
10559 # As a special exception to the GNU General Public License, if you
10560 # distribute this file as part of a program that contains a
10561 # configuration script generated by Autoconf, you may include it under
10562 # the same distribution terms that you use for the rest of that program.
10563
10564 # A sed program that does not truncate output.
10565 SED=$lt_SED
10566
10567 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10568 Xsed="$SED -e 1s/^X//"
10569
10570 # The HP-UX ksh and POSIX shell print the target directory to stdout
10571 # if CDPATH is set.
10572 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10573
10574 # The names of the tagged configurations supported by this script.
10575 available_tags=
10576
10577 # ### BEGIN LIBTOOL CONFIG
10578
10579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10580
10581 # Shell to use when invoking shell scripts.
10582 SHELL=$lt_SHELL
10583
10584 # Whether or not to build shared libraries.
10585 build_libtool_libs=$enable_shared
10586
10587 # Whether or not to build static libraries.
10588 build_old_libs=$enable_static
10589
10590 # Whether or not to add -lc for building shared libraries.
10591 build_libtool_need_lc=$archive_cmds_need_lc
10592
10593 # Whether or not to disallow shared libs when runtime libs are static
10594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10595
10596 # Whether or not to optimize for fast installation.
10597 fast_install=$enable_fast_install
10598
10599 # The host system.
10600 host_alias=$host_alias
10601 host=$host
10602 host_os=$host_os
10603
10604 # The build system.
10605 build_alias=$build_alias
10606 build=$build
10607 build_os=$build_os
10608
10609 # An echo program that does not interpret backslashes.
10610 echo=$lt_echo
10611
10612 # The archiver.
10613 AR=$lt_AR
10614 AR_FLAGS=$lt_AR_FLAGS
10615
10616 # A C compiler.
10617 LTCC=$lt_LTCC
10618
10619 # LTCC compiler flags.
10620 LTCFLAGS=$lt_LTCFLAGS
10621
10622 # A language-specific compiler.
10623 CC=$lt_compiler
10624
10625 # Is the compiler the GNU C compiler?
10626 with_gcc=$GCC
10627
10628 # An ERE matcher.
10629 EGREP=$lt_EGREP
10630
10631 # The linker used to build libraries.
10632 LD=$lt_LD
10633
10634 # Whether we need hard or soft links.
10635 LN_S=$lt_LN_S
10636
10637 # A BSD-compatible nm program.
10638 NM=$lt_NM
10639
10640 # A symbol stripping program
10641 STRIP=$lt_STRIP
10642
10643 # Used to examine libraries when file_magic_cmd begins "file"
10644 MAGIC_CMD=$MAGIC_CMD
10645
10646 # Used on cygwin: DLL creation program.
10647 DLLTOOL="$DLLTOOL"
10648
10649 # Used on cygwin: object dumper.
10650 OBJDUMP="$OBJDUMP"
10651
10652 # Used on cygwin: assembler.
10653 AS="$AS"
10654
10655 # The name of the directory that contains temporary libtool files.
10656 objdir=$objdir
10657
10658 # How to create reloadable object files.
10659 reload_flag=$lt_reload_flag
10660 reload_cmds=$lt_reload_cmds
10661
10662 # How to pass a linker flag through the compiler.
10663 wl=$lt_lt_prog_compiler_wl
10664
10665 # Object file suffix (normally "o").
10666 objext="$ac_objext"
10667
10668 # Old archive suffix (normally "a").
10669 libext="$libext"
10670
10671 # Shared library suffix (normally ".so").
10672 shrext_cmds='$shrext_cmds'
10673
10674 # Executable file suffix (normally "").
10675 exeext="$exeext"
10676
10677 # Additional compiler flags for building library objects.
10678 pic_flag=$lt_lt_prog_compiler_pic
10679 pic_mode=$pic_mode
10680
10681 # What is the maximum length of a command?
10682 max_cmd_len=$lt_cv_sys_max_cmd_len
10683
10684 # Does compiler simultaneously support -c and -o options?
10685 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10686
10687 # Must we lock files when doing compilation?
10688 need_locks=$lt_need_locks
10689
10690 # Do we need the lib prefix for modules?
10691 need_lib_prefix=$need_lib_prefix
10692
10693 # Do we need a version for libraries?
10694 need_version=$need_version
10695
10696 # Whether dlopen is supported.
10697 dlopen_support=$enable_dlopen
10698
10699 # Whether dlopen of programs is supported.
10700 dlopen_self=$enable_dlopen_self
10701
10702 # Whether dlopen of statically linked programs is supported.
10703 dlopen_self_static=$enable_dlopen_self_static
10704
10705 # Compiler flag to prevent dynamic linking.
10706 link_static_flag=$lt_lt_prog_compiler_static
10707
10708 # Compiler flag to turn off builtin functions.
10709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10710
10711 # Compiler flag to allow reflexive dlopens.
10712 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10713
10714 # Compiler flag to generate shared objects directly from archives.
10715 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10716
10717 # Compiler flag to generate thread-safe objects.
10718 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10719
10720 # Library versioning type.
10721 version_type=$version_type
10722
10723 # Format of library name prefix.
10724 libname_spec=$lt_libname_spec
10725
10726 # List of archive names.  First name is the real one, the rest are links.
10727 # The last name is the one that the linker finds with -lNAME.
10728 library_names_spec=$lt_library_names_spec
10729
10730 # The coded name of the library, if different from the real name.
10731 soname_spec=$lt_soname_spec
10732
10733 # Commands used to build and install an old-style archive.
10734 RANLIB=$lt_RANLIB
10735 old_archive_cmds=$lt_old_archive_cmds
10736 old_postinstall_cmds=$lt_old_postinstall_cmds
10737 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10738
10739 # Create an old-style archive from a shared archive.
10740 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10741
10742 # Create a temporary old-style archive to link instead of a shared archive.
10743 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10744
10745 # Commands used to build and install a shared archive.
10746 archive_cmds=$lt_archive_cmds
10747 archive_expsym_cmds=$lt_archive_expsym_cmds
10748 postinstall_cmds=$lt_postinstall_cmds
10749 postuninstall_cmds=$lt_postuninstall_cmds
10750
10751 # Commands used to build a loadable module (assumed same as above if empty)
10752 module_cmds=$lt_module_cmds
10753 module_expsym_cmds=$lt_module_expsym_cmds
10754
10755 # Commands to strip libraries.
10756 old_striplib=$lt_old_striplib
10757 striplib=$lt_striplib
10758
10759 # Dependencies to place before the objects being linked to create a
10760 # shared library.
10761 predep_objects=$lt_predep_objects
10762
10763 # Dependencies to place after the objects being linked to create a
10764 # shared library.
10765 postdep_objects=$lt_postdep_objects
10766
10767 # Dependencies to place before the objects being linked to create a
10768 # shared library.
10769 predeps=$lt_predeps
10770
10771 # Dependencies to place after the objects being linked to create a
10772 # shared library.
10773 postdeps=$lt_postdeps
10774
10775 # The directories searched by this compiler when creating a shared
10776 # library
10777 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10778
10779 # The library search path used internally by the compiler when linking
10780 # a shared library.
10781 compiler_lib_search_path=$lt_compiler_lib_search_path
10782
10783 # Method to check whether dependent libraries are shared objects.
10784 deplibs_check_method=$lt_deplibs_check_method
10785
10786 # Command to use when deplibs_check_method == file_magic.
10787 file_magic_cmd=$lt_file_magic_cmd
10788
10789 # Flag that allows shared libraries with undefined symbols to be built.
10790 allow_undefined_flag=$lt_allow_undefined_flag
10791
10792 # Flag that forces no undefined symbols.
10793 no_undefined_flag=$lt_no_undefined_flag
10794
10795 # Commands used to finish a libtool library installation in a directory.
10796 finish_cmds=$lt_finish_cmds
10797
10798 # Same as above, but a single script fragment to be evaled but not shown.
10799 finish_eval=$lt_finish_eval
10800
10801 # Take the output of nm and produce a listing of raw symbols and C names.
10802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10803
10804 # Transform the output of nm in a proper C declaration
10805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10806
10807 # Transform the output of nm in a C name address pair
10808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10809
10810 # This is the shared library runtime path variable.
10811 runpath_var=$runpath_var
10812
10813 # This is the shared library path variable.
10814 shlibpath_var=$shlibpath_var
10815
10816 # Is shlibpath searched before the hard-coded library search path?
10817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10818
10819 # How to hardcode a shared library path into an executable.
10820 hardcode_action=$hardcode_action
10821
10822 # Whether we should hardcode library paths into libraries.
10823 hardcode_into_libs=$hardcode_into_libs
10824
10825 # Flag to hardcode \$libdir into a binary during linking.
10826 # This must work even if \$libdir does not exist.
10827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10828
10829 # If ld is used when linking, flag to hardcode \$libdir into
10830 # a binary during linking. This must work even if \$libdir does
10831 # not exist.
10832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10833
10834 # Whether we need a single -rpath flag with a separated argument.
10835 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10836
10837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10838 # resulting binary.
10839 hardcode_direct=$hardcode_direct
10840
10841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10842 # resulting binary.
10843 hardcode_minus_L=$hardcode_minus_L
10844
10845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10846 # the resulting binary.
10847 hardcode_shlibpath_var=$hardcode_shlibpath_var
10848
10849 # Set to yes if building a shared library automatically hardcodes DIR into the library
10850 # and all subsequent libraries and executables linked against it.
10851 hardcode_automatic=$hardcode_automatic
10852
10853 # Variables whose values should be saved in libtool wrapper scripts and
10854 # restored at relink time.
10855 variables_saved_for_relink="$variables_saved_for_relink"
10856
10857 # Whether libtool must link a program against all its dependency libraries.
10858 link_all_deplibs=$link_all_deplibs
10859
10860 # Compile-time system search path for libraries
10861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10862
10863 # Run-time system search path for libraries
10864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10865
10866 # Fix the shell variable \$srcfile for the compiler.
10867 fix_srcfile_path=$lt_fix_srcfile_path
10868
10869 # Set to yes if exported symbols are required.
10870 always_export_symbols=$always_export_symbols
10871
10872 # The commands to list exported symbols.
10873 export_symbols_cmds=$lt_export_symbols_cmds
10874
10875 # The commands to extract the exported symbol list from a shared archive.
10876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10877
10878 # Symbols that should not be listed in the preloaded symbols.
10879 exclude_expsyms=$lt_exclude_expsyms
10880
10881 # Symbols that must always be exported.
10882 include_expsyms=$lt_include_expsyms
10883
10884 # ### END LIBTOOL CONFIG
10885
10886 __EOF__
10887
10888
10889   case $host_os in
10890   aix3*)
10891     cat <<\EOF >> "$cfgfile"
10892
10893 # AIX sometimes has problems with the GCC collect2 program.  For some
10894 # reason, if we set the COLLECT_NAMES environment variable, the problems
10895 # vanish in a puff of smoke.
10896 if test "X${COLLECT_NAMES+set}" != Xset; then
10897   COLLECT_NAMES=
10898   export COLLECT_NAMES
10899 fi
10900 EOF
10901     ;;
10902   esac
10903
10904   # We use sed instead of cat because bash on DJGPP gets confused if
10905   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10906   # text mode, it properly converts lines to CR/LF.  This bash problem
10907   # is reportedly fixed, but why not run on old versions too?
10908   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10909
10910   mv -f "$cfgfile" "$ofile" || \
10911     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10912   chmod +x "$ofile"
10913
10914 else
10915   # If there is no Makefile yet, we rely on a make rule to execute
10916   # `config.status --recheck' to rerun these tests and create the
10917   # libtool script then.
10918   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10919   if test -f "$ltmain_in"; then
10920     test -f Makefile && make "$ltmain"
10921   fi
10922 fi
10923
10924
10925 ac_ext=c
10926 ac_cpp='$CPP $CPPFLAGS'
10927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10930
10931 CC="$lt_save_CC"
10932
10933
10934 # Check whether --with-tags was given.
10935 if test "${with_tags+set}" = set; then
10936   withval=$with_tags; tagnames="$withval"
10937 fi
10938
10939
10940 if test -f "$ltmain" && test -n "$tagnames"; then
10941   if test ! -f "${ofile}"; then
10942     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10943 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10944   fi
10945
10946   if test -z "$LTCC"; then
10947     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10948     if test -z "$LTCC"; then
10949       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10950 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10951     else
10952       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10953 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10954     fi
10955   fi
10956   if test -z "$LTCFLAGS"; then
10957     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10958   fi
10959
10960   # Extract list of available tagged configurations in $ofile.
10961   # Note that this assumes the entire list is on one line.
10962   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10963
10964   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10965   for tagname in $tagnames; do
10966     IFS="$lt_save_ifs"
10967     # Check whether tagname contains only valid characters
10968     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10969     "") ;;
10970     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10971 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10972    { (exit 1); exit 1; }; }
10973         ;;
10974     esac
10975
10976     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10977     then
10978       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10979 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10980    { (exit 1); exit 1; }; }
10981     fi
10982
10983     # Update the list of available tags.
10984     if test -n "$tagname"; then
10985       echo appending configuration tag \"$tagname\" to $ofile
10986
10987       case $tagname in
10988       CXX)
10989         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10990             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10991             (test "X$CXX" != "Xg++"))) ; then
10992           ac_ext=cpp
10993 ac_cpp='$CXXCPP $CPPFLAGS'
10994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10997
10998
10999
11000
11001 archive_cmds_need_lc_CXX=no
11002 allow_undefined_flag_CXX=
11003 always_export_symbols_CXX=no
11004 archive_expsym_cmds_CXX=
11005 export_dynamic_flag_spec_CXX=
11006 hardcode_direct_CXX=no
11007 hardcode_libdir_flag_spec_CXX=
11008 hardcode_libdir_flag_spec_ld_CXX=
11009 hardcode_libdir_separator_CXX=
11010 hardcode_minus_L_CXX=no
11011 hardcode_shlibpath_var_CXX=unsupported
11012 hardcode_automatic_CXX=no
11013 module_cmds_CXX=
11014 module_expsym_cmds_CXX=
11015 link_all_deplibs_CXX=unknown
11016 old_archive_cmds_CXX=$old_archive_cmds
11017 no_undefined_flag_CXX=
11018 whole_archive_flag_spec_CXX=
11019 enable_shared_with_static_runtimes_CXX=no
11020
11021 # Dependencies to place before and after the object being linked:
11022 predep_objects_CXX=
11023 postdep_objects_CXX=
11024 predeps_CXX=
11025 postdeps_CXX=
11026 compiler_lib_search_path_CXX=
11027 compiler_lib_search_dirs_CXX=
11028
11029 # Source file extension for C++ test sources.
11030 ac_ext=cpp
11031
11032 # Object file extension for compiled C++ test sources.
11033 objext=o
11034 objext_CXX=$objext
11035
11036 # Code to be used in simple compile tests
11037 lt_simple_compile_test_code="int some_variable = 0;"
11038
11039 # Code to be used in simple link tests
11040 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11041
11042 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11043
11044 # If no C compiler was specified, use CC.
11045 LTCC=${LTCC-"$CC"}
11046
11047 # If no C compiler flags were specified, use CFLAGS.
11048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11049
11050 # Allow CC to be a program name with arguments.
11051 compiler=$CC
11052
11053
11054 # save warnings/boilerplate of simple test code
11055 ac_outfile=conftest.$ac_objext
11056 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11057 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11058 _lt_compiler_boilerplate=`cat conftest.err`
11059 $rm conftest*
11060
11061 ac_outfile=conftest.$ac_objext
11062 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11063 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11064 _lt_linker_boilerplate=`cat conftest.err`
11065 $rm -r conftest*
11066
11067
11068 # Allow CC to be a program name with arguments.
11069 lt_save_CC=$CC
11070 lt_save_LD=$LD
11071 lt_save_GCC=$GCC
11072 GCC=$GXX
11073 lt_save_with_gnu_ld=$with_gnu_ld
11074 lt_save_path_LD=$lt_cv_path_LD
11075 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11076   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11077 else
11078   $as_unset lt_cv_prog_gnu_ld
11079 fi
11080 if test -n "${lt_cv_path_LDCXX+set}"; then
11081   lt_cv_path_LD=$lt_cv_path_LDCXX
11082 else
11083   $as_unset lt_cv_path_LD
11084 fi
11085 test -z "${LDCXX+set}" || LD=$LDCXX
11086 CC=${CXX-"c++"}
11087 compiler=$CC
11088 compiler_CXX=$CC
11089 for cc_temp in $compiler""; do
11090   case $cc_temp in
11091     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11092     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11093     \-*) ;;
11094     *) break;;
11095   esac
11096 done
11097 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11098
11099
11100 # We don't want -fno-exception wen compiling C++ code, so set the
11101 # no_builtin_flag separately
11102 if test "$GXX" = yes; then
11103   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11104 else
11105   lt_prog_compiler_no_builtin_flag_CXX=
11106 fi
11107
11108 if test "$GXX" = yes; then
11109   # Set up default GNU C++ configuration
11110
11111
11112 # Check whether --with-gnu-ld was given.
11113 if test "${with_gnu_ld+set}" = set; then
11114   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11115 else
11116   with_gnu_ld=no
11117 fi
11118
11119 ac_prog=ld
11120 if test "$GCC" = yes; then
11121   # Check if gcc -print-prog-name=ld gives a path.
11122   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11123 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11124   case $host in
11125   *-*-mingw*)
11126     # gcc leaves a trailing carriage return which upsets mingw
11127     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11128   *)
11129     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11130   esac
11131   case $ac_prog in
11132     # Accept absolute paths.
11133     [\\/]* | ?:[\\/]*)
11134       re_direlt='/[^/][^/]*/\.\./'
11135       # Canonicalize the pathname of ld
11136       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11137       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11138         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11139       done
11140       test -z "$LD" && LD="$ac_prog"
11141       ;;
11142   "")
11143     # If it fails, then pretend we aren't using GCC.
11144     ac_prog=ld
11145     ;;
11146   *)
11147     # If it is relative, then search for the first ld in PATH.
11148     with_gnu_ld=unknown
11149     ;;
11150   esac
11151 elif test "$with_gnu_ld" = yes; then
11152   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11153 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11154 else
11155   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11156 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11157 fi
11158 if test "${lt_cv_path_LD+set}" = set; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161   if test -z "$LD"; then
11162   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11163   for ac_dir in $PATH; do
11164     IFS="$lt_save_ifs"
11165     test -z "$ac_dir" && ac_dir=.
11166     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11167       lt_cv_path_LD="$ac_dir/$ac_prog"
11168       # Check to see if the program is GNU ld.  I'd rather use --version,
11169       # but apparently some variants of GNU ld only accept -v.
11170       # Break only if it was the GNU/non-GNU ld that we prefer.
11171       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11172       *GNU* | *'with BFD'*)
11173         test "$with_gnu_ld" != no && break
11174         ;;
11175       *)
11176         test "$with_gnu_ld" != yes && break
11177         ;;
11178       esac
11179     fi
11180   done
11181   IFS="$lt_save_ifs"
11182 else
11183   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11184 fi
11185 fi
11186
11187 LD="$lt_cv_path_LD"
11188 if test -n "$LD"; then
11189   { echo "$as_me:$LINENO: result: $LD" >&5
11190 echo "${ECHO_T}$LD" >&6; }
11191 else
11192   { echo "$as_me:$LINENO: result: no" >&5
11193 echo "${ECHO_T}no" >&6; }
11194 fi
11195 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11196 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11197    { (exit 1); exit 1; }; }
11198 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11199 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11200 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11201   echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11204 case `$LD -v 2>&1 </dev/null` in
11205 *GNU* | *'with BFD'*)
11206   lt_cv_prog_gnu_ld=yes
11207   ;;
11208 *)
11209   lt_cv_prog_gnu_ld=no
11210   ;;
11211 esac
11212 fi
11213 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11214 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11215 with_gnu_ld=$lt_cv_prog_gnu_ld
11216
11217
11218
11219   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11220   # archiving commands below assume that GNU ld is being used.
11221   if test "$with_gnu_ld" = yes; then
11222     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11223     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'
11224
11225     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11226     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11227
11228     # If archive_cmds runs LD, not CC, wlarc should be empty
11229     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11230     #     investigate it a little bit more. (MM)
11231     wlarc='${wl}'
11232
11233     # ancient GNU ld didn't support --whole-archive et. al.
11234     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11235         grep 'no-whole-archive' > /dev/null; then
11236       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11237     else
11238       whole_archive_flag_spec_CXX=
11239     fi
11240   else
11241     with_gnu_ld=no
11242     wlarc=
11243
11244     # A generic and very simple default shared library creation
11245     # command for GNU C++ for the case where it uses the native
11246     # linker, instead of GNU ld.  If possible, this setting should
11247     # overridden to take advantage of the native linker features on
11248     # the platform it is being used on.
11249     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11250   fi
11251
11252   # Commands to make compiler produce verbose output that lists
11253   # what "hidden" libraries, object files and flags are used when
11254   # linking a shared library.
11255   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11256
11257 else
11258   GXX=no
11259   with_gnu_ld=no
11260   wlarc=
11261 fi
11262
11263 # PORTME: fill in a description of your system's C++ link characteristics
11264 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11265 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11266 ld_shlibs_CXX=yes
11267 case $host_os in
11268   aix3*)
11269     # FIXME: insert proper C++ library support
11270     ld_shlibs_CXX=no
11271     ;;
11272   aix[4-9]*)
11273     if test "$host_cpu" = ia64; then
11274       # On IA64, the linker does run time linking by default, so we don't
11275       # have to do anything special.
11276       aix_use_runtimelinking=no
11277       exp_sym_flag='-Bexport'
11278       no_entry_flag=""
11279     else
11280       aix_use_runtimelinking=no
11281
11282       # Test if we are trying to use run time linking or normal
11283       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11284       # need to do runtime linking.
11285       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11286         for ld_flag in $LDFLAGS; do
11287           case $ld_flag in
11288           *-brtl*)
11289             aix_use_runtimelinking=yes
11290             break
11291             ;;
11292           esac
11293         done
11294         ;;
11295       esac
11296
11297       exp_sym_flag='-bexport'
11298       no_entry_flag='-bnoentry'
11299     fi
11300
11301     # When large executables or shared objects are built, AIX ld can
11302     # have problems creating the table of contents.  If linking a library
11303     # or program results in "error TOC overflow" add -mminimal-toc to
11304     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11305     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11306
11307     archive_cmds_CXX=''
11308     hardcode_direct_CXX=yes
11309     hardcode_libdir_separator_CXX=':'
11310     link_all_deplibs_CXX=yes
11311
11312     if test "$GXX" = yes; then
11313       case $host_os in aix4.[012]|aix4.[012].*)
11314       # We only want to do this on AIX 4.2 and lower, the check
11315       # below for broken collect2 doesn't work under 4.3+
11316         collect2name=`${CC} -print-prog-name=collect2`
11317         if test -f "$collect2name" && \
11318            strings "$collect2name" | grep resolve_lib_name >/dev/null
11319         then
11320           # We have reworked collect2
11321           :
11322         else
11323           # We have old collect2
11324           hardcode_direct_CXX=unsupported
11325           # It fails to find uninstalled libraries when the uninstalled
11326           # path is not listed in the libpath.  Setting hardcode_minus_L
11327           # to unsupported forces relinking
11328           hardcode_minus_L_CXX=yes
11329           hardcode_libdir_flag_spec_CXX='-L$libdir'
11330           hardcode_libdir_separator_CXX=
11331         fi
11332         ;;
11333       esac
11334       shared_flag='-shared'
11335       if test "$aix_use_runtimelinking" = yes; then
11336         shared_flag="$shared_flag "'${wl}-G'
11337       fi
11338     else
11339       # not using gcc
11340       if test "$host_cpu" = ia64; then
11341         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11342         # chokes on -Wl,-G. The following line is correct:
11343         shared_flag='-G'
11344       else
11345         if test "$aix_use_runtimelinking" = yes; then
11346           shared_flag='${wl}-G'
11347         else
11348           shared_flag='${wl}-bM:SRE'
11349         fi
11350       fi
11351     fi
11352
11353     # It seems that -bexpall does not export symbols beginning with
11354     # underscore (_), so it is better to generate a list of symbols to export.
11355     always_export_symbols_CXX=yes
11356     if test "$aix_use_runtimelinking" = yes; then
11357       # Warning - without using the other runtime loading flags (-brtl),
11358       # -berok will link without error, but may produce a broken library.
11359       allow_undefined_flag_CXX='-berok'
11360       # Determine the default libpath from the value encoded in an empty executable.
11361       cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h.  */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h.  */
11367
11368 int
11369 main ()
11370 {
11371
11372   ;
11373   return 0;
11374 }
11375 _ACEOF
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (ac_try="$ac_link"
11378 case "(($ac_try" in
11379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380   *) ac_try_echo=$ac_try;;
11381 esac
11382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383   (eval "$ac_link") 2>conftest.er1
11384   ac_status=$?
11385   grep -v '^ *+' conftest.er1 >conftest.err
11386   rm -f conftest.er1
11387   cat conftest.err >&5
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); } && {
11390          test -z "$ac_cxx_werror_flag" ||
11391          test ! -s conftest.err
11392        } && test -s conftest$ac_exeext &&
11393        $as_test_x conftest$ac_exeext; then
11394
11395 lt_aix_libpath_sed='
11396     /Import File Strings/,/^$/ {
11397         /^0/ {
11398             s/^0  *\(.*\)$/\1/
11399             p
11400         }
11401     }'
11402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11403 # Check for a 64-bit object if we didn't find anything.
11404 if test -z "$aix_libpath"; then
11405   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11406 fi
11407 else
11408   echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411
11412 fi
11413
11414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11415       conftest$ac_exeext conftest.$ac_ext
11416 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11417
11418       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11419
11420       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"
11421      else
11422       if test "$host_cpu" = ia64; then
11423         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11424         allow_undefined_flag_CXX="-z nodefs"
11425         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"
11426       else
11427         # Determine the default libpath from the value encoded in an empty executable.
11428         cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h.  */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h.  */
11434
11435 int
11436 main ()
11437 {
11438
11439   ;
11440   return 0;
11441 }
11442 _ACEOF
11443 rm -f conftest.$ac_objext conftest$ac_exeext
11444 if { (ac_try="$ac_link"
11445 case "(($ac_try" in
11446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447   *) ac_try_echo=$ac_try;;
11448 esac
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450   (eval "$ac_link") 2>conftest.er1
11451   ac_status=$?
11452   grep -v '^ *+' conftest.er1 >conftest.err
11453   rm -f conftest.er1
11454   cat conftest.err >&5
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); } && {
11457          test -z "$ac_cxx_werror_flag" ||
11458          test ! -s conftest.err
11459        } && test -s conftest$ac_exeext &&
11460        $as_test_x conftest$ac_exeext; then
11461
11462 lt_aix_libpath_sed='
11463     /Import File Strings/,/^$/ {
11464         /^0/ {
11465             s/^0  *\(.*\)$/\1/
11466             p
11467         }
11468     }'
11469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11470 # Check for a 64-bit object if we didn't find anything.
11471 if test -z "$aix_libpath"; then
11472   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11473 fi
11474 else
11475   echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11477
11478
11479 fi
11480
11481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11482       conftest$ac_exeext conftest.$ac_ext
11483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11484
11485         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11486         # Warning - without using the other run time loading flags,
11487         # -berok will link without error, but may produce a broken library.
11488         no_undefined_flag_CXX=' ${wl}-bernotok'
11489         allow_undefined_flag_CXX=' ${wl}-berok'
11490         # Exported symbols can be pulled into shared objects from archives
11491         whole_archive_flag_spec_CXX='$convenience'
11492         archive_cmds_need_lc_CXX=yes
11493         # This is similar to how AIX traditionally builds its shared libraries.
11494         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'
11495       fi
11496     fi
11497     ;;
11498
11499   beos*)
11500     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11501       allow_undefined_flag_CXX=unsupported
11502       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11503       # support --undefined.  This deserves some investigation.  FIXME
11504       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11505     else
11506       ld_shlibs_CXX=no
11507     fi
11508     ;;
11509
11510   chorus*)
11511     case $cc_basename in
11512       *)
11513         # FIXME: insert proper C++ library support
11514         ld_shlibs_CXX=no
11515         ;;
11516     esac
11517     ;;
11518
11519   cygwin* | mingw* | pw32*)
11520     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11521     # as there is no search path for DLLs.
11522     hardcode_libdir_flag_spec_CXX='-L$libdir'
11523     allow_undefined_flag_CXX=unsupported
11524     always_export_symbols_CXX=no
11525     enable_shared_with_static_runtimes_CXX=yes
11526
11527     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11528       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'
11529       # If the export-symbols file already is a .def file (1st line
11530       # is EXPORTS), use it as is; otherwise, prepend...
11531       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11532         cp $export_symbols $output_objdir/$soname.def;
11533       else
11534         echo EXPORTS > $output_objdir/$soname.def;
11535         cat $export_symbols >> $output_objdir/$soname.def;
11536       fi~
11537       $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'
11538     else
11539       ld_shlibs_CXX=no
11540     fi
11541   ;;
11542       darwin* | rhapsody*)
11543       archive_cmds_need_lc_CXX=no
11544       hardcode_direct_CXX=no
11545       hardcode_automatic_CXX=yes
11546       hardcode_shlibpath_var_CXX=unsupported
11547       whole_archive_flag_spec_CXX=''
11548       link_all_deplibs_CXX=yes
11549       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11550       if test "$GXX" = yes ; then
11551       output_verbose_link_cmd='echo'
11552       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}"
11553       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11554       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}"
11555       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}"
11556       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11557         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}"
11558         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}"
11559       fi
11560       else
11561       case $cc_basename in
11562         xlc*)
11563          output_verbose_link_cmd='echo'
11564           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'
11565           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11566           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11567           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}'
11568           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}'
11569           ;;
11570        *)
11571          ld_shlibs_CXX=no
11572           ;;
11573       esac
11574       fi
11575         ;;
11576
11577   dgux*)
11578     case $cc_basename in
11579       ec++*)
11580         # FIXME: insert proper C++ library support
11581         ld_shlibs_CXX=no
11582         ;;
11583       ghcx*)
11584         # Green Hills C++ Compiler
11585         # FIXME: insert proper C++ library support
11586         ld_shlibs_CXX=no
11587         ;;
11588       *)
11589         # FIXME: insert proper C++ library support
11590         ld_shlibs_CXX=no
11591         ;;
11592     esac
11593     ;;
11594   freebsd[12]*)
11595     # C++ shared libraries reported to be fairly broken before switch to ELF
11596     ld_shlibs_CXX=no
11597     ;;
11598   freebsd-elf*)
11599     archive_cmds_need_lc_CXX=no
11600     ;;
11601   freebsd* | dragonfly*)
11602     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11603     # conventions
11604     ld_shlibs_CXX=yes
11605     ;;
11606   gnu*)
11607     ;;
11608   hpux9*)
11609     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11610     hardcode_libdir_separator_CXX=:
11611     export_dynamic_flag_spec_CXX='${wl}-E'
11612     hardcode_direct_CXX=yes
11613     hardcode_minus_L_CXX=yes # Not in the search PATH,
11614                                 # but as the default
11615                                 # location of the library.
11616
11617     case $cc_basename in
11618     CC*)
11619       # FIXME: insert proper C++ library support
11620       ld_shlibs_CXX=no
11621       ;;
11622     aCC*)
11623       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'
11624       # Commands to make compiler produce verbose output that lists
11625       # what "hidden" libraries, object files and flags are used when
11626       # linking a shared library.
11627       #
11628       # There doesn't appear to be a way to prevent this compiler from
11629       # explicitly linking system object files so we need to strip them
11630       # from the output so that they don't get included in the library
11631       # dependencies.
11632       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'
11633       ;;
11634     *)
11635       if test "$GXX" = yes; then
11636         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'
11637       else
11638         # FIXME: insert proper C++ library support
11639         ld_shlibs_CXX=no
11640       fi
11641       ;;
11642     esac
11643     ;;
11644   hpux10*|hpux11*)
11645     if test $with_gnu_ld = no; then
11646       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11647       hardcode_libdir_separator_CXX=:
11648
11649       case $host_cpu in
11650       hppa*64*|ia64*) ;;
11651       *)
11652         export_dynamic_flag_spec_CXX='${wl}-E'
11653         ;;
11654       esac
11655     fi
11656     case $host_cpu in
11657     hppa*64*|ia64*)
11658       hardcode_direct_CXX=no
11659       hardcode_shlibpath_var_CXX=no
11660       ;;
11661     *)
11662       hardcode_direct_CXX=yes
11663       hardcode_minus_L_CXX=yes # Not in the search PATH,
11664                                               # but as the default
11665                                               # location of the library.
11666       ;;
11667     esac
11668
11669     case $cc_basename in
11670       CC*)
11671         # FIXME: insert proper C++ library support
11672         ld_shlibs_CXX=no
11673         ;;
11674       aCC*)
11675         case $host_cpu in
11676         hppa*64*)
11677           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11678           ;;
11679         ia64*)
11680           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11681           ;;
11682         *)
11683           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11684           ;;
11685         esac
11686         # Commands to make compiler produce verbose output that lists
11687         # what "hidden" libraries, object files and flags are used when
11688         # linking a shared library.
11689         #
11690         # There doesn't appear to be a way to prevent this compiler from
11691         # explicitly linking system object files so we need to strip them
11692         # from the output so that they don't get included in the library
11693         # dependencies.
11694         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'
11695         ;;
11696       *)
11697         if test "$GXX" = yes; then
11698           if test $with_gnu_ld = no; then
11699             case $host_cpu in
11700             hppa*64*)
11701               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702               ;;
11703             ia64*)
11704               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11705               ;;
11706             *)
11707               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'
11708               ;;
11709             esac
11710           fi
11711         else
11712           # FIXME: insert proper C++ library support
11713           ld_shlibs_CXX=no
11714         fi
11715         ;;
11716     esac
11717     ;;
11718   interix[3-9]*)
11719     hardcode_direct_CXX=no
11720     hardcode_shlibpath_var_CXX=no
11721     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11722     export_dynamic_flag_spec_CXX='${wl}-E'
11723     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11724     # Instead, shared libraries are loaded at an image base (0x10000000 by
11725     # default) and relocated if they conflict, which is a slow very memory
11726     # consuming and fragmenting process.  To avoid this, we pick a random,
11727     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11728     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11729     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'
11730     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'
11731     ;;
11732   irix5* | irix6*)
11733     case $cc_basename in
11734       CC*)
11735         # SGI C++
11736         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'
11737
11738         # Archives containing C++ object files must be created using
11739         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11740         # necessary to make sure instantiated templates are included
11741         # in the archive.
11742         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11743         ;;
11744       *)
11745         if test "$GXX" = yes; then
11746           if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11748           else
11749             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'
11750           fi
11751         fi
11752         link_all_deplibs_CXX=yes
11753         ;;
11754     esac
11755     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11756     hardcode_libdir_separator_CXX=:
11757     ;;
11758   linux* | k*bsd*-gnu)
11759     case $cc_basename in
11760       KCC*)
11761         # Kuck and Associates, Inc. (KAI) C++ Compiler
11762
11763         # KCC will only create a shared library if the output file
11764         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11765         # to its proper name (with version) after linking.
11766         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'
11767         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'
11768         # Commands to make compiler produce verbose output that lists
11769         # what "hidden" libraries, object files and flags are used when
11770         # linking a shared library.
11771         #
11772         # There doesn't appear to be a way to prevent this compiler from
11773         # explicitly linking system object files so we need to strip them
11774         # from the output so that they don't get included in the library
11775         # dependencies.
11776         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'
11777
11778         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11779         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11780
11781         # Archives containing C++ object files must be created using
11782         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11783         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11784         ;;
11785       icpc*)
11786         # Intel C++
11787         with_gnu_ld=yes
11788         # version 8.0 and above of icpc choke on multiply defined symbols
11789         # if we add $predep_objects and $postdep_objects, however 7.1 and
11790         # earlier do not add the objects themselves.
11791         case `$CC -V 2>&1` in
11792         *"Version 7."*)
11793           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11794           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'
11795           ;;
11796         *)  # Version 8.0 or newer
11797           tmp_idyn=
11798           case $host_cpu in
11799             ia64*) tmp_idyn=' -i_dynamic';;
11800           esac
11801           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802           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'
11803           ;;
11804         esac
11805         archive_cmds_need_lc_CXX=no
11806         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11807         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11808         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11809         ;;
11810       pgCC* | pgcpp*)
11811         # Portland Group C++ compiler
11812         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11813         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'
11814
11815         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11816         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11817         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'
11818         ;;
11819       cxx*)
11820         # Compaq C++
11821         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11822         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'
11823
11824         runpath_var=LD_RUN_PATH
11825         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11826         hardcode_libdir_separator_CXX=:
11827
11828         # Commands to make compiler produce verbose output that lists
11829         # what "hidden" libraries, object files and flags are used when
11830         # linking a shared library.
11831         #
11832         # There doesn't appear to be a way to prevent this compiler from
11833         # explicitly linking system object files so we need to strip them
11834         # from the output so that they don't get included in the library
11835         # dependencies.
11836         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'
11837         ;;
11838       *)
11839         case `$CC -V 2>&1 | sed 5q` in
11840         *Sun\ C*)
11841           # Sun C++ 5.9
11842           no_undefined_flag_CXX=' -zdefs'
11843           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11844           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'
11845           hardcode_libdir_flag_spec_CXX='-R$libdir'
11846           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'
11847
11848           # Not sure whether something based on
11849           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11850           # would be better.
11851           output_verbose_link_cmd='echo'
11852
11853           # Archives containing C++ object files must be created using
11854           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11855           # necessary to make sure instantiated templates are included
11856           # in the archive.
11857           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11858           ;;
11859         esac
11860         ;;
11861     esac
11862     ;;
11863   lynxos*)
11864     # FIXME: insert proper C++ library support
11865     ld_shlibs_CXX=no
11866     ;;
11867   m88k*)
11868     # FIXME: insert proper C++ library support
11869     ld_shlibs_CXX=no
11870     ;;
11871   mvs*)
11872     case $cc_basename in
11873       cxx*)
11874         # FIXME: insert proper C++ library support
11875         ld_shlibs_CXX=no
11876         ;;
11877       *)
11878         # FIXME: insert proper C++ library support
11879         ld_shlibs_CXX=no
11880         ;;
11881     esac
11882     ;;
11883   netbsd* | netbsdelf*-gnu)
11884     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11885       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11886       wlarc=
11887       hardcode_libdir_flag_spec_CXX='-R$libdir'
11888       hardcode_direct_CXX=yes
11889       hardcode_shlibpath_var_CXX=no
11890     fi
11891     # Workaround some broken pre-1.5 toolchains
11892     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11893     ;;
11894   openbsd2*)
11895     # C++ shared libraries are fairly broken
11896     ld_shlibs_CXX=no
11897     ;;
11898   openbsd*)
11899     if test -f /usr/libexec/ld.so; then
11900       hardcode_direct_CXX=yes
11901       hardcode_shlibpath_var_CXX=no
11902       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11903       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11904       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11905         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11906         export_dynamic_flag_spec_CXX='${wl}-E'
11907         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11908       fi
11909       output_verbose_link_cmd='echo'
11910     else
11911       ld_shlibs_CXX=no
11912     fi
11913     ;;
11914   osf3*)
11915     case $cc_basename in
11916       KCC*)
11917         # Kuck and Associates, Inc. (KAI) C++ Compiler
11918
11919         # KCC will only create a shared library if the output file
11920         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11921         # to its proper name (with version) after linking.
11922         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'
11923
11924         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11925         hardcode_libdir_separator_CXX=:
11926
11927         # Archives containing C++ object files must be created using
11928         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11929         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11930
11931         ;;
11932       RCC*)
11933         # Rational C++ 2.4.1
11934         # FIXME: insert proper C++ library support
11935         ld_shlibs_CXX=no
11936         ;;
11937       cxx*)
11938         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11939         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'
11940
11941         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11942         hardcode_libdir_separator_CXX=:
11943
11944         # Commands to make compiler produce verbose output that lists
11945         # what "hidden" libraries, object files and flags are used when
11946         # linking a shared library.
11947         #
11948         # There doesn't appear to be a way to prevent this compiler from
11949         # explicitly linking system object files so we need to strip them
11950         # from the output so that they don't get included in the library
11951         # dependencies.
11952         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'
11953         ;;
11954       *)
11955         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11956           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11957           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'
11958
11959           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11960           hardcode_libdir_separator_CXX=:
11961
11962           # Commands to make compiler produce verbose output that lists
11963           # what "hidden" libraries, object files and flags are used when
11964           # linking a shared library.
11965           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11966
11967         else
11968           # FIXME: insert proper C++ library support
11969           ld_shlibs_CXX=no
11970         fi
11971         ;;
11972     esac
11973     ;;
11974   osf4* | osf5*)
11975     case $cc_basename in
11976       KCC*)
11977         # Kuck and Associates, Inc. (KAI) C++ Compiler
11978
11979         # KCC will only create a shared library if the output file
11980         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11981         # to its proper name (with version) after linking.
11982         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'
11983
11984         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11985         hardcode_libdir_separator_CXX=:
11986
11987         # Archives containing C++ object files must be created using
11988         # the KAI C++ compiler.
11989         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11990         ;;
11991       RCC*)
11992         # Rational C++ 2.4.1
11993         # FIXME: insert proper C++ library support
11994         ld_shlibs_CXX=no
11995         ;;
11996       cxx*)
11997         allow_undefined_flag_CXX=' -expect_unresolved \*'
11998         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'
11999         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12000           echo "-hidden">> $lib.exp~
12001           $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~
12002           $rm $lib.exp'
12003
12004         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12005         hardcode_libdir_separator_CXX=:
12006
12007         # Commands to make compiler produce verbose output that lists
12008         # what "hidden" libraries, object files and flags are used when
12009         # linking a shared library.
12010         #
12011         # There doesn't appear to be a way to prevent this compiler from
12012         # explicitly linking system object files so we need to strip them
12013         # from the output so that they don't get included in the library
12014         # dependencies.
12015         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'
12016         ;;
12017       *)
12018         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12019           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12020          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'
12021
12022           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12023           hardcode_libdir_separator_CXX=:
12024
12025           # Commands to make compiler produce verbose output that lists
12026           # what "hidden" libraries, object files and flags are used when
12027           # linking a shared library.
12028           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12029
12030         else
12031           # FIXME: insert proper C++ library support
12032           ld_shlibs_CXX=no
12033         fi
12034         ;;
12035     esac
12036     ;;
12037   psos*)
12038     # FIXME: insert proper C++ library support
12039     ld_shlibs_CXX=no
12040     ;;
12041   sunos4*)
12042     case $cc_basename in
12043       CC*)
12044         # Sun C++ 4.x
12045         # FIXME: insert proper C++ library support
12046         ld_shlibs_CXX=no
12047         ;;
12048       lcc*)
12049         # Lucid
12050         # FIXME: insert proper C++ library support
12051         ld_shlibs_CXX=no
12052         ;;
12053       *)
12054         # FIXME: insert proper C++ library support
12055         ld_shlibs_CXX=no
12056         ;;
12057     esac
12058     ;;
12059   solaris*)
12060     case $cc_basename in
12061       CC*)
12062         # Sun C++ 4.2, 5.x and Centerline C++
12063         archive_cmds_need_lc_CXX=yes
12064         no_undefined_flag_CXX=' -zdefs'
12065         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12066         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12067         $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'
12068
12069         hardcode_libdir_flag_spec_CXX='-R$libdir'
12070         hardcode_shlibpath_var_CXX=no
12071         case $host_os in
12072           solaris2.[0-5] | solaris2.[0-5].*) ;;
12073           *)
12074             # The compiler driver will combine and reorder linker options,
12075             # but understands `-z linker_flag'.
12076             # Supported since Solaris 2.6 (maybe 2.5.1?)
12077             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12078             ;;
12079         esac
12080         link_all_deplibs_CXX=yes
12081
12082         output_verbose_link_cmd='echo'
12083
12084         # Archives containing C++ object files must be created using
12085         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12086         # necessary to make sure instantiated templates are included
12087         # in the archive.
12088         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12089         ;;
12090       gcx*)
12091         # Green Hills C++ Compiler
12092         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12093
12094         # The C++ compiler must be used to create the archive.
12095         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12096         ;;
12097       *)
12098         # GNU C++ compiler with Solaris linker
12099         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12100           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12101           if $CC --version | grep -v '^2\.7' > /dev/null; then
12102             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12103             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12104                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12105
12106             # Commands to make compiler produce verbose output that lists
12107             # what "hidden" libraries, object files and flags are used when
12108             # linking a shared library.
12109             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12110           else
12111             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12112             # platform.
12113             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12114             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12115                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12116
12117             # Commands to make compiler produce verbose output that lists
12118             # what "hidden" libraries, object files and flags are used when
12119             # linking a shared library.
12120             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12121           fi
12122
12123           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12124           case $host_os in
12125           solaris2.[0-5] | solaris2.[0-5].*) ;;
12126           *)
12127             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12128             ;;
12129           esac
12130         fi
12131         ;;
12132     esac
12133     ;;
12134   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12135     no_undefined_flag_CXX='${wl}-z,text'
12136     archive_cmds_need_lc_CXX=no
12137     hardcode_shlibpath_var_CXX=no
12138     runpath_var='LD_RUN_PATH'
12139
12140     case $cc_basename in
12141       CC*)
12142         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144         ;;
12145       *)
12146         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12147         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12148         ;;
12149     esac
12150     ;;
12151   sysv5* | sco3.2v5* | sco5v6*)
12152     # Note: We can NOT use -z defs as we might desire, because we do not
12153     # link with -lc, and that would cause any symbols used from libc to
12154     # always be unresolved, which means just about no library would
12155     # ever link correctly.  If we're not using GNU ld we use -z text
12156     # though, which does catch some bad symbols but isn't as heavy-handed
12157     # as -z defs.
12158     # For security reasons, it is highly recommended that you always
12159     # use absolute paths for naming shared libraries, and exclude the
12160     # DT_RUNPATH tag from executables and libraries.  But doing so
12161     # requires that you compile everything twice, which is a pain.
12162     # So that behaviour is only enabled if SCOABSPATH is set to a
12163     # non-empty value in the environment.  Most likely only useful for
12164     # creating official distributions of packages.
12165     # This is a hack until libtool officially supports absolute path
12166     # names for shared libraries.
12167     no_undefined_flag_CXX='${wl}-z,text'
12168     allow_undefined_flag_CXX='${wl}-z,nodefs'
12169     archive_cmds_need_lc_CXX=no
12170     hardcode_shlibpath_var_CXX=no
12171     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12172     hardcode_libdir_separator_CXX=':'
12173     link_all_deplibs_CXX=yes
12174     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12175     runpath_var='LD_RUN_PATH'
12176
12177     case $cc_basename in
12178       CC*)
12179         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12180         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12181         ;;
12182       *)
12183         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12184         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12185         ;;
12186     esac
12187     ;;
12188   tandem*)
12189     case $cc_basename in
12190       NCC*)
12191         # NonStop-UX NCC 3.20
12192         # FIXME: insert proper C++ library support
12193         ld_shlibs_CXX=no
12194         ;;
12195       *)
12196         # FIXME: insert proper C++ library support
12197         ld_shlibs_CXX=no
12198         ;;
12199     esac
12200     ;;
12201   vxworks*)
12202     # FIXME: insert proper C++ library support
12203     ld_shlibs_CXX=no
12204     ;;
12205   *)
12206     # FIXME: insert proper C++ library support
12207     ld_shlibs_CXX=no
12208     ;;
12209 esac
12210 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12211 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12212 test "$ld_shlibs_CXX" = no && can_build_shared=no
12213
12214 GCC_CXX="$GXX"
12215 LD_CXX="$LD"
12216
12217 cat > conftest.$ac_ext <<EOF
12218 class Foo
12219 {
12220 public:
12221   Foo (void) { a = 0; }
12222 private:
12223   int a;
12224 };
12225 EOF
12226
12227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12228   (eval $ac_compile) 2>&5
12229   ac_status=$?
12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231   (exit $ac_status); }; then
12232   # Parse the compiler output and extract the necessary
12233   # objects, libraries and library flags.
12234
12235   # Sentinel used to keep track of whether or not we are before
12236   # the conftest object file.
12237   pre_test_object_deps_done=no
12238
12239   # The `*' in the case matches for architectures that use `case' in
12240   # $output_verbose_cmd can trigger glob expansion during the loop
12241   # eval without this substitution.
12242   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12243
12244   for p in `eval $output_verbose_link_cmd`; do
12245     case $p in
12246
12247     -L* | -R* | -l*)
12248        # Some compilers place space between "-{L,R}" and the path.
12249        # Remove the space.
12250        if test $p = "-L" \
12251           || test $p = "-R"; then
12252          prev=$p
12253          continue
12254        else
12255          prev=
12256        fi
12257
12258        if test "$pre_test_object_deps_done" = no; then
12259          case $p in
12260          -L* | -R*)
12261            # Internal compiler library paths should come after those
12262            # provided the user.  The postdeps already come after the
12263            # user supplied libs so there is no need to process them.
12264            if test -z "$compiler_lib_search_path_CXX"; then
12265              compiler_lib_search_path_CXX="${prev}${p}"
12266            else
12267              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12268            fi
12269            ;;
12270          # The "-l" case would never come before the object being
12271          # linked, so don't bother handling this case.
12272          esac
12273        else
12274          if test -z "$postdeps_CXX"; then
12275            postdeps_CXX="${prev}${p}"
12276          else
12277            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12278          fi
12279        fi
12280        ;;
12281
12282     *.$objext)
12283        # This assumes that the test object file only shows up
12284        # once in the compiler output.
12285        if test "$p" = "conftest.$objext"; then
12286          pre_test_object_deps_done=yes
12287          continue
12288        fi
12289
12290        if test "$pre_test_object_deps_done" = no; then
12291          if test -z "$predep_objects_CXX"; then
12292            predep_objects_CXX="$p"
12293          else
12294            predep_objects_CXX="$predep_objects_CXX $p"
12295          fi
12296        else
12297          if test -z "$postdep_objects_CXX"; then
12298            postdep_objects_CXX="$p"
12299          else
12300            postdep_objects_CXX="$postdep_objects_CXX $p"
12301          fi
12302        fi
12303        ;;
12304
12305     *) ;; # Ignore the rest.
12306
12307     esac
12308   done
12309
12310   # Clean up.
12311   rm -f a.out a.exe
12312 else
12313   echo "libtool.m4: error: problem compiling CXX test program"
12314 fi
12315
12316 $rm -f confest.$objext
12317
12318 compiler_lib_search_dirs_CXX=
12319 if test -n "$compiler_lib_search_path_CXX"; then
12320   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12321 fi
12322
12323 # PORTME: override above test on systems where it is broken
12324 case $host_os in
12325 interix[3-9]*)
12326   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12327   # hack all around it, let's just trust "g++" to DTRT.
12328   predep_objects_CXX=
12329   postdep_objects_CXX=
12330   postdeps_CXX=
12331   ;;
12332
12333 linux*)
12334   case `$CC -V 2>&1 | sed 5q` in
12335   *Sun\ C*)
12336     # Sun C++ 5.9
12337     #
12338     # The more standards-conforming stlport4 library is
12339     # incompatible with the Cstd library. Avoid specifying
12340     # it if it's in CXXFLAGS. Ignore libCrun as
12341     # -library=stlport4 depends on it.
12342     case " $CXX $CXXFLAGS " in
12343     *" -library=stlport4 "*)
12344       solaris_use_stlport4=yes
12345       ;;
12346     esac
12347     if test "$solaris_use_stlport4" != yes; then
12348       postdeps_CXX='-library=Cstd -library=Crun'
12349     fi
12350     ;;
12351   esac
12352   ;;
12353
12354 solaris*)
12355   case $cc_basename in
12356   CC*)
12357     # The more standards-conforming stlport4 library is
12358     # incompatible with the Cstd library. Avoid specifying
12359     # it if it's in CXXFLAGS. Ignore libCrun as
12360     # -library=stlport4 depends on it.
12361     case " $CXX $CXXFLAGS " in
12362     *" -library=stlport4 "*)
12363       solaris_use_stlport4=yes
12364       ;;
12365     esac
12366
12367     # Adding this requires a known-good setup of shared libraries for
12368     # Sun compiler versions before 5.6, else PIC objects from an old
12369     # archive will be linked into the output, leading to subtle bugs.
12370     if test "$solaris_use_stlport4" != yes; then
12371       postdeps_CXX='-library=Cstd -library=Crun'
12372     fi
12373     ;;
12374   esac
12375   ;;
12376 esac
12377
12378 case " $postdeps_CXX " in
12379 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12380 esac
12381
12382 lt_prog_compiler_wl_CXX=
12383 lt_prog_compiler_pic_CXX=
12384 lt_prog_compiler_static_CXX=
12385
12386 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12387 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12388
12389   # C++ specific cases for pic, static, wl, etc.
12390   if test "$GXX" = yes; then
12391     lt_prog_compiler_wl_CXX='-Wl,'
12392     lt_prog_compiler_static_CXX='-static'
12393
12394     case $host_os in
12395     aix*)
12396       # All AIX code is PIC.
12397       if test "$host_cpu" = ia64; then
12398         # AIX 5 now supports IA64 processor
12399         lt_prog_compiler_static_CXX='-Bstatic'
12400       fi
12401       ;;
12402     amigaos*)
12403       # FIXME: we need at least 68020 code to build shared libraries, but
12404       # adding the `-m68020' flag to GCC prevents building anything better,
12405       # like `-m68040'.
12406       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12407       ;;
12408     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12409       # PIC is the default for these OSes.
12410       ;;
12411     mingw* | cygwin* | os2* | pw32*)
12412       # This hack is so that the source file can tell whether it is being
12413       # built for inclusion in a dll (and should export symbols for example).
12414       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12415       # (--disable-auto-import) libraries
12416       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12417       ;;
12418     darwin* | rhapsody*)
12419       # PIC is the default on this platform
12420       # Common symbols not allowed in MH_DYLIB files
12421       lt_prog_compiler_pic_CXX='-fno-common'
12422       ;;
12423     *djgpp*)
12424       # DJGPP does not support shared libraries at all
12425       lt_prog_compiler_pic_CXX=
12426       ;;
12427     interix[3-9]*)
12428       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12429       # Instead, we relocate shared libraries at runtime.
12430       ;;
12431     sysv4*MP*)
12432       if test -d /usr/nec; then
12433         lt_prog_compiler_pic_CXX=-Kconform_pic
12434       fi
12435       ;;
12436     hpux*)
12437       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12438       # not for PA HP-UX.
12439       case $host_cpu in
12440       hppa*64*|ia64*)
12441         ;;
12442       *)
12443         lt_prog_compiler_pic_CXX='-fPIC'
12444         ;;
12445       esac
12446       ;;
12447     *)
12448       lt_prog_compiler_pic_CXX='-fPIC'
12449       ;;
12450     esac
12451   else
12452     case $host_os in
12453       aix[4-9]*)
12454         # All AIX code is PIC.
12455         if test "$host_cpu" = ia64; then
12456           # AIX 5 now supports IA64 processor
12457           lt_prog_compiler_static_CXX='-Bstatic'
12458         else
12459           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12460         fi
12461         ;;
12462       chorus*)
12463         case $cc_basename in
12464         cxch68*)
12465           # Green Hills C++ Compiler
12466           # _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"
12467           ;;
12468         esac
12469         ;;
12470        darwin*)
12471          # PIC is the default on this platform
12472          # Common symbols not allowed in MH_DYLIB files
12473          case $cc_basename in
12474            xlc*)
12475            lt_prog_compiler_pic_CXX='-qnocommon'
12476            lt_prog_compiler_wl_CXX='-Wl,'
12477            ;;
12478          esac
12479        ;;
12480       dgux*)
12481         case $cc_basename in
12482           ec++*)
12483             lt_prog_compiler_pic_CXX='-KPIC'
12484             ;;
12485           ghcx*)
12486             # Green Hills C++ Compiler
12487             lt_prog_compiler_pic_CXX='-pic'
12488             ;;
12489           *)
12490             ;;
12491         esac
12492         ;;
12493       freebsd* | dragonfly*)
12494         # FreeBSD uses GNU C++
12495         ;;
12496       hpux9* | hpux10* | hpux11*)
12497         case $cc_basename in
12498           CC*)
12499             lt_prog_compiler_wl_CXX='-Wl,'
12500             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12501             if test "$host_cpu" != ia64; then
12502               lt_prog_compiler_pic_CXX='+Z'
12503             fi
12504             ;;
12505           aCC*)
12506             lt_prog_compiler_wl_CXX='-Wl,'
12507             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12508             case $host_cpu in
12509             hppa*64*|ia64*)
12510               # +Z the default
12511               ;;
12512             *)
12513               lt_prog_compiler_pic_CXX='+Z'
12514               ;;
12515             esac
12516             ;;
12517           *)
12518             ;;
12519         esac
12520         ;;
12521       interix*)
12522         # This is c89, which is MS Visual C++ (no shared libs)
12523         # Anyone wants to do a port?
12524         ;;
12525       irix5* | irix6* | nonstopux*)
12526         case $cc_basename in
12527           CC*)
12528             lt_prog_compiler_wl_CXX='-Wl,'
12529             lt_prog_compiler_static_CXX='-non_shared'
12530             # CC pic flag -KPIC is the default.
12531             ;;
12532           *)
12533             ;;
12534         esac
12535         ;;
12536       linux* | k*bsd*-gnu)
12537         case $cc_basename in
12538           KCC*)
12539             # KAI C++ Compiler
12540             lt_prog_compiler_wl_CXX='--backend -Wl,'
12541             lt_prog_compiler_pic_CXX='-fPIC'
12542             ;;
12543           icpc* | ecpc*)
12544             # Intel C++
12545             lt_prog_compiler_wl_CXX='-Wl,'
12546             lt_prog_compiler_pic_CXX='-KPIC'
12547             lt_prog_compiler_static_CXX='-static'
12548             ;;
12549           pgCC* | pgcpp*)
12550             # Portland Group C++ compiler.
12551             lt_prog_compiler_wl_CXX='-Wl,'
12552             lt_prog_compiler_pic_CXX='-fpic'
12553             lt_prog_compiler_static_CXX='-Bstatic'
12554             ;;
12555           cxx*)
12556             # Compaq C++
12557             # Make sure the PIC flag is empty.  It appears that all Alpha
12558             # Linux and Compaq Tru64 Unix objects are PIC.
12559             lt_prog_compiler_pic_CXX=
12560             lt_prog_compiler_static_CXX='-non_shared'
12561             ;;
12562           *)
12563             case `$CC -V 2>&1 | sed 5q` in
12564             *Sun\ C*)
12565               # Sun C++ 5.9
12566               lt_prog_compiler_pic_CXX='-KPIC'
12567               lt_prog_compiler_static_CXX='-Bstatic'
12568               lt_prog_compiler_wl_CXX='-Qoption ld '
12569               ;;
12570             esac
12571             ;;
12572         esac
12573         ;;
12574       lynxos*)
12575         ;;
12576       m88k*)
12577         ;;
12578       mvs*)
12579         case $cc_basename in
12580           cxx*)
12581             lt_prog_compiler_pic_CXX='-W c,exportall'
12582             ;;
12583           *)
12584             ;;
12585         esac
12586         ;;
12587       netbsd* | netbsdelf*-gnu)
12588         ;;
12589       osf3* | osf4* | osf5*)
12590         case $cc_basename in
12591           KCC*)
12592             lt_prog_compiler_wl_CXX='--backend -Wl,'
12593             ;;
12594           RCC*)
12595             # Rational C++ 2.4.1
12596             lt_prog_compiler_pic_CXX='-pic'
12597             ;;
12598           cxx*)
12599             # Digital/Compaq C++
12600             lt_prog_compiler_wl_CXX='-Wl,'
12601             # Make sure the PIC flag is empty.  It appears that all Alpha
12602             # Linux and Compaq Tru64 Unix objects are PIC.
12603             lt_prog_compiler_pic_CXX=
12604             lt_prog_compiler_static_CXX='-non_shared'
12605             ;;
12606           *)
12607             ;;
12608         esac
12609         ;;
12610       psos*)
12611         ;;
12612       solaris*)
12613         case $cc_basename in
12614           CC*)
12615             # Sun C++ 4.2, 5.x and Centerline C++
12616             lt_prog_compiler_pic_CXX='-KPIC'
12617             lt_prog_compiler_static_CXX='-Bstatic'
12618             lt_prog_compiler_wl_CXX='-Qoption ld '
12619             ;;
12620           gcx*)
12621             # Green Hills C++ Compiler
12622             lt_prog_compiler_pic_CXX='-PIC'
12623             ;;
12624           *)
12625             ;;
12626         esac
12627         ;;
12628       sunos4*)
12629         case $cc_basename in
12630           CC*)
12631             # Sun C++ 4.x
12632             lt_prog_compiler_pic_CXX='-pic'
12633             lt_prog_compiler_static_CXX='-Bstatic'
12634             ;;
12635           lcc*)
12636             # Lucid
12637             lt_prog_compiler_pic_CXX='-pic'
12638             ;;
12639           *)
12640             ;;
12641         esac
12642         ;;
12643       tandem*)
12644         case $cc_basename in
12645           NCC*)
12646             # NonStop-UX NCC 3.20
12647             lt_prog_compiler_pic_CXX='-KPIC'
12648             ;;
12649           *)
12650             ;;
12651         esac
12652         ;;
12653       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12654         case $cc_basename in
12655           CC*)
12656             lt_prog_compiler_wl_CXX='-Wl,'
12657             lt_prog_compiler_pic_CXX='-KPIC'
12658             lt_prog_compiler_static_CXX='-Bstatic'
12659             ;;
12660         esac
12661         ;;
12662       vxworks*)
12663         ;;
12664       *)
12665         lt_prog_compiler_can_build_shared_CXX=no
12666         ;;
12667     esac
12668   fi
12669
12670 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12671 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12672
12673 #
12674 # Check to make sure the PIC flag actually works.
12675 #
12676 if test -n "$lt_prog_compiler_pic_CXX"; then
12677
12678 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12679 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12680 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12681   echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683   lt_cv_prog_compiler_pic_works_CXX=no
12684   ac_outfile=conftest.$ac_objext
12685    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12686    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12687    # Insert the option either (1) after the last *FLAGS variable, or
12688    # (2) before a word containing "conftest.", or (3) at the end.
12689    # Note that $ac_compile itself does not contain backslashes and begins
12690    # with a dollar sign (not a hyphen), so the echo should work correctly.
12691    # The option is referenced via a variable to avoid confusing sed.
12692    lt_compile=`echo "$ac_compile" | $SED \
12693    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12694    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12695    -e 's:$: $lt_compiler_flag:'`
12696    (eval echo "\"\$as_me:12696: $lt_compile\"" >&5)
12697    (eval "$lt_compile" 2>conftest.err)
12698    ac_status=$?
12699    cat conftest.err >&5
12700    echo "$as_me:12700: \$? = $ac_status" >&5
12701    if (exit $ac_status) && test -s "$ac_outfile"; then
12702      # The compiler can only warn and ignore the option if not recognized
12703      # So say no if there are warnings other than the usual output.
12704      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12705      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12706      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12707        lt_cv_prog_compiler_pic_works_CXX=yes
12708      fi
12709    fi
12710    $rm conftest*
12711
12712 fi
12713 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12714 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12715
12716 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12717     case $lt_prog_compiler_pic_CXX in
12718      "" | " "*) ;;
12719      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12720      esac
12721 else
12722     lt_prog_compiler_pic_CXX=
12723      lt_prog_compiler_can_build_shared_CXX=no
12724 fi
12725
12726 fi
12727 case $host_os in
12728   # For platforms which do not support PIC, -DPIC is meaningless:
12729   *djgpp*)
12730     lt_prog_compiler_pic_CXX=
12731     ;;
12732   *)
12733     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12734     ;;
12735 esac
12736
12737 #
12738 # Check to make sure the static flag actually works.
12739 #
12740 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12741 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12742 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12743 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12744   echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746   lt_cv_prog_compiler_static_works_CXX=no
12747    save_LDFLAGS="$LDFLAGS"
12748    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12749    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12750    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12751      # The linker can only warn and ignore the option if not recognized
12752      # So say no if there are warnings
12753      if test -s conftest.err; then
12754        # Append any errors to the config.log.
12755        cat conftest.err 1>&5
12756        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12757        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12758        if diff conftest.exp conftest.er2 >/dev/null; then
12759          lt_cv_prog_compiler_static_works_CXX=yes
12760        fi
12761      else
12762        lt_cv_prog_compiler_static_works_CXX=yes
12763      fi
12764    fi
12765    $rm -r conftest*
12766    LDFLAGS="$save_LDFLAGS"
12767
12768 fi
12769 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12770 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12771
12772 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12773     :
12774 else
12775     lt_prog_compiler_static_CXX=
12776 fi
12777
12778
12779 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12780 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12781 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12782   echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784   lt_cv_prog_compiler_c_o_CXX=no
12785    $rm -r conftest 2>/dev/null
12786    mkdir conftest
12787    cd conftest
12788    mkdir out
12789    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12790
12791    lt_compiler_flag="-o out/conftest2.$ac_objext"
12792    # Insert the option either (1) after the last *FLAGS variable, or
12793    # (2) before a word containing "conftest.", or (3) at the end.
12794    # Note that $ac_compile itself does not contain backslashes and begins
12795    # with a dollar sign (not a hyphen), so the echo should work correctly.
12796    lt_compile=`echo "$ac_compile" | $SED \
12797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12799    -e 's:$: $lt_compiler_flag:'`
12800    (eval echo "\"\$as_me:12800: $lt_compile\"" >&5)
12801    (eval "$lt_compile" 2>out/conftest.err)
12802    ac_status=$?
12803    cat out/conftest.err >&5
12804    echo "$as_me:12804: \$? = $ac_status" >&5
12805    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12806    then
12807      # The compiler can only warn and ignore the option if not recognized
12808      # So say no if there are warnings
12809      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12810      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12811      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12812        lt_cv_prog_compiler_c_o_CXX=yes
12813      fi
12814    fi
12815    chmod u+w . 2>&5
12816    $rm conftest*
12817    # SGI C++ compiler will create directory out/ii_files/ for
12818    # template instantiation
12819    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12820    $rm out/* && rmdir out
12821    cd ..
12822    rmdir conftest
12823    $rm conftest*
12824
12825 fi
12826 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12827 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12828
12829
12830 hard_links="nottested"
12831 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12832   # do not overwrite the value of need_locks provided by the user
12833   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12834 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12835   hard_links=yes
12836   $rm conftest*
12837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12838   touch conftest.a
12839   ln conftest.a conftest.b 2>&5 || hard_links=no
12840   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12841   { echo "$as_me:$LINENO: result: $hard_links" >&5
12842 echo "${ECHO_T}$hard_links" >&6; }
12843   if test "$hard_links" = no; then
12844     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12845 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12846     need_locks=warn
12847   fi
12848 else
12849   need_locks=no
12850 fi
12851
12852 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12853 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12854
12855   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12856   case $host_os in
12857   aix[4-9]*)
12858     # If we're using GNU nm, then we don't want the "-C" option.
12859     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12860     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12861       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'
12862     else
12863       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'
12864     fi
12865     ;;
12866   pw32*)
12867     export_symbols_cmds_CXX="$ltdll_cmds"
12868   ;;
12869   cygwin* | mingw*)
12870     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'
12871   ;;
12872   linux* | k*bsd*-gnu)
12873     link_all_deplibs_CXX=no
12874   ;;
12875   *)
12876     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12877   ;;
12878   esac
12879   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12880
12881 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12882 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12883 test "$ld_shlibs_CXX" = no && can_build_shared=no
12884
12885 #
12886 # Do we need to explicitly link libc?
12887 #
12888 case "x$archive_cmds_need_lc_CXX" in
12889 x|xyes)
12890   # Assume -lc should be added
12891   archive_cmds_need_lc_CXX=yes
12892
12893   if test "$enable_shared" = yes && test "$GCC" = yes; then
12894     case $archive_cmds_CXX in
12895     *'~'*)
12896       # FIXME: we may have to deal with multi-command sequences.
12897       ;;
12898     '$CC '*)
12899       # Test whether the compiler implicitly links with -lc since on some
12900       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12901       # to ld, don't add -lc before -lgcc.
12902       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12903 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12904       $rm conftest*
12905       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12906
12907       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908   (eval $ac_compile) 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } 2>conftest.err; then
12912         soname=conftest
12913         lib=conftest
12914         libobjs=conftest.$ac_objext
12915         deplibs=
12916         wl=$lt_prog_compiler_wl_CXX
12917         pic_flag=$lt_prog_compiler_pic_CXX
12918         compiler_flags=-v
12919         linker_flags=-v
12920         verstring=
12921         output_objdir=.
12922         libname=conftest
12923         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12924         allow_undefined_flag_CXX=
12925         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12926   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }
12930         then
12931           archive_cmds_need_lc_CXX=no
12932         else
12933           archive_cmds_need_lc_CXX=yes
12934         fi
12935         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12936       else
12937         cat conftest.err 1>&5
12938       fi
12939       $rm conftest*
12940       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12941 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12942       ;;
12943     esac
12944   fi
12945   ;;
12946 esac
12947
12948 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12949 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12950 library_names_spec=
12951 libname_spec='lib$name'
12952 soname_spec=
12953 shrext_cmds=".so"
12954 postinstall_cmds=
12955 postuninstall_cmds=
12956 finish_cmds=
12957 finish_eval=
12958 shlibpath_var=
12959 shlibpath_overrides_runpath=unknown
12960 version_type=none
12961 dynamic_linker="$host_os ld.so"
12962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12963
12964 need_lib_prefix=unknown
12965 hardcode_into_libs=no
12966
12967 # when you set need_version to no, make sure it does not cause -set_version
12968 # flags to be left without arguments
12969 need_version=unknown
12970
12971 case $host_os in
12972 aix3*)
12973   version_type=linux
12974   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12975   shlibpath_var=LIBPATH
12976
12977   # AIX 3 has no versioning support, so we append a major version to the name.
12978   soname_spec='${libname}${release}${shared_ext}$major'
12979   ;;
12980
12981 aix[4-9]*)
12982   version_type=linux
12983   need_lib_prefix=no
12984   need_version=no
12985   hardcode_into_libs=yes
12986   if test "$host_cpu" = ia64; then
12987     # AIX 5 supports IA64
12988     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12989     shlibpath_var=LD_LIBRARY_PATH
12990   else
12991     # With GCC up to 2.95.x, collect2 would create an import file
12992     # for dependence libraries.  The import file would start with
12993     # the line `#! .'.  This would cause the generated library to
12994     # depend on `.', always an invalid library.  This was fixed in
12995     # development snapshots of GCC prior to 3.0.
12996     case $host_os in
12997       aix4 | aix4.[01] | aix4.[01].*)
12998       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12999            echo ' yes '
13000            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13001         :
13002       else
13003         can_build_shared=no
13004       fi
13005       ;;
13006     esac
13007     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13008     # soname into executable. Probably we can add versioning support to
13009     # collect2, so additional links can be useful in future.
13010     if test "$aix_use_runtimelinking" = yes; then
13011       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13012       # instead of lib<name>.a to let people know that these are not
13013       # typical AIX shared libraries.
13014       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015     else
13016       # We preserve .a as extension for shared libraries through AIX4.2
13017       # and later when we are not doing run time linking.
13018       library_names_spec='${libname}${release}.a $libname.a'
13019       soname_spec='${libname}${release}${shared_ext}$major'
13020     fi
13021     shlibpath_var=LIBPATH
13022   fi
13023   ;;
13024
13025 amigaos*)
13026   library_names_spec='$libname.ixlibrary $libname.a'
13027   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13028   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'
13029   ;;
13030
13031 beos*)
13032   library_names_spec='${libname}${shared_ext}'
13033   dynamic_linker="$host_os ld.so"
13034   shlibpath_var=LIBRARY_PATH
13035   ;;
13036
13037 bsdi[45]*)
13038   version_type=linux
13039   need_version=no
13040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041   soname_spec='${libname}${release}${shared_ext}$major'
13042   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13043   shlibpath_var=LD_LIBRARY_PATH
13044   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13045   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13046   # the default ld.so.conf also contains /usr/contrib/lib and
13047   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13048   # libtool to hard-code these into programs
13049   ;;
13050
13051 cygwin* | mingw* | pw32*)
13052   version_type=windows
13053   shrext_cmds=".dll"
13054   need_version=no
13055   need_lib_prefix=no
13056
13057   case $GCC,$host_os in
13058   yes,cygwin* | yes,mingw* | yes,pw32*)
13059     library_names_spec='$libname.dll.a'
13060     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13061     postinstall_cmds='base_file=`basename \${file}`~
13062       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13063       dldir=$destdir/`dirname \$dlpath`~
13064       test -d \$dldir || mkdir -p \$dldir~
13065       $install_prog $dir/$dlname \$dldir/$dlname~
13066       chmod a+x \$dldir/$dlname'
13067     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13068       dlpath=$dir/\$dldll~
13069        $rm \$dlpath'
13070     shlibpath_overrides_runpath=yes
13071
13072     case $host_os in
13073     cygwin*)
13074       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13075       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13076       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13077       ;;
13078     mingw*)
13079       # MinGW DLLs use traditional 'lib' prefix
13080       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13081       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13082       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13083         # It is most probably a Windows format PATH printed by
13084         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13085         # path with ; separators, and with drive letters. We can handle the
13086         # drive letters (cygwin fileutils understands them), so leave them,
13087         # especially as we might pass files found there to a mingw objdump,
13088         # which wouldn't understand a cygwinified path. Ahh.
13089         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13090       else
13091         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13092       fi
13093       ;;
13094     pw32*)
13095       # pw32 DLLs use 'pw' prefix rather than 'lib'
13096       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13097       ;;
13098     esac
13099     ;;
13100
13101   *)
13102     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13103     ;;
13104   esac
13105   dynamic_linker='Win32 ld.exe'
13106   # FIXME: first we should search . and the directory the executable is in
13107   shlibpath_var=PATH
13108   ;;
13109
13110 darwin* | rhapsody*)
13111   dynamic_linker="$host_os dyld"
13112   version_type=darwin
13113   need_lib_prefix=no
13114   need_version=no
13115   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13116   soname_spec='${libname}${release}${major}$shared_ext'
13117   shlibpath_overrides_runpath=yes
13118   shlibpath_var=DYLD_LIBRARY_PATH
13119   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13120
13121   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13122   ;;
13123
13124 dgux*)
13125   version_type=linux
13126   need_lib_prefix=no
13127   need_version=no
13128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13129   soname_spec='${libname}${release}${shared_ext}$major'
13130   shlibpath_var=LD_LIBRARY_PATH
13131   ;;
13132
13133 freebsd1*)
13134   dynamic_linker=no
13135   ;;
13136
13137 freebsd* | dragonfly*)
13138   # DragonFly does not have aout.  When/if they implement a new
13139   # versioning mechanism, adjust this.
13140   if test -x /usr/bin/objformat; then
13141     objformat=`/usr/bin/objformat`
13142   else
13143     case $host_os in
13144     freebsd[123]*) objformat=aout ;;
13145     *) objformat=elf ;;
13146     esac
13147   fi
13148   version_type=freebsd-$objformat
13149   case $version_type in
13150     freebsd-elf*)
13151       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13152       need_version=no
13153       need_lib_prefix=no
13154       ;;
13155     freebsd-*)
13156       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13157       need_version=yes
13158       ;;
13159   esac
13160   shlibpath_var=LD_LIBRARY_PATH
13161   case $host_os in
13162   freebsd2*)
13163     shlibpath_overrides_runpath=yes
13164     ;;
13165   freebsd3.[01]* | freebsdelf3.[01]*)
13166     shlibpath_overrides_runpath=yes
13167     hardcode_into_libs=yes
13168     ;;
13169   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13170   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13171     shlibpath_overrides_runpath=no
13172     hardcode_into_libs=yes
13173     ;;
13174   *) # from 4.6 on, and DragonFly
13175     shlibpath_overrides_runpath=yes
13176     hardcode_into_libs=yes
13177     ;;
13178   esac
13179   ;;
13180
13181 gnu*)
13182   version_type=linux
13183   need_lib_prefix=no
13184   need_version=no
13185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13186   soname_spec='${libname}${release}${shared_ext}$major'
13187   shlibpath_var=LD_LIBRARY_PATH
13188   hardcode_into_libs=yes
13189   ;;
13190
13191 hpux9* | hpux10* | hpux11*)
13192   # Give a soname corresponding to the major version so that dld.sl refuses to
13193   # link against other versions.
13194   version_type=sunos
13195   need_lib_prefix=no
13196   need_version=no
13197   case $host_cpu in
13198   ia64*)
13199     shrext_cmds='.so'
13200     hardcode_into_libs=yes
13201     dynamic_linker="$host_os dld.so"
13202     shlibpath_var=LD_LIBRARY_PATH
13203     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205     soname_spec='${libname}${release}${shared_ext}$major'
13206     if test "X$HPUX_IA64_MODE" = X32; then
13207       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13208     else
13209       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13210     fi
13211     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13212     ;;
13213    hppa*64*)
13214      shrext_cmds='.sl'
13215      hardcode_into_libs=yes
13216      dynamic_linker="$host_os dld.sl"
13217      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13218      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13219      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220      soname_spec='${libname}${release}${shared_ext}$major'
13221      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13222      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13223      ;;
13224    *)
13225     shrext_cmds='.sl'
13226     dynamic_linker="$host_os dld.sl"
13227     shlibpath_var=SHLIB_PATH
13228     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13230     soname_spec='${libname}${release}${shared_ext}$major'
13231     ;;
13232   esac
13233   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13234   postinstall_cmds='chmod 555 $lib'
13235   ;;
13236
13237 interix[3-9]*)
13238   version_type=linux
13239   need_lib_prefix=no
13240   need_version=no
13241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13242   soname_spec='${libname}${release}${shared_ext}$major'
13243   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13244   shlibpath_var=LD_LIBRARY_PATH
13245   shlibpath_overrides_runpath=no
13246   hardcode_into_libs=yes
13247   ;;
13248
13249 irix5* | irix6* | nonstopux*)
13250   case $host_os in
13251     nonstopux*) version_type=nonstopux ;;
13252     *)
13253         if test "$lt_cv_prog_gnu_ld" = yes; then
13254                 version_type=linux
13255         else
13256                 version_type=irix
13257         fi ;;
13258   esac
13259   need_lib_prefix=no
13260   need_version=no
13261   soname_spec='${libname}${release}${shared_ext}$major'
13262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13263   case $host_os in
13264   irix5* | nonstopux*)
13265     libsuff= shlibsuff=
13266     ;;
13267   *)
13268     case $LD in # libtool.m4 will add one of these switches to LD
13269     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13270       libsuff= shlibsuff= libmagic=32-bit;;
13271     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13272       libsuff=32 shlibsuff=N32 libmagic=N32;;
13273     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13274       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13275     *) libsuff= shlibsuff= libmagic=never-match;;
13276     esac
13277     ;;
13278   esac
13279   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13280   shlibpath_overrides_runpath=no
13281   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13282   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13283   hardcode_into_libs=yes
13284   ;;
13285
13286 # No shared lib support for Linux oldld, aout, or coff.
13287 linux*oldld* | linux*aout* | linux*coff*)
13288   dynamic_linker=no
13289   ;;
13290
13291 # This must be Linux ELF.
13292 linux* | k*bsd*-gnu)
13293   version_type=linux
13294   need_lib_prefix=no
13295   need_version=no
13296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13297   soname_spec='${libname}${release}${shared_ext}$major'
13298   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13299   shlibpath_var=LD_LIBRARY_PATH
13300   shlibpath_overrides_runpath=no
13301   # This implies no fast_install, which is unacceptable.
13302   # Some rework will be needed to allow for fast_install
13303   # before this can be enabled.
13304   hardcode_into_libs=yes
13305
13306   # Append ld.so.conf contents to the search path
13307   if test -f /etc/ld.so.conf; then
13308     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' ' '`
13309     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13310   fi
13311
13312   # We used to test for /lib/ld.so.1 and disable shared libraries on
13313   # powerpc, because MkLinux only supported shared libraries with the
13314   # GNU dynamic linker.  Since this was broken with cross compilers,
13315   # most powerpc-linux boxes support dynamic linking these days and
13316   # people can always --disable-shared, the test was removed, and we
13317   # assume the GNU/Linux dynamic linker is in use.
13318   dynamic_linker='GNU/Linux ld.so'
13319   ;;
13320
13321 netbsdelf*-gnu)
13322   version_type=linux
13323   need_lib_prefix=no
13324   need_version=no
13325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13326   soname_spec='${libname}${release}${shared_ext}$major'
13327   shlibpath_var=LD_LIBRARY_PATH
13328   shlibpath_overrides_runpath=no
13329   hardcode_into_libs=yes
13330   dynamic_linker='NetBSD ld.elf_so'
13331   ;;
13332
13333 netbsd*)
13334   version_type=sunos
13335   need_lib_prefix=no
13336   need_version=no
13337   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13339     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13340     dynamic_linker='NetBSD (a.out) ld.so'
13341   else
13342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13343     soname_spec='${libname}${release}${shared_ext}$major'
13344     dynamic_linker='NetBSD ld.elf_so'
13345   fi
13346   shlibpath_var=LD_LIBRARY_PATH
13347   shlibpath_overrides_runpath=yes
13348   hardcode_into_libs=yes
13349   ;;
13350
13351 newsos6)
13352   version_type=linux
13353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354   shlibpath_var=LD_LIBRARY_PATH
13355   shlibpath_overrides_runpath=yes
13356   ;;
13357
13358 nto-qnx*)
13359   version_type=linux
13360   need_lib_prefix=no
13361   need_version=no
13362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13363   soname_spec='${libname}${release}${shared_ext}$major'
13364   shlibpath_var=LD_LIBRARY_PATH
13365   shlibpath_overrides_runpath=yes
13366   ;;
13367
13368 openbsd*)
13369   version_type=sunos
13370   sys_lib_dlsearch_path_spec="/usr/lib"
13371   need_lib_prefix=no
13372   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13373   case $host_os in
13374     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13375     *)                         need_version=no  ;;
13376   esac
13377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13378   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13379   shlibpath_var=LD_LIBRARY_PATH
13380   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13381     case $host_os in
13382       openbsd2.[89] | openbsd2.[89].*)
13383         shlibpath_overrides_runpath=no
13384         ;;
13385       *)
13386         shlibpath_overrides_runpath=yes
13387         ;;
13388       esac
13389   else
13390     shlibpath_overrides_runpath=yes
13391   fi
13392   ;;
13393
13394 os2*)
13395   libname_spec='$name'
13396   shrext_cmds=".dll"
13397   need_lib_prefix=no
13398   library_names_spec='$libname${shared_ext} $libname.a'
13399   dynamic_linker='OS/2 ld.exe'
13400   shlibpath_var=LIBPATH
13401   ;;
13402
13403 osf3* | osf4* | osf5*)
13404   version_type=osf
13405   need_lib_prefix=no
13406   need_version=no
13407   soname_spec='${libname}${release}${shared_ext}$major'
13408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409   shlibpath_var=LD_LIBRARY_PATH
13410   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13411   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13412   ;;
13413
13414 rdos*)
13415   dynamic_linker=no
13416   ;;
13417
13418 solaris*)
13419   version_type=linux
13420   need_lib_prefix=no
13421   need_version=no
13422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13423   soname_spec='${libname}${release}${shared_ext}$major'
13424   shlibpath_var=LD_LIBRARY_PATH
13425   shlibpath_overrides_runpath=yes
13426   hardcode_into_libs=yes
13427   # ldd complains unless libraries are executable
13428   postinstall_cmds='chmod +x $lib'
13429   ;;
13430
13431 sunos4*)
13432   version_type=sunos
13433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13434   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13435   shlibpath_var=LD_LIBRARY_PATH
13436   shlibpath_overrides_runpath=yes
13437   if test "$with_gnu_ld" = yes; then
13438     need_lib_prefix=no
13439   fi
13440   need_version=yes
13441   ;;
13442
13443 sysv4 | sysv4.3*)
13444   version_type=linux
13445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13446   soname_spec='${libname}${release}${shared_ext}$major'
13447   shlibpath_var=LD_LIBRARY_PATH
13448   case $host_vendor in
13449     sni)
13450       shlibpath_overrides_runpath=no
13451       need_lib_prefix=no
13452       export_dynamic_flag_spec='${wl}-Blargedynsym'
13453       runpath_var=LD_RUN_PATH
13454       ;;
13455     siemens)
13456       need_lib_prefix=no
13457       ;;
13458     motorola)
13459       need_lib_prefix=no
13460       need_version=no
13461       shlibpath_overrides_runpath=no
13462       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13463       ;;
13464   esac
13465   ;;
13466
13467 sysv4*MP*)
13468   if test -d /usr/nec ;then
13469     version_type=linux
13470     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13471     soname_spec='$libname${shared_ext}.$major'
13472     shlibpath_var=LD_LIBRARY_PATH
13473   fi
13474   ;;
13475
13476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13477   version_type=freebsd-elf
13478   need_lib_prefix=no
13479   need_version=no
13480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13481   soname_spec='${libname}${release}${shared_ext}$major'
13482   shlibpath_var=LD_LIBRARY_PATH
13483   hardcode_into_libs=yes
13484   if test "$with_gnu_ld" = yes; then
13485     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13486     shlibpath_overrides_runpath=no
13487   else
13488     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13489     shlibpath_overrides_runpath=yes
13490     case $host_os in
13491       sco3.2v5*)
13492         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13493         ;;
13494     esac
13495   fi
13496   sys_lib_dlsearch_path_spec='/usr/lib'
13497   ;;
13498
13499 uts4*)
13500   version_type=linux
13501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502   soname_spec='${libname}${release}${shared_ext}$major'
13503   shlibpath_var=LD_LIBRARY_PATH
13504   ;;
13505
13506 *)
13507   dynamic_linker=no
13508   ;;
13509 esac
13510 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13511 echo "${ECHO_T}$dynamic_linker" >&6; }
13512 test "$dynamic_linker" = no && can_build_shared=no
13513
13514 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13515   echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13518 fi
13519
13520 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13521 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13522   echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13525 fi
13526
13527 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13528
13529 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13530 if test "$GCC" = yes; then
13531   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13532 fi
13533
13534 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13535 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13536 hardcode_action_CXX=
13537 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13538    test -n "$runpath_var_CXX" || \
13539    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13540
13541   # We can hardcode non-existant directories.
13542   if test "$hardcode_direct_CXX" != no &&
13543      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13544      # have to relink, otherwise we might link with an installed library
13545      # when we should be linking with a yet-to-be-installed one
13546      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13547      test "$hardcode_minus_L_CXX" != no; then
13548     # Linking always hardcodes the temporary library directory.
13549     hardcode_action_CXX=relink
13550   else
13551     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13552     hardcode_action_CXX=immediate
13553   fi
13554 else
13555   # We cannot hardcode anything, or else we can only hardcode existing
13556   # directories.
13557   hardcode_action_CXX=unsupported
13558 fi
13559 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13560 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13561
13562 if test "$hardcode_action_CXX" = relink; then
13563   # Fast installation is not supported
13564   enable_fast_install=no
13565 elif test "$shlibpath_overrides_runpath" = yes ||
13566      test "$enable_shared" = no; then
13567   # Fast installation is not necessary
13568   enable_fast_install=needless
13569 fi
13570
13571
13572 # The else clause should only fire when bootstrapping the
13573 # libtool distribution, otherwise you forgot to ship ltmain.sh
13574 # with your package, and you will get complaints that there are
13575 # no rules to generate ltmain.sh.
13576 if test -f "$ltmain"; then
13577   # See if we are running on zsh, and set the options which allow our commands through
13578   # without removal of \ escapes.
13579   if test -n "${ZSH_VERSION+set}" ; then
13580     setopt NO_GLOB_SUBST
13581   fi
13582   # Now quote all the things that may contain metacharacters while being
13583   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13584   # variables and quote the copies for generation of the libtool script.
13585   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13586     SED SHELL STRIP \
13587     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13588     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13589     deplibs_check_method reload_flag reload_cmds need_locks \
13590     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13591     lt_cv_sys_global_symbol_to_c_name_address \
13592     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13593     old_postinstall_cmds old_postuninstall_cmds \
13594     compiler_CXX \
13595     CC_CXX \
13596     LD_CXX \
13597     lt_prog_compiler_wl_CXX \
13598     lt_prog_compiler_pic_CXX \
13599     lt_prog_compiler_static_CXX \
13600     lt_prog_compiler_no_builtin_flag_CXX \
13601     export_dynamic_flag_spec_CXX \
13602     thread_safe_flag_spec_CXX \
13603     whole_archive_flag_spec_CXX \
13604     enable_shared_with_static_runtimes_CXX \
13605     old_archive_cmds_CXX \
13606     old_archive_from_new_cmds_CXX \
13607     predep_objects_CXX \
13608     postdep_objects_CXX \
13609     predeps_CXX \
13610     postdeps_CXX \
13611     compiler_lib_search_path_CXX \
13612     compiler_lib_search_dirs_CXX \
13613     archive_cmds_CXX \
13614     archive_expsym_cmds_CXX \
13615     postinstall_cmds_CXX \
13616     postuninstall_cmds_CXX \
13617     old_archive_from_expsyms_cmds_CXX \
13618     allow_undefined_flag_CXX \
13619     no_undefined_flag_CXX \
13620     export_symbols_cmds_CXX \
13621     hardcode_libdir_flag_spec_CXX \
13622     hardcode_libdir_flag_spec_ld_CXX \
13623     hardcode_libdir_separator_CXX \
13624     hardcode_automatic_CXX \
13625     module_cmds_CXX \
13626     module_expsym_cmds_CXX \
13627     lt_cv_prog_compiler_c_o_CXX \
13628     fix_srcfile_path_CXX \
13629     exclude_expsyms_CXX \
13630     include_expsyms_CXX; do
13631
13632     case $var in
13633     old_archive_cmds_CXX | \
13634     old_archive_from_new_cmds_CXX | \
13635     archive_cmds_CXX | \
13636     archive_expsym_cmds_CXX | \
13637     module_cmds_CXX | \
13638     module_expsym_cmds_CXX | \
13639     old_archive_from_expsyms_cmds_CXX | \
13640     export_symbols_cmds_CXX | \
13641     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13642     postinstall_cmds | postuninstall_cmds | \
13643     old_postinstall_cmds | old_postuninstall_cmds | \
13644     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13645       # Double-quote double-evaled strings.
13646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13647       ;;
13648     *)
13649       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13650       ;;
13651     esac
13652   done
13653
13654   case $lt_echo in
13655   *'\$0 --fallback-echo"')
13656     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13657     ;;
13658   esac
13659
13660 cfgfile="$ofile"
13661
13662   cat <<__EOF__ >> "$cfgfile"
13663 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13664
13665 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13666
13667 # Shell to use when invoking shell scripts.
13668 SHELL=$lt_SHELL
13669
13670 # Whether or not to build shared libraries.
13671 build_libtool_libs=$enable_shared
13672
13673 # Whether or not to build static libraries.
13674 build_old_libs=$enable_static
13675
13676 # Whether or not to add -lc for building shared libraries.
13677 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13678
13679 # Whether or not to disallow shared libs when runtime libs are static
13680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13681
13682 # Whether or not to optimize for fast installation.
13683 fast_install=$enable_fast_install
13684
13685 # The host system.
13686 host_alias=$host_alias
13687 host=$host
13688 host_os=$host_os
13689
13690 # The build system.
13691 build_alias=$build_alias
13692 build=$build
13693 build_os=$build_os
13694
13695 # An echo program that does not interpret backslashes.
13696 echo=$lt_echo
13697
13698 # The archiver.
13699 AR=$lt_AR
13700 AR_FLAGS=$lt_AR_FLAGS
13701
13702 # A C compiler.
13703 LTCC=$lt_LTCC
13704
13705 # LTCC compiler flags.
13706 LTCFLAGS=$lt_LTCFLAGS
13707
13708 # A language-specific compiler.
13709 CC=$lt_compiler_CXX
13710
13711 # Is the compiler the GNU C compiler?
13712 with_gcc=$GCC_CXX
13713
13714 # An ERE matcher.
13715 EGREP=$lt_EGREP
13716
13717 # The linker used to build libraries.
13718 LD=$lt_LD_CXX
13719
13720 # Whether we need hard or soft links.
13721 LN_S=$lt_LN_S
13722
13723 # A BSD-compatible nm program.
13724 NM=$lt_NM
13725
13726 # A symbol stripping program
13727 STRIP=$lt_STRIP
13728
13729 # Used to examine libraries when file_magic_cmd begins "file"
13730 MAGIC_CMD=$MAGIC_CMD
13731
13732 # Used on cygwin: DLL creation program.
13733 DLLTOOL="$DLLTOOL"
13734
13735 # Used on cygwin: object dumper.
13736 OBJDUMP="$OBJDUMP"
13737
13738 # Used on cygwin: assembler.
13739 AS="$AS"
13740
13741 # The name of the directory that contains temporary libtool files.
13742 objdir=$objdir
13743
13744 # How to create reloadable object files.
13745 reload_flag=$lt_reload_flag
13746 reload_cmds=$lt_reload_cmds
13747
13748 # How to pass a linker flag through the compiler.
13749 wl=$lt_lt_prog_compiler_wl_CXX
13750
13751 # Object file suffix (normally "o").
13752 objext="$ac_objext"
13753
13754 # Old archive suffix (normally "a").
13755 libext="$libext"
13756
13757 # Shared library suffix (normally ".so").
13758 shrext_cmds='$shrext_cmds'
13759
13760 # Executable file suffix (normally "").
13761 exeext="$exeext"
13762
13763 # Additional compiler flags for building library objects.
13764 pic_flag=$lt_lt_prog_compiler_pic_CXX
13765 pic_mode=$pic_mode
13766
13767 # What is the maximum length of a command?
13768 max_cmd_len=$lt_cv_sys_max_cmd_len
13769
13770 # Does compiler simultaneously support -c and -o options?
13771 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13772
13773 # Must we lock files when doing compilation?
13774 need_locks=$lt_need_locks
13775
13776 # Do we need the lib prefix for modules?
13777 need_lib_prefix=$need_lib_prefix
13778
13779 # Do we need a version for libraries?
13780 need_version=$need_version
13781
13782 # Whether dlopen is supported.
13783 dlopen_support=$enable_dlopen
13784
13785 # Whether dlopen of programs is supported.
13786 dlopen_self=$enable_dlopen_self
13787
13788 # Whether dlopen of statically linked programs is supported.
13789 dlopen_self_static=$enable_dlopen_self_static
13790
13791 # Compiler flag to prevent dynamic linking.
13792 link_static_flag=$lt_lt_prog_compiler_static_CXX
13793
13794 # Compiler flag to turn off builtin functions.
13795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13796
13797 # Compiler flag to allow reflexive dlopens.
13798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13799
13800 # Compiler flag to generate shared objects directly from archives.
13801 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13802
13803 # Compiler flag to generate thread-safe objects.
13804 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13805
13806 # Library versioning type.
13807 version_type=$version_type
13808
13809 # Format of library name prefix.
13810 libname_spec=$lt_libname_spec
13811
13812 # List of archive names.  First name is the real one, the rest are links.
13813 # The last name is the one that the linker finds with -lNAME.
13814 library_names_spec=$lt_library_names_spec
13815
13816 # The coded name of the library, if different from the real name.
13817 soname_spec=$lt_soname_spec
13818
13819 # Commands used to build and install an old-style archive.
13820 RANLIB=$lt_RANLIB
13821 old_archive_cmds=$lt_old_archive_cmds_CXX
13822 old_postinstall_cmds=$lt_old_postinstall_cmds
13823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13824
13825 # Create an old-style archive from a shared archive.
13826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13827
13828 # Create a temporary old-style archive to link instead of a shared archive.
13829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13830
13831 # Commands used to build and install a shared archive.
13832 archive_cmds=$lt_archive_cmds_CXX
13833 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13834 postinstall_cmds=$lt_postinstall_cmds
13835 postuninstall_cmds=$lt_postuninstall_cmds
13836
13837 # Commands used to build a loadable module (assumed same as above if empty)
13838 module_cmds=$lt_module_cmds_CXX
13839 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13840
13841 # Commands to strip libraries.
13842 old_striplib=$lt_old_striplib
13843 striplib=$lt_striplib
13844
13845 # Dependencies to place before the objects being linked to create a
13846 # shared library.
13847 predep_objects=$lt_predep_objects_CXX
13848
13849 # Dependencies to place after the objects being linked to create a
13850 # shared library.
13851 postdep_objects=$lt_postdep_objects_CXX
13852
13853 # Dependencies to place before the objects being linked to create a
13854 # shared library.
13855 predeps=$lt_predeps_CXX
13856
13857 # Dependencies to place after the objects being linked to create a
13858 # shared library.
13859 postdeps=$lt_postdeps_CXX
13860
13861 # The directories searched by this compiler when creating a shared
13862 # library
13863 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13864
13865 # The library search path used internally by the compiler when linking
13866 # a shared library.
13867 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13868
13869 # Method to check whether dependent libraries are shared objects.
13870 deplibs_check_method=$lt_deplibs_check_method
13871
13872 # Command to use when deplibs_check_method == file_magic.
13873 file_magic_cmd=$lt_file_magic_cmd
13874
13875 # Flag that allows shared libraries with undefined symbols to be built.
13876 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13877
13878 # Flag that forces no undefined symbols.
13879 no_undefined_flag=$lt_no_undefined_flag_CXX
13880
13881 # Commands used to finish a libtool library installation in a directory.
13882 finish_cmds=$lt_finish_cmds
13883
13884 # Same as above, but a single script fragment to be evaled but not shown.
13885 finish_eval=$lt_finish_eval
13886
13887 # Take the output of nm and produce a listing of raw symbols and C names.
13888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13889
13890 # Transform the output of nm in a proper C declaration
13891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13892
13893 # Transform the output of nm in a C name address pair
13894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13895
13896 # This is the shared library runtime path variable.
13897 runpath_var=$runpath_var
13898
13899 # This is the shared library path variable.
13900 shlibpath_var=$shlibpath_var
13901
13902 # Is shlibpath searched before the hard-coded library search path?
13903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13904
13905 # How to hardcode a shared library path into an executable.
13906 hardcode_action=$hardcode_action_CXX
13907
13908 # Whether we should hardcode library paths into libraries.
13909 hardcode_into_libs=$hardcode_into_libs
13910
13911 # Flag to hardcode \$libdir into a binary during linking.
13912 # This must work even if \$libdir does not exist.
13913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13914
13915 # If ld is used when linking, flag to hardcode \$libdir into
13916 # a binary during linking. This must work even if \$libdir does
13917 # not exist.
13918 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13919
13920 # Whether we need a single -rpath flag with a separated argument.
13921 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13922
13923 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13924 # resulting binary.
13925 hardcode_direct=$hardcode_direct_CXX
13926
13927 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13928 # resulting binary.
13929 hardcode_minus_L=$hardcode_minus_L_CXX
13930
13931 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13932 # the resulting binary.
13933 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13934
13935 # Set to yes if building a shared library automatically hardcodes DIR into the library
13936 # and all subsequent libraries and executables linked against it.
13937 hardcode_automatic=$hardcode_automatic_CXX
13938
13939 # Variables whose values should be saved in libtool wrapper scripts and
13940 # restored at relink time.
13941 variables_saved_for_relink="$variables_saved_for_relink"
13942
13943 # Whether libtool must link a program against all its dependency libraries.
13944 link_all_deplibs=$link_all_deplibs_CXX
13945
13946 # Compile-time system search path for libraries
13947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13948
13949 # Run-time system search path for libraries
13950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13951
13952 # Fix the shell variable \$srcfile for the compiler.
13953 fix_srcfile_path=$lt_fix_srcfile_path
13954
13955 # Set to yes if exported symbols are required.
13956 always_export_symbols=$always_export_symbols_CXX
13957
13958 # The commands to list exported symbols.
13959 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13960
13961 # The commands to extract the exported symbol list from a shared archive.
13962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13963
13964 # Symbols that should not be listed in the preloaded symbols.
13965 exclude_expsyms=$lt_exclude_expsyms_CXX
13966
13967 # Symbols that must always be exported.
13968 include_expsyms=$lt_include_expsyms_CXX
13969
13970 # ### END LIBTOOL TAG CONFIG: $tagname
13971
13972 __EOF__
13973
13974
13975 else
13976   # If there is no Makefile yet, we rely on a make rule to execute
13977   # `config.status --recheck' to rerun these tests and create the
13978   # libtool script then.
13979   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13980   if test -f "$ltmain_in"; then
13981     test -f Makefile && make "$ltmain"
13982   fi
13983 fi
13984
13985
13986 ac_ext=c
13987 ac_cpp='$CPP $CPPFLAGS'
13988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13991
13992 CC=$lt_save_CC
13993 LDCXX=$LD
13994 LD=$lt_save_LD
13995 GCC=$lt_save_GCC
13996 with_gnu_ldcxx=$with_gnu_ld
13997 with_gnu_ld=$lt_save_with_gnu_ld
13998 lt_cv_path_LDCXX=$lt_cv_path_LD
13999 lt_cv_path_LD=$lt_save_path_LD
14000 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14001 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14002
14003         else
14004           tagname=""
14005         fi
14006         ;;
14007
14008       F77)
14009         if test -n "$F77" && test "X$F77" != "Xno"; then
14010
14011 ac_ext=f
14012 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14013 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14014 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14015
14016
14017 archive_cmds_need_lc_F77=no
14018 allow_undefined_flag_F77=
14019 always_export_symbols_F77=no
14020 archive_expsym_cmds_F77=
14021 export_dynamic_flag_spec_F77=
14022 hardcode_direct_F77=no
14023 hardcode_libdir_flag_spec_F77=
14024 hardcode_libdir_flag_spec_ld_F77=
14025 hardcode_libdir_separator_F77=
14026 hardcode_minus_L_F77=no
14027 hardcode_automatic_F77=no
14028 module_cmds_F77=
14029 module_expsym_cmds_F77=
14030 link_all_deplibs_F77=unknown
14031 old_archive_cmds_F77=$old_archive_cmds
14032 no_undefined_flag_F77=
14033 whole_archive_flag_spec_F77=
14034 enable_shared_with_static_runtimes_F77=no
14035
14036 # Source file extension for f77 test sources.
14037 ac_ext=f
14038
14039 # Object file extension for compiled f77 test sources.
14040 objext=o
14041 objext_F77=$objext
14042
14043 # Code to be used in simple compile tests
14044 lt_simple_compile_test_code="\
14045       subroutine t
14046       return
14047       end
14048 "
14049
14050 # Code to be used in simple link tests
14051 lt_simple_link_test_code="\
14052       program t
14053       end
14054 "
14055
14056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14057
14058 # If no C compiler was specified, use CC.
14059 LTCC=${LTCC-"$CC"}
14060
14061 # If no C compiler flags were specified, use CFLAGS.
14062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14063
14064 # Allow CC to be a program name with arguments.
14065 compiler=$CC
14066
14067
14068 # save warnings/boilerplate of simple test code
14069 ac_outfile=conftest.$ac_objext
14070 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14071 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14072 _lt_compiler_boilerplate=`cat conftest.err`
14073 $rm conftest*
14074
14075 ac_outfile=conftest.$ac_objext
14076 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14077 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14078 _lt_linker_boilerplate=`cat conftest.err`
14079 $rm -r conftest*
14080
14081
14082 # Allow CC to be a program name with arguments.
14083 lt_save_CC="$CC"
14084 CC=${F77-"f77"}
14085 compiler=$CC
14086 compiler_F77=$CC
14087 for cc_temp in $compiler""; do
14088   case $cc_temp in
14089     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14090     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14091     \-*) ;;
14092     *) break;;
14093   esac
14094 done
14095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14096
14097
14098 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14099 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14100 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14101 echo "${ECHO_T}$can_build_shared" >&6; }
14102
14103 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14104 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14105 test "$can_build_shared" = "no" && enable_shared=no
14106
14107 # On AIX, shared libraries and static libraries use the same namespace, and
14108 # are all built from PIC.
14109 case $host_os in
14110 aix3*)
14111   test "$enable_shared" = yes && enable_static=no
14112   if test -n "$RANLIB"; then
14113     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14114     postinstall_cmds='$RANLIB $lib'
14115   fi
14116   ;;
14117 aix[4-9]*)
14118   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14119     test "$enable_shared" = yes && enable_static=no
14120   fi
14121   ;;
14122 esac
14123 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14124 echo "${ECHO_T}$enable_shared" >&6; }
14125
14126 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14127 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14128 # Make sure either enable_shared or enable_static is yes.
14129 test "$enable_shared" = yes || enable_static=yes
14130 { echo "$as_me:$LINENO: result: $enable_static" >&5
14131 echo "${ECHO_T}$enable_static" >&6; }
14132
14133 GCC_F77="$G77"
14134 LD_F77="$LD"
14135
14136 lt_prog_compiler_wl_F77=
14137 lt_prog_compiler_pic_F77=
14138 lt_prog_compiler_static_F77=
14139
14140 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14141 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14142
14143   if test "$GCC" = yes; then
14144     lt_prog_compiler_wl_F77='-Wl,'
14145     lt_prog_compiler_static_F77='-static'
14146
14147     case $host_os in
14148       aix*)
14149       # All AIX code is PIC.
14150       if test "$host_cpu" = ia64; then
14151         # AIX 5 now supports IA64 processor
14152         lt_prog_compiler_static_F77='-Bstatic'
14153       fi
14154       ;;
14155
14156     amigaos*)
14157       # FIXME: we need at least 68020 code to build shared libraries, but
14158       # adding the `-m68020' flag to GCC prevents building anything better,
14159       # like `-m68040'.
14160       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14161       ;;
14162
14163     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14164       # PIC is the default for these OSes.
14165       ;;
14166
14167     mingw* | cygwin* | pw32* | os2*)
14168       # This hack is so that the source file can tell whether it is being
14169       # built for inclusion in a dll (and should export symbols for example).
14170       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14171       # (--disable-auto-import) libraries
14172       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14173       ;;
14174
14175     darwin* | rhapsody*)
14176       # PIC is the default on this platform
14177       # Common symbols not allowed in MH_DYLIB files
14178       lt_prog_compiler_pic_F77='-fno-common'
14179       ;;
14180
14181     interix[3-9]*)
14182       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14183       # Instead, we relocate shared libraries at runtime.
14184       ;;
14185
14186     msdosdjgpp*)
14187       # Just because we use GCC doesn't mean we suddenly get shared libraries
14188       # on systems that don't support them.
14189       lt_prog_compiler_can_build_shared_F77=no
14190       enable_shared=no
14191       ;;
14192
14193     sysv4*MP*)
14194       if test -d /usr/nec; then
14195         lt_prog_compiler_pic_F77=-Kconform_pic
14196       fi
14197       ;;
14198
14199     hpux*)
14200       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14201       # not for PA HP-UX.
14202       case $host_cpu in
14203       hppa*64*|ia64*)
14204         # +Z the default
14205         ;;
14206       *)
14207         lt_prog_compiler_pic_F77='-fPIC'
14208         ;;
14209       esac
14210       ;;
14211
14212     *)
14213       lt_prog_compiler_pic_F77='-fPIC'
14214       ;;
14215     esac
14216   else
14217     # PORTME Check for flag to pass linker flags through the system compiler.
14218     case $host_os in
14219     aix*)
14220       lt_prog_compiler_wl_F77='-Wl,'
14221       if test "$host_cpu" = ia64; then
14222         # AIX 5 now supports IA64 processor
14223         lt_prog_compiler_static_F77='-Bstatic'
14224       else
14225         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14226       fi
14227       ;;
14228       darwin*)
14229         # PIC is the default on this platform
14230         # Common symbols not allowed in MH_DYLIB files
14231        case $cc_basename in
14232          xlc*)
14233          lt_prog_compiler_pic_F77='-qnocommon'
14234          lt_prog_compiler_wl_F77='-Wl,'
14235          ;;
14236        esac
14237        ;;
14238
14239     mingw* | cygwin* | pw32* | os2*)
14240       # This hack is so that the source file can tell whether it is being
14241       # built for inclusion in a dll (and should export symbols for example).
14242       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14243       ;;
14244
14245     hpux9* | hpux10* | hpux11*)
14246       lt_prog_compiler_wl_F77='-Wl,'
14247       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14248       # not for PA HP-UX.
14249       case $host_cpu in
14250       hppa*64*|ia64*)
14251         # +Z the default
14252         ;;
14253       *)
14254         lt_prog_compiler_pic_F77='+Z'
14255         ;;
14256       esac
14257       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14258       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14259       ;;
14260
14261     irix5* | irix6* | nonstopux*)
14262       lt_prog_compiler_wl_F77='-Wl,'
14263       # PIC (with -KPIC) is the default.
14264       lt_prog_compiler_static_F77='-non_shared'
14265       ;;
14266
14267     newsos6)
14268       lt_prog_compiler_pic_F77='-KPIC'
14269       lt_prog_compiler_static_F77='-Bstatic'
14270       ;;
14271
14272     linux* | k*bsd*-gnu)
14273       case $cc_basename in
14274       icc* | ecc*)
14275         lt_prog_compiler_wl_F77='-Wl,'
14276         lt_prog_compiler_pic_F77='-KPIC'
14277         lt_prog_compiler_static_F77='-static'
14278         ;;
14279       pgcc* | pgf77* | pgf90* | pgf95*)
14280         # Portland Group compilers (*not* the Pentium gcc compiler,
14281         # which looks to be a dead project)
14282         lt_prog_compiler_wl_F77='-Wl,'
14283         lt_prog_compiler_pic_F77='-fpic'
14284         lt_prog_compiler_static_F77='-Bstatic'
14285         ;;
14286       ccc*)
14287         lt_prog_compiler_wl_F77='-Wl,'
14288         # All Alpha code is PIC.
14289         lt_prog_compiler_static_F77='-non_shared'
14290         ;;
14291       *)
14292         case `$CC -V 2>&1 | sed 5q` in
14293         *Sun\ C*)
14294           # Sun C 5.9
14295           lt_prog_compiler_pic_F77='-KPIC'
14296           lt_prog_compiler_static_F77='-Bstatic'
14297           lt_prog_compiler_wl_F77='-Wl,'
14298           ;;
14299         *Sun\ F*)
14300           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14301           lt_prog_compiler_pic_F77='-KPIC'
14302           lt_prog_compiler_static_F77='-Bstatic'
14303           lt_prog_compiler_wl_F77=''
14304           ;;
14305         esac
14306         ;;
14307       esac
14308       ;;
14309
14310     osf3* | osf4* | osf5*)
14311       lt_prog_compiler_wl_F77='-Wl,'
14312       # All OSF/1 code is PIC.
14313       lt_prog_compiler_static_F77='-non_shared'
14314       ;;
14315
14316     rdos*)
14317       lt_prog_compiler_static_F77='-non_shared'
14318       ;;
14319
14320     solaris*)
14321       lt_prog_compiler_pic_F77='-KPIC'
14322       lt_prog_compiler_static_F77='-Bstatic'
14323       case $cc_basename in
14324       f77* | f90* | f95*)
14325         lt_prog_compiler_wl_F77='-Qoption ld ';;
14326       *)
14327         lt_prog_compiler_wl_F77='-Wl,';;
14328       esac
14329       ;;
14330
14331     sunos4*)
14332       lt_prog_compiler_wl_F77='-Qoption ld '
14333       lt_prog_compiler_pic_F77='-PIC'
14334       lt_prog_compiler_static_F77='-Bstatic'
14335       ;;
14336
14337     sysv4 | sysv4.2uw2* | sysv4.3*)
14338       lt_prog_compiler_wl_F77='-Wl,'
14339       lt_prog_compiler_pic_F77='-KPIC'
14340       lt_prog_compiler_static_F77='-Bstatic'
14341       ;;
14342
14343     sysv4*MP*)
14344       if test -d /usr/nec ;then
14345         lt_prog_compiler_pic_F77='-Kconform_pic'
14346         lt_prog_compiler_static_F77='-Bstatic'
14347       fi
14348       ;;
14349
14350     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14351       lt_prog_compiler_wl_F77='-Wl,'
14352       lt_prog_compiler_pic_F77='-KPIC'
14353       lt_prog_compiler_static_F77='-Bstatic'
14354       ;;
14355
14356     unicos*)
14357       lt_prog_compiler_wl_F77='-Wl,'
14358       lt_prog_compiler_can_build_shared_F77=no
14359       ;;
14360
14361     uts4*)
14362       lt_prog_compiler_pic_F77='-pic'
14363       lt_prog_compiler_static_F77='-Bstatic'
14364       ;;
14365
14366     *)
14367       lt_prog_compiler_can_build_shared_F77=no
14368       ;;
14369     esac
14370   fi
14371
14372 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14373 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14374
14375 #
14376 # Check to make sure the PIC flag actually works.
14377 #
14378 if test -n "$lt_prog_compiler_pic_F77"; then
14379
14380 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14381 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14382 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14383   echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14385   lt_cv_prog_compiler_pic_works_F77=no
14386   ac_outfile=conftest.$ac_objext
14387    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14388    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14389    # Insert the option either (1) after the last *FLAGS variable, or
14390    # (2) before a word containing "conftest.", or (3) at the end.
14391    # Note that $ac_compile itself does not contain backslashes and begins
14392    # with a dollar sign (not a hyphen), so the echo should work correctly.
14393    # The option is referenced via a variable to avoid confusing sed.
14394    lt_compile=`echo "$ac_compile" | $SED \
14395    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14396    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14397    -e 's:$: $lt_compiler_flag:'`
14398    (eval echo "\"\$as_me:14398: $lt_compile\"" >&5)
14399    (eval "$lt_compile" 2>conftest.err)
14400    ac_status=$?
14401    cat conftest.err >&5
14402    echo "$as_me:14402: \$? = $ac_status" >&5
14403    if (exit $ac_status) && test -s "$ac_outfile"; then
14404      # The compiler can only warn and ignore the option if not recognized
14405      # So say no if there are warnings other than the usual output.
14406      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14407      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14408      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14409        lt_cv_prog_compiler_pic_works_F77=yes
14410      fi
14411    fi
14412    $rm conftest*
14413
14414 fi
14415 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14416 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14417
14418 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14419     case $lt_prog_compiler_pic_F77 in
14420      "" | " "*) ;;
14421      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14422      esac
14423 else
14424     lt_prog_compiler_pic_F77=
14425      lt_prog_compiler_can_build_shared_F77=no
14426 fi
14427
14428 fi
14429 case $host_os in
14430   # For platforms which do not support PIC, -DPIC is meaningless:
14431   *djgpp*)
14432     lt_prog_compiler_pic_F77=
14433     ;;
14434   *)
14435     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14436     ;;
14437 esac
14438
14439 #
14440 # Check to make sure the static flag actually works.
14441 #
14442 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14443 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14444 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14445 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14446   echo $ECHO_N "(cached) $ECHO_C" >&6
14447 else
14448   lt_cv_prog_compiler_static_works_F77=no
14449    save_LDFLAGS="$LDFLAGS"
14450    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14451    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14452    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14453      # The linker can only warn and ignore the option if not recognized
14454      # So say no if there are warnings
14455      if test -s conftest.err; then
14456        # Append any errors to the config.log.
14457        cat conftest.err 1>&5
14458        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14459        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14460        if diff conftest.exp conftest.er2 >/dev/null; then
14461          lt_cv_prog_compiler_static_works_F77=yes
14462        fi
14463      else
14464        lt_cv_prog_compiler_static_works_F77=yes
14465      fi
14466    fi
14467    $rm -r conftest*
14468    LDFLAGS="$save_LDFLAGS"
14469
14470 fi
14471 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14472 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14473
14474 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14475     :
14476 else
14477     lt_prog_compiler_static_F77=
14478 fi
14479
14480
14481 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14482 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14483 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14484   echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486   lt_cv_prog_compiler_c_o_F77=no
14487    $rm -r conftest 2>/dev/null
14488    mkdir conftest
14489    cd conftest
14490    mkdir out
14491    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14492
14493    lt_compiler_flag="-o out/conftest2.$ac_objext"
14494    # Insert the option either (1) after the last *FLAGS variable, or
14495    # (2) before a word containing "conftest.", or (3) at the end.
14496    # Note that $ac_compile itself does not contain backslashes and begins
14497    # with a dollar sign (not a hyphen), so the echo should work correctly.
14498    lt_compile=`echo "$ac_compile" | $SED \
14499    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14500    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14501    -e 's:$: $lt_compiler_flag:'`
14502    (eval echo "\"\$as_me:14502: $lt_compile\"" >&5)
14503    (eval "$lt_compile" 2>out/conftest.err)
14504    ac_status=$?
14505    cat out/conftest.err >&5
14506    echo "$as_me:14506: \$? = $ac_status" >&5
14507    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14508    then
14509      # The compiler can only warn and ignore the option if not recognized
14510      # So say no if there are warnings
14511      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14512      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14513      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14514        lt_cv_prog_compiler_c_o_F77=yes
14515      fi
14516    fi
14517    chmod u+w . 2>&5
14518    $rm conftest*
14519    # SGI C++ compiler will create directory out/ii_files/ for
14520    # template instantiation
14521    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14522    $rm out/* && rmdir out
14523    cd ..
14524    rmdir conftest
14525    $rm conftest*
14526
14527 fi
14528 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14529 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14530
14531
14532 hard_links="nottested"
14533 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14534   # do not overwrite the value of need_locks provided by the user
14535   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14536 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14537   hard_links=yes
14538   $rm conftest*
14539   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14540   touch conftest.a
14541   ln conftest.a conftest.b 2>&5 || hard_links=no
14542   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14543   { echo "$as_me:$LINENO: result: $hard_links" >&5
14544 echo "${ECHO_T}$hard_links" >&6; }
14545   if test "$hard_links" = no; then
14546     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14547 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14548     need_locks=warn
14549   fi
14550 else
14551   need_locks=no
14552 fi
14553
14554 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14555 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14556
14557   runpath_var=
14558   allow_undefined_flag_F77=
14559   enable_shared_with_static_runtimes_F77=no
14560   archive_cmds_F77=
14561   archive_expsym_cmds_F77=
14562   old_archive_From_new_cmds_F77=
14563   old_archive_from_expsyms_cmds_F77=
14564   export_dynamic_flag_spec_F77=
14565   whole_archive_flag_spec_F77=
14566   thread_safe_flag_spec_F77=
14567   hardcode_libdir_flag_spec_F77=
14568   hardcode_libdir_flag_spec_ld_F77=
14569   hardcode_libdir_separator_F77=
14570   hardcode_direct_F77=no
14571   hardcode_minus_L_F77=no
14572   hardcode_shlibpath_var_F77=unsupported
14573   link_all_deplibs_F77=unknown
14574   hardcode_automatic_F77=no
14575   module_cmds_F77=
14576   module_expsym_cmds_F77=
14577   always_export_symbols_F77=no
14578   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14579   # include_expsyms should be a list of space-separated symbols to be *always*
14580   # included in the symbol list
14581   include_expsyms_F77=
14582   # exclude_expsyms can be an extended regexp of symbols to exclude
14583   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14584   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14585   # as well as any symbol that contains `d'.
14586   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14587   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14588   # platforms (ab)use it in PIC code, but their linkers get confused if
14589   # the symbol is explicitly referenced.  Since portable code cannot
14590   # rely on this symbol name, it's probably fine to never include it in
14591   # preloaded symbol tables.
14592   # Exclude shared library initialization/finalization symbols.
14593   extract_expsyms_cmds=
14594   # Just being paranoid about ensuring that cc_basename is set.
14595   for cc_temp in $compiler""; do
14596   case $cc_temp in
14597     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14598     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14599     \-*) ;;
14600     *) break;;
14601   esac
14602 done
14603 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14604
14605   case $host_os in
14606   cygwin* | mingw* | pw32*)
14607     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14608     # When not using gcc, we currently assume that we are using
14609     # Microsoft Visual C++.
14610     if test "$GCC" != yes; then
14611       with_gnu_ld=no
14612     fi
14613     ;;
14614   interix*)
14615     # we just hope/assume this is gcc and not c89 (= MSVC++)
14616     with_gnu_ld=yes
14617     ;;
14618   openbsd*)
14619     with_gnu_ld=no
14620     ;;
14621   esac
14622
14623   ld_shlibs_F77=yes
14624   if test "$with_gnu_ld" = yes; then
14625     # If archive_cmds runs LD, not CC, wlarc should be empty
14626     wlarc='${wl}'
14627
14628     # Set some defaults for GNU ld with shared library support. These
14629     # are reset later if shared libraries are not supported. Putting them
14630     # here allows them to be overridden if necessary.
14631     runpath_var=LD_RUN_PATH
14632     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14633     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14634     # ancient GNU ld didn't support --whole-archive et. al.
14635     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14636         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14637       else
14638         whole_archive_flag_spec_F77=
14639     fi
14640     supports_anon_versioning=no
14641     case `$LD -v 2>/dev/null` in
14642       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14643       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14644       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14645       *\ 2.11.*) ;; # other 2.11 versions
14646       *) supports_anon_versioning=yes ;;
14647     esac
14648
14649     # See if GNU ld supports shared libraries.
14650     case $host_os in
14651     aix[3-9]*)
14652       # On AIX/PPC, the GNU linker is very broken
14653       if test "$host_cpu" != ia64; then
14654         ld_shlibs_F77=no
14655         cat <<EOF 1>&2
14656
14657 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14658 *** to be unable to reliably create shared libraries on AIX.
14659 *** Therefore, libtool is disabling shared libraries support.  If you
14660 *** really care for shared libraries, you may want to modify your PATH
14661 *** so that a non-GNU linker is found, and then restart.
14662
14663 EOF
14664       fi
14665       ;;
14666
14667     amigaos*)
14668       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)'
14669       hardcode_libdir_flag_spec_F77='-L$libdir'
14670       hardcode_minus_L_F77=yes
14671
14672       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14673       # that the semantics of dynamic libraries on AmigaOS, at least up
14674       # to version 4, is to share data among multiple programs linked
14675       # with the same dynamic library.  Since this doesn't match the
14676       # behavior of shared libraries on other platforms, we can't use
14677       # them.
14678       ld_shlibs_F77=no
14679       ;;
14680
14681     beos*)
14682       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14683         allow_undefined_flag_F77=unsupported
14684         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14685         # support --undefined.  This deserves some investigation.  FIXME
14686         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14687       else
14688         ld_shlibs_F77=no
14689       fi
14690       ;;
14691
14692     cygwin* | mingw* | pw32*)
14693       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14694       # as there is no search path for DLLs.
14695       hardcode_libdir_flag_spec_F77='-L$libdir'
14696       allow_undefined_flag_F77=unsupported
14697       always_export_symbols_F77=no
14698       enable_shared_with_static_runtimes_F77=yes
14699       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14700
14701       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14702         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14703         # If the export-symbols file already is a .def file (1st line
14704         # is EXPORTS), use it as is; otherwise, prepend...
14705         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14706           cp $export_symbols $output_objdir/$soname.def;
14707         else
14708           echo EXPORTS > $output_objdir/$soname.def;
14709           cat $export_symbols >> $output_objdir/$soname.def;
14710         fi~
14711         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14712       else
14713         ld_shlibs_F77=no
14714       fi
14715       ;;
14716
14717     interix[3-9]*)
14718       hardcode_direct_F77=no
14719       hardcode_shlibpath_var_F77=no
14720       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14721       export_dynamic_flag_spec_F77='${wl}-E'
14722       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14723       # Instead, shared libraries are loaded at an image base (0x10000000 by
14724       # default) and relocated if they conflict, which is a slow very memory
14725       # consuming and fragmenting process.  To avoid this, we pick a random,
14726       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14727       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14728       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'
14729       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'
14730       ;;
14731
14732     gnu* | linux* | k*bsd*-gnu)
14733       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14734         tmp_addflag=
14735         case $cc_basename,$host_cpu in
14736         pgcc*)                          # Portland Group C compiler
14737           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'
14738           tmp_addflag=' $pic_flag'
14739           ;;
14740         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14741           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'
14742           tmp_addflag=' $pic_flag -Mnomain' ;;
14743         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14744           tmp_addflag=' -i_dynamic' ;;
14745         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14746           tmp_addflag=' -i_dynamic -nofor_main' ;;
14747         ifc* | ifort*)                  # Intel Fortran compiler
14748           tmp_addflag=' -nofor_main' ;;
14749         esac
14750         case `$CC -V 2>&1 | sed 5q` in
14751         *Sun\ C*)                       # Sun C 5.9
14752           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'
14753           tmp_sharedflag='-G' ;;
14754         *Sun\ F*)                       # Sun Fortran 8.3
14755           tmp_sharedflag='-G' ;;
14756         *)
14757           tmp_sharedflag='-shared' ;;
14758         esac
14759         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14760
14761         if test $supports_anon_versioning = yes; then
14762           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14763   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14764   $echo "local: *; };" >> $output_objdir/$libname.ver~
14765           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14766         fi
14767         link_all_deplibs_F77=no
14768       else
14769         ld_shlibs_F77=no
14770       fi
14771       ;;
14772
14773     netbsd* | netbsdelf*-gnu)
14774       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14775         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14776         wlarc=
14777       else
14778         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14779         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14780       fi
14781       ;;
14782
14783     solaris*)
14784       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14785         ld_shlibs_F77=no
14786         cat <<EOF 1>&2
14787
14788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14789 *** create shared libraries on Solaris systems.  Therefore, libtool
14790 *** is disabling shared libraries support.  We urge you to upgrade GNU
14791 *** binutils to release 2.9.1 or newer.  Another option is to modify
14792 *** your PATH or compiler configuration so that the native linker is
14793 *** used, and then restart.
14794
14795 EOF
14796       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14797         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14798         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14799       else
14800         ld_shlibs_F77=no
14801       fi
14802       ;;
14803
14804     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14805       case `$LD -v 2>&1` in
14806         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14807         ld_shlibs_F77=no
14808         cat <<_LT_EOF 1>&2
14809
14810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14811 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14812 *** is disabling shared libraries support.  We urge you to upgrade GNU
14813 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14814 *** your PATH or compiler configuration so that the native linker is
14815 *** used, and then restart.
14816
14817 _LT_EOF
14818         ;;
14819         *)
14820           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14821             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14822             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14823             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14824           else
14825             ld_shlibs_F77=no
14826           fi
14827         ;;
14828       esac
14829       ;;
14830
14831     sunos4*)
14832       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14833       wlarc=
14834       hardcode_direct_F77=yes
14835       hardcode_shlibpath_var_F77=no
14836       ;;
14837
14838     *)
14839       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14840         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14841         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14842       else
14843         ld_shlibs_F77=no
14844       fi
14845       ;;
14846     esac
14847
14848     if test "$ld_shlibs_F77" = no; then
14849       runpath_var=
14850       hardcode_libdir_flag_spec_F77=
14851       export_dynamic_flag_spec_F77=
14852       whole_archive_flag_spec_F77=
14853     fi
14854   else
14855     # PORTME fill in a description of your system's linker (not GNU ld)
14856     case $host_os in
14857     aix3*)
14858       allow_undefined_flag_F77=unsupported
14859       always_export_symbols_F77=yes
14860       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'
14861       # Note: this linker hardcodes the directories in LIBPATH if there
14862       # are no directories specified by -L.
14863       hardcode_minus_L_F77=yes
14864       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14865         # Neither direct hardcoding nor static linking is supported with a
14866         # broken collect2.
14867         hardcode_direct_F77=unsupported
14868       fi
14869       ;;
14870
14871     aix[4-9]*)
14872       if test "$host_cpu" = ia64; then
14873         # On IA64, the linker does run time linking by default, so we don't
14874         # have to do anything special.
14875         aix_use_runtimelinking=no
14876         exp_sym_flag='-Bexport'
14877         no_entry_flag=""
14878       else
14879         # If we're using GNU nm, then we don't want the "-C" option.
14880         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14881         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14882           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'
14883         else
14884           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'
14885         fi
14886         aix_use_runtimelinking=no
14887
14888         # Test if we are trying to use run time linking or normal
14889         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14890         # need to do runtime linking.
14891         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14892           for ld_flag in $LDFLAGS; do
14893           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14894             aix_use_runtimelinking=yes
14895             break
14896           fi
14897           done
14898           ;;
14899         esac
14900
14901         exp_sym_flag='-bexport'
14902         no_entry_flag='-bnoentry'
14903       fi
14904
14905       # When large executables or shared objects are built, AIX ld can
14906       # have problems creating the table of contents.  If linking a library
14907       # or program results in "error TOC overflow" add -mminimal-toc to
14908       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14909       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14910
14911       archive_cmds_F77=''
14912       hardcode_direct_F77=yes
14913       hardcode_libdir_separator_F77=':'
14914       link_all_deplibs_F77=yes
14915
14916       if test "$GCC" = yes; then
14917         case $host_os in aix4.[012]|aix4.[012].*)
14918         # We only want to do this on AIX 4.2 and lower, the check
14919         # below for broken collect2 doesn't work under 4.3+
14920           collect2name=`${CC} -print-prog-name=collect2`
14921           if test -f "$collect2name" && \
14922            strings "$collect2name" | grep resolve_lib_name >/dev/null
14923           then
14924           # We have reworked collect2
14925           :
14926           else
14927           # We have old collect2
14928           hardcode_direct_F77=unsupported
14929           # It fails to find uninstalled libraries when the uninstalled
14930           # path is not listed in the libpath.  Setting hardcode_minus_L
14931           # to unsupported forces relinking
14932           hardcode_minus_L_F77=yes
14933           hardcode_libdir_flag_spec_F77='-L$libdir'
14934           hardcode_libdir_separator_F77=
14935           fi
14936           ;;
14937         esac
14938         shared_flag='-shared'
14939         if test "$aix_use_runtimelinking" = yes; then
14940           shared_flag="$shared_flag "'${wl}-G'
14941         fi
14942       else
14943         # not using gcc
14944         if test "$host_cpu" = ia64; then
14945         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14946         # chokes on -Wl,-G. The following line is correct:
14947           shared_flag='-G'
14948         else
14949           if test "$aix_use_runtimelinking" = yes; then
14950             shared_flag='${wl}-G'
14951           else
14952             shared_flag='${wl}-bM:SRE'
14953           fi
14954         fi
14955       fi
14956
14957       # It seems that -bexpall does not export symbols beginning with
14958       # underscore (_), so it is better to generate a list of symbols to export.
14959       always_export_symbols_F77=yes
14960       if test "$aix_use_runtimelinking" = yes; then
14961         # Warning - without using the other runtime loading flags (-brtl),
14962         # -berok will link without error, but may produce a broken library.
14963         allow_undefined_flag_F77='-berok'
14964        # Determine the default libpath from the value encoded in an empty executable.
14965        cat >conftest.$ac_ext <<_ACEOF
14966       program main
14967
14968       end
14969 _ACEOF
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (ac_try="$ac_link"
14972 case "(($ac_try" in
14973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974   *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977   (eval "$ac_link") 2>conftest.er1
14978   ac_status=$?
14979   grep -v '^ *+' conftest.er1 >conftest.err
14980   rm -f conftest.er1
14981   cat conftest.err >&5
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); } && {
14984          test -z "$ac_f77_werror_flag" ||
14985          test ! -s conftest.err
14986        } && test -s conftest$ac_exeext &&
14987        $as_test_x conftest$ac_exeext; then
14988
14989 lt_aix_libpath_sed='
14990     /Import File Strings/,/^$/ {
14991         /^0/ {
14992             s/^0  *\(.*\)$/\1/
14993             p
14994         }
14995     }'
14996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14997 # Check for a 64-bit object if we didn't find anything.
14998 if test -z "$aix_libpath"; then
14999   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15000 fi
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005
15006 fi
15007
15008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15009       conftest$ac_exeext conftest.$ac_ext
15010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15011
15012        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15013         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"
15014        else
15015         if test "$host_cpu" = ia64; then
15016           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15017           allow_undefined_flag_F77="-z nodefs"
15018           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"
15019         else
15020          # Determine the default libpath from the value encoded in an empty executable.
15021          cat >conftest.$ac_ext <<_ACEOF
15022       program main
15023
15024       end
15025 _ACEOF
15026 rm -f conftest.$ac_objext conftest$ac_exeext
15027 if { (ac_try="$ac_link"
15028 case "(($ac_try" in
15029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030   *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033   (eval "$ac_link") 2>conftest.er1
15034   ac_status=$?
15035   grep -v '^ *+' conftest.er1 >conftest.err
15036   rm -f conftest.er1
15037   cat conftest.err >&5
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } && {
15040          test -z "$ac_f77_werror_flag" ||
15041          test ! -s conftest.err
15042        } && test -s conftest$ac_exeext &&
15043        $as_test_x conftest$ac_exeext; then
15044
15045 lt_aix_libpath_sed='
15046     /Import File Strings/,/^$/ {
15047         /^0/ {
15048             s/^0  *\(.*\)$/\1/
15049             p
15050         }
15051     }'
15052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15053 # Check for a 64-bit object if we didn't find anything.
15054 if test -z "$aix_libpath"; then
15055   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15056 fi
15057 else
15058   echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15060
15061
15062 fi
15063
15064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15065       conftest$ac_exeext conftest.$ac_ext
15066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15067
15068          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15069           # Warning - without using the other run time loading flags,
15070           # -berok will link without error, but may produce a broken library.
15071           no_undefined_flag_F77=' ${wl}-bernotok'
15072           allow_undefined_flag_F77=' ${wl}-berok'
15073           # Exported symbols can be pulled into shared objects from archives
15074           whole_archive_flag_spec_F77='$convenience'
15075           archive_cmds_need_lc_F77=yes
15076           # This is similar to how AIX traditionally builds its shared libraries.
15077           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'
15078         fi
15079       fi
15080       ;;
15081
15082     amigaos*)
15083       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)'
15084       hardcode_libdir_flag_spec_F77='-L$libdir'
15085       hardcode_minus_L_F77=yes
15086       # see comment about different semantics on the GNU ld section
15087       ld_shlibs_F77=no
15088       ;;
15089
15090     bsdi[45]*)
15091       export_dynamic_flag_spec_F77=-rdynamic
15092       ;;
15093
15094     cygwin* | mingw* | pw32*)
15095       # When not using gcc, we currently assume that we are using
15096       # Microsoft Visual C++.
15097       # hardcode_libdir_flag_spec is actually meaningless, as there is
15098       # no search path for DLLs.
15099       hardcode_libdir_flag_spec_F77=' '
15100       allow_undefined_flag_F77=unsupported
15101       # Tell ltmain to make .lib files, not .a files.
15102       libext=lib
15103       # Tell ltmain to make .dll files, not .so files.
15104       shrext_cmds=".dll"
15105       # FIXME: Setting linknames here is a bad hack.
15106       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15107       # The linker will automatically build a .lib file if we build a DLL.
15108       old_archive_From_new_cmds_F77='true'
15109       # FIXME: Should let the user specify the lib program.
15110       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15111       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15112       enable_shared_with_static_runtimes_F77=yes
15113       ;;
15114
15115     darwin* | rhapsody*)
15116       case $host_os in
15117         rhapsody* | darwin1.[012])
15118          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15119          ;;
15120        *) # Darwin 1.3 on
15121          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15122            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15123          else
15124            case ${MACOSX_DEPLOYMENT_TARGET} in
15125              10.[012])
15126                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15127                ;;
15128              10.*)
15129                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15130                ;;
15131            esac
15132          fi
15133          ;;
15134       esac
15135       archive_cmds_need_lc_F77=no
15136       hardcode_direct_F77=no
15137       hardcode_automatic_F77=yes
15138       hardcode_shlibpath_var_F77=unsupported
15139       whole_archive_flag_spec_F77=''
15140       link_all_deplibs_F77=yes
15141     if test "$GCC" = yes ; then
15142         output_verbose_link_cmd='echo'
15143         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}"
15144         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15145         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}"
15146         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}"
15147     else
15148       case $cc_basename in
15149         xlc*)
15150          output_verbose_link_cmd='echo'
15151          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15152          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15153           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15154          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}'
15155           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}'
15156           ;;
15157        *)
15158          ld_shlibs_F77=no
15159           ;;
15160       esac
15161     fi
15162       ;;
15163
15164     dgux*)
15165       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15166       hardcode_libdir_flag_spec_F77='-L$libdir'
15167       hardcode_shlibpath_var_F77=no
15168       ;;
15169
15170     freebsd1*)
15171       ld_shlibs_F77=no
15172       ;;
15173
15174     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15175     # support.  Future versions do this automatically, but an explicit c++rt0.o
15176     # does not break anything, and helps significantly (at the cost of a little
15177     # extra space).
15178     freebsd2.2*)
15179       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15180       hardcode_libdir_flag_spec_F77='-R$libdir'
15181       hardcode_direct_F77=yes
15182       hardcode_shlibpath_var_F77=no
15183       ;;
15184
15185     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15186     freebsd2*)
15187       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15188       hardcode_direct_F77=yes
15189       hardcode_minus_L_F77=yes
15190       hardcode_shlibpath_var_F77=no
15191       ;;
15192
15193     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15194     freebsd* | dragonfly*)
15195       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15196       hardcode_libdir_flag_spec_F77='-R$libdir'
15197       hardcode_direct_F77=yes
15198       hardcode_shlibpath_var_F77=no
15199       ;;
15200
15201     hpux9*)
15202       if test "$GCC" = yes; then
15203         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'
15204       else
15205         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'
15206       fi
15207       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15208       hardcode_libdir_separator_F77=:
15209       hardcode_direct_F77=yes
15210
15211       # hardcode_minus_L: Not really in the search PATH,
15212       # but as the default location of the library.
15213       hardcode_minus_L_F77=yes
15214       export_dynamic_flag_spec_F77='${wl}-E'
15215       ;;
15216
15217     hpux10*)
15218       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15219         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15220       else
15221         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15222       fi
15223       if test "$with_gnu_ld" = no; then
15224         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15225         hardcode_libdir_separator_F77=:
15226
15227         hardcode_direct_F77=yes
15228         export_dynamic_flag_spec_F77='${wl}-E'
15229
15230         # hardcode_minus_L: Not really in the search PATH,
15231         # but as the default location of the library.
15232         hardcode_minus_L_F77=yes
15233       fi
15234       ;;
15235
15236     hpux11*)
15237       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15238         case $host_cpu in
15239         hppa*64*)
15240           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15241           ;;
15242         ia64*)
15243           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15244           ;;
15245         *)
15246           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15247           ;;
15248         esac
15249       else
15250         case $host_cpu in
15251         hppa*64*)
15252           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15253           ;;
15254         ia64*)
15255           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15256           ;;
15257         *)
15258           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15259           ;;
15260         esac
15261       fi
15262       if test "$with_gnu_ld" = no; then
15263         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15264         hardcode_libdir_separator_F77=:
15265
15266         case $host_cpu in
15267         hppa*64*|ia64*)
15268           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15269           hardcode_direct_F77=no
15270           hardcode_shlibpath_var_F77=no
15271           ;;
15272         *)
15273           hardcode_direct_F77=yes
15274           export_dynamic_flag_spec_F77='${wl}-E'
15275
15276           # hardcode_minus_L: Not really in the search PATH,
15277           # but as the default location of the library.
15278           hardcode_minus_L_F77=yes
15279           ;;
15280         esac
15281       fi
15282       ;;
15283
15284     irix5* | irix6* | nonstopux*)
15285       if test "$GCC" = yes; then
15286         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'
15287       else
15288         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'
15289         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15290       fi
15291       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15292       hardcode_libdir_separator_F77=:
15293       link_all_deplibs_F77=yes
15294       ;;
15295
15296     netbsd* | netbsdelf*-gnu)
15297       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15298         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15299       else
15300         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15301       fi
15302       hardcode_libdir_flag_spec_F77='-R$libdir'
15303       hardcode_direct_F77=yes
15304       hardcode_shlibpath_var_F77=no
15305       ;;
15306
15307     newsos6)
15308       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15309       hardcode_direct_F77=yes
15310       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15311       hardcode_libdir_separator_F77=:
15312       hardcode_shlibpath_var_F77=no
15313       ;;
15314
15315     openbsd*)
15316       if test -f /usr/libexec/ld.so; then
15317         hardcode_direct_F77=yes
15318         hardcode_shlibpath_var_F77=no
15319         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15320           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15321           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15322           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15323           export_dynamic_flag_spec_F77='${wl}-E'
15324         else
15325           case $host_os in
15326            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15327              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15328              hardcode_libdir_flag_spec_F77='-R$libdir'
15329              ;;
15330            *)
15331              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15332              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15333              ;;
15334           esac
15335         fi
15336       else
15337         ld_shlibs_F77=no
15338       fi
15339       ;;
15340
15341     os2*)
15342       hardcode_libdir_flag_spec_F77='-L$libdir'
15343       hardcode_minus_L_F77=yes
15344       allow_undefined_flag_F77=unsupported
15345       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'
15346       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15347       ;;
15348
15349     osf3*)
15350       if test "$GCC" = yes; then
15351         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15352         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'
15353       else
15354         allow_undefined_flag_F77=' -expect_unresolved \*'
15355         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'
15356       fi
15357       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15358       hardcode_libdir_separator_F77=:
15359       ;;
15360
15361     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15362       if test "$GCC" = yes; then
15363         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15364         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'
15365         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15366       else
15367         allow_undefined_flag_F77=' -expect_unresolved \*'
15368         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'
15369         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~
15370         $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'
15371
15372         # Both c and cxx compiler support -rpath directly
15373         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15374       fi
15375       hardcode_libdir_separator_F77=:
15376       ;;
15377
15378     solaris*)
15379       no_undefined_flag_F77=' -z text'
15380       if test "$GCC" = yes; then
15381         wlarc='${wl}'
15382         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15383         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15384           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15385       else
15386         wlarc=''
15387         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15389         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15390       fi
15391       hardcode_libdir_flag_spec_F77='-R$libdir'
15392       hardcode_shlibpath_var_F77=no
15393       case $host_os in
15394       solaris2.[0-5] | solaris2.[0-5].*) ;;
15395       *)
15396         # The compiler driver will combine and reorder linker options,
15397         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15398         # but is careful enough not to reorder.
15399         # Supported since Solaris 2.6 (maybe 2.5.1?)
15400         if test "$GCC" = yes; then
15401           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15402         else
15403           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15404         fi
15405         ;;
15406       esac
15407       link_all_deplibs_F77=yes
15408       ;;
15409
15410     sunos4*)
15411       if test "x$host_vendor" = xsequent; then
15412         # Use $CC to link under sequent, because it throws in some extra .o
15413         # files that make .init and .fini sections work.
15414         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15415       else
15416         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15417       fi
15418       hardcode_libdir_flag_spec_F77='-L$libdir'
15419       hardcode_direct_F77=yes
15420       hardcode_minus_L_F77=yes
15421       hardcode_shlibpath_var_F77=no
15422       ;;
15423
15424     sysv4)
15425       case $host_vendor in
15426         sni)
15427           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428           hardcode_direct_F77=yes # is this really true???
15429         ;;
15430         siemens)
15431           ## LD is ld it makes a PLAMLIB
15432           ## CC just makes a GrossModule.
15433           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15434           reload_cmds_F77='$CC -r -o $output$reload_objs'
15435           hardcode_direct_F77=no
15436         ;;
15437         motorola)
15438           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15440         ;;
15441       esac
15442       runpath_var='LD_RUN_PATH'
15443       hardcode_shlibpath_var_F77=no
15444       ;;
15445
15446     sysv4.3*)
15447       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15448       hardcode_shlibpath_var_F77=no
15449       export_dynamic_flag_spec_F77='-Bexport'
15450       ;;
15451
15452     sysv4*MP*)
15453       if test -d /usr/nec; then
15454         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15455         hardcode_shlibpath_var_F77=no
15456         runpath_var=LD_RUN_PATH
15457         hardcode_runpath_var=yes
15458         ld_shlibs_F77=yes
15459       fi
15460       ;;
15461
15462     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15463       no_undefined_flag_F77='${wl}-z,text'
15464       archive_cmds_need_lc_F77=no
15465       hardcode_shlibpath_var_F77=no
15466       runpath_var='LD_RUN_PATH'
15467
15468       if test "$GCC" = yes; then
15469         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15471       else
15472         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15473         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15474       fi
15475       ;;
15476
15477     sysv5* | sco3.2v5* | sco5v6*)
15478       # Note: We can NOT use -z defs as we might desire, because we do not
15479       # link with -lc, and that would cause any symbols used from libc to
15480       # always be unresolved, which means just about no library would
15481       # ever link correctly.  If we're not using GNU ld we use -z text
15482       # though, which does catch some bad symbols but isn't as heavy-handed
15483       # as -z defs.
15484       no_undefined_flag_F77='${wl}-z,text'
15485       allow_undefined_flag_F77='${wl}-z,nodefs'
15486       archive_cmds_need_lc_F77=no
15487       hardcode_shlibpath_var_F77=no
15488       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15489       hardcode_libdir_separator_F77=':'
15490       link_all_deplibs_F77=yes
15491       export_dynamic_flag_spec_F77='${wl}-Bexport'
15492       runpath_var='LD_RUN_PATH'
15493
15494       if test "$GCC" = yes; then
15495         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15497       else
15498         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15499         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15500       fi
15501       ;;
15502
15503     uts4*)
15504       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15505       hardcode_libdir_flag_spec_F77='-L$libdir'
15506       hardcode_shlibpath_var_F77=no
15507       ;;
15508
15509     *)
15510       ld_shlibs_F77=no
15511       ;;
15512     esac
15513   fi
15514
15515 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15516 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15517 test "$ld_shlibs_F77" = no && can_build_shared=no
15518
15519 #
15520 # Do we need to explicitly link libc?
15521 #
15522 case "x$archive_cmds_need_lc_F77" in
15523 x|xyes)
15524   # Assume -lc should be added
15525   archive_cmds_need_lc_F77=yes
15526
15527   if test "$enable_shared" = yes && test "$GCC" = yes; then
15528     case $archive_cmds_F77 in
15529     *'~'*)
15530       # FIXME: we may have to deal with multi-command sequences.
15531       ;;
15532     '$CC '*)
15533       # Test whether the compiler implicitly links with -lc since on some
15534       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15535       # to ld, don't add -lc before -lgcc.
15536       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15537 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15538       $rm conftest*
15539       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15540
15541       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15542   (eval $ac_compile) 2>&5
15543   ac_status=$?
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); } 2>conftest.err; then
15546         soname=conftest
15547         lib=conftest
15548         libobjs=conftest.$ac_objext
15549         deplibs=
15550         wl=$lt_prog_compiler_wl_F77
15551         pic_flag=$lt_prog_compiler_pic_F77
15552         compiler_flags=-v
15553         linker_flags=-v
15554         verstring=
15555         output_objdir=.
15556         libname=conftest
15557         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15558         allow_undefined_flag_F77=
15559         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15560   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); }
15564         then
15565           archive_cmds_need_lc_F77=no
15566         else
15567           archive_cmds_need_lc_F77=yes
15568         fi
15569         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15570       else
15571         cat conftest.err 1>&5
15572       fi
15573       $rm conftest*
15574       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15575 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15576       ;;
15577     esac
15578   fi
15579   ;;
15580 esac
15581
15582 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15583 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15584 library_names_spec=
15585 libname_spec='lib$name'
15586 soname_spec=
15587 shrext_cmds=".so"
15588 postinstall_cmds=
15589 postuninstall_cmds=
15590 finish_cmds=
15591 finish_eval=
15592 shlibpath_var=
15593 shlibpath_overrides_runpath=unknown
15594 version_type=none
15595 dynamic_linker="$host_os ld.so"
15596 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15597
15598 need_lib_prefix=unknown
15599 hardcode_into_libs=no
15600
15601 # when you set need_version to no, make sure it does not cause -set_version
15602 # flags to be left without arguments
15603 need_version=unknown
15604
15605 case $host_os in
15606 aix3*)
15607   version_type=linux
15608   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15609   shlibpath_var=LIBPATH
15610
15611   # AIX 3 has no versioning support, so we append a major version to the name.
15612   soname_spec='${libname}${release}${shared_ext}$major'
15613   ;;
15614
15615 aix[4-9]*)
15616   version_type=linux
15617   need_lib_prefix=no
15618   need_version=no
15619   hardcode_into_libs=yes
15620   if test "$host_cpu" = ia64; then
15621     # AIX 5 supports IA64
15622     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15623     shlibpath_var=LD_LIBRARY_PATH
15624   else
15625     # With GCC up to 2.95.x, collect2 would create an import file
15626     # for dependence libraries.  The import file would start with
15627     # the line `#! .'.  This would cause the generated library to
15628     # depend on `.', always an invalid library.  This was fixed in
15629     # development snapshots of GCC prior to 3.0.
15630     case $host_os in
15631       aix4 | aix4.[01] | aix4.[01].*)
15632       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15633            echo ' yes '
15634            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15635         :
15636       else
15637         can_build_shared=no
15638       fi
15639       ;;
15640     esac
15641     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15642     # soname into executable. Probably we can add versioning support to
15643     # collect2, so additional links can be useful in future.
15644     if test "$aix_use_runtimelinking" = yes; then
15645       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15646       # instead of lib<name>.a to let people know that these are not
15647       # typical AIX shared libraries.
15648       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649     else
15650       # We preserve .a as extension for shared libraries through AIX4.2
15651       # and later when we are not doing run time linking.
15652       library_names_spec='${libname}${release}.a $libname.a'
15653       soname_spec='${libname}${release}${shared_ext}$major'
15654     fi
15655     shlibpath_var=LIBPATH
15656   fi
15657   ;;
15658
15659 amigaos*)
15660   library_names_spec='$libname.ixlibrary $libname.a'
15661   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15662   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'
15663   ;;
15664
15665 beos*)
15666   library_names_spec='${libname}${shared_ext}'
15667   dynamic_linker="$host_os ld.so"
15668   shlibpath_var=LIBRARY_PATH
15669   ;;
15670
15671 bsdi[45]*)
15672   version_type=linux
15673   need_version=no
15674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675   soname_spec='${libname}${release}${shared_ext}$major'
15676   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15677   shlibpath_var=LD_LIBRARY_PATH
15678   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15679   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15680   # the default ld.so.conf also contains /usr/contrib/lib and
15681   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15682   # libtool to hard-code these into programs
15683   ;;
15684
15685 cygwin* | mingw* | pw32*)
15686   version_type=windows
15687   shrext_cmds=".dll"
15688   need_version=no
15689   need_lib_prefix=no
15690
15691   case $GCC,$host_os in
15692   yes,cygwin* | yes,mingw* | yes,pw32*)
15693     library_names_spec='$libname.dll.a'
15694     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15695     postinstall_cmds='base_file=`basename \${file}`~
15696       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15697       dldir=$destdir/`dirname \$dlpath`~
15698       test -d \$dldir || mkdir -p \$dldir~
15699       $install_prog $dir/$dlname \$dldir/$dlname~
15700       chmod a+x \$dldir/$dlname'
15701     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15702       dlpath=$dir/\$dldll~
15703        $rm \$dlpath'
15704     shlibpath_overrides_runpath=yes
15705
15706     case $host_os in
15707     cygwin*)
15708       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15709       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15711       ;;
15712     mingw*)
15713       # MinGW DLLs use traditional 'lib' prefix
15714       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15715       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15716       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15717         # It is most probably a Windows format PATH printed by
15718         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15719         # path with ; separators, and with drive letters. We can handle the
15720         # drive letters (cygwin fileutils understands them), so leave them,
15721         # especially as we might pass files found there to a mingw objdump,
15722         # which wouldn't understand a cygwinified path. Ahh.
15723         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15724       else
15725         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15726       fi
15727       ;;
15728     pw32*)
15729       # pw32 DLLs use 'pw' prefix rather than 'lib'
15730       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15731       ;;
15732     esac
15733     ;;
15734
15735   *)
15736     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15737     ;;
15738   esac
15739   dynamic_linker='Win32 ld.exe'
15740   # FIXME: first we should search . and the directory the executable is in
15741   shlibpath_var=PATH
15742   ;;
15743
15744 darwin* | rhapsody*)
15745   dynamic_linker="$host_os dyld"
15746   version_type=darwin
15747   need_lib_prefix=no
15748   need_version=no
15749   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15750   soname_spec='${libname}${release}${major}$shared_ext'
15751   shlibpath_overrides_runpath=yes
15752   shlibpath_var=DYLD_LIBRARY_PATH
15753   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15754
15755   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15756   ;;
15757
15758 dgux*)
15759   version_type=linux
15760   need_lib_prefix=no
15761   need_version=no
15762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15763   soname_spec='${libname}${release}${shared_ext}$major'
15764   shlibpath_var=LD_LIBRARY_PATH
15765   ;;
15766
15767 freebsd1*)
15768   dynamic_linker=no
15769   ;;
15770
15771 freebsd* | dragonfly*)
15772   # DragonFly does not have aout.  When/if they implement a new
15773   # versioning mechanism, adjust this.
15774   if test -x /usr/bin/objformat; then
15775     objformat=`/usr/bin/objformat`
15776   else
15777     case $host_os in
15778     freebsd[123]*) objformat=aout ;;
15779     *) objformat=elf ;;
15780     esac
15781   fi
15782   version_type=freebsd-$objformat
15783   case $version_type in
15784     freebsd-elf*)
15785       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15786       need_version=no
15787       need_lib_prefix=no
15788       ;;
15789     freebsd-*)
15790       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15791       need_version=yes
15792       ;;
15793   esac
15794   shlibpath_var=LD_LIBRARY_PATH
15795   case $host_os in
15796   freebsd2*)
15797     shlibpath_overrides_runpath=yes
15798     ;;
15799   freebsd3.[01]* | freebsdelf3.[01]*)
15800     shlibpath_overrides_runpath=yes
15801     hardcode_into_libs=yes
15802     ;;
15803   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15804   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15805     shlibpath_overrides_runpath=no
15806     hardcode_into_libs=yes
15807     ;;
15808   *) # from 4.6 on, and DragonFly
15809     shlibpath_overrides_runpath=yes
15810     hardcode_into_libs=yes
15811     ;;
15812   esac
15813   ;;
15814
15815 gnu*)
15816   version_type=linux
15817   need_lib_prefix=no
15818   need_version=no
15819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15820   soname_spec='${libname}${release}${shared_ext}$major'
15821   shlibpath_var=LD_LIBRARY_PATH
15822   hardcode_into_libs=yes
15823   ;;
15824
15825 hpux9* | hpux10* | hpux11*)
15826   # Give a soname corresponding to the major version so that dld.sl refuses to
15827   # link against other versions.
15828   version_type=sunos
15829   need_lib_prefix=no
15830   need_version=no
15831   case $host_cpu in
15832   ia64*)
15833     shrext_cmds='.so'
15834     hardcode_into_libs=yes
15835     dynamic_linker="$host_os dld.so"
15836     shlibpath_var=LD_LIBRARY_PATH
15837     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839     soname_spec='${libname}${release}${shared_ext}$major'
15840     if test "X$HPUX_IA64_MODE" = X32; then
15841       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15842     else
15843       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15844     fi
15845     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15846     ;;
15847    hppa*64*)
15848      shrext_cmds='.sl'
15849      hardcode_into_libs=yes
15850      dynamic_linker="$host_os dld.sl"
15851      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15852      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15853      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854      soname_spec='${libname}${release}${shared_ext}$major'
15855      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15856      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15857      ;;
15858    *)
15859     shrext_cmds='.sl'
15860     dynamic_linker="$host_os dld.sl"
15861     shlibpath_var=SHLIB_PATH
15862     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864     soname_spec='${libname}${release}${shared_ext}$major'
15865     ;;
15866   esac
15867   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15868   postinstall_cmds='chmod 555 $lib'
15869   ;;
15870
15871 interix[3-9]*)
15872   version_type=linux
15873   need_lib_prefix=no
15874   need_version=no
15875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15876   soname_spec='${libname}${release}${shared_ext}$major'
15877   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15878   shlibpath_var=LD_LIBRARY_PATH
15879   shlibpath_overrides_runpath=no
15880   hardcode_into_libs=yes
15881   ;;
15882
15883 irix5* | irix6* | nonstopux*)
15884   case $host_os in
15885     nonstopux*) version_type=nonstopux ;;
15886     *)
15887         if test "$lt_cv_prog_gnu_ld" = yes; then
15888                 version_type=linux
15889         else
15890                 version_type=irix
15891         fi ;;
15892   esac
15893   need_lib_prefix=no
15894   need_version=no
15895   soname_spec='${libname}${release}${shared_ext}$major'
15896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15897   case $host_os in
15898   irix5* | nonstopux*)
15899     libsuff= shlibsuff=
15900     ;;
15901   *)
15902     case $LD in # libtool.m4 will add one of these switches to LD
15903     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15904       libsuff= shlibsuff= libmagic=32-bit;;
15905     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15906       libsuff=32 shlibsuff=N32 libmagic=N32;;
15907     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15908       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15909     *) libsuff= shlibsuff= libmagic=never-match;;
15910     esac
15911     ;;
15912   esac
15913   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15914   shlibpath_overrides_runpath=no
15915   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15916   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15917   hardcode_into_libs=yes
15918   ;;
15919
15920 # No shared lib support for Linux oldld, aout, or coff.
15921 linux*oldld* | linux*aout* | linux*coff*)
15922   dynamic_linker=no
15923   ;;
15924
15925 # This must be Linux ELF.
15926 linux* | k*bsd*-gnu)
15927   version_type=linux
15928   need_lib_prefix=no
15929   need_version=no
15930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15931   soname_spec='${libname}${release}${shared_ext}$major'
15932   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15933   shlibpath_var=LD_LIBRARY_PATH
15934   shlibpath_overrides_runpath=no
15935   # This implies no fast_install, which is unacceptable.
15936   # Some rework will be needed to allow for fast_install
15937   # before this can be enabled.
15938   hardcode_into_libs=yes
15939
15940   # Append ld.so.conf contents to the search path
15941   if test -f /etc/ld.so.conf; then
15942     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' ' '`
15943     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15944   fi
15945
15946   # We used to test for /lib/ld.so.1 and disable shared libraries on
15947   # powerpc, because MkLinux only supported shared libraries with the
15948   # GNU dynamic linker.  Since this was broken with cross compilers,
15949   # most powerpc-linux boxes support dynamic linking these days and
15950   # people can always --disable-shared, the test was removed, and we
15951   # assume the GNU/Linux dynamic linker is in use.
15952   dynamic_linker='GNU/Linux ld.so'
15953   ;;
15954
15955 netbsdelf*-gnu)
15956   version_type=linux
15957   need_lib_prefix=no
15958   need_version=no
15959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15960   soname_spec='${libname}${release}${shared_ext}$major'
15961   shlibpath_var=LD_LIBRARY_PATH
15962   shlibpath_overrides_runpath=no
15963   hardcode_into_libs=yes
15964   dynamic_linker='NetBSD ld.elf_so'
15965   ;;
15966
15967 netbsd*)
15968   version_type=sunos
15969   need_lib_prefix=no
15970   need_version=no
15971   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15973     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15974     dynamic_linker='NetBSD (a.out) ld.so'
15975   else
15976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15977     soname_spec='${libname}${release}${shared_ext}$major'
15978     dynamic_linker='NetBSD ld.elf_so'
15979   fi
15980   shlibpath_var=LD_LIBRARY_PATH
15981   shlibpath_overrides_runpath=yes
15982   hardcode_into_libs=yes
15983   ;;
15984
15985 newsos6)
15986   version_type=linux
15987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988   shlibpath_var=LD_LIBRARY_PATH
15989   shlibpath_overrides_runpath=yes
15990   ;;
15991
15992 nto-qnx*)
15993   version_type=linux
15994   need_lib_prefix=no
15995   need_version=no
15996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15997   soname_spec='${libname}${release}${shared_ext}$major'
15998   shlibpath_var=LD_LIBRARY_PATH
15999   shlibpath_overrides_runpath=yes
16000   ;;
16001
16002 openbsd*)
16003   version_type=sunos
16004   sys_lib_dlsearch_path_spec="/usr/lib"
16005   need_lib_prefix=no
16006   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16007   case $host_os in
16008     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16009     *)                         need_version=no  ;;
16010   esac
16011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16012   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16013   shlibpath_var=LD_LIBRARY_PATH
16014   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16015     case $host_os in
16016       openbsd2.[89] | openbsd2.[89].*)
16017         shlibpath_overrides_runpath=no
16018         ;;
16019       *)
16020         shlibpath_overrides_runpath=yes
16021         ;;
16022       esac
16023   else
16024     shlibpath_overrides_runpath=yes
16025   fi
16026   ;;
16027
16028 os2*)
16029   libname_spec='$name'
16030   shrext_cmds=".dll"
16031   need_lib_prefix=no
16032   library_names_spec='$libname${shared_ext} $libname.a'
16033   dynamic_linker='OS/2 ld.exe'
16034   shlibpath_var=LIBPATH
16035   ;;
16036
16037 osf3* | osf4* | osf5*)
16038   version_type=osf
16039   need_lib_prefix=no
16040   need_version=no
16041   soname_spec='${libname}${release}${shared_ext}$major'
16042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043   shlibpath_var=LD_LIBRARY_PATH
16044   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16045   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16046   ;;
16047
16048 rdos*)
16049   dynamic_linker=no
16050   ;;
16051
16052 solaris*)
16053   version_type=linux
16054   need_lib_prefix=no
16055   need_version=no
16056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16057   soname_spec='${libname}${release}${shared_ext}$major'
16058   shlibpath_var=LD_LIBRARY_PATH
16059   shlibpath_overrides_runpath=yes
16060   hardcode_into_libs=yes
16061   # ldd complains unless libraries are executable
16062   postinstall_cmds='chmod +x $lib'
16063   ;;
16064
16065 sunos4*)
16066   version_type=sunos
16067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16068   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16069   shlibpath_var=LD_LIBRARY_PATH
16070   shlibpath_overrides_runpath=yes
16071   if test "$with_gnu_ld" = yes; then
16072     need_lib_prefix=no
16073   fi
16074   need_version=yes
16075   ;;
16076
16077 sysv4 | sysv4.3*)
16078   version_type=linux
16079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080   soname_spec='${libname}${release}${shared_ext}$major'
16081   shlibpath_var=LD_LIBRARY_PATH
16082   case $host_vendor in
16083     sni)
16084       shlibpath_overrides_runpath=no
16085       need_lib_prefix=no
16086       export_dynamic_flag_spec='${wl}-Blargedynsym'
16087       runpath_var=LD_RUN_PATH
16088       ;;
16089     siemens)
16090       need_lib_prefix=no
16091       ;;
16092     motorola)
16093       need_lib_prefix=no
16094       need_version=no
16095       shlibpath_overrides_runpath=no
16096       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16097       ;;
16098   esac
16099   ;;
16100
16101 sysv4*MP*)
16102   if test -d /usr/nec ;then
16103     version_type=linux
16104     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16105     soname_spec='$libname${shared_ext}.$major'
16106     shlibpath_var=LD_LIBRARY_PATH
16107   fi
16108   ;;
16109
16110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16111   version_type=freebsd-elf
16112   need_lib_prefix=no
16113   need_version=no
16114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16115   soname_spec='${libname}${release}${shared_ext}$major'
16116   shlibpath_var=LD_LIBRARY_PATH
16117   hardcode_into_libs=yes
16118   if test "$with_gnu_ld" = yes; then
16119     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16120     shlibpath_overrides_runpath=no
16121   else
16122     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16123     shlibpath_overrides_runpath=yes
16124     case $host_os in
16125       sco3.2v5*)
16126         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16127         ;;
16128     esac
16129   fi
16130   sys_lib_dlsearch_path_spec='/usr/lib'
16131   ;;
16132
16133 uts4*)
16134   version_type=linux
16135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16136   soname_spec='${libname}${release}${shared_ext}$major'
16137   shlibpath_var=LD_LIBRARY_PATH
16138   ;;
16139
16140 *)
16141   dynamic_linker=no
16142   ;;
16143 esac
16144 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16145 echo "${ECHO_T}$dynamic_linker" >&6; }
16146 test "$dynamic_linker" = no && can_build_shared=no
16147
16148 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16152 fi
16153
16154 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16155 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16156   echo $ECHO_N "(cached) $ECHO_C" >&6
16157 else
16158   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16159 fi
16160
16161 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16162
16163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16164 if test "$GCC" = yes; then
16165   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16166 fi
16167
16168 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16169 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16170 hardcode_action_F77=
16171 if test -n "$hardcode_libdir_flag_spec_F77" || \
16172    test -n "$runpath_var_F77" || \
16173    test "X$hardcode_automatic_F77" = "Xyes" ; then
16174
16175   # We can hardcode non-existant directories.
16176   if test "$hardcode_direct_F77" != no &&
16177      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16178      # have to relink, otherwise we might link with an installed library
16179      # when we should be linking with a yet-to-be-installed one
16180      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16181      test "$hardcode_minus_L_F77" != no; then
16182     # Linking always hardcodes the temporary library directory.
16183     hardcode_action_F77=relink
16184   else
16185     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16186     hardcode_action_F77=immediate
16187   fi
16188 else
16189   # We cannot hardcode anything, or else we can only hardcode existing
16190   # directories.
16191   hardcode_action_F77=unsupported
16192 fi
16193 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16194 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16195
16196 if test "$hardcode_action_F77" = relink; then
16197   # Fast installation is not supported
16198   enable_fast_install=no
16199 elif test "$shlibpath_overrides_runpath" = yes ||
16200      test "$enable_shared" = no; then
16201   # Fast installation is not necessary
16202   enable_fast_install=needless
16203 fi
16204
16205
16206 # The else clause should only fire when bootstrapping the
16207 # libtool distribution, otherwise you forgot to ship ltmain.sh
16208 # with your package, and you will get complaints that there are
16209 # no rules to generate ltmain.sh.
16210 if test -f "$ltmain"; then
16211   # See if we are running on zsh, and set the options which allow our commands through
16212   # without removal of \ escapes.
16213   if test -n "${ZSH_VERSION+set}" ; then
16214     setopt NO_GLOB_SUBST
16215   fi
16216   # Now quote all the things that may contain metacharacters while being
16217   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16218   # variables and quote the copies for generation of the libtool script.
16219   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16220     SED SHELL STRIP \
16221     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16222     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16223     deplibs_check_method reload_flag reload_cmds need_locks \
16224     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16225     lt_cv_sys_global_symbol_to_c_name_address \
16226     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16227     old_postinstall_cmds old_postuninstall_cmds \
16228     compiler_F77 \
16229     CC_F77 \
16230     LD_F77 \
16231     lt_prog_compiler_wl_F77 \
16232     lt_prog_compiler_pic_F77 \
16233     lt_prog_compiler_static_F77 \
16234     lt_prog_compiler_no_builtin_flag_F77 \
16235     export_dynamic_flag_spec_F77 \
16236     thread_safe_flag_spec_F77 \
16237     whole_archive_flag_spec_F77 \
16238     enable_shared_with_static_runtimes_F77 \
16239     old_archive_cmds_F77 \
16240     old_archive_from_new_cmds_F77 \
16241     predep_objects_F77 \
16242     postdep_objects_F77 \
16243     predeps_F77 \
16244     postdeps_F77 \
16245     compiler_lib_search_path_F77 \
16246     compiler_lib_search_dirs_F77 \
16247     archive_cmds_F77 \
16248     archive_expsym_cmds_F77 \
16249     postinstall_cmds_F77 \
16250     postuninstall_cmds_F77 \
16251     old_archive_from_expsyms_cmds_F77 \
16252     allow_undefined_flag_F77 \
16253     no_undefined_flag_F77 \
16254     export_symbols_cmds_F77 \
16255     hardcode_libdir_flag_spec_F77 \
16256     hardcode_libdir_flag_spec_ld_F77 \
16257     hardcode_libdir_separator_F77 \
16258     hardcode_automatic_F77 \
16259     module_cmds_F77 \
16260     module_expsym_cmds_F77 \
16261     lt_cv_prog_compiler_c_o_F77 \
16262     fix_srcfile_path_F77 \
16263     exclude_expsyms_F77 \
16264     include_expsyms_F77; do
16265
16266     case $var in
16267     old_archive_cmds_F77 | \
16268     old_archive_from_new_cmds_F77 | \
16269     archive_cmds_F77 | \
16270     archive_expsym_cmds_F77 | \
16271     module_cmds_F77 | \
16272     module_expsym_cmds_F77 | \
16273     old_archive_from_expsyms_cmds_F77 | \
16274     export_symbols_cmds_F77 | \
16275     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16276     postinstall_cmds | postuninstall_cmds | \
16277     old_postinstall_cmds | old_postuninstall_cmds | \
16278     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16279       # Double-quote double-evaled strings.
16280       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16281       ;;
16282     *)
16283       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16284       ;;
16285     esac
16286   done
16287
16288   case $lt_echo in
16289   *'\$0 --fallback-echo"')
16290     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16291     ;;
16292   esac
16293
16294 cfgfile="$ofile"
16295
16296   cat <<__EOF__ >> "$cfgfile"
16297 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16298
16299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16300
16301 # Shell to use when invoking shell scripts.
16302 SHELL=$lt_SHELL
16303
16304 # Whether or not to build shared libraries.
16305 build_libtool_libs=$enable_shared
16306
16307 # Whether or not to build static libraries.
16308 build_old_libs=$enable_static
16309
16310 # Whether or not to add -lc for building shared libraries.
16311 build_libtool_need_lc=$archive_cmds_need_lc_F77
16312
16313 # Whether or not to disallow shared libs when runtime libs are static
16314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16315
16316 # Whether or not to optimize for fast installation.
16317 fast_install=$enable_fast_install
16318
16319 # The host system.
16320 host_alias=$host_alias
16321 host=$host
16322 host_os=$host_os
16323
16324 # The build system.
16325 build_alias=$build_alias
16326 build=$build
16327 build_os=$build_os
16328
16329 # An echo program that does not interpret backslashes.
16330 echo=$lt_echo
16331
16332 # The archiver.
16333 AR=$lt_AR
16334 AR_FLAGS=$lt_AR_FLAGS
16335
16336 # A C compiler.
16337 LTCC=$lt_LTCC
16338
16339 # LTCC compiler flags.
16340 LTCFLAGS=$lt_LTCFLAGS
16341
16342 # A language-specific compiler.
16343 CC=$lt_compiler_F77
16344
16345 # Is the compiler the GNU C compiler?
16346 with_gcc=$GCC_F77
16347
16348 # An ERE matcher.
16349 EGREP=$lt_EGREP
16350
16351 # The linker used to build libraries.
16352 LD=$lt_LD_F77
16353
16354 # Whether we need hard or soft links.
16355 LN_S=$lt_LN_S
16356
16357 # A BSD-compatible nm program.
16358 NM=$lt_NM
16359
16360 # A symbol stripping program
16361 STRIP=$lt_STRIP
16362
16363 # Used to examine libraries when file_magic_cmd begins "file"
16364 MAGIC_CMD=$MAGIC_CMD
16365
16366 # Used on cygwin: DLL creation program.
16367 DLLTOOL="$DLLTOOL"
16368
16369 # Used on cygwin: object dumper.
16370 OBJDUMP="$OBJDUMP"
16371
16372 # Used on cygwin: assembler.
16373 AS="$AS"
16374
16375 # The name of the directory that contains temporary libtool files.
16376 objdir=$objdir
16377
16378 # How to create reloadable object files.
16379 reload_flag=$lt_reload_flag
16380 reload_cmds=$lt_reload_cmds
16381
16382 # How to pass a linker flag through the compiler.
16383 wl=$lt_lt_prog_compiler_wl_F77
16384
16385 # Object file suffix (normally "o").
16386 objext="$ac_objext"
16387
16388 # Old archive suffix (normally "a").
16389 libext="$libext"
16390
16391 # Shared library suffix (normally ".so").
16392 shrext_cmds='$shrext_cmds'
16393
16394 # Executable file suffix (normally "").
16395 exeext="$exeext"
16396
16397 # Additional compiler flags for building library objects.
16398 pic_flag=$lt_lt_prog_compiler_pic_F77
16399 pic_mode=$pic_mode
16400
16401 # What is the maximum length of a command?
16402 max_cmd_len=$lt_cv_sys_max_cmd_len
16403
16404 # Does compiler simultaneously support -c and -o options?
16405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16406
16407 # Must we lock files when doing compilation?
16408 need_locks=$lt_need_locks
16409
16410 # Do we need the lib prefix for modules?
16411 need_lib_prefix=$need_lib_prefix
16412
16413 # Do we need a version for libraries?
16414 need_version=$need_version
16415
16416 # Whether dlopen is supported.
16417 dlopen_support=$enable_dlopen
16418
16419 # Whether dlopen of programs is supported.
16420 dlopen_self=$enable_dlopen_self
16421
16422 # Whether dlopen of statically linked programs is supported.
16423 dlopen_self_static=$enable_dlopen_self_static
16424
16425 # Compiler flag to prevent dynamic linking.
16426 link_static_flag=$lt_lt_prog_compiler_static_F77
16427
16428 # Compiler flag to turn off builtin functions.
16429 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16430
16431 # Compiler flag to allow reflexive dlopens.
16432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16433
16434 # Compiler flag to generate shared objects directly from archives.
16435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16436
16437 # Compiler flag to generate thread-safe objects.
16438 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16439
16440 # Library versioning type.
16441 version_type=$version_type
16442
16443 # Format of library name prefix.
16444 libname_spec=$lt_libname_spec
16445
16446 # List of archive names.  First name is the real one, the rest are links.
16447 # The last name is the one that the linker finds with -lNAME.
16448 library_names_spec=$lt_library_names_spec
16449
16450 # The coded name of the library, if different from the real name.
16451 soname_spec=$lt_soname_spec
16452
16453 # Commands used to build and install an old-style archive.
16454 RANLIB=$lt_RANLIB
16455 old_archive_cmds=$lt_old_archive_cmds_F77
16456 old_postinstall_cmds=$lt_old_postinstall_cmds
16457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16458
16459 # Create an old-style archive from a shared archive.
16460 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16461
16462 # Create a temporary old-style archive to link instead of a shared archive.
16463 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16464
16465 # Commands used to build and install a shared archive.
16466 archive_cmds=$lt_archive_cmds_F77
16467 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16468 postinstall_cmds=$lt_postinstall_cmds
16469 postuninstall_cmds=$lt_postuninstall_cmds
16470
16471 # Commands used to build a loadable module (assumed same as above if empty)
16472 module_cmds=$lt_module_cmds_F77
16473 module_expsym_cmds=$lt_module_expsym_cmds_F77
16474
16475 # Commands to strip libraries.
16476 old_striplib=$lt_old_striplib
16477 striplib=$lt_striplib
16478
16479 # Dependencies to place before the objects being linked to create a
16480 # shared library.
16481 predep_objects=$lt_predep_objects_F77
16482
16483 # Dependencies to place after the objects being linked to create a
16484 # shared library.
16485 postdep_objects=$lt_postdep_objects_F77
16486
16487 # Dependencies to place before the objects being linked to create a
16488 # shared library.
16489 predeps=$lt_predeps_F77
16490
16491 # Dependencies to place after the objects being linked to create a
16492 # shared library.
16493 postdeps=$lt_postdeps_F77
16494
16495 # The directories searched by this compiler when creating a shared
16496 # library
16497 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16498
16499 # The library search path used internally by the compiler when linking
16500 # a shared library.
16501 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16502
16503 # Method to check whether dependent libraries are shared objects.
16504 deplibs_check_method=$lt_deplibs_check_method
16505
16506 # Command to use when deplibs_check_method == file_magic.
16507 file_magic_cmd=$lt_file_magic_cmd
16508
16509 # Flag that allows shared libraries with undefined symbols to be built.
16510 allow_undefined_flag=$lt_allow_undefined_flag_F77
16511
16512 # Flag that forces no undefined symbols.
16513 no_undefined_flag=$lt_no_undefined_flag_F77
16514
16515 # Commands used to finish a libtool library installation in a directory.
16516 finish_cmds=$lt_finish_cmds
16517
16518 # Same as above, but a single script fragment to be evaled but not shown.
16519 finish_eval=$lt_finish_eval
16520
16521 # Take the output of nm and produce a listing of raw symbols and C names.
16522 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16523
16524 # Transform the output of nm in a proper C declaration
16525 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16526
16527 # Transform the output of nm in a C name address pair
16528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16529
16530 # This is the shared library runtime path variable.
16531 runpath_var=$runpath_var
16532
16533 # This is the shared library path variable.
16534 shlibpath_var=$shlibpath_var
16535
16536 # Is shlibpath searched before the hard-coded library search path?
16537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16538
16539 # How to hardcode a shared library path into an executable.
16540 hardcode_action=$hardcode_action_F77
16541
16542 # Whether we should hardcode library paths into libraries.
16543 hardcode_into_libs=$hardcode_into_libs
16544
16545 # Flag to hardcode \$libdir into a binary during linking.
16546 # This must work even if \$libdir does not exist.
16547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16548
16549 # If ld is used when linking, flag to hardcode \$libdir into
16550 # a binary during linking. This must work even if \$libdir does
16551 # not exist.
16552 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16553
16554 # Whether we need a single -rpath flag with a separated argument.
16555 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16556
16557 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16558 # resulting binary.
16559 hardcode_direct=$hardcode_direct_F77
16560
16561 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16562 # resulting binary.
16563 hardcode_minus_L=$hardcode_minus_L_F77
16564
16565 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16566 # the resulting binary.
16567 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16568
16569 # Set to yes if building a shared library automatically hardcodes DIR into the library
16570 # and all subsequent libraries and executables linked against it.
16571 hardcode_automatic=$hardcode_automatic_F77
16572
16573 # Variables whose values should be saved in libtool wrapper scripts and
16574 # restored at relink time.
16575 variables_saved_for_relink="$variables_saved_for_relink"
16576
16577 # Whether libtool must link a program against all its dependency libraries.
16578 link_all_deplibs=$link_all_deplibs_F77
16579
16580 # Compile-time system search path for libraries
16581 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16582
16583 # Run-time system search path for libraries
16584 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16585
16586 # Fix the shell variable \$srcfile for the compiler.
16587 fix_srcfile_path=$lt_fix_srcfile_path
16588
16589 # Set to yes if exported symbols are required.
16590 always_export_symbols=$always_export_symbols_F77
16591
16592 # The commands to list exported symbols.
16593 export_symbols_cmds=$lt_export_symbols_cmds_F77
16594
16595 # The commands to extract the exported symbol list from a shared archive.
16596 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16597
16598 # Symbols that should not be listed in the preloaded symbols.
16599 exclude_expsyms=$lt_exclude_expsyms_F77
16600
16601 # Symbols that must always be exported.
16602 include_expsyms=$lt_include_expsyms_F77
16603
16604 # ### END LIBTOOL TAG CONFIG: $tagname
16605
16606 __EOF__
16607
16608
16609 else
16610   # If there is no Makefile yet, we rely on a make rule to execute
16611   # `config.status --recheck' to rerun these tests and create the
16612   # libtool script then.
16613   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16614   if test -f "$ltmain_in"; then
16615     test -f Makefile && make "$ltmain"
16616   fi
16617 fi
16618
16619
16620 ac_ext=c
16621 ac_cpp='$CPP $CPPFLAGS'
16622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16625
16626 CC="$lt_save_CC"
16627
16628         else
16629           tagname=""
16630         fi
16631         ;;
16632
16633       GCJ)
16634         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16635
16636
16637 # Source file extension for Java test sources.
16638 ac_ext=java
16639
16640 # Object file extension for compiled Java test sources.
16641 objext=o
16642 objext_GCJ=$objext
16643
16644 # Code to be used in simple compile tests
16645 lt_simple_compile_test_code="class foo {}"
16646
16647 # Code to be used in simple link tests
16648 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16649
16650 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16651
16652 # If no C compiler was specified, use CC.
16653 LTCC=${LTCC-"$CC"}
16654
16655 # If no C compiler flags were specified, use CFLAGS.
16656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16657
16658 # Allow CC to be a program name with arguments.
16659 compiler=$CC
16660
16661
16662 # save warnings/boilerplate of simple test code
16663 ac_outfile=conftest.$ac_objext
16664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16666 _lt_compiler_boilerplate=`cat conftest.err`
16667 $rm conftest*
16668
16669 ac_outfile=conftest.$ac_objext
16670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16672 _lt_linker_boilerplate=`cat conftest.err`
16673 $rm -r conftest*
16674
16675
16676 # Allow CC to be a program name with arguments.
16677 lt_save_CC="$CC"
16678 CC=${GCJ-"gcj"}
16679 compiler=$CC
16680 compiler_GCJ=$CC
16681 for cc_temp in $compiler""; do
16682   case $cc_temp in
16683     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16684     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16685     \-*) ;;
16686     *) break;;
16687   esac
16688 done
16689 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16690
16691
16692 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16693 archive_cmds_need_lc_GCJ=no
16694
16695 old_archive_cmds_GCJ=$old_archive_cmds
16696
16697
16698 lt_prog_compiler_no_builtin_flag_GCJ=
16699
16700 if test "$GCC" = yes; then
16701   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16702
16703
16704 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16705 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16706 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16709   lt_cv_prog_compiler_rtti_exceptions=no
16710   ac_outfile=conftest.$ac_objext
16711    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16712    lt_compiler_flag="-fno-rtti -fno-exceptions"
16713    # Insert the option either (1) after the last *FLAGS variable, or
16714    # (2) before a word containing "conftest.", or (3) at the end.
16715    # Note that $ac_compile itself does not contain backslashes and begins
16716    # with a dollar sign (not a hyphen), so the echo should work correctly.
16717    # The option is referenced via a variable to avoid confusing sed.
16718    lt_compile=`echo "$ac_compile" | $SED \
16719    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16720    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16721    -e 's:$: $lt_compiler_flag:'`
16722    (eval echo "\"\$as_me:16722: $lt_compile\"" >&5)
16723    (eval "$lt_compile" 2>conftest.err)
16724    ac_status=$?
16725    cat conftest.err >&5
16726    echo "$as_me:16726: \$? = $ac_status" >&5
16727    if (exit $ac_status) && test -s "$ac_outfile"; then
16728      # The compiler can only warn and ignore the option if not recognized
16729      # So say no if there are warnings other than the usual output.
16730      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16731      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16732      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16733        lt_cv_prog_compiler_rtti_exceptions=yes
16734      fi
16735    fi
16736    $rm conftest*
16737
16738 fi
16739 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16740 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16741
16742 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16743     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16744 else
16745     :
16746 fi
16747
16748 fi
16749
16750 lt_prog_compiler_wl_GCJ=
16751 lt_prog_compiler_pic_GCJ=
16752 lt_prog_compiler_static_GCJ=
16753
16754 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16755 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16756
16757   if test "$GCC" = yes; then
16758     lt_prog_compiler_wl_GCJ='-Wl,'
16759     lt_prog_compiler_static_GCJ='-static'
16760
16761     case $host_os in
16762       aix*)
16763       # All AIX code is PIC.
16764       if test "$host_cpu" = ia64; then
16765         # AIX 5 now supports IA64 processor
16766         lt_prog_compiler_static_GCJ='-Bstatic'
16767       fi
16768       ;;
16769
16770     amigaos*)
16771       # FIXME: we need at least 68020 code to build shared libraries, but
16772       # adding the `-m68020' flag to GCC prevents building anything better,
16773       # like `-m68040'.
16774       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16775       ;;
16776
16777     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16778       # PIC is the default for these OSes.
16779       ;;
16780
16781     mingw* | cygwin* | pw32* | os2*)
16782       # This hack is so that the source file can tell whether it is being
16783       # built for inclusion in a dll (and should export symbols for example).
16784       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16785       # (--disable-auto-import) libraries
16786
16787       ;;
16788
16789     darwin* | rhapsody*)
16790       # PIC is the default on this platform
16791       # Common symbols not allowed in MH_DYLIB files
16792       lt_prog_compiler_pic_GCJ='-fno-common'
16793       ;;
16794
16795     interix[3-9]*)
16796       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16797       # Instead, we relocate shared libraries at runtime.
16798       ;;
16799
16800     msdosdjgpp*)
16801       # Just because we use GCC doesn't mean we suddenly get shared libraries
16802       # on systems that don't support them.
16803       lt_prog_compiler_can_build_shared_GCJ=no
16804       enable_shared=no
16805       ;;
16806
16807     sysv4*MP*)
16808       if test -d /usr/nec; then
16809         lt_prog_compiler_pic_GCJ=-Kconform_pic
16810       fi
16811       ;;
16812
16813     hpux*)
16814       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16815       # not for PA HP-UX.
16816       case $host_cpu in
16817       hppa*64*|ia64*)
16818         # +Z the default
16819         ;;
16820       *)
16821         lt_prog_compiler_pic_GCJ='-fPIC'
16822         ;;
16823       esac
16824       ;;
16825
16826     *)
16827       lt_prog_compiler_pic_GCJ='-fPIC'
16828       ;;
16829     esac
16830   else
16831     # PORTME Check for flag to pass linker flags through the system compiler.
16832     case $host_os in
16833     aix*)
16834       lt_prog_compiler_wl_GCJ='-Wl,'
16835       if test "$host_cpu" = ia64; then
16836         # AIX 5 now supports IA64 processor
16837         lt_prog_compiler_static_GCJ='-Bstatic'
16838       else
16839         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16840       fi
16841       ;;
16842       darwin*)
16843         # PIC is the default on this platform
16844         # Common symbols not allowed in MH_DYLIB files
16845        case $cc_basename in
16846          xlc*)
16847          lt_prog_compiler_pic_GCJ='-qnocommon'
16848          lt_prog_compiler_wl_GCJ='-Wl,'
16849          ;;
16850        esac
16851        ;;
16852
16853     mingw* | cygwin* | pw32* | os2*)
16854       # This hack is so that the source file can tell whether it is being
16855       # built for inclusion in a dll (and should export symbols for example).
16856
16857       ;;
16858
16859     hpux9* | hpux10* | hpux11*)
16860       lt_prog_compiler_wl_GCJ='-Wl,'
16861       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16862       # not for PA HP-UX.
16863       case $host_cpu in
16864       hppa*64*|ia64*)
16865         # +Z the default
16866         ;;
16867       *)
16868         lt_prog_compiler_pic_GCJ='+Z'
16869         ;;
16870       esac
16871       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16872       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16873       ;;
16874
16875     irix5* | irix6* | nonstopux*)
16876       lt_prog_compiler_wl_GCJ='-Wl,'
16877       # PIC (with -KPIC) is the default.
16878       lt_prog_compiler_static_GCJ='-non_shared'
16879       ;;
16880
16881     newsos6)
16882       lt_prog_compiler_pic_GCJ='-KPIC'
16883       lt_prog_compiler_static_GCJ='-Bstatic'
16884       ;;
16885
16886     linux* | k*bsd*-gnu)
16887       case $cc_basename in
16888       icc* | ecc*)
16889         lt_prog_compiler_wl_GCJ='-Wl,'
16890         lt_prog_compiler_pic_GCJ='-KPIC'
16891         lt_prog_compiler_static_GCJ='-static'
16892         ;;
16893       pgcc* | pgf77* | pgf90* | pgf95*)
16894         # Portland Group compilers (*not* the Pentium gcc compiler,
16895         # which looks to be a dead project)
16896         lt_prog_compiler_wl_GCJ='-Wl,'
16897         lt_prog_compiler_pic_GCJ='-fpic'
16898         lt_prog_compiler_static_GCJ='-Bstatic'
16899         ;;
16900       ccc*)
16901         lt_prog_compiler_wl_GCJ='-Wl,'
16902         # All Alpha code is PIC.
16903         lt_prog_compiler_static_GCJ='-non_shared'
16904         ;;
16905       *)
16906         case `$CC -V 2>&1 | sed 5q` in
16907         *Sun\ C*)
16908           # Sun C 5.9
16909           lt_prog_compiler_pic_GCJ='-KPIC'
16910           lt_prog_compiler_static_GCJ='-Bstatic'
16911           lt_prog_compiler_wl_GCJ='-Wl,'
16912           ;;
16913         *Sun\ F*)
16914           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16915           lt_prog_compiler_pic_GCJ='-KPIC'
16916           lt_prog_compiler_static_GCJ='-Bstatic'
16917           lt_prog_compiler_wl_GCJ=''
16918           ;;
16919         esac
16920         ;;
16921       esac
16922       ;;
16923
16924     osf3* | osf4* | osf5*)
16925       lt_prog_compiler_wl_GCJ='-Wl,'
16926       # All OSF/1 code is PIC.
16927       lt_prog_compiler_static_GCJ='-non_shared'
16928       ;;
16929
16930     rdos*)
16931       lt_prog_compiler_static_GCJ='-non_shared'
16932       ;;
16933
16934     solaris*)
16935       lt_prog_compiler_pic_GCJ='-KPIC'
16936       lt_prog_compiler_static_GCJ='-Bstatic'
16937       case $cc_basename in
16938       f77* | f90* | f95*)
16939         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16940       *)
16941         lt_prog_compiler_wl_GCJ='-Wl,';;
16942       esac
16943       ;;
16944
16945     sunos4*)
16946       lt_prog_compiler_wl_GCJ='-Qoption ld '
16947       lt_prog_compiler_pic_GCJ='-PIC'
16948       lt_prog_compiler_static_GCJ='-Bstatic'
16949       ;;
16950
16951     sysv4 | sysv4.2uw2* | sysv4.3*)
16952       lt_prog_compiler_wl_GCJ='-Wl,'
16953       lt_prog_compiler_pic_GCJ='-KPIC'
16954       lt_prog_compiler_static_GCJ='-Bstatic'
16955       ;;
16956
16957     sysv4*MP*)
16958       if test -d /usr/nec ;then
16959         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16960         lt_prog_compiler_static_GCJ='-Bstatic'
16961       fi
16962       ;;
16963
16964     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16965       lt_prog_compiler_wl_GCJ='-Wl,'
16966       lt_prog_compiler_pic_GCJ='-KPIC'
16967       lt_prog_compiler_static_GCJ='-Bstatic'
16968       ;;
16969
16970     unicos*)
16971       lt_prog_compiler_wl_GCJ='-Wl,'
16972       lt_prog_compiler_can_build_shared_GCJ=no
16973       ;;
16974
16975     uts4*)
16976       lt_prog_compiler_pic_GCJ='-pic'
16977       lt_prog_compiler_static_GCJ='-Bstatic'
16978       ;;
16979
16980     *)
16981       lt_prog_compiler_can_build_shared_GCJ=no
16982       ;;
16983     esac
16984   fi
16985
16986 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16987 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16988
16989 #
16990 # Check to make sure the PIC flag actually works.
16991 #
16992 if test -n "$lt_prog_compiler_pic_GCJ"; then
16993
16994 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16995 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16996 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16997   echo $ECHO_N "(cached) $ECHO_C" >&6
16998 else
16999   lt_cv_prog_compiler_pic_works_GCJ=no
17000   ac_outfile=conftest.$ac_objext
17001    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17002    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17003    # Insert the option either (1) after the last *FLAGS variable, or
17004    # (2) before a word containing "conftest.", or (3) at the end.
17005    # Note that $ac_compile itself does not contain backslashes and begins
17006    # with a dollar sign (not a hyphen), so the echo should work correctly.
17007    # The option is referenced via a variable to avoid confusing sed.
17008    lt_compile=`echo "$ac_compile" | $SED \
17009    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17011    -e 's:$: $lt_compiler_flag:'`
17012    (eval echo "\"\$as_me:17012: $lt_compile\"" >&5)
17013    (eval "$lt_compile" 2>conftest.err)
17014    ac_status=$?
17015    cat conftest.err >&5
17016    echo "$as_me:17016: \$? = $ac_status" >&5
17017    if (exit $ac_status) && test -s "$ac_outfile"; then
17018      # The compiler can only warn and ignore the option if not recognized
17019      # So say no if there are warnings other than the usual output.
17020      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17021      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17022      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17023        lt_cv_prog_compiler_pic_works_GCJ=yes
17024      fi
17025    fi
17026    $rm conftest*
17027
17028 fi
17029 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17030 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17031
17032 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17033     case $lt_prog_compiler_pic_GCJ in
17034      "" | " "*) ;;
17035      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17036      esac
17037 else
17038     lt_prog_compiler_pic_GCJ=
17039      lt_prog_compiler_can_build_shared_GCJ=no
17040 fi
17041
17042 fi
17043 case $host_os in
17044   # For platforms which do not support PIC, -DPIC is meaningless:
17045   *djgpp*)
17046     lt_prog_compiler_pic_GCJ=
17047     ;;
17048   *)
17049     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17050     ;;
17051 esac
17052
17053 #
17054 # Check to make sure the static flag actually works.
17055 #
17056 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17057 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17058 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17059 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17060   echo $ECHO_N "(cached) $ECHO_C" >&6
17061 else
17062   lt_cv_prog_compiler_static_works_GCJ=no
17063    save_LDFLAGS="$LDFLAGS"
17064    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17065    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17066    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17067      # The linker can only warn and ignore the option if not recognized
17068      # So say no if there are warnings
17069      if test -s conftest.err; then
17070        # Append any errors to the config.log.
17071        cat conftest.err 1>&5
17072        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17073        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17074        if diff conftest.exp conftest.er2 >/dev/null; then
17075          lt_cv_prog_compiler_static_works_GCJ=yes
17076        fi
17077      else
17078        lt_cv_prog_compiler_static_works_GCJ=yes
17079      fi
17080    fi
17081    $rm -r conftest*
17082    LDFLAGS="$save_LDFLAGS"
17083
17084 fi
17085 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17086 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17087
17088 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17089     :
17090 else
17091     lt_prog_compiler_static_GCJ=
17092 fi
17093
17094
17095 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17096 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17097 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17098   echo $ECHO_N "(cached) $ECHO_C" >&6
17099 else
17100   lt_cv_prog_compiler_c_o_GCJ=no
17101    $rm -r conftest 2>/dev/null
17102    mkdir conftest
17103    cd conftest
17104    mkdir out
17105    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17106
17107    lt_compiler_flag="-o out/conftest2.$ac_objext"
17108    # Insert the option either (1) after the last *FLAGS variable, or
17109    # (2) before a word containing "conftest.", or (3) at the end.
17110    # Note that $ac_compile itself does not contain backslashes and begins
17111    # with a dollar sign (not a hyphen), so the echo should work correctly.
17112    lt_compile=`echo "$ac_compile" | $SED \
17113    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17114    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17115    -e 's:$: $lt_compiler_flag:'`
17116    (eval echo "\"\$as_me:17116: $lt_compile\"" >&5)
17117    (eval "$lt_compile" 2>out/conftest.err)
17118    ac_status=$?
17119    cat out/conftest.err >&5
17120    echo "$as_me:17120: \$? = $ac_status" >&5
17121    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17122    then
17123      # The compiler can only warn and ignore the option if not recognized
17124      # So say no if there are warnings
17125      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17126      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17127      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17128        lt_cv_prog_compiler_c_o_GCJ=yes
17129      fi
17130    fi
17131    chmod u+w . 2>&5
17132    $rm conftest*
17133    # SGI C++ compiler will create directory out/ii_files/ for
17134    # template instantiation
17135    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17136    $rm out/* && rmdir out
17137    cd ..
17138    rmdir conftest
17139    $rm conftest*
17140
17141 fi
17142 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17143 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17144
17145
17146 hard_links="nottested"
17147 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17148   # do not overwrite the value of need_locks provided by the user
17149   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17150 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17151   hard_links=yes
17152   $rm conftest*
17153   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17154   touch conftest.a
17155   ln conftest.a conftest.b 2>&5 || hard_links=no
17156   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17157   { echo "$as_me:$LINENO: result: $hard_links" >&5
17158 echo "${ECHO_T}$hard_links" >&6; }
17159   if test "$hard_links" = no; then
17160     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17161 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17162     need_locks=warn
17163   fi
17164 else
17165   need_locks=no
17166 fi
17167
17168 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17169 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17170
17171   runpath_var=
17172   allow_undefined_flag_GCJ=
17173   enable_shared_with_static_runtimes_GCJ=no
17174   archive_cmds_GCJ=
17175   archive_expsym_cmds_GCJ=
17176   old_archive_From_new_cmds_GCJ=
17177   old_archive_from_expsyms_cmds_GCJ=
17178   export_dynamic_flag_spec_GCJ=
17179   whole_archive_flag_spec_GCJ=
17180   thread_safe_flag_spec_GCJ=
17181   hardcode_libdir_flag_spec_GCJ=
17182   hardcode_libdir_flag_spec_ld_GCJ=
17183   hardcode_libdir_separator_GCJ=
17184   hardcode_direct_GCJ=no
17185   hardcode_minus_L_GCJ=no
17186   hardcode_shlibpath_var_GCJ=unsupported
17187   link_all_deplibs_GCJ=unknown
17188   hardcode_automatic_GCJ=no
17189   module_cmds_GCJ=
17190   module_expsym_cmds_GCJ=
17191   always_export_symbols_GCJ=no
17192   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17193   # include_expsyms should be a list of space-separated symbols to be *always*
17194   # included in the symbol list
17195   include_expsyms_GCJ=
17196   # exclude_expsyms can be an extended regexp of symbols to exclude
17197   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17198   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17199   # as well as any symbol that contains `d'.
17200   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17201   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17202   # platforms (ab)use it in PIC code, but their linkers get confused if
17203   # the symbol is explicitly referenced.  Since portable code cannot
17204   # rely on this symbol name, it's probably fine to never include it in
17205   # preloaded symbol tables.
17206   # Exclude shared library initialization/finalization symbols.
17207   extract_expsyms_cmds=
17208   # Just being paranoid about ensuring that cc_basename is set.
17209   for cc_temp in $compiler""; do
17210   case $cc_temp in
17211     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17212     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17213     \-*) ;;
17214     *) break;;
17215   esac
17216 done
17217 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17218
17219   case $host_os in
17220   cygwin* | mingw* | pw32*)
17221     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17222     # When not using gcc, we currently assume that we are using
17223     # Microsoft Visual C++.
17224     if test "$GCC" != yes; then
17225       with_gnu_ld=no
17226     fi
17227     ;;
17228   interix*)
17229     # we just hope/assume this is gcc and not c89 (= MSVC++)
17230     with_gnu_ld=yes
17231     ;;
17232   openbsd*)
17233     with_gnu_ld=no
17234     ;;
17235   esac
17236
17237   ld_shlibs_GCJ=yes
17238   if test "$with_gnu_ld" = yes; then
17239     # If archive_cmds runs LD, not CC, wlarc should be empty
17240     wlarc='${wl}'
17241
17242     # Set some defaults for GNU ld with shared library support. These
17243     # are reset later if shared libraries are not supported. Putting them
17244     # here allows them to be overridden if necessary.
17245     runpath_var=LD_RUN_PATH
17246     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17247     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17248     # ancient GNU ld didn't support --whole-archive et. al.
17249     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17250         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17251       else
17252         whole_archive_flag_spec_GCJ=
17253     fi
17254     supports_anon_versioning=no
17255     case `$LD -v 2>/dev/null` in
17256       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17257       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17258       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17259       *\ 2.11.*) ;; # other 2.11 versions
17260       *) supports_anon_versioning=yes ;;
17261     esac
17262
17263     # See if GNU ld supports shared libraries.
17264     case $host_os in
17265     aix[3-9]*)
17266       # On AIX/PPC, the GNU linker is very broken
17267       if test "$host_cpu" != ia64; then
17268         ld_shlibs_GCJ=no
17269         cat <<EOF 1>&2
17270
17271 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17272 *** to be unable to reliably create shared libraries on AIX.
17273 *** Therefore, libtool is disabling shared libraries support.  If you
17274 *** really care for shared libraries, you may want to modify your PATH
17275 *** so that a non-GNU linker is found, and then restart.
17276
17277 EOF
17278       fi
17279       ;;
17280
17281     amigaos*)
17282       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)'
17283       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17284       hardcode_minus_L_GCJ=yes
17285
17286       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17287       # that the semantics of dynamic libraries on AmigaOS, at least up
17288       # to version 4, is to share data among multiple programs linked
17289       # with the same dynamic library.  Since this doesn't match the
17290       # behavior of shared libraries on other platforms, we can't use
17291       # them.
17292       ld_shlibs_GCJ=no
17293       ;;
17294
17295     beos*)
17296       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17297         allow_undefined_flag_GCJ=unsupported
17298         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17299         # support --undefined.  This deserves some investigation.  FIXME
17300         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17301       else
17302         ld_shlibs_GCJ=no
17303       fi
17304       ;;
17305
17306     cygwin* | mingw* | pw32*)
17307       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17308       # as there is no search path for DLLs.
17309       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17310       allow_undefined_flag_GCJ=unsupported
17311       always_export_symbols_GCJ=no
17312       enable_shared_with_static_runtimes_GCJ=yes
17313       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17314
17315       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17316         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17317         # If the export-symbols file already is a .def file (1st line
17318         # is EXPORTS), use it as is; otherwise, prepend...
17319         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17320           cp $export_symbols $output_objdir/$soname.def;
17321         else
17322           echo EXPORTS > $output_objdir/$soname.def;
17323           cat $export_symbols >> $output_objdir/$soname.def;
17324         fi~
17325         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17326       else
17327         ld_shlibs_GCJ=no
17328       fi
17329       ;;
17330
17331     interix[3-9]*)
17332       hardcode_direct_GCJ=no
17333       hardcode_shlibpath_var_GCJ=no
17334       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17335       export_dynamic_flag_spec_GCJ='${wl}-E'
17336       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17337       # Instead, shared libraries are loaded at an image base (0x10000000 by
17338       # default) and relocated if they conflict, which is a slow very memory
17339       # consuming and fragmenting process.  To avoid this, we pick a random,
17340       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17341       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17342       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'
17343       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'
17344       ;;
17345
17346     gnu* | linux* | k*bsd*-gnu)
17347       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17348         tmp_addflag=
17349         case $cc_basename,$host_cpu in
17350         pgcc*)                          # Portland Group C compiler
17351           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'
17352           tmp_addflag=' $pic_flag'
17353           ;;
17354         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17355           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'
17356           tmp_addflag=' $pic_flag -Mnomain' ;;
17357         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17358           tmp_addflag=' -i_dynamic' ;;
17359         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17360           tmp_addflag=' -i_dynamic -nofor_main' ;;
17361         ifc* | ifort*)                  # Intel Fortran compiler
17362           tmp_addflag=' -nofor_main' ;;
17363         esac
17364         case `$CC -V 2>&1 | sed 5q` in
17365         *Sun\ C*)                       # Sun C 5.9
17366           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'
17367           tmp_sharedflag='-G' ;;
17368         *Sun\ F*)                       # Sun Fortran 8.3
17369           tmp_sharedflag='-G' ;;
17370         *)
17371           tmp_sharedflag='-shared' ;;
17372         esac
17373         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17374
17375         if test $supports_anon_versioning = yes; then
17376           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17377   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17378   $echo "local: *; };" >> $output_objdir/$libname.ver~
17379           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17380         fi
17381         link_all_deplibs_GCJ=no
17382       else
17383         ld_shlibs_GCJ=no
17384       fi
17385       ;;
17386
17387     netbsd* | netbsdelf*-gnu)
17388       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17389         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17390         wlarc=
17391       else
17392         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17393         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17394       fi
17395       ;;
17396
17397     solaris*)
17398       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17399         ld_shlibs_GCJ=no
17400         cat <<EOF 1>&2
17401
17402 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17403 *** create shared libraries on Solaris systems.  Therefore, libtool
17404 *** is disabling shared libraries support.  We urge you to upgrade GNU
17405 *** binutils to release 2.9.1 or newer.  Another option is to modify
17406 *** your PATH or compiler configuration so that the native linker is
17407 *** used, and then restart.
17408
17409 EOF
17410       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17411         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17413       else
17414         ld_shlibs_GCJ=no
17415       fi
17416       ;;
17417
17418     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17419       case `$LD -v 2>&1` in
17420         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17421         ld_shlibs_GCJ=no
17422         cat <<_LT_EOF 1>&2
17423
17424 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17425 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17426 *** is disabling shared libraries support.  We urge you to upgrade GNU
17427 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17428 *** your PATH or compiler configuration so that the native linker is
17429 *** used, and then restart.
17430
17431 _LT_EOF
17432         ;;
17433         *)
17434           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17435             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17436             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17437             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17438           else
17439             ld_shlibs_GCJ=no
17440           fi
17441         ;;
17442       esac
17443       ;;
17444
17445     sunos4*)
17446       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17447       wlarc=
17448       hardcode_direct_GCJ=yes
17449       hardcode_shlibpath_var_GCJ=no
17450       ;;
17451
17452     *)
17453       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17454         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17455         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17456       else
17457         ld_shlibs_GCJ=no
17458       fi
17459       ;;
17460     esac
17461
17462     if test "$ld_shlibs_GCJ" = no; then
17463       runpath_var=
17464       hardcode_libdir_flag_spec_GCJ=
17465       export_dynamic_flag_spec_GCJ=
17466       whole_archive_flag_spec_GCJ=
17467     fi
17468   else
17469     # PORTME fill in a description of your system's linker (not GNU ld)
17470     case $host_os in
17471     aix3*)
17472       allow_undefined_flag_GCJ=unsupported
17473       always_export_symbols_GCJ=yes
17474       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'
17475       # Note: this linker hardcodes the directories in LIBPATH if there
17476       # are no directories specified by -L.
17477       hardcode_minus_L_GCJ=yes
17478       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17479         # Neither direct hardcoding nor static linking is supported with a
17480         # broken collect2.
17481         hardcode_direct_GCJ=unsupported
17482       fi
17483       ;;
17484
17485     aix[4-9]*)
17486       if test "$host_cpu" = ia64; then
17487         # On IA64, the linker does run time linking by default, so we don't
17488         # have to do anything special.
17489         aix_use_runtimelinking=no
17490         exp_sym_flag='-Bexport'
17491         no_entry_flag=""
17492       else
17493         # If we're using GNU nm, then we don't want the "-C" option.
17494         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17495         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17496           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'
17497         else
17498           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'
17499         fi
17500         aix_use_runtimelinking=no
17501
17502         # Test if we are trying to use run time linking or normal
17503         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17504         # need to do runtime linking.
17505         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17506           for ld_flag in $LDFLAGS; do
17507           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17508             aix_use_runtimelinking=yes
17509             break
17510           fi
17511           done
17512           ;;
17513         esac
17514
17515         exp_sym_flag='-bexport'
17516         no_entry_flag='-bnoentry'
17517       fi
17518
17519       # When large executables or shared objects are built, AIX ld can
17520       # have problems creating the table of contents.  If linking a library
17521       # or program results in "error TOC overflow" add -mminimal-toc to
17522       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17523       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17524
17525       archive_cmds_GCJ=''
17526       hardcode_direct_GCJ=yes
17527       hardcode_libdir_separator_GCJ=':'
17528       link_all_deplibs_GCJ=yes
17529
17530       if test "$GCC" = yes; then
17531         case $host_os in aix4.[012]|aix4.[012].*)
17532         # We only want to do this on AIX 4.2 and lower, the check
17533         # below for broken collect2 doesn't work under 4.3+
17534           collect2name=`${CC} -print-prog-name=collect2`
17535           if test -f "$collect2name" && \
17536            strings "$collect2name" | grep resolve_lib_name >/dev/null
17537           then
17538           # We have reworked collect2
17539           :
17540           else
17541           # We have old collect2
17542           hardcode_direct_GCJ=unsupported
17543           # It fails to find uninstalled libraries when the uninstalled
17544           # path is not listed in the libpath.  Setting hardcode_minus_L
17545           # to unsupported forces relinking
17546           hardcode_minus_L_GCJ=yes
17547           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17548           hardcode_libdir_separator_GCJ=
17549           fi
17550           ;;
17551         esac
17552         shared_flag='-shared'
17553         if test "$aix_use_runtimelinking" = yes; then
17554           shared_flag="$shared_flag "'${wl}-G'
17555         fi
17556       else
17557         # not using gcc
17558         if test "$host_cpu" = ia64; then
17559         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17560         # chokes on -Wl,-G. The following line is correct:
17561           shared_flag='-G'
17562         else
17563           if test "$aix_use_runtimelinking" = yes; then
17564             shared_flag='${wl}-G'
17565           else
17566             shared_flag='${wl}-bM:SRE'
17567           fi
17568         fi
17569       fi
17570
17571       # It seems that -bexpall does not export symbols beginning with
17572       # underscore (_), so it is better to generate a list of symbols to export.
17573       always_export_symbols_GCJ=yes
17574       if test "$aix_use_runtimelinking" = yes; then
17575         # Warning - without using the other runtime loading flags (-brtl),
17576         # -berok will link without error, but may produce a broken library.
17577         allow_undefined_flag_GCJ='-berok'
17578        # Determine the default libpath from the value encoded in an empty executable.
17579        cat >conftest.$ac_ext <<_ACEOF
17580 /* confdefs.h.  */
17581 _ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h.  */
17585
17586 int
17587 main ()
17588 {
17589
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (ac_try="$ac_link"
17596 case "(($ac_try" in
17597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598   *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601   (eval "$ac_link") 2>conftest.er1
17602   ac_status=$?
17603   grep -v '^ *+' conftest.er1 >conftest.err
17604   rm -f conftest.er1
17605   cat conftest.err >&5
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); } && {
17608          test -z "$ac_c_werror_flag" ||
17609          test ! -s conftest.err
17610        } && test -s conftest$ac_exeext &&
17611        $as_test_x conftest$ac_exeext; then
17612
17613 lt_aix_libpath_sed='
17614     /Import File Strings/,/^$/ {
17615         /^0/ {
17616             s/^0  *\(.*\)$/\1/
17617             p
17618         }
17619     }'
17620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17621 # Check for a 64-bit object if we didn't find anything.
17622 if test -z "$aix_libpath"; then
17623   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17624 fi
17625 else
17626   echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629
17630 fi
17631
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633       conftest$ac_exeext conftest.$ac_ext
17634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17635
17636        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17637         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"
17638        else
17639         if test "$host_cpu" = ia64; then
17640           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17641           allow_undefined_flag_GCJ="-z nodefs"
17642           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"
17643         else
17644          # Determine the default libpath from the value encoded in an empty executable.
17645          cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h.  */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h.  */
17651
17652 int
17653 main ()
17654 {
17655
17656   ;
17657   return 0;
17658 }
17659 _ACEOF
17660 rm -f conftest.$ac_objext conftest$ac_exeext
17661 if { (ac_try="$ac_link"
17662 case "(($ac_try" in
17663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664   *) ac_try_echo=$ac_try;;
17665 esac
17666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667   (eval "$ac_link") 2>conftest.er1
17668   ac_status=$?
17669   grep -v '^ *+' conftest.er1 >conftest.err
17670   rm -f conftest.er1
17671   cat conftest.err >&5
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); } && {
17674          test -z "$ac_c_werror_flag" ||
17675          test ! -s conftest.err
17676        } && test -s conftest$ac_exeext &&
17677        $as_test_x conftest$ac_exeext; then
17678
17679 lt_aix_libpath_sed='
17680     /Import File Strings/,/^$/ {
17681         /^0/ {
17682             s/^0  *\(.*\)$/\1/
17683             p
17684         }
17685     }'
17686 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17687 # Check for a 64-bit object if we didn't find anything.
17688 if test -z "$aix_libpath"; then
17689   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17690 fi
17691 else
17692   echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17694
17695
17696 fi
17697
17698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17699       conftest$ac_exeext conftest.$ac_ext
17700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17701
17702          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17703           # Warning - without using the other run time loading flags,
17704           # -berok will link without error, but may produce a broken library.
17705           no_undefined_flag_GCJ=' ${wl}-bernotok'
17706           allow_undefined_flag_GCJ=' ${wl}-berok'
17707           # Exported symbols can be pulled into shared objects from archives
17708           whole_archive_flag_spec_GCJ='$convenience'
17709           archive_cmds_need_lc_GCJ=yes
17710           # This is similar to how AIX traditionally builds its shared libraries.
17711           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'
17712         fi
17713       fi
17714       ;;
17715
17716     amigaos*)
17717       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)'
17718       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17719       hardcode_minus_L_GCJ=yes
17720       # see comment about different semantics on the GNU ld section
17721       ld_shlibs_GCJ=no
17722       ;;
17723
17724     bsdi[45]*)
17725       export_dynamic_flag_spec_GCJ=-rdynamic
17726       ;;
17727
17728     cygwin* | mingw* | pw32*)
17729       # When not using gcc, we currently assume that we are using
17730       # Microsoft Visual C++.
17731       # hardcode_libdir_flag_spec is actually meaningless, as there is
17732       # no search path for DLLs.
17733       hardcode_libdir_flag_spec_GCJ=' '
17734       allow_undefined_flag_GCJ=unsupported
17735       # Tell ltmain to make .lib files, not .a files.
17736       libext=lib
17737       # Tell ltmain to make .dll files, not .so files.
17738       shrext_cmds=".dll"
17739       # FIXME: Setting linknames here is a bad hack.
17740       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17741       # The linker will automatically build a .lib file if we build a DLL.
17742       old_archive_From_new_cmds_GCJ='true'
17743       # FIXME: Should let the user specify the lib program.
17744       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17745       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17746       enable_shared_with_static_runtimes_GCJ=yes
17747       ;;
17748
17749     darwin* | rhapsody*)
17750       case $host_os in
17751         rhapsody* | darwin1.[012])
17752          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17753          ;;
17754        *) # Darwin 1.3 on
17755          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17756            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17757          else
17758            case ${MACOSX_DEPLOYMENT_TARGET} in
17759              10.[012])
17760                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17761                ;;
17762              10.*)
17763                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17764                ;;
17765            esac
17766          fi
17767          ;;
17768       esac
17769       archive_cmds_need_lc_GCJ=no
17770       hardcode_direct_GCJ=no
17771       hardcode_automatic_GCJ=yes
17772       hardcode_shlibpath_var_GCJ=unsupported
17773       whole_archive_flag_spec_GCJ=''
17774       link_all_deplibs_GCJ=yes
17775     if test "$GCC" = yes ; then
17776         output_verbose_link_cmd='echo'
17777         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}"
17778         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17779         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}"
17780         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}"
17781     else
17782       case $cc_basename in
17783         xlc*)
17784          output_verbose_link_cmd='echo'
17785          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17786          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17787           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17788          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}'
17789           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}'
17790           ;;
17791        *)
17792          ld_shlibs_GCJ=no
17793           ;;
17794       esac
17795     fi
17796       ;;
17797
17798     dgux*)
17799       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17800       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17801       hardcode_shlibpath_var_GCJ=no
17802       ;;
17803
17804     freebsd1*)
17805       ld_shlibs_GCJ=no
17806       ;;
17807
17808     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17809     # support.  Future versions do this automatically, but an explicit c++rt0.o
17810     # does not break anything, and helps significantly (at the cost of a little
17811     # extra space).
17812     freebsd2.2*)
17813       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17814       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17815       hardcode_direct_GCJ=yes
17816       hardcode_shlibpath_var_GCJ=no
17817       ;;
17818
17819     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17820     freebsd2*)
17821       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17822       hardcode_direct_GCJ=yes
17823       hardcode_minus_L_GCJ=yes
17824       hardcode_shlibpath_var_GCJ=no
17825       ;;
17826
17827     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17828     freebsd* | dragonfly*)
17829       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17830       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17831       hardcode_direct_GCJ=yes
17832       hardcode_shlibpath_var_GCJ=no
17833       ;;
17834
17835     hpux9*)
17836       if test "$GCC" = yes; then
17837         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'
17838       else
17839         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'
17840       fi
17841       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17842       hardcode_libdir_separator_GCJ=:
17843       hardcode_direct_GCJ=yes
17844
17845       # hardcode_minus_L: Not really in the search PATH,
17846       # but as the default location of the library.
17847       hardcode_minus_L_GCJ=yes
17848       export_dynamic_flag_spec_GCJ='${wl}-E'
17849       ;;
17850
17851     hpux10*)
17852       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17853         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17854       else
17855         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17856       fi
17857       if test "$with_gnu_ld" = no; then
17858         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17859         hardcode_libdir_separator_GCJ=:
17860
17861         hardcode_direct_GCJ=yes
17862         export_dynamic_flag_spec_GCJ='${wl}-E'
17863
17864         # hardcode_minus_L: Not really in the search PATH,
17865         # but as the default location of the library.
17866         hardcode_minus_L_GCJ=yes
17867       fi
17868       ;;
17869
17870     hpux11*)
17871       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17872         case $host_cpu in
17873         hppa*64*)
17874           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17875           ;;
17876         ia64*)
17877           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17878           ;;
17879         *)
17880           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17881           ;;
17882         esac
17883       else
17884         case $host_cpu in
17885         hppa*64*)
17886           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17887           ;;
17888         ia64*)
17889           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17890           ;;
17891         *)
17892           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17893           ;;
17894         esac
17895       fi
17896       if test "$with_gnu_ld" = no; then
17897         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17898         hardcode_libdir_separator_GCJ=:
17899
17900         case $host_cpu in
17901         hppa*64*|ia64*)
17902           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17903           hardcode_direct_GCJ=no
17904           hardcode_shlibpath_var_GCJ=no
17905           ;;
17906         *)
17907           hardcode_direct_GCJ=yes
17908           export_dynamic_flag_spec_GCJ='${wl}-E'
17909
17910           # hardcode_minus_L: Not really in the search PATH,
17911           # but as the default location of the library.
17912           hardcode_minus_L_GCJ=yes
17913           ;;
17914         esac
17915       fi
17916       ;;
17917
17918     irix5* | irix6* | nonstopux*)
17919       if test "$GCC" = yes; then
17920         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'
17921       else
17922         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'
17923         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17924       fi
17925       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17926       hardcode_libdir_separator_GCJ=:
17927       link_all_deplibs_GCJ=yes
17928       ;;
17929
17930     netbsd* | netbsdelf*-gnu)
17931       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17932         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17933       else
17934         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17935       fi
17936       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17937       hardcode_direct_GCJ=yes
17938       hardcode_shlibpath_var_GCJ=no
17939       ;;
17940
17941     newsos6)
17942       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17943       hardcode_direct_GCJ=yes
17944       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17945       hardcode_libdir_separator_GCJ=:
17946       hardcode_shlibpath_var_GCJ=no
17947       ;;
17948
17949     openbsd*)
17950       if test -f /usr/libexec/ld.so; then
17951         hardcode_direct_GCJ=yes
17952         hardcode_shlibpath_var_GCJ=no
17953         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17954           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17955           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17956           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17957           export_dynamic_flag_spec_GCJ='${wl}-E'
17958         else
17959           case $host_os in
17960            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17961              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17962              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17963              ;;
17964            *)
17965              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17966              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17967              ;;
17968           esac
17969         fi
17970       else
17971         ld_shlibs_GCJ=no
17972       fi
17973       ;;
17974
17975     os2*)
17976       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17977       hardcode_minus_L_GCJ=yes
17978       allow_undefined_flag_GCJ=unsupported
17979       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'
17980       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17981       ;;
17982
17983     osf3*)
17984       if test "$GCC" = yes; then
17985         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17986         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'
17987       else
17988         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17989         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'
17990       fi
17991       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17992       hardcode_libdir_separator_GCJ=:
17993       ;;
17994
17995     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17996       if test "$GCC" = yes; then
17997         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17998         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'
17999         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18000       else
18001         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18002         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'
18003         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~
18004         $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'
18005
18006         # Both c and cxx compiler support -rpath directly
18007         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18008       fi
18009       hardcode_libdir_separator_GCJ=:
18010       ;;
18011
18012     solaris*)
18013       no_undefined_flag_GCJ=' -z text'
18014       if test "$GCC" = yes; then
18015         wlarc='${wl}'
18016         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18017         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18018           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18019       else
18020         wlarc=''
18021         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18022         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18023         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18024       fi
18025       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18026       hardcode_shlibpath_var_GCJ=no
18027       case $host_os in
18028       solaris2.[0-5] | solaris2.[0-5].*) ;;
18029       *)
18030         # The compiler driver will combine and reorder linker options,
18031         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18032         # but is careful enough not to reorder.
18033         # Supported since Solaris 2.6 (maybe 2.5.1?)
18034         if test "$GCC" = yes; then
18035           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18036         else
18037           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18038         fi
18039         ;;
18040       esac
18041       link_all_deplibs_GCJ=yes
18042       ;;
18043
18044     sunos4*)
18045       if test "x$host_vendor" = xsequent; then
18046         # Use $CC to link under sequent, because it throws in some extra .o
18047         # files that make .init and .fini sections work.
18048         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18049       else
18050         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18051       fi
18052       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18053       hardcode_direct_GCJ=yes
18054       hardcode_minus_L_GCJ=yes
18055       hardcode_shlibpath_var_GCJ=no
18056       ;;
18057
18058     sysv4)
18059       case $host_vendor in
18060         sni)
18061           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18062           hardcode_direct_GCJ=yes # is this really true???
18063         ;;
18064         siemens)
18065           ## LD is ld it makes a PLAMLIB
18066           ## CC just makes a GrossModule.
18067           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18068           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18069           hardcode_direct_GCJ=no
18070         ;;
18071         motorola)
18072           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18073           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18074         ;;
18075       esac
18076       runpath_var='LD_RUN_PATH'
18077       hardcode_shlibpath_var_GCJ=no
18078       ;;
18079
18080     sysv4.3*)
18081       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18082       hardcode_shlibpath_var_GCJ=no
18083       export_dynamic_flag_spec_GCJ='-Bexport'
18084       ;;
18085
18086     sysv4*MP*)
18087       if test -d /usr/nec; then
18088         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18089         hardcode_shlibpath_var_GCJ=no
18090         runpath_var=LD_RUN_PATH
18091         hardcode_runpath_var=yes
18092         ld_shlibs_GCJ=yes
18093       fi
18094       ;;
18095
18096     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18097       no_undefined_flag_GCJ='${wl}-z,text'
18098       archive_cmds_need_lc_GCJ=no
18099       hardcode_shlibpath_var_GCJ=no
18100       runpath_var='LD_RUN_PATH'
18101
18102       if test "$GCC" = yes; then
18103         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18104         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18105       else
18106         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18107         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18108       fi
18109       ;;
18110
18111     sysv5* | sco3.2v5* | sco5v6*)
18112       # Note: We can NOT use -z defs as we might desire, because we do not
18113       # link with -lc, and that would cause any symbols used from libc to
18114       # always be unresolved, which means just about no library would
18115       # ever link correctly.  If we're not using GNU ld we use -z text
18116       # though, which does catch some bad symbols but isn't as heavy-handed
18117       # as -z defs.
18118       no_undefined_flag_GCJ='${wl}-z,text'
18119       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18120       archive_cmds_need_lc_GCJ=no
18121       hardcode_shlibpath_var_GCJ=no
18122       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18123       hardcode_libdir_separator_GCJ=':'
18124       link_all_deplibs_GCJ=yes
18125       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18126       runpath_var='LD_RUN_PATH'
18127
18128       if test "$GCC" = yes; then
18129         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18131       else
18132         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18133         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18134       fi
18135       ;;
18136
18137     uts4*)
18138       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18139       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18140       hardcode_shlibpath_var_GCJ=no
18141       ;;
18142
18143     *)
18144       ld_shlibs_GCJ=no
18145       ;;
18146     esac
18147   fi
18148
18149 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18150 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18151 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18152
18153 #
18154 # Do we need to explicitly link libc?
18155 #
18156 case "x$archive_cmds_need_lc_GCJ" in
18157 x|xyes)
18158   # Assume -lc should be added
18159   archive_cmds_need_lc_GCJ=yes
18160
18161   if test "$enable_shared" = yes && test "$GCC" = yes; then
18162     case $archive_cmds_GCJ in
18163     *'~'*)
18164       # FIXME: we may have to deal with multi-command sequences.
18165       ;;
18166     '$CC '*)
18167       # Test whether the compiler implicitly links with -lc since on some
18168       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18169       # to ld, don't add -lc before -lgcc.
18170       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18171 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18172       $rm conftest*
18173       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18174
18175       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18176   (eval $ac_compile) 2>&5
18177   ac_status=$?
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); } 2>conftest.err; then
18180         soname=conftest
18181         lib=conftest
18182         libobjs=conftest.$ac_objext
18183         deplibs=
18184         wl=$lt_prog_compiler_wl_GCJ
18185         pic_flag=$lt_prog_compiler_pic_GCJ
18186         compiler_flags=-v
18187         linker_flags=-v
18188         verstring=
18189         output_objdir=.
18190         libname=conftest
18191         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18192         allow_undefined_flag_GCJ=
18193         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18194   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18195   ac_status=$?
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); }
18198         then
18199           archive_cmds_need_lc_GCJ=no
18200         else
18201           archive_cmds_need_lc_GCJ=yes
18202         fi
18203         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18204       else
18205         cat conftest.err 1>&5
18206       fi
18207       $rm conftest*
18208       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18209 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18210       ;;
18211     esac
18212   fi
18213   ;;
18214 esac
18215
18216 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18217 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18218 library_names_spec=
18219 libname_spec='lib$name'
18220 soname_spec=
18221 shrext_cmds=".so"
18222 postinstall_cmds=
18223 postuninstall_cmds=
18224 finish_cmds=
18225 finish_eval=
18226 shlibpath_var=
18227 shlibpath_overrides_runpath=unknown
18228 version_type=none
18229 dynamic_linker="$host_os ld.so"
18230 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18231
18232 need_lib_prefix=unknown
18233 hardcode_into_libs=no
18234
18235 # when you set need_version to no, make sure it does not cause -set_version
18236 # flags to be left without arguments
18237 need_version=unknown
18238
18239 case $host_os in
18240 aix3*)
18241   version_type=linux
18242   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18243   shlibpath_var=LIBPATH
18244
18245   # AIX 3 has no versioning support, so we append a major version to the name.
18246   soname_spec='${libname}${release}${shared_ext}$major'
18247   ;;
18248
18249 aix[4-9]*)
18250   version_type=linux
18251   need_lib_prefix=no
18252   need_version=no
18253   hardcode_into_libs=yes
18254   if test "$host_cpu" = ia64; then
18255     # AIX 5 supports IA64
18256     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18257     shlibpath_var=LD_LIBRARY_PATH
18258   else
18259     # With GCC up to 2.95.x, collect2 would create an import file
18260     # for dependence libraries.  The import file would start with
18261     # the line `#! .'.  This would cause the generated library to
18262     # depend on `.', always an invalid library.  This was fixed in
18263     # development snapshots of GCC prior to 3.0.
18264     case $host_os in
18265       aix4 | aix4.[01] | aix4.[01].*)
18266       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18267            echo ' yes '
18268            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18269         :
18270       else
18271         can_build_shared=no
18272       fi
18273       ;;
18274     esac
18275     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18276     # soname into executable. Probably we can add versioning support to
18277     # collect2, so additional links can be useful in future.
18278     if test "$aix_use_runtimelinking" = yes; then
18279       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18280       # instead of lib<name>.a to let people know that these are not
18281       # typical AIX shared libraries.
18282       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18283     else
18284       # We preserve .a as extension for shared libraries through AIX4.2
18285       # and later when we are not doing run time linking.
18286       library_names_spec='${libname}${release}.a $libname.a'
18287       soname_spec='${libname}${release}${shared_ext}$major'
18288     fi
18289     shlibpath_var=LIBPATH
18290   fi
18291   ;;
18292
18293 amigaos*)
18294   library_names_spec='$libname.ixlibrary $libname.a'
18295   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18296   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'
18297   ;;
18298
18299 beos*)
18300   library_names_spec='${libname}${shared_ext}'
18301   dynamic_linker="$host_os ld.so"
18302   shlibpath_var=LIBRARY_PATH
18303   ;;
18304
18305 bsdi[45]*)
18306   version_type=linux
18307   need_version=no
18308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309   soname_spec='${libname}${release}${shared_ext}$major'
18310   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18311   shlibpath_var=LD_LIBRARY_PATH
18312   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18313   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18314   # the default ld.so.conf also contains /usr/contrib/lib and
18315   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18316   # libtool to hard-code these into programs
18317   ;;
18318
18319 cygwin* | mingw* | pw32*)
18320   version_type=windows
18321   shrext_cmds=".dll"
18322   need_version=no
18323   need_lib_prefix=no
18324
18325   case $GCC,$host_os in
18326   yes,cygwin* | yes,mingw* | yes,pw32*)
18327     library_names_spec='$libname.dll.a'
18328     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18329     postinstall_cmds='base_file=`basename \${file}`~
18330       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18331       dldir=$destdir/`dirname \$dlpath`~
18332       test -d \$dldir || mkdir -p \$dldir~
18333       $install_prog $dir/$dlname \$dldir/$dlname~
18334       chmod a+x \$dldir/$dlname'
18335     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18336       dlpath=$dir/\$dldll~
18337        $rm \$dlpath'
18338     shlibpath_overrides_runpath=yes
18339
18340     case $host_os in
18341     cygwin*)
18342       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18343       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18344       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18345       ;;
18346     mingw*)
18347       # MinGW DLLs use traditional 'lib' prefix
18348       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18349       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18350       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18351         # It is most probably a Windows format PATH printed by
18352         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18353         # path with ; separators, and with drive letters. We can handle the
18354         # drive letters (cygwin fileutils understands them), so leave them,
18355         # especially as we might pass files found there to a mingw objdump,
18356         # which wouldn't understand a cygwinified path. Ahh.
18357         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18358       else
18359         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18360       fi
18361       ;;
18362     pw32*)
18363       # pw32 DLLs use 'pw' prefix rather than 'lib'
18364       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18365       ;;
18366     esac
18367     ;;
18368
18369   *)
18370     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18371     ;;
18372   esac
18373   dynamic_linker='Win32 ld.exe'
18374   # FIXME: first we should search . and the directory the executable is in
18375   shlibpath_var=PATH
18376   ;;
18377
18378 darwin* | rhapsody*)
18379   dynamic_linker="$host_os dyld"
18380   version_type=darwin
18381   need_lib_prefix=no
18382   need_version=no
18383   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18384   soname_spec='${libname}${release}${major}$shared_ext'
18385   shlibpath_overrides_runpath=yes
18386   shlibpath_var=DYLD_LIBRARY_PATH
18387   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18388
18389   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18390   ;;
18391
18392 dgux*)
18393   version_type=linux
18394   need_lib_prefix=no
18395   need_version=no
18396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18397   soname_spec='${libname}${release}${shared_ext}$major'
18398   shlibpath_var=LD_LIBRARY_PATH
18399   ;;
18400
18401 freebsd1*)
18402   dynamic_linker=no
18403   ;;
18404
18405 freebsd* | dragonfly*)
18406   # DragonFly does not have aout.  When/if they implement a new
18407   # versioning mechanism, adjust this.
18408   if test -x /usr/bin/objformat; then
18409     objformat=`/usr/bin/objformat`
18410   else
18411     case $host_os in
18412     freebsd[123]*) objformat=aout ;;
18413     *) objformat=elf ;;
18414     esac
18415   fi
18416   version_type=freebsd-$objformat
18417   case $version_type in
18418     freebsd-elf*)
18419       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18420       need_version=no
18421       need_lib_prefix=no
18422       ;;
18423     freebsd-*)
18424       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18425       need_version=yes
18426       ;;
18427   esac
18428   shlibpath_var=LD_LIBRARY_PATH
18429   case $host_os in
18430   freebsd2*)
18431     shlibpath_overrides_runpath=yes
18432     ;;
18433   freebsd3.[01]* | freebsdelf3.[01]*)
18434     shlibpath_overrides_runpath=yes
18435     hardcode_into_libs=yes
18436     ;;
18437   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18438   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18439     shlibpath_overrides_runpath=no
18440     hardcode_into_libs=yes
18441     ;;
18442   *) # from 4.6 on, and DragonFly
18443     shlibpath_overrides_runpath=yes
18444     hardcode_into_libs=yes
18445     ;;
18446   esac
18447   ;;
18448
18449 gnu*)
18450   version_type=linux
18451   need_lib_prefix=no
18452   need_version=no
18453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18454   soname_spec='${libname}${release}${shared_ext}$major'
18455   shlibpath_var=LD_LIBRARY_PATH
18456   hardcode_into_libs=yes
18457   ;;
18458
18459 hpux9* | hpux10* | hpux11*)
18460   # Give a soname corresponding to the major version so that dld.sl refuses to
18461   # link against other versions.
18462   version_type=sunos
18463   need_lib_prefix=no
18464   need_version=no
18465   case $host_cpu in
18466   ia64*)
18467     shrext_cmds='.so'
18468     hardcode_into_libs=yes
18469     dynamic_linker="$host_os dld.so"
18470     shlibpath_var=LD_LIBRARY_PATH
18471     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18473     soname_spec='${libname}${release}${shared_ext}$major'
18474     if test "X$HPUX_IA64_MODE" = X32; then
18475       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18476     else
18477       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18478     fi
18479     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18480     ;;
18481    hppa*64*)
18482      shrext_cmds='.sl'
18483      hardcode_into_libs=yes
18484      dynamic_linker="$host_os dld.sl"
18485      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18486      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18487      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18488      soname_spec='${libname}${release}${shared_ext}$major'
18489      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18490      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18491      ;;
18492    *)
18493     shrext_cmds='.sl'
18494     dynamic_linker="$host_os dld.sl"
18495     shlibpath_var=SHLIB_PATH
18496     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18497     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18498     soname_spec='${libname}${release}${shared_ext}$major'
18499     ;;
18500   esac
18501   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18502   postinstall_cmds='chmod 555 $lib'
18503   ;;
18504
18505 interix[3-9]*)
18506   version_type=linux
18507   need_lib_prefix=no
18508   need_version=no
18509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18510   soname_spec='${libname}${release}${shared_ext}$major'
18511   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18512   shlibpath_var=LD_LIBRARY_PATH
18513   shlibpath_overrides_runpath=no
18514   hardcode_into_libs=yes
18515   ;;
18516
18517 irix5* | irix6* | nonstopux*)
18518   case $host_os in
18519     nonstopux*) version_type=nonstopux ;;
18520     *)
18521         if test "$lt_cv_prog_gnu_ld" = yes; then
18522                 version_type=linux
18523         else
18524                 version_type=irix
18525         fi ;;
18526   esac
18527   need_lib_prefix=no
18528   need_version=no
18529   soname_spec='${libname}${release}${shared_ext}$major'
18530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18531   case $host_os in
18532   irix5* | nonstopux*)
18533     libsuff= shlibsuff=
18534     ;;
18535   *)
18536     case $LD in # libtool.m4 will add one of these switches to LD
18537     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18538       libsuff= shlibsuff= libmagic=32-bit;;
18539     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18540       libsuff=32 shlibsuff=N32 libmagic=N32;;
18541     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18542       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18543     *) libsuff= shlibsuff= libmagic=never-match;;
18544     esac
18545     ;;
18546   esac
18547   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18548   shlibpath_overrides_runpath=no
18549   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18550   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18551   hardcode_into_libs=yes
18552   ;;
18553
18554 # No shared lib support for Linux oldld, aout, or coff.
18555 linux*oldld* | linux*aout* | linux*coff*)
18556   dynamic_linker=no
18557   ;;
18558
18559 # This must be Linux ELF.
18560 linux* | k*bsd*-gnu)
18561   version_type=linux
18562   need_lib_prefix=no
18563   need_version=no
18564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18565   soname_spec='${libname}${release}${shared_ext}$major'
18566   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18567   shlibpath_var=LD_LIBRARY_PATH
18568   shlibpath_overrides_runpath=no
18569   # This implies no fast_install, which is unacceptable.
18570   # Some rework will be needed to allow for fast_install
18571   # before this can be enabled.
18572   hardcode_into_libs=yes
18573
18574   # Append ld.so.conf contents to the search path
18575   if test -f /etc/ld.so.conf; then
18576     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' ' '`
18577     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18578   fi
18579
18580   # We used to test for /lib/ld.so.1 and disable shared libraries on
18581   # powerpc, because MkLinux only supported shared libraries with the
18582   # GNU dynamic linker.  Since this was broken with cross compilers,
18583   # most powerpc-linux boxes support dynamic linking these days and
18584   # people can always --disable-shared, the test was removed, and we
18585   # assume the GNU/Linux dynamic linker is in use.
18586   dynamic_linker='GNU/Linux ld.so'
18587   ;;
18588
18589 netbsdelf*-gnu)
18590   version_type=linux
18591   need_lib_prefix=no
18592   need_version=no
18593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18594   soname_spec='${libname}${release}${shared_ext}$major'
18595   shlibpath_var=LD_LIBRARY_PATH
18596   shlibpath_overrides_runpath=no
18597   hardcode_into_libs=yes
18598   dynamic_linker='NetBSD ld.elf_so'
18599   ;;
18600
18601 netbsd*)
18602   version_type=sunos
18603   need_lib_prefix=no
18604   need_version=no
18605   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18607     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18608     dynamic_linker='NetBSD (a.out) ld.so'
18609   else
18610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18611     soname_spec='${libname}${release}${shared_ext}$major'
18612     dynamic_linker='NetBSD ld.elf_so'
18613   fi
18614   shlibpath_var=LD_LIBRARY_PATH
18615   shlibpath_overrides_runpath=yes
18616   hardcode_into_libs=yes
18617   ;;
18618
18619 newsos6)
18620   version_type=linux
18621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622   shlibpath_var=LD_LIBRARY_PATH
18623   shlibpath_overrides_runpath=yes
18624   ;;
18625
18626 nto-qnx*)
18627   version_type=linux
18628   need_lib_prefix=no
18629   need_version=no
18630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631   soname_spec='${libname}${release}${shared_ext}$major'
18632   shlibpath_var=LD_LIBRARY_PATH
18633   shlibpath_overrides_runpath=yes
18634   ;;
18635
18636 openbsd*)
18637   version_type=sunos
18638   sys_lib_dlsearch_path_spec="/usr/lib"
18639   need_lib_prefix=no
18640   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18641   case $host_os in
18642     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18643     *)                         need_version=no  ;;
18644   esac
18645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18646   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18647   shlibpath_var=LD_LIBRARY_PATH
18648   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18649     case $host_os in
18650       openbsd2.[89] | openbsd2.[89].*)
18651         shlibpath_overrides_runpath=no
18652         ;;
18653       *)
18654         shlibpath_overrides_runpath=yes
18655         ;;
18656       esac
18657   else
18658     shlibpath_overrides_runpath=yes
18659   fi
18660   ;;
18661
18662 os2*)
18663   libname_spec='$name'
18664   shrext_cmds=".dll"
18665   need_lib_prefix=no
18666   library_names_spec='$libname${shared_ext} $libname.a'
18667   dynamic_linker='OS/2 ld.exe'
18668   shlibpath_var=LIBPATH
18669   ;;
18670
18671 osf3* | osf4* | osf5*)
18672   version_type=osf
18673   need_lib_prefix=no
18674   need_version=no
18675   soname_spec='${libname}${release}${shared_ext}$major'
18676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18677   shlibpath_var=LD_LIBRARY_PATH
18678   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18679   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18680   ;;
18681
18682 rdos*)
18683   dynamic_linker=no
18684   ;;
18685
18686 solaris*)
18687   version_type=linux
18688   need_lib_prefix=no
18689   need_version=no
18690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691   soname_spec='${libname}${release}${shared_ext}$major'
18692   shlibpath_var=LD_LIBRARY_PATH
18693   shlibpath_overrides_runpath=yes
18694   hardcode_into_libs=yes
18695   # ldd complains unless libraries are executable
18696   postinstall_cmds='chmod +x $lib'
18697   ;;
18698
18699 sunos4*)
18700   version_type=sunos
18701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18702   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18703   shlibpath_var=LD_LIBRARY_PATH
18704   shlibpath_overrides_runpath=yes
18705   if test "$with_gnu_ld" = yes; then
18706     need_lib_prefix=no
18707   fi
18708   need_version=yes
18709   ;;
18710
18711 sysv4 | sysv4.3*)
18712   version_type=linux
18713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18714   soname_spec='${libname}${release}${shared_ext}$major'
18715   shlibpath_var=LD_LIBRARY_PATH
18716   case $host_vendor in
18717     sni)
18718       shlibpath_overrides_runpath=no
18719       need_lib_prefix=no
18720       export_dynamic_flag_spec='${wl}-Blargedynsym'
18721       runpath_var=LD_RUN_PATH
18722       ;;
18723     siemens)
18724       need_lib_prefix=no
18725       ;;
18726     motorola)
18727       need_lib_prefix=no
18728       need_version=no
18729       shlibpath_overrides_runpath=no
18730       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18731       ;;
18732   esac
18733   ;;
18734
18735 sysv4*MP*)
18736   if test -d /usr/nec ;then
18737     version_type=linux
18738     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18739     soname_spec='$libname${shared_ext}.$major'
18740     shlibpath_var=LD_LIBRARY_PATH
18741   fi
18742   ;;
18743
18744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18745   version_type=freebsd-elf
18746   need_lib_prefix=no
18747   need_version=no
18748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18749   soname_spec='${libname}${release}${shared_ext}$major'
18750   shlibpath_var=LD_LIBRARY_PATH
18751   hardcode_into_libs=yes
18752   if test "$with_gnu_ld" = yes; then
18753     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18754     shlibpath_overrides_runpath=no
18755   else
18756     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18757     shlibpath_overrides_runpath=yes
18758     case $host_os in
18759       sco3.2v5*)
18760         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18761         ;;
18762     esac
18763   fi
18764   sys_lib_dlsearch_path_spec='/usr/lib'
18765   ;;
18766
18767 uts4*)
18768   version_type=linux
18769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770   soname_spec='${libname}${release}${shared_ext}$major'
18771   shlibpath_var=LD_LIBRARY_PATH
18772   ;;
18773
18774 *)
18775   dynamic_linker=no
18776   ;;
18777 esac
18778 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18779 echo "${ECHO_T}$dynamic_linker" >&6; }
18780 test "$dynamic_linker" = no && can_build_shared=no
18781
18782 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18783   echo $ECHO_N "(cached) $ECHO_C" >&6
18784 else
18785   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18786 fi
18787
18788 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18789 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18790   echo $ECHO_N "(cached) $ECHO_C" >&6
18791 else
18792   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18793 fi
18794
18795 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18796
18797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18798 if test "$GCC" = yes; then
18799   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18800 fi
18801
18802 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18803 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18804 hardcode_action_GCJ=
18805 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18806    test -n "$runpath_var_GCJ" || \
18807    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18808
18809   # We can hardcode non-existant directories.
18810   if test "$hardcode_direct_GCJ" != no &&
18811      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18812      # have to relink, otherwise we might link with an installed library
18813      # when we should be linking with a yet-to-be-installed one
18814      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18815      test "$hardcode_minus_L_GCJ" != no; then
18816     # Linking always hardcodes the temporary library directory.
18817     hardcode_action_GCJ=relink
18818   else
18819     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18820     hardcode_action_GCJ=immediate
18821   fi
18822 else
18823   # We cannot hardcode anything, or else we can only hardcode existing
18824   # directories.
18825   hardcode_action_GCJ=unsupported
18826 fi
18827 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18828 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18829
18830 if test "$hardcode_action_GCJ" = relink; then
18831   # Fast installation is not supported
18832   enable_fast_install=no
18833 elif test "$shlibpath_overrides_runpath" = yes ||
18834      test "$enable_shared" = no; then
18835   # Fast installation is not necessary
18836   enable_fast_install=needless
18837 fi
18838
18839
18840 # The else clause should only fire when bootstrapping the
18841 # libtool distribution, otherwise you forgot to ship ltmain.sh
18842 # with your package, and you will get complaints that there are
18843 # no rules to generate ltmain.sh.
18844 if test -f "$ltmain"; then
18845   # See if we are running on zsh, and set the options which allow our commands through
18846   # without removal of \ escapes.
18847   if test -n "${ZSH_VERSION+set}" ; then
18848     setopt NO_GLOB_SUBST
18849   fi
18850   # Now quote all the things that may contain metacharacters while being
18851   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18852   # variables and quote the copies for generation of the libtool script.
18853   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18854     SED SHELL STRIP \
18855     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18856     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18857     deplibs_check_method reload_flag reload_cmds need_locks \
18858     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18859     lt_cv_sys_global_symbol_to_c_name_address \
18860     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18861     old_postinstall_cmds old_postuninstall_cmds \
18862     compiler_GCJ \
18863     CC_GCJ \
18864     LD_GCJ \
18865     lt_prog_compiler_wl_GCJ \
18866     lt_prog_compiler_pic_GCJ \
18867     lt_prog_compiler_static_GCJ \
18868     lt_prog_compiler_no_builtin_flag_GCJ \
18869     export_dynamic_flag_spec_GCJ \
18870     thread_safe_flag_spec_GCJ \
18871     whole_archive_flag_spec_GCJ \
18872     enable_shared_with_static_runtimes_GCJ \
18873     old_archive_cmds_GCJ \
18874     old_archive_from_new_cmds_GCJ \
18875     predep_objects_GCJ \
18876     postdep_objects_GCJ \
18877     predeps_GCJ \
18878     postdeps_GCJ \
18879     compiler_lib_search_path_GCJ \
18880     compiler_lib_search_dirs_GCJ \
18881     archive_cmds_GCJ \
18882     archive_expsym_cmds_GCJ \
18883     postinstall_cmds_GCJ \
18884     postuninstall_cmds_GCJ \
18885     old_archive_from_expsyms_cmds_GCJ \
18886     allow_undefined_flag_GCJ \
18887     no_undefined_flag_GCJ \
18888     export_symbols_cmds_GCJ \
18889     hardcode_libdir_flag_spec_GCJ \
18890     hardcode_libdir_flag_spec_ld_GCJ \
18891     hardcode_libdir_separator_GCJ \
18892     hardcode_automatic_GCJ \
18893     module_cmds_GCJ \
18894     module_expsym_cmds_GCJ \
18895     lt_cv_prog_compiler_c_o_GCJ \
18896     fix_srcfile_path_GCJ \
18897     exclude_expsyms_GCJ \
18898     include_expsyms_GCJ; do
18899
18900     case $var in
18901     old_archive_cmds_GCJ | \
18902     old_archive_from_new_cmds_GCJ | \
18903     archive_cmds_GCJ | \
18904     archive_expsym_cmds_GCJ | \
18905     module_cmds_GCJ | \
18906     module_expsym_cmds_GCJ | \
18907     old_archive_from_expsyms_cmds_GCJ | \
18908     export_symbols_cmds_GCJ | \
18909     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18910     postinstall_cmds | postuninstall_cmds | \
18911     old_postinstall_cmds | old_postuninstall_cmds | \
18912     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18913       # Double-quote double-evaled strings.
18914       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18915       ;;
18916     *)
18917       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18918       ;;
18919     esac
18920   done
18921
18922   case $lt_echo in
18923   *'\$0 --fallback-echo"')
18924     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18925     ;;
18926   esac
18927
18928 cfgfile="$ofile"
18929
18930   cat <<__EOF__ >> "$cfgfile"
18931 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18932
18933 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18934
18935 # Shell to use when invoking shell scripts.
18936 SHELL=$lt_SHELL
18937
18938 # Whether or not to build shared libraries.
18939 build_libtool_libs=$enable_shared
18940
18941 # Whether or not to build static libraries.
18942 build_old_libs=$enable_static
18943
18944 # Whether or not to add -lc for building shared libraries.
18945 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18946
18947 # Whether or not to disallow shared libs when runtime libs are static
18948 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18949
18950 # Whether or not to optimize for fast installation.
18951 fast_install=$enable_fast_install
18952
18953 # The host system.
18954 host_alias=$host_alias
18955 host=$host
18956 host_os=$host_os
18957
18958 # The build system.
18959 build_alias=$build_alias
18960 build=$build
18961 build_os=$build_os
18962
18963 # An echo program that does not interpret backslashes.
18964 echo=$lt_echo
18965
18966 # The archiver.
18967 AR=$lt_AR
18968 AR_FLAGS=$lt_AR_FLAGS
18969
18970 # A C compiler.
18971 LTCC=$lt_LTCC
18972
18973 # LTCC compiler flags.
18974 LTCFLAGS=$lt_LTCFLAGS
18975
18976 # A language-specific compiler.
18977 CC=$lt_compiler_GCJ
18978
18979 # Is the compiler the GNU C compiler?
18980 with_gcc=$GCC_GCJ
18981
18982 # An ERE matcher.
18983 EGREP=$lt_EGREP
18984
18985 # The linker used to build libraries.
18986 LD=$lt_LD_GCJ
18987
18988 # Whether we need hard or soft links.
18989 LN_S=$lt_LN_S
18990
18991 # A BSD-compatible nm program.
18992 NM=$lt_NM
18993
18994 # A symbol stripping program
18995 STRIP=$lt_STRIP
18996
18997 # Used to examine libraries when file_magic_cmd begins "file"
18998 MAGIC_CMD=$MAGIC_CMD
18999
19000 # Used on cygwin: DLL creation program.
19001 DLLTOOL="$DLLTOOL"
19002
19003 # Used on cygwin: object dumper.
19004 OBJDUMP="$OBJDUMP"
19005
19006 # Used on cygwin: assembler.
19007 AS="$AS"
19008
19009 # The name of the directory that contains temporary libtool files.
19010 objdir=$objdir
19011
19012 # How to create reloadable object files.
19013 reload_flag=$lt_reload_flag
19014 reload_cmds=$lt_reload_cmds
19015
19016 # How to pass a linker flag through the compiler.
19017 wl=$lt_lt_prog_compiler_wl_GCJ
19018
19019 # Object file suffix (normally "o").
19020 objext="$ac_objext"
19021
19022 # Old archive suffix (normally "a").
19023 libext="$libext"
19024
19025 # Shared library suffix (normally ".so").
19026 shrext_cmds='$shrext_cmds'
19027
19028 # Executable file suffix (normally "").
19029 exeext="$exeext"
19030
19031 # Additional compiler flags for building library objects.
19032 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19033 pic_mode=$pic_mode
19034
19035 # What is the maximum length of a command?
19036 max_cmd_len=$lt_cv_sys_max_cmd_len
19037
19038 # Does compiler simultaneously support -c and -o options?
19039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19040
19041 # Must we lock files when doing compilation?
19042 need_locks=$lt_need_locks
19043
19044 # Do we need the lib prefix for modules?
19045 need_lib_prefix=$need_lib_prefix
19046
19047 # Do we need a version for libraries?
19048 need_version=$need_version
19049
19050 # Whether dlopen is supported.
19051 dlopen_support=$enable_dlopen
19052
19053 # Whether dlopen of programs is supported.
19054 dlopen_self=$enable_dlopen_self
19055
19056 # Whether dlopen of statically linked programs is supported.
19057 dlopen_self_static=$enable_dlopen_self_static
19058
19059 # Compiler flag to prevent dynamic linking.
19060 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19061
19062 # Compiler flag to turn off builtin functions.
19063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19064
19065 # Compiler flag to allow reflexive dlopens.
19066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19067
19068 # Compiler flag to generate shared objects directly from archives.
19069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19070
19071 # Compiler flag to generate thread-safe objects.
19072 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19073
19074 # Library versioning type.
19075 version_type=$version_type
19076
19077 # Format of library name prefix.
19078 libname_spec=$lt_libname_spec
19079
19080 # List of archive names.  First name is the real one, the rest are links.
19081 # The last name is the one that the linker finds with -lNAME.
19082 library_names_spec=$lt_library_names_spec
19083
19084 # The coded name of the library, if different from the real name.
19085 soname_spec=$lt_soname_spec
19086
19087 # Commands used to build and install an old-style archive.
19088 RANLIB=$lt_RANLIB
19089 old_archive_cmds=$lt_old_archive_cmds_GCJ
19090 old_postinstall_cmds=$lt_old_postinstall_cmds
19091 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19092
19093 # Create an old-style archive from a shared archive.
19094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19095
19096 # Create a temporary old-style archive to link instead of a shared archive.
19097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19098
19099 # Commands used to build and install a shared archive.
19100 archive_cmds=$lt_archive_cmds_GCJ
19101 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19102 postinstall_cmds=$lt_postinstall_cmds
19103 postuninstall_cmds=$lt_postuninstall_cmds
19104
19105 # Commands used to build a loadable module (assumed same as above if empty)
19106 module_cmds=$lt_module_cmds_GCJ
19107 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19108
19109 # Commands to strip libraries.
19110 old_striplib=$lt_old_striplib
19111 striplib=$lt_striplib
19112
19113 # Dependencies to place before the objects being linked to create a
19114 # shared library.
19115 predep_objects=$lt_predep_objects_GCJ
19116
19117 # Dependencies to place after the objects being linked to create a
19118 # shared library.
19119 postdep_objects=$lt_postdep_objects_GCJ
19120
19121 # Dependencies to place before the objects being linked to create a
19122 # shared library.
19123 predeps=$lt_predeps_GCJ
19124
19125 # Dependencies to place after the objects being linked to create a
19126 # shared library.
19127 postdeps=$lt_postdeps_GCJ
19128
19129 # The directories searched by this compiler when creating a shared
19130 # library
19131 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19132
19133 # The library search path used internally by the compiler when linking
19134 # a shared library.
19135 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19136
19137 # Method to check whether dependent libraries are shared objects.
19138 deplibs_check_method=$lt_deplibs_check_method
19139
19140 # Command to use when deplibs_check_method == file_magic.
19141 file_magic_cmd=$lt_file_magic_cmd
19142
19143 # Flag that allows shared libraries with undefined symbols to be built.
19144 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19145
19146 # Flag that forces no undefined symbols.
19147 no_undefined_flag=$lt_no_undefined_flag_GCJ
19148
19149 # Commands used to finish a libtool library installation in a directory.
19150 finish_cmds=$lt_finish_cmds
19151
19152 # Same as above, but a single script fragment to be evaled but not shown.
19153 finish_eval=$lt_finish_eval
19154
19155 # Take the output of nm and produce a listing of raw symbols and C names.
19156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19157
19158 # Transform the output of nm in a proper C declaration
19159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19160
19161 # Transform the output of nm in a C name address pair
19162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19163
19164 # This is the shared library runtime path variable.
19165 runpath_var=$runpath_var
19166
19167 # This is the shared library path variable.
19168 shlibpath_var=$shlibpath_var
19169
19170 # Is shlibpath searched before the hard-coded library search path?
19171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19172
19173 # How to hardcode a shared library path into an executable.
19174 hardcode_action=$hardcode_action_GCJ
19175
19176 # Whether we should hardcode library paths into libraries.
19177 hardcode_into_libs=$hardcode_into_libs
19178
19179 # Flag to hardcode \$libdir into a binary during linking.
19180 # This must work even if \$libdir does not exist.
19181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19182
19183 # If ld is used when linking, flag to hardcode \$libdir into
19184 # a binary during linking. This must work even if \$libdir does
19185 # not exist.
19186 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19187
19188 # Whether we need a single -rpath flag with a separated argument.
19189 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19190
19191 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19192 # resulting binary.
19193 hardcode_direct=$hardcode_direct_GCJ
19194
19195 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19196 # resulting binary.
19197 hardcode_minus_L=$hardcode_minus_L_GCJ
19198
19199 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19200 # the resulting binary.
19201 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19202
19203 # Set to yes if building a shared library automatically hardcodes DIR into the library
19204 # and all subsequent libraries and executables linked against it.
19205 hardcode_automatic=$hardcode_automatic_GCJ
19206
19207 # Variables whose values should be saved in libtool wrapper scripts and
19208 # restored at relink time.
19209 variables_saved_for_relink="$variables_saved_for_relink"
19210
19211 # Whether libtool must link a program against all its dependency libraries.
19212 link_all_deplibs=$link_all_deplibs_GCJ
19213
19214 # Compile-time system search path for libraries
19215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19216
19217 # Run-time system search path for libraries
19218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19219
19220 # Fix the shell variable \$srcfile for the compiler.
19221 fix_srcfile_path=$lt_fix_srcfile_path
19222
19223 # Set to yes if exported symbols are required.
19224 always_export_symbols=$always_export_symbols_GCJ
19225
19226 # The commands to list exported symbols.
19227 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19228
19229 # The commands to extract the exported symbol list from a shared archive.
19230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19231
19232 # Symbols that should not be listed in the preloaded symbols.
19233 exclude_expsyms=$lt_exclude_expsyms_GCJ
19234
19235 # Symbols that must always be exported.
19236 include_expsyms=$lt_include_expsyms_GCJ
19237
19238 # ### END LIBTOOL TAG CONFIG: $tagname
19239
19240 __EOF__
19241
19242
19243 else
19244   # If there is no Makefile yet, we rely on a make rule to execute
19245   # `config.status --recheck' to rerun these tests and create the
19246   # libtool script then.
19247   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19248   if test -f "$ltmain_in"; then
19249     test -f Makefile && make "$ltmain"
19250   fi
19251 fi
19252
19253
19254 ac_ext=c
19255 ac_cpp='$CPP $CPPFLAGS'
19256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19259
19260 CC="$lt_save_CC"
19261
19262         else
19263           tagname=""
19264         fi
19265         ;;
19266
19267       RC)
19268
19269
19270 # Source file extension for RC test sources.
19271 ac_ext=rc
19272
19273 # Object file extension for compiled RC test sources.
19274 objext=o
19275 objext_RC=$objext
19276
19277 # Code to be used in simple compile tests
19278 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19279
19280 # Code to be used in simple link tests
19281 lt_simple_link_test_code="$lt_simple_compile_test_code"
19282
19283 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19284
19285 # If no C compiler was specified, use CC.
19286 LTCC=${LTCC-"$CC"}
19287
19288 # If no C compiler flags were specified, use CFLAGS.
19289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19290
19291 # Allow CC to be a program name with arguments.
19292 compiler=$CC
19293
19294
19295 # save warnings/boilerplate of simple test code
19296 ac_outfile=conftest.$ac_objext
19297 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19298 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19299 _lt_compiler_boilerplate=`cat conftest.err`
19300 $rm conftest*
19301
19302 ac_outfile=conftest.$ac_objext
19303 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19304 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19305 _lt_linker_boilerplate=`cat conftest.err`
19306 $rm -r conftest*
19307
19308
19309 # Allow CC to be a program name with arguments.
19310 lt_save_CC="$CC"
19311 CC=${RC-"windres"}
19312 compiler=$CC
19313 compiler_RC=$CC
19314 for cc_temp in $compiler""; do
19315   case $cc_temp in
19316     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19317     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19318     \-*) ;;
19319     *) break;;
19320   esac
19321 done
19322 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19323
19324 lt_cv_prog_compiler_c_o_RC=yes
19325
19326 # The else clause should only fire when bootstrapping the
19327 # libtool distribution, otherwise you forgot to ship ltmain.sh
19328 # with your package, and you will get complaints that there are
19329 # no rules to generate ltmain.sh.
19330 if test -f "$ltmain"; then
19331   # See if we are running on zsh, and set the options which allow our commands through
19332   # without removal of \ escapes.
19333   if test -n "${ZSH_VERSION+set}" ; then
19334     setopt NO_GLOB_SUBST
19335   fi
19336   # Now quote all the things that may contain metacharacters while being
19337   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19338   # variables and quote the copies for generation of the libtool script.
19339   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19340     SED SHELL STRIP \
19341     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19342     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19343     deplibs_check_method reload_flag reload_cmds need_locks \
19344     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19345     lt_cv_sys_global_symbol_to_c_name_address \
19346     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19347     old_postinstall_cmds old_postuninstall_cmds \
19348     compiler_RC \
19349     CC_RC \
19350     LD_RC \
19351     lt_prog_compiler_wl_RC \
19352     lt_prog_compiler_pic_RC \
19353     lt_prog_compiler_static_RC \
19354     lt_prog_compiler_no_builtin_flag_RC \
19355     export_dynamic_flag_spec_RC \
19356     thread_safe_flag_spec_RC \
19357     whole_archive_flag_spec_RC \
19358     enable_shared_with_static_runtimes_RC \
19359     old_archive_cmds_RC \
19360     old_archive_from_new_cmds_RC \
19361     predep_objects_RC \
19362     postdep_objects_RC \
19363     predeps_RC \
19364     postdeps_RC \
19365     compiler_lib_search_path_RC \
19366     compiler_lib_search_dirs_RC \
19367     archive_cmds_RC \
19368     archive_expsym_cmds_RC \
19369     postinstall_cmds_RC \
19370     postuninstall_cmds_RC \
19371     old_archive_from_expsyms_cmds_RC \
19372     allow_undefined_flag_RC \
19373     no_undefined_flag_RC \
19374     export_symbols_cmds_RC \
19375     hardcode_libdir_flag_spec_RC \
19376     hardcode_libdir_flag_spec_ld_RC \
19377     hardcode_libdir_separator_RC \
19378     hardcode_automatic_RC \
19379     module_cmds_RC \
19380     module_expsym_cmds_RC \
19381     lt_cv_prog_compiler_c_o_RC \
19382     fix_srcfile_path_RC \
19383     exclude_expsyms_RC \
19384     include_expsyms_RC; do
19385
19386     case $var in
19387     old_archive_cmds_RC | \
19388     old_archive_from_new_cmds_RC | \
19389     archive_cmds_RC | \
19390     archive_expsym_cmds_RC | \
19391     module_cmds_RC | \
19392     module_expsym_cmds_RC | \
19393     old_archive_from_expsyms_cmds_RC | \
19394     export_symbols_cmds_RC | \
19395     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19396     postinstall_cmds | postuninstall_cmds | \
19397     old_postinstall_cmds | old_postuninstall_cmds | \
19398     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19399       # Double-quote double-evaled strings.
19400       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19401       ;;
19402     *)
19403       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19404       ;;
19405     esac
19406   done
19407
19408   case $lt_echo in
19409   *'\$0 --fallback-echo"')
19410     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19411     ;;
19412   esac
19413
19414 cfgfile="$ofile"
19415
19416   cat <<__EOF__ >> "$cfgfile"
19417 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19418
19419 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19420
19421 # Shell to use when invoking shell scripts.
19422 SHELL=$lt_SHELL
19423
19424 # Whether or not to build shared libraries.
19425 build_libtool_libs=$enable_shared
19426
19427 # Whether or not to build static libraries.
19428 build_old_libs=$enable_static
19429
19430 # Whether or not to add -lc for building shared libraries.
19431 build_libtool_need_lc=$archive_cmds_need_lc_RC
19432
19433 # Whether or not to disallow shared libs when runtime libs are static
19434 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19435
19436 # Whether or not to optimize for fast installation.
19437 fast_install=$enable_fast_install
19438
19439 # The host system.
19440 host_alias=$host_alias
19441 host=$host
19442 host_os=$host_os
19443
19444 # The build system.
19445 build_alias=$build_alias
19446 build=$build
19447 build_os=$build_os
19448
19449 # An echo program that does not interpret backslashes.
19450 echo=$lt_echo
19451
19452 # The archiver.
19453 AR=$lt_AR
19454 AR_FLAGS=$lt_AR_FLAGS
19455
19456 # A C compiler.
19457 LTCC=$lt_LTCC
19458
19459 # LTCC compiler flags.
19460 LTCFLAGS=$lt_LTCFLAGS
19461
19462 # A language-specific compiler.
19463 CC=$lt_compiler_RC
19464
19465 # Is the compiler the GNU C compiler?
19466 with_gcc=$GCC_RC
19467
19468 # An ERE matcher.
19469 EGREP=$lt_EGREP
19470
19471 # The linker used to build libraries.
19472 LD=$lt_LD_RC
19473
19474 # Whether we need hard or soft links.
19475 LN_S=$lt_LN_S
19476
19477 # A BSD-compatible nm program.
19478 NM=$lt_NM
19479
19480 # A symbol stripping program
19481 STRIP=$lt_STRIP
19482
19483 # Used to examine libraries when file_magic_cmd begins "file"
19484 MAGIC_CMD=$MAGIC_CMD
19485
19486 # Used on cygwin: DLL creation program.
19487 DLLTOOL="$DLLTOOL"
19488
19489 # Used on cygwin: object dumper.
19490 OBJDUMP="$OBJDUMP"
19491
19492 # Used on cygwin: assembler.
19493 AS="$AS"
19494
19495 # The name of the directory that contains temporary libtool files.
19496 objdir=$objdir
19497
19498 # How to create reloadable object files.
19499 reload_flag=$lt_reload_flag
19500 reload_cmds=$lt_reload_cmds
19501
19502 # How to pass a linker flag through the compiler.
19503 wl=$lt_lt_prog_compiler_wl_RC
19504
19505 # Object file suffix (normally "o").
19506 objext="$ac_objext"
19507
19508 # Old archive suffix (normally "a").
19509 libext="$libext"
19510
19511 # Shared library suffix (normally ".so").
19512 shrext_cmds='$shrext_cmds'
19513
19514 # Executable file suffix (normally "").
19515 exeext="$exeext"
19516
19517 # Additional compiler flags for building library objects.
19518 pic_flag=$lt_lt_prog_compiler_pic_RC
19519 pic_mode=$pic_mode
19520
19521 # What is the maximum length of a command?
19522 max_cmd_len=$lt_cv_sys_max_cmd_len
19523
19524 # Does compiler simultaneously support -c and -o options?
19525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19526
19527 # Must we lock files when doing compilation?
19528 need_locks=$lt_need_locks
19529
19530 # Do we need the lib prefix for modules?
19531 need_lib_prefix=$need_lib_prefix
19532
19533 # Do we need a version for libraries?
19534 need_version=$need_version
19535
19536 # Whether dlopen is supported.
19537 dlopen_support=$enable_dlopen
19538
19539 # Whether dlopen of programs is supported.
19540 dlopen_self=$enable_dlopen_self
19541
19542 # Whether dlopen of statically linked programs is supported.
19543 dlopen_self_static=$enable_dlopen_self_static
19544
19545 # Compiler flag to prevent dynamic linking.
19546 link_static_flag=$lt_lt_prog_compiler_static_RC
19547
19548 # Compiler flag to turn off builtin functions.
19549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19550
19551 # Compiler flag to allow reflexive dlopens.
19552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19553
19554 # Compiler flag to generate shared objects directly from archives.
19555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19556
19557 # Compiler flag to generate thread-safe objects.
19558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19559
19560 # Library versioning type.
19561 version_type=$version_type
19562
19563 # Format of library name prefix.
19564 libname_spec=$lt_libname_spec
19565
19566 # List of archive names.  First name is the real one, the rest are links.
19567 # The last name is the one that the linker finds with -lNAME.
19568 library_names_spec=$lt_library_names_spec
19569
19570 # The coded name of the library, if different from the real name.
19571 soname_spec=$lt_soname_spec
19572
19573 # Commands used to build and install an old-style archive.
19574 RANLIB=$lt_RANLIB
19575 old_archive_cmds=$lt_old_archive_cmds_RC
19576 old_postinstall_cmds=$lt_old_postinstall_cmds
19577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19578
19579 # Create an old-style archive from a shared archive.
19580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19581
19582 # Create a temporary old-style archive to link instead of a shared archive.
19583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19584
19585 # Commands used to build and install a shared archive.
19586 archive_cmds=$lt_archive_cmds_RC
19587 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19588 postinstall_cmds=$lt_postinstall_cmds
19589 postuninstall_cmds=$lt_postuninstall_cmds
19590
19591 # Commands used to build a loadable module (assumed same as above if empty)
19592 module_cmds=$lt_module_cmds_RC
19593 module_expsym_cmds=$lt_module_expsym_cmds_RC
19594
19595 # Commands to strip libraries.
19596 old_striplib=$lt_old_striplib
19597 striplib=$lt_striplib
19598
19599 # Dependencies to place before the objects being linked to create a
19600 # shared library.
19601 predep_objects=$lt_predep_objects_RC
19602
19603 # Dependencies to place after the objects being linked to create a
19604 # shared library.
19605 postdep_objects=$lt_postdep_objects_RC
19606
19607 # Dependencies to place before the objects being linked to create a
19608 # shared library.
19609 predeps=$lt_predeps_RC
19610
19611 # Dependencies to place after the objects being linked to create a
19612 # shared library.
19613 postdeps=$lt_postdeps_RC
19614
19615 # The directories searched by this compiler when creating a shared
19616 # library
19617 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19618
19619 # The library search path used internally by the compiler when linking
19620 # a shared library.
19621 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19622
19623 # Method to check whether dependent libraries are shared objects.
19624 deplibs_check_method=$lt_deplibs_check_method
19625
19626 # Command to use when deplibs_check_method == file_magic.
19627 file_magic_cmd=$lt_file_magic_cmd
19628
19629 # Flag that allows shared libraries with undefined symbols to be built.
19630 allow_undefined_flag=$lt_allow_undefined_flag_RC
19631
19632 # Flag that forces no undefined symbols.
19633 no_undefined_flag=$lt_no_undefined_flag_RC
19634
19635 # Commands used to finish a libtool library installation in a directory.
19636 finish_cmds=$lt_finish_cmds
19637
19638 # Same as above, but a single script fragment to be evaled but not shown.
19639 finish_eval=$lt_finish_eval
19640
19641 # Take the output of nm and produce a listing of raw symbols and C names.
19642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19643
19644 # Transform the output of nm in a proper C declaration
19645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19646
19647 # Transform the output of nm in a C name address pair
19648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19649
19650 # This is the shared library runtime path variable.
19651 runpath_var=$runpath_var
19652
19653 # This is the shared library path variable.
19654 shlibpath_var=$shlibpath_var
19655
19656 # Is shlibpath searched before the hard-coded library search path?
19657 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19658
19659 # How to hardcode a shared library path into an executable.
19660 hardcode_action=$hardcode_action_RC
19661
19662 # Whether we should hardcode library paths into libraries.
19663 hardcode_into_libs=$hardcode_into_libs
19664
19665 # Flag to hardcode \$libdir into a binary during linking.
19666 # This must work even if \$libdir does not exist.
19667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19668
19669 # If ld is used when linking, flag to hardcode \$libdir into
19670 # a binary during linking. This must work even if \$libdir does
19671 # not exist.
19672 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19673
19674 # Whether we need a single -rpath flag with a separated argument.
19675 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19676
19677 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19678 # resulting binary.
19679 hardcode_direct=$hardcode_direct_RC
19680
19681 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19682 # resulting binary.
19683 hardcode_minus_L=$hardcode_minus_L_RC
19684
19685 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19686 # the resulting binary.
19687 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19688
19689 # Set to yes if building a shared library automatically hardcodes DIR into the library
19690 # and all subsequent libraries and executables linked against it.
19691 hardcode_automatic=$hardcode_automatic_RC
19692
19693 # Variables whose values should be saved in libtool wrapper scripts and
19694 # restored at relink time.
19695 variables_saved_for_relink="$variables_saved_for_relink"
19696
19697 # Whether libtool must link a program against all its dependency libraries.
19698 link_all_deplibs=$link_all_deplibs_RC
19699
19700 # Compile-time system search path for libraries
19701 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19702
19703 # Run-time system search path for libraries
19704 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19705
19706 # Fix the shell variable \$srcfile for the compiler.
19707 fix_srcfile_path=$lt_fix_srcfile_path
19708
19709 # Set to yes if exported symbols are required.
19710 always_export_symbols=$always_export_symbols_RC
19711
19712 # The commands to list exported symbols.
19713 export_symbols_cmds=$lt_export_symbols_cmds_RC
19714
19715 # The commands to extract the exported symbol list from a shared archive.
19716 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19717
19718 # Symbols that should not be listed in the preloaded symbols.
19719 exclude_expsyms=$lt_exclude_expsyms_RC
19720
19721 # Symbols that must always be exported.
19722 include_expsyms=$lt_include_expsyms_RC
19723
19724 # ### END LIBTOOL TAG CONFIG: $tagname
19725
19726 __EOF__
19727
19728
19729 else
19730   # If there is no Makefile yet, we rely on a make rule to execute
19731   # `config.status --recheck' to rerun these tests and create the
19732   # libtool script then.
19733   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19734   if test -f "$ltmain_in"; then
19735     test -f Makefile && make "$ltmain"
19736   fi
19737 fi
19738
19739
19740 ac_ext=c
19741 ac_cpp='$CPP $CPPFLAGS'
19742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19745
19746 CC="$lt_save_CC"
19747
19748         ;;
19749
19750       *)
19751         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19752 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19753    { (exit 1); exit 1; }; }
19754         ;;
19755       esac
19756
19757       # Append the new tag name to the list of available tags.
19758       if test -n "$tagname" ; then
19759       available_tags="$available_tags $tagname"
19760     fi
19761     fi
19762   done
19763   IFS="$lt_save_ifs"
19764
19765   # Now substitute the updated list of available tags.
19766   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19767     mv "${ofile}T" "$ofile"
19768     chmod +x "$ofile"
19769   else
19770     rm -f "${ofile}T"
19771     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19772 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19773    { (exit 1); exit 1; }; }
19774   fi
19775 fi
19776
19777
19778
19779 # This can be used to rebuild libtool when needed
19780 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19781
19782 # Always use our own libtool.
19783 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19784
19785 # Prevent multiple expansion
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808 # Check whether some low-level functions/files are available
19809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19811 if test "${ac_cv_header_stdc+set}" = set; then
19812   echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19814   cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h.  */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h.  */
19820 #include <stdlib.h>
19821 #include <stdarg.h>
19822 #include <string.h>
19823 #include <float.h>
19824
19825 int
19826 main ()
19827 {
19828
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext
19834 if { (ac_try="$ac_compile"
19835 case "(($ac_try" in
19836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837   *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840   (eval "$ac_compile") 2>conftest.er1
19841   ac_status=$?
19842   grep -v '^ *+' conftest.er1 >conftest.err
19843   rm -f conftest.er1
19844   cat conftest.err >&5
19845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846   (exit $ac_status); } && {
19847          test -z "$ac_c_werror_flag" ||
19848          test ! -s conftest.err
19849        } && test -s conftest.$ac_objext; then
19850   ac_cv_header_stdc=yes
19851 else
19852   echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19854
19855         ac_cv_header_stdc=no
19856 fi
19857
19858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19859
19860 if test $ac_cv_header_stdc = yes; then
19861   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19862   cat >conftest.$ac_ext <<_ACEOF
19863 /* confdefs.h.  */
19864 _ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h.  */
19868 #include <string.h>
19869
19870 _ACEOF
19871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19872   $EGREP "memchr" >/dev/null 2>&1; then
19873   :
19874 else
19875   ac_cv_header_stdc=no
19876 fi
19877 rm -f conftest*
19878
19879 fi
19880
19881 if test $ac_cv_header_stdc = yes; then
19882   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19883   cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h.  */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h.  */
19889 #include <stdlib.h>
19890
19891 _ACEOF
19892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19893   $EGREP "free" >/dev/null 2>&1; then
19894   :
19895 else
19896   ac_cv_header_stdc=no
19897 fi
19898 rm -f conftest*
19899
19900 fi
19901
19902 if test $ac_cv_header_stdc = yes; then
19903   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19904   if test "$cross_compiling" = yes; then
19905   :
19906 else
19907   cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h.  */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h.  */
19913 #include <ctype.h>
19914 #include <stdlib.h>
19915 #if ((' ' & 0x0FF) == 0x020)
19916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19918 #else
19919 # define ISLOWER(c) \
19920                    (('a' <= (c) && (c) <= 'i') \
19921                      || ('j' <= (c) && (c) <= 'r') \
19922                      || ('s' <= (c) && (c) <= 'z'))
19923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19924 #endif
19925
19926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19927 int
19928 main ()
19929 {
19930   int i;
19931   for (i = 0; i < 256; i++)
19932     if (XOR (islower (i), ISLOWER (i))
19933         || toupper (i) != TOUPPER (i))
19934       return 2;
19935   return 0;
19936 }
19937 _ACEOF
19938 rm -f conftest$ac_exeext
19939 if { (ac_try="$ac_link"
19940 case "(($ac_try" in
19941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942   *) ac_try_echo=$ac_try;;
19943 esac
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945   (eval "$ac_link") 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19949   { (case "(($ac_try" in
19950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951   *) ac_try_echo=$ac_try;;
19952 esac
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954   (eval "$ac_try") 2>&5
19955   ac_status=$?
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); }; }; then
19958   :
19959 else
19960   echo "$as_me: program exited with status $ac_status" >&5
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964 ( exit $ac_status )
19965 ac_cv_header_stdc=no
19966 fi
19967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19968 fi
19969
19970
19971 fi
19972 fi
19973 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19974 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19975 if test $ac_cv_header_stdc = yes; then
19976
19977 cat >>confdefs.h <<\_ACEOF
19978 #define STDC_HEADERS 1
19979 _ACEOF
19980
19981 fi
19982
19983
19984 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19985 if test "${ac_cv_header_stdint_h+set}" = set; then
19986   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19987 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19988 if test "${ac_cv_header_stdint_h+set}" = set; then
19989   echo $ECHO_N "(cached) $ECHO_C" >&6
19990 fi
19991 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19992 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
19993 else
19994   # Is the header compilable?
19995 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
19996 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
19997 cat >conftest.$ac_ext <<_ACEOF
19998 /* confdefs.h.  */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h.  */
20003 $ac_includes_default
20004 #include <stdint.h>
20005 _ACEOF
20006 rm -f conftest.$ac_objext
20007 if { (ac_try="$ac_compile"
20008 case "(($ac_try" in
20009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010   *) ac_try_echo=$ac_try;;
20011 esac
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013   (eval "$ac_compile") 2>conftest.er1
20014   ac_status=$?
20015   grep -v '^ *+' conftest.er1 >conftest.err
20016   rm -f conftest.er1
20017   cat conftest.err >&5
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); } && {
20020          test -z "$ac_c_werror_flag" ||
20021          test ! -s conftest.err
20022        } && test -s conftest.$ac_objext; then
20023   ac_header_compiler=yes
20024 else
20025   echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20027
20028         ac_header_compiler=no
20029 fi
20030
20031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20033 echo "${ECHO_T}$ac_header_compiler" >&6; }
20034
20035 # Is the header present?
20036 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20037 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20038 cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h.  */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h.  */
20044 #include <stdint.h>
20045 _ACEOF
20046 if { (ac_try="$ac_cpp conftest.$ac_ext"
20047 case "(($ac_try" in
20048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049   *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20053   ac_status=$?
20054   grep -v '^ *+' conftest.er1 >conftest.err
20055   rm -f conftest.er1
20056   cat conftest.err >&5
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); } >/dev/null && {
20059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20060          test ! -s conftest.err
20061        }; then
20062   ac_header_preproc=yes
20063 else
20064   echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20066
20067   ac_header_preproc=no
20068 fi
20069
20070 rm -f conftest.err conftest.$ac_ext
20071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20072 echo "${ECHO_T}$ac_header_preproc" >&6; }
20073
20074 # So?  What about this header?
20075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20076   yes:no: )
20077     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20078 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20079     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20080 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20081     ac_header_preproc=yes
20082     ;;
20083   no:yes:* )
20084     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20085 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20086     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20087 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20088     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20089 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20090     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20091 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20092     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20093 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20094     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20095 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20096     ( cat <<\_ASBOX
20097 ## ------------------------------------ ##
20098 ## Report this to opensource@google.com ##
20099 ## ------------------------------------ ##
20100 _ASBOX
20101      ) | sed "s/^/$as_me: WARNING:     /" >&2
20102     ;;
20103 esac
20104 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20105 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20106 if test "${ac_cv_header_stdint_h+set}" = set; then
20107   echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109   ac_cv_header_stdint_h=$ac_header_preproc
20110 fi
20111 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20112 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20113
20114 fi
20115 if test $ac_cv_header_stdint_h = yes; then
20116   ac_cv_have_stdint_h=1
20117 else
20118   ac_cv_have_stdint_h=0
20119 fi
20120
20121
20122 if test "${ac_cv_header_sys_types_h+set}" = set; then
20123   { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20124 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20125 if test "${ac_cv_header_sys_types_h+set}" = set; then
20126   echo $ECHO_N "(cached) $ECHO_C" >&6
20127 fi
20128 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20129 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20130 else
20131   # Is the header compilable?
20132 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20133 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20134 cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140 $ac_includes_default
20141 #include <sys/types.h>
20142 _ACEOF
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147   *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150   (eval "$ac_compile") 2>conftest.er1
20151   ac_status=$?
20152   grep -v '^ *+' conftest.er1 >conftest.err
20153   rm -f conftest.er1
20154   cat conftest.err >&5
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } && {
20157          test -z "$ac_c_werror_flag" ||
20158          test ! -s conftest.err
20159        } && test -s conftest.$ac_objext; then
20160   ac_header_compiler=yes
20161 else
20162   echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165         ac_header_compiler=no
20166 fi
20167
20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20170 echo "${ECHO_T}$ac_header_compiler" >&6; }
20171
20172 # Is the header present?
20173 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20174 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20175 cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h.  */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h.  */
20181 #include <sys/types.h>
20182 _ACEOF
20183 if { (ac_try="$ac_cpp conftest.$ac_ext"
20184 case "(($ac_try" in
20185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186   *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20190   ac_status=$?
20191   grep -v '^ *+' conftest.er1 >conftest.err
20192   rm -f conftest.er1
20193   cat conftest.err >&5
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } >/dev/null && {
20196          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20197          test ! -s conftest.err
20198        }; then
20199   ac_header_preproc=yes
20200 else
20201   echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204   ac_header_preproc=no
20205 fi
20206
20207 rm -f conftest.err conftest.$ac_ext
20208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20209 echo "${ECHO_T}$ac_header_preproc" >&6; }
20210
20211 # So?  What about this header?
20212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20213   yes:no: )
20214     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20215 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20216     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20217 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20218     ac_header_preproc=yes
20219     ;;
20220   no:yes:* )
20221     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20222 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20223     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20224 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20225     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20226 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20227     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20228 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20229     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20230 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20231     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20232 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20233     ( cat <<\_ASBOX
20234 ## ------------------------------------ ##
20235 ## Report this to opensource@google.com ##
20236 ## ------------------------------------ ##
20237 _ASBOX
20238      ) | sed "s/^/$as_me: WARNING:     /" >&2
20239     ;;
20240 esac
20241 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20242 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20243 if test "${ac_cv_header_sys_types_h+set}" = set; then
20244   echo $ECHO_N "(cached) $ECHO_C" >&6
20245 else
20246   ac_cv_header_sys_types_h=$ac_header_preproc
20247 fi
20248 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20249 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20250
20251 fi
20252 if test $ac_cv_header_sys_types_h = yes; then
20253   ac_cv_have_systypes_h=1
20254 else
20255   ac_cv_have_systypes_h=0
20256 fi
20257
20258
20259 if test "${ac_cv_header_inttypes_h+set}" = set; then
20260   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20261 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20262 if test "${ac_cv_header_inttypes_h+set}" = set; then
20263   echo $ECHO_N "(cached) $ECHO_C" >&6
20264 fi
20265 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20266 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20267 else
20268   # Is the header compilable?
20269 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20270 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20271 cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h.  */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h.  */
20277 $ac_includes_default
20278 #include <inttypes.h>
20279 _ACEOF
20280 rm -f conftest.$ac_objext
20281 if { (ac_try="$ac_compile"
20282 case "(($ac_try" in
20283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284   *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287   (eval "$ac_compile") 2>conftest.er1
20288   ac_status=$?
20289   grep -v '^ *+' conftest.er1 >conftest.err
20290   rm -f conftest.er1
20291   cat conftest.err >&5
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); } && {
20294          test -z "$ac_c_werror_flag" ||
20295          test ! -s conftest.err
20296        } && test -s conftest.$ac_objext; then
20297   ac_header_compiler=yes
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302         ac_header_compiler=no
20303 fi
20304
20305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20307 echo "${ECHO_T}$ac_header_compiler" >&6; }
20308
20309 # Is the header present?
20310 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20311 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20312 cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318 #include <inttypes.h>
20319 _ACEOF
20320 if { (ac_try="$ac_cpp conftest.$ac_ext"
20321 case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20327   ac_status=$?
20328   grep -v '^ *+' conftest.er1 >conftest.err
20329   rm -f conftest.er1
20330   cat conftest.err >&5
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } >/dev/null && {
20333          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20334          test ! -s conftest.err
20335        }; then
20336   ac_header_preproc=yes
20337 else
20338   echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20340
20341   ac_header_preproc=no
20342 fi
20343
20344 rm -f conftest.err conftest.$ac_ext
20345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20346 echo "${ECHO_T}$ac_header_preproc" >&6; }
20347
20348 # So?  What about this header?
20349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20350   yes:no: )
20351     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20352 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20353     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20354 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20355     ac_header_preproc=yes
20356     ;;
20357   no:yes:* )
20358     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20359 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20360     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20361 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20362     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20363 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20364     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20365 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20366     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20367 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20368     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20369 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20370     ( cat <<\_ASBOX
20371 ## ------------------------------------ ##
20372 ## Report this to opensource@google.com ##
20373 ## ------------------------------------ ##
20374 _ASBOX
20375      ) | sed "s/^/$as_me: WARNING:     /" >&2
20376     ;;
20377 esac
20378 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20379 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20380 if test "${ac_cv_header_inttypes_h+set}" = set; then
20381   echo $ECHO_N "(cached) $ECHO_C" >&6
20382 else
20383   ac_cv_header_inttypes_h=$ac_header_preproc
20384 fi
20385 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20386 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20387
20388 fi
20389 if test $ac_cv_header_inttypes_h = yes; then
20390   ac_cv_have_inttypes_h=1
20391 else
20392   ac_cv_have_inttypes_h=0
20393 fi
20394
20395
20396
20397 for ac_header in unistd.h
20398 do
20399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20401   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20404   echo $ECHO_N "(cached) $ECHO_C" >&6
20405 fi
20406 ac_res=`eval echo '${'$as_ac_Header'}'`
20407                { echo "$as_me:$LINENO: result: $ac_res" >&5
20408 echo "${ECHO_T}$ac_res" >&6; }
20409 else
20410   # Is the header compilable?
20411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20413 cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h.  */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h.  */
20419 $ac_includes_default
20420 #include <$ac_header>
20421 _ACEOF
20422 rm -f conftest.$ac_objext
20423 if { (ac_try="$ac_compile"
20424 case "(($ac_try" in
20425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426   *) ac_try_echo=$ac_try;;
20427 esac
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429   (eval "$ac_compile") 2>conftest.er1
20430   ac_status=$?
20431   grep -v '^ *+' conftest.er1 >conftest.err
20432   rm -f conftest.er1
20433   cat conftest.err >&5
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } && {
20436          test -z "$ac_c_werror_flag" ||
20437          test ! -s conftest.err
20438        } && test -s conftest.$ac_objext; then
20439   ac_header_compiler=yes
20440 else
20441   echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20443
20444         ac_header_compiler=no
20445 fi
20446
20447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20449 echo "${ECHO_T}$ac_header_compiler" >&6; }
20450
20451 # Is the header present?
20452 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20454 cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h.  */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h.  */
20460 #include <$ac_header>
20461 _ACEOF
20462 if { (ac_try="$ac_cpp conftest.$ac_ext"
20463 case "(($ac_try" in
20464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465   *) ac_try_echo=$ac_try;;
20466 esac
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20469   ac_status=$?
20470   grep -v '^ *+' conftest.er1 >conftest.err
20471   rm -f conftest.er1
20472   cat conftest.err >&5
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); } >/dev/null && {
20475          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20476          test ! -s conftest.err
20477        }; then
20478   ac_header_preproc=yes
20479 else
20480   echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483   ac_header_preproc=no
20484 fi
20485
20486 rm -f conftest.err conftest.$ac_ext
20487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20488 echo "${ECHO_T}$ac_header_preproc" >&6; }
20489
20490 # So?  What about this header?
20491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20492   yes:no: )
20493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20497     ac_header_preproc=yes
20498     ;;
20499   no:yes:* )
20500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20512     ( cat <<\_ASBOX
20513 ## ------------------------------------ ##
20514 ## Report this to opensource@google.com ##
20515 ## ------------------------------------ ##
20516 _ASBOX
20517      ) | sed "s/^/$as_me: WARNING:     /" >&2
20518     ;;
20519 esac
20520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 else
20525   eval "$as_ac_Header=\$ac_header_preproc"
20526 fi
20527 ac_res=`eval echo '${'$as_ac_Header'}'`
20528                { echo "$as_me:$LINENO: result: $ac_res" >&5
20529 echo "${ECHO_T}$ac_res" >&6; }
20530
20531 fi
20532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20533   cat >>confdefs.h <<_ACEOF
20534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20535 _ACEOF
20536  ac_cv_have_unistd_h=1
20537 else
20538   ac_cv_have_unistd_h=0
20539 fi
20540
20541 done
20542
20543
20544 for ac_header in syscall.h
20545 do
20546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20548   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20551   echo $ECHO_N "(cached) $ECHO_C" >&6
20552 fi
20553 ac_res=`eval echo '${'$as_ac_Header'}'`
20554                { echo "$as_me:$LINENO: result: $ac_res" >&5
20555 echo "${ECHO_T}$ac_res" >&6; }
20556 else
20557   # Is the header compilable?
20558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20560 cat >conftest.$ac_ext <<_ACEOF
20561 /* confdefs.h.  */
20562 _ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h.  */
20566 $ac_includes_default
20567 #include <$ac_header>
20568 _ACEOF
20569 rm -f conftest.$ac_objext
20570 if { (ac_try="$ac_compile"
20571 case "(($ac_try" in
20572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573   *) ac_try_echo=$ac_try;;
20574 esac
20575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20576   (eval "$ac_compile") 2>conftest.er1
20577   ac_status=$?
20578   grep -v '^ *+' conftest.er1 >conftest.err
20579   rm -f conftest.er1
20580   cat conftest.err >&5
20581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); } && {
20583          test -z "$ac_c_werror_flag" ||
20584          test ! -s conftest.err
20585        } && test -s conftest.$ac_objext; then
20586   ac_header_compiler=yes
20587 else
20588   echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591         ac_header_compiler=no
20592 fi
20593
20594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20596 echo "${ECHO_T}$ac_header_compiler" >&6; }
20597
20598 # Is the header present?
20599 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20601 cat >conftest.$ac_ext <<_ACEOF
20602 /* confdefs.h.  */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h.  */
20607 #include <$ac_header>
20608 _ACEOF
20609 if { (ac_try="$ac_cpp conftest.$ac_ext"
20610 case "(($ac_try" in
20611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612   *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20616   ac_status=$?
20617   grep -v '^ *+' conftest.er1 >conftest.err
20618   rm -f conftest.er1
20619   cat conftest.err >&5
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); } >/dev/null && {
20622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20623          test ! -s conftest.err
20624        }; then
20625   ac_header_preproc=yes
20626 else
20627   echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20629
20630   ac_header_preproc=no
20631 fi
20632
20633 rm -f conftest.err conftest.$ac_ext
20634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20635 echo "${ECHO_T}$ac_header_preproc" >&6; }
20636
20637 # So?  What about this header?
20638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20639   yes:no: )
20640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20644     ac_header_preproc=yes
20645     ;;
20646   no:yes:* )
20647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20659     ( cat <<\_ASBOX
20660 ## ------------------------------------ ##
20661 ## Report this to opensource@google.com ##
20662 ## ------------------------------------ ##
20663 _ASBOX
20664      ) | sed "s/^/$as_me: WARNING:     /" >&2
20665     ;;
20666 esac
20667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20670   echo $ECHO_N "(cached) $ECHO_C" >&6
20671 else
20672   eval "$as_ac_Header=\$ac_header_preproc"
20673 fi
20674 ac_res=`eval echo '${'$as_ac_Header'}'`
20675                { echo "$as_me:$LINENO: result: $ac_res" >&5
20676 echo "${ECHO_T}$ac_res" >&6; }
20677
20678 fi
20679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20680   cat >>confdefs.h <<_ACEOF
20681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20682 _ACEOF
20683
20684 fi
20685
20686 done
20687
20688
20689 for ac_header in sys/syscall.h
20690 do
20691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20693   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20696   echo $ECHO_N "(cached) $ECHO_C" >&6
20697 fi
20698 ac_res=`eval echo '${'$as_ac_Header'}'`
20699                { echo "$as_me:$LINENO: result: $ac_res" >&5
20700 echo "${ECHO_T}$ac_res" >&6; }
20701 else
20702   # Is the header compilable?
20703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20705 cat >conftest.$ac_ext <<_ACEOF
20706 /* confdefs.h.  */
20707 _ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h.  */
20711 $ac_includes_default
20712 #include <$ac_header>
20713 _ACEOF
20714 rm -f conftest.$ac_objext
20715 if { (ac_try="$ac_compile"
20716 case "(($ac_try" in
20717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718   *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721   (eval "$ac_compile") 2>conftest.er1
20722   ac_status=$?
20723   grep -v '^ *+' conftest.er1 >conftest.err
20724   rm -f conftest.er1
20725   cat conftest.err >&5
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); } && {
20728          test -z "$ac_c_werror_flag" ||
20729          test ! -s conftest.err
20730        } && test -s conftest.$ac_objext; then
20731   ac_header_compiler=yes
20732 else
20733   echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20735
20736         ac_header_compiler=no
20737 fi
20738
20739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20741 echo "${ECHO_T}$ac_header_compiler" >&6; }
20742
20743 # Is the header present?
20744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20746 cat >conftest.$ac_ext <<_ACEOF
20747 /* confdefs.h.  */
20748 _ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h.  */
20752 #include <$ac_header>
20753 _ACEOF
20754 if { (ac_try="$ac_cpp conftest.$ac_ext"
20755 case "(($ac_try" in
20756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757   *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20761   ac_status=$?
20762   grep -v '^ *+' conftest.er1 >conftest.err
20763   rm -f conftest.er1
20764   cat conftest.err >&5
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); } >/dev/null && {
20767          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20768          test ! -s conftest.err
20769        }; then
20770   ac_header_preproc=yes
20771 else
20772   echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20774
20775   ac_header_preproc=no
20776 fi
20777
20778 rm -f conftest.err conftest.$ac_ext
20779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20780 echo "${ECHO_T}$ac_header_preproc" >&6; }
20781
20782 # So?  What about this header?
20783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20784   yes:no: )
20785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20789     ac_header_preproc=yes
20790     ;;
20791   no:yes:* )
20792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20804     ( cat <<\_ASBOX
20805 ## ------------------------------------ ##
20806 ## Report this to opensource@google.com ##
20807 ## ------------------------------------ ##
20808 _ASBOX
20809      ) | sed "s/^/$as_me: WARNING:     /" >&2
20810     ;;
20811 esac
20812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20815   echo $ECHO_N "(cached) $ECHO_C" >&6
20816 else
20817   eval "$as_ac_Header=\$ac_header_preproc"
20818 fi
20819 ac_res=`eval echo '${'$as_ac_Header'}'`
20820                { echo "$as_me:$LINENO: result: $ac_res" >&5
20821 echo "${ECHO_T}$ac_res" >&6; }
20822
20823 fi
20824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20825   cat >>confdefs.h <<_ACEOF
20826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20827 _ACEOF
20828
20829 fi
20830
20831 done
20832
20833 # For backtrace with glibc.
20834
20835 for ac_header in execinfo.h
20836 do
20837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20842   echo $ECHO_N "(cached) $ECHO_C" >&6
20843 fi
20844 ac_res=`eval echo '${'$as_ac_Header'}'`
20845                { echo "$as_me:$LINENO: result: $ac_res" >&5
20846 echo "${ECHO_T}$ac_res" >&6; }
20847 else
20848   # Is the header compilable?
20849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20851 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h.  */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h.  */
20857 $ac_includes_default
20858 #include <$ac_header>
20859 _ACEOF
20860 rm -f conftest.$ac_objext
20861 if { (ac_try="$ac_compile"
20862 case "(($ac_try" in
20863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864   *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867   (eval "$ac_compile") 2>conftest.er1
20868   ac_status=$?
20869   grep -v '^ *+' conftest.er1 >conftest.err
20870   rm -f conftest.er1
20871   cat conftest.err >&5
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); } && {
20874          test -z "$ac_c_werror_flag" ||
20875          test ! -s conftest.err
20876        } && test -s conftest.$ac_objext; then
20877   ac_header_compiler=yes
20878 else
20879   echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20881
20882         ac_header_compiler=no
20883 fi
20884
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20887 echo "${ECHO_T}$ac_header_compiler" >&6; }
20888
20889 # Is the header present?
20890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20892 cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h.  */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h.  */
20898 #include <$ac_header>
20899 _ACEOF
20900 if { (ac_try="$ac_cpp conftest.$ac_ext"
20901 case "(($ac_try" in
20902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903   *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20907   ac_status=$?
20908   grep -v '^ *+' conftest.er1 >conftest.err
20909   rm -f conftest.er1
20910   cat conftest.err >&5
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); } >/dev/null && {
20913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20914          test ! -s conftest.err
20915        }; then
20916   ac_header_preproc=yes
20917 else
20918   echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921   ac_header_preproc=no
20922 fi
20923
20924 rm -f conftest.err conftest.$ac_ext
20925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20926 echo "${ECHO_T}$ac_header_preproc" >&6; }
20927
20928 # So?  What about this header?
20929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20930   yes:no: )
20931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20935     ac_header_preproc=yes
20936     ;;
20937   no:yes:* )
20938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20940     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20941 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20942     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20944     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20945 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20948     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20950     ( cat <<\_ASBOX
20951 ## ------------------------------------ ##
20952 ## Report this to opensource@google.com ##
20953 ## ------------------------------------ ##
20954 _ASBOX
20955      ) | sed "s/^/$as_me: WARNING:     /" >&2
20956     ;;
20957 esac
20958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20961   echo $ECHO_N "(cached) $ECHO_C" >&6
20962 else
20963   eval "$as_ac_Header=\$ac_header_preproc"
20964 fi
20965 ac_res=`eval echo '${'$as_ac_Header'}'`
20966                { echo "$as_me:$LINENO: result: $ac_res" >&5
20967 echo "${ECHO_T}$ac_res" >&6; }
20968
20969 fi
20970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20971   cat >>confdefs.h <<_ACEOF
20972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20973 _ACEOF
20974
20975 fi
20976
20977 done
20978
20979 # For backtrace with libunwind.
20980
20981 for ac_header in libunwind.h
20982 do
20983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20985   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20988   echo $ECHO_N "(cached) $ECHO_C" >&6
20989 fi
20990 ac_res=`eval echo '${'$as_ac_Header'}'`
20991                { echo "$as_me:$LINENO: result: $ac_res" >&5
20992 echo "${ECHO_T}$ac_res" >&6; }
20993 else
20994   # Is the header compilable?
20995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20997 cat >conftest.$ac_ext <<_ACEOF
20998 /* confdefs.h.  */
20999 _ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h.  */
21003 $ac_includes_default
21004 #include <$ac_header>
21005 _ACEOF
21006 rm -f conftest.$ac_objext
21007 if { (ac_try="$ac_compile"
21008 case "(($ac_try" in
21009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010   *) ac_try_echo=$ac_try;;
21011 esac
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013   (eval "$ac_compile") 2>conftest.er1
21014   ac_status=$?
21015   grep -v '^ *+' conftest.er1 >conftest.err
21016   rm -f conftest.er1
21017   cat conftest.err >&5
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); } && {
21020          test -z "$ac_c_werror_flag" ||
21021          test ! -s conftest.err
21022        } && test -s conftest.$ac_objext; then
21023   ac_header_compiler=yes
21024 else
21025   echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21027
21028         ac_header_compiler=no
21029 fi
21030
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21033 echo "${ECHO_T}$ac_header_compiler" >&6; }
21034
21035 # Is the header present?
21036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h.  */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h.  */
21044 #include <$ac_header>
21045 _ACEOF
21046 if { (ac_try="$ac_cpp conftest.$ac_ext"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } >/dev/null && {
21059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21060          test ! -s conftest.err
21061        }; then
21062   ac_header_preproc=yes
21063 else
21064   echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067   ac_header_preproc=no
21068 fi
21069
21070 rm -f conftest.err conftest.$ac_ext
21071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21072 echo "${ECHO_T}$ac_header_preproc" >&6; }
21073
21074 # So?  What about this header?
21075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21076   yes:no: )
21077     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21081     ac_header_preproc=yes
21082     ;;
21083   no:yes:* )
21084     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21086     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21087 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21088     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21090     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21091 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21094     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21096     ( cat <<\_ASBOX
21097 ## ------------------------------------ ##
21098 ## Report this to opensource@google.com ##
21099 ## ------------------------------------ ##
21100 _ASBOX
21101      ) | sed "s/^/$as_me: WARNING:     /" >&2
21102     ;;
21103 esac
21104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21107   echo $ECHO_N "(cached) $ECHO_C" >&6
21108 else
21109   eval "$as_ac_Header=\$ac_header_preproc"
21110 fi
21111 ac_res=`eval echo '${'$as_ac_Header'}'`
21112                { echo "$as_me:$LINENO: result: $ac_res" >&5
21113 echo "${ECHO_T}$ac_res" >&6; }
21114
21115 fi
21116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21117   cat >>confdefs.h <<_ACEOF
21118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21119 _ACEOF
21120
21121 fi
21122
21123 done
21124
21125
21126 for ac_header in ucontext.h
21127 do
21128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21130   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 fi
21135 ac_res=`eval echo '${'$as_ac_Header'}'`
21136                { echo "$as_me:$LINENO: result: $ac_res" >&5
21137 echo "${ECHO_T}$ac_res" >&6; }
21138 else
21139   # Is the header compilable?
21140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21142 cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h.  */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h.  */
21148 $ac_includes_default
21149 #include <$ac_header>
21150 _ACEOF
21151 rm -f conftest.$ac_objext
21152 if { (ac_try="$ac_compile"
21153 case "(($ac_try" in
21154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155   *) ac_try_echo=$ac_try;;
21156 esac
21157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21158   (eval "$ac_compile") 2>conftest.er1
21159   ac_status=$?
21160   grep -v '^ *+' conftest.er1 >conftest.err
21161   rm -f conftest.er1
21162   cat conftest.err >&5
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); } && {
21165          test -z "$ac_c_werror_flag" ||
21166          test ! -s conftest.err
21167        } && test -s conftest.$ac_objext; then
21168   ac_header_compiler=yes
21169 else
21170   echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21172
21173         ac_header_compiler=no
21174 fi
21175
21176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21178 echo "${ECHO_T}$ac_header_compiler" >&6; }
21179
21180 # Is the header present?
21181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21183 cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h.  */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h.  */
21189 #include <$ac_header>
21190 _ACEOF
21191 if { (ac_try="$ac_cpp conftest.$ac_ext"
21192 case "(($ac_try" in
21193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194   *) ac_try_echo=$ac_try;;
21195 esac
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21198   ac_status=$?
21199   grep -v '^ *+' conftest.er1 >conftest.err
21200   rm -f conftest.er1
21201   cat conftest.err >&5
21202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203   (exit $ac_status); } >/dev/null && {
21204          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21205          test ! -s conftest.err
21206        }; then
21207   ac_header_preproc=yes
21208 else
21209   echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212   ac_header_preproc=no
21213 fi
21214
21215 rm -f conftest.err conftest.$ac_ext
21216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21217 echo "${ECHO_T}$ac_header_preproc" >&6; }
21218
21219 # So?  What about this header?
21220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21221   yes:no: )
21222     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21226     ac_header_preproc=yes
21227     ;;
21228   no:yes:* )
21229     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21231     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21232 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21233     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21235     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21236 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21239     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21241     ( cat <<\_ASBOX
21242 ## ------------------------------------ ##
21243 ## Report this to opensource@google.com ##
21244 ## ------------------------------------ ##
21245 _ASBOX
21246      ) | sed "s/^/$as_me: WARNING:     /" >&2
21247     ;;
21248 esac
21249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21252   echo $ECHO_N "(cached) $ECHO_C" >&6
21253 else
21254   eval "$as_ac_Header=\$ac_header_preproc"
21255 fi
21256 ac_res=`eval echo '${'$as_ac_Header'}'`
21257                { echo "$as_me:$LINENO: result: $ac_res" >&5
21258 echo "${ECHO_T}$ac_res" >&6; }
21259
21260 fi
21261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21262   cat >>confdefs.h <<_ACEOF
21263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21264 _ACEOF
21265
21266 fi
21267
21268 done
21269
21270
21271 for ac_header in sys/utsname.h
21272 do
21273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21275   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21278   echo $ECHO_N "(cached) $ECHO_C" >&6
21279 fi
21280 ac_res=`eval echo '${'$as_ac_Header'}'`
21281                { echo "$as_me:$LINENO: result: $ac_res" >&5
21282 echo "${ECHO_T}$ac_res" >&6; }
21283 else
21284   # Is the header compilable?
21285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h.  */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h.  */
21293 $ac_includes_default
21294 #include <$ac_header>
21295 _ACEOF
21296 rm -f conftest.$ac_objext
21297 if { (ac_try="$ac_compile"
21298 case "(($ac_try" in
21299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300   *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303   (eval "$ac_compile") 2>conftest.er1
21304   ac_status=$?
21305   grep -v '^ *+' conftest.er1 >conftest.err
21306   rm -f conftest.er1
21307   cat conftest.err >&5
21308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309   (exit $ac_status); } && {
21310          test -z "$ac_c_werror_flag" ||
21311          test ! -s conftest.err
21312        } && test -s conftest.$ac_objext; then
21313   ac_header_compiler=yes
21314 else
21315   echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21317
21318         ac_header_compiler=no
21319 fi
21320
21321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21323 echo "${ECHO_T}$ac_header_compiler" >&6; }
21324
21325 # Is the header present?
21326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21328 cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h.  */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h.  */
21334 #include <$ac_header>
21335 _ACEOF
21336 if { (ac_try="$ac_cpp conftest.$ac_ext"
21337 case "(($ac_try" in
21338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339   *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21343   ac_status=$?
21344   grep -v '^ *+' conftest.er1 >conftest.err
21345   rm -f conftest.er1
21346   cat conftest.err >&5
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); } >/dev/null && {
21349          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21350          test ! -s conftest.err
21351        }; then
21352   ac_header_preproc=yes
21353 else
21354   echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21356
21357   ac_header_preproc=no
21358 fi
21359
21360 rm -f conftest.err conftest.$ac_ext
21361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21362 echo "${ECHO_T}$ac_header_preproc" >&6; }
21363
21364 # So?  What about this header?
21365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21366   yes:no: )
21367     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21371     ac_header_preproc=yes
21372     ;;
21373   no:yes:* )
21374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21376     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21377 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21378     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21380     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21381 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21384     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21386     ( cat <<\_ASBOX
21387 ## ------------------------------------ ##
21388 ## Report this to opensource@google.com ##
21389 ## ------------------------------------ ##
21390 _ASBOX
21391      ) | sed "s/^/$as_me: WARNING:     /" >&2
21392     ;;
21393 esac
21394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21397   echo $ECHO_N "(cached) $ECHO_C" >&6
21398 else
21399   eval "$as_ac_Header=\$ac_header_preproc"
21400 fi
21401 ac_res=`eval echo '${'$as_ac_Header'}'`
21402                { echo "$as_me:$LINENO: result: $ac_res" >&5
21403 echo "${ECHO_T}$ac_res" >&6; }
21404
21405 fi
21406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21407   cat >>confdefs.h <<_ACEOF
21408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21409 _ACEOF
21410
21411 fi
21412
21413 done
21414
21415
21416 for ac_header in pwd.h
21417 do
21418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21423   echo $ECHO_N "(cached) $ECHO_C" >&6
21424 fi
21425 ac_res=`eval echo '${'$as_ac_Header'}'`
21426                { echo "$as_me:$LINENO: result: $ac_res" >&5
21427 echo "${ECHO_T}$ac_res" >&6; }
21428 else
21429   # Is the header compilable?
21430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h.  */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h.  */
21438 $ac_includes_default
21439 #include <$ac_header>
21440 _ACEOF
21441 rm -f conftest.$ac_objext
21442 if { (ac_try="$ac_compile"
21443 case "(($ac_try" in
21444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445   *) ac_try_echo=$ac_try;;
21446 esac
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448   (eval "$ac_compile") 2>conftest.er1
21449   ac_status=$?
21450   grep -v '^ *+' conftest.er1 >conftest.err
21451   rm -f conftest.er1
21452   cat conftest.err >&5
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); } && {
21455          test -z "$ac_c_werror_flag" ||
21456          test ! -s conftest.err
21457        } && test -s conftest.$ac_objext; then
21458   ac_header_compiler=yes
21459 else
21460   echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21462
21463         ac_header_compiler=no
21464 fi
21465
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21468 echo "${ECHO_T}$ac_header_compiler" >&6; }
21469
21470 # Is the header present?
21471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21473 cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 #include <$ac_header>
21480 _ACEOF
21481 if { (ac_try="$ac_cpp conftest.$ac_ext"
21482 case "(($ac_try" in
21483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484   *) ac_try_echo=$ac_try;;
21485 esac
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21488   ac_status=$?
21489   grep -v '^ *+' conftest.er1 >conftest.err
21490   rm -f conftest.er1
21491   cat conftest.err >&5
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); } >/dev/null && {
21494          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21495          test ! -s conftest.err
21496        }; then
21497   ac_header_preproc=yes
21498 else
21499   echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21501
21502   ac_header_preproc=no
21503 fi
21504
21505 rm -f conftest.err conftest.$ac_ext
21506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21507 echo "${ECHO_T}$ac_header_preproc" >&6; }
21508
21509 # So?  What about this header?
21510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21511   yes:no: )
21512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21516     ac_header_preproc=yes
21517     ;;
21518   no:yes:* )
21519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21531     ( cat <<\_ASBOX
21532 ## ------------------------------------ ##
21533 ## Report this to opensource@google.com ##
21534 ## ------------------------------------ ##
21535 _ASBOX
21536      ) | sed "s/^/$as_me: WARNING:     /" >&2
21537     ;;
21538 esac
21539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21542   echo $ECHO_N "(cached) $ECHO_C" >&6
21543 else
21544   eval "$as_ac_Header=\$ac_header_preproc"
21545 fi
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547                { echo "$as_me:$LINENO: result: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21549
21550 fi
21551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21552   cat >>confdefs.h <<_ACEOF
21553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21554 _ACEOF
21555
21556 fi
21557
21558 done
21559
21560
21561 for ac_header in syslog.h
21562 do
21563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21565   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21568   echo $ECHO_N "(cached) $ECHO_C" >&6
21569 fi
21570 ac_res=`eval echo '${'$as_ac_Header'}'`
21571                { echo "$as_me:$LINENO: result: $ac_res" >&5
21572 echo "${ECHO_T}$ac_res" >&6; }
21573 else
21574   # Is the header compilable?
21575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21577 cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h.  */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h.  */
21583 $ac_includes_default
21584 #include <$ac_header>
21585 _ACEOF
21586 rm -f conftest.$ac_objext
21587 if { (ac_try="$ac_compile"
21588 case "(($ac_try" in
21589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590   *) ac_try_echo=$ac_try;;
21591 esac
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593   (eval "$ac_compile") 2>conftest.er1
21594   ac_status=$?
21595   grep -v '^ *+' conftest.er1 >conftest.err
21596   rm -f conftest.er1
21597   cat conftest.err >&5
21598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599   (exit $ac_status); } && {
21600          test -z "$ac_c_werror_flag" ||
21601          test ! -s conftest.err
21602        } && test -s conftest.$ac_objext; then
21603   ac_header_compiler=yes
21604 else
21605   echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21607
21608         ac_header_compiler=no
21609 fi
21610
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21613 echo "${ECHO_T}$ac_header_compiler" >&6; }
21614
21615 # Is the header present?
21616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21618 cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 #include <$ac_header>
21625 _ACEOF
21626 if { (ac_try="$ac_cpp conftest.$ac_ext"
21627 case "(($ac_try" in
21628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629   *) ac_try_echo=$ac_try;;
21630 esac
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21633   ac_status=$?
21634   grep -v '^ *+' conftest.er1 >conftest.err
21635   rm -f conftest.er1
21636   cat conftest.err >&5
21637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638   (exit $ac_status); } >/dev/null && {
21639          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21640          test ! -s conftest.err
21641        }; then
21642   ac_header_preproc=yes
21643 else
21644   echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21646
21647   ac_header_preproc=no
21648 fi
21649
21650 rm -f conftest.err conftest.$ac_ext
21651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21652 echo "${ECHO_T}$ac_header_preproc" >&6; }
21653
21654 # So?  What about this header?
21655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21656   yes:no: )
21657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21661     ac_header_preproc=yes
21662     ;;
21663   no:yes:* )
21664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21676     ( cat <<\_ASBOX
21677 ## ------------------------------------ ##
21678 ## Report this to opensource@google.com ##
21679 ## ------------------------------------ ##
21680 _ASBOX
21681      ) | sed "s/^/$as_me: WARNING:     /" >&2
21682     ;;
21683 esac
21684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21687   echo $ECHO_N "(cached) $ECHO_C" >&6
21688 else
21689   eval "$as_ac_Header=\$ac_header_preproc"
21690 fi
21691 ac_res=`eval echo '${'$as_ac_Header'}'`
21692                { echo "$as_me:$LINENO: result: $ac_res" >&5
21693 echo "${ECHO_T}$ac_res" >&6; }
21694
21695 fi
21696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21697   cat >>confdefs.h <<_ACEOF
21698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21699 _ACEOF
21700
21701 fi
21702
21703 done
21704
21705
21706 for ac_header in sys/time.h
21707 do
21708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21713   echo $ECHO_N "(cached) $ECHO_C" >&6
21714 fi
21715 ac_res=`eval echo '${'$as_ac_Header'}'`
21716                { echo "$as_me:$LINENO: result: $ac_res" >&5
21717 echo "${ECHO_T}$ac_res" >&6; }
21718 else
21719   # Is the header compilable?
21720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21722 cat >conftest.$ac_ext <<_ACEOF
21723 /* confdefs.h.  */
21724 _ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h.  */
21728 $ac_includes_default
21729 #include <$ac_header>
21730 _ACEOF
21731 rm -f conftest.$ac_objext
21732 if { (ac_try="$ac_compile"
21733 case "(($ac_try" in
21734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735   *) ac_try_echo=$ac_try;;
21736 esac
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738   (eval "$ac_compile") 2>conftest.er1
21739   ac_status=$?
21740   grep -v '^ *+' conftest.er1 >conftest.err
21741   rm -f conftest.er1
21742   cat conftest.err >&5
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); } && {
21745          test -z "$ac_c_werror_flag" ||
21746          test ! -s conftest.err
21747        } && test -s conftest.$ac_objext; then
21748   ac_header_compiler=yes
21749 else
21750   echo "$as_me: failed program was:" >&5
21751 sed 's/^/| /' conftest.$ac_ext >&5
21752
21753         ac_header_compiler=no
21754 fi
21755
21756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21758 echo "${ECHO_T}$ac_header_compiler" >&6; }
21759
21760 # Is the header present?
21761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21763 cat >conftest.$ac_ext <<_ACEOF
21764 /* confdefs.h.  */
21765 _ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h.  */
21769 #include <$ac_header>
21770 _ACEOF
21771 if { (ac_try="$ac_cpp conftest.$ac_ext"
21772 case "(($ac_try" in
21773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774   *) ac_try_echo=$ac_try;;
21775 esac
21776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21778   ac_status=$?
21779   grep -v '^ *+' conftest.er1 >conftest.err
21780   rm -f conftest.er1
21781   cat conftest.err >&5
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); } >/dev/null && {
21784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21785          test ! -s conftest.err
21786        }; then
21787   ac_header_preproc=yes
21788 else
21789   echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21791
21792   ac_header_preproc=no
21793 fi
21794
21795 rm -f conftest.err conftest.$ac_ext
21796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21797 echo "${ECHO_T}$ac_header_preproc" >&6; }
21798
21799 # So?  What about this header?
21800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21801   yes:no: )
21802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21806     ac_header_preproc=yes
21807     ;;
21808   no:yes:* )
21809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21821     ( cat <<\_ASBOX
21822 ## ------------------------------------ ##
21823 ## Report this to opensource@google.com ##
21824 ## ------------------------------------ ##
21825 _ASBOX
21826      ) | sed "s/^/$as_me: WARNING:     /" >&2
21827     ;;
21828 esac
21829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21832   echo $ECHO_N "(cached) $ECHO_C" >&6
21833 else
21834   eval "$as_ac_Header=\$ac_header_preproc"
21835 fi
21836 ac_res=`eval echo '${'$as_ac_Header'}'`
21837                { echo "$as_me:$LINENO: result: $ac_res" >&5
21838 echo "${ECHO_T}$ac_res" >&6; }
21839
21840 fi
21841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21842   cat >>confdefs.h <<_ACEOF
21843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21844 _ACEOF
21845
21846 fi
21847
21848 done
21849
21850
21851 for ac_header in glob.h
21852 do
21853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21855   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21858   echo $ECHO_N "(cached) $ECHO_C" >&6
21859 fi
21860 ac_res=`eval echo '${'$as_ac_Header'}'`
21861                { echo "$as_me:$LINENO: result: $ac_res" >&5
21862 echo "${ECHO_T}$ac_res" >&6; }
21863 else
21864   # Is the header compilable?
21865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21867 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h.  */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h.  */
21873 $ac_includes_default
21874 #include <$ac_header>
21875 _ACEOF
21876 rm -f conftest.$ac_objext
21877 if { (ac_try="$ac_compile"
21878 case "(($ac_try" in
21879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880   *) ac_try_echo=$ac_try;;
21881 esac
21882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883   (eval "$ac_compile") 2>conftest.er1
21884   ac_status=$?
21885   grep -v '^ *+' conftest.er1 >conftest.err
21886   rm -f conftest.er1
21887   cat conftest.err >&5
21888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889   (exit $ac_status); } && {
21890          test -z "$ac_c_werror_flag" ||
21891          test ! -s conftest.err
21892        } && test -s conftest.$ac_objext; then
21893   ac_header_compiler=yes
21894 else
21895   echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21897
21898         ac_header_compiler=no
21899 fi
21900
21901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21903 echo "${ECHO_T}$ac_header_compiler" >&6; }
21904
21905 # Is the header present?
21906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21908 cat >conftest.$ac_ext <<_ACEOF
21909 /* confdefs.h.  */
21910 _ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h.  */
21914 #include <$ac_header>
21915 _ACEOF
21916 if { (ac_try="$ac_cpp conftest.$ac_ext"
21917 case "(($ac_try" in
21918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21919   *) ac_try_echo=$ac_try;;
21920 esac
21921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21923   ac_status=$?
21924   grep -v '^ *+' conftest.er1 >conftest.err
21925   rm -f conftest.er1
21926   cat conftest.err >&5
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); } >/dev/null && {
21929          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21930          test ! -s conftest.err
21931        }; then
21932   ac_header_preproc=yes
21933 else
21934   echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21936
21937   ac_header_preproc=no
21938 fi
21939
21940 rm -f conftest.err conftest.$ac_ext
21941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21942 echo "${ECHO_T}$ac_header_preproc" >&6; }
21943
21944 # So?  What about this header?
21945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21946   yes:no: )
21947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21951     ac_header_preproc=yes
21952     ;;
21953   no:yes:* )
21954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21966     ( cat <<\_ASBOX
21967 ## ------------------------------------ ##
21968 ## Report this to opensource@google.com ##
21969 ## ------------------------------------ ##
21970 _ASBOX
21971      ) | sed "s/^/$as_me: WARNING:     /" >&2
21972     ;;
21973 esac
21974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21977   echo $ECHO_N "(cached) $ECHO_C" >&6
21978 else
21979   eval "$as_ac_Header=\$ac_header_preproc"
21980 fi
21981 ac_res=`eval echo '${'$as_ac_Header'}'`
21982                { echo "$as_me:$LINENO: result: $ac_res" >&5
21983 echo "${ECHO_T}$ac_res" >&6; }
21984
21985 fi
21986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21987   cat >>confdefs.h <<_ACEOF
21988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21989 _ACEOF
21990
21991 fi
21992
21993 done
21994
21995
21996 { echo "$as_me:$LINENO: checking for void *" >&5
21997 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21998 if test "${ac_cv_type_void_p+set}" = set; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001   cat >conftest.$ac_ext <<_ACEOF
22002 /* confdefs.h.  */
22003 _ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h.  */
22007 $ac_includes_default
22008 typedef void * ac__type_new_;
22009 int
22010 main ()
22011 {
22012 if ((ac__type_new_ *) 0)
22013   return 0;
22014 if (sizeof (ac__type_new_))
22015   return 0;
22016   ;
22017   return 0;
22018 }
22019 _ACEOF
22020 rm -f conftest.$ac_objext
22021 if { (ac_try="$ac_compile"
22022 case "(($ac_try" in
22023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024   *) ac_try_echo=$ac_try;;
22025 esac
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027   (eval "$ac_compile") 2>conftest.er1
22028   ac_status=$?
22029   grep -v '^ *+' conftest.er1 >conftest.err
22030   rm -f conftest.er1
22031   cat conftest.err >&5
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); } && {
22034          test -z "$ac_c_werror_flag" ||
22035          test ! -s conftest.err
22036        } && test -s conftest.$ac_objext; then
22037   ac_cv_type_void_p=yes
22038 else
22039   echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042         ac_cv_type_void_p=no
22043 fi
22044
22045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046 fi
22047 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22048 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22049
22050 # The cast to long int works around a bug in the HP C Compiler
22051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22053 # This bug is HP SR number 8606223364.
22054 { echo "$as_me:$LINENO: checking size of void *" >&5
22055 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22056 if test "${ac_cv_sizeof_void_p+set}" = set; then
22057   echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22059   if test "$cross_compiling" = yes; then
22060   # Depending upon the size, compute the lo and hi bounds.
22061 cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h.  */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h.  */
22067 $ac_includes_default
22068    typedef void * ac__type_sizeof_;
22069 int
22070 main ()
22071 {
22072 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22073 test_array [0] = 0
22074
22075   ;
22076   return 0;
22077 }
22078 _ACEOF
22079 rm -f conftest.$ac_objext
22080 if { (ac_try="$ac_compile"
22081 case "(($ac_try" in
22082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083   *) ac_try_echo=$ac_try;;
22084 esac
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086   (eval "$ac_compile") 2>conftest.er1
22087   ac_status=$?
22088   grep -v '^ *+' conftest.er1 >conftest.err
22089   rm -f conftest.er1
22090   cat conftest.err >&5
22091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092   (exit $ac_status); } && {
22093          test -z "$ac_c_werror_flag" ||
22094          test ! -s conftest.err
22095        } && test -s conftest.$ac_objext; then
22096   ac_lo=0 ac_mid=0
22097   while :; do
22098     cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h.  */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h.  */
22104 $ac_includes_default
22105    typedef void * ac__type_sizeof_;
22106 int
22107 main ()
22108 {
22109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22110 test_array [0] = 0
22111
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext
22117 if { (ac_try="$ac_compile"
22118 case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123   (eval "$ac_compile") 2>conftest.er1
22124   ac_status=$?
22125   grep -v '^ *+' conftest.er1 >conftest.err
22126   rm -f conftest.er1
22127   cat conftest.err >&5
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); } && {
22130          test -z "$ac_c_werror_flag" ||
22131          test ! -s conftest.err
22132        } && test -s conftest.$ac_objext; then
22133   ac_hi=$ac_mid; break
22134 else
22135   echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138         ac_lo=`expr $ac_mid + 1`
22139                         if test $ac_lo -le $ac_mid; then
22140                           ac_lo= ac_hi=
22141                           break
22142                         fi
22143                         ac_mid=`expr 2 '*' $ac_mid + 1`
22144 fi
22145
22146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147   done
22148 else
22149   echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152         cat >conftest.$ac_ext <<_ACEOF
22153 /* confdefs.h.  */
22154 _ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h.  */
22158 $ac_includes_default
22159    typedef void * ac__type_sizeof_;
22160 int
22161 main ()
22162 {
22163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22164 test_array [0] = 0
22165
22166   ;
22167   return 0;
22168 }
22169 _ACEOF
22170 rm -f conftest.$ac_objext
22171 if { (ac_try="$ac_compile"
22172 case "(($ac_try" in
22173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174   *) ac_try_echo=$ac_try;;
22175 esac
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177   (eval "$ac_compile") 2>conftest.er1
22178   ac_status=$?
22179   grep -v '^ *+' conftest.er1 >conftest.err
22180   rm -f conftest.er1
22181   cat conftest.err >&5
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); } && {
22184          test -z "$ac_c_werror_flag" ||
22185          test ! -s conftest.err
22186        } && test -s conftest.$ac_objext; then
22187   ac_hi=-1 ac_mid=-1
22188   while :; do
22189     cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h.  */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h.  */
22195 $ac_includes_default
22196    typedef void * ac__type_sizeof_;
22197 int
22198 main ()
22199 {
22200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22201 test_array [0] = 0
22202
22203   ;
22204   return 0;
22205 }
22206 _ACEOF
22207 rm -f conftest.$ac_objext
22208 if { (ac_try="$ac_compile"
22209 case "(($ac_try" in
22210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211   *) ac_try_echo=$ac_try;;
22212 esac
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214   (eval "$ac_compile") 2>conftest.er1
22215   ac_status=$?
22216   grep -v '^ *+' conftest.er1 >conftest.err
22217   rm -f conftest.er1
22218   cat conftest.err >&5
22219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220   (exit $ac_status); } && {
22221          test -z "$ac_c_werror_flag" ||
22222          test ! -s conftest.err
22223        } && test -s conftest.$ac_objext; then
22224   ac_lo=$ac_mid; break
22225 else
22226   echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229         ac_hi=`expr '(' $ac_mid ')' - 1`
22230                         if test $ac_mid -le $ac_hi; then
22231                           ac_lo= ac_hi=
22232                           break
22233                         fi
22234                         ac_mid=`expr 2 '*' $ac_mid`
22235 fi
22236
22237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22238   done
22239 else
22240   echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22242
22243         ac_lo= ac_hi=
22244 fi
22245
22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22247 fi
22248
22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250 # Binary search between lo and hi bounds.
22251 while test "x$ac_lo" != "x$ac_hi"; do
22252   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22253   cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h.  */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h.  */
22259 $ac_includes_default
22260    typedef void * ac__type_sizeof_;
22261 int
22262 main ()
22263 {
22264 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22265 test_array [0] = 0
22266
22267   ;
22268   return 0;
22269 }
22270 _ACEOF
22271 rm -f conftest.$ac_objext
22272 if { (ac_try="$ac_compile"
22273 case "(($ac_try" in
22274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275   *) ac_try_echo=$ac_try;;
22276 esac
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278   (eval "$ac_compile") 2>conftest.er1
22279   ac_status=$?
22280   grep -v '^ *+' conftest.er1 >conftest.err
22281   rm -f conftest.er1
22282   cat conftest.err >&5
22283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284   (exit $ac_status); } && {
22285          test -z "$ac_c_werror_flag" ||
22286          test ! -s conftest.err
22287        } && test -s conftest.$ac_objext; then
22288   ac_hi=$ac_mid
22289 else
22290   echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22292
22293         ac_lo=`expr '(' $ac_mid ')' + 1`
22294 fi
22295
22296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22297 done
22298 case $ac_lo in
22299 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22300 '') if test "$ac_cv_type_void_p" = yes; then
22301      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22302 See \`config.log' for more details." >&5
22303 echo "$as_me: error: cannot compute sizeof (void *)
22304 See \`config.log' for more details." >&2;}
22305    { (exit 77); exit 77; }; }
22306    else
22307      ac_cv_sizeof_void_p=0
22308    fi ;;
22309 esac
22310 else
22311   cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h.  */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h.  */
22317 $ac_includes_default
22318    typedef void * ac__type_sizeof_;
22319 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22320 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22321 #include <stdio.h>
22322 #include <stdlib.h>
22323 int
22324 main ()
22325 {
22326
22327   FILE *f = fopen ("conftest.val", "w");
22328   if (! f)
22329     return 1;
22330   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22331     {
22332       long int i = longval ();
22333       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22334         return 1;
22335       fprintf (f, "%ld\n", i);
22336     }
22337   else
22338     {
22339       unsigned long int i = ulongval ();
22340       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22341         return 1;
22342       fprintf (f, "%lu\n", i);
22343     }
22344   return ferror (f) || fclose (f) != 0;
22345
22346   ;
22347   return 0;
22348 }
22349 _ACEOF
22350 rm -f conftest$ac_exeext
22351 if { (ac_try="$ac_link"
22352 case "(($ac_try" in
22353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354   *) ac_try_echo=$ac_try;;
22355 esac
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357   (eval "$ac_link") 2>&5
22358   ac_status=$?
22359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22361   { (case "(($ac_try" in
22362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363   *) ac_try_echo=$ac_try;;
22364 esac
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366   (eval "$ac_try") 2>&5
22367   ac_status=$?
22368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); }; }; then
22370   ac_cv_sizeof_void_p=`cat conftest.val`
22371 else
22372   echo "$as_me: program exited with status $ac_status" >&5
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22375
22376 ( exit $ac_status )
22377 if test "$ac_cv_type_void_p" = yes; then
22378      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22379 See \`config.log' for more details." >&5
22380 echo "$as_me: error: cannot compute sizeof (void *)
22381 See \`config.log' for more details." >&2;}
22382    { (exit 77); exit 77; }; }
22383    else
22384      ac_cv_sizeof_void_p=0
22385    fi
22386 fi
22387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22388 fi
22389 rm -f conftest.val
22390 fi
22391 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22392 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22393
22394
22395
22396 cat >>confdefs.h <<_ACEOF
22397 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22398 _ACEOF
22399
22400
22401
22402 # These are the types I need.  We look for them in either stdint.h,
22403 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
22404 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22405 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22406 if test "${ac_cv_type_uint16_t+set}" = set; then
22407   echo $ECHO_N "(cached) $ECHO_C" >&6
22408 else
22409   cat >conftest.$ac_ext <<_ACEOF
22410 /* confdefs.h.  */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h.  */
22415 $ac_includes_default
22416 typedef uint16_t ac__type_new_;
22417 int
22418 main ()
22419 {
22420 if ((ac__type_new_ *) 0)
22421   return 0;
22422 if (sizeof (ac__type_new_))
22423   return 0;
22424   ;
22425   return 0;
22426 }
22427 _ACEOF
22428 rm -f conftest.$ac_objext
22429 if { (ac_try="$ac_compile"
22430 case "(($ac_try" in
22431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432   *) ac_try_echo=$ac_try;;
22433 esac
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435   (eval "$ac_compile") 2>conftest.er1
22436   ac_status=$?
22437   grep -v '^ *+' conftest.er1 >conftest.err
22438   rm -f conftest.er1
22439   cat conftest.err >&5
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); } && {
22442          test -z "$ac_c_werror_flag" ||
22443          test ! -s conftest.err
22444        } && test -s conftest.$ac_objext; then
22445   ac_cv_type_uint16_t=yes
22446 else
22447   echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22449
22450         ac_cv_type_uint16_t=no
22451 fi
22452
22453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22454 fi
22455 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22456 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22457 if test $ac_cv_type_uint16_t = yes; then
22458   ac_cv_have_uint16_t=1
22459 else
22460   ac_cv_have_uint16_t=0
22461 fi
22462
22463 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
22464 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
22465 if test "${ac_cv_type_u_int16_t+set}" = set; then
22466   echo $ECHO_N "(cached) $ECHO_C" >&6
22467 else
22468   cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474 $ac_includes_default
22475 typedef u_int16_t ac__type_new_;
22476 int
22477 main ()
22478 {
22479 if ((ac__type_new_ *) 0)
22480   return 0;
22481 if (sizeof (ac__type_new_))
22482   return 0;
22483   ;
22484   return 0;
22485 }
22486 _ACEOF
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491   *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494   (eval "$ac_compile") 2>conftest.er1
22495   ac_status=$?
22496   grep -v '^ *+' conftest.er1 >conftest.err
22497   rm -f conftest.er1
22498   cat conftest.err >&5
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); } && {
22501          test -z "$ac_c_werror_flag" ||
22502          test ! -s conftest.err
22503        } && test -s conftest.$ac_objext; then
22504   ac_cv_type_u_int16_t=yes
22505 else
22506   echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22508
22509         ac_cv_type_u_int16_t=no
22510 fi
22511
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 fi
22514 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
22515 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
22516 if test $ac_cv_type_u_int16_t = yes; then
22517   ac_cv_have_u_int16_t=1
22518 else
22519   ac_cv_have_u_int16_t=0
22520 fi
22521
22522 { echo "$as_me:$LINENO: checking for __uint16" >&5
22523 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
22524 if test "${ac_cv_type___uint16+set}" = set; then
22525   echo $ECHO_N "(cached) $ECHO_C" >&6
22526 else
22527   cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h.  */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h.  */
22533 $ac_includes_default
22534 typedef __uint16 ac__type_new_;
22535 int
22536 main ()
22537 {
22538 if ((ac__type_new_ *) 0)
22539   return 0;
22540 if (sizeof (ac__type_new_))
22541   return 0;
22542   ;
22543   return 0;
22544 }
22545 _ACEOF
22546 rm -f conftest.$ac_objext
22547 if { (ac_try="$ac_compile"
22548 case "(($ac_try" in
22549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550   *) ac_try_echo=$ac_try;;
22551 esac
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553   (eval "$ac_compile") 2>conftest.er1
22554   ac_status=$?
22555   grep -v '^ *+' conftest.er1 >conftest.err
22556   rm -f conftest.er1
22557   cat conftest.err >&5
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); } && {
22560          test -z "$ac_c_werror_flag" ||
22561          test ! -s conftest.err
22562        } && test -s conftest.$ac_objext; then
22563   ac_cv_type___uint16=yes
22564 else
22565   echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22567
22568         ac_cv_type___uint16=no
22569 fi
22570
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572 fi
22573 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
22574 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
22575 if test $ac_cv_type___uint16 = yes; then
22576   ac_cv_have___uint16=1
22577 else
22578   ac_cv_have___uint16=0
22579 fi
22580
22581
22582 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
22583 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
22584 if test "${ac_cv_func_sigaltstack+set}" = set; then
22585   echo $ECHO_N "(cached) $ECHO_C" >&6
22586 else
22587   cat >conftest.$ac_ext <<_ACEOF
22588 /* confdefs.h.  */
22589 _ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h.  */
22593 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
22594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22595 #define sigaltstack innocuous_sigaltstack
22596
22597 /* System header to define __stub macros and hopefully few prototypes,
22598     which can conflict with char sigaltstack (); below.
22599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22600     <limits.h> exists even on freestanding compilers.  */
22601
22602 #ifdef __STDC__
22603 # include <limits.h>
22604 #else
22605 # include <assert.h>
22606 #endif
22607
22608 #undef sigaltstack
22609
22610 /* Override any GCC internal prototype to avoid an error.
22611    Use char because int might match the return type of a GCC
22612    builtin and then its argument prototype would still apply.  */
22613 #ifdef __cplusplus
22614 extern "C"
22615 #endif
22616 char sigaltstack ();
22617 /* The GNU C library defines this for functions which it implements
22618     to always fail with ENOSYS.  Some functions are actually named
22619     something starting with __ and the normal name is an alias.  */
22620 #if defined __stub_sigaltstack || defined __stub___sigaltstack
22621 choke me
22622 #endif
22623
22624 int
22625 main ()
22626 {
22627 return sigaltstack ();
22628   ;
22629   return 0;
22630 }
22631 _ACEOF
22632 rm -f conftest.$ac_objext conftest$ac_exeext
22633 if { (ac_try="$ac_link"
22634 case "(($ac_try" in
22635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636   *) ac_try_echo=$ac_try;;
22637 esac
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639   (eval "$ac_link") 2>conftest.er1
22640   ac_status=$?
22641   grep -v '^ *+' conftest.er1 >conftest.err
22642   rm -f conftest.er1
22643   cat conftest.err >&5
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); } && {
22646          test -z "$ac_c_werror_flag" ||
22647          test ! -s conftest.err
22648        } && test -s conftest$ac_exeext &&
22649        $as_test_x conftest$ac_exeext; then
22650   ac_cv_func_sigaltstack=yes
22651 else
22652   echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22654
22655         ac_cv_func_sigaltstack=no
22656 fi
22657
22658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22659       conftest$ac_exeext conftest.$ac_ext
22660 fi
22661 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
22662 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
22663 if test $ac_cv_func_sigaltstack = yes; then
22664
22665 cat >>confdefs.h <<\_ACEOF
22666 #define HAVE_SIGALTSTACK 1
22667 _ACEOF
22668
22669 fi
22670
22671 { echo "$as_me:$LINENO: checking for dladdr" >&5
22672 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
22673 if test "${ac_cv_func_dladdr+set}" = set; then
22674   echo $ECHO_N "(cached) $ECHO_C" >&6
22675 else
22676   cat >conftest.$ac_ext <<_ACEOF
22677 /* confdefs.h.  */
22678 _ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h.  */
22682 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
22683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22684 #define dladdr innocuous_dladdr
22685
22686 /* System header to define __stub macros and hopefully few prototypes,
22687     which can conflict with char dladdr (); below.
22688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22689     <limits.h> exists even on freestanding compilers.  */
22690
22691 #ifdef __STDC__
22692 # include <limits.h>
22693 #else
22694 # include <assert.h>
22695 #endif
22696
22697 #undef dladdr
22698
22699 /* Override any GCC internal prototype to avoid an error.
22700    Use char because int might match the return type of a GCC
22701    builtin and then its argument prototype would still apply.  */
22702 #ifdef __cplusplus
22703 extern "C"
22704 #endif
22705 char dladdr ();
22706 /* The GNU C library defines this for functions which it implements
22707     to always fail with ENOSYS.  Some functions are actually named
22708     something starting with __ and the normal name is an alias.  */
22709 #if defined __stub_dladdr || defined __stub___dladdr
22710 choke me
22711 #endif
22712
22713 int
22714 main ()
22715 {
22716 return dladdr ();
22717   ;
22718   return 0;
22719 }
22720 _ACEOF
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (ac_try="$ac_link"
22723 case "(($ac_try" in
22724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725   *) ac_try_echo=$ac_try;;
22726 esac
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728   (eval "$ac_link") 2>conftest.er1
22729   ac_status=$?
22730   grep -v '^ *+' conftest.er1 >conftest.err
22731   rm -f conftest.er1
22732   cat conftest.err >&5
22733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734   (exit $ac_status); } && {
22735          test -z "$ac_c_werror_flag" ||
22736          test ! -s conftest.err
22737        } && test -s conftest$ac_exeext &&
22738        $as_test_x conftest$ac_exeext; then
22739   ac_cv_func_dladdr=yes
22740 else
22741   echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22743
22744         ac_cv_func_dladdr=no
22745 fi
22746
22747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22748       conftest$ac_exeext conftest.$ac_ext
22749 fi
22750 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
22751 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
22752 if test $ac_cv_func_dladdr = yes; then
22753
22754 cat >>confdefs.h <<\_ACEOF
22755 #define HAVE_DLADDR 1
22756 _ACEOF
22757
22758 fi
22759
22760 { echo "$as_me:$LINENO: checking for fcntl" >&5
22761 echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
22762 if test "${ac_cv_func_fcntl+set}" = set; then
22763   echo $ECHO_N "(cached) $ECHO_C" >&6
22764 else
22765   cat >conftest.$ac_ext <<_ACEOF
22766 /* confdefs.h.  */
22767 _ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h.  */
22771 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
22772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22773 #define fcntl innocuous_fcntl
22774
22775 /* System header to define __stub macros and hopefully few prototypes,
22776     which can conflict with char fcntl (); below.
22777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22778     <limits.h> exists even on freestanding compilers.  */
22779
22780 #ifdef __STDC__
22781 # include <limits.h>
22782 #else
22783 # include <assert.h>
22784 #endif
22785
22786 #undef fcntl
22787
22788 /* Override any GCC internal prototype to avoid an error.
22789    Use char because int might match the return type of a GCC
22790    builtin and then its argument prototype would still apply.  */
22791 #ifdef __cplusplus
22792 extern "C"
22793 #endif
22794 char fcntl ();
22795 /* The GNU C library defines this for functions which it implements
22796     to always fail with ENOSYS.  Some functions are actually named
22797     something starting with __ and the normal name is an alias.  */
22798 #if defined __stub_fcntl || defined __stub___fcntl
22799 choke me
22800 #endif
22801
22802 int
22803 main ()
22804 {
22805 return fcntl ();
22806   ;
22807   return 0;
22808 }
22809 _ACEOF
22810 rm -f conftest.$ac_objext conftest$ac_exeext
22811 if { (ac_try="$ac_link"
22812 case "(($ac_try" in
22813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814   *) ac_try_echo=$ac_try;;
22815 esac
22816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22817   (eval "$ac_link") 2>conftest.er1
22818   ac_status=$?
22819   grep -v '^ *+' conftest.er1 >conftest.err
22820   rm -f conftest.er1
22821   cat conftest.err >&5
22822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823   (exit $ac_status); } && {
22824          test -z "$ac_c_werror_flag" ||
22825          test ! -s conftest.err
22826        } && test -s conftest$ac_exeext &&
22827        $as_test_x conftest$ac_exeext; then
22828   ac_cv_func_fcntl=yes
22829 else
22830   echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22832
22833         ac_cv_func_fcntl=no
22834 fi
22835
22836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22837       conftest$ac_exeext conftest.$ac_ext
22838 fi
22839 { echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5
22840 echo "${ECHO_T}$ac_cv_func_fcntl" >&6; }
22841 if test $ac_cv_func_fcntl = yes; then
22842
22843 cat >>confdefs.h <<\_ACEOF
22844 #define HAVE_FCNTL 1
22845 _ACEOF
22846
22847 fi
22848
22849
22850
22851   { echo "$as_me:$LINENO: checking for __attribute__" >&5
22852 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
22853   if test "${ac_cv___attribute__+set}" = set; then
22854   echo $ECHO_N "(cached) $ECHO_C" >&6
22855 else
22856
22857     cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h.  */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h.  */
22863 #include <stdlib.h>
22864        static void foo(void) __attribute__ ((unused));
22865        void foo(void) { exit(1); }
22866 int
22867 main ()
22868 {
22869
22870   ;
22871   return 0;
22872 }
22873 _ACEOF
22874 rm -f conftest.$ac_objext
22875 if { (ac_try="$ac_compile"
22876 case "(($ac_try" in
22877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878   *) ac_try_echo=$ac_try;;
22879 esac
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881   (eval "$ac_compile") 2>conftest.er1
22882   ac_status=$?
22883   grep -v '^ *+' conftest.er1 >conftest.err
22884   rm -f conftest.er1
22885   cat conftest.err >&5
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); } && {
22888          test -z "$ac_c_werror_flag" ||
22889          test ! -s conftest.err
22890        } && test -s conftest.$ac_objext; then
22891   ac_cv___attribute__=yes
22892 else
22893   echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22895
22896         ac_cv___attribute__=no
22897
22898 fi
22899
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 fi
22902
22903   if test "$ac_cv___attribute__" = "yes"; then
22904
22905 cat >>confdefs.h <<\_ACEOF
22906 #define HAVE___ATTRIBUTE__ 1
22907 _ACEOF
22908
22909   fi
22910   { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
22911 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
22912
22913 # We only care about these two attributes.
22914 if test x"$ac_cv___attribute__" = x"yes"; then
22915   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
22916   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
22917 else
22918   ac_cv___attribute___noreturn=
22919   ac_cv___attribute___printf_4_5=
22920 fi
22921
22922
22923   { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
22924 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
22925   if test "${ac_cv___builtin_expect+set}" = set; then
22926   echo $ECHO_N "(cached) $ECHO_C" >&6
22927 else
22928
22929     cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h.  */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h.  */
22935 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
22936 int
22937 main ()
22938 {
22939
22940   ;
22941   return 0;
22942 }
22943 _ACEOF
22944 rm -f conftest.$ac_objext
22945 if { (ac_try="$ac_compile"
22946 case "(($ac_try" in
22947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22948   *) ac_try_echo=$ac_try;;
22949 esac
22950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22951   (eval "$ac_compile") 2>conftest.er1
22952   ac_status=$?
22953   grep -v '^ *+' conftest.er1 >conftest.err
22954   rm -f conftest.er1
22955   cat conftest.err >&5
22956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957   (exit $ac_status); } && {
22958          test -z "$ac_c_werror_flag" ||
22959          test ! -s conftest.err
22960        } && test -s conftest.$ac_objext; then
22961   ac_cv___builtin_expect=yes
22962 else
22963   echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22965
22966         ac_cv___builtin_expect=no
22967
22968 fi
22969
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 fi
22972
22973   if test "$ac_cv___builtin_expect" = "yes"; then
22974
22975 cat >>confdefs.h <<\_ACEOF
22976 #define HAVE___BUILTIN_EXPECT 1
22977 _ACEOF
22978
22979   fi
22980   { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22981 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
22982
22983 if test x"$ac_cv___builtin_expect" = x"yes"; then
22984   ac_cv_have___builtin_expect=1
22985 else
22986   ac_cv_have___builtin_expect=0
22987 fi
22988
22989
22990   { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
22991 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
22992   if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
22993   echo $ECHO_N "(cached) $ECHO_C" >&6
22994 else
22995
22996     cat >conftest.$ac_ext <<_ACEOF
22997 /* confdefs.h.  */
22998 _ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h.  */
23002 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
23003 int
23004 main ()
23005 {
23006
23007   ;
23008   return 0;
23009 }
23010 _ACEOF
23011 rm -f conftest.$ac_objext conftest$ac_exeext
23012 if { (ac_try="$ac_link"
23013 case "(($ac_try" in
23014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015   *) ac_try_echo=$ac_try;;
23016 esac
23017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23018   (eval "$ac_link") 2>conftest.er1
23019   ac_status=$?
23020   grep -v '^ *+' conftest.er1 >conftest.err
23021   rm -f conftest.er1
23022   cat conftest.err >&5
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); } && {
23025          test -z "$ac_c_werror_flag" ||
23026          test ! -s conftest.err
23027        } && test -s conftest$ac_exeext &&
23028        $as_test_x conftest$ac_exeext; then
23029   ac_cv___sync_val_compare_and_swap=yes
23030 else
23031   echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23033
23034         ac_cv___sync_val_compare_and_swap=no
23035
23036 fi
23037
23038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23039       conftest$ac_exeext conftest.$ac_ext
23040 fi
23041
23042   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
23043
23044 cat >>confdefs.h <<\_ACEOF
23045 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
23046 _ACEOF
23047
23048   fi
23049   { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
23050 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
23051
23052
23053 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
23054 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
23055 # Check whether --enable-frame_pointers was given.
23056 if test "${enable_frame_pointers+set}" = set; then
23057   enableval=$enable_frame_pointers; enable_frame_pointers=no
23058 fi
23059
23060 cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h.  */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h.  */
23066
23067 int
23068 main ()
23069 {
23070 return __x86_64__ == 1 ? 0 : 1
23071   ;
23072   return 0;
23073 }
23074 _ACEOF
23075 rm -f conftest.$ac_objext
23076 if { (ac_try="$ac_compile"
23077 case "(($ac_try" in
23078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079   *) ac_try_echo=$ac_try;;
23080 esac
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082   (eval "$ac_compile") 2>conftest.er1
23083   ac_status=$?
23084   grep -v '^ *+' conftest.er1 >conftest.err
23085   rm -f conftest.er1
23086   cat conftest.err >&5
23087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088   (exit $ac_status); } && {
23089          test -z "$ac_c_werror_flag" ||
23090          test ! -s conftest.err
23091        } && test -s conftest.$ac_objext; then
23092   is_x86_64=yes
23093 else
23094   echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23096
23097         is_x86_64=no
23098 fi
23099
23100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101  if test "$enable_frame_pointers" = yes; then
23102   ENABLE_FRAME_POINTERS_TRUE=
23103   ENABLE_FRAME_POINTERS_FALSE='#'
23104 else
23105   ENABLE_FRAME_POINTERS_TRUE='#'
23106   ENABLE_FRAME_POINTERS_FALSE=
23107 fi
23108
23109  if test "$is_x86_64" = yes; then
23110   X86_64_TRUE=
23111   X86_64_FALSE='#'
23112 else
23113   X86_64_TRUE='#'
23114   X86_64_FALSE=
23115 fi
23116
23117
23118 # Some of the code in this directory depends on pthreads
23119
23120
23121
23122 ac_ext=c
23123 ac_cpp='$CPP $CPPFLAGS'
23124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23127
23128 acx_pthread_ok=no
23129
23130 # We used to check for pthread.h first, but this fails if pthread.h
23131 # requires special compiler flags (e.g. on True64 or Sequent).
23132 # It gets checked for in the link test anyway.
23133
23134 # First of all, check if the user has set any of the PTHREAD_LIBS,
23135 # etcetera environment variables, and if threads linking works using
23136 # them:
23137 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23138         save_CFLAGS="$CFLAGS"
23139         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23140         save_LIBS="$LIBS"
23141         LIBS="$PTHREAD_LIBS $LIBS"
23142         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23143 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
23144         cat >conftest.$ac_ext <<_ACEOF
23145 /* confdefs.h.  */
23146 _ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h.  */
23150
23151 /* Override any GCC internal prototype to avoid an error.
23152    Use char because int might match the return type of a GCC
23153    builtin and then its argument prototype would still apply.  */
23154 #ifdef __cplusplus
23155 extern "C"
23156 #endif
23157 char pthread_join ();
23158 int
23159 main ()
23160 {
23161 return pthread_join ();
23162   ;
23163   return 0;
23164 }
23165 _ACEOF
23166 rm -f conftest.$ac_objext conftest$ac_exeext
23167 if { (ac_try="$ac_link"
23168 case "(($ac_try" in
23169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170   *) ac_try_echo=$ac_try;;
23171 esac
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173   (eval "$ac_link") 2>conftest.er1
23174   ac_status=$?
23175   grep -v '^ *+' conftest.er1 >conftest.err
23176   rm -f conftest.er1
23177   cat conftest.err >&5
23178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179   (exit $ac_status); } && {
23180          test -z "$ac_c_werror_flag" ||
23181          test ! -s conftest.err
23182        } && test -s conftest$ac_exeext &&
23183        $as_test_x conftest$ac_exeext; then
23184   acx_pthread_ok=yes
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189
23190 fi
23191
23192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23193       conftest$ac_exeext conftest.$ac_ext
23194         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23195 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23196         if test x"$acx_pthread_ok" = xno; then
23197                 PTHREAD_LIBS=""
23198                 PTHREAD_CFLAGS=""
23199         fi
23200         LIBS="$save_LIBS"
23201         CFLAGS="$save_CFLAGS"
23202 fi
23203
23204 # We must check for the threads library under a number of different
23205 # names; the ordering is very important because some systems
23206 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23207 # libraries is broken (non-POSIX).
23208
23209 # Create a list of thread flags to try.  Items starting with a "-" are
23210 # C compiler flags, and other items are library names, except for "none"
23211 # which indicates that we try without any flags at all, and "pthread-config"
23212 # which is a program returning the flags for the Pth emulation library.
23213
23214 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23215
23216 # The ordering *is* (sometimes) important.  Some notes on the
23217 # individual items follow:
23218
23219 # pthreads: AIX (must check this before -lpthread)
23220 # none: in case threads are in libc; should be tried before -Kthread and
23221 #       other compiler flags to prevent continual compiler warnings
23222 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23223 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23224 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23225 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23226 # -pthreads: Solaris/gcc
23227 # -mthreads: Mingw32/gcc, Lynx/gcc
23228 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23229 #      doesn't hurt to check since this sometimes defines pthreads too;
23230 #      also defines -D_REENTRANT)
23231 #      ... -mt is also the pthreads flag for HP/aCC
23232 # pthread: Linux, etcetera
23233 # --thread-safe: KAI C++
23234 # pthread-config: use pthread-config program (for GNU Pth library)
23235
23236 case "${host_cpu}-${host_os}" in
23237         *solaris*)
23238
23239         # On Solaris (at least, for some versions), libc contains stubbed
23240         # (non-functional) versions of the pthreads routines, so link-based
23241         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
23242         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
23243         # a function called by this macro, so we could check for that, but
23244         # who knows whether they'll stub that too in a future libc.)  So,
23245         # we'll just look for -pthreads and -lpthread first:
23246
23247         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
23248         ;;
23249 esac
23250
23251 if test x"$acx_pthread_ok" = xno; then
23252 for flag in $acx_pthread_flags; do
23253
23254         case $flag in
23255                 none)
23256                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23257 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
23258                 ;;
23259
23260                 -*)
23261                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23262 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
23263                 PTHREAD_CFLAGS="$flag"
23264                 ;;
23265
23266                 pthread-config)
23267                 # Extract the first word of "pthread-config", so it can be a program name with args.
23268 set dummy pthread-config; ac_word=$2
23269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23271 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23272   echo $ECHO_N "(cached) $ECHO_C" >&6
23273 else
23274   if test -n "$acx_pthread_config"; then
23275   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23276 else
23277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23278 for as_dir in $PATH
23279 do
23280   IFS=$as_save_IFS
23281   test -z "$as_dir" && as_dir=.
23282   for ac_exec_ext in '' $ac_executable_extensions; do
23283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23284     ac_cv_prog_acx_pthread_config="yes"
23285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23286     break 2
23287   fi
23288 done
23289 done
23290 IFS=$as_save_IFS
23291
23292   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23293 fi
23294 fi
23295 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23296 if test -n "$acx_pthread_config"; then
23297   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23298 echo "${ECHO_T}$acx_pthread_config" >&6; }
23299 else
23300   { echo "$as_me:$LINENO: result: no" >&5
23301 echo "${ECHO_T}no" >&6; }
23302 fi
23303
23304
23305                 if test x"$acx_pthread_config" = xno; then continue; fi
23306                 PTHREAD_CFLAGS="`pthread-config --cflags`"
23307                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23308                 ;;
23309
23310                 *)
23311                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23312 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
23313                 PTHREAD_LIBS="-l$flag"
23314                 ;;
23315         esac
23316
23317         save_LIBS="$LIBS"
23318         save_CFLAGS="$CFLAGS"
23319         LIBS="$PTHREAD_LIBS $LIBS"
23320         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23321
23322         # Check for various functions.  We must include pthread.h,
23323         # since some functions may be macros.  (On the Sequent, we
23324         # need a special flag -Kthread to make this header compile.)
23325         # We check for pthread_join because it is in -lpthread on IRIX
23326         # while pthread_create is in libc.  We check for pthread_attr_init
23327         # due to DEC craziness with -lpthreads.  We check for
23328         # pthread_cleanup_push because it is one of the few pthread
23329         # functions on Solaris that doesn't have a non-functional libc stub.
23330         # We try pthread_create on general principles.
23331         cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h.  */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h.  */
23337 #include <pthread.h>
23338 int
23339 main ()
23340 {
23341 pthread_t th; pthread_join(th, 0);
23342                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23343                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23344   ;
23345   return 0;
23346 }
23347 _ACEOF
23348 rm -f conftest.$ac_objext conftest$ac_exeext
23349 if { (ac_try="$ac_link"
23350 case "(($ac_try" in
23351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23352   *) ac_try_echo=$ac_try;;
23353 esac
23354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23355   (eval "$ac_link") 2>conftest.er1
23356   ac_status=$?
23357   grep -v '^ *+' conftest.er1 >conftest.err
23358   rm -f conftest.er1
23359   cat conftest.err >&5
23360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361   (exit $ac_status); } && {
23362          test -z "$ac_c_werror_flag" ||
23363          test ! -s conftest.err
23364        } && test -s conftest$ac_exeext &&
23365        $as_test_x conftest$ac_exeext; then
23366   acx_pthread_ok=yes
23367 else
23368   echo "$as_me: failed program was:" >&5
23369 sed 's/^/| /' conftest.$ac_ext >&5
23370
23371
23372 fi
23373
23374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23375       conftest$ac_exeext conftest.$ac_ext
23376
23377         LIBS="$save_LIBS"
23378         CFLAGS="$save_CFLAGS"
23379
23380         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23381 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23382         if test "x$acx_pthread_ok" = xyes; then
23383                 break;
23384         fi
23385
23386         PTHREAD_LIBS=""
23387         PTHREAD_CFLAGS=""
23388 done
23389 fi
23390
23391 # Various other checks:
23392 if test "x$acx_pthread_ok" = xyes; then
23393         save_LIBS="$LIBS"
23394         LIBS="$PTHREAD_LIBS $LIBS"
23395         save_CFLAGS="$CFLAGS"
23396         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23397
23398         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23399         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23400 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
23401         attr_name=unknown
23402         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23403             cat >conftest.$ac_ext <<_ACEOF
23404 /* confdefs.h.  */
23405 _ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h.  */
23409 #include <pthread.h>
23410 int
23411 main ()
23412 {
23413 int attr=$attr; return attr;
23414   ;
23415   return 0;
23416 }
23417 _ACEOF
23418 rm -f conftest.$ac_objext conftest$ac_exeext
23419 if { (ac_try="$ac_link"
23420 case "(($ac_try" in
23421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422   *) ac_try_echo=$ac_try;;
23423 esac
23424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23425   (eval "$ac_link") 2>conftest.er1
23426   ac_status=$?
23427   grep -v '^ *+' conftest.er1 >conftest.err
23428   rm -f conftest.er1
23429   cat conftest.err >&5
23430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431   (exit $ac_status); } && {
23432          test -z "$ac_c_werror_flag" ||
23433          test ! -s conftest.err
23434        } && test -s conftest$ac_exeext &&
23435        $as_test_x conftest$ac_exeext; then
23436   attr_name=$attr; break
23437 else
23438   echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23440
23441
23442 fi
23443
23444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23445       conftest$ac_exeext conftest.$ac_ext
23446         done
23447         { echo "$as_me:$LINENO: result: $attr_name" >&5
23448 echo "${ECHO_T}$attr_name" >&6; }
23449         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
23450
23451 cat >>confdefs.h <<_ACEOF
23452 #define PTHREAD_CREATE_JOINABLE $attr_name
23453 _ACEOF
23454
23455         fi
23456
23457         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23458 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
23459         flag=no
23460         case "${host_cpu}-${host_os}" in
23461             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23462             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23463         esac
23464         { echo "$as_me:$LINENO: result: ${flag}" >&5
23465 echo "${ECHO_T}${flag}" >&6; }
23466         if test "x$flag" != xno; then
23467             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23468         fi
23469
23470         LIBS="$save_LIBS"
23471         CFLAGS="$save_CFLAGS"
23472         # More AIX lossage: must compile with xlc_r or cc_r
23473         if test x"$GCC" != xyes; then
23474           for ac_prog in xlc_r cc_r
23475 do
23476   # Extract the first word of "$ac_prog", so it can be a program name with args.
23477 set dummy $ac_prog; ac_word=$2
23478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23480 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23481   echo $ECHO_N "(cached) $ECHO_C" >&6
23482 else
23483   if test -n "$PTHREAD_CC"; then
23484   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23485 else
23486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23487 for as_dir in $PATH
23488 do
23489   IFS=$as_save_IFS
23490   test -z "$as_dir" && as_dir=.
23491   for ac_exec_ext in '' $ac_executable_extensions; do
23492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23493     ac_cv_prog_PTHREAD_CC="$ac_prog"
23494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23495     break 2
23496   fi
23497 done
23498 done
23499 IFS=$as_save_IFS
23500
23501 fi
23502 fi
23503 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23504 if test -n "$PTHREAD_CC"; then
23505   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23506 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23507 else
23508   { echo "$as_me:$LINENO: result: no" >&5
23509 echo "${ECHO_T}no" >&6; }
23510 fi
23511
23512
23513   test -n "$PTHREAD_CC" && break
23514 done
23515 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23516
23517         else
23518           PTHREAD_CC=$CC
23519         fi
23520
23521    # The next part tries to detect GCC inconsistency with -shared on some
23522    # architectures and systems. The problem is that in certain
23523    # configurations, when -shared is specified, GCC "forgets" to
23524    # internally use various flags which are still necessary.
23525
23526    { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
23527 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
23528    check_inconsistencies=yes
23529    case "${host_cpu}-${host_os}" in
23530      *-darwin*) check_inconsistencies=no ;;
23531    esac
23532    if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
23533       { echo "$as_me:$LINENO: result: no" >&5
23534 echo "${ECHO_T}no" >&6; }
23535    else
23536       { echo "$as_me:$LINENO: result: yes" >&5
23537 echo "${ECHO_T}yes" >&6; }
23538
23539       # In order not to create several levels of indentation, we test
23540       # the value of "$ok" until we find out the cure or run out of
23541       # ideas.
23542       ok="no"
23543
23544       #
23545       # Prepare the flags
23546       #
23547       save_CFLAGS="$CFLAGS"
23548       save_LIBS="$LIBS"
23549       save_CC="$CC"
23550       # Try with the flags determined by the earlier checks.
23551       #
23552       # -Wl,-z,defs forces link-time symbol resolution, so that the
23553       # linking checks with -shared actually have any value
23554       #
23555       # FIXME: -fPIC is required for -shared on many architectures,
23556       # so we specify it here, but the right way would probably be to
23557       # properly detect whether it is actually required.
23558       CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
23559       LIBS="$PTHREAD_LIBS $LIBS"
23560       CC="$PTHREAD_CC"
23561
23562       { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
23563 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
23564       cat >conftest.$ac_ext <<_ACEOF
23565 /* confdefs.h.  */
23566 _ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h.  */
23570 #include <pthread.h>
23571 int
23572 main ()
23573 {
23574 pthread_t th; pthread_join(th, 0);
23575          pthread_attr_init(0); pthread_cleanup_push(0, 0);
23576          pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23577   ;
23578   return 0;
23579 }
23580 _ACEOF
23581 rm -f conftest.$ac_objext conftest$ac_exeext
23582 if { (ac_try="$ac_link"
23583 case "(($ac_try" in
23584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23585   *) ac_try_echo=$ac_try;;
23586 esac
23587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23588   (eval "$ac_link") 2>conftest.er1
23589   ac_status=$?
23590   grep -v '^ *+' conftest.er1 >conftest.err
23591   rm -f conftest.er1
23592   cat conftest.err >&5
23593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594   (exit $ac_status); } && {
23595          test -z "$ac_c_werror_flag" ||
23596          test ! -s conftest.err
23597        } && test -s conftest$ac_exeext &&
23598        $as_test_x conftest$ac_exeext; then
23599   ok=yes
23600 else
23601   echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23603
23604
23605 fi
23606
23607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23608       conftest$ac_exeext conftest.$ac_ext
23609
23610       if test "x$ok" = xyes; then
23611          { echo "$as_me:$LINENO: result: yes" >&5
23612 echo "${ECHO_T}yes" >&6; }
23613       else
23614          { echo "$as_me:$LINENO: result: no" >&5
23615 echo "${ECHO_T}no" >&6; }
23616       fi
23617
23618       #
23619       # Linux gcc on some architectures such as mips/mipsel forgets
23620       # about -lpthread
23621       #
23622       if test x"$ok" = xno; then
23623          { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
23624 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
23625          LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
23626          cat >conftest.$ac_ext <<_ACEOF
23627 /* confdefs.h.  */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h.  */
23632 #include <pthread.h>
23633 int
23634 main ()
23635 {
23636 pthread_t th; pthread_join(th, 0);
23637             pthread_attr_init(0); pthread_cleanup_push(0, 0);
23638             pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23639   ;
23640   return 0;
23641 }
23642 _ACEOF
23643 rm -f conftest.$ac_objext conftest$ac_exeext
23644 if { (ac_try="$ac_link"
23645 case "(($ac_try" in
23646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23647   *) ac_try_echo=$ac_try;;
23648 esac
23649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23650   (eval "$ac_link") 2>conftest.er1
23651   ac_status=$?
23652   grep -v '^ *+' conftest.er1 >conftest.err
23653   rm -f conftest.er1
23654   cat conftest.err >&5
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); } && {
23657          test -z "$ac_c_werror_flag" ||
23658          test ! -s conftest.err
23659        } && test -s conftest$ac_exeext &&
23660        $as_test_x conftest$ac_exeext; then
23661   ok=yes
23662 else
23663   echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.$ac_ext >&5
23665
23666
23667 fi
23668
23669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23670       conftest$ac_exeext conftest.$ac_ext
23671
23672          if test "x$ok" = xyes; then
23673             { echo "$as_me:$LINENO: result: yes" >&5
23674 echo "${ECHO_T}yes" >&6; }
23675             PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
23676          else
23677             { echo "$as_me:$LINENO: result: no" >&5
23678 echo "${ECHO_T}no" >&6; }
23679          fi
23680       fi
23681       #
23682       # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
23683       #
23684       if test x"$ok" = xno; then
23685          { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
23686 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
23687          LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
23688          cat >conftest.$ac_ext <<_ACEOF
23689 /* confdefs.h.  */
23690 _ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h.  */
23694 #include <pthread.h>
23695 int
23696 main ()
23697 {
23698 pthread_t th; pthread_join(th, 0);
23699               pthread_attr_init(0); pthread_cleanup_push(0, 0);
23700               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23701   ;
23702   return 0;
23703 }
23704 _ACEOF
23705 rm -f conftest.$ac_objext conftest$ac_exeext
23706 if { (ac_try="$ac_link"
23707 case "(($ac_try" in
23708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709   *) ac_try_echo=$ac_try;;
23710 esac
23711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23712   (eval "$ac_link") 2>conftest.er1
23713   ac_status=$?
23714   grep -v '^ *+' conftest.er1 >conftest.err
23715   rm -f conftest.er1
23716   cat conftest.err >&5
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); } && {
23719          test -z "$ac_c_werror_flag" ||
23720          test ! -s conftest.err
23721        } && test -s conftest$ac_exeext &&
23722        $as_test_x conftest$ac_exeext; then
23723   ok=yes
23724 else
23725   echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728
23729 fi
23730
23731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23732       conftest$ac_exeext conftest.$ac_ext
23733
23734          if test "x$ok" = xyes; then
23735             { echo "$as_me:$LINENO: result: yes" >&5
23736 echo "${ECHO_T}yes" >&6; }
23737             PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
23738          else
23739             { echo "$as_me:$LINENO: result: no" >&5
23740 echo "${ECHO_T}no" >&6; }
23741          fi
23742       fi
23743       if test x"$ok" = xno; then
23744          # OK, we have run out of ideas
23745          { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
23746 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
23747
23748          # so it's not safe to assume that we may use pthreads
23749          acx_pthread_ok=no
23750       fi
23751
23752       CFLAGS="$save_CFLAGS"
23753       LIBS="$save_LIBS"
23754       CC="$save_CC"
23755    fi
23756 else
23757         PTHREAD_CC="$CC"
23758 fi
23759
23760
23761
23762
23763
23764 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23765 if test x"$acx_pthread_ok" = xyes; then
23766
23767 cat >>confdefs.h <<\_ACEOF
23768 #define HAVE_PTHREAD 1
23769 _ACEOF
23770
23771         :
23772 else
23773         acx_pthread_ok=no
23774
23775 fi
23776 ac_ext=c
23777 ac_cpp='$CPP $CPPFLAGS'
23778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23781
23782
23783 # To make libglog depend on libpthread on Linux, we need to add
23784 # -lpthread in addition to -pthread.
23785
23786 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
23787 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
23788 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
23789   echo $ECHO_N "(cached) $ECHO_C" >&6
23790 else
23791   ac_check_lib_save_LIBS=$LIBS
23792 LIBS="-lpthread  $LIBS"
23793 cat >conftest.$ac_ext <<_ACEOF
23794 /* confdefs.h.  */
23795 _ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h.  */
23799
23800 /* Override any GCC internal prototype to avoid an error.
23801    Use char because int might match the return type of a GCC
23802    builtin and then its argument prototype would still apply.  */
23803 #ifdef __cplusplus
23804 extern "C"
23805 #endif
23806 char pthread_self ();
23807 int
23808 main ()
23809 {
23810 return pthread_self ();
23811   ;
23812   return 0;
23813 }
23814 _ACEOF
23815 rm -f conftest.$ac_objext conftest$ac_exeext
23816 if { (ac_try="$ac_link"
23817 case "(($ac_try" in
23818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23819   *) ac_try_echo=$ac_try;;
23820 esac
23821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23822   (eval "$ac_link") 2>conftest.er1
23823   ac_status=$?
23824   grep -v '^ *+' conftest.er1 >conftest.err
23825   rm -f conftest.er1
23826   cat conftest.err >&5
23827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828   (exit $ac_status); } && {
23829          test -z "$ac_c_werror_flag" ||
23830          test ! -s conftest.err
23831        } && test -s conftest$ac_exeext &&
23832        $as_test_x conftest$ac_exeext; then
23833   ac_cv_lib_pthread_pthread_self=yes
23834 else
23835   echo "$as_me: failed program was:" >&5
23836 sed 's/^/| /' conftest.$ac_ext >&5
23837
23838         ac_cv_lib_pthread_pthread_self=no
23839 fi
23840
23841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23842       conftest$ac_exeext conftest.$ac_ext
23843 LIBS=$ac_check_lib_save_LIBS
23844 fi
23845 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
23846 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
23847 if test $ac_cv_lib_pthread_pthread_self = yes; then
23848   cat >>confdefs.h <<_ACEOF
23849 #define HAVE_LIBPTHREAD 1
23850 _ACEOF
23851
23852   LIBS="-lpthread $LIBS"
23853
23854 fi
23855
23856
23857 # Check if there is google-gflags library installed.
23858 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
23859 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
23860 if test "${ac_cv_lib_gflags_main+set}" = set; then
23861   echo $ECHO_N "(cached) $ECHO_C" >&6
23862 else
23863   ac_check_lib_save_LIBS=$LIBS
23864 LIBS="-lgflags  $LIBS"
23865 cat >conftest.$ac_ext <<_ACEOF
23866 /* confdefs.h.  */
23867 _ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h.  */
23871
23872
23873 int
23874 main ()
23875 {
23876 return main ();
23877   ;
23878   return 0;
23879 }
23880 _ACEOF
23881 rm -f conftest.$ac_objext conftest$ac_exeext
23882 if { (ac_try="$ac_link"
23883 case "(($ac_try" in
23884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885   *) ac_try_echo=$ac_try;;
23886 esac
23887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23888   (eval "$ac_link") 2>conftest.er1
23889   ac_status=$?
23890   grep -v '^ *+' conftest.er1 >conftest.err
23891   rm -f conftest.er1
23892   cat conftest.err >&5
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); } && {
23895          test -z "$ac_c_werror_flag" ||
23896          test ! -s conftest.err
23897        } && test -s conftest$ac_exeext &&
23898        $as_test_x conftest$ac_exeext; then
23899   ac_cv_lib_gflags_main=yes
23900 else
23901   echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.$ac_ext >&5
23903
23904         ac_cv_lib_gflags_main=no
23905 fi
23906
23907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23908       conftest$ac_exeext conftest.$ac_ext
23909 LIBS=$ac_check_lib_save_LIBS
23910 fi
23911 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
23912 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
23913 if test $ac_cv_lib_gflags_main = yes; then
23914   ac_cv_have_libgflags=1
23915 else
23916   ac_cv_have_libgflags=0
23917 fi
23918
23919 if test x"$ac_cv_have_libgflags" = x"1"; then
23920   GFLAGS_LIBS=-lgflags
23921
23922 cat >>confdefs.h <<\_ACEOF
23923 #define HAVE_LIB_GFLAGS 1
23924 _ACEOF
23925
23926 else
23927   GFLAGS_LIBS=
23928 fi
23929
23930 # Check if there is gtest library installed.
23931 { echo "$as_me:$LINENO: checking for main in -lgtest" >&5
23932 echo $ECHO_N "checking for main in -lgtest... $ECHO_C" >&6; }
23933 if test "${ac_cv_lib_gtest_main+set}" = set; then
23934   echo $ECHO_N "(cached) $ECHO_C" >&6
23935 else
23936   ac_check_lib_save_LIBS=$LIBS
23937 LIBS="-lgtest  $LIBS"
23938 cat >conftest.$ac_ext <<_ACEOF
23939 /* confdefs.h.  */
23940 _ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h.  */
23944
23945
23946 int
23947 main ()
23948 {
23949 return main ();
23950   ;
23951   return 0;
23952 }
23953 _ACEOF
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (ac_try="$ac_link"
23956 case "(($ac_try" in
23957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958   *) ac_try_echo=$ac_try;;
23959 esac
23960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23961   (eval "$ac_link") 2>conftest.er1
23962   ac_status=$?
23963   grep -v '^ *+' conftest.er1 >conftest.err
23964   rm -f conftest.er1
23965   cat conftest.err >&5
23966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967   (exit $ac_status); } && {
23968          test -z "$ac_c_werror_flag" ||
23969          test ! -s conftest.err
23970        } && test -s conftest$ac_exeext &&
23971        $as_test_x conftest$ac_exeext; then
23972   ac_cv_lib_gtest_main=yes
23973 else
23974   echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23976
23977         ac_cv_lib_gtest_main=no
23978 fi
23979
23980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23981       conftest$ac_exeext conftest.$ac_ext
23982 LIBS=$ac_check_lib_save_LIBS
23983 fi
23984 { echo "$as_me:$LINENO: result: $ac_cv_lib_gtest_main" >&5
23985 echo "${ECHO_T}$ac_cv_lib_gtest_main" >&6; }
23986 if test $ac_cv_lib_gtest_main = yes; then
23987   ac_cv_have_libgtest=1
23988 else
23989   ac_cv_have_libgtest=0
23990 fi
23991
23992 if test x"$ac_cv_have_libgtest" = x"1"; then
23993   GTEST_LIBS=-lgtest
23994
23995 cat >>confdefs.h <<\_ACEOF
23996 #define HAVE_LIB_GTEST 1
23997 _ACEOF
23998
23999
24000   # Check if there is gmock library installed.
24001   { echo "$as_me:$LINENO: checking for main in -lgmock" >&5
24002 echo $ECHO_N "checking for main in -lgmock... $ECHO_C" >&6; }
24003 if test "${ac_cv_lib_gmock_main+set}" = set; then
24004   echo $ECHO_N "(cached) $ECHO_C" >&6
24005 else
24006   ac_check_lib_save_LIBS=$LIBS
24007 LIBS="-lgmock $GTEST_LIBS $LIBS"
24008 cat >conftest.$ac_ext <<_ACEOF
24009 /* confdefs.h.  */
24010 _ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h.  */
24014
24015
24016 int
24017 main ()
24018 {
24019 return main ();
24020   ;
24021   return 0;
24022 }
24023 _ACEOF
24024 rm -f conftest.$ac_objext conftest$ac_exeext
24025 if { (ac_try="$ac_link"
24026 case "(($ac_try" in
24027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028   *) ac_try_echo=$ac_try;;
24029 esac
24030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24031   (eval "$ac_link") 2>conftest.er1
24032   ac_status=$?
24033   grep -v '^ *+' conftest.er1 >conftest.err
24034   rm -f conftest.er1
24035   cat conftest.err >&5
24036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037   (exit $ac_status); } && {
24038          test -z "$ac_c_werror_flag" ||
24039          test ! -s conftest.err
24040        } && test -s conftest$ac_exeext &&
24041        $as_test_x conftest$ac_exeext; then
24042   ac_cv_lib_gmock_main=yes
24043 else
24044   echo "$as_me: failed program was:" >&5
24045 sed 's/^/| /' conftest.$ac_ext >&5
24046
24047         ac_cv_lib_gmock_main=no
24048 fi
24049
24050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24051       conftest$ac_exeext conftest.$ac_ext
24052 LIBS=$ac_check_lib_save_LIBS
24053 fi
24054 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmock_main" >&5
24055 echo "${ECHO_T}$ac_cv_lib_gmock_main" >&6; }
24056 if test $ac_cv_lib_gmock_main = yes; then
24057   ac_cv_have_libgmock=1
24058 else
24059   ac_cv_have_libgmock=0
24060 fi
24061
24062   if test x"$ac_cv_have_libgmock" = x"1"; then
24063     GMOCK_LIBS=-lgmock
24064
24065 cat >>confdefs.h <<\_ACEOF
24066 #define HAVE_LIB_GMOCK 1
24067 _ACEOF
24068
24069   else
24070     GMOCK_LIBS=
24071   fi
24072 else
24073   GTEST_LIBS=
24074 fi
24075
24076 # We want to link in libunwind if it exists
24077 UNWIND_LIBS=
24078 # Unfortunately, we need to check the header file in addition to the
24079 # lib file to check if libunwind is available since libunwind-0.98
24080 # doesn't install all necessary header files.
24081 if test x"$ac_cv_have_libunwind_h" = x"1"; then
24082  { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
24083 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
24084 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
24085   echo $ECHO_N "(cached) $ECHO_C" >&6
24086 else
24087   ac_check_lib_save_LIBS=$LIBS
24088 LIBS="-lunwind  $LIBS"
24089 cat >conftest.$ac_ext <<_ACEOF
24090 /* confdefs.h.  */
24091 _ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h.  */
24095
24096 /* Override any GCC internal prototype to avoid an error.
24097    Use char because int might match the return type of a GCC
24098    builtin and then its argument prototype would still apply.  */
24099 #ifdef __cplusplus
24100 extern "C"
24101 #endif
24102 char backtrace ();
24103 int
24104 main ()
24105 {
24106 return backtrace ();
24107   ;
24108   return 0;
24109 }
24110 _ACEOF
24111 rm -f conftest.$ac_objext conftest$ac_exeext
24112 if { (ac_try="$ac_link"
24113 case "(($ac_try" in
24114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115   *) ac_try_echo=$ac_try;;
24116 esac
24117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118   (eval "$ac_link") 2>conftest.er1
24119   ac_status=$?
24120   grep -v '^ *+' conftest.er1 >conftest.err
24121   rm -f conftest.er1
24122   cat conftest.err >&5
24123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124   (exit $ac_status); } && {
24125          test -z "$ac_c_werror_flag" ||
24126          test ! -s conftest.err
24127        } && test -s conftest$ac_exeext &&
24128        $as_test_x conftest$ac_exeext; then
24129   ac_cv_lib_unwind_backtrace=yes
24130 else
24131   echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24133
24134         ac_cv_lib_unwind_backtrace=no
24135 fi
24136
24137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24138       conftest$ac_exeext conftest.$ac_ext
24139 LIBS=$ac_check_lib_save_LIBS
24140 fi
24141 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
24142 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
24143 if test $ac_cv_lib_unwind_backtrace = yes; then
24144   UNWIND_LIBS=-lunwind
24145 fi
24146
24147 fi
24148
24149 if test x"$UNWIND_LIBS" != x""; then
24150
24151 cat >>confdefs.h <<\_ACEOF
24152 #define HAVE_LIB_UNWIND 1
24153 _ACEOF
24154
24155 fi
24156
24157 # We'd like to use read/write locks in several places in the code.
24158 # See if our pthreads support extends to that.  Note: for linux, it
24159 # does as long as you define _XOPEN_SOURCE appropriately.
24160 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
24161 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
24162 if test "${ac_rwlock+set}" = set; then
24163   echo $ECHO_N "(cached) $ECHO_C" >&6
24164 else
24165
24166  ac_ext=c
24167 ac_cpp='$CPP $CPPFLAGS'
24168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24170 ac_compiler_gnu=$ac_cv_c_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 #define _XOPEN_SOURCE 500
24179                  #include <pthread.h>
24180 int
24181 main ()
24182 {
24183 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
24184                  pthread_rwlock_rdlock(&l);
24185                  return 0;
24186   ;
24187   return 0;
24188 }
24189 _ACEOF
24190 rm -f conftest.$ac_objext
24191 if { (ac_try="$ac_compile"
24192 case "(($ac_try" in
24193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194   *) ac_try_echo=$ac_try;;
24195 esac
24196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24197   (eval "$ac_compile") 2>conftest.er1
24198   ac_status=$?
24199   grep -v '^ *+' conftest.er1 >conftest.err
24200   rm -f conftest.er1
24201   cat conftest.err >&5
24202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203   (exit $ac_status); } && {
24204          test -z "$ac_c_werror_flag" ||
24205          test ! -s conftest.err
24206        } && test -s conftest.$ac_objext; then
24207   ac_rwlock=yes
24208 else
24209   echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24211
24212         ac_rwlock=no
24213 fi
24214
24215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24216  ac_ext=c
24217 ac_cpp='$CPP $CPPFLAGS'
24218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24221
24222
24223 fi
24224 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
24225 echo "${ECHO_T}$ac_rwlock" >&6; }
24226 if test "$ac_rwlock" = yes; then
24227
24228 cat >>confdefs.h <<\_ACEOF
24229 #define HAVE_RWLOCK 1
24230 _ACEOF
24231
24232 fi
24233
24234
24235 # Find out what namespace 'normal' STL code lives in, and also what namespace
24236 # the user wants our classes to be defined in
24237 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
24238 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
24239 if test "${ac_cv_cxx_namespaces+set}" = set; then
24240   echo $ECHO_N "(cached) $ECHO_C" >&6
24241 else
24242
24243                   ac_ext=cpp
24244 ac_cpp='$CXXCPP $CPPFLAGS'
24245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24248
24249                   cat >conftest.$ac_ext <<_ACEOF
24250 /* confdefs.h.  */
24251 _ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h.  */
24255 namespace Outer {
24256                                     namespace Inner { int i = 0; }}
24257 int
24258 main ()
24259 {
24260 using namespace Outer::Inner; return i;
24261   ;
24262   return 0;
24263 }
24264 _ACEOF
24265 rm -f conftest.$ac_objext
24266 if { (ac_try="$ac_compile"
24267 case "(($ac_try" in
24268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24269   *) ac_try_echo=$ac_try;;
24270 esac
24271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24272   (eval "$ac_compile") 2>conftest.er1
24273   ac_status=$?
24274   grep -v '^ *+' conftest.er1 >conftest.err
24275   rm -f conftest.er1
24276   cat conftest.err >&5
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); } && {
24279          test -z "$ac_cxx_werror_flag" ||
24280          test ! -s conftest.err
24281        } && test -s conftest.$ac_objext; then
24282   ac_cv_cxx_namespaces=yes
24283 else
24284   echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24286
24287         ac_cv_cxx_namespaces=no
24288 fi
24289
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291                   ac_ext=c
24292 ac_cpp='$CPP $CPPFLAGS'
24293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24296
24297 fi
24298 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
24299 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
24300   if test "$ac_cv_cxx_namespaces" = yes; then
24301
24302 cat >>confdefs.h <<\_ACEOF
24303 #define HAVE_NAMESPACES 1
24304 _ACEOF
24305
24306   fi
24307 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
24308 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
24309 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
24310   echo $ECHO_N "(cached) $ECHO_C" >&6
24311 else
24312
24313
24314       ac_ext=cpp
24315 ac_cpp='$CXXCPP $CPPFLAGS'
24316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24319
24320       cat >conftest.$ac_ext <<_ACEOF
24321 /* confdefs.h.  */
24322 _ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h.  */
24326 #include <vector>
24327 int
24328 main ()
24329 {
24330 vector<int> t; return 0;
24331   ;
24332   return 0;
24333 }
24334 _ACEOF
24335 rm -f conftest.$ac_objext
24336 if { (ac_try="$ac_compile"
24337 case "(($ac_try" in
24338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339   *) ac_try_echo=$ac_try;;
24340 esac
24341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24342   (eval "$ac_compile") 2>conftest.er1
24343   ac_status=$?
24344   grep -v '^ *+' conftest.er1 >conftest.err
24345   rm -f conftest.er1
24346   cat conftest.err >&5
24347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); } && {
24349          test -z "$ac_cxx_werror_flag" ||
24350          test ! -s conftest.err
24351        } && test -s conftest.$ac_objext; then
24352   ac_cv_cxx_stl_namespace=none
24353 else
24354   echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24356
24357
24358 fi
24359
24360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24361       cat >conftest.$ac_ext <<_ACEOF
24362 /* confdefs.h.  */
24363 _ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h.  */
24367 #include <vector>
24368 int
24369 main ()
24370 {
24371 std::vector<int> t; return 0;
24372   ;
24373   return 0;
24374 }
24375 _ACEOF
24376 rm -f conftest.$ac_objext
24377 if { (ac_try="$ac_compile"
24378 case "(($ac_try" in
24379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24380   *) ac_try_echo=$ac_try;;
24381 esac
24382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24383   (eval "$ac_compile") 2>conftest.er1
24384   ac_status=$?
24385   grep -v '^ *+' conftest.er1 >conftest.err
24386   rm -f conftest.er1
24387   cat conftest.err >&5
24388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389   (exit $ac_status); } && {
24390          test -z "$ac_cxx_werror_flag" ||
24391          test ! -s conftest.err
24392        } && test -s conftest.$ac_objext; then
24393   ac_cv_cxx_stl_namespace=std
24394 else
24395   echo "$as_me: failed program was:" >&5
24396 sed 's/^/| /' conftest.$ac_ext >&5
24397
24398
24399 fi
24400
24401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24402       ac_ext=c
24403 ac_cpp='$CPP $CPPFLAGS'
24404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24407
24408 fi
24409 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
24410 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
24411    if test "$ac_cv_cxx_stl_namespace" = none; then
24412
24413 cat >>confdefs.h <<\_ACEOF
24414 #define STL_NAMESPACE
24415 _ACEOF
24416
24417    fi
24418    if test "$ac_cv_cxx_stl_namespace" = std; then
24419
24420 cat >>confdefs.h <<\_ACEOF
24421 #define STL_NAMESPACE std
24422 _ACEOF
24423
24424    fi
24425
24426 google_namespace_default=google
24427    # Check whether --enable-namespace was given.
24428 if test "${enable_namespace+set}" = set; then
24429   enableval=$enable_namespace; case "$enableval" in
24430                     yes) google_namespace="$google_namespace_default" ;;
24431                      no) google_namespace="" ;;
24432                       *) google_namespace="$enableval" ;;
24433                   esac
24434 else
24435   google_namespace="$google_namespace_default"
24436 fi
24437
24438    if test -n "$google_namespace"; then
24439      ac_google_namespace="$google_namespace"
24440      ac_google_start_namespace="namespace $google_namespace {"
24441      ac_google_end_namespace="}"
24442    else
24443      ac_google_namespace=""
24444      ac_google_start_namespace=""
24445      ac_google_end_namespace=""
24446    fi
24447
24448 cat >>confdefs.h <<_ACEOF
24449 #define GOOGLE_NAMESPACE $ac_google_namespace
24450 _ACEOF
24451
24452
24453 cat >>confdefs.h <<_ACEOF
24454 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
24455 _ACEOF
24456
24457
24458 cat >>confdefs.h <<_ACEOF
24459 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
24460 _ACEOF
24461
24462
24463
24464 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
24465 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
24466 if test "${ac_cv_cxx_using_operator+set}" = set; then
24467   echo $ECHO_N "(cached) $ECHO_C" >&6
24468 else
24469
24470        ac_ext=cpp
24471 ac_cpp='$CXXCPP $CPPFLAGS'
24472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24475
24476        cat >conftest.$ac_ext <<_ACEOF
24477 /* confdefs.h.  */
24478 _ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h.  */
24482 #include <iostream>
24483                        std::ostream& operator<<(std::ostream&, struct s);
24484 int
24485 main ()
24486 {
24487 using ::operator<<; return 0;
24488   ;
24489   return 0;
24490 }
24491 _ACEOF
24492 rm -f conftest.$ac_objext
24493 if { (ac_try="$ac_compile"
24494 case "(($ac_try" in
24495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496   *) ac_try_echo=$ac_try;;
24497 esac
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499   (eval "$ac_compile") 2>conftest.er1
24500   ac_status=$?
24501   grep -v '^ *+' conftest.er1 >conftest.err
24502   rm -f conftest.er1
24503   cat conftest.err >&5
24504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505   (exit $ac_status); } && {
24506          test -z "$ac_cxx_werror_flag" ||
24507          test ! -s conftest.err
24508        } && test -s conftest.$ac_objext; then
24509   ac_cv_cxx_using_operator=1
24510 else
24511   echo "$as_me: failed program was:" >&5
24512 sed 's/^/| /' conftest.$ac_ext >&5
24513
24514         ac_cv_cxx_using_operator=0
24515 fi
24516
24517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518       ac_ext=c
24519 ac_cpp='$CPP $CPPFLAGS'
24520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24523
24524 fi
24525 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
24526 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
24527   if test "$ac_cv_cxx_using_operator" = 1; then
24528
24529 cat >>confdefs.h <<\_ACEOF
24530 #define HAVE_USING_OPERATOR 1
24531 _ACEOF
24532
24533   fi
24534
24535 # We want to access the "PC" (Program Counter) register from a struct
24536 # ucontext.  Every system has its own way of doing that.  We try all the
24537 # possibilities we know about.  Note REG_PC should come first (REG_RIP
24538 # is also defined on solaris, but does the wrong thing).
24539 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
24540 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
24541 pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
24542 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
24543 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
24544 pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
24545 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
24546 pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
24547 pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
24548 pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
24549 pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
24550 pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
24551 pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
24552 pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
24553 pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
24554 pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
24555 pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
24556 pc_field_found=false
24557 for pc_field in $pc_fields; do
24558   if ! $pc_field_found; then
24559     cat >conftest.$ac_ext <<_ACEOF
24560 /* confdefs.h.  */
24561 _ACEOF
24562 cat confdefs.h >>conftest.$ac_ext
24563 cat >>conftest.$ac_ext <<_ACEOF
24564 /* end confdefs.h.  */
24565 #define _GNU_SOURCE 1
24566                     #include <ucontext.h>
24567 int
24568 main ()
24569 {
24570 ucontext_t u; return u.$pc_field == 0;
24571   ;
24572   return 0;
24573 }
24574 _ACEOF
24575 rm -f conftest.$ac_objext
24576 if { (ac_try="$ac_compile"
24577 case "(($ac_try" in
24578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579   *) ac_try_echo=$ac_try;;
24580 esac
24581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582   (eval "$ac_compile") 2>conftest.er1
24583   ac_status=$?
24584   grep -v '^ *+' conftest.er1 >conftest.err
24585   rm -f conftest.er1
24586   cat conftest.err >&5
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); } && {
24589          test -z "$ac_c_werror_flag" ||
24590          test ! -s conftest.err
24591        } && test -s conftest.$ac_objext; then
24592
24593 cat >>confdefs.h <<_ACEOF
24594 #define PC_FROM_UCONTEXT $pc_field
24595 _ACEOF
24596
24597                    { echo "$as_me:$LINENO: result: $pc_field" >&5
24598 echo "${ECHO_T}$pc_field" >&6; }
24599                  pc_field_found=true
24600 else
24601   echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.$ac_ext >&5
24603
24604
24605 fi
24606
24607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24608   fi
24609 done
24610 if ! $pc_field_found; then
24611   { echo "$as_me:$LINENO: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
24612 echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
24613 fi
24614
24615 # These are what's needed by logging.h.in and raw_logging.h.in
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635 # Write generated configuration file
24636 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"
24637
24638 cat >confcache <<\_ACEOF
24639 # This file is a shell script that caches the results of configure
24640 # tests run on this system so they can be shared between configure
24641 # scripts and configure runs, see configure's option --config-cache.
24642 # It is not useful on other systems.  If it contains results you don't
24643 # want to keep, you may remove or edit it.
24644 #
24645 # config.status only pays attention to the cache file if you give it
24646 # the --recheck option to rerun configure.
24647 #
24648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24650 # following values.
24651
24652 _ACEOF
24653
24654 # The following way of writing the cache mishandles newlines in values,
24655 # but we know of no workaround that is simple, portable, and efficient.
24656 # So, we kill variables containing newlines.
24657 # Ultrix sh set writes to stderr and can't be redirected directly,
24658 # and sets the high bit in the cache file unless we assign to the vars.
24659 (
24660   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24661     eval ac_val=\$$ac_var
24662     case $ac_val in #(
24663     *${as_nl}*)
24664       case $ac_var in #(
24665       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24666 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24667       esac
24668       case $ac_var in #(
24669       _ | IFS | as_nl) ;; #(
24670       *) $as_unset $ac_var ;;
24671       esac ;;
24672     esac
24673   done
24674
24675   (set) 2>&1 |
24676     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24677     *${as_nl}ac_space=\ *)
24678       # `set' does not quote correctly, so add quotes (double-quote
24679       # substitution turns \\\\ into \\, and sed turns \\ into \).
24680       sed -n \
24681         "s/'/'\\\\''/g;
24682           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24683       ;; #(
24684     *)
24685       # `set' quotes correctly as required by POSIX, so do not add quotes.
24686       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24687       ;;
24688     esac |
24689     sort
24690 ) |
24691   sed '
24692      /^ac_cv_env_/b end
24693      t clear
24694      :clear
24695      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24696      t end
24697      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24698      :end' >>confcache
24699 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24700   if test -w "$cache_file"; then
24701     test "x$cache_file" != "x/dev/null" &&
24702       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24703 echo "$as_me: updating cache $cache_file" >&6;}
24704     cat confcache >$cache_file
24705   else
24706     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24707 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24708   fi
24709 fi
24710 rm -f confcache
24711
24712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24713 # Let make expand exec_prefix.
24714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24715
24716 DEFS=-DHAVE_CONFIG_H
24717
24718 ac_libobjs=
24719 ac_ltlibobjs=
24720 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24721   # 1. Remove the extension, and $U if already installed.
24722   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24723   ac_i=`echo "$ac_i" | sed "$ac_script"`
24724   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24725   #    will be set to the directory where LIBOBJS objects are built.
24726   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24727   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24728 done
24729 LIBOBJS=$ac_libobjs
24730
24731 LTLIBOBJS=$ac_ltlibobjs
24732
24733
24734 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24735   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24736 Usually this means the macro was only invoked conditionally." >&5
24737 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24738 Usually this means the macro was only invoked conditionally." >&2;}
24739    { (exit 1); exit 1; }; }
24740 fi
24741 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24742   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24743 Usually this means the macro was only invoked conditionally." >&5
24744 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24745 Usually this means the macro was only invoked conditionally." >&2;}
24746    { (exit 1); exit 1; }; }
24747 fi
24748 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24749   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24750 Usually this means the macro was only invoked conditionally." >&5
24751 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24752 Usually this means the macro was only invoked conditionally." >&2;}
24753    { (exit 1); exit 1; }; }
24754 fi
24755 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
24756   { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
24757 Usually this means the macro was only invoked conditionally." >&5
24758 echo "$as_me: error: conditional \"GCC\" was never defined.
24759 Usually this means the macro was only invoked conditionally." >&2;}
24760    { (exit 1); exit 1; }; }
24761 fi
24762 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
24763   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24764 Usually this means the macro was only invoked conditionally." >&5
24765 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24766 Usually this means the macro was only invoked conditionally." >&2;}
24767    { (exit 1); exit 1; }; }
24768 fi
24769 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
24770   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
24771 Usually this means the macro was only invoked conditionally." >&5
24772 echo "$as_me: error: conditional \"X86_64\" was never defined.
24773 Usually this means the macro was only invoked conditionally." >&2;}
24774    { (exit 1); exit 1; }; }
24775 fi
24776
24777 : ${CONFIG_STATUS=./config.status}
24778 ac_clean_files_save=$ac_clean_files
24779 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24780 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24781 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24782 cat >$CONFIG_STATUS <<_ACEOF
24783 #! $SHELL
24784 # Generated by $as_me.
24785 # Run this file to recreate the current configuration.
24786 # Compiler output produced by configure, useful for debugging
24787 # configure, is in config.log if it exists.
24788
24789 debug=false
24790 ac_cs_recheck=false
24791 ac_cs_silent=false
24792 SHELL=\${CONFIG_SHELL-$SHELL}
24793 _ACEOF
24794
24795 cat >>$CONFIG_STATUS <<\_ACEOF
24796 ## --------------------- ##
24797 ## M4sh Initialization.  ##
24798 ## --------------------- ##
24799
24800 # Be more Bourne compatible
24801 DUALCASE=1; export DUALCASE # for MKS sh
24802 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24803   emulate sh
24804   NULLCMD=:
24805   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24806   # is contrary to our usage.  Disable this feature.
24807   alias -g '${1+"$@"}'='"$@"'
24808   setopt NO_GLOB_SUBST
24809 else
24810   case `(set -o) 2>/dev/null` in
24811   *posix*) set -o posix ;;
24812 esac
24813
24814 fi
24815
24816
24817
24818
24819 # PATH needs CR
24820 # Avoid depending upon Character Ranges.
24821 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24822 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24823 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24824 as_cr_digits='0123456789'
24825 as_cr_alnum=$as_cr_Letters$as_cr_digits
24826
24827 # The user is always right.
24828 if test "${PATH_SEPARATOR+set}" != set; then
24829   echo "#! /bin/sh" >conf$$.sh
24830   echo  "exit 0"   >>conf$$.sh
24831   chmod +x conf$$.sh
24832   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24833     PATH_SEPARATOR=';'
24834   else
24835     PATH_SEPARATOR=:
24836   fi
24837   rm -f conf$$.sh
24838 fi
24839
24840 # Support unset when possible.
24841 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24842   as_unset=unset
24843 else
24844   as_unset=false
24845 fi
24846
24847
24848 # IFS
24849 # We need space, tab and new line, in precisely that order.  Quoting is
24850 # there to prevent editors from complaining about space-tab.
24851 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24852 # splitting by setting IFS to empty value.)
24853 as_nl='
24854 '
24855 IFS=" ""        $as_nl"
24856
24857 # Find who we are.  Look in the path if we contain no directory separator.
24858 case $0 in
24859   *[\\/]* ) as_myself=$0 ;;
24860   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24861 for as_dir in $PATH
24862 do
24863   IFS=$as_save_IFS
24864   test -z "$as_dir" && as_dir=.
24865   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24866 done
24867 IFS=$as_save_IFS
24868
24869      ;;
24870 esac
24871 # We did not find ourselves, most probably we were run as `sh COMMAND'
24872 # in which case we are not to be found in the path.
24873 if test "x$as_myself" = x; then
24874   as_myself=$0
24875 fi
24876 if test ! -f "$as_myself"; then
24877   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24878   { (exit 1); exit 1; }
24879 fi
24880
24881 # Work around bugs in pre-3.0 UWIN ksh.
24882 for as_var in ENV MAIL MAILPATH
24883 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24884 done
24885 PS1='$ '
24886 PS2='> '
24887 PS4='+ '
24888
24889 # NLS nuisances.
24890 for as_var in \
24891   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24892   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24893   LC_TELEPHONE LC_TIME
24894 do
24895   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24896     eval $as_var=C; export $as_var
24897   else
24898     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24899   fi
24900 done
24901
24902 # Required to use basename.
24903 if expr a : '\(a\)' >/dev/null 2>&1 &&
24904    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24905   as_expr=expr
24906 else
24907   as_expr=false
24908 fi
24909
24910 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24911   as_basename=basename
24912 else
24913   as_basename=false
24914 fi
24915
24916
24917 # Name of the executable.
24918 as_me=`$as_basename -- "$0" ||
24919 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24920          X"$0" : 'X\(//\)$' \| \
24921          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24922 echo X/"$0" |
24923     sed '/^.*\/\([^/][^/]*\)\/*$/{
24924             s//\1/
24925             q
24926           }
24927           /^X\/\(\/\/\)$/{
24928             s//\1/
24929             q
24930           }
24931           /^X\/\(\/\).*/{
24932             s//\1/
24933             q
24934           }
24935           s/.*/./; q'`
24936
24937 # CDPATH.
24938 $as_unset CDPATH
24939
24940
24941
24942   as_lineno_1=$LINENO
24943   as_lineno_2=$LINENO
24944   test "x$as_lineno_1" != "x$as_lineno_2" &&
24945   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24946
24947   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24948   # uniformly replaced by the line number.  The first 'sed' inserts a
24949   # line-number line after each line using $LINENO; the second 'sed'
24950   # does the real work.  The second script uses 'N' to pair each
24951   # line-number line with the line containing $LINENO, and appends
24952   # trailing '-' during substitution so that $LINENO is not a special
24953   # case at line end.
24954   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24955   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24956   # E. McMahon (1931-1989) for sed's syntax.  :-)
24957   sed -n '
24958     p
24959     /[$]LINENO/=
24960   ' <$as_myself |
24961     sed '
24962       s/[$]LINENO.*/&-/
24963       t lineno
24964       b
24965       :lineno
24966       N
24967       :loop
24968       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24969       t loop
24970       s/-\n.*//
24971     ' >$as_me.lineno &&
24972   chmod +x "$as_me.lineno" ||
24973     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24974    { (exit 1); exit 1; }; }
24975
24976   # Don't try to exec as it changes $[0], causing all sort of problems
24977   # (the dirname of $[0] is not the place where we might find the
24978   # original and so on.  Autoconf is especially sensitive to this).
24979   . "./$as_me.lineno"
24980   # Exit status is that of the last command.
24981   exit
24982 }
24983
24984
24985 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24986   as_dirname=dirname
24987 else
24988   as_dirname=false
24989 fi
24990
24991 ECHO_C= ECHO_N= ECHO_T=
24992 case `echo -n x` in
24993 -n*)
24994   case `echo 'x\c'` in
24995   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24996   *)   ECHO_C='\c';;
24997   esac;;
24998 *)
24999   ECHO_N='-n';;
25000 esac
25001
25002 if expr a : '\(a\)' >/dev/null 2>&1 &&
25003    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25004   as_expr=expr
25005 else
25006   as_expr=false
25007 fi
25008
25009 rm -f conf$$ conf$$.exe conf$$.file
25010 if test -d conf$$.dir; then
25011   rm -f conf$$.dir/conf$$.file
25012 else
25013   rm -f conf$$.dir
25014   mkdir conf$$.dir
25015 fi
25016 echo >conf$$.file
25017 if ln -s conf$$.file conf$$ 2>/dev/null; then
25018   as_ln_s='ln -s'
25019   # ... but there are two gotchas:
25020   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25021   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25022   # In both cases, we have to default to `cp -p'.
25023   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25024     as_ln_s='cp -p'
25025 elif ln conf$$.file conf$$ 2>/dev/null; then
25026   as_ln_s=ln
25027 else
25028   as_ln_s='cp -p'
25029 fi
25030 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25031 rmdir conf$$.dir 2>/dev/null
25032
25033 if mkdir -p . 2>/dev/null; then
25034   as_mkdir_p=:
25035 else
25036   test -d ./-p && rmdir ./-p
25037   as_mkdir_p=false
25038 fi
25039
25040 if test -x / >/dev/null 2>&1; then
25041   as_test_x='test -x'
25042 else
25043   if ls -dL / >/dev/null 2>&1; then
25044     as_ls_L_option=L
25045   else
25046     as_ls_L_option=
25047   fi
25048   as_test_x='
25049     eval sh -c '\''
25050       if test -d "$1"; then
25051         test -d "$1/.";
25052       else
25053         case $1 in
25054         -*)set "./$1";;
25055         esac;
25056         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25057         ???[sx]*):;;*)false;;esac;fi
25058     '\'' sh
25059   '
25060 fi
25061 as_executable_p=$as_test_x
25062
25063 # Sed expression to map a string onto a valid CPP name.
25064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25065
25066 # Sed expression to map a string onto a valid variable name.
25067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25068
25069
25070 exec 6>&1
25071
25072 # Save the log message, to keep $[0] and so on meaningful, and to
25073 # report actual input values of CONFIG_FILES etc. instead of their
25074 # values after options handling.
25075 ac_log="
25076 This file was extended by glog $as_me 0.1.2, which was
25077 generated by GNU Autoconf 2.61.  Invocation command line was
25078
25079   CONFIG_FILES    = $CONFIG_FILES
25080   CONFIG_HEADERS  = $CONFIG_HEADERS
25081   CONFIG_LINKS    = $CONFIG_LINKS
25082   CONFIG_COMMANDS = $CONFIG_COMMANDS
25083   $ $0 $@
25084
25085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25086 "
25087
25088 _ACEOF
25089
25090 cat >>$CONFIG_STATUS <<_ACEOF
25091 # Files that config.status was made for.
25092 config_files="$ac_config_files"
25093 config_headers="$ac_config_headers"
25094 config_commands="$ac_config_commands"
25095
25096 _ACEOF
25097
25098 cat >>$CONFIG_STATUS <<\_ACEOF
25099 ac_cs_usage="\
25100 \`$as_me' instantiates files from templates according to the
25101 current configuration.
25102
25103 Usage: $0 [OPTIONS] [FILE]...
25104
25105   -h, --help       print this help, then exit
25106   -V, --version    print version number and configuration settings, then exit
25107   -q, --quiet      do not print progress messages
25108   -d, --debug      don't remove temporary files
25109       --recheck    update $as_me by reconfiguring in the same conditions
25110   --file=FILE[:TEMPLATE]
25111                    instantiate the configuration file FILE
25112   --header=FILE[:TEMPLATE]
25113                    instantiate the configuration header FILE
25114
25115 Configuration files:
25116 $config_files
25117
25118 Configuration headers:
25119 $config_headers
25120
25121 Configuration commands:
25122 $config_commands
25123
25124 Report bugs to <bug-autoconf@gnu.org>."
25125
25126 _ACEOF
25127 cat >>$CONFIG_STATUS <<_ACEOF
25128 ac_cs_version="\\
25129 glog config.status 0.1.2
25130 configured by $0, generated by GNU Autoconf 2.61,
25131   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25132
25133 Copyright (C) 2006 Free Software Foundation, Inc.
25134 This config.status script is free software; the Free Software Foundation
25135 gives unlimited permission to copy, distribute and modify it."
25136
25137 ac_pwd='$ac_pwd'
25138 srcdir='$srcdir'
25139 INSTALL='$INSTALL'
25140 MKDIR_P='$MKDIR_P'
25141 _ACEOF
25142
25143 cat >>$CONFIG_STATUS <<\_ACEOF
25144 # If no file are specified by the user, then we need to provide default
25145 # value.  By we need to know if files were specified by the user.
25146 ac_need_defaults=:
25147 while test $# != 0
25148 do
25149   case $1 in
25150   --*=*)
25151     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25152     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25153     ac_shift=:
25154     ;;
25155   *)
25156     ac_option=$1
25157     ac_optarg=$2
25158     ac_shift=shift
25159     ;;
25160   esac
25161
25162   case $ac_option in
25163   # Handling of the options.
25164   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25165     ac_cs_recheck=: ;;
25166   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25167     echo "$ac_cs_version"; exit ;;
25168   --debug | --debu | --deb | --de | --d | -d )
25169     debug=: ;;
25170   --file | --fil | --fi | --f )
25171     $ac_shift
25172     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25173     ac_need_defaults=false;;
25174   --header | --heade | --head | --hea )
25175     $ac_shift
25176     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25177     ac_need_defaults=false;;
25178   --he | --h)
25179     # Conflict between --help and --header
25180     { echo "$as_me: error: ambiguous option: $1
25181 Try \`$0 --help' for more information." >&2
25182    { (exit 1); exit 1; }; };;
25183   --help | --hel | -h )
25184     echo "$ac_cs_usage"; exit ;;
25185   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25186   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25187     ac_cs_silent=: ;;
25188
25189   # This is an error.
25190   -*) { echo "$as_me: error: unrecognized option: $1
25191 Try \`$0 --help' for more information." >&2
25192    { (exit 1); exit 1; }; } ;;
25193
25194   *) ac_config_targets="$ac_config_targets $1"
25195      ac_need_defaults=false ;;
25196
25197   esac
25198   shift
25199 done
25200
25201 ac_configure_extra_args=
25202
25203 if $ac_cs_silent; then
25204   exec 6>/dev/null
25205   ac_configure_extra_args="$ac_configure_extra_args --silent"
25206 fi
25207
25208 _ACEOF
25209 cat >>$CONFIG_STATUS <<_ACEOF
25210 if \$ac_cs_recheck; then
25211   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25212   CONFIG_SHELL=$SHELL
25213   export CONFIG_SHELL
25214   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25215 fi
25216
25217 _ACEOF
25218 cat >>$CONFIG_STATUS <<\_ACEOF
25219 exec 5>>config.log
25220 {
25221   echo
25222   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25223 ## Running $as_me. ##
25224 _ASBOX
25225   echo "$ac_log"
25226 } >&5
25227
25228 _ACEOF
25229 cat >>$CONFIG_STATUS <<_ACEOF
25230 #
25231 # INIT-COMMANDS
25232 #
25233 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25234
25235 _ACEOF
25236
25237 cat >>$CONFIG_STATUS <<\_ACEOF
25238
25239 # Handling of arguments.
25240 for ac_config_target in $ac_config_targets
25241 do
25242   case $ac_config_target in
25243     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25244     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25245     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25246     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
25247     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
25248     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
25249     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
25250
25251   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25252 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25253    { (exit 1); exit 1; }; };;
25254   esac
25255 done
25256
25257
25258 # If the user did not use the arguments to specify the items to instantiate,
25259 # then the envvar interface is used.  Set only those that are not.
25260 # We use the long form for the default assignment because of an extremely
25261 # bizarre bug on SunOS 4.1.3.
25262 if $ac_need_defaults; then
25263   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25264   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25265   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25266 fi
25267
25268 # Have a temporary directory for convenience.  Make it in the build tree
25269 # simply because there is no reason against having it here, and in addition,
25270 # creating and moving files from /tmp can sometimes cause problems.
25271 # Hook for its removal unless debugging.
25272 # Note that there is a small window in which the directory will not be cleaned:
25273 # after its creation but before its name has been assigned to `$tmp'.
25274 $debug ||
25275 {
25276   tmp=
25277   trap 'exit_status=$?
25278   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25279 ' 0
25280   trap '{ (exit 1); exit 1; }' 1 2 13 15
25281 }
25282 # Create a (secure) tmp directory for tmp files.
25283
25284 {
25285   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25286   test -n "$tmp" && test -d "$tmp"
25287 }  ||
25288 {
25289   tmp=./conf$$-$RANDOM
25290   (umask 077 && mkdir "$tmp")
25291 } ||
25292 {
25293    echo "$me: cannot create a temporary directory in ." >&2
25294    { (exit 1); exit 1; }
25295 }
25296
25297 #
25298 # Set up the sed scripts for CONFIG_FILES section.
25299 #
25300
25301 # No need to generate the scripts if there are no CONFIG_FILES.
25302 # This happens for instance when ./config.status config.h
25303 if test -n "$CONFIG_FILES"; then
25304
25305 _ACEOF
25306
25307
25308
25309 ac_delim='%!_!# '
25310 for ac_last_try in false false false false false :; do
25311   cat >conf$$subs.sed <<_ACEOF
25312 SHELL!$SHELL$ac_delim
25313 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25314 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25315 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25316 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25317 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25318 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25319 exec_prefix!$exec_prefix$ac_delim
25320 prefix!$prefix$ac_delim
25321 program_transform_name!$program_transform_name$ac_delim
25322 bindir!$bindir$ac_delim
25323 sbindir!$sbindir$ac_delim
25324 libexecdir!$libexecdir$ac_delim
25325 datarootdir!$datarootdir$ac_delim
25326 datadir!$datadir$ac_delim
25327 sysconfdir!$sysconfdir$ac_delim
25328 sharedstatedir!$sharedstatedir$ac_delim
25329 localstatedir!$localstatedir$ac_delim
25330 includedir!$includedir$ac_delim
25331 oldincludedir!$oldincludedir$ac_delim
25332 docdir!$docdir$ac_delim
25333 infodir!$infodir$ac_delim
25334 htmldir!$htmldir$ac_delim
25335 dvidir!$dvidir$ac_delim
25336 pdfdir!$pdfdir$ac_delim
25337 psdir!$psdir$ac_delim
25338 libdir!$libdir$ac_delim
25339 localedir!$localedir$ac_delim
25340 mandir!$mandir$ac_delim
25341 DEFS!$DEFS$ac_delim
25342 ECHO_C!$ECHO_C$ac_delim
25343 ECHO_N!$ECHO_N$ac_delim
25344 ECHO_T!$ECHO_T$ac_delim
25345 LIBS!$LIBS$ac_delim
25346 build_alias!$build_alias$ac_delim
25347 host_alias!$host_alias$ac_delim
25348 target_alias!$target_alias$ac_delim
25349 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25350 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25351 INSTALL_DATA!$INSTALL_DATA$ac_delim
25352 am__isrc!$am__isrc$ac_delim
25353 CYGPATH_W!$CYGPATH_W$ac_delim
25354 PACKAGE!$PACKAGE$ac_delim
25355 VERSION!$VERSION$ac_delim
25356 ACLOCAL!$ACLOCAL$ac_delim
25357 AUTOCONF!$AUTOCONF$ac_delim
25358 AUTOMAKE!$AUTOMAKE$ac_delim
25359 AUTOHEADER!$AUTOHEADER$ac_delim
25360 MAKEINFO!$MAKEINFO$ac_delim
25361 install_sh!$install_sh$ac_delim
25362 STRIP!$STRIP$ac_delim
25363 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25364 mkdir_p!$mkdir_p$ac_delim
25365 AWK!$AWK$ac_delim
25366 SET_MAKE!$SET_MAKE$ac_delim
25367 am__leading_dot!$am__leading_dot$ac_delim
25368 AMTAR!$AMTAR$ac_delim
25369 am__tar!$am__tar$ac_delim
25370 am__untar!$am__untar$ac_delim
25371 CC!$CC$ac_delim
25372 CFLAGS!$CFLAGS$ac_delim
25373 LDFLAGS!$LDFLAGS$ac_delim
25374 CPPFLAGS!$CPPFLAGS$ac_delim
25375 ac_ct_CC!$ac_ct_CC$ac_delim
25376 EXEEXT!$EXEEXT$ac_delim
25377 OBJEXT!$OBJEXT$ac_delim
25378 DEPDIR!$DEPDIR$ac_delim
25379 am__include!$am__include$ac_delim
25380 am__quote!$am__quote$ac_delim
25381 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25382 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25383 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25384 CCDEPMODE!$CCDEPMODE$ac_delim
25385 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25386 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25387 CPP!$CPP$ac_delim
25388 CXX!$CXX$ac_delim
25389 CXXFLAGS!$CXXFLAGS$ac_delim
25390 ac_ct_CXX!$ac_ct_CXX$ac_delim
25391 CXXDEPMODE!$CXXDEPMODE$ac_delim
25392 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25393 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25394 GCC_TRUE!$GCC_TRUE$ac_delim
25395 GCC_FALSE!$GCC_FALSE$ac_delim
25396 build!$build$ac_delim
25397 build_cpu!$build_cpu$ac_delim
25398 build_vendor!$build_vendor$ac_delim
25399 build_os!$build_os$ac_delim
25400 host!$host$ac_delim
25401 host_cpu!$host_cpu$ac_delim
25402 host_vendor!$host_vendor$ac_delim
25403 host_os!$host_os$ac_delim
25404 SED!$SED$ac_delim
25405 GREP!$GREP$ac_delim
25406 EGREP!$EGREP$ac_delim
25407 LN_S!$LN_S$ac_delim
25408 ECHO!$ECHO$ac_delim
25409 _ACEOF
25410
25411   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25412     break
25413   elif $ac_last_try; then
25414     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25415 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25416    { (exit 1); exit 1; }; }
25417   else
25418     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25419   fi
25420 done
25421
25422 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25423 if test -n "$ac_eof"; then
25424   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25425   ac_eof=`expr $ac_eof + 1`
25426 fi
25427
25428 cat >>$CONFIG_STATUS <<_ACEOF
25429 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25431 _ACEOF
25432 sed '
25433 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25434 s/^/s,@/; s/!/@,|#_!!_#|/
25435 :n
25436 t n
25437 s/'"$ac_delim"'$/,g/; t
25438 s/$/\\/; p
25439 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25440 ' >>$CONFIG_STATUS <conf$$subs.sed
25441 rm -f conf$$subs.sed
25442 cat >>$CONFIG_STATUS <<_ACEOF
25443 CEOF$ac_eof
25444 _ACEOF
25445
25446
25447 ac_delim='%!_!# '
25448 for ac_last_try in false false false false false :; do
25449   cat >conf$$subs.sed <<_ACEOF
25450 AR!$AR$ac_delim
25451 RANLIB!$RANLIB$ac_delim
25452 DSYMUTIL!$DSYMUTIL$ac_delim
25453 NMEDIT!$NMEDIT$ac_delim
25454 CXXCPP!$CXXCPP$ac_delim
25455 F77!$F77$ac_delim
25456 FFLAGS!$FFLAGS$ac_delim
25457 ac_ct_F77!$ac_ct_F77$ac_delim
25458 LIBTOOL!$LIBTOOL$ac_delim
25459 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
25460 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
25461 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
25462 X86_64_TRUE!$X86_64_TRUE$ac_delim
25463 X86_64_FALSE!$X86_64_FALSE$ac_delim
25464 acx_pthread_config!$acx_pthread_config$ac_delim
25465 PTHREAD_CC!$PTHREAD_CC$ac_delim
25466 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
25467 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25468 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
25469 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
25470 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
25471 ac_google_namespace!$ac_google_namespace$ac_delim
25472 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
25473 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
25474 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
25475 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
25476 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
25477 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
25478 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
25479 ac_cv_have_unistd_h!$ac_cv_have_unistd_h$ac_delim
25480 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
25481 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
25482 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
25483 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
25484 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
25485 GTEST_LIBS!$GTEST_LIBS$ac_delim
25486 GMOCK_LIBS!$GMOCK_LIBS$ac_delim
25487 LIBOBJS!$LIBOBJS$ac_delim
25488 LTLIBOBJS!$LTLIBOBJS$ac_delim
25489 _ACEOF
25490
25491   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
25492     break
25493   elif $ac_last_try; then
25494     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25495 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25496    { (exit 1); exit 1; }; }
25497   else
25498     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25499   fi
25500 done
25501
25502 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25503 if test -n "$ac_eof"; then
25504   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25505   ac_eof=`expr $ac_eof + 1`
25506 fi
25507
25508 cat >>$CONFIG_STATUS <<_ACEOF
25509 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25511 _ACEOF
25512 sed '
25513 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25514 s/^/s,@/; s/!/@,|#_!!_#|/
25515 :n
25516 t n
25517 s/'"$ac_delim"'$/,g/; t
25518 s/$/\\/; p
25519 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25520 ' >>$CONFIG_STATUS <conf$$subs.sed
25521 rm -f conf$$subs.sed
25522 cat >>$CONFIG_STATUS <<_ACEOF
25523 :end
25524 s/|#_!!_#|//g
25525 CEOF$ac_eof
25526 _ACEOF
25527
25528
25529 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25530 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25531 # trailing colons and then remove the whole line if VPATH becomes empty
25532 # (actually we leave an empty line to preserve line numbers).
25533 if test "x$srcdir" = x.; then
25534   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25535 s/:*\$(srcdir):*/:/
25536 s/:*\${srcdir}:*/:/
25537 s/:*@srcdir@:*/:/
25538 s/^\([^=]*=[     ]*\):*/\1/
25539 s/:*$//
25540 s/^[^=]*=[       ]*$//
25541 }'
25542 fi
25543
25544 cat >>$CONFIG_STATUS <<\_ACEOF
25545 fi # test -n "$CONFIG_FILES"
25546
25547
25548 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25549 do
25550   case $ac_tag in
25551   :[FHLC]) ac_mode=$ac_tag; continue;;
25552   esac
25553   case $ac_mode$ac_tag in
25554   :[FHL]*:*);;
25555   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25556 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25557    { (exit 1); exit 1; }; };;
25558   :[FH]-) ac_tag=-:-;;
25559   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25560   esac
25561   ac_save_IFS=$IFS
25562   IFS=:
25563   set x $ac_tag
25564   IFS=$ac_save_IFS
25565   shift
25566   ac_file=$1
25567   shift
25568
25569   case $ac_mode in
25570   :L) ac_source=$1;;
25571   :[FH])
25572     ac_file_inputs=
25573     for ac_f
25574     do
25575       case $ac_f in
25576       -) ac_f="$tmp/stdin";;
25577       *) # Look for the file first in the build tree, then in the source tree
25578          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25579          # because $ac_f cannot contain `:'.
25580          test -f "$ac_f" ||
25581            case $ac_f in
25582            [\\/$]*) false;;
25583            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25584            esac ||
25585            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25586 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25587    { (exit 1); exit 1; }; };;
25588       esac
25589       ac_file_inputs="$ac_file_inputs $ac_f"
25590     done
25591
25592     # Let's still pretend it is `configure' which instantiates (i.e., don't
25593     # use $as_me), people would be surprised to read:
25594     #    /* config.h.  Generated by config.status.  */
25595     configure_input="Generated from "`IFS=:
25596           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25597     if test x"$ac_file" != x-; then
25598       configure_input="$ac_file.  $configure_input"
25599       { echo "$as_me:$LINENO: creating $ac_file" >&5
25600 echo "$as_me: creating $ac_file" >&6;}
25601     fi
25602
25603     case $ac_tag in
25604     *:-:* | *:-) cat >"$tmp/stdin";;
25605     esac
25606     ;;
25607   esac
25608
25609   ac_dir=`$as_dirname -- "$ac_file" ||
25610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25611          X"$ac_file" : 'X\(//\)[^/]' \| \
25612          X"$ac_file" : 'X\(//\)$' \| \
25613          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25614 echo X"$ac_file" |
25615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25616             s//\1/
25617             q
25618           }
25619           /^X\(\/\/\)[^/].*/{
25620             s//\1/
25621             q
25622           }
25623           /^X\(\/\/\)$/{
25624             s//\1/
25625             q
25626           }
25627           /^X\(\/\).*/{
25628             s//\1/
25629             q
25630           }
25631           s/.*/./; q'`
25632   { as_dir="$ac_dir"
25633   case $as_dir in #(
25634   -*) as_dir=./$as_dir;;
25635   esac
25636   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25637     as_dirs=
25638     while :; do
25639       case $as_dir in #(
25640       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25641       *) as_qdir=$as_dir;;
25642       esac
25643       as_dirs="'$as_qdir' $as_dirs"
25644       as_dir=`$as_dirname -- "$as_dir" ||
25645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25646          X"$as_dir" : 'X\(//\)[^/]' \| \
25647          X"$as_dir" : 'X\(//\)$' \| \
25648          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25649 echo X"$as_dir" |
25650     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25651             s//\1/
25652             q
25653           }
25654           /^X\(\/\/\)[^/].*/{
25655             s//\1/
25656             q
25657           }
25658           /^X\(\/\/\)$/{
25659             s//\1/
25660             q
25661           }
25662           /^X\(\/\).*/{
25663             s//\1/
25664             q
25665           }
25666           s/.*/./; q'`
25667       test -d "$as_dir" && break
25668     done
25669     test -z "$as_dirs" || eval "mkdir $as_dirs"
25670   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25671 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25672    { (exit 1); exit 1; }; }; }
25673   ac_builddir=.
25674
25675 case "$ac_dir" in
25676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25677 *)
25678   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25679   # A ".." for each directory in $ac_dir_suffix.
25680   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25681   case $ac_top_builddir_sub in
25682   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25683   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25684   esac ;;
25685 esac
25686 ac_abs_top_builddir=$ac_pwd
25687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25688 # for backward compatibility:
25689 ac_top_builddir=$ac_top_build_prefix
25690
25691 case $srcdir in
25692   .)  # We are building in place.
25693     ac_srcdir=.
25694     ac_top_srcdir=$ac_top_builddir_sub
25695     ac_abs_top_srcdir=$ac_pwd ;;
25696   [\\/]* | ?:[\\/]* )  # Absolute name.
25697     ac_srcdir=$srcdir$ac_dir_suffix;
25698     ac_top_srcdir=$srcdir
25699     ac_abs_top_srcdir=$srcdir ;;
25700   *) # Relative name.
25701     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25702     ac_top_srcdir=$ac_top_build_prefix$srcdir
25703     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25704 esac
25705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25706
25707
25708   case $ac_mode in
25709   :F)
25710   #
25711   # CONFIG_FILE
25712   #
25713
25714   case $INSTALL in
25715   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25716   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25717   esac
25718   ac_MKDIR_P=$MKDIR_P
25719   case $MKDIR_P in
25720   [\\/$]* | ?:[\\/]* ) ;;
25721   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25722   esac
25723 _ACEOF
25724
25725 cat >>$CONFIG_STATUS <<\_ACEOF
25726 # If the template does not know about datarootdir, expand it.
25727 # FIXME: This hack should be removed a few years after 2.60.
25728 ac_datarootdir_hack=; ac_datarootdir_seen=
25729
25730 case `sed -n '/datarootdir/ {
25731   p
25732   q
25733 }
25734 /@datadir@/p
25735 /@docdir@/p
25736 /@infodir@/p
25737 /@localedir@/p
25738 /@mandir@/p
25739 ' $ac_file_inputs` in
25740 *datarootdir*) ac_datarootdir_seen=yes;;
25741 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25742   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25743 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25744 _ACEOF
25745 cat >>$CONFIG_STATUS <<_ACEOF
25746   ac_datarootdir_hack='
25747   s&@datadir@&$datadir&g
25748   s&@docdir@&$docdir&g
25749   s&@infodir@&$infodir&g
25750   s&@localedir@&$localedir&g
25751   s&@mandir@&$mandir&g
25752     s&\\\${datarootdir}&$datarootdir&g' ;;
25753 esac
25754 _ACEOF
25755
25756 # Neutralize VPATH when `$srcdir' = `.'.
25757 # Shell code in configure.ac might set extrasub.
25758 # FIXME: do we really want to maintain this feature?
25759 cat >>$CONFIG_STATUS <<_ACEOF
25760   sed "$ac_vpsub
25761 $extrasub
25762 _ACEOF
25763 cat >>$CONFIG_STATUS <<\_ACEOF
25764 :t
25765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25766 s&@configure_input@&$configure_input&;t t
25767 s&@top_builddir@&$ac_top_builddir_sub&;t t
25768 s&@srcdir@&$ac_srcdir&;t t
25769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25770 s&@top_srcdir@&$ac_top_srcdir&;t t
25771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25772 s&@builddir@&$ac_builddir&;t t
25773 s&@abs_builddir@&$ac_abs_builddir&;t t
25774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25775 s&@INSTALL@&$ac_INSTALL&;t t
25776 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25777 $ac_datarootdir_hack
25778 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25779
25780 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25781   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25782   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25783   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25784 which seems to be undefined.  Please make sure it is defined." >&5
25785 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25786 which seems to be undefined.  Please make sure it is defined." >&2;}
25787
25788   rm -f "$tmp/stdin"
25789   case $ac_file in
25790   -) cat "$tmp/out"; rm -f "$tmp/out";;
25791   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25792   esac
25793  ;;
25794   :H)
25795   #
25796   # CONFIG_HEADER
25797   #
25798 _ACEOF
25799
25800 # Transform confdefs.h into a sed script `conftest.defines', that
25801 # substitutes the proper values into config.h.in to produce config.h.
25802 rm -f conftest.defines conftest.tail
25803 # First, append a space to every undef/define line, to ease matching.
25804 echo 's/$/ /' >conftest.defines
25805 # Then, protect against being on the right side of a sed subst, or in
25806 # an unquoted here document, in config.status.  If some macros were
25807 # called several times there might be several #defines for the same
25808 # symbol, which is useless.  But do not sort them, since the last
25809 # AC_DEFINE must be honored.
25810 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25811 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25812 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25813 # PARAMS is the parameter list in the macro definition--in most cases, it's
25814 # just an empty string.
25815 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25816 ac_dB='\\)[      (].*,\\1define\\2'
25817 ac_dC=' '
25818 ac_dD=' ,'
25819
25820 uniq confdefs.h |
25821   sed -n '
25822         t rset
25823         :rset
25824         s/^[     ]*#[    ]*define[       ][      ]*//
25825         t ok
25826         d
25827         :ok
25828         s/[\\&,]/\\&/g
25829         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25830         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25831   ' >>conftest.defines
25832
25833 # Remove the space that was appended to ease matching.
25834 # Then replace #undef with comments.  This is necessary, for
25835 # example, in the case of _POSIX_SOURCE, which is predefined and required
25836 # on some systems where configure will not decide to define it.
25837 # (The regexp can be short, since the line contains either #define or #undef.)
25838 echo 's/ $//
25839 s,^[     #]*u.*,/* & */,' >>conftest.defines
25840
25841 # Break up conftest.defines:
25842 ac_max_sed_lines=50
25843
25844 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25845 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25846 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25847 # et cetera.
25848 ac_in='$ac_file_inputs'
25849 ac_out='"$tmp/out1"'
25850 ac_nxt='"$tmp/out2"'
25851
25852 while :
25853 do
25854   # Write a here document:
25855     cat >>$CONFIG_STATUS <<_ACEOF
25856     # First, check the format of the line:
25857     cat >"\$tmp/defines.sed" <<\\CEOF
25858 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25859 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25860 b
25861 :def
25862 _ACEOF
25863   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25864   echo 'CEOF
25865     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25866   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25867   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25868   grep . conftest.tail >/dev/null || break
25869   rm -f conftest.defines
25870   mv conftest.tail conftest.defines
25871 done
25872 rm -f conftest.defines conftest.tail
25873
25874 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25875 cat >>$CONFIG_STATUS <<\_ACEOF
25876   if test x"$ac_file" != x-; then
25877     echo "/* $configure_input  */" >"$tmp/config.h"
25878     cat "$ac_result" >>"$tmp/config.h"
25879     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25880       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25881 echo "$as_me: $ac_file is unchanged" >&6;}
25882     else
25883       rm -f $ac_file
25884       mv "$tmp/config.h" $ac_file
25885     fi
25886   else
25887     echo "/* $configure_input  */"
25888     cat "$ac_result"
25889   fi
25890   rm -f "$tmp/out12"
25891 # Compute $ac_file's index in $config_headers.
25892 _am_arg=$ac_file
25893 _am_stamp_count=1
25894 for _am_header in $config_headers :; do
25895   case $_am_header in
25896     $_am_arg | $_am_arg:* )
25897       break ;;
25898     * )
25899       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25900   esac
25901 done
25902 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25903 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25904          X"$_am_arg" : 'X\(//\)[^/]' \| \
25905          X"$_am_arg" : 'X\(//\)$' \| \
25906          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25907 echo X"$_am_arg" |
25908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25909             s//\1/
25910             q
25911           }
25912           /^X\(\/\/\)[^/].*/{
25913             s//\1/
25914             q
25915           }
25916           /^X\(\/\/\)$/{
25917             s//\1/
25918             q
25919           }
25920           /^X\(\/\).*/{
25921             s//\1/
25922             q
25923           }
25924           s/.*/./; q'`/stamp-h$_am_stamp_count
25925  ;;
25926
25927   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25928 echo "$as_me: executing $ac_file commands" >&6;}
25929  ;;
25930   esac
25931
25932
25933   case $ac_file$ac_mode in
25934     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25935   # Strip MF so we end up with the name of the file.
25936   mf=`echo "$mf" | sed -e 's/:.*$//'`
25937   # Check whether this is an Automake generated Makefile or not.
25938   # We used to match only the files named `Makefile.in', but
25939   # some people rename them; so instead we look at the file content.
25940   # Grep'ing the first line is not enough: some people post-process
25941   # each Makefile.in and add a new line on top of each file to say so.
25942   # Grep'ing the whole file is not good either: AIX grep has a line
25943   # limit of 2048, but all sed's we know have understand at least 4000.
25944   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25945     dirpart=`$as_dirname -- "$mf" ||
25946 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25947          X"$mf" : 'X\(//\)[^/]' \| \
25948          X"$mf" : 'X\(//\)$' \| \
25949          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25950 echo X"$mf" |
25951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25952             s//\1/
25953             q
25954           }
25955           /^X\(\/\/\)[^/].*/{
25956             s//\1/
25957             q
25958           }
25959           /^X\(\/\/\)$/{
25960             s//\1/
25961             q
25962           }
25963           /^X\(\/\).*/{
25964             s//\1/
25965             q
25966           }
25967           s/.*/./; q'`
25968   else
25969     continue
25970   fi
25971   # Extract the definition of DEPDIR, am__include, and am__quote
25972   # from the Makefile without running `make'.
25973   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25974   test -z "$DEPDIR" && continue
25975   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25976   test -z "am__include" && continue
25977   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25978   # When using ansi2knr, U may be empty or an underscore; expand it
25979   U=`sed -n 's/^U = //p' < "$mf"`
25980   # Find all dependency output files, they are included files with
25981   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25982   # simplest approach to changing $(DEPDIR) to its actual value in the
25983   # expansion.
25984   for file in `sed -n "
25985     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25986        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25987     # Make sure the directory exists.
25988     test -f "$dirpart/$file" && continue
25989     fdir=`$as_dirname -- "$file" ||
25990 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25991          X"$file" : 'X\(//\)[^/]' \| \
25992          X"$file" : 'X\(//\)$' \| \
25993          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25994 echo X"$file" |
25995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25996             s//\1/
25997             q
25998           }
25999           /^X\(\/\/\)[^/].*/{
26000             s//\1/
26001             q
26002           }
26003           /^X\(\/\/\)$/{
26004             s//\1/
26005             q
26006           }
26007           /^X\(\/\).*/{
26008             s//\1/
26009             q
26010           }
26011           s/.*/./; q'`
26012     { as_dir=$dirpart/$fdir
26013   case $as_dir in #(
26014   -*) as_dir=./$as_dir;;
26015   esac
26016   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26017     as_dirs=
26018     while :; do
26019       case $as_dir in #(
26020       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26021       *) as_qdir=$as_dir;;
26022       esac
26023       as_dirs="'$as_qdir' $as_dirs"
26024       as_dir=`$as_dirname -- "$as_dir" ||
26025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26026          X"$as_dir" : 'X\(//\)[^/]' \| \
26027          X"$as_dir" : 'X\(//\)$' \| \
26028          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26029 echo X"$as_dir" |
26030     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26031             s//\1/
26032             q
26033           }
26034           /^X\(\/\/\)[^/].*/{
26035             s//\1/
26036             q
26037           }
26038           /^X\(\/\/\)$/{
26039             s//\1/
26040             q
26041           }
26042           /^X\(\/\).*/{
26043             s//\1/
26044             q
26045           }
26046           s/.*/./; q'`
26047       test -d "$as_dir" && break
26048     done
26049     test -z "$as_dirs" || eval "mkdir $as_dirs"
26050   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26051 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26052    { (exit 1); exit 1; }; }; }
26053     # echo "creating $dirpart/$file"
26054     echo '# dummy' > "$dirpart/$file"
26055   done
26056 done
26057  ;;
26058
26059   esac
26060 done # for ac_tag
26061
26062
26063 { (exit 0); exit 0; }
26064 _ACEOF
26065 chmod +x $CONFIG_STATUS
26066 ac_clean_files=$ac_clean_files_save
26067
26068
26069 # configure is writing to config.log, and then calls config.status.
26070 # config.status does its own redirection, appending to config.log.
26071 # Unfortunately, on DOS this fails, as config.log is still kept open
26072 # by configure, so config.status won't be able to write to it; its
26073 # output is simply discarded.  So we exec the FD to /dev/null,
26074 # effectively closing config.log, so it can be properly (re)opened and
26075 # appended to by config.status.  When coming back to configure, we
26076 # need to make the FD available again.
26077 if test "$no_create" != yes; then
26078   ac_cs_success=:
26079   ac_config_status_args=
26080   test "$silent" = yes &&
26081     ac_config_status_args="$ac_config_status_args --quiet"
26082   exec 5>/dev/null
26083   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26084   exec 5>>config.log
26085   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26086   # would make configure fail if this is the last instruction.
26087   $ac_cs_success || { (exit 1); exit 1; }
26088 fi
26089