Generation of pkg-config metadata file.
[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.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.2'
732 PACKAGE_STRING='glog 0.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 GTEST_CONFIG
888 GMOCK_CONFIG
889 HAVE_GMOCK_TRUE
890 HAVE_GMOCK_FALSE
891 UNWIND_LIBS
892 ac_google_start_namespace
893 ac_google_end_namespace
894 ac_google_namespace
895 ac_cv_cxx_using_operator
896 ac_cv___attribute___noreturn
897 ac_cv___attribute___printf_4_5
898 ac_cv_have___builtin_expect
899 ac_cv_have_stdint_h
900 ac_cv_have_systypes_h
901 ac_cv_have_inttypes_h
902 ac_cv_have_unistd_h
903 ac_cv_have_uint16_t
904 ac_cv_have_u_int16_t
905 ac_cv_have___uint16
906 ac_cv_have_libgflags
907 GFLAGS_CFLAGS
908 GTEST_CFLAGS
909 GMOCK_CFLAGS
910 GFLAGS_LIBS
911 GTEST_LIBS
912 GMOCK_LIBS
913 LIBOBJS
914 LTLIBOBJS'
915 ac_subst_files=''
916       ac_precious_vars='build_alias
917 host_alias
918 target_alias
919 CC
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
924 CPP
925 CXX
926 CXXFLAGS
927 CCC
928 CXXCPP
929 F77
930 FFLAGS'
931
932
933 # Initialize some variables set by options.
934 ac_init_help=
935 ac_init_version=false
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
938 cache_file=/dev/null
939 exec_prefix=NONE
940 no_create=
941 no_recursion=
942 prefix=NONE
943 program_prefix=NONE
944 program_suffix=NONE
945 program_transform_name=s,x,x,
946 silent=
947 site=
948 srcdir=
949 verbose=
950 x_includes=NONE
951 x_libraries=NONE
952
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 includedir='${prefix}/include'
968 oldincludedir='/usr/include'
969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir='${datarootdir}/info'
971 htmldir='${docdir}'
972 dvidir='${docdir}'
973 pdfdir='${docdir}'
974 psdir='${docdir}'
975 libdir='${exec_prefix}/lib'
976 localedir='${datarootdir}/locale'
977 mandir='${datarootdir}/man'
978
979 ac_prev=
980 ac_dashdash=
981 for ac_option
982 do
983   # If the previous option needs an argument, assign it.
984   if test -n "$ac_prev"; then
985     eval $ac_prev=\$ac_option
986     ac_prev=
987     continue
988   fi
989
990   case $ac_option in
991   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992   *)    ac_optarg=yes ;;
993   esac
994
995   # Accept the important Cygnus configure options, so we can diagnose typos.
996
997   case $ac_dashdash$ac_option in
998   --)
999     ac_dashdash=yes ;;
1000
1001   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002     ac_prev=bindir ;;
1003   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004     bindir=$ac_optarg ;;
1005
1006   -build | --build | --buil | --bui | --bu)
1007     ac_prev=build_alias ;;
1008   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009     build_alias=$ac_optarg ;;
1010
1011   -cache-file | --cache-file | --cache-fil | --cache-fi \
1012   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013     ac_prev=cache_file ;;
1014   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016     cache_file=$ac_optarg ;;
1017
1018   --config-cache | -C)
1019     cache_file=config.cache ;;
1020
1021   -datadir | --datadir | --datadi | --datad)
1022     ac_prev=datadir ;;
1023   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024     datadir=$ac_optarg ;;
1025
1026   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027   | --dataroo | --dataro | --datar)
1028     ac_prev=datarootdir ;;
1029   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031     datarootdir=$ac_optarg ;;
1032
1033   -disable-* | --disable-*)
1034     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035     # Reject names that are not valid shell variable names.
1036     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038    { (exit 1); exit 1; }; }
1039     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040     eval enable_$ac_feature=no ;;
1041
1042   -docdir | --docdir | --docdi | --doc | --do)
1043     ac_prev=docdir ;;
1044   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045     docdir=$ac_optarg ;;
1046
1047   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048     ac_prev=dvidir ;;
1049   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050     dvidir=$ac_optarg ;;
1051
1052   -enable-* | --enable-*)
1053     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057    { (exit 1); exit 1; }; }
1058     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059     eval enable_$ac_feature=\$ac_optarg ;;
1060
1061   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063   | --exec | --exe | --ex)
1064     ac_prev=exec_prefix ;;
1065   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067   | --exec=* | --exe=* | --ex=*)
1068     exec_prefix=$ac_optarg ;;
1069
1070   -gas | --gas | --ga | --g)
1071     # Obsolete; use --with-gas.
1072     with_gas=yes ;;
1073
1074   -help | --help | --hel | --he | -h)
1075     ac_init_help=long ;;
1076   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077     ac_init_help=recursive ;;
1078   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079     ac_init_help=short ;;
1080
1081   -host | --host | --hos | --ho)
1082     ac_prev=host_alias ;;
1083   -host=* | --host=* | --hos=* | --ho=*)
1084     host_alias=$ac_optarg ;;
1085
1086   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087     ac_prev=htmldir ;;
1088   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089   | --ht=*)
1090     htmldir=$ac_optarg ;;
1091
1092   -includedir | --includedir | --includedi | --included | --include \
1093   | --includ | --inclu | --incl | --inc)
1094     ac_prev=includedir ;;
1095   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096   | --includ=* | --inclu=* | --incl=* | --inc=*)
1097     includedir=$ac_optarg ;;
1098
1099   -infodir | --infodir | --infodi | --infod | --info | --inf)
1100     ac_prev=infodir ;;
1101   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102     infodir=$ac_optarg ;;
1103
1104   -libdir | --libdir | --libdi | --libd)
1105     ac_prev=libdir ;;
1106   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107     libdir=$ac_optarg ;;
1108
1109   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110   | --libexe | --libex | --libe)
1111     ac_prev=libexecdir ;;
1112   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113   | --libexe=* | --libex=* | --libe=*)
1114     libexecdir=$ac_optarg ;;
1115
1116   -localedir | --localedir | --localedi | --localed | --locale)
1117     ac_prev=localedir ;;
1118   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119     localedir=$ac_optarg ;;
1120
1121   -localstatedir | --localstatedir | --localstatedi | --localstated \
1122   | --localstate | --localstat | --localsta | --localst | --locals)
1123     ac_prev=localstatedir ;;
1124   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126     localstatedir=$ac_optarg ;;
1127
1128   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129     ac_prev=mandir ;;
1130   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131     mandir=$ac_optarg ;;
1132
1133   -nfp | --nfp | --nf)
1134     # Obsolete; use --without-fp.
1135     with_fp=no ;;
1136
1137   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138   | --no-cr | --no-c | -n)
1139     no_create=yes ;;
1140
1141   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143     no_recursion=yes ;;
1144
1145   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147   | --oldin | --oldi | --old | --ol | --o)
1148     ac_prev=oldincludedir ;;
1149   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152     oldincludedir=$ac_optarg ;;
1153
1154   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155     ac_prev=prefix ;;
1156   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157     prefix=$ac_optarg ;;
1158
1159   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160   | --program-pre | --program-pr | --program-p)
1161     ac_prev=program_prefix ;;
1162   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164     program_prefix=$ac_optarg ;;
1165
1166   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167   | --program-suf | --program-su | --program-s)
1168     ac_prev=program_suffix ;;
1169   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171     program_suffix=$ac_optarg ;;
1172
1173   -program-transform-name | --program-transform-name \
1174   | --program-transform-nam | --program-transform-na \
1175   | --program-transform-n | --program-transform- \
1176   | --program-transform | --program-transfor \
1177   | --program-transfo | --program-transf \
1178   | --program-trans | --program-tran \
1179   | --progr-tra | --program-tr | --program-t)
1180     ac_prev=program_transform_name ;;
1181   -program-transform-name=* | --program-transform-name=* \
1182   | --program-transform-nam=* | --program-transform-na=* \
1183   | --program-transform-n=* | --program-transform-=* \
1184   | --program-transform=* | --program-transfor=* \
1185   | --program-transfo=* | --program-transf=* \
1186   | --program-trans=* | --program-tran=* \
1187   | --progr-tra=* | --program-tr=* | --program-t=*)
1188     program_transform_name=$ac_optarg ;;
1189
1190   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191     ac_prev=pdfdir ;;
1192   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193     pdfdir=$ac_optarg ;;
1194
1195   -psdir | --psdir | --psdi | --psd | --ps)
1196     ac_prev=psdir ;;
1197   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198     psdir=$ac_optarg ;;
1199
1200   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201   | -silent | --silent | --silen | --sile | --sil)
1202     silent=yes ;;
1203
1204   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205     ac_prev=sbindir ;;
1206   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207   | --sbi=* | --sb=*)
1208     sbindir=$ac_optarg ;;
1209
1210   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212   | --sharedst | --shareds | --shared | --share | --shar \
1213   | --sha | --sh)
1214     ac_prev=sharedstatedir ;;
1215   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218   | --sha=* | --sh=*)
1219     sharedstatedir=$ac_optarg ;;
1220
1221   -site | --site | --sit)
1222     ac_prev=site ;;
1223   -site=* | --site=* | --sit=*)
1224     site=$ac_optarg ;;
1225
1226   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227     ac_prev=srcdir ;;
1228   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229     srcdir=$ac_optarg ;;
1230
1231   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232   | --syscon | --sysco | --sysc | --sys | --sy)
1233     ac_prev=sysconfdir ;;
1234   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236     sysconfdir=$ac_optarg ;;
1237
1238   -target | --target | --targe | --targ | --tar | --ta | --t)
1239     ac_prev=target_alias ;;
1240   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241     target_alias=$ac_optarg ;;
1242
1243   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244     verbose=yes ;;
1245
1246   -version | --version | --versio | --versi | --vers | -V)
1247     ac_init_version=: ;;
1248
1249   -with-* | --with-*)
1250     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253       { echo "$as_me: error: invalid package name: $ac_package" >&2
1254    { (exit 1); exit 1; }; }
1255     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1256     eval with_$ac_package=\$ac_optarg ;;
1257
1258   -without-* | --without-*)
1259     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260     # Reject names that are not valid shell variable names.
1261     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262       { echo "$as_me: error: invalid package name: $ac_package" >&2
1263    { (exit 1); exit 1; }; }
1264     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1265     eval with_$ac_package=no ;;
1266
1267   --x)
1268     # Obsolete; use --with-x.
1269     with_x=yes ;;
1270
1271   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272   | --x-incl | --x-inc | --x-in | --x-i)
1273     ac_prev=x_includes ;;
1274   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276     x_includes=$ac_optarg ;;
1277
1278   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280     ac_prev=x_libraries ;;
1281   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283     x_libraries=$ac_optarg ;;
1284
1285   -*) { echo "$as_me: error: unrecognized option: $ac_option
1286 Try \`$0 --help' for more information." >&2
1287    { (exit 1); exit 1; }; }
1288     ;;
1289
1290   *=*)
1291     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292     # Reject names that are not valid shell variable names.
1293     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1294       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1295    { (exit 1); exit 1; }; }
1296     eval $ac_envvar=\$ac_optarg
1297     export $ac_envvar ;;
1298
1299   *)
1300     # FIXME: should be removed in autoconf 3.0.
1301     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1305     ;;
1306
1307   esac
1308 done
1309
1310 if test -n "$ac_prev"; then
1311   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312   { echo "$as_me: error: missing argument to $ac_option" >&2
1313    { (exit 1); exit 1; }; }
1314 fi
1315
1316 # Be sure to have absolute directory names.
1317 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318                 datadir sysconfdir sharedstatedir localstatedir includedir \
1319                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320                 libdir localedir mandir
1321 do
1322   eval ac_val=\$$ac_var
1323   case $ac_val in
1324     [\\/$]* | ?:[\\/]* )  continue;;
1325     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326   esac
1327   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1328    { (exit 1); exit 1; }; }
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340   if test "x$build_alias" = x; then
1341     cross_compiling=maybe
1342     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343     If a cross compiler is detected then cross compile mode will be used." >&2
1344   elif test "x$build_alias" != "x$host_alias"; then
1345     cross_compiling=yes
1346   fi
1347 fi
1348
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358   { echo "$as_me: error: Working directory cannot be determined" >&2
1359    { (exit 1); exit 1; }; }
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361   { echo "$as_me: error: pwd does not report name of working directory" >&2
1362    { (exit 1); exit 1; }; }
1363
1364
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367   ac_srcdir_defaulted=yes
1368   # Try the directory containing this script, then the parent directory.
1369   ac_confdir=`$as_dirname -- "$0" ||
1370 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371          X"$0" : 'X\(//\)[^/]' \| \
1372          X"$0" : 'X\(//\)$' \| \
1373          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1374 echo X"$0" |
1375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376             s//\1/
1377             q
1378           }
1379           /^X\(\/\/\)[^/].*/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\/\)$/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\).*/{
1388             s//\1/
1389             q
1390           }
1391           s/.*/./; q'`
1392   srcdir=$ac_confdir
1393   if test ! -r "$srcdir/$ac_unique_file"; then
1394     srcdir=..
1395   fi
1396 else
1397   ac_srcdir_defaulted=no
1398 fi
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1402    { (exit 1); exit 1; }; }
1403 fi
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 ac_abs_confdir=`(
1406         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1407    { (exit 1); exit 1; }; }
1408         pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411   srcdir=.
1412 fi
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 for ac_var in $ac_precious_vars; do
1420   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421   eval ac_env_${ac_var}_value=\$${ac_var}
1422   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 done
1425
1426 #
1427 # Report the --help message.
1428 #
1429 if test "$ac_init_help" = "long"; then
1430   # Omit some internal or obsolete options to make the list less imposing.
1431   # This message is too long to be a string in the A/UX 3.1 sh.
1432   cat <<_ACEOF
1433 \`configure' configures glog 0.2 to adapt to many kinds of systems.
1434
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE.  See below for descriptions of some of the useful variables.
1439
1440 Defaults for the options are specified in brackets.
1441
1442 Configuration:
1443   -h, --help              display this help and exit
1444       --help=short        display options specific to this package
1445       --help=recursive    display the short help of all the included packages
1446   -V, --version           display version information and exit
1447   -q, --quiet, --silent   do not print \`checking...' messages
1448       --cache-file=FILE   cache test results in FILE [disabled]
1449   -C, --config-cache      alias for \`--cache-file=config.cache'
1450   -n, --no-create         do not create output files
1451       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1452
1453 Installation directories:
1454   --prefix=PREFIX         install architecture-independent files in PREFIX
1455                           [$ac_default_prefix]
1456   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1457                           [PREFIX]
1458
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1463
1464 For better control, use the options below.
1465
1466 Fine tuning of the installation directories:
1467   --bindir=DIR           user executables [EPREFIX/bin]
1468   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1469   --libexecdir=DIR       program executables [EPREFIX/libexec]
1470   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1471   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1472   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1473   --libdir=DIR           object code libraries [EPREFIX/lib]
1474   --includedir=DIR       C header files [PREFIX/include]
1475   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1476   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1477   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1478   --infodir=DIR          info documentation [DATAROOTDIR/info]
1479   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1480   --mandir=DIR           man documentation [DATAROOTDIR/man]
1481   --docdir=DIR           documentation root [DATAROOTDIR/doc/glog]
1482   --htmldir=DIR          html documentation [DOCDIR]
1483   --dvidir=DIR           dvi documentation [DOCDIR]
1484   --pdfdir=DIR           pdf documentation [DOCDIR]
1485   --psdir=DIR            ps documentation [DOCDIR]
1486 _ACEOF
1487
1488   cat <<\_ACEOF
1489
1490 Program names:
1491   --program-prefix=PREFIX            prepend PREFIX to installed program names
1492   --program-suffix=SUFFIX            append SUFFIX to installed program names
1493   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1494
1495 System types:
1496   --build=BUILD     configure for building on BUILD [guessed]
1497   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502   case $ac_init_help in
1503      short | recursive ) echo "Configuration of glog 0.2:";;
1504    esac
1505   cat <<\_ACEOF
1506
1507 Optional Features:
1508   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510   --disable-dependency-tracking  speeds up one-time build
1511   --enable-dependency-tracking   do not reject slow dependency extractors
1512   --enable-shared[=PKGS]  build shared libraries [default=yes]
1513   --enable-static[=PKGS]  build static libraries [default=yes]
1514   --enable-fast-install[=PKGS]
1515                           optimize for fast installation [default=yes]
1516   --disable-libtool-lock  avoid locking (might break parallel builds)
1517   --enable-frame-pointers On x86_64 systems, compile with
1518                           -fno-omit-frame-pointer (see INSTALL)
1519   --enable-namespace=FOO to define these Google
1520                              classes in the FOO namespace. --disable-namespace
1521                              to define them in the global namespace. Default
1522                              is to define them in namespace google.
1523
1524 Optional Packages:
1525   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1528   --with-pic              try to use only PIC/non-PIC objects [default=use
1529                           both]
1530   --with-tags[=TAGS]      include additional configurations [automatic]
1531                           --with-gflags=GFLAGS_DIR
1532
1533 Some influential environment variables:
1534   CC          C compiler command
1535   CFLAGS      C compiler flags
1536   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1537               nonstandard directory <lib dir>
1538   LIBS        libraries to pass to the linker, e.g. -l<library>
1539   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1540               you have headers in a nonstandard directory <include dir>
1541   CPP         C preprocessor
1542   CXX         C++ compiler command
1543   CXXFLAGS    C++ compiler flags
1544   CXXCPP      C++ preprocessor
1545   F77         Fortran 77 compiler command
1546   FFLAGS      Fortran 77 compiler flags
1547
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1550
1551 Report bugs to <opensource@google.com>.
1552 _ACEOF
1553 ac_status=$?
1554 fi
1555
1556 if test "$ac_init_help" = "recursive"; then
1557   # If there are subdirs, report their specific --help.
1558   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559     test -d "$ac_dir" || continue
1560     ac_builddir=.
1561
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *)
1565   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1566   # A ".." for each directory in $ac_dir_suffix.
1567   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1568   case $ac_top_builddir_sub in
1569   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571   esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1577
1578 case $srcdir in
1579   .)  # We are building in place.
1580     ac_srcdir=.
1581     ac_top_srcdir=$ac_top_builddir_sub
1582     ac_abs_top_srcdir=$ac_pwd ;;
1583   [\\/]* | ?:[\\/]* )  # Absolute name.
1584     ac_srcdir=$srcdir$ac_dir_suffix;
1585     ac_top_srcdir=$srcdir
1586     ac_abs_top_srcdir=$srcdir ;;
1587   *) # Relative name.
1588     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589     ac_top_srcdir=$ac_top_build_prefix$srcdir
1590     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594     cd "$ac_dir" || { ac_status=$?; continue; }
1595     # Check for guested configure.
1596     if test -f "$ac_srcdir/configure.gnu"; then
1597       echo &&
1598       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599     elif test -f "$ac_srcdir/configure"; then
1600       echo &&
1601       $SHELL "$ac_srcdir/configure" --help=recursive
1602     else
1603       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604     fi || ac_status=$?
1605     cd "$ac_pwd" || { ac_status=$?; break; }
1606   done
1607 fi
1608
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611   cat <<\_ACEOF
1612 glog configure 0.2
1613 generated by GNU Autoconf 2.61
1614
1615 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1616 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619 _ACEOF
1620   exit
1621 fi
1622 cat >config.log <<_ACEOF
1623 This file contains any messages produced by compilers while
1624 running configure, to aid debugging if configure makes a mistake.
1625
1626 It was created by glog $as_me 0.2, which was
1627 generated by GNU Autoconf 2.61.  Invocation command line was
1628
1629   $ $0 $@
1630
1631 _ACEOF
1632 exec 5>>config.log
1633 {
1634 cat <<_ASUNAME
1635 ## --------- ##
1636 ## Platform. ##
1637 ## --------- ##
1638
1639 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1640 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1641 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1642 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1643 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1644
1645 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1646 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1647
1648 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1649 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1650 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1651 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1652 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1653 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1654 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1655
1656 _ASUNAME
1657
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661   IFS=$as_save_IFS
1662   test -z "$as_dir" && as_dir=.
1663   echo "PATH: $as_dir"
1664 done
1665 IFS=$as_save_IFS
1666
1667 } >&5
1668
1669 cat >&5 <<_ACEOF
1670
1671
1672 ## ----------- ##
1673 ## Core tests. ##
1674 ## ----------- ##
1675
1676 _ACEOF
1677
1678
1679 # Keep a trace of the command line.
1680 # Strip out --no-create and --no-recursion so they do not pile up.
1681 # Strip out --silent because we don't want to record it for future runs.
1682 # Also quote any args containing shell meta-characters.
1683 # Make two passes to allow for proper duplicate-argument suppression.
1684 ac_configure_args=
1685 ac_configure_args0=
1686 ac_configure_args1=
1687 ac_must_keep_next=false
1688 for ac_pass in 1 2
1689 do
1690   for ac_arg
1691   do
1692     case $ac_arg in
1693     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1694     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1695     | -silent | --silent | --silen | --sile | --sil)
1696       continue ;;
1697     *\'*)
1698       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1699     esac
1700     case $ac_pass in
1701     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1702     2)
1703       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1704       if test $ac_must_keep_next = true; then
1705         ac_must_keep_next=false # Got value, back to normal.
1706       else
1707         case $ac_arg in
1708           *=* | --config-cache | -C | -disable-* | --disable-* \
1709           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1710           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1711           | -with-* | --with-* | -without-* | --without-* | --x)
1712             case "$ac_configure_args0 " in
1713               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1714             esac
1715             ;;
1716           -* ) ac_must_keep_next=true ;;
1717         esac
1718       fi
1719       ac_configure_args="$ac_configure_args '$ac_arg'"
1720       ;;
1721     esac
1722   done
1723 done
1724 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1725 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1726
1727 # When interrupted or exit'd, cleanup temporary files, and complete
1728 # config.log.  We remove comments because anyway the quotes in there
1729 # would cause problems or look ugly.
1730 # WARNING: Use '\'' to represent an apostrophe within the trap.
1731 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1732 trap 'exit_status=$?
1733   # Save into config.log some information that might help in debugging.
1734   {
1735     echo
1736
1737     cat <<\_ASBOX
1738 ## ---------------- ##
1739 ## Cache variables. ##
1740 ## ---------------- ##
1741 _ASBOX
1742     echo
1743     # The following way of writing the cache mishandles newlines in values,
1744 (
1745   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1746     eval ac_val=\$$ac_var
1747     case $ac_val in #(
1748     *${as_nl}*)
1749       case $ac_var in #(
1750       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1751 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1752       esac
1753       case $ac_var in #(
1754       _ | IFS | as_nl) ;; #(
1755       *) $as_unset $ac_var ;;
1756       esac ;;
1757     esac
1758   done
1759   (set) 2>&1 |
1760     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1761     *${as_nl}ac_space=\ *)
1762       sed -n \
1763         "s/'\''/'\''\\\\'\'''\''/g;
1764           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1765       ;; #(
1766     *)
1767       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1768       ;;
1769     esac |
1770     sort
1771 )
1772     echo
1773
1774     cat <<\_ASBOX
1775 ## ----------------- ##
1776 ## Output variables. ##
1777 ## ----------------- ##
1778 _ASBOX
1779     echo
1780     for ac_var in $ac_subst_vars
1781     do
1782       eval ac_val=\$$ac_var
1783       case $ac_val in
1784       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785       esac
1786       echo "$ac_var='\''$ac_val'\''"
1787     done | sort
1788     echo
1789
1790     if test -n "$ac_subst_files"; then
1791       cat <<\_ASBOX
1792 ## ------------------- ##
1793 ## File substitutions. ##
1794 ## ------------------- ##
1795 _ASBOX
1796       echo
1797       for ac_var in $ac_subst_files
1798       do
1799         eval ac_val=\$$ac_var
1800         case $ac_val in
1801         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802         esac
1803         echo "$ac_var='\''$ac_val'\''"
1804       done | sort
1805       echo
1806     fi
1807
1808     if test -s confdefs.h; then
1809       cat <<\_ASBOX
1810 ## ----------- ##
1811 ## confdefs.h. ##
1812 ## ----------- ##
1813 _ASBOX
1814       echo
1815       cat confdefs.h
1816       echo
1817     fi
1818     test "$ac_signal" != 0 &&
1819       echo "$as_me: caught signal $ac_signal"
1820     echo "$as_me: exit $exit_status"
1821   } >&5
1822   rm -f core *.core core.conftest.* &&
1823     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1824     exit $exit_status
1825 ' 0
1826 for ac_signal in 1 2 13 15; do
1827   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1828 done
1829 ac_signal=0
1830
1831 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1832 rm -f -r conftest* confdefs.h
1833
1834 # Predefined preprocessor variables.
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_NAME "$PACKAGE_NAME"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1843 _ACEOF
1844
1845
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1848 _ACEOF
1849
1850
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_STRING "$PACKAGE_STRING"
1853 _ACEOF
1854
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1858 _ACEOF
1859
1860
1861 # Let the site file select an alternate cache file if it wants to.
1862 # Prefer explicitly selected file to automatically selected ones.
1863 if test -n "$CONFIG_SITE"; then
1864   set x "$CONFIG_SITE"
1865 elif test "x$prefix" != xNONE; then
1866   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1867 else
1868   set x "$ac_default_prefix/share/config.site" \
1869         "$ac_default_prefix/etc/config.site"
1870 fi
1871 shift
1872 for ac_site_file
1873 do
1874   if test -r "$ac_site_file"; then
1875     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1876 echo "$as_me: loading site script $ac_site_file" >&6;}
1877     sed 's/^/| /' "$ac_site_file" >&5
1878     . "$ac_site_file"
1879   fi
1880 done
1881
1882 if test -r "$cache_file"; then
1883   # Some versions of bash will fail to source /dev/null (special
1884   # files actually), so we avoid doing that.
1885   if test -f "$cache_file"; then
1886     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1887 echo "$as_me: loading cache $cache_file" >&6;}
1888     case $cache_file in
1889       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1890       *)                      . "./$cache_file";;
1891     esac
1892   fi
1893 else
1894   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1895 echo "$as_me: creating cache $cache_file" >&6;}
1896   >$cache_file
1897 fi
1898
1899 # Check that the precious variables saved in the cache have kept the same
1900 # value.
1901 ac_cache_corrupted=false
1902 for ac_var in $ac_precious_vars; do
1903   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1904   eval ac_new_set=\$ac_env_${ac_var}_set
1905   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1906   eval ac_new_val=\$ac_env_${ac_var}_value
1907   case $ac_old_set,$ac_new_set in
1908     set,)
1909       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1910 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1911       ac_cache_corrupted=: ;;
1912     ,set)
1913       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1915       ac_cache_corrupted=: ;;
1916     ,);;
1917     *)
1918       if test "x$ac_old_val" != "x$ac_new_val"; then
1919         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1920 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1921         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1922 echo "$as_me:   former value:  $ac_old_val" >&2;}
1923         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1924 echo "$as_me:   current value: $ac_new_val" >&2;}
1925         ac_cache_corrupted=:
1926       fi;;
1927   esac
1928   # Pass precious variables to config.status.
1929   if test "$ac_new_set" = set; then
1930     case $ac_new_val in
1931     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1932     *) ac_arg=$ac_var=$ac_new_val ;;
1933     esac
1934     case " $ac_configure_args " in
1935       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1936       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1937     esac
1938   fi
1939 done
1940 if $ac_cache_corrupted; then
1941   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1942 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1943   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1944 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972 ac_ext=c
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1977
1978
1979 # The argument here is just something that should be in the current directory
1980 # (for sanity checking)
1981
1982 am__api_version='1.10'
1983
1984 ac_aux_dir=
1985 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1986   if test -f "$ac_dir/install-sh"; then
1987     ac_aux_dir=$ac_dir
1988     ac_install_sh="$ac_aux_dir/install-sh -c"
1989     break
1990   elif test -f "$ac_dir/install.sh"; then
1991     ac_aux_dir=$ac_dir
1992     ac_install_sh="$ac_aux_dir/install.sh -c"
1993     break
1994   elif test -f "$ac_dir/shtool"; then
1995     ac_aux_dir=$ac_dir
1996     ac_install_sh="$ac_aux_dir/shtool install -c"
1997     break
1998   fi
1999 done
2000 if test -z "$ac_aux_dir"; then
2001   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2002 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2003    { (exit 1); exit 1; }; }
2004 fi
2005
2006 # These three variables are undocumented and unsupported,
2007 # and are intended to be withdrawn in a future Autoconf release.
2008 # They can cause serious problems if a builder's source tree is in a directory
2009 # whose full name contains unusual characters.
2010 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2011 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2012 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2013
2014
2015 # Find a good install program.  We prefer a C program (faster),
2016 # so one script is as good as another.  But avoid the broken or
2017 # incompatible versions:
2018 # SysV /etc/install, /usr/sbin/install
2019 # SunOS /usr/etc/install
2020 # IRIX /sbin/install
2021 # AIX /bin/install
2022 # AmigaOS /C/install, which installs bootblocks on floppy discs
2023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2026 # OS/2's system install, which has a completely different semantic
2027 # ./install, which can be erroneously created by make from ./install.sh.
2028 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2029 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2030 if test -z "$INSTALL"; then
2031 if test "${ac_cv_path_install+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037   IFS=$as_save_IFS
2038   test -z "$as_dir" && as_dir=.
2039   # Account for people who put trailing slashes in PATH elements.
2040 case $as_dir/ in
2041   ./ | .// | /cC/* | \
2042   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2043   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2044   /usr/ucb/* ) ;;
2045   *)
2046     # OSF1 and SCO ODT 3.0 have their own names for install.
2047     # Don't use installbsd from OSF since it installs stuff as root
2048     # by default.
2049     for ac_prog in ginstall scoinst install; do
2050       for ac_exec_ext in '' $ac_executable_extensions; do
2051         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2052           if test $ac_prog = install &&
2053             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2054             # AIX install.  It has an incompatible calling convention.
2055             :
2056           elif test $ac_prog = install &&
2057             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2058             # program-specific install script used by HP pwplus--don't use.
2059             :
2060           else
2061             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2062             break 3
2063           fi
2064         fi
2065       done
2066     done
2067     ;;
2068 esac
2069 done
2070 IFS=$as_save_IFS
2071
2072
2073 fi
2074   if test "${ac_cv_path_install+set}" = set; then
2075     INSTALL=$ac_cv_path_install
2076   else
2077     # As a last resort, use the slow shell script.  Don't cache a
2078     # value for INSTALL within a source directory, because that will
2079     # break other packages using the cache if that directory is
2080     # removed, or if the value is a relative name.
2081     INSTALL=$ac_install_sh
2082   fi
2083 fi
2084 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2085 echo "${ECHO_T}$INSTALL" >&6; }
2086
2087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2088 # It thinks the first close brace ends the variable substitution.
2089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2090
2091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2092
2093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2094
2095 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2096 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2097 # Just in case
2098 sleep 1
2099 echo timestamp > conftest.file
2100 # Do `set' in a subshell so we don't clobber the current shell's
2101 # arguments.  Must try -L first in case configure is actually a
2102 # symlink; some systems play weird games with the mod time of symlinks
2103 # (eg FreeBSD returns the mod time of the symlink's containing
2104 # directory).
2105 if (
2106    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2107    if test "$*" = "X"; then
2108       # -L didn't work.
2109       set X `ls -t $srcdir/configure conftest.file`
2110    fi
2111    rm -f conftest.file
2112    if test "$*" != "X $srcdir/configure conftest.file" \
2113       && test "$*" != "X conftest.file $srcdir/configure"; then
2114
2115       # If neither matched, then we have a broken ls.  This can happen
2116       # if, for instance, CONFIG_SHELL is bash and it inherits a
2117       # broken ls alias from the environment.  This has actually
2118       # happened.  Such a system could not be considered "sane".
2119       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2120 alias in your environment" >&5
2121 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2122 alias in your environment" >&2;}
2123    { (exit 1); exit 1; }; }
2124    fi
2125
2126    test "$2" = conftest.file
2127    )
2128 then
2129    # Ok.
2130    :
2131 else
2132    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2133 Check your system clock" >&5
2134 echo "$as_me: error: newly created file is older than distributed files!
2135 Check your system clock" >&2;}
2136    { (exit 1); exit 1; }; }
2137 fi
2138 { echo "$as_me:$LINENO: result: yes" >&5
2139 echo "${ECHO_T}yes" >&6; }
2140 test "$program_prefix" != NONE &&
2141   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2142 # Use a double $ so make ignores it.
2143 test "$program_suffix" != NONE &&
2144   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2145 # Double any \ or $.  echo might interpret backslashes.
2146 # By default was `s,x,x', remove it if useless.
2147 cat <<\_ACEOF >conftest.sed
2148 s/[\\$]/&&/g;s/;s,x,x,$//
2149 _ACEOF
2150 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2151 rm -f conftest.sed
2152
2153 # expand $ac_aux_dir to an absolute path
2154 am_aux_dir=`cd $ac_aux_dir && pwd`
2155
2156 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2157 # Use eval to expand $SHELL
2158 if eval "$MISSING --run true"; then
2159   am_missing_run="$MISSING --run "
2160 else
2161   am_missing_run=
2162   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2163 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2164 fi
2165
2166 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2167 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2168 if test -z "$MKDIR_P"; then
2169   if test "${ac_cv_path_mkdir+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2174 do
2175   IFS=$as_save_IFS
2176   test -z "$as_dir" && as_dir=.
2177   for ac_prog in mkdir gmkdir; do
2178          for ac_exec_ext in '' $ac_executable_extensions; do
2179            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2180            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2181              'mkdir (GNU coreutils) '* | \
2182              'mkdir (coreutils) '* | \
2183              'mkdir (fileutils) '4.1*)
2184                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2185                break 3;;
2186            esac
2187          done
2188        done
2189 done
2190 IFS=$as_save_IFS
2191
2192 fi
2193
2194   if test "${ac_cv_path_mkdir+set}" = set; then
2195     MKDIR_P="$ac_cv_path_mkdir -p"
2196   else
2197     # As a last resort, use the slow shell script.  Don't cache a
2198     # value for MKDIR_P within a source directory, because that will
2199     # break other packages using the cache if that directory is
2200     # removed, or if the value is a relative name.
2201     test -d ./--version && rmdir ./--version
2202     MKDIR_P="$ac_install_sh -d"
2203   fi
2204 fi
2205 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2206 echo "${ECHO_T}$MKDIR_P" >&6; }
2207
2208 mkdir_p="$MKDIR_P"
2209 case $mkdir_p in
2210   [\\/$]* | ?:[\\/]*) ;;
2211   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2212 esac
2213
2214 for ac_prog in gawk mawk nawk awk
2215 do
2216   # Extract the first word of "$ac_prog", so it can be a program name with args.
2217 set dummy $ac_prog; ac_word=$2
2218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220 if test "${ac_cv_prog_AWK+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   if test -n "$AWK"; then
2224   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2228 do
2229   IFS=$as_save_IFS
2230   test -z "$as_dir" && as_dir=.
2231   for ac_exec_ext in '' $ac_executable_extensions; do
2232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233     ac_cv_prog_AWK="$ac_prog"
2234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235     break 2
2236   fi
2237 done
2238 done
2239 IFS=$as_save_IFS
2240
2241 fi
2242 fi
2243 AWK=$ac_cv_prog_AWK
2244 if test -n "$AWK"; then
2245   { echo "$as_me:$LINENO: result: $AWK" >&5
2246 echo "${ECHO_T}$AWK" >&6; }
2247 else
2248   { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2250 fi
2251
2252
2253   test -n "$AWK" && break
2254 done
2255
2256 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2257 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2258 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2259 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2260   echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262   cat >conftest.make <<\_ACEOF
2263 SHELL = /bin/sh
2264 all:
2265         @echo '@@@%%%=$(MAKE)=@@@%%%'
2266 _ACEOF
2267 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2268 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2269   *@@@%%%=?*=@@@%%%*)
2270     eval ac_cv_prog_make_${ac_make}_set=yes;;
2271   *)
2272     eval ac_cv_prog_make_${ac_make}_set=no;;
2273 esac
2274 rm -f conftest.make
2275 fi
2276 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2277   { echo "$as_me:$LINENO: result: yes" >&5
2278 echo "${ECHO_T}yes" >&6; }
2279   SET_MAKE=
2280 else
2281   { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2283   SET_MAKE="MAKE=${MAKE-make}"
2284 fi
2285
2286 rm -rf .tst 2>/dev/null
2287 mkdir .tst 2>/dev/null
2288 if test -d .tst; then
2289   am__leading_dot=.
2290 else
2291   am__leading_dot=_
2292 fi
2293 rmdir .tst 2>/dev/null
2294
2295 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2296   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2297   # is not polluted with repeated "-I."
2298   am__isrc=' -I$(srcdir)'
2299   # test to see if srcdir already configured
2300   if test -f $srcdir/config.status; then
2301     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2302 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2303    { (exit 1); exit 1; }; }
2304   fi
2305 fi
2306
2307 # test whether we have cygpath
2308 if test -z "$CYGPATH_W"; then
2309   if (cygpath --version) >/dev/null 2>/dev/null; then
2310     CYGPATH_W='cygpath -w'
2311   else
2312     CYGPATH_W=echo
2313   fi
2314 fi
2315
2316
2317 # Define the identity of the package.
2318  PACKAGE='glog'
2319  VERSION='0.2'
2320
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE "$PACKAGE"
2324 _ACEOF
2325
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define VERSION "$VERSION"
2329 _ACEOF
2330
2331 # Some tools Automake needs.
2332
2333 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2334
2335
2336 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2337
2338
2339 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2340
2341
2342 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2343
2344
2345 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2346
2347 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2348
2349 # Installed binaries are usually stripped using `strip' when the user
2350 # run `make install-strip'.  However `strip' might not be the right
2351 # tool to use in cross-compilation environments, therefore Automake
2352 # will honor the `STRIP' environment variable to overrule this program.
2353 if test "$cross_compiling" != no; then
2354   if test -n "$ac_tool_prefix"; then
2355   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2356 set dummy ${ac_tool_prefix}strip; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_STRIP+set}" = set; then
2360   echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362   if test -n "$STRIP"; then
2363   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368   IFS=$as_save_IFS
2369   test -z "$as_dir" && as_dir=.
2370   for ac_exec_ext in '' $ac_executable_extensions; do
2371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374     break 2
2375   fi
2376 done
2377 done
2378 IFS=$as_save_IFS
2379
2380 fi
2381 fi
2382 STRIP=$ac_cv_prog_STRIP
2383 if test -n "$STRIP"; then
2384   { echo "$as_me:$LINENO: result: $STRIP" >&5
2385 echo "${ECHO_T}$STRIP" >&6; }
2386 else
2387   { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2389 fi
2390
2391
2392 fi
2393 if test -z "$ac_cv_prog_STRIP"; then
2394   ac_ct_STRIP=$STRIP
2395   # Extract the first word of "strip", so it can be a program name with args.
2396 set dummy strip; ac_word=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   if test -n "$ac_ct_STRIP"; then
2403   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408   IFS=$as_save_IFS
2409   test -z "$as_dir" && as_dir=.
2410   for ac_exec_ext in '' $ac_executable_extensions; do
2411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412     ac_cv_prog_ac_ct_STRIP="strip"
2413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414     break 2
2415   fi
2416 done
2417 done
2418 IFS=$as_save_IFS
2419
2420 fi
2421 fi
2422 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2423 if test -n "$ac_ct_STRIP"; then
2424   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2425 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2426 else
2427   { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2429 fi
2430
2431   if test "x$ac_ct_STRIP" = x; then
2432     STRIP=":"
2433   else
2434     case $cross_compiling:$ac_tool_warned in
2435 yes:)
2436 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet.  If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&5
2439 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2440 whose name does not start with the host triplet.  If you think this
2441 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2442 ac_tool_warned=yes ;;
2443 esac
2444     STRIP=$ac_ct_STRIP
2445   fi
2446 else
2447   STRIP="$ac_cv_prog_STRIP"
2448 fi
2449
2450 fi
2451 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2452
2453 # We need awk for the "check" target.  The system "awk" is bad on
2454 # some platforms.
2455 # Always define AMTAR for backward compatibility.
2456
2457 AMTAR=${AMTAR-"${am_missing_run}tar"}
2458
2459 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2460
2461
2462
2463
2464
2465 ac_config_headers="$ac_config_headers src/config.h"
2466
2467
2468 # Checks for programs.
2469 ac_ext=c
2470 ac_cpp='$CPP $CPPFLAGS'
2471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2474 if test -n "$ac_tool_prefix"; then
2475   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_CC+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$CC"; then
2483   ac_cv_prog_CC="$CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 CC=$ac_cv_prog_CC
2503 if test -n "$CC"; then
2504   { echo "$as_me:$LINENO: result: $CC" >&5
2505 echo "${ECHO_T}$CC" >&6; }
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2509 fi
2510
2511
2512 fi
2513 if test -z "$ac_cv_prog_CC"; then
2514   ac_ct_CC=$CC
2515   # Extract the first word of "gcc", so it can be a program name with args.
2516 set dummy gcc; ac_word=$2
2517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2520   echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522   if test -n "$ac_ct_CC"; then
2523   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528   IFS=$as_save_IFS
2529   test -z "$as_dir" && as_dir=.
2530   for ac_exec_ext in '' $ac_executable_extensions; do
2531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532     ac_cv_prog_ac_ct_CC="gcc"
2533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534     break 2
2535   fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2545 echo "${ECHO_T}$ac_ct_CC" >&6; }
2546 else
2547   { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2549 fi
2550
2551   if test "x$ac_ct_CC" = x; then
2552     CC=""
2553   else
2554     case $cross_compiling:$ac_tool_warned in
2555 yes:)
2556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2557 whose name does not start with the host triplet.  If you think this
2558 configuration is useful to you, please write to autoconf@gnu.org." >&5
2559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2560 whose name does not start with the host triplet.  If you think this
2561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2562 ac_tool_warned=yes ;;
2563 esac
2564     CC=$ac_ct_CC
2565   fi
2566 else
2567   CC="$ac_cv_prog_CC"
2568 fi
2569
2570 if test -z "$CC"; then
2571           if test -n "$ac_tool_prefix"; then
2572     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2573 set dummy ${ac_tool_prefix}cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   if test -n "$CC"; then
2580   ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585   IFS=$as_save_IFS
2586   test -z "$as_dir" && as_dir=.
2587   for ac_exec_ext in '' $ac_executable_extensions; do
2588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589     ac_cv_prog_CC="${ac_tool_prefix}cc"
2590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591     break 2
2592   fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 CC=$ac_cv_prog_CC
2600 if test -n "$CC"; then
2601   { echo "$as_me:$LINENO: result: $CC" >&5
2602 echo "${ECHO_T}$CC" >&6; }
2603 else
2604   { echo "$as_me:$LINENO: result: no" >&5
2605 echo "${ECHO_T}no" >&6; }
2606 fi
2607
2608
2609   fi
2610 fi
2611 if test -z "$CC"; then
2612   # Extract the first word of "cc", so it can be a program name with args.
2613 set dummy cc; ac_word=$2
2614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2616 if test "${ac_cv_prog_CC+set}" = set; then
2617   echo $ECHO_N "(cached) $ECHO_C" >&6
2618 else
2619   if test -n "$CC"; then
2620   ac_cv_prog_CC="$CC" # Let the user override the test.
2621 else
2622   ac_prog_rejected=no
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626   IFS=$as_save_IFS
2627   test -z "$as_dir" && as_dir=.
2628   for ac_exec_ext in '' $ac_executable_extensions; do
2629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2631        ac_prog_rejected=yes
2632        continue
2633      fi
2634     ac_cv_prog_CC="cc"
2635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636     break 2
2637   fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 if test $ac_prog_rejected = yes; then
2643   # We found a bogon in the path, so make sure we never use it.
2644   set dummy $ac_cv_prog_CC
2645   shift
2646   if test $# != 0; then
2647     # We chose a different compiler from the bogus one.
2648     # However, it has the same basename, so the bogon will be chosen
2649     # first if we set CC to just the basename; use the full file name.
2650     shift
2651     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2652   fi
2653 fi
2654 fi
2655 fi
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658   { echo "$as_me:$LINENO: result: $CC" >&5
2659 echo "${ECHO_T}$CC" >&6; }
2660 else
2661   { echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6; }
2663 fi
2664
2665
2666 fi
2667 if test -z "$CC"; then
2668   if test -n "$ac_tool_prefix"; then
2669   for ac_prog in cl.exe
2670   do
2671     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_CC+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   if test -n "$CC"; then
2679   ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684   IFS=$as_save_IFS
2685   test -z "$as_dir" && as_dir=.
2686   for ac_exec_ext in '' $ac_executable_extensions; do
2687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690     break 2
2691   fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 CC=$ac_cv_prog_CC
2699 if test -n "$CC"; then
2700   { echo "$as_me:$LINENO: result: $CC" >&5
2701 echo "${ECHO_T}$CC" >&6; }
2702 else
2703   { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2705 fi
2706
2707
2708     test -n "$CC" && break
2709   done
2710 fi
2711 if test -z "$CC"; then
2712   ac_ct_CC=$CC
2713   for ac_prog in cl.exe
2714 do
2715   # Extract the first word of "$ac_prog", so it can be a program name with args.
2716 set dummy $ac_prog; ac_word=$2
2717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   if test -n "$ac_ct_CC"; then
2723   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728   IFS=$as_save_IFS
2729   test -z "$as_dir" && as_dir=.
2730   for ac_exec_ext in '' $ac_executable_extensions; do
2731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732     ac_cv_prog_ac_ct_CC="$ac_prog"
2733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734     break 2
2735   fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743 if test -n "$ac_ct_CC"; then
2744   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2745 echo "${ECHO_T}$ac_ct_CC" >&6; }
2746 else
2747   { echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6; }
2749 fi
2750
2751
2752   test -n "$ac_ct_CC" && break
2753 done
2754
2755   if test "x$ac_ct_CC" = x; then
2756     CC=""
2757   else
2758     case $cross_compiling:$ac_tool_warned in
2759 yes:)
2760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2761 whose name does not start with the host triplet.  If you think this
2762 configuration is useful to you, please write to autoconf@gnu.org." >&5
2763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2764 whose name does not start with the host triplet.  If you think this
2765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2766 ac_tool_warned=yes ;;
2767 esac
2768     CC=$ac_ct_CC
2769   fi
2770 fi
2771
2772 fi
2773
2774
2775 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: no acceptable C compiler found in \$PATH
2778 See \`config.log' for more details." >&2;}
2779    { (exit 1); exit 1; }; }
2780
2781 # Provide some information about the compiler.
2782 echo "$as_me:$LINENO: checking for C compiler version" >&5
2783 ac_compiler=`set X $ac_compile; echo $2`
2784 { (ac_try="$ac_compiler --version >&5"
2785 case "(($ac_try" in
2786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787   *) ac_try_echo=$ac_try;;
2788 esac
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790   (eval "$ac_compiler --version >&5") 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }
2794 { (ac_try="$ac_compiler -v >&5"
2795 case "(($ac_try" in
2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797   *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800   (eval "$ac_compiler -v >&5") 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }
2804 { (ac_try="$ac_compiler -V >&5"
2805 case "(($ac_try" in
2806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807   *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810   (eval "$ac_compiler -V >&5") 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }
2814
2815 cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h.  */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h.  */
2821
2822 int
2823 main ()
2824 {
2825
2826   ;
2827   return 0;
2828 }
2829 _ACEOF
2830 ac_clean_files_save=$ac_clean_files
2831 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2832 # Try to create an executable without -o first, disregard a.out.
2833 # It will help us diagnose broken compilers, and finding out an intuition
2834 # of exeext.
2835 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2836 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2837 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2838 #
2839 # List of possible output files, starting from the most likely.
2840 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2841 # only as a last resort.  b.out is created by i960 compilers.
2842 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2843 #
2844 # The IRIX 6 linker writes into existing files which may not be
2845 # executable, retaining their permissions.  Remove them first so a
2846 # subsequent execution test works.
2847 ac_rmfiles=
2848 for ac_file in $ac_files
2849 do
2850   case $ac_file in
2851     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2852     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2853   esac
2854 done
2855 rm -f $ac_rmfiles
2856
2857 if { (ac_try="$ac_link_default"
2858 case "(($ac_try" in
2859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860   *) ac_try_echo=$ac_try;;
2861 esac
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863   (eval "$ac_link_default") 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); }; then
2867   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2868 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2869 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2870 # so that the user can short-circuit this test for compilers unknown to
2871 # Autoconf.
2872 for ac_file in $ac_files ''
2873 do
2874   test -f "$ac_file" || continue
2875   case $ac_file in
2876     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2877         ;;
2878     [ab].out )
2879         # We found the default executable, but exeext='' is most
2880         # certainly right.
2881         break;;
2882     *.* )
2883         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2884         then :; else
2885            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2886         fi
2887         # We set ac_cv_exeext here because the later test for it is not
2888         # safe: cross compilers may not add the suffix if given an `-o'
2889         # argument, so we may need to know it at that point already.
2890         # Even if this section looks crufty: it has the advantage of
2891         # actually working.
2892         break;;
2893     * )
2894         break;;
2895   esac
2896 done
2897 test "$ac_cv_exeext" = no && ac_cv_exeext=
2898
2899 else
2900   ac_file=''
2901 fi
2902
2903 { echo "$as_me:$LINENO: result: $ac_file" >&5
2904 echo "${ECHO_T}$ac_file" >&6; }
2905 if test -z "$ac_file"; then
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2910 See \`config.log' for more details." >&5
2911 echo "$as_me: error: C compiler cannot create executables
2912 See \`config.log' for more details." >&2;}
2913    { (exit 77); exit 77; }; }
2914 fi
2915
2916 ac_exeext=$ac_cv_exeext
2917
2918 # Check that the compiler produces executables we can run.  If not, either
2919 # the compiler is broken, or we cross compile.
2920 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2921 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2922 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2923 # If not cross compiling, check that we can run a simple program.
2924 if test "$cross_compiling" != yes; then
2925   if { ac_try='./$ac_file'
2926   { (case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931   (eval "$ac_try") 2>&5
2932   ac_status=$?
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }; }; then
2935     cross_compiling=no
2936   else
2937     if test "$cross_compiling" = maybe; then
2938         cross_compiling=yes
2939     else
2940         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2941 If you meant to cross compile, use \`--host'.
2942 See \`config.log' for more details." >&5
2943 echo "$as_me: error: cannot run C compiled programs.
2944 If you meant to cross compile, use \`--host'.
2945 See \`config.log' for more details." >&2;}
2946    { (exit 1); exit 1; }; }
2947     fi
2948   fi
2949 fi
2950 { echo "$as_me:$LINENO: result: yes" >&5
2951 echo "${ECHO_T}yes" >&6; }
2952
2953 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2954 ac_clean_files=$ac_clean_files_save
2955 # Check that the compiler produces executables we can run.  If not, either
2956 # the compiler is broken, or we cross compile.
2957 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2958 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2959 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2960 echo "${ECHO_T}$cross_compiling" >&6; }
2961
2962 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2963 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2964 if { (ac_try="$ac_link"
2965 case "(($ac_try" in
2966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967   *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970   (eval "$ac_link") 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; then
2974   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2975 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2976 # work properly (i.e., refer to `conftest.exe'), while it won't with
2977 # `rm'.
2978 for ac_file in conftest.exe conftest conftest.*; do
2979   test -f "$ac_file" || continue
2980   case $ac_file in
2981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2982     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983           break;;
2984     * ) break;;
2985   esac
2986 done
2987 else
2988   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2989 See \`config.log' for more details." >&5
2990 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details." >&2;}
2992    { (exit 1); exit 1; }; }
2993 fi
2994
2995 rm -f conftest$ac_cv_exeext
2996 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2997 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2998
2999 rm -f conftest.$ac_ext
3000 EXEEXT=$ac_cv_exeext
3001 ac_exeext=$EXEEXT
3002 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3003 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3004 if test "${ac_cv_objext+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007   cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h.  */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h.  */
3013
3014 int
3015 main ()
3016 {
3017
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.o conftest.obj
3023 if { (ac_try="$ac_compile"
3024 case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029   (eval "$ac_compile") 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; then
3033   for ac_file in conftest.o conftest.obj conftest.*; do
3034   test -f "$ac_file" || continue;
3035   case $ac_file in
3036     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3037     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3038        break;;
3039   esac
3040 done
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3046 See \`config.log' for more details." >&5
3047 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3048 See \`config.log' for more details." >&2;}
3049    { (exit 1); exit 1; }; }
3050 fi
3051
3052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3053 fi
3054 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3055 echo "${ECHO_T}$ac_cv_objext" >&6; }
3056 OBJEXT=$ac_cv_objext
3057 ac_objext=$OBJEXT
3058 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3059 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3060 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3061   echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063   cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h.  */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h.  */
3069
3070 int
3071 main ()
3072 {
3073 #ifndef __GNUC__
3074        choke me
3075 #endif
3076
3077   ;
3078   return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_compile") 2>conftest.er1
3089   ac_status=$?
3090   grep -v '^ *+' conftest.er1 >conftest.err
3091   rm -f conftest.er1
3092   cat conftest.err >&5
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); } && {
3095          test -z "$ac_c_werror_flag" ||
3096          test ! -s conftest.err
3097        } && test -s conftest.$ac_objext; then
3098   ac_compiler_gnu=yes
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103         ac_compiler_gnu=no
3104 fi
3105
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3108
3109 fi
3110 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3111 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3112 GCC=`test $ac_compiler_gnu = yes && echo yes`
3113 ac_test_CFLAGS=${CFLAGS+set}
3114 ac_save_CFLAGS=$CFLAGS
3115 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3116 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3117 if test "${ac_cv_prog_cc_g+set}" = set; then
3118   echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120   ac_save_c_werror_flag=$ac_c_werror_flag
3121    ac_c_werror_flag=yes
3122    ac_cv_prog_cc_g=no
3123    CFLAGS="-g"
3124    cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130
3131 int
3132 main ()
3133 {
3134
3135   ;
3136   return 0;
3137 }
3138 _ACEOF
3139 rm -f conftest.$ac_objext
3140 if { (ac_try="$ac_compile"
3141 case "(($ac_try" in
3142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143   *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146   (eval "$ac_compile") 2>conftest.er1
3147   ac_status=$?
3148   grep -v '^ *+' conftest.er1 >conftest.err
3149   rm -f conftest.er1
3150   cat conftest.err >&5
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); } && {
3153          test -z "$ac_c_werror_flag" ||
3154          test ! -s conftest.err
3155        } && test -s conftest.$ac_objext; then
3156   ac_cv_prog_cc_g=yes
3157 else
3158   echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161         CFLAGS=""
3162       cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168
3169 int
3170 main ()
3171 {
3172
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3179 case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_compile") 2>conftest.er1
3185   ac_status=$?
3186   grep -v '^ *+' conftest.er1 >conftest.err
3187   rm -f conftest.er1
3188   cat conftest.err >&5
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); } && {
3191          test -z "$ac_c_werror_flag" ||
3192          test ! -s conftest.err
3193        } && test -s conftest.$ac_objext; then
3194   :
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199         ac_c_werror_flag=$ac_save_c_werror_flag
3200          CFLAGS="-g"
3201          cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h.  */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h.  */
3207
3208 int
3209 main ()
3210 {
3211
3212   ;
3213   return 0;
3214 }
3215 _ACEOF
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_compile") 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } && {
3230          test -z "$ac_c_werror_flag" ||
3231          test ! -s conftest.err
3232        } && test -s conftest.$ac_objext; then
3233   ac_cv_prog_cc_g=yes
3234 else
3235   echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238
3239 fi
3240
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 fi
3243
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 fi
3246
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248    ac_c_werror_flag=$ac_save_c_werror_flag
3249 fi
3250 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3252 if test "$ac_test_CFLAGS" = set; then
3253   CFLAGS=$ac_save_CFLAGS
3254 elif test $ac_cv_prog_cc_g = yes; then
3255   if test "$GCC" = yes; then
3256     CFLAGS="-g -O2"
3257   else
3258     CFLAGS="-g"
3259   fi
3260 else
3261   if test "$GCC" = yes; then
3262     CFLAGS="-O2"
3263   else
3264     CFLAGS=
3265   fi
3266 fi
3267 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3268 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3269 if test "${ac_cv_prog_cc_c89+set}" = set; then
3270   echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272   ac_cv_prog_cc_c89=no
3273 ac_save_CC=$CC
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <stdarg.h>
3281 #include <stdio.h>
3282 #include <sys/types.h>
3283 #include <sys/stat.h>
3284 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3285 struct buf { int x; };
3286 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3287 static char *e (p, i)
3288      char **p;
3289      int i;
3290 {
3291   return p[i];
3292 }
3293 static char *f (char * (*g) (char **, int), char **p, ...)
3294 {
3295   char *s;
3296   va_list v;
3297   va_start (v,p);
3298   s = g (p, va_arg (v,int));
3299   va_end (v);
3300   return s;
3301 }
3302
3303 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3304    function prototypes and stuff, but not '\xHH' hex character constants.
3305    These don't provoke an error unfortunately, instead are silently treated
3306    as 'x'.  The following induces an error, until -std is added to get
3307    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3308    array size at least.  It's necessary to write '\x00'==0 to get something
3309    that's true only with -std.  */
3310 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3311
3312 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3313    inside strings and character constants.  */
3314 #define FOO(x) 'x'
3315 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3316
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321 int argc;
3322 char **argv;
3323 int
3324 main ()
3325 {
3326 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3327   ;
3328   return 0;
3329 }
3330 _ACEOF
3331 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3332         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3333 do
3334   CC="$ac_save_CC $ac_arg"
3335   rm -f conftest.$ac_objext
3336 if { (ac_try="$ac_compile"
3337 case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342   (eval "$ac_compile") 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } && {
3349          test -z "$ac_c_werror_flag" ||
3350          test ! -s conftest.err
3351        } && test -s conftest.$ac_objext; then
3352   ac_cv_prog_cc_c89=$ac_arg
3353 else
3354   echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357
3358 fi
3359
3360 rm -f core conftest.err conftest.$ac_objext
3361   test "x$ac_cv_prog_cc_c89" != "xno" && break
3362 done
3363 rm -f conftest.$ac_ext
3364 CC=$ac_save_CC
3365
3366 fi
3367 # AC_CACHE_VAL
3368 case "x$ac_cv_prog_cc_c89" in
3369   x)
3370     { echo "$as_me:$LINENO: result: none needed" >&5
3371 echo "${ECHO_T}none needed" >&6; } ;;
3372   xno)
3373     { echo "$as_me:$LINENO: result: unsupported" >&5
3374 echo "${ECHO_T}unsupported" >&6; } ;;
3375   *)
3376     CC="$CC $ac_cv_prog_cc_c89"
3377     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3378 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3379 esac
3380
3381
3382 ac_ext=c
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 DEPDIR="${am__leading_dot}deps"
3388
3389 ac_config_commands="$ac_config_commands depfiles"
3390
3391
3392 am_make=${MAKE-make}
3393 cat > confinc << 'END'
3394 am__doit:
3395         @echo done
3396 .PHONY: am__doit
3397 END
3398 # If we don't find an include directive, just comment out the code.
3399 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3400 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3401 am__include="#"
3402 am__quote=
3403 _am_result=none
3404 # First try GNU make style include.
3405 echo "include confinc" > confmf
3406 # We grep out `Entering directory' and `Leaving directory'
3407 # messages which can occur if `w' ends up in MAKEFLAGS.
3408 # In particular we don't look at `^make:' because GNU make might
3409 # be invoked under some other name (usually "gmake"), in which
3410 # case it prints its new name instead of `make'.
3411 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3412    am__include=include
3413    am__quote=
3414    _am_result=GNU
3415 fi
3416 # Now try BSD make style include.
3417 if test "$am__include" = "#"; then
3418    echo '.include "confinc"' > confmf
3419    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3420       am__include=.include
3421       am__quote="\""
3422       _am_result=BSD
3423    fi
3424 fi
3425
3426
3427 { echo "$as_me:$LINENO: result: $_am_result" >&5
3428 echo "${ECHO_T}$_am_result" >&6; }
3429 rm -f confinc confmf
3430
3431 # Check whether --enable-dependency-tracking was given.
3432 if test "${enable_dependency_tracking+set}" = set; then
3433   enableval=$enable_dependency_tracking;
3434 fi
3435
3436 if test "x$enable_dependency_tracking" != xno; then
3437   am_depcomp="$ac_aux_dir/depcomp"
3438   AMDEPBACKSLASH='\'
3439 fi
3440  if test "x$enable_dependency_tracking" != xno; then
3441   AMDEP_TRUE=
3442   AMDEP_FALSE='#'
3443 else
3444   AMDEP_TRUE='#'
3445   AMDEP_FALSE=
3446 fi
3447
3448
3449
3450 depcc="$CC"   am_compiler_list=
3451
3452 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3453 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3454 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3455   echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3458   # We make a subdir and do the tests there.  Otherwise we can end up
3459   # making bogus files that we don't know about and never remove.  For
3460   # instance it was reported that on HP-UX the gcc test will end up
3461   # making a dummy file named `D' -- because `-MD' means `put the output
3462   # in D'.
3463   mkdir conftest.dir
3464   # Copy depcomp to subdir because otherwise we won't find it if we're
3465   # using a relative directory.
3466   cp "$am_depcomp" conftest.dir
3467   cd conftest.dir
3468   # We will build objects and dependencies in a subdirectory because
3469   # it helps to detect inapplicable dependency modes.  For instance
3470   # both Tru64's cc and ICC support -MD to output dependencies as a
3471   # side effect of compilation, but ICC will put the dependencies in
3472   # the current directory while Tru64 will put them in the object
3473   # directory.
3474   mkdir sub
3475
3476   am_cv_CC_dependencies_compiler_type=none
3477   if test "$am_compiler_list" = ""; then
3478      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3479   fi
3480   for depmode in $am_compiler_list; do
3481     # Setup a source with many dependencies, because some compilers
3482     # like to wrap large dependency lists on column 80 (with \), and
3483     # we should not choose a depcomp mode which is confused by this.
3484     #
3485     # We need to recreate these files for each test, as the compiler may
3486     # overwrite some of them when testing with obscure command lines.
3487     # This happens at least with the AIX C compiler.
3488     : > sub/conftest.c
3489     for i in 1 2 3 4 5 6; do
3490       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3491       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3492       # Solaris 8's {/usr,}/bin/sh.
3493       touch sub/conftst$i.h
3494     done
3495     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3496
3497     case $depmode in
3498     nosideeffect)
3499       # after this tag, mechanisms are not by side-effect, so they'll
3500       # only be used when explicitly requested
3501       if test "x$enable_dependency_tracking" = xyes; then
3502         continue
3503       else
3504         break
3505       fi
3506       ;;
3507     none) break ;;
3508     esac
3509     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3510     # mode.  It turns out that the SunPro C++ compiler does not properly
3511     # handle `-M -o', and we need to detect this.
3512     if depmode=$depmode \
3513        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3514        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3515        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3516          >/dev/null 2>conftest.err &&
3517        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3518        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3519        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3520        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3521       # icc doesn't choke on unknown options, it will just issue warnings
3522       # or remarks (even with -Werror).  So we grep stderr for any message
3523       # that says an option was ignored or not supported.
3524       # When given -MP, icc 7.0 and 7.1 complain thusly:
3525       #   icc: Command line warning: ignoring option '-M'; no argument required
3526       # The diagnosis changed in icc 8.0:
3527       #   icc: Command line remark: option '-MP' not supported
3528       if (grep 'ignoring option' conftest.err ||
3529           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3530         am_cv_CC_dependencies_compiler_type=$depmode
3531         break
3532       fi
3533     fi
3534   done
3535
3536   cd ..
3537   rm -rf conftest.dir
3538 else
3539   am_cv_CC_dependencies_compiler_type=none
3540 fi
3541
3542 fi
3543 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3544 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3545 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3546
3547  if
3548   test "x$enable_dependency_tracking" != xno \
3549   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3550   am__fastdepCC_TRUE=
3551   am__fastdepCC_FALSE='#'
3552 else
3553   am__fastdepCC_TRUE='#'
3554   am__fastdepCC_FALSE=
3555 fi
3556
3557
3558 ac_ext=c
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3564 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3565 # On Suns, sometimes $CPP names a directory.
3566 if test -n "$CPP" && test -d "$CPP"; then
3567   CPP=
3568 fi
3569 if test -z "$CPP"; then
3570   if test "${ac_cv_prog_CPP+set}" = set; then
3571   echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573       # Double quotes because CPP needs to be expanded
3574     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3575     do
3576       ac_preproc_ok=false
3577 for ac_c_preproc_warn_flag in '' yes
3578 do
3579   # Use a header file that comes with gcc, so configuring glibc
3580   # with a fresh cross-compiler works.
3581   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582   # <limits.h> exists even on freestanding compilers.
3583   # On the NeXT, cc -E runs the code through the compiler's parser,
3584   # not just through cpp. "Syntax error" is here to catch this case.
3585   cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591 #ifdef __STDC__
3592 # include <limits.h>
3593 #else
3594 # include <assert.h>
3595 #endif
3596                      Syntax error
3597 _ACEOF
3598 if { (ac_try="$ac_cpp conftest.$ac_ext"
3599 case "(($ac_try" in
3600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601   *) ac_try_echo=$ac_try;;
3602 esac
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3605   ac_status=$?
3606   grep -v '^ *+' conftest.er1 >conftest.err
3607   rm -f conftest.er1
3608   cat conftest.err >&5
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); } >/dev/null && {
3611          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3612          test ! -s conftest.err
3613        }; then
3614   :
3615 else
3616   echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619   # Broken: fails on valid input.
3620 continue
3621 fi
3622
3623 rm -f conftest.err conftest.$ac_ext
3624
3625   # OK, works on sane cases.  Now check whether nonexistent headers
3626   # can be detected and how.
3627   cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h.  */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h.  */
3633 #include <ac_nonexistent.h>
3634 _ACEOF
3635 if { (ac_try="$ac_cpp conftest.$ac_ext"
3636 case "(($ac_try" in
3637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638   *) ac_try_echo=$ac_try;;
3639 esac
3640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3642   ac_status=$?
3643   grep -v '^ *+' conftest.er1 >conftest.err
3644   rm -f conftest.er1
3645   cat conftest.err >&5
3646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); } >/dev/null && {
3648          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3649          test ! -s conftest.err
3650        }; then
3651   # Broken: success on invalid input.
3652 continue
3653 else
3654   echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3656
3657   # Passes both tests.
3658 ac_preproc_ok=:
3659 break
3660 fi
3661
3662 rm -f conftest.err conftest.$ac_ext
3663
3664 done
3665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3666 rm -f conftest.err conftest.$ac_ext
3667 if $ac_preproc_ok; then
3668   break
3669 fi
3670
3671     done
3672     ac_cv_prog_CPP=$CPP
3673
3674 fi
3675   CPP=$ac_cv_prog_CPP
3676 else
3677   ac_cv_prog_CPP=$CPP
3678 fi
3679 { echo "$as_me:$LINENO: result: $CPP" >&5
3680 echo "${ECHO_T}$CPP" >&6; }
3681 ac_preproc_ok=false
3682 for ac_c_preproc_warn_flag in '' yes
3683 do
3684   # Use a header file that comes with gcc, so configuring glibc
3685   # with a fresh cross-compiler works.
3686   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3687   # <limits.h> exists even on freestanding compilers.
3688   # On the NeXT, cc -E runs the code through the compiler's parser,
3689   # not just through cpp. "Syntax error" is here to catch this case.
3690   cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 #ifdef __STDC__
3697 # include <limits.h>
3698 #else
3699 # include <assert.h>
3700 #endif
3701                      Syntax error
3702 _ACEOF
3703 if { (ac_try="$ac_cpp conftest.$ac_ext"
3704 case "(($ac_try" in
3705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706   *) ac_try_echo=$ac_try;;
3707 esac
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3710   ac_status=$?
3711   grep -v '^ *+' conftest.er1 >conftest.err
3712   rm -f conftest.er1
3713   cat conftest.err >&5
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); } >/dev/null && {
3716          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3717          test ! -s conftest.err
3718        }; then
3719   :
3720 else
3721   echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724   # Broken: fails on valid input.
3725 continue
3726 fi
3727
3728 rm -f conftest.err conftest.$ac_ext
3729
3730   # OK, works on sane cases.  Now check whether nonexistent headers
3731   # can be detected and how.
3732   cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h.  */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h.  */
3738 #include <ac_nonexistent.h>
3739 _ACEOF
3740 if { (ac_try="$ac_cpp conftest.$ac_ext"
3741 case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3747   ac_status=$?
3748   grep -v '^ *+' conftest.er1 >conftest.err
3749   rm -f conftest.er1
3750   cat conftest.err >&5
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); } >/dev/null && {
3753          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3754          test ! -s conftest.err
3755        }; then
3756   # Broken: success on invalid input.
3757 continue
3758 else
3759   echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762   # Passes both tests.
3763 ac_preproc_ok=:
3764 break
3765 fi
3766
3767 rm -f conftest.err conftest.$ac_ext
3768
3769 done
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.$ac_ext
3772 if $ac_preproc_ok; then
3773   :
3774 else
3775   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3776 See \`config.log' for more details." >&5
3777 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3778 See \`config.log' for more details." >&2;}
3779    { (exit 1); exit 1; }; }
3780 fi
3781
3782 ac_ext=c
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
3788 ac_ext=cpp
3789 ac_cpp='$CXXCPP $CPPFLAGS'
3790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3793 if test -z "$CXX"; then
3794   if test -n "$CCC"; then
3795     CXX=$CCC
3796   else
3797     if test -n "$ac_tool_prefix"; then
3798   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3799   do
3800     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3804 if test "${ac_cv_prog_CXX+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   if test -n "$CXX"; then
3808   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815   for ac_exec_ext in '' $ac_executable_extensions; do
3816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819     break 2
3820   fi
3821 done
3822 done
3823 IFS=$as_save_IFS
3824
3825 fi
3826 fi
3827 CXX=$ac_cv_prog_CXX
3828 if test -n "$CXX"; then
3829   { echo "$as_me:$LINENO: result: $CXX" >&5
3830 echo "${ECHO_T}$CXX" >&6; }
3831 else
3832   { echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6; }
3834 fi
3835
3836
3837     test -n "$CXX" && break
3838   done
3839 fi
3840 if test -z "$CXX"; then
3841   ac_ct_CXX=$CXX
3842   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3843 do
3844   # Extract the first word of "$ac_prog", so it can be a program name with args.
3845 set dummy $ac_prog; ac_word=$2
3846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3848 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   if test -n "$ac_ct_CXX"; then
3852   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857   IFS=$as_save_IFS
3858   test -z "$as_dir" && as_dir=.
3859   for ac_exec_ext in '' $ac_executable_extensions; do
3860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861     ac_cv_prog_ac_ct_CXX="$ac_prog"
3862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3863     break 2
3864   fi
3865 done
3866 done
3867 IFS=$as_save_IFS
3868
3869 fi
3870 fi
3871 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3872 if test -n "$ac_ct_CXX"; then
3873   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3874 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3875 else
3876   { echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6; }
3878 fi
3879
3880
3881   test -n "$ac_ct_CXX" && break
3882 done
3883
3884   if test "x$ac_ct_CXX" = x; then
3885     CXX="g++"
3886   else
3887     case $cross_compiling:$ac_tool_warned in
3888 yes:)
3889 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3890 whose name does not start with the host triplet.  If you think this
3891 configuration is useful to you, please write to autoconf@gnu.org." >&5
3892 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3893 whose name does not start with the host triplet.  If you think this
3894 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3895 ac_tool_warned=yes ;;
3896 esac
3897     CXX=$ac_ct_CXX
3898   fi
3899 fi
3900
3901   fi
3902 fi
3903 # Provide some information about the compiler.
3904 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3905 ac_compiler=`set X $ac_compile; echo $2`
3906 { (ac_try="$ac_compiler --version >&5"
3907 case "(($ac_try" in
3908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909   *) ac_try_echo=$ac_try;;
3910 esac
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912   (eval "$ac_compiler --version >&5") 2>&5
3913   ac_status=$?
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); }
3916 { (ac_try="$ac_compiler -v >&5"
3917 case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922   (eval "$ac_compiler -v >&5") 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); }
3926 { (ac_try="$ac_compiler -V >&5"
3927 case "(($ac_try" in
3928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929   *) ac_try_echo=$ac_try;;
3930 esac
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932   (eval "$ac_compiler -V >&5") 2>&5
3933   ac_status=$?
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); }
3936
3937 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3938 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3939 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948
3949 int
3950 main ()
3951 {
3952 #ifndef __GNUC__
3953        choke me
3954 #endif
3955
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 rm -f conftest.$ac_objext
3961 if { (ac_try="$ac_compile"
3962 case "(($ac_try" in
3963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964   *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967   (eval "$ac_compile") 2>conftest.er1
3968   ac_status=$?
3969   grep -v '^ *+' conftest.er1 >conftest.err
3970   rm -f conftest.er1
3971   cat conftest.err >&5
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); } && {
3974          test -z "$ac_cxx_werror_flag" ||
3975          test ! -s conftest.err
3976        } && test -s conftest.$ac_objext; then
3977   ac_compiler_gnu=yes
3978 else
3979   echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982         ac_compiler_gnu=no
3983 fi
3984
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3987
3988 fi
3989 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3990 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3991 GXX=`test $ac_compiler_gnu = yes && echo yes`
3992 ac_test_CXXFLAGS=${CXXFLAGS+set}
3993 ac_save_CXXFLAGS=$CXXFLAGS
3994 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3995 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3996 if test "${ac_cv_prog_cxx_g+set}" = set; then
3997   echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4000    ac_cxx_werror_flag=yes
4001    ac_cv_prog_cxx_g=no
4002    CXXFLAGS="-g"
4003    cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h.  */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h.  */
4009
4010 int
4011 main ()
4012 {
4013
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 rm -f conftest.$ac_objext
4019 if { (ac_try="$ac_compile"
4020 case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025   (eval "$ac_compile") 2>conftest.er1
4026   ac_status=$?
4027   grep -v '^ *+' conftest.er1 >conftest.err
4028   rm -f conftest.er1
4029   cat conftest.err >&5
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); } && {
4032          test -z "$ac_cxx_werror_flag" ||
4033          test ! -s conftest.err
4034        } && test -s conftest.$ac_objext; then
4035   ac_cv_prog_cxx_g=yes
4036 else
4037   echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040         CXXFLAGS=""
4041       cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047
4048 int
4049 main ()
4050 {
4051
4052   ;
4053   return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.$ac_objext
4057 if { (ac_try="$ac_compile"
4058 case "(($ac_try" in
4059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060   *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063   (eval "$ac_compile") 2>conftest.er1
4064   ac_status=$?
4065   grep -v '^ *+' conftest.er1 >conftest.err
4066   rm -f conftest.er1
4067   cat conftest.err >&5
4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); } && {
4070          test -z "$ac_cxx_werror_flag" ||
4071          test ! -s conftest.err
4072        } && test -s conftest.$ac_objext; then
4073   :
4074 else
4075   echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4077
4078         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4079          CXXFLAGS="-g"
4080          cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h.  */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h.  */
4086
4087 int
4088 main ()
4089 {
4090
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (ac_try="$ac_compile"
4097 case "(($ac_try" in
4098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099   *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102   (eval "$ac_compile") 2>conftest.er1
4103   ac_status=$?
4104   grep -v '^ *+' conftest.er1 >conftest.err
4105   rm -f conftest.er1
4106   cat conftest.err >&5
4107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); } && {
4109          test -z "$ac_cxx_werror_flag" ||
4110          test ! -s conftest.err
4111        } && test -s conftest.$ac_objext; then
4112   ac_cv_prog_cxx_g=yes
4113 else
4114   echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4116
4117
4118 fi
4119
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 fi
4122
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 fi
4125
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4128 fi
4129 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4130 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4131 if test "$ac_test_CXXFLAGS" = set; then
4132   CXXFLAGS=$ac_save_CXXFLAGS
4133 elif test $ac_cv_prog_cxx_g = yes; then
4134   if test "$GXX" = yes; then
4135     CXXFLAGS="-g -O2"
4136   else
4137     CXXFLAGS="-g"
4138   fi
4139 else
4140   if test "$GXX" = yes; then
4141     CXXFLAGS="-O2"
4142   else
4143     CXXFLAGS=
4144   fi
4145 fi
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151
4152 depcc="$CXX"  am_compiler_list=
4153
4154 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4155 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4156 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4160   # We make a subdir and do the tests there.  Otherwise we can end up
4161   # making bogus files that we don't know about and never remove.  For
4162   # instance it was reported that on HP-UX the gcc test will end up
4163   # making a dummy file named `D' -- because `-MD' means `put the output
4164   # in D'.
4165   mkdir conftest.dir
4166   # Copy depcomp to subdir because otherwise we won't find it if we're
4167   # using a relative directory.
4168   cp "$am_depcomp" conftest.dir
4169   cd conftest.dir
4170   # We will build objects and dependencies in a subdirectory because
4171   # it helps to detect inapplicable dependency modes.  For instance
4172   # both Tru64's cc and ICC support -MD to output dependencies as a
4173   # side effect of compilation, but ICC will put the dependencies in
4174   # the current directory while Tru64 will put them in the object
4175   # directory.
4176   mkdir sub
4177
4178   am_cv_CXX_dependencies_compiler_type=none
4179   if test "$am_compiler_list" = ""; then
4180      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4181   fi
4182   for depmode in $am_compiler_list; do
4183     # Setup a source with many dependencies, because some compilers
4184     # like to wrap large dependency lists on column 80 (with \), and
4185     # we should not choose a depcomp mode which is confused by this.
4186     #
4187     # We need to recreate these files for each test, as the compiler may
4188     # overwrite some of them when testing with obscure command lines.
4189     # This happens at least with the AIX C compiler.
4190     : > sub/conftest.c
4191     for i in 1 2 3 4 5 6; do
4192       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4193       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4194       # Solaris 8's {/usr,}/bin/sh.
4195       touch sub/conftst$i.h
4196     done
4197     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4198
4199     case $depmode in
4200     nosideeffect)
4201       # after this tag, mechanisms are not by side-effect, so they'll
4202       # only be used when explicitly requested
4203       if test "x$enable_dependency_tracking" = xyes; then
4204         continue
4205       else
4206         break
4207       fi
4208       ;;
4209     none) break ;;
4210     esac
4211     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4212     # mode.  It turns out that the SunPro C++ compiler does not properly
4213     # handle `-M -o', and we need to detect this.
4214     if depmode=$depmode \
4215        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4216        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4217        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4218          >/dev/null 2>conftest.err &&
4219        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4220        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4221        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4222        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4223       # icc doesn't choke on unknown options, it will just issue warnings
4224       # or remarks (even with -Werror).  So we grep stderr for any message
4225       # that says an option was ignored or not supported.
4226       # When given -MP, icc 7.0 and 7.1 complain thusly:
4227       #   icc: Command line warning: ignoring option '-M'; no argument required
4228       # The diagnosis changed in icc 8.0:
4229       #   icc: Command line remark: option '-MP' not supported
4230       if (grep 'ignoring option' conftest.err ||
4231           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4232         am_cv_CXX_dependencies_compiler_type=$depmode
4233         break
4234       fi
4235     fi
4236   done
4237
4238   cd ..
4239   rm -rf conftest.dir
4240 else
4241   am_cv_CXX_dependencies_compiler_type=none
4242 fi
4243
4244 fi
4245 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4246 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4247 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4248
4249  if
4250   test "x$enable_dependency_tracking" != xno \
4251   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4252   am__fastdepCXX_TRUE=
4253   am__fastdepCXX_FALSE='#'
4254 else
4255   am__fastdepCXX_TRUE='#'
4256   am__fastdepCXX_FALSE=
4257 fi
4258
4259
4260  if test "$GCC" = yes; then
4261   GCC_TRUE=
4262   GCC_FALSE='#'
4263 else
4264   GCC_TRUE='#'
4265   GCC_FALSE=
4266 fi
4267    # let the Makefile know if we're gcc
4268
4269 # Check whether --enable-shared was given.
4270 if test "${enable_shared+set}" = set; then
4271   enableval=$enable_shared; p=${PACKAGE-default}
4272     case $enableval in
4273     yes) enable_shared=yes ;;
4274     no) enable_shared=no ;;
4275     *)
4276       enable_shared=no
4277       # Look at the argument we got.  We use all the common list separators.
4278       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4279       for pkg in $enableval; do
4280         IFS="$lt_save_ifs"
4281         if test "X$pkg" = "X$p"; then
4282           enable_shared=yes
4283         fi
4284       done
4285       IFS="$lt_save_ifs"
4286       ;;
4287     esac
4288 else
4289   enable_shared=yes
4290 fi
4291
4292
4293 # Check whether --enable-static was given.
4294 if test "${enable_static+set}" = set; then
4295   enableval=$enable_static; p=${PACKAGE-default}
4296     case $enableval in
4297     yes) enable_static=yes ;;
4298     no) enable_static=no ;;
4299     *)
4300      enable_static=no
4301       # Look at the argument we got.  We use all the common list separators.
4302       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4303       for pkg in $enableval; do
4304         IFS="$lt_save_ifs"
4305         if test "X$pkg" = "X$p"; then
4306           enable_static=yes
4307         fi
4308       done
4309       IFS="$lt_save_ifs"
4310       ;;
4311     esac
4312 else
4313   enable_static=yes
4314 fi
4315
4316
4317 # Check whether --enable-fast-install was given.
4318 if test "${enable_fast_install+set}" = set; then
4319   enableval=$enable_fast_install; p=${PACKAGE-default}
4320     case $enableval in
4321     yes) enable_fast_install=yes ;;
4322     no) enable_fast_install=no ;;
4323     *)
4324       enable_fast_install=no
4325       # Look at the argument we got.  We use all the common list separators.
4326       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4327       for pkg in $enableval; do
4328         IFS="$lt_save_ifs"
4329         if test "X$pkg" = "X$p"; then
4330           enable_fast_install=yes
4331         fi
4332       done
4333       IFS="$lt_save_ifs"
4334       ;;
4335     esac
4336 else
4337   enable_fast_install=yes
4338 fi
4339
4340
4341 # Make sure we can run config.sub.
4342 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4343   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4344 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4345    { (exit 1); exit 1; }; }
4346
4347 { echo "$as_me:$LINENO: checking build system type" >&5
4348 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4349 if test "${ac_cv_build+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   ac_build_alias=$build_alias
4353 test "x$ac_build_alias" = x &&
4354   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4355 test "x$ac_build_alias" = x &&
4356   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4357 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4358    { (exit 1); exit 1; }; }
4359 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4360   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4361 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4362    { (exit 1); exit 1; }; }
4363
4364 fi
4365 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4366 echo "${ECHO_T}$ac_cv_build" >&6; }
4367 case $ac_cv_build in
4368 *-*-*) ;;
4369 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4370 echo "$as_me: error: invalid value of canonical build" >&2;}
4371    { (exit 1); exit 1; }; };;
4372 esac
4373 build=$ac_cv_build
4374 ac_save_IFS=$IFS; IFS='-'
4375 set x $ac_cv_build
4376 shift
4377 build_cpu=$1
4378 build_vendor=$2
4379 shift; shift
4380 # Remember, the first character of IFS is used to create $*,
4381 # except with old shells:
4382 build_os=$*
4383 IFS=$ac_save_IFS
4384 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4385
4386
4387 { echo "$as_me:$LINENO: checking host system type" >&5
4388 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4389 if test "${ac_cv_host+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   if test "x$host_alias" = x; then
4393   ac_cv_host=$ac_cv_build
4394 else
4395   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4396     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4397 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4398    { (exit 1); exit 1; }; }
4399 fi
4400
4401 fi
4402 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4403 echo "${ECHO_T}$ac_cv_host" >&6; }
4404 case $ac_cv_host in
4405 *-*-*) ;;
4406 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4407 echo "$as_me: error: invalid value of canonical host" >&2;}
4408    { (exit 1); exit 1; }; };;
4409 esac
4410 host=$ac_cv_host
4411 ac_save_IFS=$IFS; IFS='-'
4412 set x $ac_cv_host
4413 shift
4414 host_cpu=$1
4415 host_vendor=$2
4416 shift; shift
4417 # Remember, the first character of IFS is used to create $*,
4418 # except with old shells:
4419 host_os=$*
4420 IFS=$ac_save_IFS
4421 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4422
4423
4424 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4425 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4426 if test "${lt_cv_path_SED+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   # Loop through the user's path and test for sed and gsed.
4430 # Then use that list of sed's as ones to test for truncation.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for lt_ac_prog in sed gsed; do
4437     for ac_exec_ext in '' $ac_executable_extensions; do
4438       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4439         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4440       fi
4441     done
4442   done
4443 done
4444 IFS=$as_save_IFS
4445 lt_ac_max=0
4446 lt_ac_count=0
4447 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4448 # along with /bin/sed that truncates output.
4449 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4450   test ! -f $lt_ac_sed && continue
4451   cat /dev/null > conftest.in
4452   lt_ac_count=0
4453   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4454   # Check for GNU sed and select it if it is found.
4455   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4456     lt_cv_path_SED=$lt_ac_sed
4457     break
4458   fi
4459   while true; do
4460     cat conftest.in conftest.in >conftest.tmp
4461     mv conftest.tmp conftest.in
4462     cp conftest.in conftest.nl
4463     echo >>conftest.nl
4464     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4465     cmp -s conftest.out conftest.nl || break
4466     # 10000 chars as input seems more than enough
4467     test $lt_ac_count -gt 10 && break
4468     lt_ac_count=`expr $lt_ac_count + 1`
4469     if test $lt_ac_count -gt $lt_ac_max; then
4470       lt_ac_max=$lt_ac_count
4471       lt_cv_path_SED=$lt_ac_sed
4472     fi
4473   done
4474 done
4475
4476 fi
4477
4478 SED=$lt_cv_path_SED
4479
4480 { echo "$as_me:$LINENO: result: $SED" >&5
4481 echo "${ECHO_T}$SED" >&6; }
4482
4483 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4484 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4485 if test "${ac_cv_path_GREP+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   # Extract the first word of "grep ggrep" to use in msg output
4489 if test -z "$GREP"; then
4490 set dummy grep ggrep; ac_prog_name=$2
4491 if test "${ac_cv_path_GREP+set}" = set; then
4492   echo $ECHO_N "(cached) $ECHO_C" >&6
4493 else
4494   ac_path_GREP_found=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501   for ac_prog in grep ggrep; do
4502   for ac_exec_ext in '' $ac_executable_extensions; do
4503     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4504     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4505     # Check for GNU ac_path_GREP and select it if it is found.
4506   # Check for GNU $ac_path_GREP
4507 case `"$ac_path_GREP" --version 2>&1` in
4508 *GNU*)
4509   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4510 *)
4511   ac_count=0
4512   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4513   while :
4514   do
4515     cat "conftest.in" "conftest.in" >"conftest.tmp"
4516     mv "conftest.tmp" "conftest.in"
4517     cp "conftest.in" "conftest.nl"
4518     echo 'GREP' >> "conftest.nl"
4519     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521     ac_count=`expr $ac_count + 1`
4522     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523       # Best one so far, save it but keep looking for a better one
4524       ac_cv_path_GREP="$ac_path_GREP"
4525       ac_path_GREP_max=$ac_count
4526     fi
4527     # 10*(2^10) chars as input seems more than enough
4528     test $ac_count -gt 10 && break
4529   done
4530   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531 esac
4532
4533
4534     $ac_path_GREP_found && break 3
4535   done
4536 done
4537
4538 done
4539 IFS=$as_save_IFS
4540
4541
4542 fi
4543
4544 GREP="$ac_cv_path_GREP"
4545 if test -z "$GREP"; then
4546   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4547 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4548    { (exit 1); exit 1; }; }
4549 fi
4550
4551 else
4552   ac_cv_path_GREP=$GREP
4553 fi
4554
4555
4556 fi
4557 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4558 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4559  GREP="$ac_cv_path_GREP"
4560
4561
4562 { echo "$as_me:$LINENO: checking for egrep" >&5
4563 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4564 if test "${ac_cv_path_EGREP+set}" = set; then
4565   echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4568    then ac_cv_path_EGREP="$GREP -E"
4569    else
4570      # Extract the first word of "egrep" to use in msg output
4571 if test -z "$EGREP"; then
4572 set dummy egrep; ac_prog_name=$2
4573 if test "${ac_cv_path_EGREP+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   ac_path_EGREP_found=false
4577 # Loop through the user's path and test for each of PROGNAME-LIST
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4580 do
4581   IFS=$as_save_IFS
4582   test -z "$as_dir" && as_dir=.
4583   for ac_prog in egrep; do
4584   for ac_exec_ext in '' $ac_executable_extensions; do
4585     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4586     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4587     # Check for GNU ac_path_EGREP and select it if it is found.
4588   # Check for GNU $ac_path_EGREP
4589 case `"$ac_path_EGREP" --version 2>&1` in
4590 *GNU*)
4591   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4592 *)
4593   ac_count=0
4594   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4595   while :
4596   do
4597     cat "conftest.in" "conftest.in" >"conftest.tmp"
4598     mv "conftest.tmp" "conftest.in"
4599     cp "conftest.in" "conftest.nl"
4600     echo 'EGREP' >> "conftest.nl"
4601     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603     ac_count=`expr $ac_count + 1`
4604     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4605       # Best one so far, save it but keep looking for a better one
4606       ac_cv_path_EGREP="$ac_path_EGREP"
4607       ac_path_EGREP_max=$ac_count
4608     fi
4609     # 10*(2^10) chars as input seems more than enough
4610     test $ac_count -gt 10 && break
4611   done
4612   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 esac
4614
4615
4616     $ac_path_EGREP_found && break 3
4617   done
4618 done
4619
4620 done
4621 IFS=$as_save_IFS
4622
4623
4624 fi
4625
4626 EGREP="$ac_cv_path_EGREP"
4627 if test -z "$EGREP"; then
4628   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4629 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4630    { (exit 1); exit 1; }; }
4631 fi
4632
4633 else
4634   ac_cv_path_EGREP=$EGREP
4635 fi
4636
4637
4638    fi
4639 fi
4640 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4641 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4642  EGREP="$ac_cv_path_EGREP"
4643
4644
4645
4646 # Check whether --with-gnu-ld was given.
4647 if test "${with_gnu_ld+set}" = set; then
4648   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4649 else
4650   with_gnu_ld=no
4651 fi
4652
4653 ac_prog=ld
4654 if test "$GCC" = yes; then
4655   # Check if gcc -print-prog-name=ld gives a path.
4656   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4657 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4658   case $host in
4659   *-*-mingw*)
4660     # gcc leaves a trailing carriage return which upsets mingw
4661     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4662   *)
4663     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4664   esac
4665   case $ac_prog in
4666     # Accept absolute paths.
4667     [\\/]* | ?:[\\/]*)
4668       re_direlt='/[^/][^/]*/\.\./'
4669       # Canonicalize the pathname of ld
4670       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4671       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4672         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4673       done
4674       test -z "$LD" && LD="$ac_prog"
4675       ;;
4676   "")
4677     # If it fails, then pretend we aren't using GCC.
4678     ac_prog=ld
4679     ;;
4680   *)
4681     # If it is relative, then search for the first ld in PATH.
4682     with_gnu_ld=unknown
4683     ;;
4684   esac
4685 elif test "$with_gnu_ld" = yes; then
4686   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4687 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4688 else
4689   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4690 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4691 fi
4692 if test "${lt_cv_path_LD+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   if test -z "$LD"; then
4696   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4697   for ac_dir in $PATH; do
4698     IFS="$lt_save_ifs"
4699     test -z "$ac_dir" && ac_dir=.
4700     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4701       lt_cv_path_LD="$ac_dir/$ac_prog"
4702       # Check to see if the program is GNU ld.  I'd rather use --version,
4703       # but apparently some variants of GNU ld only accept -v.
4704       # Break only if it was the GNU/non-GNU ld that we prefer.
4705       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4706       *GNU* | *'with BFD'*)
4707         test "$with_gnu_ld" != no && break
4708         ;;
4709       *)
4710         test "$with_gnu_ld" != yes && break
4711         ;;
4712       esac
4713     fi
4714   done
4715   IFS="$lt_save_ifs"
4716 else
4717   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4718 fi
4719 fi
4720
4721 LD="$lt_cv_path_LD"
4722 if test -n "$LD"; then
4723   { echo "$as_me:$LINENO: result: $LD" >&5
4724 echo "${ECHO_T}$LD" >&6; }
4725 else
4726   { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 fi
4729 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4730 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4731    { (exit 1); exit 1; }; }
4732 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4733 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4734 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4738 case `$LD -v 2>&1 </dev/null` in
4739 *GNU* | *'with BFD'*)
4740   lt_cv_prog_gnu_ld=yes
4741   ;;
4742 *)
4743   lt_cv_prog_gnu_ld=no
4744   ;;
4745 esac
4746 fi
4747 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4748 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4749 with_gnu_ld=$lt_cv_prog_gnu_ld
4750
4751
4752 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4753 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4754 if test "${lt_cv_ld_reload_flag+set}" = set; then
4755   echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757   lt_cv_ld_reload_flag='-r'
4758 fi
4759 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4760 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4761 reload_flag=$lt_cv_ld_reload_flag
4762 case $reload_flag in
4763 "" | " "*) ;;
4764 *) reload_flag=" $reload_flag" ;;
4765 esac
4766 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4767 case $host_os in
4768   darwin*)
4769     if test "$GCC" = yes; then
4770       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4771     else
4772       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4773     fi
4774     ;;
4775 esac
4776
4777 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4778 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4779 if test "${lt_cv_path_NM+set}" = set; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782   if test -n "$NM"; then
4783   # Let the user override the test.
4784   lt_cv_path_NM="$NM"
4785 else
4786   lt_nm_to_check="${ac_tool_prefix}nm"
4787   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4788     lt_nm_to_check="$lt_nm_to_check nm"
4789   fi
4790   for lt_tmp_nm in $lt_nm_to_check; do
4791     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4792     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4793       IFS="$lt_save_ifs"
4794       test -z "$ac_dir" && ac_dir=.
4795       tmp_nm="$ac_dir/$lt_tmp_nm"
4796       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4797         # Check to see if the nm accepts a BSD-compat flag.
4798         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4799         #   nm: unknown option "B" ignored
4800         # Tru64's nm complains that /dev/null is an invalid object file
4801         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4802         */dev/null* | *'Invalid file or object type'*)
4803           lt_cv_path_NM="$tmp_nm -B"
4804           break
4805           ;;
4806         *)
4807           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4808           */dev/null*)
4809             lt_cv_path_NM="$tmp_nm -p"
4810             break
4811             ;;
4812           *)
4813             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4814             continue # so that we can try to find one that supports BSD flags
4815             ;;
4816           esac
4817           ;;
4818         esac
4819       fi
4820     done
4821     IFS="$lt_save_ifs"
4822   done
4823   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4824 fi
4825 fi
4826 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4827 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4828 NM="$lt_cv_path_NM"
4829
4830 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4831 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4832 LN_S=$as_ln_s
4833 if test "$LN_S" = "ln -s"; then
4834   { echo "$as_me:$LINENO: result: yes" >&5
4835 echo "${ECHO_T}yes" >&6; }
4836 else
4837   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4838 echo "${ECHO_T}no, using $LN_S" >&6; }
4839 fi
4840
4841 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4842 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4843 if test "${lt_cv_deplibs_check_method+set}" = set; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   lt_cv_file_magic_cmd='$MAGIC_CMD'
4847 lt_cv_file_magic_test_file=
4848 lt_cv_deplibs_check_method='unknown'
4849 # Need to set the preceding variable on all platforms that support
4850 # interlibrary dependencies.
4851 # 'none' -- dependencies not supported.
4852 # `unknown' -- same as none, but documents that we really don't know.
4853 # 'pass_all' -- all dependencies passed with no checks.
4854 # 'test_compile' -- check by making test program.
4855 # 'file_magic [[regex]]' -- check by looking for files in library path
4856 # which responds to the $file_magic_cmd with a given extended regex.
4857 # If you have `file' or equivalent on your system and you're not sure
4858 # whether `pass_all' will *always* work, you probably want this one.
4859
4860 case $host_os in
4861 aix[4-9]*)
4862   lt_cv_deplibs_check_method=pass_all
4863   ;;
4864
4865 beos*)
4866   lt_cv_deplibs_check_method=pass_all
4867   ;;
4868
4869 bsdi[45]*)
4870   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4871   lt_cv_file_magic_cmd='/usr/bin/file -L'
4872   lt_cv_file_magic_test_file=/shlib/libc.so
4873   ;;
4874
4875 cygwin*)
4876   # func_win32_libid is a shell function defined in ltmain.sh
4877   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4878   lt_cv_file_magic_cmd='func_win32_libid'
4879   ;;
4880
4881 mingw* | pw32*)
4882   # Base MSYS/MinGW do not provide the 'file' command needed by
4883   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4884   # unless we find 'file', for example because we are cross-compiling.
4885   if ( file / ) >/dev/null 2>&1; then
4886     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4887     lt_cv_file_magic_cmd='func_win32_libid'
4888   else
4889     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4890     lt_cv_file_magic_cmd='$OBJDUMP -f'
4891   fi
4892   ;;
4893
4894 darwin* | rhapsody*)
4895   lt_cv_deplibs_check_method=pass_all
4896   ;;
4897
4898 freebsd* | dragonfly*)
4899   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4900     case $host_cpu in
4901     i*86 )
4902       # Not sure whether the presence of OpenBSD here was a mistake.
4903       # Let's accept both of them until this is cleared up.
4904       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4905       lt_cv_file_magic_cmd=/usr/bin/file
4906       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4907       ;;
4908     esac
4909   else
4910     lt_cv_deplibs_check_method=pass_all
4911   fi
4912   ;;
4913
4914 gnu*)
4915   lt_cv_deplibs_check_method=pass_all
4916   ;;
4917
4918 hpux10.20* | hpux11*)
4919   lt_cv_file_magic_cmd=/usr/bin/file
4920   case $host_cpu in
4921   ia64*)
4922     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4923     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4924     ;;
4925   hppa*64*)
4926     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]'
4927     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4928     ;;
4929   *)
4930     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4931     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4932     ;;
4933   esac
4934   ;;
4935
4936 interix[3-9]*)
4937   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4938   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4939   ;;
4940
4941 irix5* | irix6* | nonstopux*)
4942   case $LD in
4943   *-32|*"-32 ") libmagic=32-bit;;
4944   *-n32|*"-n32 ") libmagic=N32;;
4945   *-64|*"-64 ") libmagic=64-bit;;
4946   *) libmagic=never-match;;
4947   esac
4948   lt_cv_deplibs_check_method=pass_all
4949   ;;
4950
4951 # This must be Linux ELF.
4952 linux* | k*bsd*-gnu)
4953   lt_cv_deplibs_check_method=pass_all
4954   ;;
4955
4956 netbsd* | netbsdelf*-gnu)
4957   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4958     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4959   else
4960     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4961   fi
4962   ;;
4963
4964 newos6*)
4965   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4966   lt_cv_file_magic_cmd=/usr/bin/file
4967   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4968   ;;
4969
4970 nto-qnx*)
4971   lt_cv_deplibs_check_method=unknown
4972   ;;
4973
4974 openbsd*)
4975   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4976     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4977   else
4978     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4979   fi
4980   ;;
4981
4982 osf3* | osf4* | osf5*)
4983   lt_cv_deplibs_check_method=pass_all
4984   ;;
4985
4986 rdos*)
4987   lt_cv_deplibs_check_method=pass_all
4988   ;;
4989
4990 solaris*)
4991   lt_cv_deplibs_check_method=pass_all
4992   ;;
4993
4994 sysv4 | sysv4.3*)
4995   case $host_vendor in
4996   motorola)
4997     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]'
4998     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4999     ;;
5000   ncr)
5001     lt_cv_deplibs_check_method=pass_all
5002     ;;
5003   sequent)
5004     lt_cv_file_magic_cmd='/bin/file'
5005     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5006     ;;
5007   sni)
5008     lt_cv_file_magic_cmd='/bin/file'
5009     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5010     lt_cv_file_magic_test_file=/lib/libc.so
5011     ;;
5012   siemens)
5013     lt_cv_deplibs_check_method=pass_all
5014     ;;
5015   pc)
5016     lt_cv_deplibs_check_method=pass_all
5017     ;;
5018   esac
5019   ;;
5020
5021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5022   lt_cv_deplibs_check_method=pass_all
5023   ;;
5024 esac
5025
5026 fi
5027 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5028 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5029 file_magic_cmd=$lt_cv_file_magic_cmd
5030 deplibs_check_method=$lt_cv_deplibs_check_method
5031 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5032
5033
5034
5035
5036 # If no C compiler was specified, use CC.
5037 LTCC=${LTCC-"$CC"}
5038
5039 # If no C compiler flags were specified, use CFLAGS.
5040 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5041
5042 # Allow CC to be a program name with arguments.
5043 compiler=$CC
5044
5045
5046 # Check whether --enable-libtool-lock was given.
5047 if test "${enable_libtool_lock+set}" = set; then
5048   enableval=$enable_libtool_lock;
5049 fi
5050
5051 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5052
5053 # Some flags need to be propagated to the compiler or linker for good
5054 # libtool support.
5055 case $host in
5056 ia64-*-hpux*)
5057   # Find out which ABI we are using.
5058   echo 'int i;' > conftest.$ac_ext
5059   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060   (eval $ac_compile) 2>&5
5061   ac_status=$?
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); }; then
5064     case `/usr/bin/file conftest.$ac_objext` in
5065     *ELF-32*)
5066       HPUX_IA64_MODE="32"
5067       ;;
5068     *ELF-64*)
5069       HPUX_IA64_MODE="64"
5070       ;;
5071     esac
5072   fi
5073   rm -rf conftest*
5074   ;;
5075 *-*-irix6*)
5076   # Find out which ABI we are using.
5077   echo '#line 5077 "configure"' > conftest.$ac_ext
5078   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079   (eval $ac_compile) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; then
5083    if test "$lt_cv_prog_gnu_ld" = yes; then
5084     case `/usr/bin/file conftest.$ac_objext` in
5085     *32-bit*)
5086       LD="${LD-ld} -melf32bsmip"
5087       ;;
5088     *N32*)
5089       LD="${LD-ld} -melf32bmipn32"
5090       ;;
5091     *64-bit*)
5092       LD="${LD-ld} -melf64bmip"
5093       ;;
5094     esac
5095    else
5096     case `/usr/bin/file conftest.$ac_objext` in
5097     *32-bit*)
5098       LD="${LD-ld} -32"
5099       ;;
5100     *N32*)
5101       LD="${LD-ld} -n32"
5102       ;;
5103     *64-bit*)
5104       LD="${LD-ld} -64"
5105       ;;
5106     esac
5107    fi
5108   fi
5109   rm -rf conftest*
5110   ;;
5111
5112 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5113 s390*-*linux*|sparc*-*linux*)
5114   # Find out which ABI we are using.
5115   echo 'int i;' > conftest.$ac_ext
5116   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117   (eval $ac_compile) 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); }; then
5121     case `/usr/bin/file conftest.o` in
5122     *32-bit*)
5123       case $host in
5124         x86_64-*kfreebsd*-gnu)
5125           LD="${LD-ld} -m elf_i386_fbsd"
5126           ;;
5127         x86_64-*linux*)
5128           LD="${LD-ld} -m elf_i386"
5129           ;;
5130         ppc64-*linux*|powerpc64-*linux*)
5131           LD="${LD-ld} -m elf32ppclinux"
5132           ;;
5133         s390x-*linux*)
5134           LD="${LD-ld} -m elf_s390"
5135           ;;
5136         sparc64-*linux*)
5137           LD="${LD-ld} -m elf32_sparc"
5138           ;;
5139       esac
5140       ;;
5141     *64-bit*)
5142       case $host in
5143         x86_64-*kfreebsd*-gnu)
5144           LD="${LD-ld} -m elf_x86_64_fbsd"
5145           ;;
5146         x86_64-*linux*)
5147           LD="${LD-ld} -m elf_x86_64"
5148           ;;
5149         ppc*-*linux*|powerpc*-*linux*)
5150           LD="${LD-ld} -m elf64ppc"
5151           ;;
5152         s390*-*linux*)
5153           LD="${LD-ld} -m elf64_s390"
5154           ;;
5155         sparc*-*linux*)
5156           LD="${LD-ld} -m elf64_sparc"
5157           ;;
5158       esac
5159       ;;
5160     esac
5161   fi
5162   rm -rf conftest*
5163   ;;
5164
5165 *-*-sco3.2v5*)
5166   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5167   SAVE_CFLAGS="$CFLAGS"
5168   CFLAGS="$CFLAGS -belf"
5169   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5170 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5171 if test "${lt_cv_cc_needs_belf+set}" = set; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   ac_ext=c
5175 ac_cpp='$CPP $CPPFLAGS'
5176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5179
5180      cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h.  */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h.  */
5186
5187 int
5188 main ()
5189 {
5190
5191   ;
5192   return 0;
5193 }
5194 _ACEOF
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (ac_try="$ac_link"
5197 case "(($ac_try" in
5198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199   *) ac_try_echo=$ac_try;;
5200 esac
5201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202   (eval "$ac_link") 2>conftest.er1
5203   ac_status=$?
5204   grep -v '^ *+' conftest.er1 >conftest.err
5205   rm -f conftest.er1
5206   cat conftest.err >&5
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); } && {
5209          test -z "$ac_c_werror_flag" ||
5210          test ! -s conftest.err
5211        } && test -s conftest$ac_exeext &&
5212        $as_test_x conftest$ac_exeext; then
5213   lt_cv_cc_needs_belf=yes
5214 else
5215   echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218         lt_cv_cc_needs_belf=no
5219 fi
5220
5221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5222       conftest$ac_exeext conftest.$ac_ext
5223      ac_ext=c
5224 ac_cpp='$CPP $CPPFLAGS'
5225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228
5229 fi
5230 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5231 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5232   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5233     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5234     CFLAGS="$SAVE_CFLAGS"
5235   fi
5236   ;;
5237 sparc*-*solaris*)
5238   # Find out which ABI we are using.
5239   echo 'int i;' > conftest.$ac_ext
5240   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241   (eval $ac_compile) 2>&5
5242   ac_status=$?
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); }; then
5245     case `/usr/bin/file conftest.o` in
5246     *64-bit*)
5247       case $lt_cv_prog_gnu_ld in
5248       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5249       *)
5250         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5251           LD="${LD-ld} -64"
5252         fi
5253         ;;
5254       esac
5255       ;;
5256     esac
5257   fi
5258   rm -rf conftest*
5259   ;;
5260
5261
5262 esac
5263
5264 need_locks="$enable_libtool_lock"
5265
5266
5267
5268 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5269 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5270 if test "${ac_cv_header_stdc+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h.  */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h.  */
5279 #include <stdlib.h>
5280 #include <stdarg.h>
5281 #include <string.h>
5282 #include <float.h>
5283
5284 int
5285 main ()
5286 {
5287
5288   ;
5289   return 0;
5290 }
5291 _ACEOF
5292 rm -f conftest.$ac_objext
5293 if { (ac_try="$ac_compile"
5294 case "(($ac_try" in
5295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296   *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299   (eval "$ac_compile") 2>conftest.er1
5300   ac_status=$?
5301   grep -v '^ *+' conftest.er1 >conftest.err
5302   rm -f conftest.er1
5303   cat conftest.err >&5
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); } && {
5306          test -z "$ac_c_werror_flag" ||
5307          test ! -s conftest.err
5308        } && test -s conftest.$ac_objext; then
5309   ac_cv_header_stdc=yes
5310 else
5311   echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5313
5314         ac_cv_header_stdc=no
5315 fi
5316
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318
5319 if test $ac_cv_header_stdc = yes; then
5320   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5321   cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h.  */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h.  */
5327 #include <string.h>
5328
5329 _ACEOF
5330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331   $EGREP "memchr" >/dev/null 2>&1; then
5332   :
5333 else
5334   ac_cv_header_stdc=no
5335 fi
5336 rm -f conftest*
5337
5338 fi
5339
5340 if test $ac_cv_header_stdc = yes; then
5341   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5342   cat >conftest.$ac_ext <<_ACEOF
5343 /* confdefs.h.  */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h.  */
5348 #include <stdlib.h>
5349
5350 _ACEOF
5351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5352   $EGREP "free" >/dev/null 2>&1; then
5353   :
5354 else
5355   ac_cv_header_stdc=no
5356 fi
5357 rm -f conftest*
5358
5359 fi
5360
5361 if test $ac_cv_header_stdc = yes; then
5362   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5363   if test "$cross_compiling" = yes; then
5364   :
5365 else
5366   cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h.  */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h.  */
5372 #include <ctype.h>
5373 #include <stdlib.h>
5374 #if ((' ' & 0x0FF) == 0x020)
5375 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5376 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5377 #else
5378 # define ISLOWER(c) \
5379                    (('a' <= (c) && (c) <= 'i') \
5380                      || ('j' <= (c) && (c) <= 'r') \
5381                      || ('s' <= (c) && (c) <= 'z'))
5382 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5383 #endif
5384
5385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5386 int
5387 main ()
5388 {
5389   int i;
5390   for (i = 0; i < 256; i++)
5391     if (XOR (islower (i), ISLOWER (i))
5392         || toupper (i) != TOUPPER (i))
5393       return 2;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest$ac_exeext
5398 if { (ac_try="$ac_link"
5399 case "(($ac_try" in
5400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401   *) ac_try_echo=$ac_try;;
5402 esac
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404   (eval "$ac_link") 2>&5
5405   ac_status=$?
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5408   { (case "(($ac_try" in
5409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410   *) ac_try_echo=$ac_try;;
5411 esac
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413   (eval "$ac_try") 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); }; }; then
5417   :
5418 else
5419   echo "$as_me: program exited with status $ac_status" >&5
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 ( exit $ac_status )
5424 ac_cv_header_stdc=no
5425 fi
5426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5427 fi
5428
5429
5430 fi
5431 fi
5432 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5433 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5434 if test $ac_cv_header_stdc = yes; then
5435
5436 cat >>confdefs.h <<\_ACEOF
5437 #define STDC_HEADERS 1
5438 _ACEOF
5439
5440 fi
5441
5442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5453                   inttypes.h stdint.h unistd.h
5454 do
5455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   cat >conftest.$ac_ext <<_ACEOF
5462 /* confdefs.h.  */
5463 _ACEOF
5464 cat confdefs.h >>conftest.$ac_ext
5465 cat >>conftest.$ac_ext <<_ACEOF
5466 /* end confdefs.h.  */
5467 $ac_includes_default
5468
5469 #include <$ac_header>
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5473 case "(($ac_try" in
5474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475   *) ac_try_echo=$ac_try;;
5476 esac
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478   (eval "$ac_compile") 2>conftest.er1
5479   ac_status=$?
5480   grep -v '^ *+' conftest.er1 >conftest.err
5481   rm -f conftest.er1
5482   cat conftest.err >&5
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } && {
5485          test -z "$ac_c_werror_flag" ||
5486          test ! -s conftest.err
5487        } && test -s conftest.$ac_objext; then
5488   eval "$as_ac_Header=yes"
5489 else
5490   echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493         eval "$as_ac_Header=no"
5494 fi
5495
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 fi
5498 ac_res=`eval echo '${'$as_ac_Header'}'`
5499                { echo "$as_me:$LINENO: result: $ac_res" >&5
5500 echo "${ECHO_T}$ac_res" >&6; }
5501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5502   cat >>confdefs.h <<_ACEOF
5503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5504 _ACEOF
5505
5506 fi
5507
5508 done
5509
5510
5511
5512 for ac_header in dlfcn.h
5513 do
5514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5516   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 fi
5521 ac_res=`eval echo '${'$as_ac_Header'}'`
5522                { echo "$as_me:$LINENO: result: $ac_res" >&5
5523 echo "${ECHO_T}$ac_res" >&6; }
5524 else
5525   # Is the header compilable?
5526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5528 cat >conftest.$ac_ext <<_ACEOF
5529 /* confdefs.h.  */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h.  */
5534 $ac_includes_default
5535 #include <$ac_header>
5536 _ACEOF
5537 rm -f conftest.$ac_objext
5538 if { (ac_try="$ac_compile"
5539 case "(($ac_try" in
5540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541   *) ac_try_echo=$ac_try;;
5542 esac
5543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544   (eval "$ac_compile") 2>conftest.er1
5545   ac_status=$?
5546   grep -v '^ *+' conftest.er1 >conftest.err
5547   rm -f conftest.er1
5548   cat conftest.err >&5
5549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); } && {
5551          test -z "$ac_c_werror_flag" ||
5552          test ! -s conftest.err
5553        } && test -s conftest.$ac_objext; then
5554   ac_header_compiler=yes
5555 else
5556   echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5558
5559         ac_header_compiler=no
5560 fi
5561
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5564 echo "${ECHO_T}$ac_header_compiler" >&6; }
5565
5566 # Is the header present?
5567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5569 cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h.  */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h.  */
5575 #include <$ac_header>
5576 _ACEOF
5577 if { (ac_try="$ac_cpp conftest.$ac_ext"
5578 case "(($ac_try" in
5579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580   *) ac_try_echo=$ac_try;;
5581 esac
5582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5584   ac_status=$?
5585   grep -v '^ *+' conftest.er1 >conftest.err
5586   rm -f conftest.er1
5587   cat conftest.err >&5
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); } >/dev/null && {
5590          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5591          test ! -s conftest.err
5592        }; then
5593   ac_header_preproc=yes
5594 else
5595   echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5597
5598   ac_header_preproc=no
5599 fi
5600
5601 rm -f conftest.err conftest.$ac_ext
5602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5603 echo "${ECHO_T}$ac_header_preproc" >&6; }
5604
5605 # So?  What about this header?
5606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5607   yes:no: )
5608     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5612     ac_header_preproc=yes
5613     ;;
5614   no:yes:* )
5615     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5617     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5618 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5619     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5621     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5622 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5625     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5627     ( cat <<\_ASBOX
5628 ## ------------------------------------ ##
5629 ## Report this to opensource@google.com ##
5630 ## ------------------------------------ ##
5631 _ASBOX
5632      ) | sed "s/^/$as_me: WARNING:     /" >&2
5633     ;;
5634 esac
5635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640   eval "$as_ac_Header=\$ac_header_preproc"
5641 fi
5642 ac_res=`eval echo '${'$as_ac_Header'}'`
5643                { echo "$as_me:$LINENO: result: $ac_res" >&5
5644 echo "${ECHO_T}$ac_res" >&6; }
5645
5646 fi
5647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5648   cat >>confdefs.h <<_ACEOF
5649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5650 _ACEOF
5651
5652 fi
5653
5654 done
5655
5656
5657
5658 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5659     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5660     (test "X$CXX" != "Xg++"))) ; then
5661   ac_ext=cpp
5662 ac_cpp='$CXXCPP $CPPFLAGS'
5663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5666 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5667 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5668 if test -z "$CXXCPP"; then
5669   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672       # Double quotes because CXXCPP needs to be expanded
5673     for CXXCPP in "$CXX -E" "/lib/cpp"
5674     do
5675       ac_preproc_ok=false
5676 for ac_cxx_preproc_warn_flag in '' yes
5677 do
5678   # Use a header file that comes with gcc, so configuring glibc
5679   # with a fresh cross-compiler works.
5680   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5681   # <limits.h> exists even on freestanding compilers.
5682   # On the NeXT, cc -E runs the code through the compiler's parser,
5683   # not just through cpp. "Syntax error" is here to catch this case.
5684   cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 #ifdef __STDC__
5691 # include <limits.h>
5692 #else
5693 # include <assert.h>
5694 #endif
5695                      Syntax error
5696 _ACEOF
5697 if { (ac_try="$ac_cpp conftest.$ac_ext"
5698 case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } >/dev/null && {
5710          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5711          test ! -s conftest.err
5712        }; then
5713   :
5714 else
5715   echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718   # Broken: fails on valid input.
5719 continue
5720 fi
5721
5722 rm -f conftest.err conftest.$ac_ext
5723
5724   # OK, works on sane cases.  Now check whether nonexistent headers
5725   # can be detected and how.
5726   cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h.  */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h.  */
5732 #include <ac_nonexistent.h>
5733 _ACEOF
5734 if { (ac_try="$ac_cpp conftest.$ac_ext"
5735 case "(($ac_try" in
5736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737   *) ac_try_echo=$ac_try;;
5738 esac
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5741   ac_status=$?
5742   grep -v '^ *+' conftest.er1 >conftest.err
5743   rm -f conftest.er1
5744   cat conftest.err >&5
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); } >/dev/null && {
5747          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5748          test ! -s conftest.err
5749        }; then
5750   # Broken: success on invalid input.
5751 continue
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756   # Passes both tests.
5757 ac_preproc_ok=:
5758 break
5759 fi
5760
5761 rm -f conftest.err conftest.$ac_ext
5762
5763 done
5764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5765 rm -f conftest.err conftest.$ac_ext
5766 if $ac_preproc_ok; then
5767   break
5768 fi
5769
5770     done
5771     ac_cv_prog_CXXCPP=$CXXCPP
5772
5773 fi
5774   CXXCPP=$ac_cv_prog_CXXCPP
5775 else
5776   ac_cv_prog_CXXCPP=$CXXCPP
5777 fi
5778 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5779 echo "${ECHO_T}$CXXCPP" >&6; }
5780 ac_preproc_ok=false
5781 for ac_cxx_preproc_warn_flag in '' yes
5782 do
5783   # Use a header file that comes with gcc, so configuring glibc
5784   # with a fresh cross-compiler works.
5785   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786   # <limits.h> exists even on freestanding compilers.
5787   # On the NeXT, cc -E runs the code through the compiler's parser,
5788   # not just through cpp. "Syntax error" is here to catch this case.
5789   cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795 #ifdef __STDC__
5796 # include <limits.h>
5797 #else
5798 # include <assert.h>
5799 #endif
5800                      Syntax error
5801 _ACEOF
5802 if { (ac_try="$ac_cpp conftest.$ac_ext"
5803 case "(($ac_try" in
5804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805   *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } >/dev/null && {
5815          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5816          test ! -s conftest.err
5817        }; then
5818   :
5819 else
5820   echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5822
5823   # Broken: fails on valid input.
5824 continue
5825 fi
5826
5827 rm -f conftest.err conftest.$ac_ext
5828
5829   # OK, works on sane cases.  Now check whether nonexistent headers
5830   # can be detected and how.
5831   cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837 #include <ac_nonexistent.h>
5838 _ACEOF
5839 if { (ac_try="$ac_cpp conftest.$ac_ext"
5840 case "(($ac_try" in
5841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842   *) ac_try_echo=$ac_try;;
5843 esac
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5846   ac_status=$?
5847   grep -v '^ *+' conftest.er1 >conftest.err
5848   rm -f conftest.er1
5849   cat conftest.err >&5
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } >/dev/null && {
5852          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5853          test ! -s conftest.err
5854        }; then
5855   # Broken: success on invalid input.
5856 continue
5857 else
5858   echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861   # Passes both tests.
5862 ac_preproc_ok=:
5863 break
5864 fi
5865
5866 rm -f conftest.err conftest.$ac_ext
5867
5868 done
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.err conftest.$ac_ext
5871 if $ac_preproc_ok; then
5872   :
5873 else
5874   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5875 See \`config.log' for more details." >&5
5876 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5877 See \`config.log' for more details." >&2;}
5878    { (exit 1); exit 1; }; }
5879 fi
5880
5881 ac_ext=cpp
5882 ac_cpp='$CXXCPP $CPPFLAGS'
5883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5886
5887 fi
5888
5889
5890 ac_ext=f
5891 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5892 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5894 if test -n "$ac_tool_prefix"; then
5895   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
5896   do
5897     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5901 if test "${ac_cv_prog_F77+set}" = set; then
5902   echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904   if test -n "$F77"; then
5905   ac_cv_prog_F77="$F77" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910   IFS=$as_save_IFS
5911   test -z "$as_dir" && as_dir=.
5912   for ac_exec_ext in '' $ac_executable_extensions; do
5913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916     break 2
5917   fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 F77=$ac_cv_prog_F77
5925 if test -n "$F77"; then
5926   { echo "$as_me:$LINENO: result: $F77" >&5
5927 echo "${ECHO_T}$F77" >&6; }
5928 else
5929   { echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6; }
5931 fi
5932
5933
5934     test -n "$F77" && break
5935   done
5936 fi
5937 if test -z "$F77"; then
5938   ac_ct_F77=$F77
5939   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
5940 do
5941   # Extract the first word of "$ac_prog", so it can be a program name with args.
5942 set dummy $ac_prog; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   if test -n "$ac_ct_F77"; then
5949   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956   for ac_exec_ext in '' $ac_executable_extensions; do
5957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958     ac_cv_prog_ac_ct_F77="$ac_prog"
5959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963 done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5969 if test -n "$ac_ct_F77"; then
5970   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5971 echo "${ECHO_T}$ac_ct_F77" >&6; }
5972 else
5973   { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5975 fi
5976
5977
5978   test -n "$ac_ct_F77" && break
5979 done
5980
5981   if test "x$ac_ct_F77" = x; then
5982     F77=""
5983   else
5984     case $cross_compiling:$ac_tool_warned in
5985 yes:)
5986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5987 whose name does not start with the host triplet.  If you think this
5988 configuration is useful to you, please write to autoconf@gnu.org." >&5
5989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5990 whose name does not start with the host triplet.  If you think this
5991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5992 ac_tool_warned=yes ;;
5993 esac
5994     F77=$ac_ct_F77
5995   fi
5996 fi
5997
5998
5999 # Provide some information about the compiler.
6000 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6001 ac_compiler=`set X $ac_compile; echo $2`
6002 { (ac_try="$ac_compiler --version >&5"
6003 case "(($ac_try" in
6004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005   *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008   (eval "$ac_compiler --version >&5") 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }
6012 { (ac_try="$ac_compiler -v >&5"
6013 case "(($ac_try" in
6014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015   *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018   (eval "$ac_compiler -v >&5") 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }
6022 { (ac_try="$ac_compiler -V >&5"
6023 case "(($ac_try" in
6024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025   *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028   (eval "$ac_compiler -V >&5") 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }
6032 rm -f a.out
6033
6034 # If we don't use `.F' as extension, the preprocessor is not run on the
6035 # input file.  (Note that this only needs to work for GNU compilers.)
6036 ac_save_ext=$ac_ext
6037 ac_ext=F
6038 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6039 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6040 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   cat >conftest.$ac_ext <<_ACEOF
6044       program main
6045 #ifndef __GNUC__
6046        choke me
6047 #endif
6048
6049       end
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (ac_try="$ac_compile"
6053 case "(($ac_try" in
6054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055   *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058   (eval "$ac_compile") 2>conftest.er1
6059   ac_status=$?
6060   grep -v '^ *+' conftest.er1 >conftest.err
6061   rm -f conftest.er1
6062   cat conftest.err >&5
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); } && {
6065          test -z "$ac_f77_werror_flag" ||
6066          test ! -s conftest.err
6067        } && test -s conftest.$ac_objext; then
6068   ac_compiler_gnu=yes
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073         ac_compiler_gnu=no
6074 fi
6075
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6078
6079 fi
6080 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6081 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6082 ac_ext=$ac_save_ext
6083 ac_test_FFLAGS=${FFLAGS+set}
6084 ac_save_FFLAGS=$FFLAGS
6085 FFLAGS=
6086 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6087 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6088 if test "${ac_cv_prog_f77_g+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   FFLAGS=-g
6092 cat >conftest.$ac_ext <<_ACEOF
6093       program main
6094
6095       end
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6099 case "(($ac_try" in
6100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101   *) ac_try_echo=$ac_try;;
6102 esac
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104   (eval "$ac_compile") 2>conftest.er1
6105   ac_status=$?
6106   grep -v '^ *+' conftest.er1 >conftest.err
6107   rm -f conftest.er1
6108   cat conftest.err >&5
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); } && {
6111          test -z "$ac_f77_werror_flag" ||
6112          test ! -s conftest.err
6113        } && test -s conftest.$ac_objext; then
6114   ac_cv_prog_f77_g=yes
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119         ac_cv_prog_f77_g=no
6120 fi
6121
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123
6124 fi
6125 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6126 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6127 if test "$ac_test_FFLAGS" = set; then
6128   FFLAGS=$ac_save_FFLAGS
6129 elif test $ac_cv_prog_f77_g = yes; then
6130   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6131     FFLAGS="-g -O2"
6132   else
6133     FFLAGS="-g"
6134   fi
6135 else
6136   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6137     FFLAGS="-O2"
6138   else
6139     FFLAGS=
6140   fi
6141 fi
6142
6143 G77=`test $ac_compiler_gnu = yes && echo yes`
6144 ac_ext=c
6145 ac_cpp='$CPP $CPPFLAGS'
6146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149
6150
6151
6152 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6153 # find the maximum length of command line arguments
6154 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6155 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6156 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159     i=0
6160   teststring="ABCD"
6161
6162   case $build_os in
6163   msdosdjgpp*)
6164     # On DJGPP, this test can blow up pretty badly due to problems in libc
6165     # (any single argument exceeding 2000 bytes causes a buffer overrun
6166     # during glob expansion).  Even if it were fixed, the result of this
6167     # check would be larger than it should be.
6168     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6169     ;;
6170
6171   gnu*)
6172     # Under GNU Hurd, this test is not required because there is
6173     # no limit to the length of command line arguments.
6174     # Libtool will interpret -1 as no limit whatsoever
6175     lt_cv_sys_max_cmd_len=-1;
6176     ;;
6177
6178   cygwin* | mingw*)
6179     # On Win9x/ME, this test blows up -- it succeeds, but takes
6180     # about 5 minutes as the teststring grows exponentially.
6181     # Worse, since 9x/ME are not pre-emptively multitasking,
6182     # you end up with a "frozen" computer, even though with patience
6183     # the test eventually succeeds (with a max line length of 256k).
6184     # Instead, let's just punt: use the minimum linelength reported by
6185     # all of the supported platforms: 8192 (on NT/2K/XP).
6186     lt_cv_sys_max_cmd_len=8192;
6187     ;;
6188
6189   amigaos*)
6190     # On AmigaOS with pdksh, this test takes hours, literally.
6191     # So we just punt and use a minimum line length of 8192.
6192     lt_cv_sys_max_cmd_len=8192;
6193     ;;
6194
6195   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6196     # This has been around since 386BSD, at least.  Likely further.
6197     if test -x /sbin/sysctl; then
6198       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6199     elif test -x /usr/sbin/sysctl; then
6200       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6201     else
6202       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6203     fi
6204     # And add a safety zone
6205     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6206     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6207     ;;
6208
6209   interix*)
6210     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6211     lt_cv_sys_max_cmd_len=196608
6212     ;;
6213
6214   osf*)
6215     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6216     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6217     # nice to cause kernel panics so lets avoid the loop below.
6218     # First set a reasonable default.
6219     lt_cv_sys_max_cmd_len=16384
6220     #
6221     if test -x /sbin/sysconfig; then
6222       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6223         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6224       esac
6225     fi
6226     ;;
6227   sco3.2v5*)
6228     lt_cv_sys_max_cmd_len=102400
6229     ;;
6230   sysv5* | sco5v6* | sysv4.2uw2*)
6231     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6232     if test -n "$kargmax"; then
6233       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6234     else
6235       lt_cv_sys_max_cmd_len=32768
6236     fi
6237     ;;
6238   *)
6239     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6240     if test -n "$lt_cv_sys_max_cmd_len"; then
6241       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6242       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6243     else
6244       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6245       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6246                = "XX$teststring") >/dev/null 2>&1 &&
6247               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6248               lt_cv_sys_max_cmd_len=$new_result &&
6249               test $i != 17 # 1/2 MB should be enough
6250       do
6251         i=`expr $i + 1`
6252         teststring=$teststring$teststring
6253       done
6254       teststring=
6255       # Add a significant safety factor because C++ compilers can tack on massive
6256       # amounts of additional arguments before passing them to the linker.
6257       # It appears as though 1/2 is a usable value.
6258       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6259     fi
6260     ;;
6261   esac
6262
6263 fi
6264
6265 if test -n $lt_cv_sys_max_cmd_len ; then
6266   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6267 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6268 else
6269   { echo "$as_me:$LINENO: result: none" >&5
6270 echo "${ECHO_T}none" >&6; }
6271 fi
6272
6273
6274
6275
6276
6277 # Check for command to grab the raw symbol name followed by C symbol from nm.
6278 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6279 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6280 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6281   echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283
6284 # These are sane defaults that work on at least a few old systems.
6285 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6286
6287 # Character class describing NM global symbol codes.
6288 symcode='[BCDEGRST]'
6289
6290 # Regexp to match symbols that can be accessed directly from C.
6291 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6292
6293 # Transform an extracted symbol line into a proper C declaration
6294 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6295
6296 # Transform an extracted symbol line into symbol name and symbol address
6297 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'"
6298
6299 # Define system-specific variables.
6300 case $host_os in
6301 aix*)
6302   symcode='[BCDT]'
6303   ;;
6304 cygwin* | mingw* | pw32*)
6305   symcode='[ABCDGISTW]'
6306   ;;
6307 hpux*) # Its linker distinguishes data from code symbols
6308   if test "$host_cpu" = ia64; then
6309     symcode='[ABCDEGRST]'
6310   fi
6311   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6312   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'"
6313   ;;
6314 linux* | k*bsd*-gnu)
6315   if test "$host_cpu" = ia64; then
6316     symcode='[ABCDGIRSTW]'
6317     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6318     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'"
6319   fi
6320   ;;
6321 irix* | nonstopux*)
6322   symcode='[BCDEGRST]'
6323   ;;
6324 osf*)
6325   symcode='[BCDEGQRST]'
6326   ;;
6327 solaris*)
6328   symcode='[BDRT]'
6329   ;;
6330 sco3.2v5*)
6331   symcode='[DT]'
6332   ;;
6333 sysv4.2uw2*)
6334   symcode='[DT]'
6335   ;;
6336 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6337   symcode='[ABDT]'
6338   ;;
6339 sysv4)
6340   symcode='[DFNSTU]'
6341   ;;
6342 esac
6343
6344 # Handle CRLF in mingw tool chain
6345 opt_cr=
6346 case $build_os in
6347 mingw*)
6348   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6349   ;;
6350 esac
6351
6352 # If we're using GNU nm, then use its standard symbol codes.
6353 case `$NM -V 2>&1` in
6354 *GNU* | *'with BFD'*)
6355   symcode='[ABCDGIRSTW]' ;;
6356 esac
6357
6358 # Try without a prefix undercore, then with it.
6359 for ac_symprfx in "" "_"; do
6360
6361   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6362   symxfrm="\\1 $ac_symprfx\\2 \\2"
6363
6364   # Write the raw and C identifiers.
6365   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6366
6367   # Check to see that the pipe works correctly.
6368   pipe_works=no
6369
6370   rm -f conftest*
6371   cat > conftest.$ac_ext <<EOF
6372 #ifdef __cplusplus
6373 extern "C" {
6374 #endif
6375 char nm_test_var;
6376 void nm_test_func(){}
6377 #ifdef __cplusplus
6378 }
6379 #endif
6380 int main(){nm_test_var='a';nm_test_func();return(0);}
6381 EOF
6382
6383   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384   (eval $ac_compile) 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); }; then
6388     # Now try to grab the symbols.
6389     nlist=conftest.nm
6390     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6391   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6392   ac_status=$?
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); } && test -s "$nlist"; then
6395       # Try sorting and uniquifying the output.
6396       if sort "$nlist" | uniq > "$nlist"T; then
6397         mv -f "$nlist"T "$nlist"
6398       else
6399         rm -f "$nlist"T
6400       fi
6401
6402       # Make sure that we snagged all the symbols we need.
6403       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6404         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6405           cat <<EOF > conftest.$ac_ext
6406 #ifdef __cplusplus
6407 extern "C" {
6408 #endif
6409
6410 EOF
6411           # Now generate the symbol file.
6412           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6413
6414           cat <<EOF >> conftest.$ac_ext
6415 #if defined (__STDC__) && __STDC__
6416 # define lt_ptr_t void *
6417 #else
6418 # define lt_ptr_t char *
6419 # define const
6420 #endif
6421
6422 /* The mapping between symbol names and symbols. */
6423 const struct {
6424   const char *name;
6425   lt_ptr_t address;
6426 }
6427 lt_preloaded_symbols[] =
6428 {
6429 EOF
6430           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6431           cat <<\EOF >> conftest.$ac_ext
6432   {0, (lt_ptr_t) 0}
6433 };
6434
6435 #ifdef __cplusplus
6436 }
6437 #endif
6438 EOF
6439           # Now try linking the two files.
6440           mv conftest.$ac_objext conftstm.$ac_objext
6441           lt_save_LIBS="$LIBS"
6442           lt_save_CFLAGS="$CFLAGS"
6443           LIBS="conftstm.$ac_objext"
6444           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6445           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446   (eval $ac_link) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6450             pipe_works=yes
6451           fi
6452           LIBS="$lt_save_LIBS"
6453           CFLAGS="$lt_save_CFLAGS"
6454         else
6455           echo "cannot find nm_test_func in $nlist" >&5
6456         fi
6457       else
6458         echo "cannot find nm_test_var in $nlist" >&5
6459       fi
6460     else
6461       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6462     fi
6463   else
6464     echo "$progname: failed program was:" >&5
6465     cat conftest.$ac_ext >&5
6466   fi
6467   rm -rf conftest* conftst*
6468
6469   # Do not use the global_symbol_pipe unless it works.
6470   if test "$pipe_works" = yes; then
6471     break
6472   else
6473     lt_cv_sys_global_symbol_pipe=
6474   fi
6475 done
6476
6477 fi
6478
6479 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6480   lt_cv_sys_global_symbol_to_cdecl=
6481 fi
6482 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6483   { echo "$as_me:$LINENO: result: failed" >&5
6484 echo "${ECHO_T}failed" >&6; }
6485 else
6486   { echo "$as_me:$LINENO: result: ok" >&5
6487 echo "${ECHO_T}ok" >&6; }
6488 fi
6489
6490 { echo "$as_me:$LINENO: checking for objdir" >&5
6491 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6492 if test "${lt_cv_objdir+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   rm -f .libs 2>/dev/null
6496 mkdir .libs 2>/dev/null
6497 if test -d .libs; then
6498   lt_cv_objdir=.libs
6499 else
6500   # MS-DOS does not allow filenames that begin with a dot.
6501   lt_cv_objdir=_libs
6502 fi
6503 rmdir .libs 2>/dev/null
6504 fi
6505 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6506 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6507 objdir=$lt_cv_objdir
6508
6509
6510
6511
6512
6513 case $host_os in
6514 aix3*)
6515   # AIX sometimes has problems with the GCC collect2 program.  For some
6516   # reason, if we set the COLLECT_NAMES environment variable, the problems
6517   # vanish in a puff of smoke.
6518   if test "X${COLLECT_NAMES+set}" != Xset; then
6519     COLLECT_NAMES=
6520     export COLLECT_NAMES
6521   fi
6522   ;;
6523 esac
6524
6525 # Sed substitution that helps us do robust quoting.  It backslashifies
6526 # metacharacters that are still active within double-quoted strings.
6527 Xsed='sed -e 1s/^X//'
6528 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6529
6530 # Same as above, but do not quote variable references.
6531 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6532
6533 # Sed substitution to delay expansion of an escaped shell variable in a
6534 # double_quote_subst'ed string.
6535 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6536
6537 # Sed substitution to avoid accidental globbing in evaled expressions
6538 no_glob_subst='s/\*/\\\*/g'
6539
6540 # Constants:
6541 rm="rm -f"
6542
6543 # Global variables:
6544 default_ofile=libtool
6545 can_build_shared=yes
6546
6547 # All known linkers require a `.a' archive for static linking (except MSVC,
6548 # which needs '.lib').
6549 libext=a
6550 ltmain="$ac_aux_dir/ltmain.sh"
6551 ofile="$default_ofile"
6552 with_gnu_ld="$lt_cv_prog_gnu_ld"
6553
6554 if test -n "$ac_tool_prefix"; then
6555   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}ar; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_prog_AR+set}" = set; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   if test -n "$AR"; then
6563   ac_cv_prog_AR="$AR" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570   for ac_exec_ext in '' $ac_executable_extensions; do
6571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572     ac_cv_prog_AR="${ac_tool_prefix}ar"
6573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 AR=$ac_cv_prog_AR
6583 if test -n "$AR"; then
6584   { echo "$as_me:$LINENO: result: $AR" >&5
6585 echo "${ECHO_T}$AR" >&6; }
6586 else
6587   { echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_AR"; then
6594   ac_ct_AR=$AR
6595   # Extract the first word of "ar", so it can be a program name with args.
6596 set dummy ar; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602   if test -n "$ac_ct_AR"; then
6603   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610   for ac_exec_ext in '' $ac_executable_extensions; do
6611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612     ac_cv_prog_ac_ct_AR="ar"
6613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6623 if test -n "$ac_ct_AR"; then
6624   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6625 echo "${ECHO_T}$ac_ct_AR" >&6; }
6626 else
6627   { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6629 fi
6630
6631   if test "x$ac_ct_AR" = x; then
6632     AR="false"
6633   else
6634     case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6637 whose name does not start with the host triplet.  If you think this
6638 configuration is useful to you, please write to autoconf@gnu.org." >&5
6639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6640 whose name does not start with the host triplet.  If you think this
6641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6642 ac_tool_warned=yes ;;
6643 esac
6644     AR=$ac_ct_AR
6645   fi
6646 else
6647   AR="$ac_cv_prog_AR"
6648 fi
6649
6650 if test -n "$ac_tool_prefix"; then
6651   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_prog_RANLIB+set}" = set; then
6656   echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658   if test -n "$RANLIB"; then
6659   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664   IFS=$as_save_IFS
6665   test -z "$as_dir" && as_dir=.
6666   for ac_exec_ext in '' $ac_executable_extensions; do
6667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6668     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670     break 2
6671   fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 RANLIB=$ac_cv_prog_RANLIB
6679 if test -n "$RANLIB"; then
6680   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6681 echo "${ECHO_T}$RANLIB" >&6; }
6682 else
6683   { echo "$as_me:$LINENO: result: no" >&5
6684 echo "${ECHO_T}no" >&6; }
6685 fi
6686
6687
6688 fi
6689 if test -z "$ac_cv_prog_RANLIB"; then
6690   ac_ct_RANLIB=$RANLIB
6691   # Extract the first word of "ranlib", so it can be a program name with args.
6692 set dummy ranlib; ac_word=$2
6693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698   if test -n "$ac_ct_RANLIB"; then
6699   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   test -z "$as_dir" && as_dir=.
6706   for ac_exec_ext in '' $ac_executable_extensions; do
6707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708     ac_cv_prog_ac_ct_RANLIB="ranlib"
6709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710     break 2
6711   fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6719 if test -n "$ac_ct_RANLIB"; then
6720   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6721 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6722 else
6723   { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6725 fi
6726
6727   if test "x$ac_ct_RANLIB" = x; then
6728     RANLIB=":"
6729   else
6730     case $cross_compiling:$ac_tool_warned in
6731 yes:)
6732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6733 whose name does not start with the host triplet.  If you think this
6734 configuration is useful to you, please write to autoconf@gnu.org." >&5
6735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6736 whose name does not start with the host triplet.  If you think this
6737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6738 ac_tool_warned=yes ;;
6739 esac
6740     RANLIB=$ac_ct_RANLIB
6741   fi
6742 else
6743   RANLIB="$ac_cv_prog_RANLIB"
6744 fi
6745
6746 if test -n "$ac_tool_prefix"; then
6747   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}strip; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_prog_STRIP+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   if test -n "$STRIP"; then
6755   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762   for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 STRIP=$ac_cv_prog_STRIP
6775 if test -n "$STRIP"; then
6776   { echo "$as_me:$LINENO: result: $STRIP" >&5
6777 echo "${ECHO_T}$STRIP" >&6; }
6778 else
6779   { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6781 fi
6782
6783
6784 fi
6785 if test -z "$ac_cv_prog_STRIP"; then
6786   ac_ct_STRIP=$STRIP
6787   # Extract the first word of "strip", so it can be a program name with args.
6788 set dummy strip; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   if test -n "$ac_ct_STRIP"; then
6795   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802   for ac_exec_ext in '' $ac_executable_extensions; do
6803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804     ac_cv_prog_ac_ct_STRIP="strip"
6805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6815 if test -n "$ac_ct_STRIP"; then
6816   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6817 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6818 else
6819   { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6821 fi
6822
6823   if test "x$ac_ct_STRIP" = x; then
6824     STRIP=":"
6825   else
6826     case $cross_compiling:$ac_tool_warned in
6827 yes:)
6828 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6829 whose name does not start with the host triplet.  If you think this
6830 configuration is useful to you, please write to autoconf@gnu.org." >&5
6831 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6832 whose name does not start with the host triplet.  If you think this
6833 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6834 ac_tool_warned=yes ;;
6835 esac
6836     STRIP=$ac_ct_STRIP
6837   fi
6838 else
6839   STRIP="$ac_cv_prog_STRIP"
6840 fi
6841
6842
6843 old_CC="$CC"
6844 old_CFLAGS="$CFLAGS"
6845
6846 # Set sane defaults for various variables
6847 test -z "$AR" && AR=ar
6848 test -z "$AR_FLAGS" && AR_FLAGS=cru
6849 test -z "$AS" && AS=as
6850 test -z "$CC" && CC=cc
6851 test -z "$LTCC" && LTCC=$CC
6852 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6853 test -z "$DLLTOOL" && DLLTOOL=dlltool
6854 test -z "$LD" && LD=ld
6855 test -z "$LN_S" && LN_S="ln -s"
6856 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6857 test -z "$NM" && NM=nm
6858 test -z "$SED" && SED=sed
6859 test -z "$OBJDUMP" && OBJDUMP=objdump
6860 test -z "$RANLIB" && RANLIB=:
6861 test -z "$STRIP" && STRIP=:
6862 test -z "$ac_objext" && ac_objext=o
6863
6864 # Determine commands to create old-style static archives.
6865 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6866 old_postinstall_cmds='chmod 644 $oldlib'
6867 old_postuninstall_cmds=
6868
6869 if test -n "$RANLIB"; then
6870   case $host_os in
6871   openbsd*)
6872     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6873     ;;
6874   *)
6875     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6876     ;;
6877   esac
6878   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6879 fi
6880
6881 for cc_temp in $compiler""; do
6882   case $cc_temp in
6883     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6884     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6885     \-*) ;;
6886     *) break;;
6887   esac
6888 done
6889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6890
6891
6892 # Only perform the check for file, if the check method requires it
6893 case $deplibs_check_method in
6894 file_magic*)
6895   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6896     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6897 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6898 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901   case $MAGIC_CMD in
6902 [\\/*] |  ?:[\\/]*)
6903   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6904   ;;
6905 *)
6906   lt_save_MAGIC_CMD="$MAGIC_CMD"
6907   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6908   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6909   for ac_dir in $ac_dummy; do
6910     IFS="$lt_save_ifs"
6911     test -z "$ac_dir" && ac_dir=.
6912     if test -f $ac_dir/${ac_tool_prefix}file; then
6913       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6914       if test -n "$file_magic_test_file"; then
6915         case $deplibs_check_method in
6916         "file_magic "*)
6917           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6918           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6919           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6920             $EGREP "$file_magic_regex" > /dev/null; then
6921             :
6922           else
6923             cat <<EOF 1>&2
6924
6925 *** Warning: the command libtool uses to detect shared libraries,
6926 *** $file_magic_cmd, produces output that libtool cannot recognize.
6927 *** The result is that libtool may fail to recognize shared libraries
6928 *** as such.  This will affect the creation of libtool libraries that
6929 *** depend on shared libraries, but programs linked with such libtool
6930 *** libraries will work regardless of this problem.  Nevertheless, you
6931 *** may want to report the problem to your system manager and/or to
6932 *** bug-libtool@gnu.org
6933
6934 EOF
6935           fi ;;
6936         esac
6937       fi
6938       break
6939     fi
6940   done
6941   IFS="$lt_save_ifs"
6942   MAGIC_CMD="$lt_save_MAGIC_CMD"
6943   ;;
6944 esac
6945 fi
6946
6947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6948 if test -n "$MAGIC_CMD"; then
6949   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6950 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6951 else
6952   { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6954 fi
6955
6956 if test -z "$lt_cv_path_MAGIC_CMD"; then
6957   if test -n "$ac_tool_prefix"; then
6958     { echo "$as_me:$LINENO: checking for file" >&5
6959 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6960 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   case $MAGIC_CMD in
6964 [\\/*] |  ?:[\\/]*)
6965   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6966   ;;
6967 *)
6968   lt_save_MAGIC_CMD="$MAGIC_CMD"
6969   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971   for ac_dir in $ac_dummy; do
6972     IFS="$lt_save_ifs"
6973     test -z "$ac_dir" && ac_dir=.
6974     if test -f $ac_dir/file; then
6975       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6976       if test -n "$file_magic_test_file"; then
6977         case $deplibs_check_method in
6978         "file_magic "*)
6979           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6980           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982             $EGREP "$file_magic_regex" > /dev/null; then
6983             :
6984           else
6985             cat <<EOF 1>&2
6986
6987 *** Warning: the command libtool uses to detect shared libraries,
6988 *** $file_magic_cmd, produces output that libtool cannot recognize.
6989 *** The result is that libtool may fail to recognize shared libraries
6990 *** as such.  This will affect the creation of libtool libraries that
6991 *** depend on shared libraries, but programs linked with such libtool
6992 *** libraries will work regardless of this problem.  Nevertheless, you
6993 *** may want to report the problem to your system manager and/or to
6994 *** bug-libtool@gnu.org
6995
6996 EOF
6997           fi ;;
6998         esac
6999       fi
7000       break
7001     fi
7002   done
7003   IFS="$lt_save_ifs"
7004   MAGIC_CMD="$lt_save_MAGIC_CMD"
7005   ;;
7006 esac
7007 fi
7008
7009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010 if test -n "$MAGIC_CMD"; then
7011   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7012 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7013 else
7014   { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7017
7018   else
7019     MAGIC_CMD=:
7020   fi
7021 fi
7022
7023   fi
7024   ;;
7025 esac
7026
7027
7028   case $host_os in
7029     rhapsody* | darwin*)
7030     if test -n "$ac_tool_prefix"; then
7031   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7032 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   if test -n "$DSYMUTIL"; then
7039   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046   for ac_exec_ext in '' $ac_executable_extensions; do
7047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056 fi
7057 fi
7058 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7059 if test -n "$DSYMUTIL"; then
7060   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7061 echo "${ECHO_T}$DSYMUTIL" >&6; }
7062 else
7063   { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7065 fi
7066
7067
7068 fi
7069 if test -z "$ac_cv_prog_DSYMUTIL"; then
7070   ac_ct_DSYMUTIL=$DSYMUTIL
7071   # Extract the first word of "dsymutil", so it can be a program name with args.
7072 set dummy dsymutil; ac_word=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7076   echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078   if test -n "$ac_ct_DSYMUTIL"; then
7079   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086   for ac_exec_ext in '' $ac_executable_extensions; do
7087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096 fi
7097 fi
7098 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7099 if test -n "$ac_ct_DSYMUTIL"; then
7100   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7101 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7102 else
7103   { echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6; }
7105 fi
7106
7107   if test "x$ac_ct_DSYMUTIL" = x; then
7108     DSYMUTIL=":"
7109   else
7110     case $cross_compiling:$ac_tool_warned in
7111 yes:)
7112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7113 whose name does not start with the host triplet.  If you think this
7114 configuration is useful to you, please write to autoconf@gnu.org." >&5
7115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7116 whose name does not start with the host triplet.  If you think this
7117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7118 ac_tool_warned=yes ;;
7119 esac
7120     DSYMUTIL=$ac_ct_DSYMUTIL
7121   fi
7122 else
7123   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7124 fi
7125
7126     if test -n "$ac_tool_prefix"; then
7127   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7128 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7131 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7132   echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134   if test -n "$NMEDIT"; then
7135   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140   IFS=$as_save_IFS
7141   test -z "$as_dir" && as_dir=.
7142   for ac_exec_ext in '' $ac_executable_extensions; do
7143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146     break 2
7147   fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 NMEDIT=$ac_cv_prog_NMEDIT
7155 if test -n "$NMEDIT"; then
7156   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7157 echo "${ECHO_T}$NMEDIT" >&6; }
7158 else
7159   { echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6; }
7161 fi
7162
7163
7164 fi
7165 if test -z "$ac_cv_prog_NMEDIT"; then
7166   ac_ct_NMEDIT=$NMEDIT
7167   # Extract the first word of "nmedit", so it can be a program name with args.
7168 set dummy nmedit; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   if test -n "$ac_ct_NMEDIT"; then
7175   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182   for ac_exec_ext in '' $ac_executable_extensions; do
7183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186     break 2
7187   fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192 fi
7193 fi
7194 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7195 if test -n "$ac_ct_NMEDIT"; then
7196   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7197 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7198 else
7199   { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7201 fi
7202
7203   if test "x$ac_ct_NMEDIT" = x; then
7204     NMEDIT=":"
7205   else
7206     case $cross_compiling:$ac_tool_warned in
7207 yes:)
7208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet.  If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&5
7211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7212 whose name does not start with the host triplet.  If you think this
7213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7214 ac_tool_warned=yes ;;
7215 esac
7216     NMEDIT=$ac_ct_NMEDIT
7217   fi
7218 else
7219   NMEDIT="$ac_cv_prog_NMEDIT"
7220 fi
7221
7222
7223     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7224 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7225 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   lt_cv_apple_cc_single_mod=no
7229       if test -z "${LT_MULTI_MODULE}"; then
7230    # By default we will add the -single_module flag. You can override
7231    # by either setting the environment variable LT_MULTI_MODULE
7232    # non-empty at configure time, or by adding -multi_module to the
7233    # link flags.
7234    echo "int foo(void){return 1;}" > conftest.c
7235    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7236      -dynamiclib ${wl}-single_module conftest.c
7237    if test -f libconftest.dylib; then
7238      lt_cv_apple_cc_single_mod=yes
7239      rm -rf libconftest.dylib*
7240    fi
7241    rm conftest.c
7242       fi
7243 fi
7244 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7245 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7246     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7247 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7248 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   lt_cv_ld_exported_symbols_list=no
7252       save_LDFLAGS=$LDFLAGS
7253       echo "_main" > conftest.sym
7254       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7255       cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h.  */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h.  */
7261
7262 int
7263 main ()
7264 {
7265
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (ac_try="$ac_link"
7272 case "(($ac_try" in
7273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274   *) ac_try_echo=$ac_try;;
7275 esac
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277   (eval "$ac_link") 2>conftest.er1
7278   ac_status=$?
7279   grep -v '^ *+' conftest.er1 >conftest.err
7280   rm -f conftest.er1
7281   cat conftest.err >&5
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); } && {
7284          test -z "$ac_c_werror_flag" ||
7285          test ! -s conftest.err
7286        } && test -s conftest$ac_exeext &&
7287        $as_test_x conftest$ac_exeext; then
7288   lt_cv_ld_exported_symbols_list=yes
7289 else
7290   echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293         lt_cv_ld_exported_symbols_list=no
7294 fi
7295
7296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7297       conftest$ac_exeext conftest.$ac_ext
7298    LDFLAGS="$save_LDFLAGS"
7299
7300 fi
7301 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7302 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7303     case $host_os in
7304     rhapsody* | darwin1.[0123])
7305       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7306     darwin1.*)
7307      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7308     darwin*)
7309       # if running on 10.5 or later, the deployment target defaults
7310       # to the OS version, if on x86, and 10.4, the deployment
7311       # target defaults to 10.4. Don't you love it?
7312       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7313    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7314      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7315    10.[012]*)
7316      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7317    10.*)
7318      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7319       esac
7320     ;;
7321   esac
7322     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7323       _lt_dar_single_mod='$single_module'
7324     fi
7325     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7326       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7327     else
7328       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7329     fi
7330     if test "$DSYMUTIL" != ":"; then
7331       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7332     else
7333       _lt_dsymutil=
7334     fi
7335     ;;
7336   esac
7337
7338
7339 enable_dlopen=no
7340 enable_win32_dll=no
7341
7342 # Check whether --enable-libtool-lock was given.
7343 if test "${enable_libtool_lock+set}" = set; then
7344   enableval=$enable_libtool_lock;
7345 fi
7346
7347 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7348
7349
7350 # Check whether --with-pic was given.
7351 if test "${with_pic+set}" = set; then
7352   withval=$with_pic; pic_mode="$withval"
7353 else
7354   pic_mode=default
7355 fi
7356
7357 test -z "$pic_mode" && pic_mode=default
7358
7359 # Use C for the default configuration in the libtool script
7360 tagname=
7361 lt_save_CC="$CC"
7362 ac_ext=c
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367
7368
7369 # Source file extension for C test sources.
7370 ac_ext=c
7371
7372 # Object file extension for compiled C test sources.
7373 objext=o
7374 objext=$objext
7375
7376 # Code to be used in simple compile tests
7377 lt_simple_compile_test_code="int some_variable = 0;"
7378
7379 # Code to be used in simple link tests
7380 lt_simple_link_test_code='int main(){return(0);}'
7381
7382
7383 # If no C compiler was specified, use CC.
7384 LTCC=${LTCC-"$CC"}
7385
7386 # If no C compiler flags were specified, use CFLAGS.
7387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7388
7389 # Allow CC to be a program name with arguments.
7390 compiler=$CC
7391
7392
7393 # save warnings/boilerplate of simple test code
7394 ac_outfile=conftest.$ac_objext
7395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7397 _lt_compiler_boilerplate=`cat conftest.err`
7398 $rm conftest*
7399
7400 ac_outfile=conftest.$ac_objext
7401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7403 _lt_linker_boilerplate=`cat conftest.err`
7404 $rm -r conftest*
7405
7406
7407
7408 lt_prog_compiler_no_builtin_flag=
7409
7410 if test "$GCC" = yes; then
7411   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7412
7413
7414 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7415 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7416 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   lt_cv_prog_compiler_rtti_exceptions=no
7420   ac_outfile=conftest.$ac_objext
7421    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7422    lt_compiler_flag="-fno-rtti -fno-exceptions"
7423    # Insert the option either (1) after the last *FLAGS variable, or
7424    # (2) before a word containing "conftest.", or (3) at the end.
7425    # Note that $ac_compile itself does not contain backslashes and begins
7426    # with a dollar sign (not a hyphen), so the echo should work correctly.
7427    # The option is referenced via a variable to avoid confusing sed.
7428    lt_compile=`echo "$ac_compile" | $SED \
7429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7431    -e 's:$: $lt_compiler_flag:'`
7432    (eval echo "\"\$as_me:7432: $lt_compile\"" >&5)
7433    (eval "$lt_compile" 2>conftest.err)
7434    ac_status=$?
7435    cat conftest.err >&5
7436    echo "$as_me:7436: \$? = $ac_status" >&5
7437    if (exit $ac_status) && test -s "$ac_outfile"; then
7438      # The compiler can only warn and ignore the option if not recognized
7439      # So say no if there are warnings other than the usual output.
7440      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7441      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7442      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7443        lt_cv_prog_compiler_rtti_exceptions=yes
7444      fi
7445    fi
7446    $rm conftest*
7447
7448 fi
7449 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7450 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7451
7452 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7453     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7454 else
7455     :
7456 fi
7457
7458 fi
7459
7460 lt_prog_compiler_wl=
7461 lt_prog_compiler_pic=
7462 lt_prog_compiler_static=
7463
7464 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7465 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7466
7467   if test "$GCC" = yes; then
7468     lt_prog_compiler_wl='-Wl,'
7469     lt_prog_compiler_static='-static'
7470
7471     case $host_os in
7472       aix*)
7473       # All AIX code is PIC.
7474       if test "$host_cpu" = ia64; then
7475         # AIX 5 now supports IA64 processor
7476         lt_prog_compiler_static='-Bstatic'
7477       fi
7478       ;;
7479
7480     amigaos*)
7481       # FIXME: we need at least 68020 code to build shared libraries, but
7482       # adding the `-m68020' flag to GCC prevents building anything better,
7483       # like `-m68040'.
7484       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7485       ;;
7486
7487     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7488       # PIC is the default for these OSes.
7489       ;;
7490
7491     mingw* | cygwin* | pw32* | os2*)
7492       # This hack is so that the source file can tell whether it is being
7493       # built for inclusion in a dll (and should export symbols for example).
7494       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7495       # (--disable-auto-import) libraries
7496       lt_prog_compiler_pic='-DDLL_EXPORT'
7497       ;;
7498
7499     darwin* | rhapsody*)
7500       # PIC is the default on this platform
7501       # Common symbols not allowed in MH_DYLIB files
7502       lt_prog_compiler_pic='-fno-common'
7503       ;;
7504
7505     interix[3-9]*)
7506       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7507       # Instead, we relocate shared libraries at runtime.
7508       ;;
7509
7510     msdosdjgpp*)
7511       # Just because we use GCC doesn't mean we suddenly get shared libraries
7512       # on systems that don't support them.
7513       lt_prog_compiler_can_build_shared=no
7514       enable_shared=no
7515       ;;
7516
7517     sysv4*MP*)
7518       if test -d /usr/nec; then
7519         lt_prog_compiler_pic=-Kconform_pic
7520       fi
7521       ;;
7522
7523     hpux*)
7524       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7525       # not for PA HP-UX.
7526       case $host_cpu in
7527       hppa*64*|ia64*)
7528         # +Z the default
7529         ;;
7530       *)
7531         lt_prog_compiler_pic='-fPIC'
7532         ;;
7533       esac
7534       ;;
7535
7536     *)
7537       lt_prog_compiler_pic='-fPIC'
7538       ;;
7539     esac
7540   else
7541     # PORTME Check for flag to pass linker flags through the system compiler.
7542     case $host_os in
7543     aix*)
7544       lt_prog_compiler_wl='-Wl,'
7545       if test "$host_cpu" = ia64; then
7546         # AIX 5 now supports IA64 processor
7547         lt_prog_compiler_static='-Bstatic'
7548       else
7549         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7550       fi
7551       ;;
7552       darwin*)
7553         # PIC is the default on this platform
7554         # Common symbols not allowed in MH_DYLIB files
7555        case $cc_basename in
7556          xlc*)
7557          lt_prog_compiler_pic='-qnocommon'
7558          lt_prog_compiler_wl='-Wl,'
7559          ;;
7560        esac
7561        ;;
7562
7563     mingw* | cygwin* | pw32* | os2*)
7564       # This hack is so that the source file can tell whether it is being
7565       # built for inclusion in a dll (and should export symbols for example).
7566       lt_prog_compiler_pic='-DDLL_EXPORT'
7567       ;;
7568
7569     hpux9* | hpux10* | hpux11*)
7570       lt_prog_compiler_wl='-Wl,'
7571       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7572       # not for PA HP-UX.
7573       case $host_cpu in
7574       hppa*64*|ia64*)
7575         # +Z the default
7576         ;;
7577       *)
7578         lt_prog_compiler_pic='+Z'
7579         ;;
7580       esac
7581       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7582       lt_prog_compiler_static='${wl}-a ${wl}archive'
7583       ;;
7584
7585     irix5* | irix6* | nonstopux*)
7586       lt_prog_compiler_wl='-Wl,'
7587       # PIC (with -KPIC) is the default.
7588       lt_prog_compiler_static='-non_shared'
7589       ;;
7590
7591     newsos6)
7592       lt_prog_compiler_pic='-KPIC'
7593       lt_prog_compiler_static='-Bstatic'
7594       ;;
7595
7596     linux* | k*bsd*-gnu)
7597       case $cc_basename in
7598       icc* | ecc*)
7599         lt_prog_compiler_wl='-Wl,'
7600         lt_prog_compiler_pic='-KPIC'
7601         lt_prog_compiler_static='-static'
7602         ;;
7603       pgcc* | pgf77* | pgf90* | pgf95*)
7604         # Portland Group compilers (*not* the Pentium gcc compiler,
7605         # which looks to be a dead project)
7606         lt_prog_compiler_wl='-Wl,'
7607         lt_prog_compiler_pic='-fpic'
7608         lt_prog_compiler_static='-Bstatic'
7609         ;;
7610       ccc*)
7611         lt_prog_compiler_wl='-Wl,'
7612         # All Alpha code is PIC.
7613         lt_prog_compiler_static='-non_shared'
7614         ;;
7615       *)
7616         case `$CC -V 2>&1 | sed 5q` in
7617         *Sun\ C*)
7618           # Sun C 5.9
7619           lt_prog_compiler_pic='-KPIC'
7620           lt_prog_compiler_static='-Bstatic'
7621           lt_prog_compiler_wl='-Wl,'
7622           ;;
7623         *Sun\ F*)
7624           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7625           lt_prog_compiler_pic='-KPIC'
7626           lt_prog_compiler_static='-Bstatic'
7627           lt_prog_compiler_wl=''
7628           ;;
7629         esac
7630         ;;
7631       esac
7632       ;;
7633
7634     osf3* | osf4* | osf5*)
7635       lt_prog_compiler_wl='-Wl,'
7636       # All OSF/1 code is PIC.
7637       lt_prog_compiler_static='-non_shared'
7638       ;;
7639
7640     rdos*)
7641       lt_prog_compiler_static='-non_shared'
7642       ;;
7643
7644     solaris*)
7645       lt_prog_compiler_pic='-KPIC'
7646       lt_prog_compiler_static='-Bstatic'
7647       case $cc_basename in
7648       f77* | f90* | f95*)
7649         lt_prog_compiler_wl='-Qoption ld ';;
7650       *)
7651         lt_prog_compiler_wl='-Wl,';;
7652       esac
7653       ;;
7654
7655     sunos4*)
7656       lt_prog_compiler_wl='-Qoption ld '
7657       lt_prog_compiler_pic='-PIC'
7658       lt_prog_compiler_static='-Bstatic'
7659       ;;
7660
7661     sysv4 | sysv4.2uw2* | sysv4.3*)
7662       lt_prog_compiler_wl='-Wl,'
7663       lt_prog_compiler_pic='-KPIC'
7664       lt_prog_compiler_static='-Bstatic'
7665       ;;
7666
7667     sysv4*MP*)
7668       if test -d /usr/nec ;then
7669         lt_prog_compiler_pic='-Kconform_pic'
7670         lt_prog_compiler_static='-Bstatic'
7671       fi
7672       ;;
7673
7674     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7675       lt_prog_compiler_wl='-Wl,'
7676       lt_prog_compiler_pic='-KPIC'
7677       lt_prog_compiler_static='-Bstatic'
7678       ;;
7679
7680     unicos*)
7681       lt_prog_compiler_wl='-Wl,'
7682       lt_prog_compiler_can_build_shared=no
7683       ;;
7684
7685     uts4*)
7686       lt_prog_compiler_pic='-pic'
7687       lt_prog_compiler_static='-Bstatic'
7688       ;;
7689
7690     *)
7691       lt_prog_compiler_can_build_shared=no
7692       ;;
7693     esac
7694   fi
7695
7696 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7697 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7698
7699 #
7700 # Check to make sure the PIC flag actually works.
7701 #
7702 if test -n "$lt_prog_compiler_pic"; then
7703
7704 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7705 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7706 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   lt_cv_prog_compiler_pic_works=no
7710   ac_outfile=conftest.$ac_objext
7711    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7712    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7713    # Insert the option either (1) after the last *FLAGS variable, or
7714    # (2) before a word containing "conftest.", or (3) at the end.
7715    # Note that $ac_compile itself does not contain backslashes and begins
7716    # with a dollar sign (not a hyphen), so the echo should work correctly.
7717    # The option is referenced via a variable to avoid confusing sed.
7718    lt_compile=`echo "$ac_compile" | $SED \
7719    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7720    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7721    -e 's:$: $lt_compiler_flag:'`
7722    (eval echo "\"\$as_me:7722: $lt_compile\"" >&5)
7723    (eval "$lt_compile" 2>conftest.err)
7724    ac_status=$?
7725    cat conftest.err >&5
7726    echo "$as_me:7726: \$? = $ac_status" >&5
7727    if (exit $ac_status) && test -s "$ac_outfile"; then
7728      # The compiler can only warn and ignore the option if not recognized
7729      # So say no if there are warnings other than the usual output.
7730      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7731      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7732      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7733        lt_cv_prog_compiler_pic_works=yes
7734      fi
7735    fi
7736    $rm conftest*
7737
7738 fi
7739 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7740 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7741
7742 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7743     case $lt_prog_compiler_pic in
7744      "" | " "*) ;;
7745      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7746      esac
7747 else
7748     lt_prog_compiler_pic=
7749      lt_prog_compiler_can_build_shared=no
7750 fi
7751
7752 fi
7753 case $host_os in
7754   # For platforms which do not support PIC, -DPIC is meaningless:
7755   *djgpp*)
7756     lt_prog_compiler_pic=
7757     ;;
7758   *)
7759     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7760     ;;
7761 esac
7762
7763 #
7764 # Check to make sure the static flag actually works.
7765 #
7766 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7767 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7768 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7769 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   lt_cv_prog_compiler_static_works=no
7773    save_LDFLAGS="$LDFLAGS"
7774    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7775    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7776    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7777      # The linker can only warn and ignore the option if not recognized
7778      # So say no if there are warnings
7779      if test -s conftest.err; then
7780        # Append any errors to the config.log.
7781        cat conftest.err 1>&5
7782        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7783        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7784        if diff conftest.exp conftest.er2 >/dev/null; then
7785          lt_cv_prog_compiler_static_works=yes
7786        fi
7787      else
7788        lt_cv_prog_compiler_static_works=yes
7789      fi
7790    fi
7791    $rm -r conftest*
7792    LDFLAGS="$save_LDFLAGS"
7793
7794 fi
7795 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7796 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7797
7798 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7799     :
7800 else
7801     lt_prog_compiler_static=
7802 fi
7803
7804
7805 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7806 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7807 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   lt_cv_prog_compiler_c_o=no
7811    $rm -r conftest 2>/dev/null
7812    mkdir conftest
7813    cd conftest
7814    mkdir out
7815    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7816
7817    lt_compiler_flag="-o out/conftest2.$ac_objext"
7818    # Insert the option either (1) after the last *FLAGS variable, or
7819    # (2) before a word containing "conftest.", or (3) at the end.
7820    # Note that $ac_compile itself does not contain backslashes and begins
7821    # with a dollar sign (not a hyphen), so the echo should work correctly.
7822    lt_compile=`echo "$ac_compile" | $SED \
7823    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7824    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7825    -e 's:$: $lt_compiler_flag:'`
7826    (eval echo "\"\$as_me:7826: $lt_compile\"" >&5)
7827    (eval "$lt_compile" 2>out/conftest.err)
7828    ac_status=$?
7829    cat out/conftest.err >&5
7830    echo "$as_me:7830: \$? = $ac_status" >&5
7831    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7832    then
7833      # The compiler can only warn and ignore the option if not recognized
7834      # So say no if there are warnings
7835      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7836      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7837      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7838        lt_cv_prog_compiler_c_o=yes
7839      fi
7840    fi
7841    chmod u+w . 2>&5
7842    $rm conftest*
7843    # SGI C++ compiler will create directory out/ii_files/ for
7844    # template instantiation
7845    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7846    $rm out/* && rmdir out
7847    cd ..
7848    rmdir conftest
7849    $rm conftest*
7850
7851 fi
7852 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7853 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7854
7855
7856 hard_links="nottested"
7857 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7858   # do not overwrite the value of need_locks provided by the user
7859   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7860 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7861   hard_links=yes
7862   $rm conftest*
7863   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7864   touch conftest.a
7865   ln conftest.a conftest.b 2>&5 || hard_links=no
7866   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7867   { echo "$as_me:$LINENO: result: $hard_links" >&5
7868 echo "${ECHO_T}$hard_links" >&6; }
7869   if test "$hard_links" = no; then
7870     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7871 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7872     need_locks=warn
7873   fi
7874 else
7875   need_locks=no
7876 fi
7877
7878 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7879 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7880
7881   runpath_var=
7882   allow_undefined_flag=
7883   enable_shared_with_static_runtimes=no
7884   archive_cmds=
7885   archive_expsym_cmds=
7886   old_archive_From_new_cmds=
7887   old_archive_from_expsyms_cmds=
7888   export_dynamic_flag_spec=
7889   whole_archive_flag_spec=
7890   thread_safe_flag_spec=
7891   hardcode_libdir_flag_spec=
7892   hardcode_libdir_flag_spec_ld=
7893   hardcode_libdir_separator=
7894   hardcode_direct=no
7895   hardcode_minus_L=no
7896   hardcode_shlibpath_var=unsupported
7897   link_all_deplibs=unknown
7898   hardcode_automatic=no
7899   module_cmds=
7900   module_expsym_cmds=
7901   always_export_symbols=no
7902   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7903   # include_expsyms should be a list of space-separated symbols to be *always*
7904   # included in the symbol list
7905   include_expsyms=
7906   # exclude_expsyms can be an extended regexp of symbols to exclude
7907   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7908   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7909   # as well as any symbol that contains `d'.
7910   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7911   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7912   # platforms (ab)use it in PIC code, but their linkers get confused if
7913   # the symbol is explicitly referenced.  Since portable code cannot
7914   # rely on this symbol name, it's probably fine to never include it in
7915   # preloaded symbol tables.
7916   # Exclude shared library initialization/finalization symbols.
7917   extract_expsyms_cmds=
7918   # Just being paranoid about ensuring that cc_basename is set.
7919   for cc_temp in $compiler""; do
7920   case $cc_temp in
7921     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7922     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7923     \-*) ;;
7924     *) break;;
7925   esac
7926 done
7927 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7928
7929   case $host_os in
7930   cygwin* | mingw* | pw32*)
7931     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7932     # When not using gcc, we currently assume that we are using
7933     # Microsoft Visual C++.
7934     if test "$GCC" != yes; then
7935       with_gnu_ld=no
7936     fi
7937     ;;
7938   interix*)
7939     # we just hope/assume this is gcc and not c89 (= MSVC++)
7940     with_gnu_ld=yes
7941     ;;
7942   openbsd*)
7943     with_gnu_ld=no
7944     ;;
7945   esac
7946
7947   ld_shlibs=yes
7948   if test "$with_gnu_ld" = yes; then
7949     # If archive_cmds runs LD, not CC, wlarc should be empty
7950     wlarc='${wl}'
7951
7952     # Set some defaults for GNU ld with shared library support. These
7953     # are reset later if shared libraries are not supported. Putting them
7954     # here allows them to be overridden if necessary.
7955     runpath_var=LD_RUN_PATH
7956     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7957     export_dynamic_flag_spec='${wl}--export-dynamic'
7958     # ancient GNU ld didn't support --whole-archive et. al.
7959     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7960         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7961       else
7962         whole_archive_flag_spec=
7963     fi
7964     supports_anon_versioning=no
7965     case `$LD -v 2>/dev/null` in
7966       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7967       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7968       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7969       *\ 2.11.*) ;; # other 2.11 versions
7970       *) supports_anon_versioning=yes ;;
7971     esac
7972
7973     # See if GNU ld supports shared libraries.
7974     case $host_os in
7975     aix[3-9]*)
7976       # On AIX/PPC, the GNU linker is very broken
7977       if test "$host_cpu" != ia64; then
7978         ld_shlibs=no
7979         cat <<EOF 1>&2
7980
7981 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7982 *** to be unable to reliably create shared libraries on AIX.
7983 *** Therefore, libtool is disabling shared libraries support.  If you
7984 *** really care for shared libraries, you may want to modify your PATH
7985 *** so that a non-GNU linker is found, and then restart.
7986
7987 EOF
7988       fi
7989       ;;
7990
7991     amigaos*)
7992       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)'
7993       hardcode_libdir_flag_spec='-L$libdir'
7994       hardcode_minus_L=yes
7995
7996       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7997       # that the semantics of dynamic libraries on AmigaOS, at least up
7998       # to version 4, is to share data among multiple programs linked
7999       # with the same dynamic library.  Since this doesn't match the
8000       # behavior of shared libraries on other platforms, we can't use
8001       # them.
8002       ld_shlibs=no
8003       ;;
8004
8005     beos*)
8006       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8007         allow_undefined_flag=unsupported
8008         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8009         # support --undefined.  This deserves some investigation.  FIXME
8010         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011       else
8012         ld_shlibs=no
8013       fi
8014       ;;
8015
8016     cygwin* | mingw* | pw32*)
8017       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8018       # as there is no search path for DLLs.
8019       hardcode_libdir_flag_spec='-L$libdir'
8020       allow_undefined_flag=unsupported
8021       always_export_symbols=no
8022       enable_shared_with_static_runtimes=yes
8023       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8024
8025       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8026         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8027         # If the export-symbols file already is a .def file (1st line
8028         # is EXPORTS), use it as is; otherwise, prepend...
8029         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8030           cp $export_symbols $output_objdir/$soname.def;
8031         else
8032           echo EXPORTS > $output_objdir/$soname.def;
8033           cat $export_symbols >> $output_objdir/$soname.def;
8034         fi~
8035         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8036       else
8037         ld_shlibs=no
8038       fi
8039       ;;
8040
8041     interix[3-9]*)
8042       hardcode_direct=no
8043       hardcode_shlibpath_var=no
8044       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8045       export_dynamic_flag_spec='${wl}-E'
8046       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8047       # Instead, shared libraries are loaded at an image base (0x10000000 by
8048       # default) and relocated if they conflict, which is a slow very memory
8049       # consuming and fragmenting process.  To avoid this, we pick a random,
8050       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8051       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8052       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8053       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'
8054       ;;
8055
8056     gnu* | linux* | k*bsd*-gnu)
8057       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8058         tmp_addflag=
8059         case $cc_basename,$host_cpu in
8060         pgcc*)                          # Portland Group C compiler
8061           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'
8062           tmp_addflag=' $pic_flag'
8063           ;;
8064         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8065           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'
8066           tmp_addflag=' $pic_flag -Mnomain' ;;
8067         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8068           tmp_addflag=' -i_dynamic' ;;
8069         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8070           tmp_addflag=' -i_dynamic -nofor_main' ;;
8071         ifc* | ifort*)                  # Intel Fortran compiler
8072           tmp_addflag=' -nofor_main' ;;
8073         esac
8074         case `$CC -V 2>&1 | sed 5q` in
8075         *Sun\ C*)                       # Sun C 5.9
8076           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'
8077           tmp_sharedflag='-G' ;;
8078         *Sun\ F*)                       # Sun Fortran 8.3
8079           tmp_sharedflag='-G' ;;
8080         *)
8081           tmp_sharedflag='-shared' ;;
8082         esac
8083         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8084
8085         if test $supports_anon_versioning = yes; then
8086           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8087   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8088   $echo "local: *; };" >> $output_objdir/$libname.ver~
8089           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8090         fi
8091         link_all_deplibs=no
8092       else
8093         ld_shlibs=no
8094       fi
8095       ;;
8096
8097     netbsd* | netbsdelf*-gnu)
8098       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8099         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8100         wlarc=
8101       else
8102         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8104       fi
8105       ;;
8106
8107     solaris*)
8108       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8109         ld_shlibs=no
8110         cat <<EOF 1>&2
8111
8112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8113 *** create shared libraries on Solaris systems.  Therefore, libtool
8114 *** is disabling shared libraries support.  We urge you to upgrade GNU
8115 *** binutils to release 2.9.1 or newer.  Another option is to modify
8116 *** your PATH or compiler configuration so that the native linker is
8117 *** used, and then restart.
8118
8119 EOF
8120       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8121         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8122         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8123       else
8124         ld_shlibs=no
8125       fi
8126       ;;
8127
8128     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8129       case `$LD -v 2>&1` in
8130         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8131         ld_shlibs=no
8132         cat <<_LT_EOF 1>&2
8133
8134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8135 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8136 *** is disabling shared libraries support.  We urge you to upgrade GNU
8137 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8138 *** your PATH or compiler configuration so that the native linker is
8139 *** used, and then restart.
8140
8141 _LT_EOF
8142         ;;
8143         *)
8144           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8145             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8146             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8147             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8148           else
8149             ld_shlibs=no
8150           fi
8151         ;;
8152       esac
8153       ;;
8154
8155     sunos4*)
8156       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8157       wlarc=
8158       hardcode_direct=yes
8159       hardcode_shlibpath_var=no
8160       ;;
8161
8162     *)
8163       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8164         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8165         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8166       else
8167         ld_shlibs=no
8168       fi
8169       ;;
8170     esac
8171
8172     if test "$ld_shlibs" = no; then
8173       runpath_var=
8174       hardcode_libdir_flag_spec=
8175       export_dynamic_flag_spec=
8176       whole_archive_flag_spec=
8177     fi
8178   else
8179     # PORTME fill in a description of your system's linker (not GNU ld)
8180     case $host_os in
8181     aix3*)
8182       allow_undefined_flag=unsupported
8183       always_export_symbols=yes
8184       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'
8185       # Note: this linker hardcodes the directories in LIBPATH if there
8186       # are no directories specified by -L.
8187       hardcode_minus_L=yes
8188       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8189         # Neither direct hardcoding nor static linking is supported with a
8190         # broken collect2.
8191         hardcode_direct=unsupported
8192       fi
8193       ;;
8194
8195     aix[4-9]*)
8196       if test "$host_cpu" = ia64; then
8197         # On IA64, the linker does run time linking by default, so we don't
8198         # have to do anything special.
8199         aix_use_runtimelinking=no
8200         exp_sym_flag='-Bexport'
8201         no_entry_flag=""
8202       else
8203         # If we're using GNU nm, then we don't want the "-C" option.
8204         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8205         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8206           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'
8207         else
8208           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'
8209         fi
8210         aix_use_runtimelinking=no
8211
8212         # Test if we are trying to use run time linking or normal
8213         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8214         # need to do runtime linking.
8215         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8216           for ld_flag in $LDFLAGS; do
8217           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8218             aix_use_runtimelinking=yes
8219             break
8220           fi
8221           done
8222           ;;
8223         esac
8224
8225         exp_sym_flag='-bexport'
8226         no_entry_flag='-bnoentry'
8227       fi
8228
8229       # When large executables or shared objects are built, AIX ld can
8230       # have problems creating the table of contents.  If linking a library
8231       # or program results in "error TOC overflow" add -mminimal-toc to
8232       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8233       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8234
8235       archive_cmds=''
8236       hardcode_direct=yes
8237       hardcode_libdir_separator=':'
8238       link_all_deplibs=yes
8239
8240       if test "$GCC" = yes; then
8241         case $host_os in aix4.[012]|aix4.[012].*)
8242         # We only want to do this on AIX 4.2 and lower, the check
8243         # below for broken collect2 doesn't work under 4.3+
8244           collect2name=`${CC} -print-prog-name=collect2`
8245           if test -f "$collect2name" && \
8246            strings "$collect2name" | grep resolve_lib_name >/dev/null
8247           then
8248           # We have reworked collect2
8249           :
8250           else
8251           # We have old collect2
8252           hardcode_direct=unsupported
8253           # It fails to find uninstalled libraries when the uninstalled
8254           # path is not listed in the libpath.  Setting hardcode_minus_L
8255           # to unsupported forces relinking
8256           hardcode_minus_L=yes
8257           hardcode_libdir_flag_spec='-L$libdir'
8258           hardcode_libdir_separator=
8259           fi
8260           ;;
8261         esac
8262         shared_flag='-shared'
8263         if test "$aix_use_runtimelinking" = yes; then
8264           shared_flag="$shared_flag "'${wl}-G'
8265         fi
8266       else
8267         # not using gcc
8268         if test "$host_cpu" = ia64; then
8269         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8270         # chokes on -Wl,-G. The following line is correct:
8271           shared_flag='-G'
8272         else
8273           if test "$aix_use_runtimelinking" = yes; then
8274             shared_flag='${wl}-G'
8275           else
8276             shared_flag='${wl}-bM:SRE'
8277           fi
8278         fi
8279       fi
8280
8281       # It seems that -bexpall does not export symbols beginning with
8282       # underscore (_), so it is better to generate a list of symbols to export.
8283       always_export_symbols=yes
8284       if test "$aix_use_runtimelinking" = yes; then
8285         # Warning - without using the other runtime loading flags (-brtl),
8286         # -berok will link without error, but may produce a broken library.
8287         allow_undefined_flag='-berok'
8288        # Determine the default libpath from the value encoded in an empty executable.
8289        cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h.  */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h.  */
8295
8296 int
8297 main ()
8298 {
8299
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (ac_try="$ac_link"
8306 case "(($ac_try" in
8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308   *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311   (eval "$ac_link") 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } && {
8318          test -z "$ac_c_werror_flag" ||
8319          test ! -s conftest.err
8320        } && test -s conftest$ac_exeext &&
8321        $as_test_x conftest$ac_exeext; then
8322
8323 lt_aix_libpath_sed='
8324     /Import File Strings/,/^$/ {
8325         /^0/ {
8326             s/^0  *\(.*\)$/\1/
8327             p
8328         }
8329     }'
8330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8331 # Check for a 64-bit object if we didn't find anything.
8332 if test -z "$aix_libpath"; then
8333   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8334 fi
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339
8340 fi
8341
8342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8343       conftest$ac_exeext conftest.$ac_ext
8344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8345
8346        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8347         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"
8348        else
8349         if test "$host_cpu" = ia64; then
8350           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8351           allow_undefined_flag="-z nodefs"
8352           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"
8353         else
8354          # Determine the default libpath from the value encoded in an empty executable.
8355          cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361
8362 int
8363 main ()
8364 {
8365
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (ac_try="$ac_link"
8372 case "(($ac_try" in
8373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374   *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377   (eval "$ac_link") 2>conftest.er1
8378   ac_status=$?
8379   grep -v '^ *+' conftest.er1 >conftest.err
8380   rm -f conftest.er1
8381   cat conftest.err >&5
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); } && {
8384          test -z "$ac_c_werror_flag" ||
8385          test ! -s conftest.err
8386        } && test -s conftest$ac_exeext &&
8387        $as_test_x conftest$ac_exeext; then
8388
8389 lt_aix_libpath_sed='
8390     /Import File Strings/,/^$/ {
8391         /^0/ {
8392             s/^0  *\(.*\)$/\1/
8393             p
8394         }
8395     }'
8396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8397 # Check for a 64-bit object if we didn't find anything.
8398 if test -z "$aix_libpath"; then
8399   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8400 fi
8401 else
8402   echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8404
8405
8406 fi
8407
8408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8409       conftest$ac_exeext conftest.$ac_ext
8410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8411
8412          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8413           # Warning - without using the other run time loading flags,
8414           # -berok will link without error, but may produce a broken library.
8415           no_undefined_flag=' ${wl}-bernotok'
8416           allow_undefined_flag=' ${wl}-berok'
8417           # Exported symbols can be pulled into shared objects from archives
8418           whole_archive_flag_spec='$convenience'
8419           archive_cmds_need_lc=yes
8420           # This is similar to how AIX traditionally builds its shared libraries.
8421           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'
8422         fi
8423       fi
8424       ;;
8425
8426     amigaos*)
8427       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)'
8428       hardcode_libdir_flag_spec='-L$libdir'
8429       hardcode_minus_L=yes
8430       # see comment about different semantics on the GNU ld section
8431       ld_shlibs=no
8432       ;;
8433
8434     bsdi[45]*)
8435       export_dynamic_flag_spec=-rdynamic
8436       ;;
8437
8438     cygwin* | mingw* | pw32*)
8439       # When not using gcc, we currently assume that we are using
8440       # Microsoft Visual C++.
8441       # hardcode_libdir_flag_spec is actually meaningless, as there is
8442       # no search path for DLLs.
8443       hardcode_libdir_flag_spec=' '
8444       allow_undefined_flag=unsupported
8445       # Tell ltmain to make .lib files, not .a files.
8446       libext=lib
8447       # Tell ltmain to make .dll files, not .so files.
8448       shrext_cmds=".dll"
8449       # FIXME: Setting linknames here is a bad hack.
8450       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8451       # The linker will automatically build a .lib file if we build a DLL.
8452       old_archive_From_new_cmds='true'
8453       # FIXME: Should let the user specify the lib program.
8454       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8455       fix_srcfile_path='`cygpath -w "$srcfile"`'
8456       enable_shared_with_static_runtimes=yes
8457       ;;
8458
8459     darwin* | rhapsody*)
8460       case $host_os in
8461         rhapsody* | darwin1.[012])
8462          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8463          ;;
8464        *) # Darwin 1.3 on
8465          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8466            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8467          else
8468            case ${MACOSX_DEPLOYMENT_TARGET} in
8469              10.[012])
8470                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8471                ;;
8472              10.*)
8473                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8474                ;;
8475            esac
8476          fi
8477          ;;
8478       esac
8479       archive_cmds_need_lc=no
8480       hardcode_direct=no
8481       hardcode_automatic=yes
8482       hardcode_shlibpath_var=unsupported
8483       whole_archive_flag_spec=''
8484       link_all_deplibs=yes
8485     if test "$GCC" = yes ; then
8486         output_verbose_link_cmd='echo'
8487         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8488         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8489         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}"
8490         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}"
8491     else
8492       case $cc_basename in
8493         xlc*)
8494          output_verbose_link_cmd='echo'
8495          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8496          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8497           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8498          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}'
8499           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}'
8500           ;;
8501        *)
8502          ld_shlibs=no
8503           ;;
8504       esac
8505     fi
8506       ;;
8507
8508     dgux*)
8509       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8510       hardcode_libdir_flag_spec='-L$libdir'
8511       hardcode_shlibpath_var=no
8512       ;;
8513
8514     freebsd1*)
8515       ld_shlibs=no
8516       ;;
8517
8518     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8519     # support.  Future versions do this automatically, but an explicit c++rt0.o
8520     # does not break anything, and helps significantly (at the cost of a little
8521     # extra space).
8522     freebsd2.2*)
8523       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8524       hardcode_libdir_flag_spec='-R$libdir'
8525       hardcode_direct=yes
8526       hardcode_shlibpath_var=no
8527       ;;
8528
8529     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8530     freebsd2*)
8531       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8532       hardcode_direct=yes
8533       hardcode_minus_L=yes
8534       hardcode_shlibpath_var=no
8535       ;;
8536
8537     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8538     freebsd* | dragonfly*)
8539       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8540       hardcode_libdir_flag_spec='-R$libdir'
8541       hardcode_direct=yes
8542       hardcode_shlibpath_var=no
8543       ;;
8544
8545     hpux9*)
8546       if test "$GCC" = yes; then
8547         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'
8548       else
8549         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'
8550       fi
8551       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8552       hardcode_libdir_separator=:
8553       hardcode_direct=yes
8554
8555       # hardcode_minus_L: Not really in the search PATH,
8556       # but as the default location of the library.
8557       hardcode_minus_L=yes
8558       export_dynamic_flag_spec='${wl}-E'
8559       ;;
8560
8561     hpux10*)
8562       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8563         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8564       else
8565         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8566       fi
8567       if test "$with_gnu_ld" = no; then
8568         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8569         hardcode_libdir_separator=:
8570
8571         hardcode_direct=yes
8572         export_dynamic_flag_spec='${wl}-E'
8573
8574         # hardcode_minus_L: Not really in the search PATH,
8575         # but as the default location of the library.
8576         hardcode_minus_L=yes
8577       fi
8578       ;;
8579
8580     hpux11*)
8581       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8582         case $host_cpu in
8583         hppa*64*)
8584           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8585           ;;
8586         ia64*)
8587           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8588           ;;
8589         *)
8590           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8591           ;;
8592         esac
8593       else
8594         case $host_cpu in
8595         hppa*64*)
8596           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8597           ;;
8598         ia64*)
8599           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8600           ;;
8601         *)
8602           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8603           ;;
8604         esac
8605       fi
8606       if test "$with_gnu_ld" = no; then
8607         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8608         hardcode_libdir_separator=:
8609
8610         case $host_cpu in
8611         hppa*64*|ia64*)
8612           hardcode_libdir_flag_spec_ld='+b $libdir'
8613           hardcode_direct=no
8614           hardcode_shlibpath_var=no
8615           ;;
8616         *)
8617           hardcode_direct=yes
8618           export_dynamic_flag_spec='${wl}-E'
8619
8620           # hardcode_minus_L: Not really in the search PATH,
8621           # but as the default location of the library.
8622           hardcode_minus_L=yes
8623           ;;
8624         esac
8625       fi
8626       ;;
8627
8628     irix5* | irix6* | nonstopux*)
8629       if test "$GCC" = yes; then
8630         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'
8631       else
8632         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'
8633         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8634       fi
8635       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8636       hardcode_libdir_separator=:
8637       link_all_deplibs=yes
8638       ;;
8639
8640     netbsd* | netbsdelf*-gnu)
8641       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8642         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8643       else
8644         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8645       fi
8646       hardcode_libdir_flag_spec='-R$libdir'
8647       hardcode_direct=yes
8648       hardcode_shlibpath_var=no
8649       ;;
8650
8651     newsos6)
8652       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8653       hardcode_direct=yes
8654       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655       hardcode_libdir_separator=:
8656       hardcode_shlibpath_var=no
8657       ;;
8658
8659     openbsd*)
8660       if test -f /usr/libexec/ld.so; then
8661         hardcode_direct=yes
8662         hardcode_shlibpath_var=no
8663         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8664           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8665           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8666           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8667           export_dynamic_flag_spec='${wl}-E'
8668         else
8669           case $host_os in
8670            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8671              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8672              hardcode_libdir_flag_spec='-R$libdir'
8673              ;;
8674            *)
8675              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8676              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8677              ;;
8678           esac
8679         fi
8680       else
8681         ld_shlibs=no
8682       fi
8683       ;;
8684
8685     os2*)
8686       hardcode_libdir_flag_spec='-L$libdir'
8687       hardcode_minus_L=yes
8688       allow_undefined_flag=unsupported
8689       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'
8690       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8691       ;;
8692
8693     osf3*)
8694       if test "$GCC" = yes; then
8695         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8696         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'
8697       else
8698         allow_undefined_flag=' -expect_unresolved \*'
8699         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'
8700       fi
8701       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8702       hardcode_libdir_separator=:
8703       ;;
8704
8705     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8706       if test "$GCC" = yes; then
8707         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8708         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'
8709         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710       else
8711         allow_undefined_flag=' -expect_unresolved \*'
8712         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'
8713         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8714         $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'
8715
8716         # Both c and cxx compiler support -rpath directly
8717         hardcode_libdir_flag_spec='-rpath $libdir'
8718       fi
8719       hardcode_libdir_separator=:
8720       ;;
8721
8722     solaris*)
8723       no_undefined_flag=' -z text'
8724       if test "$GCC" = yes; then
8725         wlarc='${wl}'
8726         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8728           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8729       else
8730         wlarc=''
8731         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8732         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8733         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8734       fi
8735       hardcode_libdir_flag_spec='-R$libdir'
8736       hardcode_shlibpath_var=no
8737       case $host_os in
8738       solaris2.[0-5] | solaris2.[0-5].*) ;;
8739       *)
8740         # The compiler driver will combine and reorder linker options,
8741         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8742         # but is careful enough not to reorder.
8743         # Supported since Solaris 2.6 (maybe 2.5.1?)
8744         if test "$GCC" = yes; then
8745           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8746         else
8747           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8748         fi
8749         ;;
8750       esac
8751       link_all_deplibs=yes
8752       ;;
8753
8754     sunos4*)
8755       if test "x$host_vendor" = xsequent; then
8756         # Use $CC to link under sequent, because it throws in some extra .o
8757         # files that make .init and .fini sections work.
8758         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8759       else
8760         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8761       fi
8762       hardcode_libdir_flag_spec='-L$libdir'
8763       hardcode_direct=yes
8764       hardcode_minus_L=yes
8765       hardcode_shlibpath_var=no
8766       ;;
8767
8768     sysv4)
8769       case $host_vendor in
8770         sni)
8771           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8772           hardcode_direct=yes # is this really true???
8773         ;;
8774         siemens)
8775           ## LD is ld it makes a PLAMLIB
8776           ## CC just makes a GrossModule.
8777           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8778           reload_cmds='$CC -r -o $output$reload_objs'
8779           hardcode_direct=no
8780         ;;
8781         motorola)
8782           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8784         ;;
8785       esac
8786       runpath_var='LD_RUN_PATH'
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     sysv4.3*)
8791       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792       hardcode_shlibpath_var=no
8793       export_dynamic_flag_spec='-Bexport'
8794       ;;
8795
8796     sysv4*MP*)
8797       if test -d /usr/nec; then
8798         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799         hardcode_shlibpath_var=no
8800         runpath_var=LD_RUN_PATH
8801         hardcode_runpath_var=yes
8802         ld_shlibs=yes
8803       fi
8804       ;;
8805
8806     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8807       no_undefined_flag='${wl}-z,text'
8808       archive_cmds_need_lc=no
8809       hardcode_shlibpath_var=no
8810       runpath_var='LD_RUN_PATH'
8811
8812       if test "$GCC" = yes; then
8813         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815       else
8816         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8818       fi
8819       ;;
8820
8821     sysv5* | sco3.2v5* | sco5v6*)
8822       # Note: We can NOT use -z defs as we might desire, because we do not
8823       # link with -lc, and that would cause any symbols used from libc to
8824       # always be unresolved, which means just about no library would
8825       # ever link correctly.  If we're not using GNU ld we use -z text
8826       # though, which does catch some bad symbols but isn't as heavy-handed
8827       # as -z defs.
8828       no_undefined_flag='${wl}-z,text'
8829       allow_undefined_flag='${wl}-z,nodefs'
8830       archive_cmds_need_lc=no
8831       hardcode_shlibpath_var=no
8832       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8833       hardcode_libdir_separator=':'
8834       link_all_deplibs=yes
8835       export_dynamic_flag_spec='${wl}-Bexport'
8836       runpath_var='LD_RUN_PATH'
8837
8838       if test "$GCC" = yes; then
8839         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841       else
8842         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844       fi
8845       ;;
8846
8847     uts4*)
8848       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849       hardcode_libdir_flag_spec='-L$libdir'
8850       hardcode_shlibpath_var=no
8851       ;;
8852
8853     *)
8854       ld_shlibs=no
8855       ;;
8856     esac
8857   fi
8858
8859 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8860 echo "${ECHO_T}$ld_shlibs" >&6; }
8861 test "$ld_shlibs" = no && can_build_shared=no
8862
8863 #
8864 # Do we need to explicitly link libc?
8865 #
8866 case "x$archive_cmds_need_lc" in
8867 x|xyes)
8868   # Assume -lc should be added
8869   archive_cmds_need_lc=yes
8870
8871   if test "$enable_shared" = yes && test "$GCC" = yes; then
8872     case $archive_cmds in
8873     *'~'*)
8874       # FIXME: we may have to deal with multi-command sequences.
8875       ;;
8876     '$CC '*)
8877       # Test whether the compiler implicitly links with -lc since on some
8878       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8879       # to ld, don't add -lc before -lgcc.
8880       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8881 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8882       $rm conftest*
8883       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884
8885       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886   (eval $ac_compile) 2>&5
8887   ac_status=$?
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); } 2>conftest.err; then
8890         soname=conftest
8891         lib=conftest
8892         libobjs=conftest.$ac_objext
8893         deplibs=
8894         wl=$lt_prog_compiler_wl
8895         pic_flag=$lt_prog_compiler_pic
8896         compiler_flags=-v
8897         linker_flags=-v
8898         verstring=
8899         output_objdir=.
8900         libname=conftest
8901         lt_save_allow_undefined_flag=$allow_undefined_flag
8902         allow_undefined_flag=
8903         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8904   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }
8908         then
8909           archive_cmds_need_lc=no
8910         else
8911           archive_cmds_need_lc=yes
8912         fi
8913         allow_undefined_flag=$lt_save_allow_undefined_flag
8914       else
8915         cat conftest.err 1>&5
8916       fi
8917       $rm conftest*
8918       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8919 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8920       ;;
8921     esac
8922   fi
8923   ;;
8924 esac
8925
8926 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8927 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8928 library_names_spec=
8929 libname_spec='lib$name'
8930 soname_spec=
8931 shrext_cmds=".so"
8932 postinstall_cmds=
8933 postuninstall_cmds=
8934 finish_cmds=
8935 finish_eval=
8936 shlibpath_var=
8937 shlibpath_overrides_runpath=unknown
8938 version_type=none
8939 dynamic_linker="$host_os ld.so"
8940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8941
8942 if test "$GCC" = yes; then
8943   case $host_os in
8944     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8945     *) lt_awk_arg="/^libraries:/" ;;
8946   esac
8947   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8948   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8949     # if the path contains ";" then we assume it to be the separator
8950     # otherwise default to the standard path separator (i.e. ":") - it is
8951     # assumed that no part of a normal pathname contains ";" but that should
8952     # okay in the real world where ";" in dirpaths is itself problematic.
8953     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8954   else
8955     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8956   fi
8957   # Ok, now we have the path, separated by spaces, we can step through it
8958   # and add multilib dir if necessary.
8959   lt_tmp_lt_search_path_spec=
8960   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8961   for lt_sys_path in $lt_search_path_spec; do
8962     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8963       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8964     else
8965       test -d "$lt_sys_path" && \
8966         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8967     fi
8968   done
8969   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8970 BEGIN {RS=" "; FS="/|\n";} {
8971   lt_foo="";
8972   lt_count=0;
8973   for (lt_i = NF; lt_i > 0; lt_i--) {
8974     if ($lt_i != "" && $lt_i != ".") {
8975       if ($lt_i == "..") {
8976         lt_count++;
8977       } else {
8978         if (lt_count == 0) {
8979           lt_foo="/" $lt_i lt_foo;
8980         } else {
8981           lt_count--;
8982         }
8983       }
8984     }
8985   }
8986   if (lt_foo != "") { lt_freq[lt_foo]++; }
8987   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8988 }'`
8989   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8990 else
8991   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8992 fi
8993 need_lib_prefix=unknown
8994 hardcode_into_libs=no
8995
8996 # when you set need_version to no, make sure it does not cause -set_version
8997 # flags to be left without arguments
8998 need_version=unknown
8999
9000 case $host_os in
9001 aix3*)
9002   version_type=linux
9003   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9004   shlibpath_var=LIBPATH
9005
9006   # AIX 3 has no versioning support, so we append a major version to the name.
9007   soname_spec='${libname}${release}${shared_ext}$major'
9008   ;;
9009
9010 aix[4-9]*)
9011   version_type=linux
9012   need_lib_prefix=no
9013   need_version=no
9014   hardcode_into_libs=yes
9015   if test "$host_cpu" = ia64; then
9016     # AIX 5 supports IA64
9017     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9018     shlibpath_var=LD_LIBRARY_PATH
9019   else
9020     # With GCC up to 2.95.x, collect2 would create an import file
9021     # for dependence libraries.  The import file would start with
9022     # the line `#! .'.  This would cause the generated library to
9023     # depend on `.', always an invalid library.  This was fixed in
9024     # development snapshots of GCC prior to 3.0.
9025     case $host_os in
9026       aix4 | aix4.[01] | aix4.[01].*)
9027       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9028            echo ' yes '
9029            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9030         :
9031       else
9032         can_build_shared=no
9033       fi
9034       ;;
9035     esac
9036     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9037     # soname into executable. Probably we can add versioning support to
9038     # collect2, so additional links can be useful in future.
9039     if test "$aix_use_runtimelinking" = yes; then
9040       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9041       # instead of lib<name>.a to let people know that these are not
9042       # typical AIX shared libraries.
9043       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044     else
9045       # We preserve .a as extension for shared libraries through AIX4.2
9046       # and later when we are not doing run time linking.
9047       library_names_spec='${libname}${release}.a $libname.a'
9048       soname_spec='${libname}${release}${shared_ext}$major'
9049     fi
9050     shlibpath_var=LIBPATH
9051   fi
9052   ;;
9053
9054 amigaos*)
9055   library_names_spec='$libname.ixlibrary $libname.a'
9056   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9057   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'
9058   ;;
9059
9060 beos*)
9061   library_names_spec='${libname}${shared_ext}'
9062   dynamic_linker="$host_os ld.so"
9063   shlibpath_var=LIBRARY_PATH
9064   ;;
9065
9066 bsdi[45]*)
9067   version_type=linux
9068   need_version=no
9069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070   soname_spec='${libname}${release}${shared_ext}$major'
9071   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9072   shlibpath_var=LD_LIBRARY_PATH
9073   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9074   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9075   # the default ld.so.conf also contains /usr/contrib/lib and
9076   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9077   # libtool to hard-code these into programs
9078   ;;
9079
9080 cygwin* | mingw* | pw32*)
9081   version_type=windows
9082   shrext_cmds=".dll"
9083   need_version=no
9084   need_lib_prefix=no
9085
9086   case $GCC,$host_os in
9087   yes,cygwin* | yes,mingw* | yes,pw32*)
9088     library_names_spec='$libname.dll.a'
9089     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9090     postinstall_cmds='base_file=`basename \${file}`~
9091       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9092       dldir=$destdir/`dirname \$dlpath`~
9093       test -d \$dldir || mkdir -p \$dldir~
9094       $install_prog $dir/$dlname \$dldir/$dlname~
9095       chmod a+x \$dldir/$dlname'
9096     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9097       dlpath=$dir/\$dldll~
9098        $rm \$dlpath'
9099     shlibpath_overrides_runpath=yes
9100
9101     case $host_os in
9102     cygwin*)
9103       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9104       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9105       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9106       ;;
9107     mingw*)
9108       # MinGW DLLs use traditional 'lib' prefix
9109       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9110       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9111       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9112         # It is most probably a Windows format PATH printed by
9113         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9114         # path with ; separators, and with drive letters. We can handle the
9115         # drive letters (cygwin fileutils understands them), so leave them,
9116         # especially as we might pass files found there to a mingw objdump,
9117         # which wouldn't understand a cygwinified path. Ahh.
9118         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9119       else
9120         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9121       fi
9122       ;;
9123     pw32*)
9124       # pw32 DLLs use 'pw' prefix rather than 'lib'
9125       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9126       ;;
9127     esac
9128     ;;
9129
9130   *)
9131     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9132     ;;
9133   esac
9134   dynamic_linker='Win32 ld.exe'
9135   # FIXME: first we should search . and the directory the executable is in
9136   shlibpath_var=PATH
9137   ;;
9138
9139 darwin* | rhapsody*)
9140   dynamic_linker="$host_os dyld"
9141   version_type=darwin
9142   need_lib_prefix=no
9143   need_version=no
9144   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9145   soname_spec='${libname}${release}${major}$shared_ext'
9146   shlibpath_overrides_runpath=yes
9147   shlibpath_var=DYLD_LIBRARY_PATH
9148   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9149
9150   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9151   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9152   ;;
9153
9154 dgux*)
9155   version_type=linux
9156   need_lib_prefix=no
9157   need_version=no
9158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9159   soname_spec='${libname}${release}${shared_ext}$major'
9160   shlibpath_var=LD_LIBRARY_PATH
9161   ;;
9162
9163 freebsd1*)
9164   dynamic_linker=no
9165   ;;
9166
9167 freebsd* | dragonfly*)
9168   # DragonFly does not have aout.  When/if they implement a new
9169   # versioning mechanism, adjust this.
9170   if test -x /usr/bin/objformat; then
9171     objformat=`/usr/bin/objformat`
9172   else
9173     case $host_os in
9174     freebsd[123]*) objformat=aout ;;
9175     *) objformat=elf ;;
9176     esac
9177   fi
9178   version_type=freebsd-$objformat
9179   case $version_type in
9180     freebsd-elf*)
9181       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9182       need_version=no
9183       need_lib_prefix=no
9184       ;;
9185     freebsd-*)
9186       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9187       need_version=yes
9188       ;;
9189   esac
9190   shlibpath_var=LD_LIBRARY_PATH
9191   case $host_os in
9192   freebsd2*)
9193     shlibpath_overrides_runpath=yes
9194     ;;
9195   freebsd3.[01]* | freebsdelf3.[01]*)
9196     shlibpath_overrides_runpath=yes
9197     hardcode_into_libs=yes
9198     ;;
9199   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9200   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9201     shlibpath_overrides_runpath=no
9202     hardcode_into_libs=yes
9203     ;;
9204   *) # from 4.6 on, and DragonFly
9205     shlibpath_overrides_runpath=yes
9206     hardcode_into_libs=yes
9207     ;;
9208   esac
9209   ;;
9210
9211 gnu*)
9212   version_type=linux
9213   need_lib_prefix=no
9214   need_version=no
9215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9216   soname_spec='${libname}${release}${shared_ext}$major'
9217   shlibpath_var=LD_LIBRARY_PATH
9218   hardcode_into_libs=yes
9219   ;;
9220
9221 hpux9* | hpux10* | hpux11*)
9222   # Give a soname corresponding to the major version so that dld.sl refuses to
9223   # link against other versions.
9224   version_type=sunos
9225   need_lib_prefix=no
9226   need_version=no
9227   case $host_cpu in
9228   ia64*)
9229     shrext_cmds='.so'
9230     hardcode_into_libs=yes
9231     dynamic_linker="$host_os dld.so"
9232     shlibpath_var=LD_LIBRARY_PATH
9233     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235     soname_spec='${libname}${release}${shared_ext}$major'
9236     if test "X$HPUX_IA64_MODE" = X32; then
9237       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9238     else
9239       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9240     fi
9241     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9242     ;;
9243    hppa*64*)
9244      shrext_cmds='.sl'
9245      hardcode_into_libs=yes
9246      dynamic_linker="$host_os dld.sl"
9247      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9248      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250      soname_spec='${libname}${release}${shared_ext}$major'
9251      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9252      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9253      ;;
9254    *)
9255     shrext_cmds='.sl'
9256     dynamic_linker="$host_os dld.sl"
9257     shlibpath_var=SHLIB_PATH
9258     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260     soname_spec='${libname}${release}${shared_ext}$major'
9261     ;;
9262   esac
9263   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9264   postinstall_cmds='chmod 555 $lib'
9265   ;;
9266
9267 interix[3-9]*)
9268   version_type=linux
9269   need_lib_prefix=no
9270   need_version=no
9271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9272   soname_spec='${libname}${release}${shared_ext}$major'
9273   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9274   shlibpath_var=LD_LIBRARY_PATH
9275   shlibpath_overrides_runpath=no
9276   hardcode_into_libs=yes
9277   ;;
9278
9279 irix5* | irix6* | nonstopux*)
9280   case $host_os in
9281     nonstopux*) version_type=nonstopux ;;
9282     *)
9283         if test "$lt_cv_prog_gnu_ld" = yes; then
9284                 version_type=linux
9285         else
9286                 version_type=irix
9287         fi ;;
9288   esac
9289   need_lib_prefix=no
9290   need_version=no
9291   soname_spec='${libname}${release}${shared_ext}$major'
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9293   case $host_os in
9294   irix5* | nonstopux*)
9295     libsuff= shlibsuff=
9296     ;;
9297   *)
9298     case $LD in # libtool.m4 will add one of these switches to LD
9299     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9300       libsuff= shlibsuff= libmagic=32-bit;;
9301     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9302       libsuff=32 shlibsuff=N32 libmagic=N32;;
9303     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9304       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9305     *) libsuff= shlibsuff= libmagic=never-match;;
9306     esac
9307     ;;
9308   esac
9309   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9310   shlibpath_overrides_runpath=no
9311   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9312   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9313   hardcode_into_libs=yes
9314   ;;
9315
9316 # No shared lib support for Linux oldld, aout, or coff.
9317 linux*oldld* | linux*aout* | linux*coff*)
9318   dynamic_linker=no
9319   ;;
9320
9321 # This must be Linux ELF.
9322 linux* | k*bsd*-gnu)
9323   version_type=linux
9324   need_lib_prefix=no
9325   need_version=no
9326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327   soname_spec='${libname}${release}${shared_ext}$major'
9328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9329   shlibpath_var=LD_LIBRARY_PATH
9330   shlibpath_overrides_runpath=no
9331   # This implies no fast_install, which is unacceptable.
9332   # Some rework will be needed to allow for fast_install
9333   # before this can be enabled.
9334   hardcode_into_libs=yes
9335
9336   # Append ld.so.conf contents to the search path
9337   if test -f /etc/ld.so.conf; then
9338     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' ' '`
9339     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9340   fi
9341
9342   # We used to test for /lib/ld.so.1 and disable shared libraries on
9343   # powerpc, because MkLinux only supported shared libraries with the
9344   # GNU dynamic linker.  Since this was broken with cross compilers,
9345   # most powerpc-linux boxes support dynamic linking these days and
9346   # people can always --disable-shared, the test was removed, and we
9347   # assume the GNU/Linux dynamic linker is in use.
9348   dynamic_linker='GNU/Linux ld.so'
9349   ;;
9350
9351 netbsdelf*-gnu)
9352   version_type=linux
9353   need_lib_prefix=no
9354   need_version=no
9355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9356   soname_spec='${libname}${release}${shared_ext}$major'
9357   shlibpath_var=LD_LIBRARY_PATH
9358   shlibpath_overrides_runpath=no
9359   hardcode_into_libs=yes
9360   dynamic_linker='NetBSD ld.elf_so'
9361   ;;
9362
9363 netbsd*)
9364   version_type=sunos
9365   need_lib_prefix=no
9366   need_version=no
9367   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9369     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9370     dynamic_linker='NetBSD (a.out) ld.so'
9371   else
9372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9373     soname_spec='${libname}${release}${shared_ext}$major'
9374     dynamic_linker='NetBSD ld.elf_so'
9375   fi
9376   shlibpath_var=LD_LIBRARY_PATH
9377   shlibpath_overrides_runpath=yes
9378   hardcode_into_libs=yes
9379   ;;
9380
9381 newsos6)
9382   version_type=linux
9383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384   shlibpath_var=LD_LIBRARY_PATH
9385   shlibpath_overrides_runpath=yes
9386   ;;
9387
9388 nto-qnx*)
9389   version_type=linux
9390   need_lib_prefix=no
9391   need_version=no
9392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393   soname_spec='${libname}${release}${shared_ext}$major'
9394   shlibpath_var=LD_LIBRARY_PATH
9395   shlibpath_overrides_runpath=yes
9396   ;;
9397
9398 openbsd*)
9399   version_type=sunos
9400   sys_lib_dlsearch_path_spec="/usr/lib"
9401   need_lib_prefix=no
9402   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9403   case $host_os in
9404     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9405     *)                         need_version=no  ;;
9406   esac
9407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9408   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9409   shlibpath_var=LD_LIBRARY_PATH
9410   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9411     case $host_os in
9412       openbsd2.[89] | openbsd2.[89].*)
9413         shlibpath_overrides_runpath=no
9414         ;;
9415       *)
9416         shlibpath_overrides_runpath=yes
9417         ;;
9418       esac
9419   else
9420     shlibpath_overrides_runpath=yes
9421   fi
9422   ;;
9423
9424 os2*)
9425   libname_spec='$name'
9426   shrext_cmds=".dll"
9427   need_lib_prefix=no
9428   library_names_spec='$libname${shared_ext} $libname.a'
9429   dynamic_linker='OS/2 ld.exe'
9430   shlibpath_var=LIBPATH
9431   ;;
9432
9433 osf3* | osf4* | osf5*)
9434   version_type=osf
9435   need_lib_prefix=no
9436   need_version=no
9437   soname_spec='${libname}${release}${shared_ext}$major'
9438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439   shlibpath_var=LD_LIBRARY_PATH
9440   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9441   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9442   ;;
9443
9444 rdos*)
9445   dynamic_linker=no
9446   ;;
9447
9448 solaris*)
9449   version_type=linux
9450   need_lib_prefix=no
9451   need_version=no
9452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453   soname_spec='${libname}${release}${shared_ext}$major'
9454   shlibpath_var=LD_LIBRARY_PATH
9455   shlibpath_overrides_runpath=yes
9456   hardcode_into_libs=yes
9457   # ldd complains unless libraries are executable
9458   postinstall_cmds='chmod +x $lib'
9459   ;;
9460
9461 sunos4*)
9462   version_type=sunos
9463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9464   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9465   shlibpath_var=LD_LIBRARY_PATH
9466   shlibpath_overrides_runpath=yes
9467   if test "$with_gnu_ld" = yes; then
9468     need_lib_prefix=no
9469   fi
9470   need_version=yes
9471   ;;
9472
9473 sysv4 | sysv4.3*)
9474   version_type=linux
9475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9476   soname_spec='${libname}${release}${shared_ext}$major'
9477   shlibpath_var=LD_LIBRARY_PATH
9478   case $host_vendor in
9479     sni)
9480       shlibpath_overrides_runpath=no
9481       need_lib_prefix=no
9482       export_dynamic_flag_spec='${wl}-Blargedynsym'
9483       runpath_var=LD_RUN_PATH
9484       ;;
9485     siemens)
9486       need_lib_prefix=no
9487       ;;
9488     motorola)
9489       need_lib_prefix=no
9490       need_version=no
9491       shlibpath_overrides_runpath=no
9492       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9493       ;;
9494   esac
9495   ;;
9496
9497 sysv4*MP*)
9498   if test -d /usr/nec ;then
9499     version_type=linux
9500     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9501     soname_spec='$libname${shared_ext}.$major'
9502     shlibpath_var=LD_LIBRARY_PATH
9503   fi
9504   ;;
9505
9506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9507   version_type=freebsd-elf
9508   need_lib_prefix=no
9509   need_version=no
9510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9511   soname_spec='${libname}${release}${shared_ext}$major'
9512   shlibpath_var=LD_LIBRARY_PATH
9513   hardcode_into_libs=yes
9514   if test "$with_gnu_ld" = yes; then
9515     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9516     shlibpath_overrides_runpath=no
9517   else
9518     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9519     shlibpath_overrides_runpath=yes
9520     case $host_os in
9521       sco3.2v5*)
9522         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9523         ;;
9524     esac
9525   fi
9526   sys_lib_dlsearch_path_spec='/usr/lib'
9527   ;;
9528
9529 uts4*)
9530   version_type=linux
9531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532   soname_spec='${libname}${release}${shared_ext}$major'
9533   shlibpath_var=LD_LIBRARY_PATH
9534   ;;
9535
9536 *)
9537   dynamic_linker=no
9538   ;;
9539 esac
9540 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9541 echo "${ECHO_T}$dynamic_linker" >&6; }
9542 test "$dynamic_linker" = no && can_build_shared=no
9543
9544 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9548 fi
9549
9550 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9551 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9555 fi
9556
9557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9558
9559 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9560 if test "$GCC" = yes; then
9561   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9562 fi
9563
9564 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9565 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9566 hardcode_action=
9567 if test -n "$hardcode_libdir_flag_spec" || \
9568    test -n "$runpath_var" || \
9569    test "X$hardcode_automatic" = "Xyes" ; then
9570
9571   # We can hardcode non-existant directories.
9572   if test "$hardcode_direct" != no &&
9573      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9574      # have to relink, otherwise we might link with an installed library
9575      # when we should be linking with a yet-to-be-installed one
9576      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9577      test "$hardcode_minus_L" != no; then
9578     # Linking always hardcodes the temporary library directory.
9579     hardcode_action=relink
9580   else
9581     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9582     hardcode_action=immediate
9583   fi
9584 else
9585   # We cannot hardcode anything, or else we can only hardcode existing
9586   # directories.
9587   hardcode_action=unsupported
9588 fi
9589 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9590 echo "${ECHO_T}$hardcode_action" >&6; }
9591
9592 if test "$hardcode_action" = relink; then
9593   # Fast installation is not supported
9594   enable_fast_install=no
9595 elif test "$shlibpath_overrides_runpath" = yes ||
9596      test "$enable_shared" = no; then
9597   # Fast installation is not necessary
9598   enable_fast_install=needless
9599 fi
9600
9601 striplib=
9602 old_striplib=
9603 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9604 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9605 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9606   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9607   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9608   { echo "$as_me:$LINENO: result: yes" >&5
9609 echo "${ECHO_T}yes" >&6; }
9610 else
9611 # FIXME - insert some real tests, host_os isn't really good enough
9612   case $host_os in
9613    darwin*)
9614        if test -n "$STRIP" ; then
9615          striplib="$STRIP -x"
9616          old_striplib="$STRIP -S"
9617          { echo "$as_me:$LINENO: result: yes" >&5
9618 echo "${ECHO_T}yes" >&6; }
9619        else
9620   { echo "$as_me:$LINENO: result: no" >&5
9621 echo "${ECHO_T}no" >&6; }
9622 fi
9623        ;;
9624    *)
9625   { echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6; }
9627     ;;
9628   esac
9629 fi
9630
9631 if test "x$enable_dlopen" != xyes; then
9632   enable_dlopen=unknown
9633   enable_dlopen_self=unknown
9634   enable_dlopen_self_static=unknown
9635 else
9636   lt_cv_dlopen=no
9637   lt_cv_dlopen_libs=
9638
9639   case $host_os in
9640   beos*)
9641     lt_cv_dlopen="load_add_on"
9642     lt_cv_dlopen_libs=
9643     lt_cv_dlopen_self=yes
9644     ;;
9645
9646   mingw* | pw32*)
9647     lt_cv_dlopen="LoadLibrary"
9648     lt_cv_dlopen_libs=
9649    ;;
9650
9651   cygwin*)
9652     lt_cv_dlopen="dlopen"
9653     lt_cv_dlopen_libs=
9654    ;;
9655
9656   darwin*)
9657   # if libdl is installed we need to link against it
9658     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9659 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663   ac_check_lib_save_LIBS=$LIBS
9664 LIBS="-ldl  $LIBS"
9665 cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h.  */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h.  */
9671
9672 /* Override any GCC internal prototype to avoid an error.
9673    Use char because int might match the return type of a GCC
9674    builtin and then its argument prototype would still apply.  */
9675 #ifdef __cplusplus
9676 extern "C"
9677 #endif
9678 char dlopen ();
9679 int
9680 main ()
9681 {
9682 return dlopen ();
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9689 case "(($ac_try" in
9690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691   *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694   (eval "$ac_link") 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } && {
9701          test -z "$ac_c_werror_flag" ||
9702          test ! -s conftest.err
9703        } && test -s conftest$ac_exeext &&
9704        $as_test_x conftest$ac_exeext; then
9705   ac_cv_lib_dl_dlopen=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710         ac_cv_lib_dl_dlopen=no
9711 fi
9712
9713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714       conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9716 fi
9717 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9718 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9719 if test $ac_cv_lib_dl_dlopen = yes; then
9720   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9721 else
9722
9723     lt_cv_dlopen="dyld"
9724     lt_cv_dlopen_libs=
9725     lt_cv_dlopen_self=yes
9726
9727 fi
9728
9729    ;;
9730
9731   *)
9732     { echo "$as_me:$LINENO: checking for shl_load" >&5
9733 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9734 if test "${ac_cv_func_shl_load+set}" = set; then
9735   echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737   cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9745 #define shl_load innocuous_shl_load
9746
9747 /* System header to define __stub macros and hopefully few prototypes,
9748     which can conflict with char shl_load (); below.
9749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9750     <limits.h> exists even on freestanding compilers.  */
9751
9752 #ifdef __STDC__
9753 # include <limits.h>
9754 #else
9755 # include <assert.h>
9756 #endif
9757
9758 #undef shl_load
9759
9760 /* Override any GCC internal prototype to avoid an error.
9761    Use char because int might match the return type of a GCC
9762    builtin and then its argument prototype would still apply.  */
9763 #ifdef __cplusplus
9764 extern "C"
9765 #endif
9766 char shl_load ();
9767 /* The GNU C library defines this for functions which it implements
9768     to always fail with ENOSYS.  Some functions are actually named
9769     something starting with __ and the normal name is an alias.  */
9770 #if defined __stub_shl_load || defined __stub___shl_load
9771 choke me
9772 #endif
9773
9774 int
9775 main ()
9776 {
9777 return shl_load ();
9778   ;
9779   return 0;
9780 }
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9784 case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_link") 2>conftest.er1
9790   ac_status=$?
9791   grep -v '^ *+' conftest.er1 >conftest.err
9792   rm -f conftest.er1
9793   cat conftest.err >&5
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); } && {
9796          test -z "$ac_c_werror_flag" ||
9797          test ! -s conftest.err
9798        } && test -s conftest$ac_exeext &&
9799        $as_test_x conftest$ac_exeext; then
9800   ac_cv_func_shl_load=yes
9801 else
9802   echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9804
9805         ac_cv_func_shl_load=no
9806 fi
9807
9808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9809       conftest$ac_exeext conftest.$ac_ext
9810 fi
9811 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9812 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9813 if test $ac_cv_func_shl_load = yes; then
9814   lt_cv_dlopen="shl_load"
9815 else
9816   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9817 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9818 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   ac_check_lib_save_LIBS=$LIBS
9822 LIBS="-ldld  $LIBS"
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h.  */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h.  */
9829
9830 /* Override any GCC internal prototype to avoid an error.
9831    Use char because int might match the return type of a GCC
9832    builtin and then its argument prototype would still apply.  */
9833 #ifdef __cplusplus
9834 extern "C"
9835 #endif
9836 char shl_load ();
9837 int
9838 main ()
9839 {
9840 return shl_load ();
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (ac_try="$ac_link"
9847 case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852   (eval "$ac_link") 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } && {
9859          test -z "$ac_c_werror_flag" ||
9860          test ! -s conftest.err
9861        } && test -s conftest$ac_exeext &&
9862        $as_test_x conftest$ac_exeext; then
9863   ac_cv_lib_dld_shl_load=yes
9864 else
9865   echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868         ac_cv_lib_dld_shl_load=no
9869 fi
9870
9871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9872       conftest$ac_exeext conftest.$ac_ext
9873 LIBS=$ac_check_lib_save_LIBS
9874 fi
9875 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9876 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9877 if test $ac_cv_lib_dld_shl_load = yes; then
9878   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9879 else
9880   { echo "$as_me:$LINENO: checking for dlopen" >&5
9881 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9882 if test "${ac_cv_func_dlopen+set}" = set; then
9883   echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885   cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h.  */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h.  */
9891 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9893 #define dlopen innocuous_dlopen
9894
9895 /* System header to define __stub macros and hopefully few prototypes,
9896     which can conflict with char dlopen (); below.
9897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898     <limits.h> exists even on freestanding compilers.  */
9899
9900 #ifdef __STDC__
9901 # include <limits.h>
9902 #else
9903 # include <assert.h>
9904 #endif
9905
9906 #undef dlopen
9907
9908 /* Override any GCC internal prototype to avoid an error.
9909    Use char because int might match the return type of a GCC
9910    builtin and then its argument prototype would still apply.  */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 char dlopen ();
9915 /* The GNU C library defines this for functions which it implements
9916     to always fail with ENOSYS.  Some functions are actually named
9917     something starting with __ and the normal name is an alias.  */
9918 #if defined __stub_dlopen || defined __stub___dlopen
9919 choke me
9920 #endif
9921
9922 int
9923 main ()
9924 {
9925 return dlopen ();
9926   ;
9927   return 0;
9928 }
9929 _ACEOF
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (ac_try="$ac_link"
9932 case "(($ac_try" in
9933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934   *) ac_try_echo=$ac_try;;
9935 esac
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937   (eval "$ac_link") 2>conftest.er1
9938   ac_status=$?
9939   grep -v '^ *+' conftest.er1 >conftest.err
9940   rm -f conftest.er1
9941   cat conftest.err >&5
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); } && {
9944          test -z "$ac_c_werror_flag" ||
9945          test ! -s conftest.err
9946        } && test -s conftest$ac_exeext &&
9947        $as_test_x conftest$ac_exeext; then
9948   ac_cv_func_dlopen=yes
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953         ac_cv_func_dlopen=no
9954 fi
9955
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957       conftest$ac_exeext conftest.$ac_ext
9958 fi
9959 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9960 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9961 if test $ac_cv_func_dlopen = yes; then
9962   lt_cv_dlopen="dlopen"
9963 else
9964   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   ac_check_lib_save_LIBS=$LIBS
9970 LIBS="-ldl  $LIBS"
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h.  */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h.  */
9977
9978 /* Override any GCC internal prototype to avoid an error.
9979    Use char because int might match the return type of a GCC
9980    builtin and then its argument prototype would still apply.  */
9981 #ifdef __cplusplus
9982 extern "C"
9983 #endif
9984 char dlopen ();
9985 int
9986 main ()
9987 {
9988 return dlopen ();
9989   ;
9990   return 0;
9991 }
9992 _ACEOF
9993 rm -f conftest.$ac_objext conftest$ac_exeext
9994 if { (ac_try="$ac_link"
9995 case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000   (eval "$ac_link") 2>conftest.er1
10001   ac_status=$?
10002   grep -v '^ *+' conftest.er1 >conftest.err
10003   rm -f conftest.er1
10004   cat conftest.err >&5
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } && {
10007          test -z "$ac_c_werror_flag" ||
10008          test ! -s conftest.err
10009        } && test -s conftest$ac_exeext &&
10010        $as_test_x conftest$ac_exeext; then
10011   ac_cv_lib_dl_dlopen=yes
10012 else
10013   echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016         ac_cv_lib_dl_dlopen=no
10017 fi
10018
10019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10020       conftest$ac_exeext conftest.$ac_ext
10021 LIBS=$ac_check_lib_save_LIBS
10022 fi
10023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10024 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10025 if test $ac_cv_lib_dl_dlopen = yes; then
10026   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10027 else
10028   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10029 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10030 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10031   echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033   ac_check_lib_save_LIBS=$LIBS
10034 LIBS="-lsvld  $LIBS"
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041
10042 /* Override any GCC internal prototype to avoid an error.
10043    Use char because int might match the return type of a GCC
10044    builtin and then its argument prototype would still apply.  */
10045 #ifdef __cplusplus
10046 extern "C"
10047 #endif
10048 char dlopen ();
10049 int
10050 main ()
10051 {
10052 return dlopen ();
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_link") 2>conftest.er1
10065   ac_status=$?
10066   grep -v '^ *+' conftest.er1 >conftest.err
10067   rm -f conftest.er1
10068   cat conftest.err >&5
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); } && {
10071          test -z "$ac_c_werror_flag" ||
10072          test ! -s conftest.err
10073        } && test -s conftest$ac_exeext &&
10074        $as_test_x conftest$ac_exeext; then
10075   ac_cv_lib_svld_dlopen=yes
10076 else
10077   echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10079
10080         ac_cv_lib_svld_dlopen=no
10081 fi
10082
10083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10084       conftest$ac_exeext conftest.$ac_ext
10085 LIBS=$ac_check_lib_save_LIBS
10086 fi
10087 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10088 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10089 if test $ac_cv_lib_svld_dlopen = yes; then
10090   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10091 else
10092   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10093 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10094 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   ac_check_lib_save_LIBS=$LIBS
10098 LIBS="-ldld  $LIBS"
10099 cat >conftest.$ac_ext <<_ACEOF
10100 /* confdefs.h.  */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h.  */
10105
10106 /* Override any GCC internal prototype to avoid an error.
10107    Use char because int might match the return type of a GCC
10108    builtin and then its argument prototype would still apply.  */
10109 #ifdef __cplusplus
10110 extern "C"
10111 #endif
10112 char dld_link ();
10113 int
10114 main ()
10115 {
10116 return dld_link ();
10117   ;
10118   return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (ac_try="$ac_link"
10123 case "(($ac_try" in
10124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125   *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128   (eval "$ac_link") 2>conftest.er1
10129   ac_status=$?
10130   grep -v '^ *+' conftest.er1 >conftest.err
10131   rm -f conftest.er1
10132   cat conftest.err >&5
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); } && {
10135          test -z "$ac_c_werror_flag" ||
10136          test ! -s conftest.err
10137        } && test -s conftest$ac_exeext &&
10138        $as_test_x conftest$ac_exeext; then
10139   ac_cv_lib_dld_dld_link=yes
10140 else
10141   echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144         ac_cv_lib_dld_dld_link=no
10145 fi
10146
10147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10148       conftest$ac_exeext conftest.$ac_ext
10149 LIBS=$ac_check_lib_save_LIBS
10150 fi
10151 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10152 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10153 if test $ac_cv_lib_dld_dld_link = yes; then
10154   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10155 fi
10156
10157
10158 fi
10159
10160
10161 fi
10162
10163
10164 fi
10165
10166
10167 fi
10168
10169
10170 fi
10171
10172     ;;
10173   esac
10174
10175   if test "x$lt_cv_dlopen" != xno; then
10176     enable_dlopen=yes
10177   else
10178     enable_dlopen=no
10179   fi
10180
10181   case $lt_cv_dlopen in
10182   dlopen)
10183     save_CPPFLAGS="$CPPFLAGS"
10184     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10185
10186     save_LDFLAGS="$LDFLAGS"
10187     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10188
10189     save_LIBS="$LIBS"
10190     LIBS="$lt_cv_dlopen_libs $LIBS"
10191
10192     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10193 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10194 if test "${lt_cv_dlopen_self+set}" = set; then
10195   echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197           if test "$cross_compiling" = yes; then :
10198   lt_cv_dlopen_self=cross
10199 else
10200   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10201   lt_status=$lt_dlunknown
10202   cat > conftest.$ac_ext <<EOF
10203 #line 10203 "configure"
10204 #include "confdefs.h"
10205
10206 #if HAVE_DLFCN_H
10207 #include <dlfcn.h>
10208 #endif
10209
10210 #include <stdio.h>
10211
10212 #ifdef RTLD_GLOBAL
10213 #  define LT_DLGLOBAL           RTLD_GLOBAL
10214 #else
10215 #  ifdef DL_GLOBAL
10216 #    define LT_DLGLOBAL         DL_GLOBAL
10217 #  else
10218 #    define LT_DLGLOBAL         0
10219 #  endif
10220 #endif
10221
10222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10223    find out it does not work in some platform. */
10224 #ifndef LT_DLLAZY_OR_NOW
10225 #  ifdef RTLD_LAZY
10226 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10227 #  else
10228 #    ifdef DL_LAZY
10229 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10230 #    else
10231 #      ifdef RTLD_NOW
10232 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10233 #      else
10234 #        ifdef DL_NOW
10235 #          define LT_DLLAZY_OR_NOW      DL_NOW
10236 #        else
10237 #          define LT_DLLAZY_OR_NOW      0
10238 #        endif
10239 #      endif
10240 #    endif
10241 #  endif
10242 #endif
10243
10244 #ifdef __cplusplus
10245 extern "C" void exit (int);
10246 #endif
10247
10248 void fnord() { int i=42;}
10249 int main ()
10250 {
10251   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10252   int status = $lt_dlunknown;
10253
10254   if (self)
10255     {
10256       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10257       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10258       /* dlclose (self); */
10259     }
10260   else
10261     puts (dlerror ());
10262
10263     exit (status);
10264 }
10265 EOF
10266   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267   (eval $ac_link) 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10271     (./conftest; exit; ) >&5 2>/dev/null
10272     lt_status=$?
10273     case x$lt_status in
10274       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10275       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10276       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10277     esac
10278   else :
10279     # compilation failed
10280     lt_cv_dlopen_self=no
10281   fi
10282 fi
10283 rm -fr conftest*
10284
10285
10286 fi
10287 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10288 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10289
10290     if test "x$lt_cv_dlopen_self" = xyes; then
10291       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10292       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10293 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10294 if test "${lt_cv_dlopen_self_static+set}" = set; then
10295   echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297           if test "$cross_compiling" = yes; then :
10298   lt_cv_dlopen_self_static=cross
10299 else
10300   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10301   lt_status=$lt_dlunknown
10302   cat > conftest.$ac_ext <<EOF
10303 #line 10303 "configure"
10304 #include "confdefs.h"
10305
10306 #if HAVE_DLFCN_H
10307 #include <dlfcn.h>
10308 #endif
10309
10310 #include <stdio.h>
10311
10312 #ifdef RTLD_GLOBAL
10313 #  define LT_DLGLOBAL           RTLD_GLOBAL
10314 #else
10315 #  ifdef DL_GLOBAL
10316 #    define LT_DLGLOBAL         DL_GLOBAL
10317 #  else
10318 #    define LT_DLGLOBAL         0
10319 #  endif
10320 #endif
10321
10322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10323    find out it does not work in some platform. */
10324 #ifndef LT_DLLAZY_OR_NOW
10325 #  ifdef RTLD_LAZY
10326 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10327 #  else
10328 #    ifdef DL_LAZY
10329 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10330 #    else
10331 #      ifdef RTLD_NOW
10332 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10333 #      else
10334 #        ifdef DL_NOW
10335 #          define LT_DLLAZY_OR_NOW      DL_NOW
10336 #        else
10337 #          define LT_DLLAZY_OR_NOW      0
10338 #        endif
10339 #      endif
10340 #    endif
10341 #  endif
10342 #endif
10343
10344 #ifdef __cplusplus
10345 extern "C" void exit (int);
10346 #endif
10347
10348 void fnord() { int i=42;}
10349 int main ()
10350 {
10351   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10352   int status = $lt_dlunknown;
10353
10354   if (self)
10355     {
10356       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10357       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10358       /* dlclose (self); */
10359     }
10360   else
10361     puts (dlerror ());
10362
10363     exit (status);
10364 }
10365 EOF
10366   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10367   (eval $ac_link) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10371     (./conftest; exit; ) >&5 2>/dev/null
10372     lt_status=$?
10373     case x$lt_status in
10374       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10375       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10376       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10377     esac
10378   else :
10379     # compilation failed
10380     lt_cv_dlopen_self_static=no
10381   fi
10382 fi
10383 rm -fr conftest*
10384
10385
10386 fi
10387 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10388 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10389     fi
10390
10391     CPPFLAGS="$save_CPPFLAGS"
10392     LDFLAGS="$save_LDFLAGS"
10393     LIBS="$save_LIBS"
10394     ;;
10395   esac
10396
10397   case $lt_cv_dlopen_self in
10398   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10399   *) enable_dlopen_self=unknown ;;
10400   esac
10401
10402   case $lt_cv_dlopen_self_static in
10403   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10404   *) enable_dlopen_self_static=unknown ;;
10405   esac
10406 fi
10407
10408
10409 # Report which library types will actually be built
10410 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10411 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10412 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10413 echo "${ECHO_T}$can_build_shared" >&6; }
10414
10415 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10416 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10417 test "$can_build_shared" = "no" && enable_shared=no
10418
10419 # On AIX, shared libraries and static libraries use the same namespace, and
10420 # are all built from PIC.
10421 case $host_os in
10422 aix3*)
10423   test "$enable_shared" = yes && enable_static=no
10424   if test -n "$RANLIB"; then
10425     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10426     postinstall_cmds='$RANLIB $lib'
10427   fi
10428   ;;
10429
10430 aix[4-9]*)
10431   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10432     test "$enable_shared" = yes && enable_static=no
10433   fi
10434     ;;
10435 esac
10436 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10437 echo "${ECHO_T}$enable_shared" >&6; }
10438
10439 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10440 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10441 # Make sure either enable_shared or enable_static is yes.
10442 test "$enable_shared" = yes || enable_static=yes
10443 { echo "$as_me:$LINENO: result: $enable_static" >&5
10444 echo "${ECHO_T}$enable_static" >&6; }
10445
10446 # The else clause should only fire when bootstrapping the
10447 # libtool distribution, otherwise you forgot to ship ltmain.sh
10448 # with your package, and you will get complaints that there are
10449 # no rules to generate ltmain.sh.
10450 if test -f "$ltmain"; then
10451   # See if we are running on zsh, and set the options which allow our commands through
10452   # without removal of \ escapes.
10453   if test -n "${ZSH_VERSION+set}" ; then
10454     setopt NO_GLOB_SUBST
10455   fi
10456   # Now quote all the things that may contain metacharacters while being
10457   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10458   # variables and quote the copies for generation of the libtool script.
10459   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10460     SED SHELL STRIP \
10461     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10462     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10463     deplibs_check_method reload_flag reload_cmds need_locks \
10464     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10465     lt_cv_sys_global_symbol_to_c_name_address \
10466     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10467     old_postinstall_cmds old_postuninstall_cmds \
10468     compiler \
10469     CC \
10470     LD \
10471     lt_prog_compiler_wl \
10472     lt_prog_compiler_pic \
10473     lt_prog_compiler_static \
10474     lt_prog_compiler_no_builtin_flag \
10475     export_dynamic_flag_spec \
10476     thread_safe_flag_spec \
10477     whole_archive_flag_spec \
10478     enable_shared_with_static_runtimes \
10479     old_archive_cmds \
10480     old_archive_from_new_cmds \
10481     predep_objects \
10482     postdep_objects \
10483     predeps \
10484     postdeps \
10485     compiler_lib_search_path \
10486     compiler_lib_search_dirs \
10487     archive_cmds \
10488     archive_expsym_cmds \
10489     postinstall_cmds \
10490     postuninstall_cmds \
10491     old_archive_from_expsyms_cmds \
10492     allow_undefined_flag \
10493     no_undefined_flag \
10494     export_symbols_cmds \
10495     hardcode_libdir_flag_spec \
10496     hardcode_libdir_flag_spec_ld \
10497     hardcode_libdir_separator \
10498     hardcode_automatic \
10499     module_cmds \
10500     module_expsym_cmds \
10501     lt_cv_prog_compiler_c_o \
10502     fix_srcfile_path \
10503     exclude_expsyms \
10504     include_expsyms; do
10505
10506     case $var in
10507     old_archive_cmds | \
10508     old_archive_from_new_cmds | \
10509     archive_cmds | \
10510     archive_expsym_cmds | \
10511     module_cmds | \
10512     module_expsym_cmds | \
10513     old_archive_from_expsyms_cmds | \
10514     export_symbols_cmds | \
10515     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10516     postinstall_cmds | postuninstall_cmds | \
10517     old_postinstall_cmds | old_postuninstall_cmds | \
10518     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10519       # Double-quote double-evaled strings.
10520       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10521       ;;
10522     *)
10523       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10524       ;;
10525     esac
10526   done
10527
10528   case $lt_echo in
10529   *'\$0 --fallback-echo"')
10530     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10531     ;;
10532   esac
10533
10534 cfgfile="${ofile}T"
10535   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10536   $rm -f "$cfgfile"
10537   { echo "$as_me:$LINENO: creating $ofile" >&5
10538 echo "$as_me: creating $ofile" >&6;}
10539
10540   cat <<__EOF__ >> "$cfgfile"
10541 #! $SHELL
10542
10543 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10544 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10545 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10546 #
10547 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10548 # Free Software Foundation, Inc.
10549 #
10550 # This file is part of GNU Libtool:
10551 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10552 #
10553 # This program is free software; you can redistribute it and/or modify
10554 # it under the terms of the GNU General Public License as published by
10555 # the Free Software Foundation; either version 2 of the License, or
10556 # (at your option) any later version.
10557 #
10558 # This program is distributed in the hope that it will be useful, but
10559 # WITHOUT ANY WARRANTY; without even the implied warranty of
10560 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10561 # General Public License for more details.
10562 #
10563 # You should have received a copy of the GNU General Public License
10564 # along with this program; if not, write to the Free Software
10565 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10566 #
10567 # As a special exception to the GNU General Public License, if you
10568 # distribute this file as part of a program that contains a
10569 # configuration script generated by Autoconf, you may include it under
10570 # the same distribution terms that you use for the rest of that program.
10571
10572 # A sed program that does not truncate output.
10573 SED=$lt_SED
10574
10575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10576 Xsed="$SED -e 1s/^X//"
10577
10578 # The HP-UX ksh and POSIX shell print the target directory to stdout
10579 # if CDPATH is set.
10580 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10581
10582 # The names of the tagged configurations supported by this script.
10583 available_tags=
10584
10585 # ### BEGIN LIBTOOL CONFIG
10586
10587 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10588
10589 # Shell to use when invoking shell scripts.
10590 SHELL=$lt_SHELL
10591
10592 # Whether or not to build shared libraries.
10593 build_libtool_libs=$enable_shared
10594
10595 # Whether or not to build static libraries.
10596 build_old_libs=$enable_static
10597
10598 # Whether or not to add -lc for building shared libraries.
10599 build_libtool_need_lc=$archive_cmds_need_lc
10600
10601 # Whether or not to disallow shared libs when runtime libs are static
10602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10603
10604 # Whether or not to optimize for fast installation.
10605 fast_install=$enable_fast_install
10606
10607 # The host system.
10608 host_alias=$host_alias
10609 host=$host
10610 host_os=$host_os
10611
10612 # The build system.
10613 build_alias=$build_alias
10614 build=$build
10615 build_os=$build_os
10616
10617 # An echo program that does not interpret backslashes.
10618 echo=$lt_echo
10619
10620 # The archiver.
10621 AR=$lt_AR
10622 AR_FLAGS=$lt_AR_FLAGS
10623
10624 # A C compiler.
10625 LTCC=$lt_LTCC
10626
10627 # LTCC compiler flags.
10628 LTCFLAGS=$lt_LTCFLAGS
10629
10630 # A language-specific compiler.
10631 CC=$lt_compiler
10632
10633 # Is the compiler the GNU C compiler?
10634 with_gcc=$GCC
10635
10636 # An ERE matcher.
10637 EGREP=$lt_EGREP
10638
10639 # The linker used to build libraries.
10640 LD=$lt_LD
10641
10642 # Whether we need hard or soft links.
10643 LN_S=$lt_LN_S
10644
10645 # A BSD-compatible nm program.
10646 NM=$lt_NM
10647
10648 # A symbol stripping program
10649 STRIP=$lt_STRIP
10650
10651 # Used to examine libraries when file_magic_cmd begins "file"
10652 MAGIC_CMD=$MAGIC_CMD
10653
10654 # Used on cygwin: DLL creation program.
10655 DLLTOOL="$DLLTOOL"
10656
10657 # Used on cygwin: object dumper.
10658 OBJDUMP="$OBJDUMP"
10659
10660 # Used on cygwin: assembler.
10661 AS="$AS"
10662
10663 # The name of the directory that contains temporary libtool files.
10664 objdir=$objdir
10665
10666 # How to create reloadable object files.
10667 reload_flag=$lt_reload_flag
10668 reload_cmds=$lt_reload_cmds
10669
10670 # How to pass a linker flag through the compiler.
10671 wl=$lt_lt_prog_compiler_wl
10672
10673 # Object file suffix (normally "o").
10674 objext="$ac_objext"
10675
10676 # Old archive suffix (normally "a").
10677 libext="$libext"
10678
10679 # Shared library suffix (normally ".so").
10680 shrext_cmds='$shrext_cmds'
10681
10682 # Executable file suffix (normally "").
10683 exeext="$exeext"
10684
10685 # Additional compiler flags for building library objects.
10686 pic_flag=$lt_lt_prog_compiler_pic
10687 pic_mode=$pic_mode
10688
10689 # What is the maximum length of a command?
10690 max_cmd_len=$lt_cv_sys_max_cmd_len
10691
10692 # Does compiler simultaneously support -c and -o options?
10693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10694
10695 # Must we lock files when doing compilation?
10696 need_locks=$lt_need_locks
10697
10698 # Do we need the lib prefix for modules?
10699 need_lib_prefix=$need_lib_prefix
10700
10701 # Do we need a version for libraries?
10702 need_version=$need_version
10703
10704 # Whether dlopen is supported.
10705 dlopen_support=$enable_dlopen
10706
10707 # Whether dlopen of programs is supported.
10708 dlopen_self=$enable_dlopen_self
10709
10710 # Whether dlopen of statically linked programs is supported.
10711 dlopen_self_static=$enable_dlopen_self_static
10712
10713 # Compiler flag to prevent dynamic linking.
10714 link_static_flag=$lt_lt_prog_compiler_static
10715
10716 # Compiler flag to turn off builtin functions.
10717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10718
10719 # Compiler flag to allow reflexive dlopens.
10720 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10721
10722 # Compiler flag to generate shared objects directly from archives.
10723 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10724
10725 # Compiler flag to generate thread-safe objects.
10726 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10727
10728 # Library versioning type.
10729 version_type=$version_type
10730
10731 # Format of library name prefix.
10732 libname_spec=$lt_libname_spec
10733
10734 # List of archive names.  First name is the real one, the rest are links.
10735 # The last name is the one that the linker finds with -lNAME.
10736 library_names_spec=$lt_library_names_spec
10737
10738 # The coded name of the library, if different from the real name.
10739 soname_spec=$lt_soname_spec
10740
10741 # Commands used to build and install an old-style archive.
10742 RANLIB=$lt_RANLIB
10743 old_archive_cmds=$lt_old_archive_cmds
10744 old_postinstall_cmds=$lt_old_postinstall_cmds
10745 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10746
10747 # Create an old-style archive from a shared archive.
10748 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10749
10750 # Create a temporary old-style archive to link instead of a shared archive.
10751 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10752
10753 # Commands used to build and install a shared archive.
10754 archive_cmds=$lt_archive_cmds
10755 archive_expsym_cmds=$lt_archive_expsym_cmds
10756 postinstall_cmds=$lt_postinstall_cmds
10757 postuninstall_cmds=$lt_postuninstall_cmds
10758
10759 # Commands used to build a loadable module (assumed same as above if empty)
10760 module_cmds=$lt_module_cmds
10761 module_expsym_cmds=$lt_module_expsym_cmds
10762
10763 # Commands to strip libraries.
10764 old_striplib=$lt_old_striplib
10765 striplib=$lt_striplib
10766
10767 # Dependencies to place before the objects being linked to create a
10768 # shared library.
10769 predep_objects=$lt_predep_objects
10770
10771 # Dependencies to place after the objects being linked to create a
10772 # shared library.
10773 postdep_objects=$lt_postdep_objects
10774
10775 # Dependencies to place before the objects being linked to create a
10776 # shared library.
10777 predeps=$lt_predeps
10778
10779 # Dependencies to place after the objects being linked to create a
10780 # shared library.
10781 postdeps=$lt_postdeps
10782
10783 # The directories searched by this compiler when creating a shared
10784 # library
10785 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10786
10787 # The library search path used internally by the compiler when linking
10788 # a shared library.
10789 compiler_lib_search_path=$lt_compiler_lib_search_path
10790
10791 # Method to check whether dependent libraries are shared objects.
10792 deplibs_check_method=$lt_deplibs_check_method
10793
10794 # Command to use when deplibs_check_method == file_magic.
10795 file_magic_cmd=$lt_file_magic_cmd
10796
10797 # Flag that allows shared libraries with undefined symbols to be built.
10798 allow_undefined_flag=$lt_allow_undefined_flag
10799
10800 # Flag that forces no undefined symbols.
10801 no_undefined_flag=$lt_no_undefined_flag
10802
10803 # Commands used to finish a libtool library installation in a directory.
10804 finish_cmds=$lt_finish_cmds
10805
10806 # Same as above, but a single script fragment to be evaled but not shown.
10807 finish_eval=$lt_finish_eval
10808
10809 # Take the output of nm and produce a listing of raw symbols and C names.
10810 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10811
10812 # Transform the output of nm in a proper C declaration
10813 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10814
10815 # Transform the output of nm in a C name address pair
10816 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10817
10818 # This is the shared library runtime path variable.
10819 runpath_var=$runpath_var
10820
10821 # This is the shared library path variable.
10822 shlibpath_var=$shlibpath_var
10823
10824 # Is shlibpath searched before the hard-coded library search path?
10825 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10826
10827 # How to hardcode a shared library path into an executable.
10828 hardcode_action=$hardcode_action
10829
10830 # Whether we should hardcode library paths into libraries.
10831 hardcode_into_libs=$hardcode_into_libs
10832
10833 # Flag to hardcode \$libdir into a binary during linking.
10834 # This must work even if \$libdir does not exist.
10835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10836
10837 # If ld is used when linking, flag to hardcode \$libdir into
10838 # a binary during linking. This must work even if \$libdir does
10839 # not exist.
10840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10841
10842 # Whether we need a single -rpath flag with a separated argument.
10843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10844
10845 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10846 # resulting binary.
10847 hardcode_direct=$hardcode_direct
10848
10849 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10850 # resulting binary.
10851 hardcode_minus_L=$hardcode_minus_L
10852
10853 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10854 # the resulting binary.
10855 hardcode_shlibpath_var=$hardcode_shlibpath_var
10856
10857 # Set to yes if building a shared library automatically hardcodes DIR into the library
10858 # and all subsequent libraries and executables linked against it.
10859 hardcode_automatic=$hardcode_automatic
10860
10861 # Variables whose values should be saved in libtool wrapper scripts and
10862 # restored at relink time.
10863 variables_saved_for_relink="$variables_saved_for_relink"
10864
10865 # Whether libtool must link a program against all its dependency libraries.
10866 link_all_deplibs=$link_all_deplibs
10867
10868 # Compile-time system search path for libraries
10869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10870
10871 # Run-time system search path for libraries
10872 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10873
10874 # Fix the shell variable \$srcfile for the compiler.
10875 fix_srcfile_path=$lt_fix_srcfile_path
10876
10877 # Set to yes if exported symbols are required.
10878 always_export_symbols=$always_export_symbols
10879
10880 # The commands to list exported symbols.
10881 export_symbols_cmds=$lt_export_symbols_cmds
10882
10883 # The commands to extract the exported symbol list from a shared archive.
10884 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10885
10886 # Symbols that should not be listed in the preloaded symbols.
10887 exclude_expsyms=$lt_exclude_expsyms
10888
10889 # Symbols that must always be exported.
10890 include_expsyms=$lt_include_expsyms
10891
10892 # ### END LIBTOOL CONFIG
10893
10894 __EOF__
10895
10896
10897   case $host_os in
10898   aix3*)
10899     cat <<\EOF >> "$cfgfile"
10900
10901 # AIX sometimes has problems with the GCC collect2 program.  For some
10902 # reason, if we set the COLLECT_NAMES environment variable, the problems
10903 # vanish in a puff of smoke.
10904 if test "X${COLLECT_NAMES+set}" != Xset; then
10905   COLLECT_NAMES=
10906   export COLLECT_NAMES
10907 fi
10908 EOF
10909     ;;
10910   esac
10911
10912   # We use sed instead of cat because bash on DJGPP gets confused if
10913   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10914   # text mode, it properly converts lines to CR/LF.  This bash problem
10915   # is reportedly fixed, but why not run on old versions too?
10916   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10917
10918   mv -f "$cfgfile" "$ofile" || \
10919     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10920   chmod +x "$ofile"
10921
10922 else
10923   # If there is no Makefile yet, we rely on a make rule to execute
10924   # `config.status --recheck' to rerun these tests and create the
10925   # libtool script then.
10926   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10927   if test -f "$ltmain_in"; then
10928     test -f Makefile && make "$ltmain"
10929   fi
10930 fi
10931
10932
10933 ac_ext=c
10934 ac_cpp='$CPP $CPPFLAGS'
10935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10938
10939 CC="$lt_save_CC"
10940
10941
10942 # Check whether --with-tags was given.
10943 if test "${with_tags+set}" = set; then
10944   withval=$with_tags; tagnames="$withval"
10945 fi
10946
10947
10948 if test -f "$ltmain" && test -n "$tagnames"; then
10949   if test ! -f "${ofile}"; then
10950     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10951 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10952   fi
10953
10954   if test -z "$LTCC"; then
10955     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10956     if test -z "$LTCC"; then
10957       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10958 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10959     else
10960       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10961 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10962     fi
10963   fi
10964   if test -z "$LTCFLAGS"; then
10965     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10966   fi
10967
10968   # Extract list of available tagged configurations in $ofile.
10969   # Note that this assumes the entire list is on one line.
10970   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10971
10972   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10973   for tagname in $tagnames; do
10974     IFS="$lt_save_ifs"
10975     # Check whether tagname contains only valid characters
10976     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10977     "") ;;
10978     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10979 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10980    { (exit 1); exit 1; }; }
10981         ;;
10982     esac
10983
10984     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10985     then
10986       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10987 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10988    { (exit 1); exit 1; }; }
10989     fi
10990
10991     # Update the list of available tags.
10992     if test -n "$tagname"; then
10993       echo appending configuration tag \"$tagname\" to $ofile
10994
10995       case $tagname in
10996       CXX)
10997         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10998             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10999             (test "X$CXX" != "Xg++"))) ; then
11000           ac_ext=cpp
11001 ac_cpp='$CXXCPP $CPPFLAGS'
11002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11005
11006
11007
11008
11009 archive_cmds_need_lc_CXX=no
11010 allow_undefined_flag_CXX=
11011 always_export_symbols_CXX=no
11012 archive_expsym_cmds_CXX=
11013 export_dynamic_flag_spec_CXX=
11014 hardcode_direct_CXX=no
11015 hardcode_libdir_flag_spec_CXX=
11016 hardcode_libdir_flag_spec_ld_CXX=
11017 hardcode_libdir_separator_CXX=
11018 hardcode_minus_L_CXX=no
11019 hardcode_shlibpath_var_CXX=unsupported
11020 hardcode_automatic_CXX=no
11021 module_cmds_CXX=
11022 module_expsym_cmds_CXX=
11023 link_all_deplibs_CXX=unknown
11024 old_archive_cmds_CXX=$old_archive_cmds
11025 no_undefined_flag_CXX=
11026 whole_archive_flag_spec_CXX=
11027 enable_shared_with_static_runtimes_CXX=no
11028
11029 # Dependencies to place before and after the object being linked:
11030 predep_objects_CXX=
11031 postdep_objects_CXX=
11032 predeps_CXX=
11033 postdeps_CXX=
11034 compiler_lib_search_path_CXX=
11035 compiler_lib_search_dirs_CXX=
11036
11037 # Source file extension for C++ test sources.
11038 ac_ext=cpp
11039
11040 # Object file extension for compiled C++ test sources.
11041 objext=o
11042 objext_CXX=$objext
11043
11044 # Code to be used in simple compile tests
11045 lt_simple_compile_test_code="int some_variable = 0;"
11046
11047 # Code to be used in simple link tests
11048 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11049
11050 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11051
11052 # If no C compiler was specified, use CC.
11053 LTCC=${LTCC-"$CC"}
11054
11055 # If no C compiler flags were specified, use CFLAGS.
11056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11057
11058 # Allow CC to be a program name with arguments.
11059 compiler=$CC
11060
11061
11062 # save warnings/boilerplate of simple test code
11063 ac_outfile=conftest.$ac_objext
11064 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11066 _lt_compiler_boilerplate=`cat conftest.err`
11067 $rm conftest*
11068
11069 ac_outfile=conftest.$ac_objext
11070 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11072 _lt_linker_boilerplate=`cat conftest.err`
11073 $rm -r conftest*
11074
11075
11076 # Allow CC to be a program name with arguments.
11077 lt_save_CC=$CC
11078 lt_save_LD=$LD
11079 lt_save_GCC=$GCC
11080 GCC=$GXX
11081 lt_save_with_gnu_ld=$with_gnu_ld
11082 lt_save_path_LD=$lt_cv_path_LD
11083 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11084   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11085 else
11086   $as_unset lt_cv_prog_gnu_ld
11087 fi
11088 if test -n "${lt_cv_path_LDCXX+set}"; then
11089   lt_cv_path_LD=$lt_cv_path_LDCXX
11090 else
11091   $as_unset lt_cv_path_LD
11092 fi
11093 test -z "${LDCXX+set}" || LD=$LDCXX
11094 CC=${CXX-"c++"}
11095 compiler=$CC
11096 compiler_CXX=$CC
11097 for cc_temp in $compiler""; do
11098   case $cc_temp in
11099     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11100     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11101     \-*) ;;
11102     *) break;;
11103   esac
11104 done
11105 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11106
11107
11108 # We don't want -fno-exception wen compiling C++ code, so set the
11109 # no_builtin_flag separately
11110 if test "$GXX" = yes; then
11111   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11112 else
11113   lt_prog_compiler_no_builtin_flag_CXX=
11114 fi
11115
11116 if test "$GXX" = yes; then
11117   # Set up default GNU C++ configuration
11118
11119
11120 # Check whether --with-gnu-ld was given.
11121 if test "${with_gnu_ld+set}" = set; then
11122   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11123 else
11124   with_gnu_ld=no
11125 fi
11126
11127 ac_prog=ld
11128 if test "$GCC" = yes; then
11129   # Check if gcc -print-prog-name=ld gives a path.
11130   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11132   case $host in
11133   *-*-mingw*)
11134     # gcc leaves a trailing carriage return which upsets mingw
11135     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11136   *)
11137     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11138   esac
11139   case $ac_prog in
11140     # Accept absolute paths.
11141     [\\/]* | ?:[\\/]*)
11142       re_direlt='/[^/][^/]*/\.\./'
11143       # Canonicalize the pathname of ld
11144       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11145       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11146         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11147       done
11148       test -z "$LD" && LD="$ac_prog"
11149       ;;
11150   "")
11151     # If it fails, then pretend we aren't using GCC.
11152     ac_prog=ld
11153     ;;
11154   *)
11155     # If it is relative, then search for the first ld in PATH.
11156     with_gnu_ld=unknown
11157     ;;
11158   esac
11159 elif test "$with_gnu_ld" = yes; then
11160   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11162 else
11163   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11165 fi
11166 if test "${lt_cv_path_LD+set}" = set; then
11167   echo $ECHO_N "(cached) $ECHO_C" >&6
11168 else
11169   if test -z "$LD"; then
11170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11171   for ac_dir in $PATH; do
11172     IFS="$lt_save_ifs"
11173     test -z "$ac_dir" && ac_dir=.
11174     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11175       lt_cv_path_LD="$ac_dir/$ac_prog"
11176       # Check to see if the program is GNU ld.  I'd rather use --version,
11177       # but apparently some variants of GNU ld only accept -v.
11178       # Break only if it was the GNU/non-GNU ld that we prefer.
11179       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11180       *GNU* | *'with BFD'*)
11181         test "$with_gnu_ld" != no && break
11182         ;;
11183       *)
11184         test "$with_gnu_ld" != yes && break
11185         ;;
11186       esac
11187     fi
11188   done
11189   IFS="$lt_save_ifs"
11190 else
11191   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11192 fi
11193 fi
11194
11195 LD="$lt_cv_path_LD"
11196 if test -n "$LD"; then
11197   { echo "$as_me:$LINENO: result: $LD" >&5
11198 echo "${ECHO_T}$LD" >&6; }
11199 else
11200   { echo "$as_me:$LINENO: result: no" >&5
11201 echo "${ECHO_T}no" >&6; }
11202 fi
11203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11205    { (exit 1); exit 1; }; }
11206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11209   echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11212 case `$LD -v 2>&1 </dev/null` in
11213 *GNU* | *'with BFD'*)
11214   lt_cv_prog_gnu_ld=yes
11215   ;;
11216 *)
11217   lt_cv_prog_gnu_ld=no
11218   ;;
11219 esac
11220 fi
11221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11223 with_gnu_ld=$lt_cv_prog_gnu_ld
11224
11225
11226
11227   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11228   # archiving commands below assume that GNU ld is being used.
11229   if test "$with_gnu_ld" = yes; then
11230     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11231     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'
11232
11233     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11234     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11235
11236     # If archive_cmds runs LD, not CC, wlarc should be empty
11237     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11238     #     investigate it a little bit more. (MM)
11239     wlarc='${wl}'
11240
11241     # ancient GNU ld didn't support --whole-archive et. al.
11242     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11243         grep 'no-whole-archive' > /dev/null; then
11244       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11245     else
11246       whole_archive_flag_spec_CXX=
11247     fi
11248   else
11249     with_gnu_ld=no
11250     wlarc=
11251
11252     # A generic and very simple default shared library creation
11253     # command for GNU C++ for the case where it uses the native
11254     # linker, instead of GNU ld.  If possible, this setting should
11255     # overridden to take advantage of the native linker features on
11256     # the platform it is being used on.
11257     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11258   fi
11259
11260   # Commands to make compiler produce verbose output that lists
11261   # what "hidden" libraries, object files and flags are used when
11262   # linking a shared library.
11263   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11264
11265 else
11266   GXX=no
11267   with_gnu_ld=no
11268   wlarc=
11269 fi
11270
11271 # PORTME: fill in a description of your system's C++ link characteristics
11272 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11274 ld_shlibs_CXX=yes
11275 case $host_os in
11276   aix3*)
11277     # FIXME: insert proper C++ library support
11278     ld_shlibs_CXX=no
11279     ;;
11280   aix[4-9]*)
11281     if test "$host_cpu" = ia64; then
11282       # On IA64, the linker does run time linking by default, so we don't
11283       # have to do anything special.
11284       aix_use_runtimelinking=no
11285       exp_sym_flag='-Bexport'
11286       no_entry_flag=""
11287     else
11288       aix_use_runtimelinking=no
11289
11290       # Test if we are trying to use run time linking or normal
11291       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11292       # need to do runtime linking.
11293       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11294         for ld_flag in $LDFLAGS; do
11295           case $ld_flag in
11296           *-brtl*)
11297             aix_use_runtimelinking=yes
11298             break
11299             ;;
11300           esac
11301         done
11302         ;;
11303       esac
11304
11305       exp_sym_flag='-bexport'
11306       no_entry_flag='-bnoentry'
11307     fi
11308
11309     # When large executables or shared objects are built, AIX ld can
11310     # have problems creating the table of contents.  If linking a library
11311     # or program results in "error TOC overflow" add -mminimal-toc to
11312     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11313     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11314
11315     archive_cmds_CXX=''
11316     hardcode_direct_CXX=yes
11317     hardcode_libdir_separator_CXX=':'
11318     link_all_deplibs_CXX=yes
11319
11320     if test "$GXX" = yes; then
11321       case $host_os in aix4.[012]|aix4.[012].*)
11322       # We only want to do this on AIX 4.2 and lower, the check
11323       # below for broken collect2 doesn't work under 4.3+
11324         collect2name=`${CC} -print-prog-name=collect2`
11325         if test -f "$collect2name" && \
11326            strings "$collect2name" | grep resolve_lib_name >/dev/null
11327         then
11328           # We have reworked collect2
11329           :
11330         else
11331           # We have old collect2
11332           hardcode_direct_CXX=unsupported
11333           # It fails to find uninstalled libraries when the uninstalled
11334           # path is not listed in the libpath.  Setting hardcode_minus_L
11335           # to unsupported forces relinking
11336           hardcode_minus_L_CXX=yes
11337           hardcode_libdir_flag_spec_CXX='-L$libdir'
11338           hardcode_libdir_separator_CXX=
11339         fi
11340         ;;
11341       esac
11342       shared_flag='-shared'
11343       if test "$aix_use_runtimelinking" = yes; then
11344         shared_flag="$shared_flag "'${wl}-G'
11345       fi
11346     else
11347       # not using gcc
11348       if test "$host_cpu" = ia64; then
11349         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11350         # chokes on -Wl,-G. The following line is correct:
11351         shared_flag='-G'
11352       else
11353         if test "$aix_use_runtimelinking" = yes; then
11354           shared_flag='${wl}-G'
11355         else
11356           shared_flag='${wl}-bM:SRE'
11357         fi
11358       fi
11359     fi
11360
11361     # It seems that -bexpall does not export symbols beginning with
11362     # underscore (_), so it is better to generate a list of symbols to export.
11363     always_export_symbols_CXX=yes
11364     if test "$aix_use_runtimelinking" = yes; then
11365       # Warning - without using the other runtime loading flags (-brtl),
11366       # -berok will link without error, but may produce a broken library.
11367       allow_undefined_flag_CXX='-berok'
11368       # Determine the default libpath from the value encoded in an empty executable.
11369       cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h.  */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h.  */
11375
11376 int
11377 main ()
11378 {
11379
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 rm -f conftest.$ac_objext conftest$ac_exeext
11385 if { (ac_try="$ac_link"
11386 case "(($ac_try" in
11387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388   *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391   (eval "$ac_link") 2>conftest.er1
11392   ac_status=$?
11393   grep -v '^ *+' conftest.er1 >conftest.err
11394   rm -f conftest.er1
11395   cat conftest.err >&5
11396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397   (exit $ac_status); } && {
11398          test -z "$ac_cxx_werror_flag" ||
11399          test ! -s conftest.err
11400        } && test -s conftest$ac_exeext &&
11401        $as_test_x conftest$ac_exeext; then
11402
11403 lt_aix_libpath_sed='
11404     /Import File Strings/,/^$/ {
11405         /^0/ {
11406             s/^0  *\(.*\)$/\1/
11407             p
11408         }
11409     }'
11410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11411 # Check for a 64-bit object if we didn't find anything.
11412 if test -z "$aix_libpath"; then
11413   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11414 fi
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419
11420 fi
11421
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423       conftest$ac_exeext conftest.$ac_ext
11424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11425
11426       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11427
11428       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"
11429      else
11430       if test "$host_cpu" = ia64; then
11431         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11432         allow_undefined_flag_CXX="-z nodefs"
11433         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"
11434       else
11435         # Determine the default libpath from the value encoded in an empty executable.
11436         cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h.  */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h.  */
11442
11443 int
11444 main ()
11445 {
11446
11447   ;
11448   return 0;
11449 }
11450 _ACEOF
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (ac_try="$ac_link"
11453 case "(($ac_try" in
11454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455   *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458   (eval "$ac_link") 2>conftest.er1
11459   ac_status=$?
11460   grep -v '^ *+' conftest.er1 >conftest.err
11461   rm -f conftest.er1
11462   cat conftest.err >&5
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); } && {
11465          test -z "$ac_cxx_werror_flag" ||
11466          test ! -s conftest.err
11467        } && test -s conftest$ac_exeext &&
11468        $as_test_x conftest$ac_exeext; then
11469
11470 lt_aix_libpath_sed='
11471     /Import File Strings/,/^$/ {
11472         /^0/ {
11473             s/^0  *\(.*\)$/\1/
11474             p
11475         }
11476     }'
11477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11478 # Check for a 64-bit object if we didn't find anything.
11479 if test -z "$aix_libpath"; then
11480   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11481 fi
11482 else
11483   echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486
11487 fi
11488
11489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11490       conftest$ac_exeext conftest.$ac_ext
11491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11492
11493         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11494         # Warning - without using the other run time loading flags,
11495         # -berok will link without error, but may produce a broken library.
11496         no_undefined_flag_CXX=' ${wl}-bernotok'
11497         allow_undefined_flag_CXX=' ${wl}-berok'
11498         # Exported symbols can be pulled into shared objects from archives
11499         whole_archive_flag_spec_CXX='$convenience'
11500         archive_cmds_need_lc_CXX=yes
11501         # This is similar to how AIX traditionally builds its shared libraries.
11502         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'
11503       fi
11504     fi
11505     ;;
11506
11507   beos*)
11508     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11509       allow_undefined_flag_CXX=unsupported
11510       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11511       # support --undefined.  This deserves some investigation.  FIXME
11512       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11513     else
11514       ld_shlibs_CXX=no
11515     fi
11516     ;;
11517
11518   chorus*)
11519     case $cc_basename in
11520       *)
11521         # FIXME: insert proper C++ library support
11522         ld_shlibs_CXX=no
11523         ;;
11524     esac
11525     ;;
11526
11527   cygwin* | mingw* | pw32*)
11528     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11529     # as there is no search path for DLLs.
11530     hardcode_libdir_flag_spec_CXX='-L$libdir'
11531     allow_undefined_flag_CXX=unsupported
11532     always_export_symbols_CXX=no
11533     enable_shared_with_static_runtimes_CXX=yes
11534
11535     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11536       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'
11537       # If the export-symbols file already is a .def file (1st line
11538       # is EXPORTS), use it as is; otherwise, prepend...
11539       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11540         cp $export_symbols $output_objdir/$soname.def;
11541       else
11542         echo EXPORTS > $output_objdir/$soname.def;
11543         cat $export_symbols >> $output_objdir/$soname.def;
11544       fi~
11545       $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'
11546     else
11547       ld_shlibs_CXX=no
11548     fi
11549   ;;
11550       darwin* | rhapsody*)
11551       archive_cmds_need_lc_CXX=no
11552       hardcode_direct_CXX=no
11553       hardcode_automatic_CXX=yes
11554       hardcode_shlibpath_var_CXX=unsupported
11555       whole_archive_flag_spec_CXX=''
11556       link_all_deplibs_CXX=yes
11557       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11558       if test "$GXX" = yes ; then
11559       output_verbose_link_cmd='echo'
11560       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}"
11561       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11562       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}"
11563       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}"
11564       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11565         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}"
11566         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}"
11567       fi
11568       else
11569       case $cc_basename in
11570         xlc*)
11571          output_verbose_link_cmd='echo'
11572           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'
11573           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11574           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11575           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}'
11576           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}'
11577           ;;
11578        *)
11579          ld_shlibs_CXX=no
11580           ;;
11581       esac
11582       fi
11583         ;;
11584
11585   dgux*)
11586     case $cc_basename in
11587       ec++*)
11588         # FIXME: insert proper C++ library support
11589         ld_shlibs_CXX=no
11590         ;;
11591       ghcx*)
11592         # Green Hills C++ Compiler
11593         # FIXME: insert proper C++ library support
11594         ld_shlibs_CXX=no
11595         ;;
11596       *)
11597         # FIXME: insert proper C++ library support
11598         ld_shlibs_CXX=no
11599         ;;
11600     esac
11601     ;;
11602   freebsd[12]*)
11603     # C++ shared libraries reported to be fairly broken before switch to ELF
11604     ld_shlibs_CXX=no
11605     ;;
11606   freebsd-elf*)
11607     archive_cmds_need_lc_CXX=no
11608     ;;
11609   freebsd* | dragonfly*)
11610     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11611     # conventions
11612     ld_shlibs_CXX=yes
11613     ;;
11614   gnu*)
11615     ;;
11616   hpux9*)
11617     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11618     hardcode_libdir_separator_CXX=:
11619     export_dynamic_flag_spec_CXX='${wl}-E'
11620     hardcode_direct_CXX=yes
11621     hardcode_minus_L_CXX=yes # Not in the search PATH,
11622                                 # but as the default
11623                                 # location of the library.
11624
11625     case $cc_basename in
11626     CC*)
11627       # FIXME: insert proper C++ library support
11628       ld_shlibs_CXX=no
11629       ;;
11630     aCC*)
11631       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'
11632       # Commands to make compiler produce verbose output that lists
11633       # what "hidden" libraries, object files and flags are used when
11634       # linking a shared library.
11635       #
11636       # There doesn't appear to be a way to prevent this compiler from
11637       # explicitly linking system object files so we need to strip them
11638       # from the output so that they don't get included in the library
11639       # dependencies.
11640       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'
11641       ;;
11642     *)
11643       if test "$GXX" = yes; then
11644         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'
11645       else
11646         # FIXME: insert proper C++ library support
11647         ld_shlibs_CXX=no
11648       fi
11649       ;;
11650     esac
11651     ;;
11652   hpux10*|hpux11*)
11653     if test $with_gnu_ld = no; then
11654       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11655       hardcode_libdir_separator_CXX=:
11656
11657       case $host_cpu in
11658       hppa*64*|ia64*) ;;
11659       *)
11660         export_dynamic_flag_spec_CXX='${wl}-E'
11661         ;;
11662       esac
11663     fi
11664     case $host_cpu in
11665     hppa*64*|ia64*)
11666       hardcode_direct_CXX=no
11667       hardcode_shlibpath_var_CXX=no
11668       ;;
11669     *)
11670       hardcode_direct_CXX=yes
11671       hardcode_minus_L_CXX=yes # Not in the search PATH,
11672                                               # but as the default
11673                                               # location of the library.
11674       ;;
11675     esac
11676
11677     case $cc_basename in
11678       CC*)
11679         # FIXME: insert proper C++ library support
11680         ld_shlibs_CXX=no
11681         ;;
11682       aCC*)
11683         case $host_cpu in
11684         hppa*64*)
11685           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11686           ;;
11687         ia64*)
11688           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11689           ;;
11690         *)
11691           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11692           ;;
11693         esac
11694         # Commands to make compiler produce verbose output that lists
11695         # what "hidden" libraries, object files and flags are used when
11696         # linking a shared library.
11697         #
11698         # There doesn't appear to be a way to prevent this compiler from
11699         # explicitly linking system object files so we need to strip them
11700         # from the output so that they don't get included in the library
11701         # dependencies.
11702         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'
11703         ;;
11704       *)
11705         if test "$GXX" = yes; then
11706           if test $with_gnu_ld = no; then
11707             case $host_cpu in
11708             hppa*64*)
11709               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710               ;;
11711             ia64*)
11712               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11713               ;;
11714             *)
11715               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'
11716               ;;
11717             esac
11718           fi
11719         else
11720           # FIXME: insert proper C++ library support
11721           ld_shlibs_CXX=no
11722         fi
11723         ;;
11724     esac
11725     ;;
11726   interix[3-9]*)
11727     hardcode_direct_CXX=no
11728     hardcode_shlibpath_var_CXX=no
11729     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11730     export_dynamic_flag_spec_CXX='${wl}-E'
11731     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11732     # Instead, shared libraries are loaded at an image base (0x10000000 by
11733     # default) and relocated if they conflict, which is a slow very memory
11734     # consuming and fragmenting process.  To avoid this, we pick a random,
11735     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11736     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11737     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'
11738     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'
11739     ;;
11740   irix5* | irix6*)
11741     case $cc_basename in
11742       CC*)
11743         # SGI C++
11744         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'
11745
11746         # Archives containing C++ object files must be created using
11747         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11748         # necessary to make sure instantiated templates are included
11749         # in the archive.
11750         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11751         ;;
11752       *)
11753         if test "$GXX" = yes; then
11754           if test "$with_gnu_ld" = no; then
11755             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'
11756           else
11757             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'
11758           fi
11759         fi
11760         link_all_deplibs_CXX=yes
11761         ;;
11762     esac
11763     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11764     hardcode_libdir_separator_CXX=:
11765     ;;
11766   linux* | k*bsd*-gnu)
11767     case $cc_basename in
11768       KCC*)
11769         # Kuck and Associates, Inc. (KAI) C++ Compiler
11770
11771         # KCC will only create a shared library if the output file
11772         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11773         # to its proper name (with version) after linking.
11774         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'
11775         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'
11776         # Commands to make compiler produce verbose output that lists
11777         # what "hidden" libraries, object files and flags are used when
11778         # linking a shared library.
11779         #
11780         # There doesn't appear to be a way to prevent this compiler from
11781         # explicitly linking system object files so we need to strip them
11782         # from the output so that they don't get included in the library
11783         # dependencies.
11784         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'
11785
11786         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11787         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11788
11789         # Archives containing C++ object files must be created using
11790         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11791         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11792         ;;
11793       icpc*)
11794         # Intel C++
11795         with_gnu_ld=yes
11796         # version 8.0 and above of icpc choke on multiply defined symbols
11797         # if we add $predep_objects and $postdep_objects, however 7.1 and
11798         # earlier do not add the objects themselves.
11799         case `$CC -V 2>&1` in
11800         *"Version 7."*)
11801           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11802           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'
11803           ;;
11804         *)  # Version 8.0 or newer
11805           tmp_idyn=
11806           case $host_cpu in
11807             ia64*) tmp_idyn=' -i_dynamic';;
11808           esac
11809           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810           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'
11811           ;;
11812         esac
11813         archive_cmds_need_lc_CXX=no
11814         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11815         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11816         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11817         ;;
11818       pgCC* | pgcpp*)
11819         # Portland Group C++ compiler
11820         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11821         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'
11822
11823         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11824         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11825         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'
11826         ;;
11827       cxx*)
11828         # Compaq C++
11829         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11830         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'
11831
11832         runpath_var=LD_RUN_PATH
11833         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11834         hardcode_libdir_separator_CXX=:
11835
11836         # Commands to make compiler produce verbose output that lists
11837         # what "hidden" libraries, object files and flags are used when
11838         # linking a shared library.
11839         #
11840         # There doesn't appear to be a way to prevent this compiler from
11841         # explicitly linking system object files so we need to strip them
11842         # from the output so that they don't get included in the library
11843         # dependencies.
11844         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'
11845         ;;
11846       *)
11847         case `$CC -V 2>&1 | sed 5q` in
11848         *Sun\ C*)
11849           # Sun C++ 5.9
11850           no_undefined_flag_CXX=' -zdefs'
11851           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11852           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'
11853           hardcode_libdir_flag_spec_CXX='-R$libdir'
11854           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'
11855
11856           # Not sure whether something based on
11857           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11858           # would be better.
11859           output_verbose_link_cmd='echo'
11860
11861           # Archives containing C++ object files must be created using
11862           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11863           # necessary to make sure instantiated templates are included
11864           # in the archive.
11865           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11866           ;;
11867         esac
11868         ;;
11869     esac
11870     ;;
11871   lynxos*)
11872     # FIXME: insert proper C++ library support
11873     ld_shlibs_CXX=no
11874     ;;
11875   m88k*)
11876     # FIXME: insert proper C++ library support
11877     ld_shlibs_CXX=no
11878     ;;
11879   mvs*)
11880     case $cc_basename in
11881       cxx*)
11882         # FIXME: insert proper C++ library support
11883         ld_shlibs_CXX=no
11884         ;;
11885       *)
11886         # FIXME: insert proper C++ library support
11887         ld_shlibs_CXX=no
11888         ;;
11889     esac
11890     ;;
11891   netbsd* | netbsdelf*-gnu)
11892     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11893       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11894       wlarc=
11895       hardcode_libdir_flag_spec_CXX='-R$libdir'
11896       hardcode_direct_CXX=yes
11897       hardcode_shlibpath_var_CXX=no
11898     fi
11899     # Workaround some broken pre-1.5 toolchains
11900     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11901     ;;
11902   openbsd2*)
11903     # C++ shared libraries are fairly broken
11904     ld_shlibs_CXX=no
11905     ;;
11906   openbsd*)
11907     if test -f /usr/libexec/ld.so; then
11908       hardcode_direct_CXX=yes
11909       hardcode_shlibpath_var_CXX=no
11910       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11911       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11912       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11913         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11914         export_dynamic_flag_spec_CXX='${wl}-E'
11915         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11916       fi
11917       output_verbose_link_cmd='echo'
11918     else
11919       ld_shlibs_CXX=no
11920     fi
11921     ;;
11922   osf3*)
11923     case $cc_basename in
11924       KCC*)
11925         # Kuck and Associates, Inc. (KAI) C++ Compiler
11926
11927         # KCC will only create a shared library if the output file
11928         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11929         # to its proper name (with version) after linking.
11930         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'
11931
11932         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11933         hardcode_libdir_separator_CXX=:
11934
11935         # Archives containing C++ object files must be created using
11936         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11937         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11938
11939         ;;
11940       RCC*)
11941         # Rational C++ 2.4.1
11942         # FIXME: insert proper C++ library support
11943         ld_shlibs_CXX=no
11944         ;;
11945       cxx*)
11946         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11947         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'
11948
11949         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11950         hardcode_libdir_separator_CXX=:
11951
11952         # Commands to make compiler produce verbose output that lists
11953         # what "hidden" libraries, object files and flags are used when
11954         # linking a shared library.
11955         #
11956         # There doesn't appear to be a way to prevent this compiler from
11957         # explicitly linking system object files so we need to strip them
11958         # from the output so that they don't get included in the library
11959         # dependencies.
11960         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'
11961         ;;
11962       *)
11963         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11964           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11965           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'
11966
11967           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11968           hardcode_libdir_separator_CXX=:
11969
11970           # Commands to make compiler produce verbose output that lists
11971           # what "hidden" libraries, object files and flags are used when
11972           # linking a shared library.
11973           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11974
11975         else
11976           # FIXME: insert proper C++ library support
11977           ld_shlibs_CXX=no
11978         fi
11979         ;;
11980     esac
11981     ;;
11982   osf4* | osf5*)
11983     case $cc_basename in
11984       KCC*)
11985         # Kuck and Associates, Inc. (KAI) C++ Compiler
11986
11987         # KCC will only create a shared library if the output file
11988         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11989         # to its proper name (with version) after linking.
11990         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'
11991
11992         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11993         hardcode_libdir_separator_CXX=:
11994
11995         # Archives containing C++ object files must be created using
11996         # the KAI C++ compiler.
11997         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11998         ;;
11999       RCC*)
12000         # Rational C++ 2.4.1
12001         # FIXME: insert proper C++ library support
12002         ld_shlibs_CXX=no
12003         ;;
12004       cxx*)
12005         allow_undefined_flag_CXX=' -expect_unresolved \*'
12006         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'
12007         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12008           echo "-hidden">> $lib.exp~
12009           $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~
12010           $rm $lib.exp'
12011
12012         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12013         hardcode_libdir_separator_CXX=:
12014
12015         # Commands to make compiler produce verbose output that lists
12016         # what "hidden" libraries, object files and flags are used when
12017         # linking a shared library.
12018         #
12019         # There doesn't appear to be a way to prevent this compiler from
12020         # explicitly linking system object files so we need to strip them
12021         # from the output so that they don't get included in the library
12022         # dependencies.
12023         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'
12024         ;;
12025       *)
12026         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12027           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12028          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'
12029
12030           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12031           hardcode_libdir_separator_CXX=:
12032
12033           # Commands to make compiler produce verbose output that lists
12034           # what "hidden" libraries, object files and flags are used when
12035           # linking a shared library.
12036           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12037
12038         else
12039           # FIXME: insert proper C++ library support
12040           ld_shlibs_CXX=no
12041         fi
12042         ;;
12043     esac
12044     ;;
12045   psos*)
12046     # FIXME: insert proper C++ library support
12047     ld_shlibs_CXX=no
12048     ;;
12049   sunos4*)
12050     case $cc_basename in
12051       CC*)
12052         # Sun C++ 4.x
12053         # FIXME: insert proper C++ library support
12054         ld_shlibs_CXX=no
12055         ;;
12056       lcc*)
12057         # Lucid
12058         # FIXME: insert proper C++ library support
12059         ld_shlibs_CXX=no
12060         ;;
12061       *)
12062         # FIXME: insert proper C++ library support
12063         ld_shlibs_CXX=no
12064         ;;
12065     esac
12066     ;;
12067   solaris*)
12068     case $cc_basename in
12069       CC*)
12070         # Sun C++ 4.2, 5.x and Centerline C++
12071         archive_cmds_need_lc_CXX=yes
12072         no_undefined_flag_CXX=' -zdefs'
12073         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12074         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12075         $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'
12076
12077         hardcode_libdir_flag_spec_CXX='-R$libdir'
12078         hardcode_shlibpath_var_CXX=no
12079         case $host_os in
12080           solaris2.[0-5] | solaris2.[0-5].*) ;;
12081           *)
12082             # The compiler driver will combine and reorder linker options,
12083             # but understands `-z linker_flag'.
12084             # Supported since Solaris 2.6 (maybe 2.5.1?)
12085             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12086             ;;
12087         esac
12088         link_all_deplibs_CXX=yes
12089
12090         output_verbose_link_cmd='echo'
12091
12092         # Archives containing C++ object files must be created using
12093         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12094         # necessary to make sure instantiated templates are included
12095         # in the archive.
12096         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12097         ;;
12098       gcx*)
12099         # Green Hills C++ Compiler
12100         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12101
12102         # The C++ compiler must be used to create the archive.
12103         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12104         ;;
12105       *)
12106         # GNU C++ compiler with Solaris linker
12107         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12108           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12109           if $CC --version | grep -v '^2\.7' > /dev/null; then
12110             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12112                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12113
12114             # Commands to make compiler produce verbose output that lists
12115             # what "hidden" libraries, object files and flags are used when
12116             # linking a shared library.
12117             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12118           else
12119             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12120             # platform.
12121             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12122             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12123                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12124
12125             # Commands to make compiler produce verbose output that lists
12126             # what "hidden" libraries, object files and flags are used when
12127             # linking a shared library.
12128             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12129           fi
12130
12131           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12132           case $host_os in
12133           solaris2.[0-5] | solaris2.[0-5].*) ;;
12134           *)
12135             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12136             ;;
12137           esac
12138         fi
12139         ;;
12140     esac
12141     ;;
12142   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12143     no_undefined_flag_CXX='${wl}-z,text'
12144     archive_cmds_need_lc_CXX=no
12145     hardcode_shlibpath_var_CXX=no
12146     runpath_var='LD_RUN_PATH'
12147
12148     case $cc_basename in
12149       CC*)
12150         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12151         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12152         ;;
12153       *)
12154         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12155         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12156         ;;
12157     esac
12158     ;;
12159   sysv5* | sco3.2v5* | sco5v6*)
12160     # Note: We can NOT use -z defs as we might desire, because we do not
12161     # link with -lc, and that would cause any symbols used from libc to
12162     # always be unresolved, which means just about no library would
12163     # ever link correctly.  If we're not using GNU ld we use -z text
12164     # though, which does catch some bad symbols but isn't as heavy-handed
12165     # as -z defs.
12166     # For security reasons, it is highly recommended that you always
12167     # use absolute paths for naming shared libraries, and exclude the
12168     # DT_RUNPATH tag from executables and libraries.  But doing so
12169     # requires that you compile everything twice, which is a pain.
12170     # So that behaviour is only enabled if SCOABSPATH is set to a
12171     # non-empty value in the environment.  Most likely only useful for
12172     # creating official distributions of packages.
12173     # This is a hack until libtool officially supports absolute path
12174     # names for shared libraries.
12175     no_undefined_flag_CXX='${wl}-z,text'
12176     allow_undefined_flag_CXX='${wl}-z,nodefs'
12177     archive_cmds_need_lc_CXX=no
12178     hardcode_shlibpath_var_CXX=no
12179     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12180     hardcode_libdir_separator_CXX=':'
12181     link_all_deplibs_CXX=yes
12182     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12183     runpath_var='LD_RUN_PATH'
12184
12185     case $cc_basename in
12186       CC*)
12187         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12188         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12189         ;;
12190       *)
12191         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12192         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12193         ;;
12194     esac
12195     ;;
12196   tandem*)
12197     case $cc_basename in
12198       NCC*)
12199         # NonStop-UX NCC 3.20
12200         # FIXME: insert proper C++ library support
12201         ld_shlibs_CXX=no
12202         ;;
12203       *)
12204         # FIXME: insert proper C++ library support
12205         ld_shlibs_CXX=no
12206         ;;
12207     esac
12208     ;;
12209   vxworks*)
12210     # FIXME: insert proper C++ library support
12211     ld_shlibs_CXX=no
12212     ;;
12213   *)
12214     # FIXME: insert proper C++ library support
12215     ld_shlibs_CXX=no
12216     ;;
12217 esac
12218 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12219 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12220 test "$ld_shlibs_CXX" = no && can_build_shared=no
12221
12222 GCC_CXX="$GXX"
12223 LD_CXX="$LD"
12224
12225 cat > conftest.$ac_ext <<EOF
12226 class Foo
12227 {
12228 public:
12229   Foo (void) { a = 0; }
12230 private:
12231   int a;
12232 };
12233 EOF
12234
12235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12236   (eval $ac_compile) 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }; then
12240   # Parse the compiler output and extract the necessary
12241   # objects, libraries and library flags.
12242
12243   # Sentinel used to keep track of whether or not we are before
12244   # the conftest object file.
12245   pre_test_object_deps_done=no
12246
12247   # The `*' in the case matches for architectures that use `case' in
12248   # $output_verbose_cmd can trigger glob expansion during the loop
12249   # eval without this substitution.
12250   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12251
12252   for p in `eval $output_verbose_link_cmd`; do
12253     case $p in
12254
12255     -L* | -R* | -l*)
12256        # Some compilers place space between "-{L,R}" and the path.
12257        # Remove the space.
12258        if test $p = "-L" \
12259           || test $p = "-R"; then
12260          prev=$p
12261          continue
12262        else
12263          prev=
12264        fi
12265
12266        if test "$pre_test_object_deps_done" = no; then
12267          case $p in
12268          -L* | -R*)
12269            # Internal compiler library paths should come after those
12270            # provided the user.  The postdeps already come after the
12271            # user supplied libs so there is no need to process them.
12272            if test -z "$compiler_lib_search_path_CXX"; then
12273              compiler_lib_search_path_CXX="${prev}${p}"
12274            else
12275              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12276            fi
12277            ;;
12278          # The "-l" case would never come before the object being
12279          # linked, so don't bother handling this case.
12280          esac
12281        else
12282          if test -z "$postdeps_CXX"; then
12283            postdeps_CXX="${prev}${p}"
12284          else
12285            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12286          fi
12287        fi
12288        ;;
12289
12290     *.$objext)
12291        # This assumes that the test object file only shows up
12292        # once in the compiler output.
12293        if test "$p" = "conftest.$objext"; then
12294          pre_test_object_deps_done=yes
12295          continue
12296        fi
12297
12298        if test "$pre_test_object_deps_done" = no; then
12299          if test -z "$predep_objects_CXX"; then
12300            predep_objects_CXX="$p"
12301          else
12302            predep_objects_CXX="$predep_objects_CXX $p"
12303          fi
12304        else
12305          if test -z "$postdep_objects_CXX"; then
12306            postdep_objects_CXX="$p"
12307          else
12308            postdep_objects_CXX="$postdep_objects_CXX $p"
12309          fi
12310        fi
12311        ;;
12312
12313     *) ;; # Ignore the rest.
12314
12315     esac
12316   done
12317
12318   # Clean up.
12319   rm -f a.out a.exe
12320 else
12321   echo "libtool.m4: error: problem compiling CXX test program"
12322 fi
12323
12324 $rm -f confest.$objext
12325
12326 compiler_lib_search_dirs_CXX=
12327 if test -n "$compiler_lib_search_path_CXX"; then
12328   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12329 fi
12330
12331 # PORTME: override above test on systems where it is broken
12332 case $host_os in
12333 interix[3-9]*)
12334   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12335   # hack all around it, let's just trust "g++" to DTRT.
12336   predep_objects_CXX=
12337   postdep_objects_CXX=
12338   postdeps_CXX=
12339   ;;
12340
12341 linux*)
12342   case `$CC -V 2>&1 | sed 5q` in
12343   *Sun\ C*)
12344     # Sun C++ 5.9
12345     #
12346     # The more standards-conforming stlport4 library is
12347     # incompatible with the Cstd library. Avoid specifying
12348     # it if it's in CXXFLAGS. Ignore libCrun as
12349     # -library=stlport4 depends on it.
12350     case " $CXX $CXXFLAGS " in
12351     *" -library=stlport4 "*)
12352       solaris_use_stlport4=yes
12353       ;;
12354     esac
12355     if test "$solaris_use_stlport4" != yes; then
12356       postdeps_CXX='-library=Cstd -library=Crun'
12357     fi
12358     ;;
12359   esac
12360   ;;
12361
12362 solaris*)
12363   case $cc_basename in
12364   CC*)
12365     # The more standards-conforming stlport4 library is
12366     # incompatible with the Cstd library. Avoid specifying
12367     # it if it's in CXXFLAGS. Ignore libCrun as
12368     # -library=stlport4 depends on it.
12369     case " $CXX $CXXFLAGS " in
12370     *" -library=stlport4 "*)
12371       solaris_use_stlport4=yes
12372       ;;
12373     esac
12374
12375     # Adding this requires a known-good setup of shared libraries for
12376     # Sun compiler versions before 5.6, else PIC objects from an old
12377     # archive will be linked into the output, leading to subtle bugs.
12378     if test "$solaris_use_stlport4" != yes; then
12379       postdeps_CXX='-library=Cstd -library=Crun'
12380     fi
12381     ;;
12382   esac
12383   ;;
12384 esac
12385
12386 case " $postdeps_CXX " in
12387 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12388 esac
12389
12390 lt_prog_compiler_wl_CXX=
12391 lt_prog_compiler_pic_CXX=
12392 lt_prog_compiler_static_CXX=
12393
12394 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12395 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12396
12397   # C++ specific cases for pic, static, wl, etc.
12398   if test "$GXX" = yes; then
12399     lt_prog_compiler_wl_CXX='-Wl,'
12400     lt_prog_compiler_static_CXX='-static'
12401
12402     case $host_os in
12403     aix*)
12404       # All AIX code is PIC.
12405       if test "$host_cpu" = ia64; then
12406         # AIX 5 now supports IA64 processor
12407         lt_prog_compiler_static_CXX='-Bstatic'
12408       fi
12409       ;;
12410     amigaos*)
12411       # FIXME: we need at least 68020 code to build shared libraries, but
12412       # adding the `-m68020' flag to GCC prevents building anything better,
12413       # like `-m68040'.
12414       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12415       ;;
12416     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12417       # PIC is the default for these OSes.
12418       ;;
12419     mingw* | cygwin* | os2* | pw32*)
12420       # This hack is so that the source file can tell whether it is being
12421       # built for inclusion in a dll (and should export symbols for example).
12422       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12423       # (--disable-auto-import) libraries
12424       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12425       ;;
12426     darwin* | rhapsody*)
12427       # PIC is the default on this platform
12428       # Common symbols not allowed in MH_DYLIB files
12429       lt_prog_compiler_pic_CXX='-fno-common'
12430       ;;
12431     *djgpp*)
12432       # DJGPP does not support shared libraries at all
12433       lt_prog_compiler_pic_CXX=
12434       ;;
12435     interix[3-9]*)
12436       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12437       # Instead, we relocate shared libraries at runtime.
12438       ;;
12439     sysv4*MP*)
12440       if test -d /usr/nec; then
12441         lt_prog_compiler_pic_CXX=-Kconform_pic
12442       fi
12443       ;;
12444     hpux*)
12445       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12446       # not for PA HP-UX.
12447       case $host_cpu in
12448       hppa*64*|ia64*)
12449         ;;
12450       *)
12451         lt_prog_compiler_pic_CXX='-fPIC'
12452         ;;
12453       esac
12454       ;;
12455     *)
12456       lt_prog_compiler_pic_CXX='-fPIC'
12457       ;;
12458     esac
12459   else
12460     case $host_os in
12461       aix[4-9]*)
12462         # All AIX code is PIC.
12463         if test "$host_cpu" = ia64; then
12464           # AIX 5 now supports IA64 processor
12465           lt_prog_compiler_static_CXX='-Bstatic'
12466         else
12467           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12468         fi
12469         ;;
12470       chorus*)
12471         case $cc_basename in
12472         cxch68*)
12473           # Green Hills C++ Compiler
12474           # _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"
12475           ;;
12476         esac
12477         ;;
12478        darwin*)
12479          # PIC is the default on this platform
12480          # Common symbols not allowed in MH_DYLIB files
12481          case $cc_basename in
12482            xlc*)
12483            lt_prog_compiler_pic_CXX='-qnocommon'
12484            lt_prog_compiler_wl_CXX='-Wl,'
12485            ;;
12486          esac
12487        ;;
12488       dgux*)
12489         case $cc_basename in
12490           ec++*)
12491             lt_prog_compiler_pic_CXX='-KPIC'
12492             ;;
12493           ghcx*)
12494             # Green Hills C++ Compiler
12495             lt_prog_compiler_pic_CXX='-pic'
12496             ;;
12497           *)
12498             ;;
12499         esac
12500         ;;
12501       freebsd* | dragonfly*)
12502         # FreeBSD uses GNU C++
12503         ;;
12504       hpux9* | hpux10* | hpux11*)
12505         case $cc_basename in
12506           CC*)
12507             lt_prog_compiler_wl_CXX='-Wl,'
12508             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12509             if test "$host_cpu" != ia64; then
12510               lt_prog_compiler_pic_CXX='+Z'
12511             fi
12512             ;;
12513           aCC*)
12514             lt_prog_compiler_wl_CXX='-Wl,'
12515             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12516             case $host_cpu in
12517             hppa*64*|ia64*)
12518               # +Z the default
12519               ;;
12520             *)
12521               lt_prog_compiler_pic_CXX='+Z'
12522               ;;
12523             esac
12524             ;;
12525           *)
12526             ;;
12527         esac
12528         ;;
12529       interix*)
12530         # This is c89, which is MS Visual C++ (no shared libs)
12531         # Anyone wants to do a port?
12532         ;;
12533       irix5* | irix6* | nonstopux*)
12534         case $cc_basename in
12535           CC*)
12536             lt_prog_compiler_wl_CXX='-Wl,'
12537             lt_prog_compiler_static_CXX='-non_shared'
12538             # CC pic flag -KPIC is the default.
12539             ;;
12540           *)
12541             ;;
12542         esac
12543         ;;
12544       linux* | k*bsd*-gnu)
12545         case $cc_basename in
12546           KCC*)
12547             # KAI C++ Compiler
12548             lt_prog_compiler_wl_CXX='--backend -Wl,'
12549             lt_prog_compiler_pic_CXX='-fPIC'
12550             ;;
12551           icpc* | ecpc*)
12552             # Intel C++
12553             lt_prog_compiler_wl_CXX='-Wl,'
12554             lt_prog_compiler_pic_CXX='-KPIC'
12555             lt_prog_compiler_static_CXX='-static'
12556             ;;
12557           pgCC* | pgcpp*)
12558             # Portland Group C++ compiler.
12559             lt_prog_compiler_wl_CXX='-Wl,'
12560             lt_prog_compiler_pic_CXX='-fpic'
12561             lt_prog_compiler_static_CXX='-Bstatic'
12562             ;;
12563           cxx*)
12564             # Compaq C++
12565             # Make sure the PIC flag is empty.  It appears that all Alpha
12566             # Linux and Compaq Tru64 Unix objects are PIC.
12567             lt_prog_compiler_pic_CXX=
12568             lt_prog_compiler_static_CXX='-non_shared'
12569             ;;
12570           *)
12571             case `$CC -V 2>&1 | sed 5q` in
12572             *Sun\ C*)
12573               # Sun C++ 5.9
12574               lt_prog_compiler_pic_CXX='-KPIC'
12575               lt_prog_compiler_static_CXX='-Bstatic'
12576               lt_prog_compiler_wl_CXX='-Qoption ld '
12577               ;;
12578             esac
12579             ;;
12580         esac
12581         ;;
12582       lynxos*)
12583         ;;
12584       m88k*)
12585         ;;
12586       mvs*)
12587         case $cc_basename in
12588           cxx*)
12589             lt_prog_compiler_pic_CXX='-W c,exportall'
12590             ;;
12591           *)
12592             ;;
12593         esac
12594         ;;
12595       netbsd* | netbsdelf*-gnu)
12596         ;;
12597       osf3* | osf4* | osf5*)
12598         case $cc_basename in
12599           KCC*)
12600             lt_prog_compiler_wl_CXX='--backend -Wl,'
12601             ;;
12602           RCC*)
12603             # Rational C++ 2.4.1
12604             lt_prog_compiler_pic_CXX='-pic'
12605             ;;
12606           cxx*)
12607             # Digital/Compaq C++
12608             lt_prog_compiler_wl_CXX='-Wl,'
12609             # Make sure the PIC flag is empty.  It appears that all Alpha
12610             # Linux and Compaq Tru64 Unix objects are PIC.
12611             lt_prog_compiler_pic_CXX=
12612             lt_prog_compiler_static_CXX='-non_shared'
12613             ;;
12614           *)
12615             ;;
12616         esac
12617         ;;
12618       psos*)
12619         ;;
12620       solaris*)
12621         case $cc_basename in
12622           CC*)
12623             # Sun C++ 4.2, 5.x and Centerline C++
12624             lt_prog_compiler_pic_CXX='-KPIC'
12625             lt_prog_compiler_static_CXX='-Bstatic'
12626             lt_prog_compiler_wl_CXX='-Qoption ld '
12627             ;;
12628           gcx*)
12629             # Green Hills C++ Compiler
12630             lt_prog_compiler_pic_CXX='-PIC'
12631             ;;
12632           *)
12633             ;;
12634         esac
12635         ;;
12636       sunos4*)
12637         case $cc_basename in
12638           CC*)
12639             # Sun C++ 4.x
12640             lt_prog_compiler_pic_CXX='-pic'
12641             lt_prog_compiler_static_CXX='-Bstatic'
12642             ;;
12643           lcc*)
12644             # Lucid
12645             lt_prog_compiler_pic_CXX='-pic'
12646             ;;
12647           *)
12648             ;;
12649         esac
12650         ;;
12651       tandem*)
12652         case $cc_basename in
12653           NCC*)
12654             # NonStop-UX NCC 3.20
12655             lt_prog_compiler_pic_CXX='-KPIC'
12656             ;;
12657           *)
12658             ;;
12659         esac
12660         ;;
12661       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12662         case $cc_basename in
12663           CC*)
12664             lt_prog_compiler_wl_CXX='-Wl,'
12665             lt_prog_compiler_pic_CXX='-KPIC'
12666             lt_prog_compiler_static_CXX='-Bstatic'
12667             ;;
12668         esac
12669         ;;
12670       vxworks*)
12671         ;;
12672       *)
12673         lt_prog_compiler_can_build_shared_CXX=no
12674         ;;
12675     esac
12676   fi
12677
12678 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12679 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12680
12681 #
12682 # Check to make sure the PIC flag actually works.
12683 #
12684 if test -n "$lt_prog_compiler_pic_CXX"; then
12685
12686 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12687 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12688 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12689   echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691   lt_cv_prog_compiler_pic_works_CXX=no
12692   ac_outfile=conftest.$ac_objext
12693    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12694    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12695    # Insert the option either (1) after the last *FLAGS variable, or
12696    # (2) before a word containing "conftest.", or (3) at the end.
12697    # Note that $ac_compile itself does not contain backslashes and begins
12698    # with a dollar sign (not a hyphen), so the echo should work correctly.
12699    # The option is referenced via a variable to avoid confusing sed.
12700    lt_compile=`echo "$ac_compile" | $SED \
12701    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12702    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12703    -e 's:$: $lt_compiler_flag:'`
12704    (eval echo "\"\$as_me:12704: $lt_compile\"" >&5)
12705    (eval "$lt_compile" 2>conftest.err)
12706    ac_status=$?
12707    cat conftest.err >&5
12708    echo "$as_me:12708: \$? = $ac_status" >&5
12709    if (exit $ac_status) && test -s "$ac_outfile"; then
12710      # The compiler can only warn and ignore the option if not recognized
12711      # So say no if there are warnings other than the usual output.
12712      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12713      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12714      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12715        lt_cv_prog_compiler_pic_works_CXX=yes
12716      fi
12717    fi
12718    $rm conftest*
12719
12720 fi
12721 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12722 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12723
12724 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12725     case $lt_prog_compiler_pic_CXX in
12726      "" | " "*) ;;
12727      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12728      esac
12729 else
12730     lt_prog_compiler_pic_CXX=
12731      lt_prog_compiler_can_build_shared_CXX=no
12732 fi
12733
12734 fi
12735 case $host_os in
12736   # For platforms which do not support PIC, -DPIC is meaningless:
12737   *djgpp*)
12738     lt_prog_compiler_pic_CXX=
12739     ;;
12740   *)
12741     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12742     ;;
12743 esac
12744
12745 #
12746 # Check to make sure the static flag actually works.
12747 #
12748 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12749 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12750 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12751 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12752   echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754   lt_cv_prog_compiler_static_works_CXX=no
12755    save_LDFLAGS="$LDFLAGS"
12756    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12757    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12758    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12759      # The linker can only warn and ignore the option if not recognized
12760      # So say no if there are warnings
12761      if test -s conftest.err; then
12762        # Append any errors to the config.log.
12763        cat conftest.err 1>&5
12764        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12765        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12766        if diff conftest.exp conftest.er2 >/dev/null; then
12767          lt_cv_prog_compiler_static_works_CXX=yes
12768        fi
12769      else
12770        lt_cv_prog_compiler_static_works_CXX=yes
12771      fi
12772    fi
12773    $rm -r conftest*
12774    LDFLAGS="$save_LDFLAGS"
12775
12776 fi
12777 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12778 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12779
12780 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12781     :
12782 else
12783     lt_prog_compiler_static_CXX=
12784 fi
12785
12786
12787 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12788 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12789 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12790   echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792   lt_cv_prog_compiler_c_o_CXX=no
12793    $rm -r conftest 2>/dev/null
12794    mkdir conftest
12795    cd conftest
12796    mkdir out
12797    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12798
12799    lt_compiler_flag="-o out/conftest2.$ac_objext"
12800    # Insert the option either (1) after the last *FLAGS variable, or
12801    # (2) before a word containing "conftest.", or (3) at the end.
12802    # Note that $ac_compile itself does not contain backslashes and begins
12803    # with a dollar sign (not a hyphen), so the echo should work correctly.
12804    lt_compile=`echo "$ac_compile" | $SED \
12805    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12806    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12807    -e 's:$: $lt_compiler_flag:'`
12808    (eval echo "\"\$as_me:12808: $lt_compile\"" >&5)
12809    (eval "$lt_compile" 2>out/conftest.err)
12810    ac_status=$?
12811    cat out/conftest.err >&5
12812    echo "$as_me:12812: \$? = $ac_status" >&5
12813    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12814    then
12815      # The compiler can only warn and ignore the option if not recognized
12816      # So say no if there are warnings
12817      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12818      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12819      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12820        lt_cv_prog_compiler_c_o_CXX=yes
12821      fi
12822    fi
12823    chmod u+w . 2>&5
12824    $rm conftest*
12825    # SGI C++ compiler will create directory out/ii_files/ for
12826    # template instantiation
12827    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12828    $rm out/* && rmdir out
12829    cd ..
12830    rmdir conftest
12831    $rm conftest*
12832
12833 fi
12834 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12835 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12836
12837
12838 hard_links="nottested"
12839 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12840   # do not overwrite the value of need_locks provided by the user
12841   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12842 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12843   hard_links=yes
12844   $rm conftest*
12845   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12846   touch conftest.a
12847   ln conftest.a conftest.b 2>&5 || hard_links=no
12848   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12849   { echo "$as_me:$LINENO: result: $hard_links" >&5
12850 echo "${ECHO_T}$hard_links" >&6; }
12851   if test "$hard_links" = no; then
12852     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12853 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12854     need_locks=warn
12855   fi
12856 else
12857   need_locks=no
12858 fi
12859
12860 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12861 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12862
12863   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12864   case $host_os in
12865   aix[4-9]*)
12866     # If we're using GNU nm, then we don't want the "-C" option.
12867     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12868     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12869       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'
12870     else
12871       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'
12872     fi
12873     ;;
12874   pw32*)
12875     export_symbols_cmds_CXX="$ltdll_cmds"
12876   ;;
12877   cygwin* | mingw*)
12878     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'
12879   ;;
12880   linux* | k*bsd*-gnu)
12881     link_all_deplibs_CXX=no
12882   ;;
12883   *)
12884     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12885   ;;
12886   esac
12887   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12888
12889 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12890 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12891 test "$ld_shlibs_CXX" = no && can_build_shared=no
12892
12893 #
12894 # Do we need to explicitly link libc?
12895 #
12896 case "x$archive_cmds_need_lc_CXX" in
12897 x|xyes)
12898   # Assume -lc should be added
12899   archive_cmds_need_lc_CXX=yes
12900
12901   if test "$enable_shared" = yes && test "$GCC" = yes; then
12902     case $archive_cmds_CXX in
12903     *'~'*)
12904       # FIXME: we may have to deal with multi-command sequences.
12905       ;;
12906     '$CC '*)
12907       # Test whether the compiler implicitly links with -lc since on some
12908       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12909       # to ld, don't add -lc before -lgcc.
12910       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12911 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12912       $rm conftest*
12913       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12914
12915       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12916   (eval $ac_compile) 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); } 2>conftest.err; then
12920         soname=conftest
12921         lib=conftest
12922         libobjs=conftest.$ac_objext
12923         deplibs=
12924         wl=$lt_prog_compiler_wl_CXX
12925         pic_flag=$lt_prog_compiler_pic_CXX
12926         compiler_flags=-v
12927         linker_flags=-v
12928         verstring=
12929         output_objdir=.
12930         libname=conftest
12931         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12932         allow_undefined_flag_CXX=
12933         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12934   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }
12938         then
12939           archive_cmds_need_lc_CXX=no
12940         else
12941           archive_cmds_need_lc_CXX=yes
12942         fi
12943         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12944       else
12945         cat conftest.err 1>&5
12946       fi
12947       $rm conftest*
12948       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12949 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12950       ;;
12951     esac
12952   fi
12953   ;;
12954 esac
12955
12956 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12957 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12958 library_names_spec=
12959 libname_spec='lib$name'
12960 soname_spec=
12961 shrext_cmds=".so"
12962 postinstall_cmds=
12963 postuninstall_cmds=
12964 finish_cmds=
12965 finish_eval=
12966 shlibpath_var=
12967 shlibpath_overrides_runpath=unknown
12968 version_type=none
12969 dynamic_linker="$host_os ld.so"
12970 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12971
12972 need_lib_prefix=unknown
12973 hardcode_into_libs=no
12974
12975 # when you set need_version to no, make sure it does not cause -set_version
12976 # flags to be left without arguments
12977 need_version=unknown
12978
12979 case $host_os in
12980 aix3*)
12981   version_type=linux
12982   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12983   shlibpath_var=LIBPATH
12984
12985   # AIX 3 has no versioning support, so we append a major version to the name.
12986   soname_spec='${libname}${release}${shared_ext}$major'
12987   ;;
12988
12989 aix[4-9]*)
12990   version_type=linux
12991   need_lib_prefix=no
12992   need_version=no
12993   hardcode_into_libs=yes
12994   if test "$host_cpu" = ia64; then
12995     # AIX 5 supports IA64
12996     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12997     shlibpath_var=LD_LIBRARY_PATH
12998   else
12999     # With GCC up to 2.95.x, collect2 would create an import file
13000     # for dependence libraries.  The import file would start with
13001     # the line `#! .'.  This would cause the generated library to
13002     # depend on `.', always an invalid library.  This was fixed in
13003     # development snapshots of GCC prior to 3.0.
13004     case $host_os in
13005       aix4 | aix4.[01] | aix4.[01].*)
13006       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13007            echo ' yes '
13008            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13009         :
13010       else
13011         can_build_shared=no
13012       fi
13013       ;;
13014     esac
13015     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13016     # soname into executable. Probably we can add versioning support to
13017     # collect2, so additional links can be useful in future.
13018     if test "$aix_use_runtimelinking" = yes; then
13019       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13020       # instead of lib<name>.a to let people know that these are not
13021       # typical AIX shared libraries.
13022       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023     else
13024       # We preserve .a as extension for shared libraries through AIX4.2
13025       # and later when we are not doing run time linking.
13026       library_names_spec='${libname}${release}.a $libname.a'
13027       soname_spec='${libname}${release}${shared_ext}$major'
13028     fi
13029     shlibpath_var=LIBPATH
13030   fi
13031   ;;
13032
13033 amigaos*)
13034   library_names_spec='$libname.ixlibrary $libname.a'
13035   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13036   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'
13037   ;;
13038
13039 beos*)
13040   library_names_spec='${libname}${shared_ext}'
13041   dynamic_linker="$host_os ld.so"
13042   shlibpath_var=LIBRARY_PATH
13043   ;;
13044
13045 bsdi[45]*)
13046   version_type=linux
13047   need_version=no
13048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13049   soname_spec='${libname}${release}${shared_ext}$major'
13050   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13051   shlibpath_var=LD_LIBRARY_PATH
13052   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13053   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13054   # the default ld.so.conf also contains /usr/contrib/lib and
13055   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13056   # libtool to hard-code these into programs
13057   ;;
13058
13059 cygwin* | mingw* | pw32*)
13060   version_type=windows
13061   shrext_cmds=".dll"
13062   need_version=no
13063   need_lib_prefix=no
13064
13065   case $GCC,$host_os in
13066   yes,cygwin* | yes,mingw* | yes,pw32*)
13067     library_names_spec='$libname.dll.a'
13068     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13069     postinstall_cmds='base_file=`basename \${file}`~
13070       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13071       dldir=$destdir/`dirname \$dlpath`~
13072       test -d \$dldir || mkdir -p \$dldir~
13073       $install_prog $dir/$dlname \$dldir/$dlname~
13074       chmod a+x \$dldir/$dlname'
13075     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13076       dlpath=$dir/\$dldll~
13077        $rm \$dlpath'
13078     shlibpath_overrides_runpath=yes
13079
13080     case $host_os in
13081     cygwin*)
13082       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13083       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13084       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13085       ;;
13086     mingw*)
13087       # MinGW DLLs use traditional 'lib' prefix
13088       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13089       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13090       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13091         # It is most probably a Windows format PATH printed by
13092         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13093         # path with ; separators, and with drive letters. We can handle the
13094         # drive letters (cygwin fileutils understands them), so leave them,
13095         # especially as we might pass files found there to a mingw objdump,
13096         # which wouldn't understand a cygwinified path. Ahh.
13097         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13098       else
13099         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13100       fi
13101       ;;
13102     pw32*)
13103       # pw32 DLLs use 'pw' prefix rather than 'lib'
13104       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13105       ;;
13106     esac
13107     ;;
13108
13109   *)
13110     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13111     ;;
13112   esac
13113   dynamic_linker='Win32 ld.exe'
13114   # FIXME: first we should search . and the directory the executable is in
13115   shlibpath_var=PATH
13116   ;;
13117
13118 darwin* | rhapsody*)
13119   dynamic_linker="$host_os dyld"
13120   version_type=darwin
13121   need_lib_prefix=no
13122   need_version=no
13123   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13124   soname_spec='${libname}${release}${major}$shared_ext'
13125   shlibpath_overrides_runpath=yes
13126   shlibpath_var=DYLD_LIBRARY_PATH
13127   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13128
13129   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13130   ;;
13131
13132 dgux*)
13133   version_type=linux
13134   need_lib_prefix=no
13135   need_version=no
13136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13137   soname_spec='${libname}${release}${shared_ext}$major'
13138   shlibpath_var=LD_LIBRARY_PATH
13139   ;;
13140
13141 freebsd1*)
13142   dynamic_linker=no
13143   ;;
13144
13145 freebsd* | dragonfly*)
13146   # DragonFly does not have aout.  When/if they implement a new
13147   # versioning mechanism, adjust this.
13148   if test -x /usr/bin/objformat; then
13149     objformat=`/usr/bin/objformat`
13150   else
13151     case $host_os in
13152     freebsd[123]*) objformat=aout ;;
13153     *) objformat=elf ;;
13154     esac
13155   fi
13156   version_type=freebsd-$objformat
13157   case $version_type in
13158     freebsd-elf*)
13159       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13160       need_version=no
13161       need_lib_prefix=no
13162       ;;
13163     freebsd-*)
13164       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13165       need_version=yes
13166       ;;
13167   esac
13168   shlibpath_var=LD_LIBRARY_PATH
13169   case $host_os in
13170   freebsd2*)
13171     shlibpath_overrides_runpath=yes
13172     ;;
13173   freebsd3.[01]* | freebsdelf3.[01]*)
13174     shlibpath_overrides_runpath=yes
13175     hardcode_into_libs=yes
13176     ;;
13177   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13178   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13179     shlibpath_overrides_runpath=no
13180     hardcode_into_libs=yes
13181     ;;
13182   *) # from 4.6 on, and DragonFly
13183     shlibpath_overrides_runpath=yes
13184     hardcode_into_libs=yes
13185     ;;
13186   esac
13187   ;;
13188
13189 gnu*)
13190   version_type=linux
13191   need_lib_prefix=no
13192   need_version=no
13193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13194   soname_spec='${libname}${release}${shared_ext}$major'
13195   shlibpath_var=LD_LIBRARY_PATH
13196   hardcode_into_libs=yes
13197   ;;
13198
13199 hpux9* | hpux10* | hpux11*)
13200   # Give a soname corresponding to the major version so that dld.sl refuses to
13201   # link against other versions.
13202   version_type=sunos
13203   need_lib_prefix=no
13204   need_version=no
13205   case $host_cpu in
13206   ia64*)
13207     shrext_cmds='.so'
13208     hardcode_into_libs=yes
13209     dynamic_linker="$host_os dld.so"
13210     shlibpath_var=LD_LIBRARY_PATH
13211     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13213     soname_spec='${libname}${release}${shared_ext}$major'
13214     if test "X$HPUX_IA64_MODE" = X32; then
13215       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13216     else
13217       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13218     fi
13219     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13220     ;;
13221    hppa*64*)
13222      shrext_cmds='.sl'
13223      hardcode_into_libs=yes
13224      dynamic_linker="$host_os dld.sl"
13225      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13226      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13227      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228      soname_spec='${libname}${release}${shared_ext}$major'
13229      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13230      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13231      ;;
13232    *)
13233     shrext_cmds='.sl'
13234     dynamic_linker="$host_os dld.sl"
13235     shlibpath_var=SHLIB_PATH
13236     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13238     soname_spec='${libname}${release}${shared_ext}$major'
13239     ;;
13240   esac
13241   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13242   postinstall_cmds='chmod 555 $lib'
13243   ;;
13244
13245 interix[3-9]*)
13246   version_type=linux
13247   need_lib_prefix=no
13248   need_version=no
13249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13250   soname_spec='${libname}${release}${shared_ext}$major'
13251   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13252   shlibpath_var=LD_LIBRARY_PATH
13253   shlibpath_overrides_runpath=no
13254   hardcode_into_libs=yes
13255   ;;
13256
13257 irix5* | irix6* | nonstopux*)
13258   case $host_os in
13259     nonstopux*) version_type=nonstopux ;;
13260     *)
13261         if test "$lt_cv_prog_gnu_ld" = yes; then
13262                 version_type=linux
13263         else
13264                 version_type=irix
13265         fi ;;
13266   esac
13267   need_lib_prefix=no
13268   need_version=no
13269   soname_spec='${libname}${release}${shared_ext}$major'
13270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13271   case $host_os in
13272   irix5* | nonstopux*)
13273     libsuff= shlibsuff=
13274     ;;
13275   *)
13276     case $LD in # libtool.m4 will add one of these switches to LD
13277     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13278       libsuff= shlibsuff= libmagic=32-bit;;
13279     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13280       libsuff=32 shlibsuff=N32 libmagic=N32;;
13281     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13282       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13283     *) libsuff= shlibsuff= libmagic=never-match;;
13284     esac
13285     ;;
13286   esac
13287   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13288   shlibpath_overrides_runpath=no
13289   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13290   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13291   hardcode_into_libs=yes
13292   ;;
13293
13294 # No shared lib support for Linux oldld, aout, or coff.
13295 linux*oldld* | linux*aout* | linux*coff*)
13296   dynamic_linker=no
13297   ;;
13298
13299 # This must be Linux ELF.
13300 linux* | k*bsd*-gnu)
13301   version_type=linux
13302   need_lib_prefix=no
13303   need_version=no
13304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13305   soname_spec='${libname}${release}${shared_ext}$major'
13306   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13307   shlibpath_var=LD_LIBRARY_PATH
13308   shlibpath_overrides_runpath=no
13309   # This implies no fast_install, which is unacceptable.
13310   # Some rework will be needed to allow for fast_install
13311   # before this can be enabled.
13312   hardcode_into_libs=yes
13313
13314   # Append ld.so.conf contents to the search path
13315   if test -f /etc/ld.so.conf; then
13316     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' ' '`
13317     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13318   fi
13319
13320   # We used to test for /lib/ld.so.1 and disable shared libraries on
13321   # powerpc, because MkLinux only supported shared libraries with the
13322   # GNU dynamic linker.  Since this was broken with cross compilers,
13323   # most powerpc-linux boxes support dynamic linking these days and
13324   # people can always --disable-shared, the test was removed, and we
13325   # assume the GNU/Linux dynamic linker is in use.
13326   dynamic_linker='GNU/Linux ld.so'
13327   ;;
13328
13329 netbsdelf*-gnu)
13330   version_type=linux
13331   need_lib_prefix=no
13332   need_version=no
13333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13334   soname_spec='${libname}${release}${shared_ext}$major'
13335   shlibpath_var=LD_LIBRARY_PATH
13336   shlibpath_overrides_runpath=no
13337   hardcode_into_libs=yes
13338   dynamic_linker='NetBSD ld.elf_so'
13339   ;;
13340
13341 netbsd*)
13342   version_type=sunos
13343   need_lib_prefix=no
13344   need_version=no
13345   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13347     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13348     dynamic_linker='NetBSD (a.out) ld.so'
13349   else
13350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13351     soname_spec='${libname}${release}${shared_ext}$major'
13352     dynamic_linker='NetBSD ld.elf_so'
13353   fi
13354   shlibpath_var=LD_LIBRARY_PATH
13355   shlibpath_overrides_runpath=yes
13356   hardcode_into_libs=yes
13357   ;;
13358
13359 newsos6)
13360   version_type=linux
13361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362   shlibpath_var=LD_LIBRARY_PATH
13363   shlibpath_overrides_runpath=yes
13364   ;;
13365
13366 nto-qnx*)
13367   version_type=linux
13368   need_lib_prefix=no
13369   need_version=no
13370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13371   soname_spec='${libname}${release}${shared_ext}$major'
13372   shlibpath_var=LD_LIBRARY_PATH
13373   shlibpath_overrides_runpath=yes
13374   ;;
13375
13376 openbsd*)
13377   version_type=sunos
13378   sys_lib_dlsearch_path_spec="/usr/lib"
13379   need_lib_prefix=no
13380   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13381   case $host_os in
13382     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13383     *)                         need_version=no  ;;
13384   esac
13385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13386   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13387   shlibpath_var=LD_LIBRARY_PATH
13388   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13389     case $host_os in
13390       openbsd2.[89] | openbsd2.[89].*)
13391         shlibpath_overrides_runpath=no
13392         ;;
13393       *)
13394         shlibpath_overrides_runpath=yes
13395         ;;
13396       esac
13397   else
13398     shlibpath_overrides_runpath=yes
13399   fi
13400   ;;
13401
13402 os2*)
13403   libname_spec='$name'
13404   shrext_cmds=".dll"
13405   need_lib_prefix=no
13406   library_names_spec='$libname${shared_ext} $libname.a'
13407   dynamic_linker='OS/2 ld.exe'
13408   shlibpath_var=LIBPATH
13409   ;;
13410
13411 osf3* | osf4* | osf5*)
13412   version_type=osf
13413   need_lib_prefix=no
13414   need_version=no
13415   soname_spec='${libname}${release}${shared_ext}$major'
13416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417   shlibpath_var=LD_LIBRARY_PATH
13418   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13419   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13420   ;;
13421
13422 rdos*)
13423   dynamic_linker=no
13424   ;;
13425
13426 solaris*)
13427   version_type=linux
13428   need_lib_prefix=no
13429   need_version=no
13430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13431   soname_spec='${libname}${release}${shared_ext}$major'
13432   shlibpath_var=LD_LIBRARY_PATH
13433   shlibpath_overrides_runpath=yes
13434   hardcode_into_libs=yes
13435   # ldd complains unless libraries are executable
13436   postinstall_cmds='chmod +x $lib'
13437   ;;
13438
13439 sunos4*)
13440   version_type=sunos
13441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13442   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13443   shlibpath_var=LD_LIBRARY_PATH
13444   shlibpath_overrides_runpath=yes
13445   if test "$with_gnu_ld" = yes; then
13446     need_lib_prefix=no
13447   fi
13448   need_version=yes
13449   ;;
13450
13451 sysv4 | sysv4.3*)
13452   version_type=linux
13453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454   soname_spec='${libname}${release}${shared_ext}$major'
13455   shlibpath_var=LD_LIBRARY_PATH
13456   case $host_vendor in
13457     sni)
13458       shlibpath_overrides_runpath=no
13459       need_lib_prefix=no
13460       export_dynamic_flag_spec='${wl}-Blargedynsym'
13461       runpath_var=LD_RUN_PATH
13462       ;;
13463     siemens)
13464       need_lib_prefix=no
13465       ;;
13466     motorola)
13467       need_lib_prefix=no
13468       need_version=no
13469       shlibpath_overrides_runpath=no
13470       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13471       ;;
13472   esac
13473   ;;
13474
13475 sysv4*MP*)
13476   if test -d /usr/nec ;then
13477     version_type=linux
13478     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13479     soname_spec='$libname${shared_ext}.$major'
13480     shlibpath_var=LD_LIBRARY_PATH
13481   fi
13482   ;;
13483
13484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13485   version_type=freebsd-elf
13486   need_lib_prefix=no
13487   need_version=no
13488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13489   soname_spec='${libname}${release}${shared_ext}$major'
13490   shlibpath_var=LD_LIBRARY_PATH
13491   hardcode_into_libs=yes
13492   if test "$with_gnu_ld" = yes; then
13493     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13494     shlibpath_overrides_runpath=no
13495   else
13496     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13497     shlibpath_overrides_runpath=yes
13498     case $host_os in
13499       sco3.2v5*)
13500         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13501         ;;
13502     esac
13503   fi
13504   sys_lib_dlsearch_path_spec='/usr/lib'
13505   ;;
13506
13507 uts4*)
13508   version_type=linux
13509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510   soname_spec='${libname}${release}${shared_ext}$major'
13511   shlibpath_var=LD_LIBRARY_PATH
13512   ;;
13513
13514 *)
13515   dynamic_linker=no
13516   ;;
13517 esac
13518 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13519 echo "${ECHO_T}$dynamic_linker" >&6; }
13520 test "$dynamic_linker" = no && can_build_shared=no
13521
13522 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13523   echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13526 fi
13527
13528 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13529 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13533 fi
13534
13535 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13536
13537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13538 if test "$GCC" = yes; then
13539   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13540 fi
13541
13542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13544 hardcode_action_CXX=
13545 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13546    test -n "$runpath_var_CXX" || \
13547    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13548
13549   # We can hardcode non-existant directories.
13550   if test "$hardcode_direct_CXX" != no &&
13551      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13552      # have to relink, otherwise we might link with an installed library
13553      # when we should be linking with a yet-to-be-installed one
13554      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13555      test "$hardcode_minus_L_CXX" != no; then
13556     # Linking always hardcodes the temporary library directory.
13557     hardcode_action_CXX=relink
13558   else
13559     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13560     hardcode_action_CXX=immediate
13561   fi
13562 else
13563   # We cannot hardcode anything, or else we can only hardcode existing
13564   # directories.
13565   hardcode_action_CXX=unsupported
13566 fi
13567 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13568 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13569
13570 if test "$hardcode_action_CXX" = relink; then
13571   # Fast installation is not supported
13572   enable_fast_install=no
13573 elif test "$shlibpath_overrides_runpath" = yes ||
13574      test "$enable_shared" = no; then
13575   # Fast installation is not necessary
13576   enable_fast_install=needless
13577 fi
13578
13579
13580 # The else clause should only fire when bootstrapping the
13581 # libtool distribution, otherwise you forgot to ship ltmain.sh
13582 # with your package, and you will get complaints that there are
13583 # no rules to generate ltmain.sh.
13584 if test -f "$ltmain"; then
13585   # See if we are running on zsh, and set the options which allow our commands through
13586   # without removal of \ escapes.
13587   if test -n "${ZSH_VERSION+set}" ; then
13588     setopt NO_GLOB_SUBST
13589   fi
13590   # Now quote all the things that may contain metacharacters while being
13591   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13592   # variables and quote the copies for generation of the libtool script.
13593   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13594     SED SHELL STRIP \
13595     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13596     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13597     deplibs_check_method reload_flag reload_cmds need_locks \
13598     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13599     lt_cv_sys_global_symbol_to_c_name_address \
13600     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13601     old_postinstall_cmds old_postuninstall_cmds \
13602     compiler_CXX \
13603     CC_CXX \
13604     LD_CXX \
13605     lt_prog_compiler_wl_CXX \
13606     lt_prog_compiler_pic_CXX \
13607     lt_prog_compiler_static_CXX \
13608     lt_prog_compiler_no_builtin_flag_CXX \
13609     export_dynamic_flag_spec_CXX \
13610     thread_safe_flag_spec_CXX \
13611     whole_archive_flag_spec_CXX \
13612     enable_shared_with_static_runtimes_CXX \
13613     old_archive_cmds_CXX \
13614     old_archive_from_new_cmds_CXX \
13615     predep_objects_CXX \
13616     postdep_objects_CXX \
13617     predeps_CXX \
13618     postdeps_CXX \
13619     compiler_lib_search_path_CXX \
13620     compiler_lib_search_dirs_CXX \
13621     archive_cmds_CXX \
13622     archive_expsym_cmds_CXX \
13623     postinstall_cmds_CXX \
13624     postuninstall_cmds_CXX \
13625     old_archive_from_expsyms_cmds_CXX \
13626     allow_undefined_flag_CXX \
13627     no_undefined_flag_CXX \
13628     export_symbols_cmds_CXX \
13629     hardcode_libdir_flag_spec_CXX \
13630     hardcode_libdir_flag_spec_ld_CXX \
13631     hardcode_libdir_separator_CXX \
13632     hardcode_automatic_CXX \
13633     module_cmds_CXX \
13634     module_expsym_cmds_CXX \
13635     lt_cv_prog_compiler_c_o_CXX \
13636     fix_srcfile_path_CXX \
13637     exclude_expsyms_CXX \
13638     include_expsyms_CXX; do
13639
13640     case $var in
13641     old_archive_cmds_CXX | \
13642     old_archive_from_new_cmds_CXX | \
13643     archive_cmds_CXX | \
13644     archive_expsym_cmds_CXX | \
13645     module_cmds_CXX | \
13646     module_expsym_cmds_CXX | \
13647     old_archive_from_expsyms_cmds_CXX | \
13648     export_symbols_cmds_CXX | \
13649     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13650     postinstall_cmds | postuninstall_cmds | \
13651     old_postinstall_cmds | old_postuninstall_cmds | \
13652     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13653       # Double-quote double-evaled strings.
13654       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13655       ;;
13656     *)
13657       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13658       ;;
13659     esac
13660   done
13661
13662   case $lt_echo in
13663   *'\$0 --fallback-echo"')
13664     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13665     ;;
13666   esac
13667
13668 cfgfile="$ofile"
13669
13670   cat <<__EOF__ >> "$cfgfile"
13671 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13672
13673 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13674
13675 # Shell to use when invoking shell scripts.
13676 SHELL=$lt_SHELL
13677
13678 # Whether or not to build shared libraries.
13679 build_libtool_libs=$enable_shared
13680
13681 # Whether or not to build static libraries.
13682 build_old_libs=$enable_static
13683
13684 # Whether or not to add -lc for building shared libraries.
13685 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13686
13687 # Whether or not to disallow shared libs when runtime libs are static
13688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13689
13690 # Whether or not to optimize for fast installation.
13691 fast_install=$enable_fast_install
13692
13693 # The host system.
13694 host_alias=$host_alias
13695 host=$host
13696 host_os=$host_os
13697
13698 # The build system.
13699 build_alias=$build_alias
13700 build=$build
13701 build_os=$build_os
13702
13703 # An echo program that does not interpret backslashes.
13704 echo=$lt_echo
13705
13706 # The archiver.
13707 AR=$lt_AR
13708 AR_FLAGS=$lt_AR_FLAGS
13709
13710 # A C compiler.
13711 LTCC=$lt_LTCC
13712
13713 # LTCC compiler flags.
13714 LTCFLAGS=$lt_LTCFLAGS
13715
13716 # A language-specific compiler.
13717 CC=$lt_compiler_CXX
13718
13719 # Is the compiler the GNU C compiler?
13720 with_gcc=$GCC_CXX
13721
13722 # An ERE matcher.
13723 EGREP=$lt_EGREP
13724
13725 # The linker used to build libraries.
13726 LD=$lt_LD_CXX
13727
13728 # Whether we need hard or soft links.
13729 LN_S=$lt_LN_S
13730
13731 # A BSD-compatible nm program.
13732 NM=$lt_NM
13733
13734 # A symbol stripping program
13735 STRIP=$lt_STRIP
13736
13737 # Used to examine libraries when file_magic_cmd begins "file"
13738 MAGIC_CMD=$MAGIC_CMD
13739
13740 # Used on cygwin: DLL creation program.
13741 DLLTOOL="$DLLTOOL"
13742
13743 # Used on cygwin: object dumper.
13744 OBJDUMP="$OBJDUMP"
13745
13746 # Used on cygwin: assembler.
13747 AS="$AS"
13748
13749 # The name of the directory that contains temporary libtool files.
13750 objdir=$objdir
13751
13752 # How to create reloadable object files.
13753 reload_flag=$lt_reload_flag
13754 reload_cmds=$lt_reload_cmds
13755
13756 # How to pass a linker flag through the compiler.
13757 wl=$lt_lt_prog_compiler_wl_CXX
13758
13759 # Object file suffix (normally "o").
13760 objext="$ac_objext"
13761
13762 # Old archive suffix (normally "a").
13763 libext="$libext"
13764
13765 # Shared library suffix (normally ".so").
13766 shrext_cmds='$shrext_cmds'
13767
13768 # Executable file suffix (normally "").
13769 exeext="$exeext"
13770
13771 # Additional compiler flags for building library objects.
13772 pic_flag=$lt_lt_prog_compiler_pic_CXX
13773 pic_mode=$pic_mode
13774
13775 # What is the maximum length of a command?
13776 max_cmd_len=$lt_cv_sys_max_cmd_len
13777
13778 # Does compiler simultaneously support -c and -o options?
13779 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13780
13781 # Must we lock files when doing compilation?
13782 need_locks=$lt_need_locks
13783
13784 # Do we need the lib prefix for modules?
13785 need_lib_prefix=$need_lib_prefix
13786
13787 # Do we need a version for libraries?
13788 need_version=$need_version
13789
13790 # Whether dlopen is supported.
13791 dlopen_support=$enable_dlopen
13792
13793 # Whether dlopen of programs is supported.
13794 dlopen_self=$enable_dlopen_self
13795
13796 # Whether dlopen of statically linked programs is supported.
13797 dlopen_self_static=$enable_dlopen_self_static
13798
13799 # Compiler flag to prevent dynamic linking.
13800 link_static_flag=$lt_lt_prog_compiler_static_CXX
13801
13802 # Compiler flag to turn off builtin functions.
13803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13804
13805 # Compiler flag to allow reflexive dlopens.
13806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13807
13808 # Compiler flag to generate shared objects directly from archives.
13809 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13810
13811 # Compiler flag to generate thread-safe objects.
13812 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13813
13814 # Library versioning type.
13815 version_type=$version_type
13816
13817 # Format of library name prefix.
13818 libname_spec=$lt_libname_spec
13819
13820 # List of archive names.  First name is the real one, the rest are links.
13821 # The last name is the one that the linker finds with -lNAME.
13822 library_names_spec=$lt_library_names_spec
13823
13824 # The coded name of the library, if different from the real name.
13825 soname_spec=$lt_soname_spec
13826
13827 # Commands used to build and install an old-style archive.
13828 RANLIB=$lt_RANLIB
13829 old_archive_cmds=$lt_old_archive_cmds_CXX
13830 old_postinstall_cmds=$lt_old_postinstall_cmds
13831 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13832
13833 # Create an old-style archive from a shared archive.
13834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13835
13836 # Create a temporary old-style archive to link instead of a shared archive.
13837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13838
13839 # Commands used to build and install a shared archive.
13840 archive_cmds=$lt_archive_cmds_CXX
13841 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13842 postinstall_cmds=$lt_postinstall_cmds
13843 postuninstall_cmds=$lt_postuninstall_cmds
13844
13845 # Commands used to build a loadable module (assumed same as above if empty)
13846 module_cmds=$lt_module_cmds_CXX
13847 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13848
13849 # Commands to strip libraries.
13850 old_striplib=$lt_old_striplib
13851 striplib=$lt_striplib
13852
13853 # Dependencies to place before the objects being linked to create a
13854 # shared library.
13855 predep_objects=$lt_predep_objects_CXX
13856
13857 # Dependencies to place after the objects being linked to create a
13858 # shared library.
13859 postdep_objects=$lt_postdep_objects_CXX
13860
13861 # Dependencies to place before the objects being linked to create a
13862 # shared library.
13863 predeps=$lt_predeps_CXX
13864
13865 # Dependencies to place after the objects being linked to create a
13866 # shared library.
13867 postdeps=$lt_postdeps_CXX
13868
13869 # The directories searched by this compiler when creating a shared
13870 # library
13871 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13872
13873 # The library search path used internally by the compiler when linking
13874 # a shared library.
13875 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13876
13877 # Method to check whether dependent libraries are shared objects.
13878 deplibs_check_method=$lt_deplibs_check_method
13879
13880 # Command to use when deplibs_check_method == file_magic.
13881 file_magic_cmd=$lt_file_magic_cmd
13882
13883 # Flag that allows shared libraries with undefined symbols to be built.
13884 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13885
13886 # Flag that forces no undefined symbols.
13887 no_undefined_flag=$lt_no_undefined_flag_CXX
13888
13889 # Commands used to finish a libtool library installation in a directory.
13890 finish_cmds=$lt_finish_cmds
13891
13892 # Same as above, but a single script fragment to be evaled but not shown.
13893 finish_eval=$lt_finish_eval
13894
13895 # Take the output of nm and produce a listing of raw symbols and C names.
13896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13897
13898 # Transform the output of nm in a proper C declaration
13899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13900
13901 # Transform the output of nm in a C name address pair
13902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13903
13904 # This is the shared library runtime path variable.
13905 runpath_var=$runpath_var
13906
13907 # This is the shared library path variable.
13908 shlibpath_var=$shlibpath_var
13909
13910 # Is shlibpath searched before the hard-coded library search path?
13911 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13912
13913 # How to hardcode a shared library path into an executable.
13914 hardcode_action=$hardcode_action_CXX
13915
13916 # Whether we should hardcode library paths into libraries.
13917 hardcode_into_libs=$hardcode_into_libs
13918
13919 # Flag to hardcode \$libdir into a binary during linking.
13920 # This must work even if \$libdir does not exist.
13921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13922
13923 # If ld is used when linking, flag to hardcode \$libdir into
13924 # a binary during linking. This must work even if \$libdir does
13925 # not exist.
13926 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13927
13928 # Whether we need a single -rpath flag with a separated argument.
13929 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13930
13931 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13932 # resulting binary.
13933 hardcode_direct=$hardcode_direct_CXX
13934
13935 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13936 # resulting binary.
13937 hardcode_minus_L=$hardcode_minus_L_CXX
13938
13939 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13940 # the resulting binary.
13941 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13942
13943 # Set to yes if building a shared library automatically hardcodes DIR into the library
13944 # and all subsequent libraries and executables linked against it.
13945 hardcode_automatic=$hardcode_automatic_CXX
13946
13947 # Variables whose values should be saved in libtool wrapper scripts and
13948 # restored at relink time.
13949 variables_saved_for_relink="$variables_saved_for_relink"
13950
13951 # Whether libtool must link a program against all its dependency libraries.
13952 link_all_deplibs=$link_all_deplibs_CXX
13953
13954 # Compile-time system search path for libraries
13955 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13956
13957 # Run-time system search path for libraries
13958 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13959
13960 # Fix the shell variable \$srcfile for the compiler.
13961 fix_srcfile_path=$lt_fix_srcfile_path
13962
13963 # Set to yes if exported symbols are required.
13964 always_export_symbols=$always_export_symbols_CXX
13965
13966 # The commands to list exported symbols.
13967 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13968
13969 # The commands to extract the exported symbol list from a shared archive.
13970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13971
13972 # Symbols that should not be listed in the preloaded symbols.
13973 exclude_expsyms=$lt_exclude_expsyms_CXX
13974
13975 # Symbols that must always be exported.
13976 include_expsyms=$lt_include_expsyms_CXX
13977
13978 # ### END LIBTOOL TAG CONFIG: $tagname
13979
13980 __EOF__
13981
13982
13983 else
13984   # If there is no Makefile yet, we rely on a make rule to execute
13985   # `config.status --recheck' to rerun these tests and create the
13986   # libtool script then.
13987   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13988   if test -f "$ltmain_in"; then
13989     test -f Makefile && make "$ltmain"
13990   fi
13991 fi
13992
13993
13994 ac_ext=c
13995 ac_cpp='$CPP $CPPFLAGS'
13996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13999
14000 CC=$lt_save_CC
14001 LDCXX=$LD
14002 LD=$lt_save_LD
14003 GCC=$lt_save_GCC
14004 with_gnu_ldcxx=$with_gnu_ld
14005 with_gnu_ld=$lt_save_with_gnu_ld
14006 lt_cv_path_LDCXX=$lt_cv_path_LD
14007 lt_cv_path_LD=$lt_save_path_LD
14008 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14009 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14010
14011         else
14012           tagname=""
14013         fi
14014         ;;
14015
14016       F77)
14017         if test -n "$F77" && test "X$F77" != "Xno"; then
14018
14019 ac_ext=f
14020 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14021 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14023
14024
14025 archive_cmds_need_lc_F77=no
14026 allow_undefined_flag_F77=
14027 always_export_symbols_F77=no
14028 archive_expsym_cmds_F77=
14029 export_dynamic_flag_spec_F77=
14030 hardcode_direct_F77=no
14031 hardcode_libdir_flag_spec_F77=
14032 hardcode_libdir_flag_spec_ld_F77=
14033 hardcode_libdir_separator_F77=
14034 hardcode_minus_L_F77=no
14035 hardcode_automatic_F77=no
14036 module_cmds_F77=
14037 module_expsym_cmds_F77=
14038 link_all_deplibs_F77=unknown
14039 old_archive_cmds_F77=$old_archive_cmds
14040 no_undefined_flag_F77=
14041 whole_archive_flag_spec_F77=
14042 enable_shared_with_static_runtimes_F77=no
14043
14044 # Source file extension for f77 test sources.
14045 ac_ext=f
14046
14047 # Object file extension for compiled f77 test sources.
14048 objext=o
14049 objext_F77=$objext
14050
14051 # Code to be used in simple compile tests
14052 lt_simple_compile_test_code="\
14053       subroutine t
14054       return
14055       end
14056 "
14057
14058 # Code to be used in simple link tests
14059 lt_simple_link_test_code="\
14060       program t
14061       end
14062 "
14063
14064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14065
14066 # If no C compiler was specified, use CC.
14067 LTCC=${LTCC-"$CC"}
14068
14069 # If no C compiler flags were specified, use CFLAGS.
14070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14071
14072 # Allow CC to be a program name with arguments.
14073 compiler=$CC
14074
14075
14076 # save warnings/boilerplate of simple test code
14077 ac_outfile=conftest.$ac_objext
14078 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14080 _lt_compiler_boilerplate=`cat conftest.err`
14081 $rm conftest*
14082
14083 ac_outfile=conftest.$ac_objext
14084 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14086 _lt_linker_boilerplate=`cat conftest.err`
14087 $rm -r conftest*
14088
14089
14090 # Allow CC to be a program name with arguments.
14091 lt_save_CC="$CC"
14092 CC=${F77-"f77"}
14093 compiler=$CC
14094 compiler_F77=$CC
14095 for cc_temp in $compiler""; do
14096   case $cc_temp in
14097     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14098     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14099     \-*) ;;
14100     *) break;;
14101   esac
14102 done
14103 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14104
14105
14106 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14107 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14108 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14109 echo "${ECHO_T}$can_build_shared" >&6; }
14110
14111 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14112 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14113 test "$can_build_shared" = "no" && enable_shared=no
14114
14115 # On AIX, shared libraries and static libraries use the same namespace, and
14116 # are all built from PIC.
14117 case $host_os in
14118 aix3*)
14119   test "$enable_shared" = yes && enable_static=no
14120   if test -n "$RANLIB"; then
14121     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14122     postinstall_cmds='$RANLIB $lib'
14123   fi
14124   ;;
14125 aix[4-9]*)
14126   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14127     test "$enable_shared" = yes && enable_static=no
14128   fi
14129   ;;
14130 esac
14131 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14132 echo "${ECHO_T}$enable_shared" >&6; }
14133
14134 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14135 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14136 # Make sure either enable_shared or enable_static is yes.
14137 test "$enable_shared" = yes || enable_static=yes
14138 { echo "$as_me:$LINENO: result: $enable_static" >&5
14139 echo "${ECHO_T}$enable_static" >&6; }
14140
14141 GCC_F77="$G77"
14142 LD_F77="$LD"
14143
14144 lt_prog_compiler_wl_F77=
14145 lt_prog_compiler_pic_F77=
14146 lt_prog_compiler_static_F77=
14147
14148 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14150
14151   if test "$GCC" = yes; then
14152     lt_prog_compiler_wl_F77='-Wl,'
14153     lt_prog_compiler_static_F77='-static'
14154
14155     case $host_os in
14156       aix*)
14157       # All AIX code is PIC.
14158       if test "$host_cpu" = ia64; then
14159         # AIX 5 now supports IA64 processor
14160         lt_prog_compiler_static_F77='-Bstatic'
14161       fi
14162       ;;
14163
14164     amigaos*)
14165       # FIXME: we need at least 68020 code to build shared libraries, but
14166       # adding the `-m68020' flag to GCC prevents building anything better,
14167       # like `-m68040'.
14168       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14169       ;;
14170
14171     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14172       # PIC is the default for these OSes.
14173       ;;
14174
14175     mingw* | cygwin* | pw32* | os2*)
14176       # This hack is so that the source file can tell whether it is being
14177       # built for inclusion in a dll (and should export symbols for example).
14178       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14179       # (--disable-auto-import) libraries
14180       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14181       ;;
14182
14183     darwin* | rhapsody*)
14184       # PIC is the default on this platform
14185       # Common symbols not allowed in MH_DYLIB files
14186       lt_prog_compiler_pic_F77='-fno-common'
14187       ;;
14188
14189     interix[3-9]*)
14190       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14191       # Instead, we relocate shared libraries at runtime.
14192       ;;
14193
14194     msdosdjgpp*)
14195       # Just because we use GCC doesn't mean we suddenly get shared libraries
14196       # on systems that don't support them.
14197       lt_prog_compiler_can_build_shared_F77=no
14198       enable_shared=no
14199       ;;
14200
14201     sysv4*MP*)
14202       if test -d /usr/nec; then
14203         lt_prog_compiler_pic_F77=-Kconform_pic
14204       fi
14205       ;;
14206
14207     hpux*)
14208       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14209       # not for PA HP-UX.
14210       case $host_cpu in
14211       hppa*64*|ia64*)
14212         # +Z the default
14213         ;;
14214       *)
14215         lt_prog_compiler_pic_F77='-fPIC'
14216         ;;
14217       esac
14218       ;;
14219
14220     *)
14221       lt_prog_compiler_pic_F77='-fPIC'
14222       ;;
14223     esac
14224   else
14225     # PORTME Check for flag to pass linker flags through the system compiler.
14226     case $host_os in
14227     aix*)
14228       lt_prog_compiler_wl_F77='-Wl,'
14229       if test "$host_cpu" = ia64; then
14230         # AIX 5 now supports IA64 processor
14231         lt_prog_compiler_static_F77='-Bstatic'
14232       else
14233         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14234       fi
14235       ;;
14236       darwin*)
14237         # PIC is the default on this platform
14238         # Common symbols not allowed in MH_DYLIB files
14239        case $cc_basename in
14240          xlc*)
14241          lt_prog_compiler_pic_F77='-qnocommon'
14242          lt_prog_compiler_wl_F77='-Wl,'
14243          ;;
14244        esac
14245        ;;
14246
14247     mingw* | cygwin* | pw32* | os2*)
14248       # This hack is so that the source file can tell whether it is being
14249       # built for inclusion in a dll (and should export symbols for example).
14250       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14251       ;;
14252
14253     hpux9* | hpux10* | hpux11*)
14254       lt_prog_compiler_wl_F77='-Wl,'
14255       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14256       # not for PA HP-UX.
14257       case $host_cpu in
14258       hppa*64*|ia64*)
14259         # +Z the default
14260         ;;
14261       *)
14262         lt_prog_compiler_pic_F77='+Z'
14263         ;;
14264       esac
14265       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14266       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14267       ;;
14268
14269     irix5* | irix6* | nonstopux*)
14270       lt_prog_compiler_wl_F77='-Wl,'
14271       # PIC (with -KPIC) is the default.
14272       lt_prog_compiler_static_F77='-non_shared'
14273       ;;
14274
14275     newsos6)
14276       lt_prog_compiler_pic_F77='-KPIC'
14277       lt_prog_compiler_static_F77='-Bstatic'
14278       ;;
14279
14280     linux* | k*bsd*-gnu)
14281       case $cc_basename in
14282       icc* | ecc*)
14283         lt_prog_compiler_wl_F77='-Wl,'
14284         lt_prog_compiler_pic_F77='-KPIC'
14285         lt_prog_compiler_static_F77='-static'
14286         ;;
14287       pgcc* | pgf77* | pgf90* | pgf95*)
14288         # Portland Group compilers (*not* the Pentium gcc compiler,
14289         # which looks to be a dead project)
14290         lt_prog_compiler_wl_F77='-Wl,'
14291         lt_prog_compiler_pic_F77='-fpic'
14292         lt_prog_compiler_static_F77='-Bstatic'
14293         ;;
14294       ccc*)
14295         lt_prog_compiler_wl_F77='-Wl,'
14296         # All Alpha code is PIC.
14297         lt_prog_compiler_static_F77='-non_shared'
14298         ;;
14299       *)
14300         case `$CC -V 2>&1 | sed 5q` in
14301         *Sun\ C*)
14302           # Sun C 5.9
14303           lt_prog_compiler_pic_F77='-KPIC'
14304           lt_prog_compiler_static_F77='-Bstatic'
14305           lt_prog_compiler_wl_F77='-Wl,'
14306           ;;
14307         *Sun\ F*)
14308           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14309           lt_prog_compiler_pic_F77='-KPIC'
14310           lt_prog_compiler_static_F77='-Bstatic'
14311           lt_prog_compiler_wl_F77=''
14312           ;;
14313         esac
14314         ;;
14315       esac
14316       ;;
14317
14318     osf3* | osf4* | osf5*)
14319       lt_prog_compiler_wl_F77='-Wl,'
14320       # All OSF/1 code is PIC.
14321       lt_prog_compiler_static_F77='-non_shared'
14322       ;;
14323
14324     rdos*)
14325       lt_prog_compiler_static_F77='-non_shared'
14326       ;;
14327
14328     solaris*)
14329       lt_prog_compiler_pic_F77='-KPIC'
14330       lt_prog_compiler_static_F77='-Bstatic'
14331       case $cc_basename in
14332       f77* | f90* | f95*)
14333         lt_prog_compiler_wl_F77='-Qoption ld ';;
14334       *)
14335         lt_prog_compiler_wl_F77='-Wl,';;
14336       esac
14337       ;;
14338
14339     sunos4*)
14340       lt_prog_compiler_wl_F77='-Qoption ld '
14341       lt_prog_compiler_pic_F77='-PIC'
14342       lt_prog_compiler_static_F77='-Bstatic'
14343       ;;
14344
14345     sysv4 | sysv4.2uw2* | sysv4.3*)
14346       lt_prog_compiler_wl_F77='-Wl,'
14347       lt_prog_compiler_pic_F77='-KPIC'
14348       lt_prog_compiler_static_F77='-Bstatic'
14349       ;;
14350
14351     sysv4*MP*)
14352       if test -d /usr/nec ;then
14353         lt_prog_compiler_pic_F77='-Kconform_pic'
14354         lt_prog_compiler_static_F77='-Bstatic'
14355       fi
14356       ;;
14357
14358     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14359       lt_prog_compiler_wl_F77='-Wl,'
14360       lt_prog_compiler_pic_F77='-KPIC'
14361       lt_prog_compiler_static_F77='-Bstatic'
14362       ;;
14363
14364     unicos*)
14365       lt_prog_compiler_wl_F77='-Wl,'
14366       lt_prog_compiler_can_build_shared_F77=no
14367       ;;
14368
14369     uts4*)
14370       lt_prog_compiler_pic_F77='-pic'
14371       lt_prog_compiler_static_F77='-Bstatic'
14372       ;;
14373
14374     *)
14375       lt_prog_compiler_can_build_shared_F77=no
14376       ;;
14377     esac
14378   fi
14379
14380 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14381 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14382
14383 #
14384 # Check to make sure the PIC flag actually works.
14385 #
14386 if test -n "$lt_prog_compiler_pic_F77"; then
14387
14388 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14389 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14390 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14391   echo $ECHO_N "(cached) $ECHO_C" >&6
14392 else
14393   lt_cv_prog_compiler_pic_works_F77=no
14394   ac_outfile=conftest.$ac_objext
14395    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14396    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14397    # Insert the option either (1) after the last *FLAGS variable, or
14398    # (2) before a word containing "conftest.", or (3) at the end.
14399    # Note that $ac_compile itself does not contain backslashes and begins
14400    # with a dollar sign (not a hyphen), so the echo should work correctly.
14401    # The option is referenced via a variable to avoid confusing sed.
14402    lt_compile=`echo "$ac_compile" | $SED \
14403    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14404    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14405    -e 's:$: $lt_compiler_flag:'`
14406    (eval echo "\"\$as_me:14406: $lt_compile\"" >&5)
14407    (eval "$lt_compile" 2>conftest.err)
14408    ac_status=$?
14409    cat conftest.err >&5
14410    echo "$as_me:14410: \$? = $ac_status" >&5
14411    if (exit $ac_status) && test -s "$ac_outfile"; then
14412      # The compiler can only warn and ignore the option if not recognized
14413      # So say no if there are warnings other than the usual output.
14414      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14415      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14416      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14417        lt_cv_prog_compiler_pic_works_F77=yes
14418      fi
14419    fi
14420    $rm conftest*
14421
14422 fi
14423 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14424 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14425
14426 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14427     case $lt_prog_compiler_pic_F77 in
14428      "" | " "*) ;;
14429      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14430      esac
14431 else
14432     lt_prog_compiler_pic_F77=
14433      lt_prog_compiler_can_build_shared_F77=no
14434 fi
14435
14436 fi
14437 case $host_os in
14438   # For platforms which do not support PIC, -DPIC is meaningless:
14439   *djgpp*)
14440     lt_prog_compiler_pic_F77=
14441     ;;
14442   *)
14443     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14444     ;;
14445 esac
14446
14447 #
14448 # Check to make sure the static flag actually works.
14449 #
14450 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14451 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14452 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14453 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14454   echo $ECHO_N "(cached) $ECHO_C" >&6
14455 else
14456   lt_cv_prog_compiler_static_works_F77=no
14457    save_LDFLAGS="$LDFLAGS"
14458    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14459    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14460    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14461      # The linker can only warn and ignore the option if not recognized
14462      # So say no if there are warnings
14463      if test -s conftest.err; then
14464        # Append any errors to the config.log.
14465        cat conftest.err 1>&5
14466        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14467        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14468        if diff conftest.exp conftest.er2 >/dev/null; then
14469          lt_cv_prog_compiler_static_works_F77=yes
14470        fi
14471      else
14472        lt_cv_prog_compiler_static_works_F77=yes
14473      fi
14474    fi
14475    $rm -r conftest*
14476    LDFLAGS="$save_LDFLAGS"
14477
14478 fi
14479 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14480 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14481
14482 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14483     :
14484 else
14485     lt_prog_compiler_static_F77=
14486 fi
14487
14488
14489 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14490 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14491 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14492   echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494   lt_cv_prog_compiler_c_o_F77=no
14495    $rm -r conftest 2>/dev/null
14496    mkdir conftest
14497    cd conftest
14498    mkdir out
14499    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14500
14501    lt_compiler_flag="-o out/conftest2.$ac_objext"
14502    # Insert the option either (1) after the last *FLAGS variable, or
14503    # (2) before a word containing "conftest.", or (3) at the end.
14504    # Note that $ac_compile itself does not contain backslashes and begins
14505    # with a dollar sign (not a hyphen), so the echo should work correctly.
14506    lt_compile=`echo "$ac_compile" | $SED \
14507    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14508    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14509    -e 's:$: $lt_compiler_flag:'`
14510    (eval echo "\"\$as_me:14510: $lt_compile\"" >&5)
14511    (eval "$lt_compile" 2>out/conftest.err)
14512    ac_status=$?
14513    cat out/conftest.err >&5
14514    echo "$as_me:14514: \$? = $ac_status" >&5
14515    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14516    then
14517      # The compiler can only warn and ignore the option if not recognized
14518      # So say no if there are warnings
14519      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14520      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14521      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14522        lt_cv_prog_compiler_c_o_F77=yes
14523      fi
14524    fi
14525    chmod u+w . 2>&5
14526    $rm conftest*
14527    # SGI C++ compiler will create directory out/ii_files/ for
14528    # template instantiation
14529    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14530    $rm out/* && rmdir out
14531    cd ..
14532    rmdir conftest
14533    $rm conftest*
14534
14535 fi
14536 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14537 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14538
14539
14540 hard_links="nottested"
14541 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14542   # do not overwrite the value of need_locks provided by the user
14543   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14544 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14545   hard_links=yes
14546   $rm conftest*
14547   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14548   touch conftest.a
14549   ln conftest.a conftest.b 2>&5 || hard_links=no
14550   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14551   { echo "$as_me:$LINENO: result: $hard_links" >&5
14552 echo "${ECHO_T}$hard_links" >&6; }
14553   if test "$hard_links" = no; then
14554     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14555 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14556     need_locks=warn
14557   fi
14558 else
14559   need_locks=no
14560 fi
14561
14562 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14563 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14564
14565   runpath_var=
14566   allow_undefined_flag_F77=
14567   enable_shared_with_static_runtimes_F77=no
14568   archive_cmds_F77=
14569   archive_expsym_cmds_F77=
14570   old_archive_From_new_cmds_F77=
14571   old_archive_from_expsyms_cmds_F77=
14572   export_dynamic_flag_spec_F77=
14573   whole_archive_flag_spec_F77=
14574   thread_safe_flag_spec_F77=
14575   hardcode_libdir_flag_spec_F77=
14576   hardcode_libdir_flag_spec_ld_F77=
14577   hardcode_libdir_separator_F77=
14578   hardcode_direct_F77=no
14579   hardcode_minus_L_F77=no
14580   hardcode_shlibpath_var_F77=unsupported
14581   link_all_deplibs_F77=unknown
14582   hardcode_automatic_F77=no
14583   module_cmds_F77=
14584   module_expsym_cmds_F77=
14585   always_export_symbols_F77=no
14586   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14587   # include_expsyms should be a list of space-separated symbols to be *always*
14588   # included in the symbol list
14589   include_expsyms_F77=
14590   # exclude_expsyms can be an extended regexp of symbols to exclude
14591   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14592   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14593   # as well as any symbol that contains `d'.
14594   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14595   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14596   # platforms (ab)use it in PIC code, but their linkers get confused if
14597   # the symbol is explicitly referenced.  Since portable code cannot
14598   # rely on this symbol name, it's probably fine to never include it in
14599   # preloaded symbol tables.
14600   # Exclude shared library initialization/finalization symbols.
14601   extract_expsyms_cmds=
14602   # Just being paranoid about ensuring that cc_basename is set.
14603   for cc_temp in $compiler""; do
14604   case $cc_temp in
14605     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14606     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14607     \-*) ;;
14608     *) break;;
14609   esac
14610 done
14611 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14612
14613   case $host_os in
14614   cygwin* | mingw* | pw32*)
14615     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14616     # When not using gcc, we currently assume that we are using
14617     # Microsoft Visual C++.
14618     if test "$GCC" != yes; then
14619       with_gnu_ld=no
14620     fi
14621     ;;
14622   interix*)
14623     # we just hope/assume this is gcc and not c89 (= MSVC++)
14624     with_gnu_ld=yes
14625     ;;
14626   openbsd*)
14627     with_gnu_ld=no
14628     ;;
14629   esac
14630
14631   ld_shlibs_F77=yes
14632   if test "$with_gnu_ld" = yes; then
14633     # If archive_cmds runs LD, not CC, wlarc should be empty
14634     wlarc='${wl}'
14635
14636     # Set some defaults for GNU ld with shared library support. These
14637     # are reset later if shared libraries are not supported. Putting them
14638     # here allows them to be overridden if necessary.
14639     runpath_var=LD_RUN_PATH
14640     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14641     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14642     # ancient GNU ld didn't support --whole-archive et. al.
14643     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14644         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14645       else
14646         whole_archive_flag_spec_F77=
14647     fi
14648     supports_anon_versioning=no
14649     case `$LD -v 2>/dev/null` in
14650       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14651       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14652       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14653       *\ 2.11.*) ;; # other 2.11 versions
14654       *) supports_anon_versioning=yes ;;
14655     esac
14656
14657     # See if GNU ld supports shared libraries.
14658     case $host_os in
14659     aix[3-9]*)
14660       # On AIX/PPC, the GNU linker is very broken
14661       if test "$host_cpu" != ia64; then
14662         ld_shlibs_F77=no
14663         cat <<EOF 1>&2
14664
14665 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14666 *** to be unable to reliably create shared libraries on AIX.
14667 *** Therefore, libtool is disabling shared libraries support.  If you
14668 *** really care for shared libraries, you may want to modify your PATH
14669 *** so that a non-GNU linker is found, and then restart.
14670
14671 EOF
14672       fi
14673       ;;
14674
14675     amigaos*)
14676       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)'
14677       hardcode_libdir_flag_spec_F77='-L$libdir'
14678       hardcode_minus_L_F77=yes
14679
14680       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14681       # that the semantics of dynamic libraries on AmigaOS, at least up
14682       # to version 4, is to share data among multiple programs linked
14683       # with the same dynamic library.  Since this doesn't match the
14684       # behavior of shared libraries on other platforms, we can't use
14685       # them.
14686       ld_shlibs_F77=no
14687       ;;
14688
14689     beos*)
14690       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14691         allow_undefined_flag_F77=unsupported
14692         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14693         # support --undefined.  This deserves some investigation.  FIXME
14694         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14695       else
14696         ld_shlibs_F77=no
14697       fi
14698       ;;
14699
14700     cygwin* | mingw* | pw32*)
14701       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14702       # as there is no search path for DLLs.
14703       hardcode_libdir_flag_spec_F77='-L$libdir'
14704       allow_undefined_flag_F77=unsupported
14705       always_export_symbols_F77=no
14706       enable_shared_with_static_runtimes_F77=yes
14707       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14708
14709       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14710         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14711         # If the export-symbols file already is a .def file (1st line
14712         # is EXPORTS), use it as is; otherwise, prepend...
14713         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14714           cp $export_symbols $output_objdir/$soname.def;
14715         else
14716           echo EXPORTS > $output_objdir/$soname.def;
14717           cat $export_symbols >> $output_objdir/$soname.def;
14718         fi~
14719         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14720       else
14721         ld_shlibs_F77=no
14722       fi
14723       ;;
14724
14725     interix[3-9]*)
14726       hardcode_direct_F77=no
14727       hardcode_shlibpath_var_F77=no
14728       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14729       export_dynamic_flag_spec_F77='${wl}-E'
14730       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14731       # Instead, shared libraries are loaded at an image base (0x10000000 by
14732       # default) and relocated if they conflict, which is a slow very memory
14733       # consuming and fragmenting process.  To avoid this, we pick a random,
14734       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14735       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14736       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'
14737       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'
14738       ;;
14739
14740     gnu* | linux* | k*bsd*-gnu)
14741       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14742         tmp_addflag=
14743         case $cc_basename,$host_cpu in
14744         pgcc*)                          # Portland Group C compiler
14745           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'
14746           tmp_addflag=' $pic_flag'
14747           ;;
14748         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14749           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'
14750           tmp_addflag=' $pic_flag -Mnomain' ;;
14751         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14752           tmp_addflag=' -i_dynamic' ;;
14753         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14754           tmp_addflag=' -i_dynamic -nofor_main' ;;
14755         ifc* | ifort*)                  # Intel Fortran compiler
14756           tmp_addflag=' -nofor_main' ;;
14757         esac
14758         case `$CC -V 2>&1 | sed 5q` in
14759         *Sun\ C*)                       # Sun C 5.9
14760           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'
14761           tmp_sharedflag='-G' ;;
14762         *Sun\ F*)                       # Sun Fortran 8.3
14763           tmp_sharedflag='-G' ;;
14764         *)
14765           tmp_sharedflag='-shared' ;;
14766         esac
14767         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14768
14769         if test $supports_anon_versioning = yes; then
14770           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14771   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14772   $echo "local: *; };" >> $output_objdir/$libname.ver~
14773           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14774         fi
14775         link_all_deplibs_F77=no
14776       else
14777         ld_shlibs_F77=no
14778       fi
14779       ;;
14780
14781     netbsd* | netbsdelf*-gnu)
14782       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14783         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14784         wlarc=
14785       else
14786         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14788       fi
14789       ;;
14790
14791     solaris*)
14792       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14793         ld_shlibs_F77=no
14794         cat <<EOF 1>&2
14795
14796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14797 *** create shared libraries on Solaris systems.  Therefore, libtool
14798 *** is disabling shared libraries support.  We urge you to upgrade GNU
14799 *** binutils to release 2.9.1 or newer.  Another option is to modify
14800 *** your PATH or compiler configuration so that the native linker is
14801 *** used, and then restart.
14802
14803 EOF
14804       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14805         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14807       else
14808         ld_shlibs_F77=no
14809       fi
14810       ;;
14811
14812     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14813       case `$LD -v 2>&1` in
14814         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14815         ld_shlibs_F77=no
14816         cat <<_LT_EOF 1>&2
14817
14818 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14819 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14820 *** is disabling shared libraries support.  We urge you to upgrade GNU
14821 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14822 *** your PATH or compiler configuration so that the native linker is
14823 *** used, and then restart.
14824
14825 _LT_EOF
14826         ;;
14827         *)
14828           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14829             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14830             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14831             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14832           else
14833             ld_shlibs_F77=no
14834           fi
14835         ;;
14836       esac
14837       ;;
14838
14839     sunos4*)
14840       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14841       wlarc=
14842       hardcode_direct_F77=yes
14843       hardcode_shlibpath_var_F77=no
14844       ;;
14845
14846     *)
14847       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14848         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14849         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14850       else
14851         ld_shlibs_F77=no
14852       fi
14853       ;;
14854     esac
14855
14856     if test "$ld_shlibs_F77" = no; then
14857       runpath_var=
14858       hardcode_libdir_flag_spec_F77=
14859       export_dynamic_flag_spec_F77=
14860       whole_archive_flag_spec_F77=
14861     fi
14862   else
14863     # PORTME fill in a description of your system's linker (not GNU ld)
14864     case $host_os in
14865     aix3*)
14866       allow_undefined_flag_F77=unsupported
14867       always_export_symbols_F77=yes
14868       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'
14869       # Note: this linker hardcodes the directories in LIBPATH if there
14870       # are no directories specified by -L.
14871       hardcode_minus_L_F77=yes
14872       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14873         # Neither direct hardcoding nor static linking is supported with a
14874         # broken collect2.
14875         hardcode_direct_F77=unsupported
14876       fi
14877       ;;
14878
14879     aix[4-9]*)
14880       if test "$host_cpu" = ia64; then
14881         # On IA64, the linker does run time linking by default, so we don't
14882         # have to do anything special.
14883         aix_use_runtimelinking=no
14884         exp_sym_flag='-Bexport'
14885         no_entry_flag=""
14886       else
14887         # If we're using GNU nm, then we don't want the "-C" option.
14888         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14889         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14890           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'
14891         else
14892           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'
14893         fi
14894         aix_use_runtimelinking=no
14895
14896         # Test if we are trying to use run time linking or normal
14897         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14898         # need to do runtime linking.
14899         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14900           for ld_flag in $LDFLAGS; do
14901           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14902             aix_use_runtimelinking=yes
14903             break
14904           fi
14905           done
14906           ;;
14907         esac
14908
14909         exp_sym_flag='-bexport'
14910         no_entry_flag='-bnoentry'
14911       fi
14912
14913       # When large executables or shared objects are built, AIX ld can
14914       # have problems creating the table of contents.  If linking a library
14915       # or program results in "error TOC overflow" add -mminimal-toc to
14916       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14917       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14918
14919       archive_cmds_F77=''
14920       hardcode_direct_F77=yes
14921       hardcode_libdir_separator_F77=':'
14922       link_all_deplibs_F77=yes
14923
14924       if test "$GCC" = yes; then
14925         case $host_os in aix4.[012]|aix4.[012].*)
14926         # We only want to do this on AIX 4.2 and lower, the check
14927         # below for broken collect2 doesn't work under 4.3+
14928           collect2name=`${CC} -print-prog-name=collect2`
14929           if test -f "$collect2name" && \
14930            strings "$collect2name" | grep resolve_lib_name >/dev/null
14931           then
14932           # We have reworked collect2
14933           :
14934           else
14935           # We have old collect2
14936           hardcode_direct_F77=unsupported
14937           # It fails to find uninstalled libraries when the uninstalled
14938           # path is not listed in the libpath.  Setting hardcode_minus_L
14939           # to unsupported forces relinking
14940           hardcode_minus_L_F77=yes
14941           hardcode_libdir_flag_spec_F77='-L$libdir'
14942           hardcode_libdir_separator_F77=
14943           fi
14944           ;;
14945         esac
14946         shared_flag='-shared'
14947         if test "$aix_use_runtimelinking" = yes; then
14948           shared_flag="$shared_flag "'${wl}-G'
14949         fi
14950       else
14951         # not using gcc
14952         if test "$host_cpu" = ia64; then
14953         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14954         # chokes on -Wl,-G. The following line is correct:
14955           shared_flag='-G'
14956         else
14957           if test "$aix_use_runtimelinking" = yes; then
14958             shared_flag='${wl}-G'
14959           else
14960             shared_flag='${wl}-bM:SRE'
14961           fi
14962         fi
14963       fi
14964
14965       # It seems that -bexpall does not export symbols beginning with
14966       # underscore (_), so it is better to generate a list of symbols to export.
14967       always_export_symbols_F77=yes
14968       if test "$aix_use_runtimelinking" = yes; then
14969         # Warning - without using the other runtime loading flags (-brtl),
14970         # -berok will link without error, but may produce a broken library.
14971         allow_undefined_flag_F77='-berok'
14972        # Determine the default libpath from the value encoded in an empty executable.
14973        cat >conftest.$ac_ext <<_ACEOF
14974       program main
14975
14976       end
14977 _ACEOF
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982   *) ac_try_echo=$ac_try;;
14983 esac
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985   (eval "$ac_link") 2>conftest.er1
14986   ac_status=$?
14987   grep -v '^ *+' conftest.er1 >conftest.err
14988   rm -f conftest.er1
14989   cat conftest.err >&5
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); } && {
14992          test -z "$ac_f77_werror_flag" ||
14993          test ! -s conftest.err
14994        } && test -s conftest$ac_exeext &&
14995        $as_test_x conftest$ac_exeext; then
14996
14997 lt_aix_libpath_sed='
14998     /Import File Strings/,/^$/ {
14999         /^0/ {
15000             s/^0  *\(.*\)$/\1/
15001             p
15002         }
15003     }'
15004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15005 # Check for a 64-bit object if we didn't find anything.
15006 if test -z "$aix_libpath"; then
15007   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15008 fi
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013
15014 fi
15015
15016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15017       conftest$ac_exeext conftest.$ac_ext
15018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15019
15020        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15021         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"
15022        else
15023         if test "$host_cpu" = ia64; then
15024           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15025           allow_undefined_flag_F77="-z nodefs"
15026           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"
15027         else
15028          # Determine the default libpath from the value encoded in an empty executable.
15029          cat >conftest.$ac_ext <<_ACEOF
15030       program main
15031
15032       end
15033 _ACEOF
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (ac_try="$ac_link"
15036 case "(($ac_try" in
15037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038   *) ac_try_echo=$ac_try;;
15039 esac
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041   (eval "$ac_link") 2>conftest.er1
15042   ac_status=$?
15043   grep -v '^ *+' conftest.er1 >conftest.err
15044   rm -f conftest.er1
15045   cat conftest.err >&5
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } && {
15048          test -z "$ac_f77_werror_flag" ||
15049          test ! -s conftest.err
15050        } && test -s conftest$ac_exeext &&
15051        $as_test_x conftest$ac_exeext; then
15052
15053 lt_aix_libpath_sed='
15054     /Import File Strings/,/^$/ {
15055         /^0/ {
15056             s/^0  *\(.*\)$/\1/
15057             p
15058         }
15059     }'
15060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15061 # Check for a 64-bit object if we didn't find anything.
15062 if test -z "$aix_libpath"; then
15063   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15064 fi
15065 else
15066   echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15068
15069
15070 fi
15071
15072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15073       conftest$ac_exeext conftest.$ac_ext
15074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15075
15076          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15077           # Warning - without using the other run time loading flags,
15078           # -berok will link without error, but may produce a broken library.
15079           no_undefined_flag_F77=' ${wl}-bernotok'
15080           allow_undefined_flag_F77=' ${wl}-berok'
15081           # Exported symbols can be pulled into shared objects from archives
15082           whole_archive_flag_spec_F77='$convenience'
15083           archive_cmds_need_lc_F77=yes
15084           # This is similar to how AIX traditionally builds its shared libraries.
15085           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'
15086         fi
15087       fi
15088       ;;
15089
15090     amigaos*)
15091       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)'
15092       hardcode_libdir_flag_spec_F77='-L$libdir'
15093       hardcode_minus_L_F77=yes
15094       # see comment about different semantics on the GNU ld section
15095       ld_shlibs_F77=no
15096       ;;
15097
15098     bsdi[45]*)
15099       export_dynamic_flag_spec_F77=-rdynamic
15100       ;;
15101
15102     cygwin* | mingw* | pw32*)
15103       # When not using gcc, we currently assume that we are using
15104       # Microsoft Visual C++.
15105       # hardcode_libdir_flag_spec is actually meaningless, as there is
15106       # no search path for DLLs.
15107       hardcode_libdir_flag_spec_F77=' '
15108       allow_undefined_flag_F77=unsupported
15109       # Tell ltmain to make .lib files, not .a files.
15110       libext=lib
15111       # Tell ltmain to make .dll files, not .so files.
15112       shrext_cmds=".dll"
15113       # FIXME: Setting linknames here is a bad hack.
15114       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15115       # The linker will automatically build a .lib file if we build a DLL.
15116       old_archive_From_new_cmds_F77='true'
15117       # FIXME: Should let the user specify the lib program.
15118       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15119       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15120       enable_shared_with_static_runtimes_F77=yes
15121       ;;
15122
15123     darwin* | rhapsody*)
15124       case $host_os in
15125         rhapsody* | darwin1.[012])
15126          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15127          ;;
15128        *) # Darwin 1.3 on
15129          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15130            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15131          else
15132            case ${MACOSX_DEPLOYMENT_TARGET} in
15133              10.[012])
15134                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15135                ;;
15136              10.*)
15137                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15138                ;;
15139            esac
15140          fi
15141          ;;
15142       esac
15143       archive_cmds_need_lc_F77=no
15144       hardcode_direct_F77=no
15145       hardcode_automatic_F77=yes
15146       hardcode_shlibpath_var_F77=unsupported
15147       whole_archive_flag_spec_F77=''
15148       link_all_deplibs_F77=yes
15149     if test "$GCC" = yes ; then
15150         output_verbose_link_cmd='echo'
15151         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}"
15152         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15153         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}"
15154         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}"
15155     else
15156       case $cc_basename in
15157         xlc*)
15158          output_verbose_link_cmd='echo'
15159          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15160          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15161           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15162          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}'
15163           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}'
15164           ;;
15165        *)
15166          ld_shlibs_F77=no
15167           ;;
15168       esac
15169     fi
15170       ;;
15171
15172     dgux*)
15173       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15174       hardcode_libdir_flag_spec_F77='-L$libdir'
15175       hardcode_shlibpath_var_F77=no
15176       ;;
15177
15178     freebsd1*)
15179       ld_shlibs_F77=no
15180       ;;
15181
15182     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15183     # support.  Future versions do this automatically, but an explicit c++rt0.o
15184     # does not break anything, and helps significantly (at the cost of a little
15185     # extra space).
15186     freebsd2.2*)
15187       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15188       hardcode_libdir_flag_spec_F77='-R$libdir'
15189       hardcode_direct_F77=yes
15190       hardcode_shlibpath_var_F77=no
15191       ;;
15192
15193     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15194     freebsd2*)
15195       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15196       hardcode_direct_F77=yes
15197       hardcode_minus_L_F77=yes
15198       hardcode_shlibpath_var_F77=no
15199       ;;
15200
15201     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15202     freebsd* | dragonfly*)
15203       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15204       hardcode_libdir_flag_spec_F77='-R$libdir'
15205       hardcode_direct_F77=yes
15206       hardcode_shlibpath_var_F77=no
15207       ;;
15208
15209     hpux9*)
15210       if test "$GCC" = yes; then
15211         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'
15212       else
15213         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'
15214       fi
15215       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15216       hardcode_libdir_separator_F77=:
15217       hardcode_direct_F77=yes
15218
15219       # hardcode_minus_L: Not really in the search PATH,
15220       # but as the default location of the library.
15221       hardcode_minus_L_F77=yes
15222       export_dynamic_flag_spec_F77='${wl}-E'
15223       ;;
15224
15225     hpux10*)
15226       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15227         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15228       else
15229         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15230       fi
15231       if test "$with_gnu_ld" = no; then
15232         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15233         hardcode_libdir_separator_F77=:
15234
15235         hardcode_direct_F77=yes
15236         export_dynamic_flag_spec_F77='${wl}-E'
15237
15238         # hardcode_minus_L: Not really in the search PATH,
15239         # but as the default location of the library.
15240         hardcode_minus_L_F77=yes
15241       fi
15242       ;;
15243
15244     hpux11*)
15245       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15246         case $host_cpu in
15247         hppa*64*)
15248           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15249           ;;
15250         ia64*)
15251           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15252           ;;
15253         *)
15254           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15255           ;;
15256         esac
15257       else
15258         case $host_cpu in
15259         hppa*64*)
15260           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15261           ;;
15262         ia64*)
15263           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15264           ;;
15265         *)
15266           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15267           ;;
15268         esac
15269       fi
15270       if test "$with_gnu_ld" = no; then
15271         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15272         hardcode_libdir_separator_F77=:
15273
15274         case $host_cpu in
15275         hppa*64*|ia64*)
15276           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15277           hardcode_direct_F77=no
15278           hardcode_shlibpath_var_F77=no
15279           ;;
15280         *)
15281           hardcode_direct_F77=yes
15282           export_dynamic_flag_spec_F77='${wl}-E'
15283
15284           # hardcode_minus_L: Not really in the search PATH,
15285           # but as the default location of the library.
15286           hardcode_minus_L_F77=yes
15287           ;;
15288         esac
15289       fi
15290       ;;
15291
15292     irix5* | irix6* | nonstopux*)
15293       if test "$GCC" = yes; then
15294         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'
15295       else
15296         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'
15297         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15298       fi
15299       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15300       hardcode_libdir_separator_F77=:
15301       link_all_deplibs_F77=yes
15302       ;;
15303
15304     netbsd* | netbsdelf*-gnu)
15305       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15306         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15307       else
15308         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15309       fi
15310       hardcode_libdir_flag_spec_F77='-R$libdir'
15311       hardcode_direct_F77=yes
15312       hardcode_shlibpath_var_F77=no
15313       ;;
15314
15315     newsos6)
15316       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15317       hardcode_direct_F77=yes
15318       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15319       hardcode_libdir_separator_F77=:
15320       hardcode_shlibpath_var_F77=no
15321       ;;
15322
15323     openbsd*)
15324       if test -f /usr/libexec/ld.so; then
15325         hardcode_direct_F77=yes
15326         hardcode_shlibpath_var_F77=no
15327         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15328           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15329           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15330           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15331           export_dynamic_flag_spec_F77='${wl}-E'
15332         else
15333           case $host_os in
15334            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15335              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15336              hardcode_libdir_flag_spec_F77='-R$libdir'
15337              ;;
15338            *)
15339              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15340              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15341              ;;
15342           esac
15343         fi
15344       else
15345         ld_shlibs_F77=no
15346       fi
15347       ;;
15348
15349     os2*)
15350       hardcode_libdir_flag_spec_F77='-L$libdir'
15351       hardcode_minus_L_F77=yes
15352       allow_undefined_flag_F77=unsupported
15353       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'
15354       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15355       ;;
15356
15357     osf3*)
15358       if test "$GCC" = yes; then
15359         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15360         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'
15361       else
15362         allow_undefined_flag_F77=' -expect_unresolved \*'
15363         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'
15364       fi
15365       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15366       hardcode_libdir_separator_F77=:
15367       ;;
15368
15369     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15370       if test "$GCC" = yes; then
15371         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15372         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'
15373         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15374       else
15375         allow_undefined_flag_F77=' -expect_unresolved \*'
15376         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'
15377         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~
15378         $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'
15379
15380         # Both c and cxx compiler support -rpath directly
15381         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15382       fi
15383       hardcode_libdir_separator_F77=:
15384       ;;
15385
15386     solaris*)
15387       no_undefined_flag_F77=' -z text'
15388       if test "$GCC" = yes; then
15389         wlarc='${wl}'
15390         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15391         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15392           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15393       else
15394         wlarc=''
15395         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15396         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15397         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15398       fi
15399       hardcode_libdir_flag_spec_F77='-R$libdir'
15400       hardcode_shlibpath_var_F77=no
15401       case $host_os in
15402       solaris2.[0-5] | solaris2.[0-5].*) ;;
15403       *)
15404         # The compiler driver will combine and reorder linker options,
15405         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15406         # but is careful enough not to reorder.
15407         # Supported since Solaris 2.6 (maybe 2.5.1?)
15408         if test "$GCC" = yes; then
15409           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15410         else
15411           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15412         fi
15413         ;;
15414       esac
15415       link_all_deplibs_F77=yes
15416       ;;
15417
15418     sunos4*)
15419       if test "x$host_vendor" = xsequent; then
15420         # Use $CC to link under sequent, because it throws in some extra .o
15421         # files that make .init and .fini sections work.
15422         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15423       else
15424         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15425       fi
15426       hardcode_libdir_flag_spec_F77='-L$libdir'
15427       hardcode_direct_F77=yes
15428       hardcode_minus_L_F77=yes
15429       hardcode_shlibpath_var_F77=no
15430       ;;
15431
15432     sysv4)
15433       case $host_vendor in
15434         sni)
15435           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15436           hardcode_direct_F77=yes # is this really true???
15437         ;;
15438         siemens)
15439           ## LD is ld it makes a PLAMLIB
15440           ## CC just makes a GrossModule.
15441           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15442           reload_cmds_F77='$CC -r -o $output$reload_objs'
15443           hardcode_direct_F77=no
15444         ;;
15445         motorola)
15446           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15447           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15448         ;;
15449       esac
15450       runpath_var='LD_RUN_PATH'
15451       hardcode_shlibpath_var_F77=no
15452       ;;
15453
15454     sysv4.3*)
15455       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15456       hardcode_shlibpath_var_F77=no
15457       export_dynamic_flag_spec_F77='-Bexport'
15458       ;;
15459
15460     sysv4*MP*)
15461       if test -d /usr/nec; then
15462         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15463         hardcode_shlibpath_var_F77=no
15464         runpath_var=LD_RUN_PATH
15465         hardcode_runpath_var=yes
15466         ld_shlibs_F77=yes
15467       fi
15468       ;;
15469
15470     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15471       no_undefined_flag_F77='${wl}-z,text'
15472       archive_cmds_need_lc_F77=no
15473       hardcode_shlibpath_var_F77=no
15474       runpath_var='LD_RUN_PATH'
15475
15476       if test "$GCC" = yes; then
15477         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15478         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15479       else
15480         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15481         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15482       fi
15483       ;;
15484
15485     sysv5* | sco3.2v5* | sco5v6*)
15486       # Note: We can NOT use -z defs as we might desire, because we do not
15487       # link with -lc, and that would cause any symbols used from libc to
15488       # always be unresolved, which means just about no library would
15489       # ever link correctly.  If we're not using GNU ld we use -z text
15490       # though, which does catch some bad symbols but isn't as heavy-handed
15491       # as -z defs.
15492       no_undefined_flag_F77='${wl}-z,text'
15493       allow_undefined_flag_F77='${wl}-z,nodefs'
15494       archive_cmds_need_lc_F77=no
15495       hardcode_shlibpath_var_F77=no
15496       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15497       hardcode_libdir_separator_F77=':'
15498       link_all_deplibs_F77=yes
15499       export_dynamic_flag_spec_F77='${wl}-Bexport'
15500       runpath_var='LD_RUN_PATH'
15501
15502       if test "$GCC" = yes; then
15503         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15504         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15505       else
15506         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15508       fi
15509       ;;
15510
15511     uts4*)
15512       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513       hardcode_libdir_flag_spec_F77='-L$libdir'
15514       hardcode_shlibpath_var_F77=no
15515       ;;
15516
15517     *)
15518       ld_shlibs_F77=no
15519       ;;
15520     esac
15521   fi
15522
15523 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15524 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15525 test "$ld_shlibs_F77" = no && can_build_shared=no
15526
15527 #
15528 # Do we need to explicitly link libc?
15529 #
15530 case "x$archive_cmds_need_lc_F77" in
15531 x|xyes)
15532   # Assume -lc should be added
15533   archive_cmds_need_lc_F77=yes
15534
15535   if test "$enable_shared" = yes && test "$GCC" = yes; then
15536     case $archive_cmds_F77 in
15537     *'~'*)
15538       # FIXME: we may have to deal with multi-command sequences.
15539       ;;
15540     '$CC '*)
15541       # Test whether the compiler implicitly links with -lc since on some
15542       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15543       # to ld, don't add -lc before -lgcc.
15544       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15546       $rm conftest*
15547       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15548
15549       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550   (eval $ac_compile) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } 2>conftest.err; then
15554         soname=conftest
15555         lib=conftest
15556         libobjs=conftest.$ac_objext
15557         deplibs=
15558         wl=$lt_prog_compiler_wl_F77
15559         pic_flag=$lt_prog_compiler_pic_F77
15560         compiler_flags=-v
15561         linker_flags=-v
15562         verstring=
15563         output_objdir=.
15564         libname=conftest
15565         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15566         allow_undefined_flag_F77=
15567         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15568   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15569   ac_status=$?
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); }
15572         then
15573           archive_cmds_need_lc_F77=no
15574         else
15575           archive_cmds_need_lc_F77=yes
15576         fi
15577         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15578       else
15579         cat conftest.err 1>&5
15580       fi
15581       $rm conftest*
15582       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15583 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15584       ;;
15585     esac
15586   fi
15587   ;;
15588 esac
15589
15590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15592 library_names_spec=
15593 libname_spec='lib$name'
15594 soname_spec=
15595 shrext_cmds=".so"
15596 postinstall_cmds=
15597 postuninstall_cmds=
15598 finish_cmds=
15599 finish_eval=
15600 shlibpath_var=
15601 shlibpath_overrides_runpath=unknown
15602 version_type=none
15603 dynamic_linker="$host_os ld.so"
15604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15605
15606 need_lib_prefix=unknown
15607 hardcode_into_libs=no
15608
15609 # when you set need_version to no, make sure it does not cause -set_version
15610 # flags to be left without arguments
15611 need_version=unknown
15612
15613 case $host_os in
15614 aix3*)
15615   version_type=linux
15616   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15617   shlibpath_var=LIBPATH
15618
15619   # AIX 3 has no versioning support, so we append a major version to the name.
15620   soname_spec='${libname}${release}${shared_ext}$major'
15621   ;;
15622
15623 aix[4-9]*)
15624   version_type=linux
15625   need_lib_prefix=no
15626   need_version=no
15627   hardcode_into_libs=yes
15628   if test "$host_cpu" = ia64; then
15629     # AIX 5 supports IA64
15630     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15631     shlibpath_var=LD_LIBRARY_PATH
15632   else
15633     # With GCC up to 2.95.x, collect2 would create an import file
15634     # for dependence libraries.  The import file would start with
15635     # the line `#! .'.  This would cause the generated library to
15636     # depend on `.', always an invalid library.  This was fixed in
15637     # development snapshots of GCC prior to 3.0.
15638     case $host_os in
15639       aix4 | aix4.[01] | aix4.[01].*)
15640       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15641            echo ' yes '
15642            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15643         :
15644       else
15645         can_build_shared=no
15646       fi
15647       ;;
15648     esac
15649     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15650     # soname into executable. Probably we can add versioning support to
15651     # collect2, so additional links can be useful in future.
15652     if test "$aix_use_runtimelinking" = yes; then
15653       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15654       # instead of lib<name>.a to let people know that these are not
15655       # typical AIX shared libraries.
15656       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657     else
15658       # We preserve .a as extension for shared libraries through AIX4.2
15659       # and later when we are not doing run time linking.
15660       library_names_spec='${libname}${release}.a $libname.a'
15661       soname_spec='${libname}${release}${shared_ext}$major'
15662     fi
15663     shlibpath_var=LIBPATH
15664   fi
15665   ;;
15666
15667 amigaos*)
15668   library_names_spec='$libname.ixlibrary $libname.a'
15669   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15670   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'
15671   ;;
15672
15673 beos*)
15674   library_names_spec='${libname}${shared_ext}'
15675   dynamic_linker="$host_os ld.so"
15676   shlibpath_var=LIBRARY_PATH
15677   ;;
15678
15679 bsdi[45]*)
15680   version_type=linux
15681   need_version=no
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683   soname_spec='${libname}${release}${shared_ext}$major'
15684   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15685   shlibpath_var=LD_LIBRARY_PATH
15686   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15687   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15688   # the default ld.so.conf also contains /usr/contrib/lib and
15689   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15690   # libtool to hard-code these into programs
15691   ;;
15692
15693 cygwin* | mingw* | pw32*)
15694   version_type=windows
15695   shrext_cmds=".dll"
15696   need_version=no
15697   need_lib_prefix=no
15698
15699   case $GCC,$host_os in
15700   yes,cygwin* | yes,mingw* | yes,pw32*)
15701     library_names_spec='$libname.dll.a'
15702     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15703     postinstall_cmds='base_file=`basename \${file}`~
15704       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15705       dldir=$destdir/`dirname \$dlpath`~
15706       test -d \$dldir || mkdir -p \$dldir~
15707       $install_prog $dir/$dlname \$dldir/$dlname~
15708       chmod a+x \$dldir/$dlname'
15709     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15710       dlpath=$dir/\$dldll~
15711        $rm \$dlpath'
15712     shlibpath_overrides_runpath=yes
15713
15714     case $host_os in
15715     cygwin*)
15716       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15717       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15718       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15719       ;;
15720     mingw*)
15721       # MinGW DLLs use traditional 'lib' prefix
15722       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15723       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15724       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15725         # It is most probably a Windows format PATH printed by
15726         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15727         # path with ; separators, and with drive letters. We can handle the
15728         # drive letters (cygwin fileutils understands them), so leave them,
15729         # especially as we might pass files found there to a mingw objdump,
15730         # which wouldn't understand a cygwinified path. Ahh.
15731         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15732       else
15733         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15734       fi
15735       ;;
15736     pw32*)
15737       # pw32 DLLs use 'pw' prefix rather than 'lib'
15738       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15739       ;;
15740     esac
15741     ;;
15742
15743   *)
15744     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15745     ;;
15746   esac
15747   dynamic_linker='Win32 ld.exe'
15748   # FIXME: first we should search . and the directory the executable is in
15749   shlibpath_var=PATH
15750   ;;
15751
15752 darwin* | rhapsody*)
15753   dynamic_linker="$host_os dyld"
15754   version_type=darwin
15755   need_lib_prefix=no
15756   need_version=no
15757   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15758   soname_spec='${libname}${release}${major}$shared_ext'
15759   shlibpath_overrides_runpath=yes
15760   shlibpath_var=DYLD_LIBRARY_PATH
15761   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15762
15763   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15764   ;;
15765
15766 dgux*)
15767   version_type=linux
15768   need_lib_prefix=no
15769   need_version=no
15770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15771   soname_spec='${libname}${release}${shared_ext}$major'
15772   shlibpath_var=LD_LIBRARY_PATH
15773   ;;
15774
15775 freebsd1*)
15776   dynamic_linker=no
15777   ;;
15778
15779 freebsd* | dragonfly*)
15780   # DragonFly does not have aout.  When/if they implement a new
15781   # versioning mechanism, adjust this.
15782   if test -x /usr/bin/objformat; then
15783     objformat=`/usr/bin/objformat`
15784   else
15785     case $host_os in
15786     freebsd[123]*) objformat=aout ;;
15787     *) objformat=elf ;;
15788     esac
15789   fi
15790   version_type=freebsd-$objformat
15791   case $version_type in
15792     freebsd-elf*)
15793       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15794       need_version=no
15795       need_lib_prefix=no
15796       ;;
15797     freebsd-*)
15798       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15799       need_version=yes
15800       ;;
15801   esac
15802   shlibpath_var=LD_LIBRARY_PATH
15803   case $host_os in
15804   freebsd2*)
15805     shlibpath_overrides_runpath=yes
15806     ;;
15807   freebsd3.[01]* | freebsdelf3.[01]*)
15808     shlibpath_overrides_runpath=yes
15809     hardcode_into_libs=yes
15810     ;;
15811   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15812   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15813     shlibpath_overrides_runpath=no
15814     hardcode_into_libs=yes
15815     ;;
15816   *) # from 4.6 on, and DragonFly
15817     shlibpath_overrides_runpath=yes
15818     hardcode_into_libs=yes
15819     ;;
15820   esac
15821   ;;
15822
15823 gnu*)
15824   version_type=linux
15825   need_lib_prefix=no
15826   need_version=no
15827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15828   soname_spec='${libname}${release}${shared_ext}$major'
15829   shlibpath_var=LD_LIBRARY_PATH
15830   hardcode_into_libs=yes
15831   ;;
15832
15833 hpux9* | hpux10* | hpux11*)
15834   # Give a soname corresponding to the major version so that dld.sl refuses to
15835   # link against other versions.
15836   version_type=sunos
15837   need_lib_prefix=no
15838   need_version=no
15839   case $host_cpu in
15840   ia64*)
15841     shrext_cmds='.so'
15842     hardcode_into_libs=yes
15843     dynamic_linker="$host_os dld.so"
15844     shlibpath_var=LD_LIBRARY_PATH
15845     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15846     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847     soname_spec='${libname}${release}${shared_ext}$major'
15848     if test "X$HPUX_IA64_MODE" = X32; then
15849       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15850     else
15851       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15852     fi
15853     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15854     ;;
15855    hppa*64*)
15856      shrext_cmds='.sl'
15857      hardcode_into_libs=yes
15858      dynamic_linker="$host_os dld.sl"
15859      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15860      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15861      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862      soname_spec='${libname}${release}${shared_ext}$major'
15863      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15864      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15865      ;;
15866    *)
15867     shrext_cmds='.sl'
15868     dynamic_linker="$host_os dld.sl"
15869     shlibpath_var=SHLIB_PATH
15870     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15872     soname_spec='${libname}${release}${shared_ext}$major'
15873     ;;
15874   esac
15875   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15876   postinstall_cmds='chmod 555 $lib'
15877   ;;
15878
15879 interix[3-9]*)
15880   version_type=linux
15881   need_lib_prefix=no
15882   need_version=no
15883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15884   soname_spec='${libname}${release}${shared_ext}$major'
15885   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15886   shlibpath_var=LD_LIBRARY_PATH
15887   shlibpath_overrides_runpath=no
15888   hardcode_into_libs=yes
15889   ;;
15890
15891 irix5* | irix6* | nonstopux*)
15892   case $host_os in
15893     nonstopux*) version_type=nonstopux ;;
15894     *)
15895         if test "$lt_cv_prog_gnu_ld" = yes; then
15896                 version_type=linux
15897         else
15898                 version_type=irix
15899         fi ;;
15900   esac
15901   need_lib_prefix=no
15902   need_version=no
15903   soname_spec='${libname}${release}${shared_ext}$major'
15904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15905   case $host_os in
15906   irix5* | nonstopux*)
15907     libsuff= shlibsuff=
15908     ;;
15909   *)
15910     case $LD in # libtool.m4 will add one of these switches to LD
15911     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15912       libsuff= shlibsuff= libmagic=32-bit;;
15913     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15914       libsuff=32 shlibsuff=N32 libmagic=N32;;
15915     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15916       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15917     *) libsuff= shlibsuff= libmagic=never-match;;
15918     esac
15919     ;;
15920   esac
15921   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15922   shlibpath_overrides_runpath=no
15923   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15924   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15925   hardcode_into_libs=yes
15926   ;;
15927
15928 # No shared lib support for Linux oldld, aout, or coff.
15929 linux*oldld* | linux*aout* | linux*coff*)
15930   dynamic_linker=no
15931   ;;
15932
15933 # This must be Linux ELF.
15934 linux* | k*bsd*-gnu)
15935   version_type=linux
15936   need_lib_prefix=no
15937   need_version=no
15938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939   soname_spec='${libname}${release}${shared_ext}$major'
15940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15941   shlibpath_var=LD_LIBRARY_PATH
15942   shlibpath_overrides_runpath=no
15943   # This implies no fast_install, which is unacceptable.
15944   # Some rework will be needed to allow for fast_install
15945   # before this can be enabled.
15946   hardcode_into_libs=yes
15947
15948   # Append ld.so.conf contents to the search path
15949   if test -f /etc/ld.so.conf; then
15950     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' ' '`
15951     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15952   fi
15953
15954   # We used to test for /lib/ld.so.1 and disable shared libraries on
15955   # powerpc, because MkLinux only supported shared libraries with the
15956   # GNU dynamic linker.  Since this was broken with cross compilers,
15957   # most powerpc-linux boxes support dynamic linking these days and
15958   # people can always --disable-shared, the test was removed, and we
15959   # assume the GNU/Linux dynamic linker is in use.
15960   dynamic_linker='GNU/Linux ld.so'
15961   ;;
15962
15963 netbsdelf*-gnu)
15964   version_type=linux
15965   need_lib_prefix=no
15966   need_version=no
15967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15968   soname_spec='${libname}${release}${shared_ext}$major'
15969   shlibpath_var=LD_LIBRARY_PATH
15970   shlibpath_overrides_runpath=no
15971   hardcode_into_libs=yes
15972   dynamic_linker='NetBSD ld.elf_so'
15973   ;;
15974
15975 netbsd*)
15976   version_type=sunos
15977   need_lib_prefix=no
15978   need_version=no
15979   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15981     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15982     dynamic_linker='NetBSD (a.out) ld.so'
15983   else
15984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15985     soname_spec='${libname}${release}${shared_ext}$major'
15986     dynamic_linker='NetBSD ld.elf_so'
15987   fi
15988   shlibpath_var=LD_LIBRARY_PATH
15989   shlibpath_overrides_runpath=yes
15990   hardcode_into_libs=yes
15991   ;;
15992
15993 newsos6)
15994   version_type=linux
15995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996   shlibpath_var=LD_LIBRARY_PATH
15997   shlibpath_overrides_runpath=yes
15998   ;;
15999
16000 nto-qnx*)
16001   version_type=linux
16002   need_lib_prefix=no
16003   need_version=no
16004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005   soname_spec='${libname}${release}${shared_ext}$major'
16006   shlibpath_var=LD_LIBRARY_PATH
16007   shlibpath_overrides_runpath=yes
16008   ;;
16009
16010 openbsd*)
16011   version_type=sunos
16012   sys_lib_dlsearch_path_spec="/usr/lib"
16013   need_lib_prefix=no
16014   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16015   case $host_os in
16016     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16017     *)                         need_version=no  ;;
16018   esac
16019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16020   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16021   shlibpath_var=LD_LIBRARY_PATH
16022   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16023     case $host_os in
16024       openbsd2.[89] | openbsd2.[89].*)
16025         shlibpath_overrides_runpath=no
16026         ;;
16027       *)
16028         shlibpath_overrides_runpath=yes
16029         ;;
16030       esac
16031   else
16032     shlibpath_overrides_runpath=yes
16033   fi
16034   ;;
16035
16036 os2*)
16037   libname_spec='$name'
16038   shrext_cmds=".dll"
16039   need_lib_prefix=no
16040   library_names_spec='$libname${shared_ext} $libname.a'
16041   dynamic_linker='OS/2 ld.exe'
16042   shlibpath_var=LIBPATH
16043   ;;
16044
16045 osf3* | osf4* | osf5*)
16046   version_type=osf
16047   need_lib_prefix=no
16048   need_version=no
16049   soname_spec='${libname}${release}${shared_ext}$major'
16050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051   shlibpath_var=LD_LIBRARY_PATH
16052   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16053   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16054   ;;
16055
16056 rdos*)
16057   dynamic_linker=no
16058   ;;
16059
16060 solaris*)
16061   version_type=linux
16062   need_lib_prefix=no
16063   need_version=no
16064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065   soname_spec='${libname}${release}${shared_ext}$major'
16066   shlibpath_var=LD_LIBRARY_PATH
16067   shlibpath_overrides_runpath=yes
16068   hardcode_into_libs=yes
16069   # ldd complains unless libraries are executable
16070   postinstall_cmds='chmod +x $lib'
16071   ;;
16072
16073 sunos4*)
16074   version_type=sunos
16075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16076   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16077   shlibpath_var=LD_LIBRARY_PATH
16078   shlibpath_overrides_runpath=yes
16079   if test "$with_gnu_ld" = yes; then
16080     need_lib_prefix=no
16081   fi
16082   need_version=yes
16083   ;;
16084
16085 sysv4 | sysv4.3*)
16086   version_type=linux
16087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088   soname_spec='${libname}${release}${shared_ext}$major'
16089   shlibpath_var=LD_LIBRARY_PATH
16090   case $host_vendor in
16091     sni)
16092       shlibpath_overrides_runpath=no
16093       need_lib_prefix=no
16094       export_dynamic_flag_spec='${wl}-Blargedynsym'
16095       runpath_var=LD_RUN_PATH
16096       ;;
16097     siemens)
16098       need_lib_prefix=no
16099       ;;
16100     motorola)
16101       need_lib_prefix=no
16102       need_version=no
16103       shlibpath_overrides_runpath=no
16104       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16105       ;;
16106   esac
16107   ;;
16108
16109 sysv4*MP*)
16110   if test -d /usr/nec ;then
16111     version_type=linux
16112     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16113     soname_spec='$libname${shared_ext}.$major'
16114     shlibpath_var=LD_LIBRARY_PATH
16115   fi
16116   ;;
16117
16118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16119   version_type=freebsd-elf
16120   need_lib_prefix=no
16121   need_version=no
16122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16123   soname_spec='${libname}${release}${shared_ext}$major'
16124   shlibpath_var=LD_LIBRARY_PATH
16125   hardcode_into_libs=yes
16126   if test "$with_gnu_ld" = yes; then
16127     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16128     shlibpath_overrides_runpath=no
16129   else
16130     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16131     shlibpath_overrides_runpath=yes
16132     case $host_os in
16133       sco3.2v5*)
16134         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16135         ;;
16136     esac
16137   fi
16138   sys_lib_dlsearch_path_spec='/usr/lib'
16139   ;;
16140
16141 uts4*)
16142   version_type=linux
16143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144   soname_spec='${libname}${release}${shared_ext}$major'
16145   shlibpath_var=LD_LIBRARY_PATH
16146   ;;
16147
16148 *)
16149   dynamic_linker=no
16150   ;;
16151 esac
16152 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16153 echo "${ECHO_T}$dynamic_linker" >&6; }
16154 test "$dynamic_linker" = no && can_build_shared=no
16155
16156 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16157   echo $ECHO_N "(cached) $ECHO_C" >&6
16158 else
16159   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16160 fi
16161
16162 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16163 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16167 fi
16168
16169 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16170
16171 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16172 if test "$GCC" = yes; then
16173   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16174 fi
16175
16176 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16177 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16178 hardcode_action_F77=
16179 if test -n "$hardcode_libdir_flag_spec_F77" || \
16180    test -n "$runpath_var_F77" || \
16181    test "X$hardcode_automatic_F77" = "Xyes" ; then
16182
16183   # We can hardcode non-existant directories.
16184   if test "$hardcode_direct_F77" != no &&
16185      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16186      # have to relink, otherwise we might link with an installed library
16187      # when we should be linking with a yet-to-be-installed one
16188      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16189      test "$hardcode_minus_L_F77" != no; then
16190     # Linking always hardcodes the temporary library directory.
16191     hardcode_action_F77=relink
16192   else
16193     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16194     hardcode_action_F77=immediate
16195   fi
16196 else
16197   # We cannot hardcode anything, or else we can only hardcode existing
16198   # directories.
16199   hardcode_action_F77=unsupported
16200 fi
16201 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16202 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16203
16204 if test "$hardcode_action_F77" = relink; then
16205   # Fast installation is not supported
16206   enable_fast_install=no
16207 elif test "$shlibpath_overrides_runpath" = yes ||
16208      test "$enable_shared" = no; then
16209   # Fast installation is not necessary
16210   enable_fast_install=needless
16211 fi
16212
16213
16214 # The else clause should only fire when bootstrapping the
16215 # libtool distribution, otherwise you forgot to ship ltmain.sh
16216 # with your package, and you will get complaints that there are
16217 # no rules to generate ltmain.sh.
16218 if test -f "$ltmain"; then
16219   # See if we are running on zsh, and set the options which allow our commands through
16220   # without removal of \ escapes.
16221   if test -n "${ZSH_VERSION+set}" ; then
16222     setopt NO_GLOB_SUBST
16223   fi
16224   # Now quote all the things that may contain metacharacters while being
16225   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16226   # variables and quote the copies for generation of the libtool script.
16227   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16228     SED SHELL STRIP \
16229     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16230     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16231     deplibs_check_method reload_flag reload_cmds need_locks \
16232     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16233     lt_cv_sys_global_symbol_to_c_name_address \
16234     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16235     old_postinstall_cmds old_postuninstall_cmds \
16236     compiler_F77 \
16237     CC_F77 \
16238     LD_F77 \
16239     lt_prog_compiler_wl_F77 \
16240     lt_prog_compiler_pic_F77 \
16241     lt_prog_compiler_static_F77 \
16242     lt_prog_compiler_no_builtin_flag_F77 \
16243     export_dynamic_flag_spec_F77 \
16244     thread_safe_flag_spec_F77 \
16245     whole_archive_flag_spec_F77 \
16246     enable_shared_with_static_runtimes_F77 \
16247     old_archive_cmds_F77 \
16248     old_archive_from_new_cmds_F77 \
16249     predep_objects_F77 \
16250     postdep_objects_F77 \
16251     predeps_F77 \
16252     postdeps_F77 \
16253     compiler_lib_search_path_F77 \
16254     compiler_lib_search_dirs_F77 \
16255     archive_cmds_F77 \
16256     archive_expsym_cmds_F77 \
16257     postinstall_cmds_F77 \
16258     postuninstall_cmds_F77 \
16259     old_archive_from_expsyms_cmds_F77 \
16260     allow_undefined_flag_F77 \
16261     no_undefined_flag_F77 \
16262     export_symbols_cmds_F77 \
16263     hardcode_libdir_flag_spec_F77 \
16264     hardcode_libdir_flag_spec_ld_F77 \
16265     hardcode_libdir_separator_F77 \
16266     hardcode_automatic_F77 \
16267     module_cmds_F77 \
16268     module_expsym_cmds_F77 \
16269     lt_cv_prog_compiler_c_o_F77 \
16270     fix_srcfile_path_F77 \
16271     exclude_expsyms_F77 \
16272     include_expsyms_F77; do
16273
16274     case $var in
16275     old_archive_cmds_F77 | \
16276     old_archive_from_new_cmds_F77 | \
16277     archive_cmds_F77 | \
16278     archive_expsym_cmds_F77 | \
16279     module_cmds_F77 | \
16280     module_expsym_cmds_F77 | \
16281     old_archive_from_expsyms_cmds_F77 | \
16282     export_symbols_cmds_F77 | \
16283     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16284     postinstall_cmds | postuninstall_cmds | \
16285     old_postinstall_cmds | old_postuninstall_cmds | \
16286     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16287       # Double-quote double-evaled strings.
16288       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16289       ;;
16290     *)
16291       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16292       ;;
16293     esac
16294   done
16295
16296   case $lt_echo in
16297   *'\$0 --fallback-echo"')
16298     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16299     ;;
16300   esac
16301
16302 cfgfile="$ofile"
16303
16304   cat <<__EOF__ >> "$cfgfile"
16305 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16306
16307 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16308
16309 # Shell to use when invoking shell scripts.
16310 SHELL=$lt_SHELL
16311
16312 # Whether or not to build shared libraries.
16313 build_libtool_libs=$enable_shared
16314
16315 # Whether or not to build static libraries.
16316 build_old_libs=$enable_static
16317
16318 # Whether or not to add -lc for building shared libraries.
16319 build_libtool_need_lc=$archive_cmds_need_lc_F77
16320
16321 # Whether or not to disallow shared libs when runtime libs are static
16322 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16323
16324 # Whether or not to optimize for fast installation.
16325 fast_install=$enable_fast_install
16326
16327 # The host system.
16328 host_alias=$host_alias
16329 host=$host
16330 host_os=$host_os
16331
16332 # The build system.
16333 build_alias=$build_alias
16334 build=$build
16335 build_os=$build_os
16336
16337 # An echo program that does not interpret backslashes.
16338 echo=$lt_echo
16339
16340 # The archiver.
16341 AR=$lt_AR
16342 AR_FLAGS=$lt_AR_FLAGS
16343
16344 # A C compiler.
16345 LTCC=$lt_LTCC
16346
16347 # LTCC compiler flags.
16348 LTCFLAGS=$lt_LTCFLAGS
16349
16350 # A language-specific compiler.
16351 CC=$lt_compiler_F77
16352
16353 # Is the compiler the GNU C compiler?
16354 with_gcc=$GCC_F77
16355
16356 # An ERE matcher.
16357 EGREP=$lt_EGREP
16358
16359 # The linker used to build libraries.
16360 LD=$lt_LD_F77
16361
16362 # Whether we need hard or soft links.
16363 LN_S=$lt_LN_S
16364
16365 # A BSD-compatible nm program.
16366 NM=$lt_NM
16367
16368 # A symbol stripping program
16369 STRIP=$lt_STRIP
16370
16371 # Used to examine libraries when file_magic_cmd begins "file"
16372 MAGIC_CMD=$MAGIC_CMD
16373
16374 # Used on cygwin: DLL creation program.
16375 DLLTOOL="$DLLTOOL"
16376
16377 # Used on cygwin: object dumper.
16378 OBJDUMP="$OBJDUMP"
16379
16380 # Used on cygwin: assembler.
16381 AS="$AS"
16382
16383 # The name of the directory that contains temporary libtool files.
16384 objdir=$objdir
16385
16386 # How to create reloadable object files.
16387 reload_flag=$lt_reload_flag
16388 reload_cmds=$lt_reload_cmds
16389
16390 # How to pass a linker flag through the compiler.
16391 wl=$lt_lt_prog_compiler_wl_F77
16392
16393 # Object file suffix (normally "o").
16394 objext="$ac_objext"
16395
16396 # Old archive suffix (normally "a").
16397 libext="$libext"
16398
16399 # Shared library suffix (normally ".so").
16400 shrext_cmds='$shrext_cmds'
16401
16402 # Executable file suffix (normally "").
16403 exeext="$exeext"
16404
16405 # Additional compiler flags for building library objects.
16406 pic_flag=$lt_lt_prog_compiler_pic_F77
16407 pic_mode=$pic_mode
16408
16409 # What is the maximum length of a command?
16410 max_cmd_len=$lt_cv_sys_max_cmd_len
16411
16412 # Does compiler simultaneously support -c and -o options?
16413 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16414
16415 # Must we lock files when doing compilation?
16416 need_locks=$lt_need_locks
16417
16418 # Do we need the lib prefix for modules?
16419 need_lib_prefix=$need_lib_prefix
16420
16421 # Do we need a version for libraries?
16422 need_version=$need_version
16423
16424 # Whether dlopen is supported.
16425 dlopen_support=$enable_dlopen
16426
16427 # Whether dlopen of programs is supported.
16428 dlopen_self=$enable_dlopen_self
16429
16430 # Whether dlopen of statically linked programs is supported.
16431 dlopen_self_static=$enable_dlopen_self_static
16432
16433 # Compiler flag to prevent dynamic linking.
16434 link_static_flag=$lt_lt_prog_compiler_static_F77
16435
16436 # Compiler flag to turn off builtin functions.
16437 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16438
16439 # Compiler flag to allow reflexive dlopens.
16440 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16441
16442 # Compiler flag to generate shared objects directly from archives.
16443 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16444
16445 # Compiler flag to generate thread-safe objects.
16446 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16447
16448 # Library versioning type.
16449 version_type=$version_type
16450
16451 # Format of library name prefix.
16452 libname_spec=$lt_libname_spec
16453
16454 # List of archive names.  First name is the real one, the rest are links.
16455 # The last name is the one that the linker finds with -lNAME.
16456 library_names_spec=$lt_library_names_spec
16457
16458 # The coded name of the library, if different from the real name.
16459 soname_spec=$lt_soname_spec
16460
16461 # Commands used to build and install an old-style archive.
16462 RANLIB=$lt_RANLIB
16463 old_archive_cmds=$lt_old_archive_cmds_F77
16464 old_postinstall_cmds=$lt_old_postinstall_cmds
16465 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16466
16467 # Create an old-style archive from a shared archive.
16468 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16469
16470 # Create a temporary old-style archive to link instead of a shared archive.
16471 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16472
16473 # Commands used to build and install a shared archive.
16474 archive_cmds=$lt_archive_cmds_F77
16475 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16476 postinstall_cmds=$lt_postinstall_cmds
16477 postuninstall_cmds=$lt_postuninstall_cmds
16478
16479 # Commands used to build a loadable module (assumed same as above if empty)
16480 module_cmds=$lt_module_cmds_F77
16481 module_expsym_cmds=$lt_module_expsym_cmds_F77
16482
16483 # Commands to strip libraries.
16484 old_striplib=$lt_old_striplib
16485 striplib=$lt_striplib
16486
16487 # Dependencies to place before the objects being linked to create a
16488 # shared library.
16489 predep_objects=$lt_predep_objects_F77
16490
16491 # Dependencies to place after the objects being linked to create a
16492 # shared library.
16493 postdep_objects=$lt_postdep_objects_F77
16494
16495 # Dependencies to place before the objects being linked to create a
16496 # shared library.
16497 predeps=$lt_predeps_F77
16498
16499 # Dependencies to place after the objects being linked to create a
16500 # shared library.
16501 postdeps=$lt_postdeps_F77
16502
16503 # The directories searched by this compiler when creating a shared
16504 # library
16505 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16506
16507 # The library search path used internally by the compiler when linking
16508 # a shared library.
16509 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16510
16511 # Method to check whether dependent libraries are shared objects.
16512 deplibs_check_method=$lt_deplibs_check_method
16513
16514 # Command to use when deplibs_check_method == file_magic.
16515 file_magic_cmd=$lt_file_magic_cmd
16516
16517 # Flag that allows shared libraries with undefined symbols to be built.
16518 allow_undefined_flag=$lt_allow_undefined_flag_F77
16519
16520 # Flag that forces no undefined symbols.
16521 no_undefined_flag=$lt_no_undefined_flag_F77
16522
16523 # Commands used to finish a libtool library installation in a directory.
16524 finish_cmds=$lt_finish_cmds
16525
16526 # Same as above, but a single script fragment to be evaled but not shown.
16527 finish_eval=$lt_finish_eval
16528
16529 # Take the output of nm and produce a listing of raw symbols and C names.
16530 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16531
16532 # Transform the output of nm in a proper C declaration
16533 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16534
16535 # Transform the output of nm in a C name address pair
16536 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16537
16538 # This is the shared library runtime path variable.
16539 runpath_var=$runpath_var
16540
16541 # This is the shared library path variable.
16542 shlibpath_var=$shlibpath_var
16543
16544 # Is shlibpath searched before the hard-coded library search path?
16545 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16546
16547 # How to hardcode a shared library path into an executable.
16548 hardcode_action=$hardcode_action_F77
16549
16550 # Whether we should hardcode library paths into libraries.
16551 hardcode_into_libs=$hardcode_into_libs
16552
16553 # Flag to hardcode \$libdir into a binary during linking.
16554 # This must work even if \$libdir does not exist.
16555 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16556
16557 # If ld is used when linking, flag to hardcode \$libdir into
16558 # a binary during linking. This must work even if \$libdir does
16559 # not exist.
16560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16561
16562 # Whether we need a single -rpath flag with a separated argument.
16563 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16564
16565 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16566 # resulting binary.
16567 hardcode_direct=$hardcode_direct_F77
16568
16569 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16570 # resulting binary.
16571 hardcode_minus_L=$hardcode_minus_L_F77
16572
16573 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16574 # the resulting binary.
16575 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16576
16577 # Set to yes if building a shared library automatically hardcodes DIR into the library
16578 # and all subsequent libraries and executables linked against it.
16579 hardcode_automatic=$hardcode_automatic_F77
16580
16581 # Variables whose values should be saved in libtool wrapper scripts and
16582 # restored at relink time.
16583 variables_saved_for_relink="$variables_saved_for_relink"
16584
16585 # Whether libtool must link a program against all its dependency libraries.
16586 link_all_deplibs=$link_all_deplibs_F77
16587
16588 # Compile-time system search path for libraries
16589 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16590
16591 # Run-time system search path for libraries
16592 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16593
16594 # Fix the shell variable \$srcfile for the compiler.
16595 fix_srcfile_path=$lt_fix_srcfile_path
16596
16597 # Set to yes if exported symbols are required.
16598 always_export_symbols=$always_export_symbols_F77
16599
16600 # The commands to list exported symbols.
16601 export_symbols_cmds=$lt_export_symbols_cmds_F77
16602
16603 # The commands to extract the exported symbol list from a shared archive.
16604 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16605
16606 # Symbols that should not be listed in the preloaded symbols.
16607 exclude_expsyms=$lt_exclude_expsyms_F77
16608
16609 # Symbols that must always be exported.
16610 include_expsyms=$lt_include_expsyms_F77
16611
16612 # ### END LIBTOOL TAG CONFIG: $tagname
16613
16614 __EOF__
16615
16616
16617 else
16618   # If there is no Makefile yet, we rely on a make rule to execute
16619   # `config.status --recheck' to rerun these tests and create the
16620   # libtool script then.
16621   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16622   if test -f "$ltmain_in"; then
16623     test -f Makefile && make "$ltmain"
16624   fi
16625 fi
16626
16627
16628 ac_ext=c
16629 ac_cpp='$CPP $CPPFLAGS'
16630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16633
16634 CC="$lt_save_CC"
16635
16636         else
16637           tagname=""
16638         fi
16639         ;;
16640
16641       GCJ)
16642         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16643
16644
16645 # Source file extension for Java test sources.
16646 ac_ext=java
16647
16648 # Object file extension for compiled Java test sources.
16649 objext=o
16650 objext_GCJ=$objext
16651
16652 # Code to be used in simple compile tests
16653 lt_simple_compile_test_code="class foo {}"
16654
16655 # Code to be used in simple link tests
16656 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16657
16658 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16659
16660 # If no C compiler was specified, use CC.
16661 LTCC=${LTCC-"$CC"}
16662
16663 # If no C compiler flags were specified, use CFLAGS.
16664 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16665
16666 # Allow CC to be a program name with arguments.
16667 compiler=$CC
16668
16669
16670 # save warnings/boilerplate of simple test code
16671 ac_outfile=conftest.$ac_objext
16672 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16674 _lt_compiler_boilerplate=`cat conftest.err`
16675 $rm conftest*
16676
16677 ac_outfile=conftest.$ac_objext
16678 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16680 _lt_linker_boilerplate=`cat conftest.err`
16681 $rm -r conftest*
16682
16683
16684 # Allow CC to be a program name with arguments.
16685 lt_save_CC="$CC"
16686 CC=${GCJ-"gcj"}
16687 compiler=$CC
16688 compiler_GCJ=$CC
16689 for cc_temp in $compiler""; do
16690   case $cc_temp in
16691     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16692     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16693     \-*) ;;
16694     *) break;;
16695   esac
16696 done
16697 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16698
16699
16700 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16701 archive_cmds_need_lc_GCJ=no
16702
16703 old_archive_cmds_GCJ=$old_archive_cmds
16704
16705
16706 lt_prog_compiler_no_builtin_flag_GCJ=
16707
16708 if test "$GCC" = yes; then
16709   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16710
16711
16712 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16713 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16714 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16715   echo $ECHO_N "(cached) $ECHO_C" >&6
16716 else
16717   lt_cv_prog_compiler_rtti_exceptions=no
16718   ac_outfile=conftest.$ac_objext
16719    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16720    lt_compiler_flag="-fno-rtti -fno-exceptions"
16721    # Insert the option either (1) after the last *FLAGS variable, or
16722    # (2) before a word containing "conftest.", or (3) at the end.
16723    # Note that $ac_compile itself does not contain backslashes and begins
16724    # with a dollar sign (not a hyphen), so the echo should work correctly.
16725    # The option is referenced via a variable to avoid confusing sed.
16726    lt_compile=`echo "$ac_compile" | $SED \
16727    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16728    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16729    -e 's:$: $lt_compiler_flag:'`
16730    (eval echo "\"\$as_me:16730: $lt_compile\"" >&5)
16731    (eval "$lt_compile" 2>conftest.err)
16732    ac_status=$?
16733    cat conftest.err >&5
16734    echo "$as_me:16734: \$? = $ac_status" >&5
16735    if (exit $ac_status) && test -s "$ac_outfile"; then
16736      # The compiler can only warn and ignore the option if not recognized
16737      # So say no if there are warnings other than the usual output.
16738      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16739      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16740      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16741        lt_cv_prog_compiler_rtti_exceptions=yes
16742      fi
16743    fi
16744    $rm conftest*
16745
16746 fi
16747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16748 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16749
16750 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16751     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16752 else
16753     :
16754 fi
16755
16756 fi
16757
16758 lt_prog_compiler_wl_GCJ=
16759 lt_prog_compiler_pic_GCJ=
16760 lt_prog_compiler_static_GCJ=
16761
16762 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16764
16765   if test "$GCC" = yes; then
16766     lt_prog_compiler_wl_GCJ='-Wl,'
16767     lt_prog_compiler_static_GCJ='-static'
16768
16769     case $host_os in
16770       aix*)
16771       # All AIX code is PIC.
16772       if test "$host_cpu" = ia64; then
16773         # AIX 5 now supports IA64 processor
16774         lt_prog_compiler_static_GCJ='-Bstatic'
16775       fi
16776       ;;
16777
16778     amigaos*)
16779       # FIXME: we need at least 68020 code to build shared libraries, but
16780       # adding the `-m68020' flag to GCC prevents building anything better,
16781       # like `-m68040'.
16782       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16783       ;;
16784
16785     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16786       # PIC is the default for these OSes.
16787       ;;
16788
16789     mingw* | cygwin* | pw32* | os2*)
16790       # This hack is so that the source file can tell whether it is being
16791       # built for inclusion in a dll (and should export symbols for example).
16792       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16793       # (--disable-auto-import) libraries
16794
16795       ;;
16796
16797     darwin* | rhapsody*)
16798       # PIC is the default on this platform
16799       # Common symbols not allowed in MH_DYLIB files
16800       lt_prog_compiler_pic_GCJ='-fno-common'
16801       ;;
16802
16803     interix[3-9]*)
16804       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16805       # Instead, we relocate shared libraries at runtime.
16806       ;;
16807
16808     msdosdjgpp*)
16809       # Just because we use GCC doesn't mean we suddenly get shared libraries
16810       # on systems that don't support them.
16811       lt_prog_compiler_can_build_shared_GCJ=no
16812       enable_shared=no
16813       ;;
16814
16815     sysv4*MP*)
16816       if test -d /usr/nec; then
16817         lt_prog_compiler_pic_GCJ=-Kconform_pic
16818       fi
16819       ;;
16820
16821     hpux*)
16822       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16823       # not for PA HP-UX.
16824       case $host_cpu in
16825       hppa*64*|ia64*)
16826         # +Z the default
16827         ;;
16828       *)
16829         lt_prog_compiler_pic_GCJ='-fPIC'
16830         ;;
16831       esac
16832       ;;
16833
16834     *)
16835       lt_prog_compiler_pic_GCJ='-fPIC'
16836       ;;
16837     esac
16838   else
16839     # PORTME Check for flag to pass linker flags through the system compiler.
16840     case $host_os in
16841     aix*)
16842       lt_prog_compiler_wl_GCJ='-Wl,'
16843       if test "$host_cpu" = ia64; then
16844         # AIX 5 now supports IA64 processor
16845         lt_prog_compiler_static_GCJ='-Bstatic'
16846       else
16847         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16848       fi
16849       ;;
16850       darwin*)
16851         # PIC is the default on this platform
16852         # Common symbols not allowed in MH_DYLIB files
16853        case $cc_basename in
16854          xlc*)
16855          lt_prog_compiler_pic_GCJ='-qnocommon'
16856          lt_prog_compiler_wl_GCJ='-Wl,'
16857          ;;
16858        esac
16859        ;;
16860
16861     mingw* | cygwin* | pw32* | os2*)
16862       # This hack is so that the source file can tell whether it is being
16863       # built for inclusion in a dll (and should export symbols for example).
16864
16865       ;;
16866
16867     hpux9* | hpux10* | hpux11*)
16868       lt_prog_compiler_wl_GCJ='-Wl,'
16869       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16870       # not for PA HP-UX.
16871       case $host_cpu in
16872       hppa*64*|ia64*)
16873         # +Z the default
16874         ;;
16875       *)
16876         lt_prog_compiler_pic_GCJ='+Z'
16877         ;;
16878       esac
16879       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16880       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16881       ;;
16882
16883     irix5* | irix6* | nonstopux*)
16884       lt_prog_compiler_wl_GCJ='-Wl,'
16885       # PIC (with -KPIC) is the default.
16886       lt_prog_compiler_static_GCJ='-non_shared'
16887       ;;
16888
16889     newsos6)
16890       lt_prog_compiler_pic_GCJ='-KPIC'
16891       lt_prog_compiler_static_GCJ='-Bstatic'
16892       ;;
16893
16894     linux* | k*bsd*-gnu)
16895       case $cc_basename in
16896       icc* | ecc*)
16897         lt_prog_compiler_wl_GCJ='-Wl,'
16898         lt_prog_compiler_pic_GCJ='-KPIC'
16899         lt_prog_compiler_static_GCJ='-static'
16900         ;;
16901       pgcc* | pgf77* | pgf90* | pgf95*)
16902         # Portland Group compilers (*not* the Pentium gcc compiler,
16903         # which looks to be a dead project)
16904         lt_prog_compiler_wl_GCJ='-Wl,'
16905         lt_prog_compiler_pic_GCJ='-fpic'
16906         lt_prog_compiler_static_GCJ='-Bstatic'
16907         ;;
16908       ccc*)
16909         lt_prog_compiler_wl_GCJ='-Wl,'
16910         # All Alpha code is PIC.
16911         lt_prog_compiler_static_GCJ='-non_shared'
16912         ;;
16913       *)
16914         case `$CC -V 2>&1 | sed 5q` in
16915         *Sun\ C*)
16916           # Sun C 5.9
16917           lt_prog_compiler_pic_GCJ='-KPIC'
16918           lt_prog_compiler_static_GCJ='-Bstatic'
16919           lt_prog_compiler_wl_GCJ='-Wl,'
16920           ;;
16921         *Sun\ F*)
16922           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16923           lt_prog_compiler_pic_GCJ='-KPIC'
16924           lt_prog_compiler_static_GCJ='-Bstatic'
16925           lt_prog_compiler_wl_GCJ=''
16926           ;;
16927         esac
16928         ;;
16929       esac
16930       ;;
16931
16932     osf3* | osf4* | osf5*)
16933       lt_prog_compiler_wl_GCJ='-Wl,'
16934       # All OSF/1 code is PIC.
16935       lt_prog_compiler_static_GCJ='-non_shared'
16936       ;;
16937
16938     rdos*)
16939       lt_prog_compiler_static_GCJ='-non_shared'
16940       ;;
16941
16942     solaris*)
16943       lt_prog_compiler_pic_GCJ='-KPIC'
16944       lt_prog_compiler_static_GCJ='-Bstatic'
16945       case $cc_basename in
16946       f77* | f90* | f95*)
16947         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16948       *)
16949         lt_prog_compiler_wl_GCJ='-Wl,';;
16950       esac
16951       ;;
16952
16953     sunos4*)
16954       lt_prog_compiler_wl_GCJ='-Qoption ld '
16955       lt_prog_compiler_pic_GCJ='-PIC'
16956       lt_prog_compiler_static_GCJ='-Bstatic'
16957       ;;
16958
16959     sysv4 | sysv4.2uw2* | sysv4.3*)
16960       lt_prog_compiler_wl_GCJ='-Wl,'
16961       lt_prog_compiler_pic_GCJ='-KPIC'
16962       lt_prog_compiler_static_GCJ='-Bstatic'
16963       ;;
16964
16965     sysv4*MP*)
16966       if test -d /usr/nec ;then
16967         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16968         lt_prog_compiler_static_GCJ='-Bstatic'
16969       fi
16970       ;;
16971
16972     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16973       lt_prog_compiler_wl_GCJ='-Wl,'
16974       lt_prog_compiler_pic_GCJ='-KPIC'
16975       lt_prog_compiler_static_GCJ='-Bstatic'
16976       ;;
16977
16978     unicos*)
16979       lt_prog_compiler_wl_GCJ='-Wl,'
16980       lt_prog_compiler_can_build_shared_GCJ=no
16981       ;;
16982
16983     uts4*)
16984       lt_prog_compiler_pic_GCJ='-pic'
16985       lt_prog_compiler_static_GCJ='-Bstatic'
16986       ;;
16987
16988     *)
16989       lt_prog_compiler_can_build_shared_GCJ=no
16990       ;;
16991     esac
16992   fi
16993
16994 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16995 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16996
16997 #
16998 # Check to make sure the PIC flag actually works.
16999 #
17000 if test -n "$lt_prog_compiler_pic_GCJ"; then
17001
17002 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17003 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17004 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17005   echo $ECHO_N "(cached) $ECHO_C" >&6
17006 else
17007   lt_cv_prog_compiler_pic_works_GCJ=no
17008   ac_outfile=conftest.$ac_objext
17009    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17010    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17011    # Insert the option either (1) after the last *FLAGS variable, or
17012    # (2) before a word containing "conftest.", or (3) at the end.
17013    # Note that $ac_compile itself does not contain backslashes and begins
17014    # with a dollar sign (not a hyphen), so the echo should work correctly.
17015    # The option is referenced via a variable to avoid confusing sed.
17016    lt_compile=`echo "$ac_compile" | $SED \
17017    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17018    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17019    -e 's:$: $lt_compiler_flag:'`
17020    (eval echo "\"\$as_me:17020: $lt_compile\"" >&5)
17021    (eval "$lt_compile" 2>conftest.err)
17022    ac_status=$?
17023    cat conftest.err >&5
17024    echo "$as_me:17024: \$? = $ac_status" >&5
17025    if (exit $ac_status) && test -s "$ac_outfile"; then
17026      # The compiler can only warn and ignore the option if not recognized
17027      # So say no if there are warnings other than the usual output.
17028      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17029      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17030      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17031        lt_cv_prog_compiler_pic_works_GCJ=yes
17032      fi
17033    fi
17034    $rm conftest*
17035
17036 fi
17037 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17038 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17039
17040 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17041     case $lt_prog_compiler_pic_GCJ in
17042      "" | " "*) ;;
17043      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17044      esac
17045 else
17046     lt_prog_compiler_pic_GCJ=
17047      lt_prog_compiler_can_build_shared_GCJ=no
17048 fi
17049
17050 fi
17051 case $host_os in
17052   # For platforms which do not support PIC, -DPIC is meaningless:
17053   *djgpp*)
17054     lt_prog_compiler_pic_GCJ=
17055     ;;
17056   *)
17057     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17058     ;;
17059 esac
17060
17061 #
17062 # Check to make sure the static flag actually works.
17063 #
17064 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17065 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17066 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17067 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070   lt_cv_prog_compiler_static_works_GCJ=no
17071    save_LDFLAGS="$LDFLAGS"
17072    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17073    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17074    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17075      # The linker can only warn and ignore the option if not recognized
17076      # So say no if there are warnings
17077      if test -s conftest.err; then
17078        # Append any errors to the config.log.
17079        cat conftest.err 1>&5
17080        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17081        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17082        if diff conftest.exp conftest.er2 >/dev/null; then
17083          lt_cv_prog_compiler_static_works_GCJ=yes
17084        fi
17085      else
17086        lt_cv_prog_compiler_static_works_GCJ=yes
17087      fi
17088    fi
17089    $rm -r conftest*
17090    LDFLAGS="$save_LDFLAGS"
17091
17092 fi
17093 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17094 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17095
17096 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17097     :
17098 else
17099     lt_prog_compiler_static_GCJ=
17100 fi
17101
17102
17103 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17105 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17106   echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108   lt_cv_prog_compiler_c_o_GCJ=no
17109    $rm -r conftest 2>/dev/null
17110    mkdir conftest
17111    cd conftest
17112    mkdir out
17113    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17114
17115    lt_compiler_flag="-o out/conftest2.$ac_objext"
17116    # Insert the option either (1) after the last *FLAGS variable, or
17117    # (2) before a word containing "conftest.", or (3) at the end.
17118    # Note that $ac_compile itself does not contain backslashes and begins
17119    # with a dollar sign (not a hyphen), so the echo should work correctly.
17120    lt_compile=`echo "$ac_compile" | $SED \
17121    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17123    -e 's:$: $lt_compiler_flag:'`
17124    (eval echo "\"\$as_me:17124: $lt_compile\"" >&5)
17125    (eval "$lt_compile" 2>out/conftest.err)
17126    ac_status=$?
17127    cat out/conftest.err >&5
17128    echo "$as_me:17128: \$? = $ac_status" >&5
17129    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17130    then
17131      # The compiler can only warn and ignore the option if not recognized
17132      # So say no if there are warnings
17133      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17134      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17135      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17136        lt_cv_prog_compiler_c_o_GCJ=yes
17137      fi
17138    fi
17139    chmod u+w . 2>&5
17140    $rm conftest*
17141    # SGI C++ compiler will create directory out/ii_files/ for
17142    # template instantiation
17143    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17144    $rm out/* && rmdir out
17145    cd ..
17146    rmdir conftest
17147    $rm conftest*
17148
17149 fi
17150 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17152
17153
17154 hard_links="nottested"
17155 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17156   # do not overwrite the value of need_locks provided by the user
17157   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17159   hard_links=yes
17160   $rm conftest*
17161   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17162   touch conftest.a
17163   ln conftest.a conftest.b 2>&5 || hard_links=no
17164   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17165   { echo "$as_me:$LINENO: result: $hard_links" >&5
17166 echo "${ECHO_T}$hard_links" >&6; }
17167   if test "$hard_links" = no; then
17168     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17170     need_locks=warn
17171   fi
17172 else
17173   need_locks=no
17174 fi
17175
17176 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17178
17179   runpath_var=
17180   allow_undefined_flag_GCJ=
17181   enable_shared_with_static_runtimes_GCJ=no
17182   archive_cmds_GCJ=
17183   archive_expsym_cmds_GCJ=
17184   old_archive_From_new_cmds_GCJ=
17185   old_archive_from_expsyms_cmds_GCJ=
17186   export_dynamic_flag_spec_GCJ=
17187   whole_archive_flag_spec_GCJ=
17188   thread_safe_flag_spec_GCJ=
17189   hardcode_libdir_flag_spec_GCJ=
17190   hardcode_libdir_flag_spec_ld_GCJ=
17191   hardcode_libdir_separator_GCJ=
17192   hardcode_direct_GCJ=no
17193   hardcode_minus_L_GCJ=no
17194   hardcode_shlibpath_var_GCJ=unsupported
17195   link_all_deplibs_GCJ=unknown
17196   hardcode_automatic_GCJ=no
17197   module_cmds_GCJ=
17198   module_expsym_cmds_GCJ=
17199   always_export_symbols_GCJ=no
17200   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17201   # include_expsyms should be a list of space-separated symbols to be *always*
17202   # included in the symbol list
17203   include_expsyms_GCJ=
17204   # exclude_expsyms can be an extended regexp of symbols to exclude
17205   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17206   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17207   # as well as any symbol that contains `d'.
17208   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17209   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17210   # platforms (ab)use it in PIC code, but their linkers get confused if
17211   # the symbol is explicitly referenced.  Since portable code cannot
17212   # rely on this symbol name, it's probably fine to never include it in
17213   # preloaded symbol tables.
17214   # Exclude shared library initialization/finalization symbols.
17215   extract_expsyms_cmds=
17216   # Just being paranoid about ensuring that cc_basename is set.
17217   for cc_temp in $compiler""; do
17218   case $cc_temp in
17219     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17220     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17221     \-*) ;;
17222     *) break;;
17223   esac
17224 done
17225 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17226
17227   case $host_os in
17228   cygwin* | mingw* | pw32*)
17229     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17230     # When not using gcc, we currently assume that we are using
17231     # Microsoft Visual C++.
17232     if test "$GCC" != yes; then
17233       with_gnu_ld=no
17234     fi
17235     ;;
17236   interix*)
17237     # we just hope/assume this is gcc and not c89 (= MSVC++)
17238     with_gnu_ld=yes
17239     ;;
17240   openbsd*)
17241     with_gnu_ld=no
17242     ;;
17243   esac
17244
17245   ld_shlibs_GCJ=yes
17246   if test "$with_gnu_ld" = yes; then
17247     # If archive_cmds runs LD, not CC, wlarc should be empty
17248     wlarc='${wl}'
17249
17250     # Set some defaults for GNU ld with shared library support. These
17251     # are reset later if shared libraries are not supported. Putting them
17252     # here allows them to be overridden if necessary.
17253     runpath_var=LD_RUN_PATH
17254     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17255     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17256     # ancient GNU ld didn't support --whole-archive et. al.
17257     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17258         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17259       else
17260         whole_archive_flag_spec_GCJ=
17261     fi
17262     supports_anon_versioning=no
17263     case `$LD -v 2>/dev/null` in
17264       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17265       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17266       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17267       *\ 2.11.*) ;; # other 2.11 versions
17268       *) supports_anon_versioning=yes ;;
17269     esac
17270
17271     # See if GNU ld supports shared libraries.
17272     case $host_os in
17273     aix[3-9]*)
17274       # On AIX/PPC, the GNU linker is very broken
17275       if test "$host_cpu" != ia64; then
17276         ld_shlibs_GCJ=no
17277         cat <<EOF 1>&2
17278
17279 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17280 *** to be unable to reliably create shared libraries on AIX.
17281 *** Therefore, libtool is disabling shared libraries support.  If you
17282 *** really care for shared libraries, you may want to modify your PATH
17283 *** so that a non-GNU linker is found, and then restart.
17284
17285 EOF
17286       fi
17287       ;;
17288
17289     amigaos*)
17290       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)'
17291       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17292       hardcode_minus_L_GCJ=yes
17293
17294       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17295       # that the semantics of dynamic libraries on AmigaOS, at least up
17296       # to version 4, is to share data among multiple programs linked
17297       # with the same dynamic library.  Since this doesn't match the
17298       # behavior of shared libraries on other platforms, we can't use
17299       # them.
17300       ld_shlibs_GCJ=no
17301       ;;
17302
17303     beos*)
17304       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17305         allow_undefined_flag_GCJ=unsupported
17306         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17307         # support --undefined.  This deserves some investigation.  FIXME
17308         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17309       else
17310         ld_shlibs_GCJ=no
17311       fi
17312       ;;
17313
17314     cygwin* | mingw* | pw32*)
17315       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17316       # as there is no search path for DLLs.
17317       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17318       allow_undefined_flag_GCJ=unsupported
17319       always_export_symbols_GCJ=no
17320       enable_shared_with_static_runtimes_GCJ=yes
17321       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17322
17323       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17324         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17325         # If the export-symbols file already is a .def file (1st line
17326         # is EXPORTS), use it as is; otherwise, prepend...
17327         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17328           cp $export_symbols $output_objdir/$soname.def;
17329         else
17330           echo EXPORTS > $output_objdir/$soname.def;
17331           cat $export_symbols >> $output_objdir/$soname.def;
17332         fi~
17333         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17334       else
17335         ld_shlibs_GCJ=no
17336       fi
17337       ;;
17338
17339     interix[3-9]*)
17340       hardcode_direct_GCJ=no
17341       hardcode_shlibpath_var_GCJ=no
17342       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17343       export_dynamic_flag_spec_GCJ='${wl}-E'
17344       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17345       # Instead, shared libraries are loaded at an image base (0x10000000 by
17346       # default) and relocated if they conflict, which is a slow very memory
17347       # consuming and fragmenting process.  To avoid this, we pick a random,
17348       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17349       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17350       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'
17351       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'
17352       ;;
17353
17354     gnu* | linux* | k*bsd*-gnu)
17355       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17356         tmp_addflag=
17357         case $cc_basename,$host_cpu in
17358         pgcc*)                          # Portland Group C compiler
17359           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'
17360           tmp_addflag=' $pic_flag'
17361           ;;
17362         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17363           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'
17364           tmp_addflag=' $pic_flag -Mnomain' ;;
17365         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17366           tmp_addflag=' -i_dynamic' ;;
17367         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17368           tmp_addflag=' -i_dynamic -nofor_main' ;;
17369         ifc* | ifort*)                  # Intel Fortran compiler
17370           tmp_addflag=' -nofor_main' ;;
17371         esac
17372         case `$CC -V 2>&1 | sed 5q` in
17373         *Sun\ C*)                       # Sun C 5.9
17374           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'
17375           tmp_sharedflag='-G' ;;
17376         *Sun\ F*)                       # Sun Fortran 8.3
17377           tmp_sharedflag='-G' ;;
17378         *)
17379           tmp_sharedflag='-shared' ;;
17380         esac
17381         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17382
17383         if test $supports_anon_versioning = yes; then
17384           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17385   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17386   $echo "local: *; };" >> $output_objdir/$libname.ver~
17387           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17388         fi
17389         link_all_deplibs_GCJ=no
17390       else
17391         ld_shlibs_GCJ=no
17392       fi
17393       ;;
17394
17395     netbsd* | netbsdelf*-gnu)
17396       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17397         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17398         wlarc=
17399       else
17400         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17401         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17402       fi
17403       ;;
17404
17405     solaris*)
17406       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17407         ld_shlibs_GCJ=no
17408         cat <<EOF 1>&2
17409
17410 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17411 *** create shared libraries on Solaris systems.  Therefore, libtool
17412 *** is disabling shared libraries support.  We urge you to upgrade GNU
17413 *** binutils to release 2.9.1 or newer.  Another option is to modify
17414 *** your PATH or compiler configuration so that the native linker is
17415 *** used, and then restart.
17416
17417 EOF
17418       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17419         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17421       else
17422         ld_shlibs_GCJ=no
17423       fi
17424       ;;
17425
17426     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17427       case `$LD -v 2>&1` in
17428         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17429         ld_shlibs_GCJ=no
17430         cat <<_LT_EOF 1>&2
17431
17432 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17433 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17434 *** is disabling shared libraries support.  We urge you to upgrade GNU
17435 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17436 *** your PATH or compiler configuration so that the native linker is
17437 *** used, and then restart.
17438
17439 _LT_EOF
17440         ;;
17441         *)
17442           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17443             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17444             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17445             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17446           else
17447             ld_shlibs_GCJ=no
17448           fi
17449         ;;
17450       esac
17451       ;;
17452
17453     sunos4*)
17454       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17455       wlarc=
17456       hardcode_direct_GCJ=yes
17457       hardcode_shlibpath_var_GCJ=no
17458       ;;
17459
17460     *)
17461       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17462         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17463         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17464       else
17465         ld_shlibs_GCJ=no
17466       fi
17467       ;;
17468     esac
17469
17470     if test "$ld_shlibs_GCJ" = no; then
17471       runpath_var=
17472       hardcode_libdir_flag_spec_GCJ=
17473       export_dynamic_flag_spec_GCJ=
17474       whole_archive_flag_spec_GCJ=
17475     fi
17476   else
17477     # PORTME fill in a description of your system's linker (not GNU ld)
17478     case $host_os in
17479     aix3*)
17480       allow_undefined_flag_GCJ=unsupported
17481       always_export_symbols_GCJ=yes
17482       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'
17483       # Note: this linker hardcodes the directories in LIBPATH if there
17484       # are no directories specified by -L.
17485       hardcode_minus_L_GCJ=yes
17486       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17487         # Neither direct hardcoding nor static linking is supported with a
17488         # broken collect2.
17489         hardcode_direct_GCJ=unsupported
17490       fi
17491       ;;
17492
17493     aix[4-9]*)
17494       if test "$host_cpu" = ia64; then
17495         # On IA64, the linker does run time linking by default, so we don't
17496         # have to do anything special.
17497         aix_use_runtimelinking=no
17498         exp_sym_flag='-Bexport'
17499         no_entry_flag=""
17500       else
17501         # If we're using GNU nm, then we don't want the "-C" option.
17502         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17503         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17504           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'
17505         else
17506           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'
17507         fi
17508         aix_use_runtimelinking=no
17509
17510         # Test if we are trying to use run time linking or normal
17511         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17512         # need to do runtime linking.
17513         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17514           for ld_flag in $LDFLAGS; do
17515           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17516             aix_use_runtimelinking=yes
17517             break
17518           fi
17519           done
17520           ;;
17521         esac
17522
17523         exp_sym_flag='-bexport'
17524         no_entry_flag='-bnoentry'
17525       fi
17526
17527       # When large executables or shared objects are built, AIX ld can
17528       # have problems creating the table of contents.  If linking a library
17529       # or program results in "error TOC overflow" add -mminimal-toc to
17530       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17531       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17532
17533       archive_cmds_GCJ=''
17534       hardcode_direct_GCJ=yes
17535       hardcode_libdir_separator_GCJ=':'
17536       link_all_deplibs_GCJ=yes
17537
17538       if test "$GCC" = yes; then
17539         case $host_os in aix4.[012]|aix4.[012].*)
17540         # We only want to do this on AIX 4.2 and lower, the check
17541         # below for broken collect2 doesn't work under 4.3+
17542           collect2name=`${CC} -print-prog-name=collect2`
17543           if test -f "$collect2name" && \
17544            strings "$collect2name" | grep resolve_lib_name >/dev/null
17545           then
17546           # We have reworked collect2
17547           :
17548           else
17549           # We have old collect2
17550           hardcode_direct_GCJ=unsupported
17551           # It fails to find uninstalled libraries when the uninstalled
17552           # path is not listed in the libpath.  Setting hardcode_minus_L
17553           # to unsupported forces relinking
17554           hardcode_minus_L_GCJ=yes
17555           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17556           hardcode_libdir_separator_GCJ=
17557           fi
17558           ;;
17559         esac
17560         shared_flag='-shared'
17561         if test "$aix_use_runtimelinking" = yes; then
17562           shared_flag="$shared_flag "'${wl}-G'
17563         fi
17564       else
17565         # not using gcc
17566         if test "$host_cpu" = ia64; then
17567         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17568         # chokes on -Wl,-G. The following line is correct:
17569           shared_flag='-G'
17570         else
17571           if test "$aix_use_runtimelinking" = yes; then
17572             shared_flag='${wl}-G'
17573           else
17574             shared_flag='${wl}-bM:SRE'
17575           fi
17576         fi
17577       fi
17578
17579       # It seems that -bexpall does not export symbols beginning with
17580       # underscore (_), so it is better to generate a list of symbols to export.
17581       always_export_symbols_GCJ=yes
17582       if test "$aix_use_runtimelinking" = yes; then
17583         # Warning - without using the other runtime loading flags (-brtl),
17584         # -berok will link without error, but may produce a broken library.
17585         allow_undefined_flag_GCJ='-berok'
17586        # Determine the default libpath from the value encoded in an empty executable.
17587        cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h.  */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h.  */
17593
17594 int
17595 main ()
17596 {
17597
17598   ;
17599   return 0;
17600 }
17601 _ACEOF
17602 rm -f conftest.$ac_objext conftest$ac_exeext
17603 if { (ac_try="$ac_link"
17604 case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_link") 2>conftest.er1
17610   ac_status=$?
17611   grep -v '^ *+' conftest.er1 >conftest.err
17612   rm -f conftest.er1
17613   cat conftest.err >&5
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); } && {
17616          test -z "$ac_c_werror_flag" ||
17617          test ! -s conftest.err
17618        } && test -s conftest$ac_exeext &&
17619        $as_test_x conftest$ac_exeext; then
17620
17621 lt_aix_libpath_sed='
17622     /Import File Strings/,/^$/ {
17623         /^0/ {
17624             s/^0  *\(.*\)$/\1/
17625             p
17626         }
17627     }'
17628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17629 # Check for a 64-bit object if we didn't find anything.
17630 if test -z "$aix_libpath"; then
17631   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17632 fi
17633 else
17634   echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17636
17637
17638 fi
17639
17640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17641       conftest$ac_exeext conftest.$ac_ext
17642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17643
17644        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17645         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"
17646        else
17647         if test "$host_cpu" = ia64; then
17648           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17649           allow_undefined_flag_GCJ="-z nodefs"
17650           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"
17651         else
17652          # Determine the default libpath from the value encoded in an empty executable.
17653          cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h.  */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h.  */
17659
17660 int
17661 main ()
17662 {
17663
17664   ;
17665   return 0;
17666 }
17667 _ACEOF
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (ac_try="$ac_link"
17670 case "(($ac_try" in
17671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672   *) ac_try_echo=$ac_try;;
17673 esac
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675   (eval "$ac_link") 2>conftest.er1
17676   ac_status=$?
17677   grep -v '^ *+' conftest.er1 >conftest.err
17678   rm -f conftest.er1
17679   cat conftest.err >&5
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); } && {
17682          test -z "$ac_c_werror_flag" ||
17683          test ! -s conftest.err
17684        } && test -s conftest$ac_exeext &&
17685        $as_test_x conftest$ac_exeext; then
17686
17687 lt_aix_libpath_sed='
17688     /Import File Strings/,/^$/ {
17689         /^0/ {
17690             s/^0  *\(.*\)$/\1/
17691             p
17692         }
17693     }'
17694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17695 # Check for a 64-bit object if we didn't find anything.
17696 if test -z "$aix_libpath"; then
17697   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17698 fi
17699 else
17700   echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703
17704 fi
17705
17706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707       conftest$ac_exeext conftest.$ac_ext
17708 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17709
17710          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17711           # Warning - without using the other run time loading flags,
17712           # -berok will link without error, but may produce a broken library.
17713           no_undefined_flag_GCJ=' ${wl}-bernotok'
17714           allow_undefined_flag_GCJ=' ${wl}-berok'
17715           # Exported symbols can be pulled into shared objects from archives
17716           whole_archive_flag_spec_GCJ='$convenience'
17717           archive_cmds_need_lc_GCJ=yes
17718           # This is similar to how AIX traditionally builds its shared libraries.
17719           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'
17720         fi
17721       fi
17722       ;;
17723
17724     amigaos*)
17725       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)'
17726       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17727       hardcode_minus_L_GCJ=yes
17728       # see comment about different semantics on the GNU ld section
17729       ld_shlibs_GCJ=no
17730       ;;
17731
17732     bsdi[45]*)
17733       export_dynamic_flag_spec_GCJ=-rdynamic
17734       ;;
17735
17736     cygwin* | mingw* | pw32*)
17737       # When not using gcc, we currently assume that we are using
17738       # Microsoft Visual C++.
17739       # hardcode_libdir_flag_spec is actually meaningless, as there is
17740       # no search path for DLLs.
17741       hardcode_libdir_flag_spec_GCJ=' '
17742       allow_undefined_flag_GCJ=unsupported
17743       # Tell ltmain to make .lib files, not .a files.
17744       libext=lib
17745       # Tell ltmain to make .dll files, not .so files.
17746       shrext_cmds=".dll"
17747       # FIXME: Setting linknames here is a bad hack.
17748       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17749       # The linker will automatically build a .lib file if we build a DLL.
17750       old_archive_From_new_cmds_GCJ='true'
17751       # FIXME: Should let the user specify the lib program.
17752       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17753       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17754       enable_shared_with_static_runtimes_GCJ=yes
17755       ;;
17756
17757     darwin* | rhapsody*)
17758       case $host_os in
17759         rhapsody* | darwin1.[012])
17760          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17761          ;;
17762        *) # Darwin 1.3 on
17763          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17764            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17765          else
17766            case ${MACOSX_DEPLOYMENT_TARGET} in
17767              10.[012])
17768                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17769                ;;
17770              10.*)
17771                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17772                ;;
17773            esac
17774          fi
17775          ;;
17776       esac
17777       archive_cmds_need_lc_GCJ=no
17778       hardcode_direct_GCJ=no
17779       hardcode_automatic_GCJ=yes
17780       hardcode_shlibpath_var_GCJ=unsupported
17781       whole_archive_flag_spec_GCJ=''
17782       link_all_deplibs_GCJ=yes
17783     if test "$GCC" = yes ; then
17784         output_verbose_link_cmd='echo'
17785         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}"
17786         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17787         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}"
17788         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}"
17789     else
17790       case $cc_basename in
17791         xlc*)
17792          output_verbose_link_cmd='echo'
17793          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17794          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17795           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17796          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}'
17797           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}'
17798           ;;
17799        *)
17800          ld_shlibs_GCJ=no
17801           ;;
17802       esac
17803     fi
17804       ;;
17805
17806     dgux*)
17807       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17808       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17809       hardcode_shlibpath_var_GCJ=no
17810       ;;
17811
17812     freebsd1*)
17813       ld_shlibs_GCJ=no
17814       ;;
17815
17816     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17817     # support.  Future versions do this automatically, but an explicit c++rt0.o
17818     # does not break anything, and helps significantly (at the cost of a little
17819     # extra space).
17820     freebsd2.2*)
17821       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17822       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17823       hardcode_direct_GCJ=yes
17824       hardcode_shlibpath_var_GCJ=no
17825       ;;
17826
17827     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17828     freebsd2*)
17829       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17830       hardcode_direct_GCJ=yes
17831       hardcode_minus_L_GCJ=yes
17832       hardcode_shlibpath_var_GCJ=no
17833       ;;
17834
17835     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17836     freebsd* | dragonfly*)
17837       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17838       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17839       hardcode_direct_GCJ=yes
17840       hardcode_shlibpath_var_GCJ=no
17841       ;;
17842
17843     hpux9*)
17844       if test "$GCC" = yes; then
17845         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'
17846       else
17847         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'
17848       fi
17849       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17850       hardcode_libdir_separator_GCJ=:
17851       hardcode_direct_GCJ=yes
17852
17853       # hardcode_minus_L: Not really in the search PATH,
17854       # but as the default location of the library.
17855       hardcode_minus_L_GCJ=yes
17856       export_dynamic_flag_spec_GCJ='${wl}-E'
17857       ;;
17858
17859     hpux10*)
17860       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17861         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17862       else
17863         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17864       fi
17865       if test "$with_gnu_ld" = no; then
17866         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17867         hardcode_libdir_separator_GCJ=:
17868
17869         hardcode_direct_GCJ=yes
17870         export_dynamic_flag_spec_GCJ='${wl}-E'
17871
17872         # hardcode_minus_L: Not really in the search PATH,
17873         # but as the default location of the library.
17874         hardcode_minus_L_GCJ=yes
17875       fi
17876       ;;
17877
17878     hpux11*)
17879       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17880         case $host_cpu in
17881         hppa*64*)
17882           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17883           ;;
17884         ia64*)
17885           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17886           ;;
17887         *)
17888           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17889           ;;
17890         esac
17891       else
17892         case $host_cpu in
17893         hppa*64*)
17894           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17895           ;;
17896         ia64*)
17897           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17898           ;;
17899         *)
17900           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17901           ;;
17902         esac
17903       fi
17904       if test "$with_gnu_ld" = no; then
17905         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17906         hardcode_libdir_separator_GCJ=:
17907
17908         case $host_cpu in
17909         hppa*64*|ia64*)
17910           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17911           hardcode_direct_GCJ=no
17912           hardcode_shlibpath_var_GCJ=no
17913           ;;
17914         *)
17915           hardcode_direct_GCJ=yes
17916           export_dynamic_flag_spec_GCJ='${wl}-E'
17917
17918           # hardcode_minus_L: Not really in the search PATH,
17919           # but as the default location of the library.
17920           hardcode_minus_L_GCJ=yes
17921           ;;
17922         esac
17923       fi
17924       ;;
17925
17926     irix5* | irix6* | nonstopux*)
17927       if test "$GCC" = yes; then
17928         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'
17929       else
17930         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'
17931         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17932       fi
17933       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17934       hardcode_libdir_separator_GCJ=:
17935       link_all_deplibs_GCJ=yes
17936       ;;
17937
17938     netbsd* | netbsdelf*-gnu)
17939       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17940         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17941       else
17942         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17943       fi
17944       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17945       hardcode_direct_GCJ=yes
17946       hardcode_shlibpath_var_GCJ=no
17947       ;;
17948
17949     newsos6)
17950       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17951       hardcode_direct_GCJ=yes
17952       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17953       hardcode_libdir_separator_GCJ=:
17954       hardcode_shlibpath_var_GCJ=no
17955       ;;
17956
17957     openbsd*)
17958       if test -f /usr/libexec/ld.so; then
17959         hardcode_direct_GCJ=yes
17960         hardcode_shlibpath_var_GCJ=no
17961         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17962           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17963           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17964           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17965           export_dynamic_flag_spec_GCJ='${wl}-E'
17966         else
17967           case $host_os in
17968            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17969              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17970              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17971              ;;
17972            *)
17973              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17974              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17975              ;;
17976           esac
17977         fi
17978       else
17979         ld_shlibs_GCJ=no
17980       fi
17981       ;;
17982
17983     os2*)
17984       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17985       hardcode_minus_L_GCJ=yes
17986       allow_undefined_flag_GCJ=unsupported
17987       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'
17988       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17989       ;;
17990
17991     osf3*)
17992       if test "$GCC" = yes; then
17993         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17994         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'
17995       else
17996         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17997         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'
17998       fi
17999       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18000       hardcode_libdir_separator_GCJ=:
18001       ;;
18002
18003     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18004       if test "$GCC" = yes; then
18005         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18006         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'
18007         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18008       else
18009         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18010         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'
18011         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~
18012         $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'
18013
18014         # Both c and cxx compiler support -rpath directly
18015         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18016       fi
18017       hardcode_libdir_separator_GCJ=:
18018       ;;
18019
18020     solaris*)
18021       no_undefined_flag_GCJ=' -z text'
18022       if test "$GCC" = yes; then
18023         wlarc='${wl}'
18024         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18025         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18026           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18027       else
18028         wlarc=''
18029         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18031         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18032       fi
18033       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18034       hardcode_shlibpath_var_GCJ=no
18035       case $host_os in
18036       solaris2.[0-5] | solaris2.[0-5].*) ;;
18037       *)
18038         # The compiler driver will combine and reorder linker options,
18039         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18040         # but is careful enough not to reorder.
18041         # Supported since Solaris 2.6 (maybe 2.5.1?)
18042         if test "$GCC" = yes; then
18043           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18044         else
18045           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18046         fi
18047         ;;
18048       esac
18049       link_all_deplibs_GCJ=yes
18050       ;;
18051
18052     sunos4*)
18053       if test "x$host_vendor" = xsequent; then
18054         # Use $CC to link under sequent, because it throws in some extra .o
18055         # files that make .init and .fini sections work.
18056         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18057       else
18058         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18059       fi
18060       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18061       hardcode_direct_GCJ=yes
18062       hardcode_minus_L_GCJ=yes
18063       hardcode_shlibpath_var_GCJ=no
18064       ;;
18065
18066     sysv4)
18067       case $host_vendor in
18068         sni)
18069           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18070           hardcode_direct_GCJ=yes # is this really true???
18071         ;;
18072         siemens)
18073           ## LD is ld it makes a PLAMLIB
18074           ## CC just makes a GrossModule.
18075           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18076           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18077           hardcode_direct_GCJ=no
18078         ;;
18079         motorola)
18080           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18081           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18082         ;;
18083       esac
18084       runpath_var='LD_RUN_PATH'
18085       hardcode_shlibpath_var_GCJ=no
18086       ;;
18087
18088     sysv4.3*)
18089       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18090       hardcode_shlibpath_var_GCJ=no
18091       export_dynamic_flag_spec_GCJ='-Bexport'
18092       ;;
18093
18094     sysv4*MP*)
18095       if test -d /usr/nec; then
18096         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18097         hardcode_shlibpath_var_GCJ=no
18098         runpath_var=LD_RUN_PATH
18099         hardcode_runpath_var=yes
18100         ld_shlibs_GCJ=yes
18101       fi
18102       ;;
18103
18104     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18105       no_undefined_flag_GCJ='${wl}-z,text'
18106       archive_cmds_need_lc_GCJ=no
18107       hardcode_shlibpath_var_GCJ=no
18108       runpath_var='LD_RUN_PATH'
18109
18110       if test "$GCC" = yes; then
18111         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18112         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18113       else
18114         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18116       fi
18117       ;;
18118
18119     sysv5* | sco3.2v5* | sco5v6*)
18120       # Note: We can NOT use -z defs as we might desire, because we do not
18121       # link with -lc, and that would cause any symbols used from libc to
18122       # always be unresolved, which means just about no library would
18123       # ever link correctly.  If we're not using GNU ld we use -z text
18124       # though, which does catch some bad symbols but isn't as heavy-handed
18125       # as -z defs.
18126       no_undefined_flag_GCJ='${wl}-z,text'
18127       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18128       archive_cmds_need_lc_GCJ=no
18129       hardcode_shlibpath_var_GCJ=no
18130       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18131       hardcode_libdir_separator_GCJ=':'
18132       link_all_deplibs_GCJ=yes
18133       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18134       runpath_var='LD_RUN_PATH'
18135
18136       if test "$GCC" = yes; then
18137         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18139       else
18140         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18142       fi
18143       ;;
18144
18145     uts4*)
18146       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18147       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18148       hardcode_shlibpath_var_GCJ=no
18149       ;;
18150
18151     *)
18152       ld_shlibs_GCJ=no
18153       ;;
18154     esac
18155   fi
18156
18157 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18158 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18159 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18160
18161 #
18162 # Do we need to explicitly link libc?
18163 #
18164 case "x$archive_cmds_need_lc_GCJ" in
18165 x|xyes)
18166   # Assume -lc should be added
18167   archive_cmds_need_lc_GCJ=yes
18168
18169   if test "$enable_shared" = yes && test "$GCC" = yes; then
18170     case $archive_cmds_GCJ in
18171     *'~'*)
18172       # FIXME: we may have to deal with multi-command sequences.
18173       ;;
18174     '$CC '*)
18175       # Test whether the compiler implicitly links with -lc since on some
18176       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18177       # to ld, don't add -lc before -lgcc.
18178       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18179 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18180       $rm conftest*
18181       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18182
18183       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18184   (eval $ac_compile) 2>&5
18185   ac_status=$?
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); } 2>conftest.err; then
18188         soname=conftest
18189         lib=conftest
18190         libobjs=conftest.$ac_objext
18191         deplibs=
18192         wl=$lt_prog_compiler_wl_GCJ
18193         pic_flag=$lt_prog_compiler_pic_GCJ
18194         compiler_flags=-v
18195         linker_flags=-v
18196         verstring=
18197         output_objdir=.
18198         libname=conftest
18199         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18200         allow_undefined_flag_GCJ=
18201         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18202   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }
18206         then
18207           archive_cmds_need_lc_GCJ=no
18208         else
18209           archive_cmds_need_lc_GCJ=yes
18210         fi
18211         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18212       else
18213         cat conftest.err 1>&5
18214       fi
18215       $rm conftest*
18216       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18217 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18218       ;;
18219     esac
18220   fi
18221   ;;
18222 esac
18223
18224 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18226 library_names_spec=
18227 libname_spec='lib$name'
18228 soname_spec=
18229 shrext_cmds=".so"
18230 postinstall_cmds=
18231 postuninstall_cmds=
18232 finish_cmds=
18233 finish_eval=
18234 shlibpath_var=
18235 shlibpath_overrides_runpath=unknown
18236 version_type=none
18237 dynamic_linker="$host_os ld.so"
18238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18239
18240 need_lib_prefix=unknown
18241 hardcode_into_libs=no
18242
18243 # when you set need_version to no, make sure it does not cause -set_version
18244 # flags to be left without arguments
18245 need_version=unknown
18246
18247 case $host_os in
18248 aix3*)
18249   version_type=linux
18250   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18251   shlibpath_var=LIBPATH
18252
18253   # AIX 3 has no versioning support, so we append a major version to the name.
18254   soname_spec='${libname}${release}${shared_ext}$major'
18255   ;;
18256
18257 aix[4-9]*)
18258   version_type=linux
18259   need_lib_prefix=no
18260   need_version=no
18261   hardcode_into_libs=yes
18262   if test "$host_cpu" = ia64; then
18263     # AIX 5 supports IA64
18264     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18265     shlibpath_var=LD_LIBRARY_PATH
18266   else
18267     # With GCC up to 2.95.x, collect2 would create an import file
18268     # for dependence libraries.  The import file would start with
18269     # the line `#! .'.  This would cause the generated library to
18270     # depend on `.', always an invalid library.  This was fixed in
18271     # development snapshots of GCC prior to 3.0.
18272     case $host_os in
18273       aix4 | aix4.[01] | aix4.[01].*)
18274       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18275            echo ' yes '
18276            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18277         :
18278       else
18279         can_build_shared=no
18280       fi
18281       ;;
18282     esac
18283     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18284     # soname into executable. Probably we can add versioning support to
18285     # collect2, so additional links can be useful in future.
18286     if test "$aix_use_runtimelinking" = yes; then
18287       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18288       # instead of lib<name>.a to let people know that these are not
18289       # typical AIX shared libraries.
18290       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291     else
18292       # We preserve .a as extension for shared libraries through AIX4.2
18293       # and later when we are not doing run time linking.
18294       library_names_spec='${libname}${release}.a $libname.a'
18295       soname_spec='${libname}${release}${shared_ext}$major'
18296     fi
18297     shlibpath_var=LIBPATH
18298   fi
18299   ;;
18300
18301 amigaos*)
18302   library_names_spec='$libname.ixlibrary $libname.a'
18303   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18304   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'
18305   ;;
18306
18307 beos*)
18308   library_names_spec='${libname}${shared_ext}'
18309   dynamic_linker="$host_os ld.so"
18310   shlibpath_var=LIBRARY_PATH
18311   ;;
18312
18313 bsdi[45]*)
18314   version_type=linux
18315   need_version=no
18316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18317   soname_spec='${libname}${release}${shared_ext}$major'
18318   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18319   shlibpath_var=LD_LIBRARY_PATH
18320   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18321   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18322   # the default ld.so.conf also contains /usr/contrib/lib and
18323   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18324   # libtool to hard-code these into programs
18325   ;;
18326
18327 cygwin* | mingw* | pw32*)
18328   version_type=windows
18329   shrext_cmds=".dll"
18330   need_version=no
18331   need_lib_prefix=no
18332
18333   case $GCC,$host_os in
18334   yes,cygwin* | yes,mingw* | yes,pw32*)
18335     library_names_spec='$libname.dll.a'
18336     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18337     postinstall_cmds='base_file=`basename \${file}`~
18338       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18339       dldir=$destdir/`dirname \$dlpath`~
18340       test -d \$dldir || mkdir -p \$dldir~
18341       $install_prog $dir/$dlname \$dldir/$dlname~
18342       chmod a+x \$dldir/$dlname'
18343     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18344       dlpath=$dir/\$dldll~
18345        $rm \$dlpath'
18346     shlibpath_overrides_runpath=yes
18347
18348     case $host_os in
18349     cygwin*)
18350       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18351       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18352       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18353       ;;
18354     mingw*)
18355       # MinGW DLLs use traditional 'lib' prefix
18356       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18357       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18358       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18359         # It is most probably a Windows format PATH printed by
18360         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18361         # path with ; separators, and with drive letters. We can handle the
18362         # drive letters (cygwin fileutils understands them), so leave them,
18363         # especially as we might pass files found there to a mingw objdump,
18364         # which wouldn't understand a cygwinified path. Ahh.
18365         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18366       else
18367         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18368       fi
18369       ;;
18370     pw32*)
18371       # pw32 DLLs use 'pw' prefix rather than 'lib'
18372       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18373       ;;
18374     esac
18375     ;;
18376
18377   *)
18378     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18379     ;;
18380   esac
18381   dynamic_linker='Win32 ld.exe'
18382   # FIXME: first we should search . and the directory the executable is in
18383   shlibpath_var=PATH
18384   ;;
18385
18386 darwin* | rhapsody*)
18387   dynamic_linker="$host_os dyld"
18388   version_type=darwin
18389   need_lib_prefix=no
18390   need_version=no
18391   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18392   soname_spec='${libname}${release}${major}$shared_ext'
18393   shlibpath_overrides_runpath=yes
18394   shlibpath_var=DYLD_LIBRARY_PATH
18395   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18396
18397   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18398   ;;
18399
18400 dgux*)
18401   version_type=linux
18402   need_lib_prefix=no
18403   need_version=no
18404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18405   soname_spec='${libname}${release}${shared_ext}$major'
18406   shlibpath_var=LD_LIBRARY_PATH
18407   ;;
18408
18409 freebsd1*)
18410   dynamic_linker=no
18411   ;;
18412
18413 freebsd* | dragonfly*)
18414   # DragonFly does not have aout.  When/if they implement a new
18415   # versioning mechanism, adjust this.
18416   if test -x /usr/bin/objformat; then
18417     objformat=`/usr/bin/objformat`
18418   else
18419     case $host_os in
18420     freebsd[123]*) objformat=aout ;;
18421     *) objformat=elf ;;
18422     esac
18423   fi
18424   version_type=freebsd-$objformat
18425   case $version_type in
18426     freebsd-elf*)
18427       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18428       need_version=no
18429       need_lib_prefix=no
18430       ;;
18431     freebsd-*)
18432       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18433       need_version=yes
18434       ;;
18435   esac
18436   shlibpath_var=LD_LIBRARY_PATH
18437   case $host_os in
18438   freebsd2*)
18439     shlibpath_overrides_runpath=yes
18440     ;;
18441   freebsd3.[01]* | freebsdelf3.[01]*)
18442     shlibpath_overrides_runpath=yes
18443     hardcode_into_libs=yes
18444     ;;
18445   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18446   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18447     shlibpath_overrides_runpath=no
18448     hardcode_into_libs=yes
18449     ;;
18450   *) # from 4.6 on, and DragonFly
18451     shlibpath_overrides_runpath=yes
18452     hardcode_into_libs=yes
18453     ;;
18454   esac
18455   ;;
18456
18457 gnu*)
18458   version_type=linux
18459   need_lib_prefix=no
18460   need_version=no
18461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18462   soname_spec='${libname}${release}${shared_ext}$major'
18463   shlibpath_var=LD_LIBRARY_PATH
18464   hardcode_into_libs=yes
18465   ;;
18466
18467 hpux9* | hpux10* | hpux11*)
18468   # Give a soname corresponding to the major version so that dld.sl refuses to
18469   # link against other versions.
18470   version_type=sunos
18471   need_lib_prefix=no
18472   need_version=no
18473   case $host_cpu in
18474   ia64*)
18475     shrext_cmds='.so'
18476     hardcode_into_libs=yes
18477     dynamic_linker="$host_os dld.so"
18478     shlibpath_var=LD_LIBRARY_PATH
18479     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481     soname_spec='${libname}${release}${shared_ext}$major'
18482     if test "X$HPUX_IA64_MODE" = X32; then
18483       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18484     else
18485       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18486     fi
18487     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18488     ;;
18489    hppa*64*)
18490      shrext_cmds='.sl'
18491      hardcode_into_libs=yes
18492      dynamic_linker="$host_os dld.sl"
18493      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18494      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18495      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496      soname_spec='${libname}${release}${shared_ext}$major'
18497      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18498      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18499      ;;
18500    *)
18501     shrext_cmds='.sl'
18502     dynamic_linker="$host_os dld.sl"
18503     shlibpath_var=SHLIB_PATH
18504     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506     soname_spec='${libname}${release}${shared_ext}$major'
18507     ;;
18508   esac
18509   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18510   postinstall_cmds='chmod 555 $lib'
18511   ;;
18512
18513 interix[3-9]*)
18514   version_type=linux
18515   need_lib_prefix=no
18516   need_version=no
18517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18518   soname_spec='${libname}${release}${shared_ext}$major'
18519   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18520   shlibpath_var=LD_LIBRARY_PATH
18521   shlibpath_overrides_runpath=no
18522   hardcode_into_libs=yes
18523   ;;
18524
18525 irix5* | irix6* | nonstopux*)
18526   case $host_os in
18527     nonstopux*) version_type=nonstopux ;;
18528     *)
18529         if test "$lt_cv_prog_gnu_ld" = yes; then
18530                 version_type=linux
18531         else
18532                 version_type=irix
18533         fi ;;
18534   esac
18535   need_lib_prefix=no
18536   need_version=no
18537   soname_spec='${libname}${release}${shared_ext}$major'
18538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18539   case $host_os in
18540   irix5* | nonstopux*)
18541     libsuff= shlibsuff=
18542     ;;
18543   *)
18544     case $LD in # libtool.m4 will add one of these switches to LD
18545     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18546       libsuff= shlibsuff= libmagic=32-bit;;
18547     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18548       libsuff=32 shlibsuff=N32 libmagic=N32;;
18549     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18550       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18551     *) libsuff= shlibsuff= libmagic=never-match;;
18552     esac
18553     ;;
18554   esac
18555   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18556   shlibpath_overrides_runpath=no
18557   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18558   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18559   hardcode_into_libs=yes
18560   ;;
18561
18562 # No shared lib support for Linux oldld, aout, or coff.
18563 linux*oldld* | linux*aout* | linux*coff*)
18564   dynamic_linker=no
18565   ;;
18566
18567 # This must be Linux ELF.
18568 linux* | k*bsd*-gnu)
18569   version_type=linux
18570   need_lib_prefix=no
18571   need_version=no
18572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573   soname_spec='${libname}${release}${shared_ext}$major'
18574   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18575   shlibpath_var=LD_LIBRARY_PATH
18576   shlibpath_overrides_runpath=no
18577   # This implies no fast_install, which is unacceptable.
18578   # Some rework will be needed to allow for fast_install
18579   # before this can be enabled.
18580   hardcode_into_libs=yes
18581
18582   # Append ld.so.conf contents to the search path
18583   if test -f /etc/ld.so.conf; then
18584     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' ' '`
18585     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18586   fi
18587
18588   # We used to test for /lib/ld.so.1 and disable shared libraries on
18589   # powerpc, because MkLinux only supported shared libraries with the
18590   # GNU dynamic linker.  Since this was broken with cross compilers,
18591   # most powerpc-linux boxes support dynamic linking these days and
18592   # people can always --disable-shared, the test was removed, and we
18593   # assume the GNU/Linux dynamic linker is in use.
18594   dynamic_linker='GNU/Linux ld.so'
18595   ;;
18596
18597 netbsdelf*-gnu)
18598   version_type=linux
18599   need_lib_prefix=no
18600   need_version=no
18601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18602   soname_spec='${libname}${release}${shared_ext}$major'
18603   shlibpath_var=LD_LIBRARY_PATH
18604   shlibpath_overrides_runpath=no
18605   hardcode_into_libs=yes
18606   dynamic_linker='NetBSD ld.elf_so'
18607   ;;
18608
18609 netbsd*)
18610   version_type=sunos
18611   need_lib_prefix=no
18612   need_version=no
18613   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18615     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18616     dynamic_linker='NetBSD (a.out) ld.so'
18617   else
18618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18619     soname_spec='${libname}${release}${shared_ext}$major'
18620     dynamic_linker='NetBSD ld.elf_so'
18621   fi
18622   shlibpath_var=LD_LIBRARY_PATH
18623   shlibpath_overrides_runpath=yes
18624   hardcode_into_libs=yes
18625   ;;
18626
18627 newsos6)
18628   version_type=linux
18629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18630   shlibpath_var=LD_LIBRARY_PATH
18631   shlibpath_overrides_runpath=yes
18632   ;;
18633
18634 nto-qnx*)
18635   version_type=linux
18636   need_lib_prefix=no
18637   need_version=no
18638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18639   soname_spec='${libname}${release}${shared_ext}$major'
18640   shlibpath_var=LD_LIBRARY_PATH
18641   shlibpath_overrides_runpath=yes
18642   ;;
18643
18644 openbsd*)
18645   version_type=sunos
18646   sys_lib_dlsearch_path_spec="/usr/lib"
18647   need_lib_prefix=no
18648   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18649   case $host_os in
18650     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18651     *)                         need_version=no  ;;
18652   esac
18653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18654   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18655   shlibpath_var=LD_LIBRARY_PATH
18656   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18657     case $host_os in
18658       openbsd2.[89] | openbsd2.[89].*)
18659         shlibpath_overrides_runpath=no
18660         ;;
18661       *)
18662         shlibpath_overrides_runpath=yes
18663         ;;
18664       esac
18665   else
18666     shlibpath_overrides_runpath=yes
18667   fi
18668   ;;
18669
18670 os2*)
18671   libname_spec='$name'
18672   shrext_cmds=".dll"
18673   need_lib_prefix=no
18674   library_names_spec='$libname${shared_ext} $libname.a'
18675   dynamic_linker='OS/2 ld.exe'
18676   shlibpath_var=LIBPATH
18677   ;;
18678
18679 osf3* | osf4* | osf5*)
18680   version_type=osf
18681   need_lib_prefix=no
18682   need_version=no
18683   soname_spec='${libname}${release}${shared_ext}$major'
18684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18685   shlibpath_var=LD_LIBRARY_PATH
18686   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18687   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18688   ;;
18689
18690 rdos*)
18691   dynamic_linker=no
18692   ;;
18693
18694 solaris*)
18695   version_type=linux
18696   need_lib_prefix=no
18697   need_version=no
18698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699   soname_spec='${libname}${release}${shared_ext}$major'
18700   shlibpath_var=LD_LIBRARY_PATH
18701   shlibpath_overrides_runpath=yes
18702   hardcode_into_libs=yes
18703   # ldd complains unless libraries are executable
18704   postinstall_cmds='chmod +x $lib'
18705   ;;
18706
18707 sunos4*)
18708   version_type=sunos
18709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18710   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18711   shlibpath_var=LD_LIBRARY_PATH
18712   shlibpath_overrides_runpath=yes
18713   if test "$with_gnu_ld" = yes; then
18714     need_lib_prefix=no
18715   fi
18716   need_version=yes
18717   ;;
18718
18719 sysv4 | sysv4.3*)
18720   version_type=linux
18721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18722   soname_spec='${libname}${release}${shared_ext}$major'
18723   shlibpath_var=LD_LIBRARY_PATH
18724   case $host_vendor in
18725     sni)
18726       shlibpath_overrides_runpath=no
18727       need_lib_prefix=no
18728       export_dynamic_flag_spec='${wl}-Blargedynsym'
18729       runpath_var=LD_RUN_PATH
18730       ;;
18731     siemens)
18732       need_lib_prefix=no
18733       ;;
18734     motorola)
18735       need_lib_prefix=no
18736       need_version=no
18737       shlibpath_overrides_runpath=no
18738       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18739       ;;
18740   esac
18741   ;;
18742
18743 sysv4*MP*)
18744   if test -d /usr/nec ;then
18745     version_type=linux
18746     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18747     soname_spec='$libname${shared_ext}.$major'
18748     shlibpath_var=LD_LIBRARY_PATH
18749   fi
18750   ;;
18751
18752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18753   version_type=freebsd-elf
18754   need_lib_prefix=no
18755   need_version=no
18756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18757   soname_spec='${libname}${release}${shared_ext}$major'
18758   shlibpath_var=LD_LIBRARY_PATH
18759   hardcode_into_libs=yes
18760   if test "$with_gnu_ld" = yes; then
18761     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18762     shlibpath_overrides_runpath=no
18763   else
18764     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18765     shlibpath_overrides_runpath=yes
18766     case $host_os in
18767       sco3.2v5*)
18768         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18769         ;;
18770     esac
18771   fi
18772   sys_lib_dlsearch_path_spec='/usr/lib'
18773   ;;
18774
18775 uts4*)
18776   version_type=linux
18777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18778   soname_spec='${libname}${release}${shared_ext}$major'
18779   shlibpath_var=LD_LIBRARY_PATH
18780   ;;
18781
18782 *)
18783   dynamic_linker=no
18784   ;;
18785 esac
18786 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18787 echo "${ECHO_T}$dynamic_linker" >&6; }
18788 test "$dynamic_linker" = no && can_build_shared=no
18789
18790 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18791   echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18794 fi
18795
18796 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18797 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18798   echo $ECHO_N "(cached) $ECHO_C" >&6
18799 else
18800   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18801 fi
18802
18803 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18804
18805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18806 if test "$GCC" = yes; then
18807   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18808 fi
18809
18810 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18811 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18812 hardcode_action_GCJ=
18813 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18814    test -n "$runpath_var_GCJ" || \
18815    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18816
18817   # We can hardcode non-existant directories.
18818   if test "$hardcode_direct_GCJ" != no &&
18819      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18820      # have to relink, otherwise we might link with an installed library
18821      # when we should be linking with a yet-to-be-installed one
18822      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18823      test "$hardcode_minus_L_GCJ" != no; then
18824     # Linking always hardcodes the temporary library directory.
18825     hardcode_action_GCJ=relink
18826   else
18827     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18828     hardcode_action_GCJ=immediate
18829   fi
18830 else
18831   # We cannot hardcode anything, or else we can only hardcode existing
18832   # directories.
18833   hardcode_action_GCJ=unsupported
18834 fi
18835 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18836 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18837
18838 if test "$hardcode_action_GCJ" = relink; then
18839   # Fast installation is not supported
18840   enable_fast_install=no
18841 elif test "$shlibpath_overrides_runpath" = yes ||
18842      test "$enable_shared" = no; then
18843   # Fast installation is not necessary
18844   enable_fast_install=needless
18845 fi
18846
18847
18848 # The else clause should only fire when bootstrapping the
18849 # libtool distribution, otherwise you forgot to ship ltmain.sh
18850 # with your package, and you will get complaints that there are
18851 # no rules to generate ltmain.sh.
18852 if test -f "$ltmain"; then
18853   # See if we are running on zsh, and set the options which allow our commands through
18854   # without removal of \ escapes.
18855   if test -n "${ZSH_VERSION+set}" ; then
18856     setopt NO_GLOB_SUBST
18857   fi
18858   # Now quote all the things that may contain metacharacters while being
18859   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18860   # variables and quote the copies for generation of the libtool script.
18861   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18862     SED SHELL STRIP \
18863     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18864     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18865     deplibs_check_method reload_flag reload_cmds need_locks \
18866     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18867     lt_cv_sys_global_symbol_to_c_name_address \
18868     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18869     old_postinstall_cmds old_postuninstall_cmds \
18870     compiler_GCJ \
18871     CC_GCJ \
18872     LD_GCJ \
18873     lt_prog_compiler_wl_GCJ \
18874     lt_prog_compiler_pic_GCJ \
18875     lt_prog_compiler_static_GCJ \
18876     lt_prog_compiler_no_builtin_flag_GCJ \
18877     export_dynamic_flag_spec_GCJ \
18878     thread_safe_flag_spec_GCJ \
18879     whole_archive_flag_spec_GCJ \
18880     enable_shared_with_static_runtimes_GCJ \
18881     old_archive_cmds_GCJ \
18882     old_archive_from_new_cmds_GCJ \
18883     predep_objects_GCJ \
18884     postdep_objects_GCJ \
18885     predeps_GCJ \
18886     postdeps_GCJ \
18887     compiler_lib_search_path_GCJ \
18888     compiler_lib_search_dirs_GCJ \
18889     archive_cmds_GCJ \
18890     archive_expsym_cmds_GCJ \
18891     postinstall_cmds_GCJ \
18892     postuninstall_cmds_GCJ \
18893     old_archive_from_expsyms_cmds_GCJ \
18894     allow_undefined_flag_GCJ \
18895     no_undefined_flag_GCJ \
18896     export_symbols_cmds_GCJ \
18897     hardcode_libdir_flag_spec_GCJ \
18898     hardcode_libdir_flag_spec_ld_GCJ \
18899     hardcode_libdir_separator_GCJ \
18900     hardcode_automatic_GCJ \
18901     module_cmds_GCJ \
18902     module_expsym_cmds_GCJ \
18903     lt_cv_prog_compiler_c_o_GCJ \
18904     fix_srcfile_path_GCJ \
18905     exclude_expsyms_GCJ \
18906     include_expsyms_GCJ; do
18907
18908     case $var in
18909     old_archive_cmds_GCJ | \
18910     old_archive_from_new_cmds_GCJ | \
18911     archive_cmds_GCJ | \
18912     archive_expsym_cmds_GCJ | \
18913     module_cmds_GCJ | \
18914     module_expsym_cmds_GCJ | \
18915     old_archive_from_expsyms_cmds_GCJ | \
18916     export_symbols_cmds_GCJ | \
18917     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18918     postinstall_cmds | postuninstall_cmds | \
18919     old_postinstall_cmds | old_postuninstall_cmds | \
18920     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18921       # Double-quote double-evaled strings.
18922       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18923       ;;
18924     *)
18925       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18926       ;;
18927     esac
18928   done
18929
18930   case $lt_echo in
18931   *'\$0 --fallback-echo"')
18932     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18933     ;;
18934   esac
18935
18936 cfgfile="$ofile"
18937
18938   cat <<__EOF__ >> "$cfgfile"
18939 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18940
18941 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18942
18943 # Shell to use when invoking shell scripts.
18944 SHELL=$lt_SHELL
18945
18946 # Whether or not to build shared libraries.
18947 build_libtool_libs=$enable_shared
18948
18949 # Whether or not to build static libraries.
18950 build_old_libs=$enable_static
18951
18952 # Whether or not to add -lc for building shared libraries.
18953 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18954
18955 # Whether or not to disallow shared libs when runtime libs are static
18956 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18957
18958 # Whether or not to optimize for fast installation.
18959 fast_install=$enable_fast_install
18960
18961 # The host system.
18962 host_alias=$host_alias
18963 host=$host
18964 host_os=$host_os
18965
18966 # The build system.
18967 build_alias=$build_alias
18968 build=$build
18969 build_os=$build_os
18970
18971 # An echo program that does not interpret backslashes.
18972 echo=$lt_echo
18973
18974 # The archiver.
18975 AR=$lt_AR
18976 AR_FLAGS=$lt_AR_FLAGS
18977
18978 # A C compiler.
18979 LTCC=$lt_LTCC
18980
18981 # LTCC compiler flags.
18982 LTCFLAGS=$lt_LTCFLAGS
18983
18984 # A language-specific compiler.
18985 CC=$lt_compiler_GCJ
18986
18987 # Is the compiler the GNU C compiler?
18988 with_gcc=$GCC_GCJ
18989
18990 # An ERE matcher.
18991 EGREP=$lt_EGREP
18992
18993 # The linker used to build libraries.
18994 LD=$lt_LD_GCJ
18995
18996 # Whether we need hard or soft links.
18997 LN_S=$lt_LN_S
18998
18999 # A BSD-compatible nm program.
19000 NM=$lt_NM
19001
19002 # A symbol stripping program
19003 STRIP=$lt_STRIP
19004
19005 # Used to examine libraries when file_magic_cmd begins "file"
19006 MAGIC_CMD=$MAGIC_CMD
19007
19008 # Used on cygwin: DLL creation program.
19009 DLLTOOL="$DLLTOOL"
19010
19011 # Used on cygwin: object dumper.
19012 OBJDUMP="$OBJDUMP"
19013
19014 # Used on cygwin: assembler.
19015 AS="$AS"
19016
19017 # The name of the directory that contains temporary libtool files.
19018 objdir=$objdir
19019
19020 # How to create reloadable object files.
19021 reload_flag=$lt_reload_flag
19022 reload_cmds=$lt_reload_cmds
19023
19024 # How to pass a linker flag through the compiler.
19025 wl=$lt_lt_prog_compiler_wl_GCJ
19026
19027 # Object file suffix (normally "o").
19028 objext="$ac_objext"
19029
19030 # Old archive suffix (normally "a").
19031 libext="$libext"
19032
19033 # Shared library suffix (normally ".so").
19034 shrext_cmds='$shrext_cmds'
19035
19036 # Executable file suffix (normally "").
19037 exeext="$exeext"
19038
19039 # Additional compiler flags for building library objects.
19040 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19041 pic_mode=$pic_mode
19042
19043 # What is the maximum length of a command?
19044 max_cmd_len=$lt_cv_sys_max_cmd_len
19045
19046 # Does compiler simultaneously support -c and -o options?
19047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19048
19049 # Must we lock files when doing compilation?
19050 need_locks=$lt_need_locks
19051
19052 # Do we need the lib prefix for modules?
19053 need_lib_prefix=$need_lib_prefix
19054
19055 # Do we need a version for libraries?
19056 need_version=$need_version
19057
19058 # Whether dlopen is supported.
19059 dlopen_support=$enable_dlopen
19060
19061 # Whether dlopen of programs is supported.
19062 dlopen_self=$enable_dlopen_self
19063
19064 # Whether dlopen of statically linked programs is supported.
19065 dlopen_self_static=$enable_dlopen_self_static
19066
19067 # Compiler flag to prevent dynamic linking.
19068 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19069
19070 # Compiler flag to turn off builtin functions.
19071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19072
19073 # Compiler flag to allow reflexive dlopens.
19074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19075
19076 # Compiler flag to generate shared objects directly from archives.
19077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19078
19079 # Compiler flag to generate thread-safe objects.
19080 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19081
19082 # Library versioning type.
19083 version_type=$version_type
19084
19085 # Format of library name prefix.
19086 libname_spec=$lt_libname_spec
19087
19088 # List of archive names.  First name is the real one, the rest are links.
19089 # The last name is the one that the linker finds with -lNAME.
19090 library_names_spec=$lt_library_names_spec
19091
19092 # The coded name of the library, if different from the real name.
19093 soname_spec=$lt_soname_spec
19094
19095 # Commands used to build and install an old-style archive.
19096 RANLIB=$lt_RANLIB
19097 old_archive_cmds=$lt_old_archive_cmds_GCJ
19098 old_postinstall_cmds=$lt_old_postinstall_cmds
19099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19100
19101 # Create an old-style archive from a shared archive.
19102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19103
19104 # Create a temporary old-style archive to link instead of a shared archive.
19105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19106
19107 # Commands used to build and install a shared archive.
19108 archive_cmds=$lt_archive_cmds_GCJ
19109 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19110 postinstall_cmds=$lt_postinstall_cmds
19111 postuninstall_cmds=$lt_postuninstall_cmds
19112
19113 # Commands used to build a loadable module (assumed same as above if empty)
19114 module_cmds=$lt_module_cmds_GCJ
19115 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19116
19117 # Commands to strip libraries.
19118 old_striplib=$lt_old_striplib
19119 striplib=$lt_striplib
19120
19121 # Dependencies to place before the objects being linked to create a
19122 # shared library.
19123 predep_objects=$lt_predep_objects_GCJ
19124
19125 # Dependencies to place after the objects being linked to create a
19126 # shared library.
19127 postdep_objects=$lt_postdep_objects_GCJ
19128
19129 # Dependencies to place before the objects being linked to create a
19130 # shared library.
19131 predeps=$lt_predeps_GCJ
19132
19133 # Dependencies to place after the objects being linked to create a
19134 # shared library.
19135 postdeps=$lt_postdeps_GCJ
19136
19137 # The directories searched by this compiler when creating a shared
19138 # library
19139 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19140
19141 # The library search path used internally by the compiler when linking
19142 # a shared library.
19143 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19144
19145 # Method to check whether dependent libraries are shared objects.
19146 deplibs_check_method=$lt_deplibs_check_method
19147
19148 # Command to use when deplibs_check_method == file_magic.
19149 file_magic_cmd=$lt_file_magic_cmd
19150
19151 # Flag that allows shared libraries with undefined symbols to be built.
19152 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19153
19154 # Flag that forces no undefined symbols.
19155 no_undefined_flag=$lt_no_undefined_flag_GCJ
19156
19157 # Commands used to finish a libtool library installation in a directory.
19158 finish_cmds=$lt_finish_cmds
19159
19160 # Same as above, but a single script fragment to be evaled but not shown.
19161 finish_eval=$lt_finish_eval
19162
19163 # Take the output of nm and produce a listing of raw symbols and C names.
19164 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19165
19166 # Transform the output of nm in a proper C declaration
19167 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19168
19169 # Transform the output of nm in a C name address pair
19170 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19171
19172 # This is the shared library runtime path variable.
19173 runpath_var=$runpath_var
19174
19175 # This is the shared library path variable.
19176 shlibpath_var=$shlibpath_var
19177
19178 # Is shlibpath searched before the hard-coded library search path?
19179 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19180
19181 # How to hardcode a shared library path into an executable.
19182 hardcode_action=$hardcode_action_GCJ
19183
19184 # Whether we should hardcode library paths into libraries.
19185 hardcode_into_libs=$hardcode_into_libs
19186
19187 # Flag to hardcode \$libdir into a binary during linking.
19188 # This must work even if \$libdir does not exist.
19189 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19190
19191 # If ld is used when linking, flag to hardcode \$libdir into
19192 # a binary during linking. This must work even if \$libdir does
19193 # not exist.
19194 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19195
19196 # Whether we need a single -rpath flag with a separated argument.
19197 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19198
19199 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19200 # resulting binary.
19201 hardcode_direct=$hardcode_direct_GCJ
19202
19203 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19204 # resulting binary.
19205 hardcode_minus_L=$hardcode_minus_L_GCJ
19206
19207 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19208 # the resulting binary.
19209 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19210
19211 # Set to yes if building a shared library automatically hardcodes DIR into the library
19212 # and all subsequent libraries and executables linked against it.
19213 hardcode_automatic=$hardcode_automatic_GCJ
19214
19215 # Variables whose values should be saved in libtool wrapper scripts and
19216 # restored at relink time.
19217 variables_saved_for_relink="$variables_saved_for_relink"
19218
19219 # Whether libtool must link a program against all its dependency libraries.
19220 link_all_deplibs=$link_all_deplibs_GCJ
19221
19222 # Compile-time system search path for libraries
19223 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19224
19225 # Run-time system search path for libraries
19226 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19227
19228 # Fix the shell variable \$srcfile for the compiler.
19229 fix_srcfile_path=$lt_fix_srcfile_path
19230
19231 # Set to yes if exported symbols are required.
19232 always_export_symbols=$always_export_symbols_GCJ
19233
19234 # The commands to list exported symbols.
19235 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19236
19237 # The commands to extract the exported symbol list from a shared archive.
19238 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19239
19240 # Symbols that should not be listed in the preloaded symbols.
19241 exclude_expsyms=$lt_exclude_expsyms_GCJ
19242
19243 # Symbols that must always be exported.
19244 include_expsyms=$lt_include_expsyms_GCJ
19245
19246 # ### END LIBTOOL TAG CONFIG: $tagname
19247
19248 __EOF__
19249
19250
19251 else
19252   # If there is no Makefile yet, we rely on a make rule to execute
19253   # `config.status --recheck' to rerun these tests and create the
19254   # libtool script then.
19255   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19256   if test -f "$ltmain_in"; then
19257     test -f Makefile && make "$ltmain"
19258   fi
19259 fi
19260
19261
19262 ac_ext=c
19263 ac_cpp='$CPP $CPPFLAGS'
19264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19267
19268 CC="$lt_save_CC"
19269
19270         else
19271           tagname=""
19272         fi
19273         ;;
19274
19275       RC)
19276
19277
19278 # Source file extension for RC test sources.
19279 ac_ext=rc
19280
19281 # Object file extension for compiled RC test sources.
19282 objext=o
19283 objext_RC=$objext
19284
19285 # Code to be used in simple compile tests
19286 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19287
19288 # Code to be used in simple link tests
19289 lt_simple_link_test_code="$lt_simple_compile_test_code"
19290
19291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19292
19293 # If no C compiler was specified, use CC.
19294 LTCC=${LTCC-"$CC"}
19295
19296 # If no C compiler flags were specified, use CFLAGS.
19297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19298
19299 # Allow CC to be a program name with arguments.
19300 compiler=$CC
19301
19302
19303 # save warnings/boilerplate of simple test code
19304 ac_outfile=conftest.$ac_objext
19305 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19307 _lt_compiler_boilerplate=`cat conftest.err`
19308 $rm conftest*
19309
19310 ac_outfile=conftest.$ac_objext
19311 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19313 _lt_linker_boilerplate=`cat conftest.err`
19314 $rm -r conftest*
19315
19316
19317 # Allow CC to be a program name with arguments.
19318 lt_save_CC="$CC"
19319 CC=${RC-"windres"}
19320 compiler=$CC
19321 compiler_RC=$CC
19322 for cc_temp in $compiler""; do
19323   case $cc_temp in
19324     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19325     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19326     \-*) ;;
19327     *) break;;
19328   esac
19329 done
19330 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19331
19332 lt_cv_prog_compiler_c_o_RC=yes
19333
19334 # The else clause should only fire when bootstrapping the
19335 # libtool distribution, otherwise you forgot to ship ltmain.sh
19336 # with your package, and you will get complaints that there are
19337 # no rules to generate ltmain.sh.
19338 if test -f "$ltmain"; then
19339   # See if we are running on zsh, and set the options which allow our commands through
19340   # without removal of \ escapes.
19341   if test -n "${ZSH_VERSION+set}" ; then
19342     setopt NO_GLOB_SUBST
19343   fi
19344   # Now quote all the things that may contain metacharacters while being
19345   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19346   # variables and quote the copies for generation of the libtool script.
19347   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19348     SED SHELL STRIP \
19349     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19350     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19351     deplibs_check_method reload_flag reload_cmds need_locks \
19352     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19353     lt_cv_sys_global_symbol_to_c_name_address \
19354     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19355     old_postinstall_cmds old_postuninstall_cmds \
19356     compiler_RC \
19357     CC_RC \
19358     LD_RC \
19359     lt_prog_compiler_wl_RC \
19360     lt_prog_compiler_pic_RC \
19361     lt_prog_compiler_static_RC \
19362     lt_prog_compiler_no_builtin_flag_RC \
19363     export_dynamic_flag_spec_RC \
19364     thread_safe_flag_spec_RC \
19365     whole_archive_flag_spec_RC \
19366     enable_shared_with_static_runtimes_RC \
19367     old_archive_cmds_RC \
19368     old_archive_from_new_cmds_RC \
19369     predep_objects_RC \
19370     postdep_objects_RC \
19371     predeps_RC \
19372     postdeps_RC \
19373     compiler_lib_search_path_RC \
19374     compiler_lib_search_dirs_RC \
19375     archive_cmds_RC \
19376     archive_expsym_cmds_RC \
19377     postinstall_cmds_RC \
19378     postuninstall_cmds_RC \
19379     old_archive_from_expsyms_cmds_RC \
19380     allow_undefined_flag_RC \
19381     no_undefined_flag_RC \
19382     export_symbols_cmds_RC \
19383     hardcode_libdir_flag_spec_RC \
19384     hardcode_libdir_flag_spec_ld_RC \
19385     hardcode_libdir_separator_RC \
19386     hardcode_automatic_RC \
19387     module_cmds_RC \
19388     module_expsym_cmds_RC \
19389     lt_cv_prog_compiler_c_o_RC \
19390     fix_srcfile_path_RC \
19391     exclude_expsyms_RC \
19392     include_expsyms_RC; do
19393
19394     case $var in
19395     old_archive_cmds_RC | \
19396     old_archive_from_new_cmds_RC | \
19397     archive_cmds_RC | \
19398     archive_expsym_cmds_RC | \
19399     module_cmds_RC | \
19400     module_expsym_cmds_RC | \
19401     old_archive_from_expsyms_cmds_RC | \
19402     export_symbols_cmds_RC | \
19403     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19404     postinstall_cmds | postuninstall_cmds | \
19405     old_postinstall_cmds | old_postuninstall_cmds | \
19406     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19407       # Double-quote double-evaled strings.
19408       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19409       ;;
19410     *)
19411       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19412       ;;
19413     esac
19414   done
19415
19416   case $lt_echo in
19417   *'\$0 --fallback-echo"')
19418     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19419     ;;
19420   esac
19421
19422 cfgfile="$ofile"
19423
19424   cat <<__EOF__ >> "$cfgfile"
19425 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19426
19427 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19428
19429 # Shell to use when invoking shell scripts.
19430 SHELL=$lt_SHELL
19431
19432 # Whether or not to build shared libraries.
19433 build_libtool_libs=$enable_shared
19434
19435 # Whether or not to build static libraries.
19436 build_old_libs=$enable_static
19437
19438 # Whether or not to add -lc for building shared libraries.
19439 build_libtool_need_lc=$archive_cmds_need_lc_RC
19440
19441 # Whether or not to disallow shared libs when runtime libs are static
19442 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19443
19444 # Whether or not to optimize for fast installation.
19445 fast_install=$enable_fast_install
19446
19447 # The host system.
19448 host_alias=$host_alias
19449 host=$host
19450 host_os=$host_os
19451
19452 # The build system.
19453 build_alias=$build_alias
19454 build=$build
19455 build_os=$build_os
19456
19457 # An echo program that does not interpret backslashes.
19458 echo=$lt_echo
19459
19460 # The archiver.
19461 AR=$lt_AR
19462 AR_FLAGS=$lt_AR_FLAGS
19463
19464 # A C compiler.
19465 LTCC=$lt_LTCC
19466
19467 # LTCC compiler flags.
19468 LTCFLAGS=$lt_LTCFLAGS
19469
19470 # A language-specific compiler.
19471 CC=$lt_compiler_RC
19472
19473 # Is the compiler the GNU C compiler?
19474 with_gcc=$GCC_RC
19475
19476 # An ERE matcher.
19477 EGREP=$lt_EGREP
19478
19479 # The linker used to build libraries.
19480 LD=$lt_LD_RC
19481
19482 # Whether we need hard or soft links.
19483 LN_S=$lt_LN_S
19484
19485 # A BSD-compatible nm program.
19486 NM=$lt_NM
19487
19488 # A symbol stripping program
19489 STRIP=$lt_STRIP
19490
19491 # Used to examine libraries when file_magic_cmd begins "file"
19492 MAGIC_CMD=$MAGIC_CMD
19493
19494 # Used on cygwin: DLL creation program.
19495 DLLTOOL="$DLLTOOL"
19496
19497 # Used on cygwin: object dumper.
19498 OBJDUMP="$OBJDUMP"
19499
19500 # Used on cygwin: assembler.
19501 AS="$AS"
19502
19503 # The name of the directory that contains temporary libtool files.
19504 objdir=$objdir
19505
19506 # How to create reloadable object files.
19507 reload_flag=$lt_reload_flag
19508 reload_cmds=$lt_reload_cmds
19509
19510 # How to pass a linker flag through the compiler.
19511 wl=$lt_lt_prog_compiler_wl_RC
19512
19513 # Object file suffix (normally "o").
19514 objext="$ac_objext"
19515
19516 # Old archive suffix (normally "a").
19517 libext="$libext"
19518
19519 # Shared library suffix (normally ".so").
19520 shrext_cmds='$shrext_cmds'
19521
19522 # Executable file suffix (normally "").
19523 exeext="$exeext"
19524
19525 # Additional compiler flags for building library objects.
19526 pic_flag=$lt_lt_prog_compiler_pic_RC
19527 pic_mode=$pic_mode
19528
19529 # What is the maximum length of a command?
19530 max_cmd_len=$lt_cv_sys_max_cmd_len
19531
19532 # Does compiler simultaneously support -c and -o options?
19533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19534
19535 # Must we lock files when doing compilation?
19536 need_locks=$lt_need_locks
19537
19538 # Do we need the lib prefix for modules?
19539 need_lib_prefix=$need_lib_prefix
19540
19541 # Do we need a version for libraries?
19542 need_version=$need_version
19543
19544 # Whether dlopen is supported.
19545 dlopen_support=$enable_dlopen
19546
19547 # Whether dlopen of programs is supported.
19548 dlopen_self=$enable_dlopen_self
19549
19550 # Whether dlopen of statically linked programs is supported.
19551 dlopen_self_static=$enable_dlopen_self_static
19552
19553 # Compiler flag to prevent dynamic linking.
19554 link_static_flag=$lt_lt_prog_compiler_static_RC
19555
19556 # Compiler flag to turn off builtin functions.
19557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19558
19559 # Compiler flag to allow reflexive dlopens.
19560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19561
19562 # Compiler flag to generate shared objects directly from archives.
19563 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19564
19565 # Compiler flag to generate thread-safe objects.
19566 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19567
19568 # Library versioning type.
19569 version_type=$version_type
19570
19571 # Format of library name prefix.
19572 libname_spec=$lt_libname_spec
19573
19574 # List of archive names.  First name is the real one, the rest are links.
19575 # The last name is the one that the linker finds with -lNAME.
19576 library_names_spec=$lt_library_names_spec
19577
19578 # The coded name of the library, if different from the real name.
19579 soname_spec=$lt_soname_spec
19580
19581 # Commands used to build and install an old-style archive.
19582 RANLIB=$lt_RANLIB
19583 old_archive_cmds=$lt_old_archive_cmds_RC
19584 old_postinstall_cmds=$lt_old_postinstall_cmds
19585 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19586
19587 # Create an old-style archive from a shared archive.
19588 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19589
19590 # Create a temporary old-style archive to link instead of a shared archive.
19591 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19592
19593 # Commands used to build and install a shared archive.
19594 archive_cmds=$lt_archive_cmds_RC
19595 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19596 postinstall_cmds=$lt_postinstall_cmds
19597 postuninstall_cmds=$lt_postuninstall_cmds
19598
19599 # Commands used to build a loadable module (assumed same as above if empty)
19600 module_cmds=$lt_module_cmds_RC
19601 module_expsym_cmds=$lt_module_expsym_cmds_RC
19602
19603 # Commands to strip libraries.
19604 old_striplib=$lt_old_striplib
19605 striplib=$lt_striplib
19606
19607 # Dependencies to place before the objects being linked to create a
19608 # shared library.
19609 predep_objects=$lt_predep_objects_RC
19610
19611 # Dependencies to place after the objects being linked to create a
19612 # shared library.
19613 postdep_objects=$lt_postdep_objects_RC
19614
19615 # Dependencies to place before the objects being linked to create a
19616 # shared library.
19617 predeps=$lt_predeps_RC
19618
19619 # Dependencies to place after the objects being linked to create a
19620 # shared library.
19621 postdeps=$lt_postdeps_RC
19622
19623 # The directories searched by this compiler when creating a shared
19624 # library
19625 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19626
19627 # The library search path used internally by the compiler when linking
19628 # a shared library.
19629 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19630
19631 # Method to check whether dependent libraries are shared objects.
19632 deplibs_check_method=$lt_deplibs_check_method
19633
19634 # Command to use when deplibs_check_method == file_magic.
19635 file_magic_cmd=$lt_file_magic_cmd
19636
19637 # Flag that allows shared libraries with undefined symbols to be built.
19638 allow_undefined_flag=$lt_allow_undefined_flag_RC
19639
19640 # Flag that forces no undefined symbols.
19641 no_undefined_flag=$lt_no_undefined_flag_RC
19642
19643 # Commands used to finish a libtool library installation in a directory.
19644 finish_cmds=$lt_finish_cmds
19645
19646 # Same as above, but a single script fragment to be evaled but not shown.
19647 finish_eval=$lt_finish_eval
19648
19649 # Take the output of nm and produce a listing of raw symbols and C names.
19650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19651
19652 # Transform the output of nm in a proper C declaration
19653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19654
19655 # Transform the output of nm in a C name address pair
19656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19657
19658 # This is the shared library runtime path variable.
19659 runpath_var=$runpath_var
19660
19661 # This is the shared library path variable.
19662 shlibpath_var=$shlibpath_var
19663
19664 # Is shlibpath searched before the hard-coded library search path?
19665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19666
19667 # How to hardcode a shared library path into an executable.
19668 hardcode_action=$hardcode_action_RC
19669
19670 # Whether we should hardcode library paths into libraries.
19671 hardcode_into_libs=$hardcode_into_libs
19672
19673 # Flag to hardcode \$libdir into a binary during linking.
19674 # This must work even if \$libdir does not exist.
19675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19676
19677 # If ld is used when linking, flag to hardcode \$libdir into
19678 # a binary during linking. This must work even if \$libdir does
19679 # not exist.
19680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19681
19682 # Whether we need a single -rpath flag with a separated argument.
19683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19684
19685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19686 # resulting binary.
19687 hardcode_direct=$hardcode_direct_RC
19688
19689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19690 # resulting binary.
19691 hardcode_minus_L=$hardcode_minus_L_RC
19692
19693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19694 # the resulting binary.
19695 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19696
19697 # Set to yes if building a shared library automatically hardcodes DIR into the library
19698 # and all subsequent libraries and executables linked against it.
19699 hardcode_automatic=$hardcode_automatic_RC
19700
19701 # Variables whose values should be saved in libtool wrapper scripts and
19702 # restored at relink time.
19703 variables_saved_for_relink="$variables_saved_for_relink"
19704
19705 # Whether libtool must link a program against all its dependency libraries.
19706 link_all_deplibs=$link_all_deplibs_RC
19707
19708 # Compile-time system search path for libraries
19709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19710
19711 # Run-time system search path for libraries
19712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19713
19714 # Fix the shell variable \$srcfile for the compiler.
19715 fix_srcfile_path=$lt_fix_srcfile_path
19716
19717 # Set to yes if exported symbols are required.
19718 always_export_symbols=$always_export_symbols_RC
19719
19720 # The commands to list exported symbols.
19721 export_symbols_cmds=$lt_export_symbols_cmds_RC
19722
19723 # The commands to extract the exported symbol list from a shared archive.
19724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19725
19726 # Symbols that should not be listed in the preloaded symbols.
19727 exclude_expsyms=$lt_exclude_expsyms_RC
19728
19729 # Symbols that must always be exported.
19730 include_expsyms=$lt_include_expsyms_RC
19731
19732 # ### END LIBTOOL TAG CONFIG: $tagname
19733
19734 __EOF__
19735
19736
19737 else
19738   # If there is no Makefile yet, we rely on a make rule to execute
19739   # `config.status --recheck' to rerun these tests and create the
19740   # libtool script then.
19741   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19742   if test -f "$ltmain_in"; then
19743     test -f Makefile && make "$ltmain"
19744   fi
19745 fi
19746
19747
19748 ac_ext=c
19749 ac_cpp='$CPP $CPPFLAGS'
19750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19753
19754 CC="$lt_save_CC"
19755
19756         ;;
19757
19758       *)
19759         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19760 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19761    { (exit 1); exit 1; }; }
19762         ;;
19763       esac
19764
19765       # Append the new tag name to the list of available tags.
19766       if test -n "$tagname" ; then
19767       available_tags="$available_tags $tagname"
19768     fi
19769     fi
19770   done
19771   IFS="$lt_save_ifs"
19772
19773   # Now substitute the updated list of available tags.
19774   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19775     mv "${ofile}T" "$ofile"
19776     chmod +x "$ofile"
19777   else
19778     rm -f "${ofile}T"
19779     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19780 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19781    { (exit 1); exit 1; }; }
19782   fi
19783 fi
19784
19785
19786
19787 # This can be used to rebuild libtool when needed
19788 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19789
19790 # Always use our own libtool.
19791 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19792
19793 # Prevent multiple expansion
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816 # Check whether some low-level functions/files are available
19817 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19818 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19819 if test "${ac_cv_header_stdc+set}" = set; then
19820   echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822   cat >conftest.$ac_ext <<_ACEOF
19823 /* confdefs.h.  */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h.  */
19828 #include <stdlib.h>
19829 #include <stdarg.h>
19830 #include <string.h>
19831 #include <float.h>
19832
19833 int
19834 main ()
19835 {
19836
19837   ;
19838   return 0;
19839 }
19840 _ACEOF
19841 rm -f conftest.$ac_objext
19842 if { (ac_try="$ac_compile"
19843 case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_compile") 2>conftest.er1
19849   ac_status=$?
19850   grep -v '^ *+' conftest.er1 >conftest.err
19851   rm -f conftest.er1
19852   cat conftest.err >&5
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); } && {
19855          test -z "$ac_c_werror_flag" ||
19856          test ! -s conftest.err
19857        } && test -s conftest.$ac_objext; then
19858   ac_cv_header_stdc=yes
19859 else
19860   echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863         ac_cv_header_stdc=no
19864 fi
19865
19866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19867
19868 if test $ac_cv_header_stdc = yes; then
19869   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19870   cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h.  */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h.  */
19876 #include <string.h>
19877
19878 _ACEOF
19879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19880   $EGREP "memchr" >/dev/null 2>&1; then
19881   :
19882 else
19883   ac_cv_header_stdc=no
19884 fi
19885 rm -f conftest*
19886
19887 fi
19888
19889 if test $ac_cv_header_stdc = yes; then
19890   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19891   cat >conftest.$ac_ext <<_ACEOF
19892 /* confdefs.h.  */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h.  */
19897 #include <stdlib.h>
19898
19899 _ACEOF
19900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19901   $EGREP "free" >/dev/null 2>&1; then
19902   :
19903 else
19904   ac_cv_header_stdc=no
19905 fi
19906 rm -f conftest*
19907
19908 fi
19909
19910 if test $ac_cv_header_stdc = yes; then
19911   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19912   if test "$cross_compiling" = yes; then
19913   :
19914 else
19915   cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h.  */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h.  */
19921 #include <ctype.h>
19922 #include <stdlib.h>
19923 #if ((' ' & 0x0FF) == 0x020)
19924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19926 #else
19927 # define ISLOWER(c) \
19928                    (('a' <= (c) && (c) <= 'i') \
19929                      || ('j' <= (c) && (c) <= 'r') \
19930                      || ('s' <= (c) && (c) <= 'z'))
19931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19932 #endif
19933
19934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19935 int
19936 main ()
19937 {
19938   int i;
19939   for (i = 0; i < 256; i++)
19940     if (XOR (islower (i), ISLOWER (i))
19941         || toupper (i) != TOUPPER (i))
19942       return 2;
19943   return 0;
19944 }
19945 _ACEOF
19946 rm -f conftest$ac_exeext
19947 if { (ac_try="$ac_link"
19948 case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953   (eval "$ac_link") 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19957   { (case "(($ac_try" in
19958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959   *) ac_try_echo=$ac_try;;
19960 esac
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962   (eval "$ac_try") 2>&5
19963   ac_status=$?
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); }; }; then
19966   :
19967 else
19968   echo "$as_me: program exited with status $ac_status" >&5
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19971
19972 ( exit $ac_status )
19973 ac_cv_header_stdc=no
19974 fi
19975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19976 fi
19977
19978
19979 fi
19980 fi
19981 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19982 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19983 if test $ac_cv_header_stdc = yes; then
19984
19985 cat >>confdefs.h <<\_ACEOF
19986 #define STDC_HEADERS 1
19987 _ACEOF
19988
19989 fi
19990
19991
19992 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19993 if test "${ac_cv_header_stdint_h+set}" = set; then
19994   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19995 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19996 if test "${ac_cv_header_stdint_h+set}" = set; then
19997   echo $ECHO_N "(cached) $ECHO_C" >&6
19998 fi
19999 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20000 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20001 else
20002   # Is the header compilable?
20003 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
20004 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
20005 cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h.  */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h.  */
20011 $ac_includes_default
20012 #include <stdint.h>
20013 _ACEOF
20014 rm -f conftest.$ac_objext
20015 if { (ac_try="$ac_compile"
20016 case "(($ac_try" in
20017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018   *) ac_try_echo=$ac_try;;
20019 esac
20020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20021   (eval "$ac_compile") 2>conftest.er1
20022   ac_status=$?
20023   grep -v '^ *+' conftest.er1 >conftest.err
20024   rm -f conftest.er1
20025   cat conftest.err >&5
20026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027   (exit $ac_status); } && {
20028          test -z "$ac_c_werror_flag" ||
20029          test ! -s conftest.err
20030        } && test -s conftest.$ac_objext; then
20031   ac_header_compiler=yes
20032 else
20033   echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036         ac_header_compiler=no
20037 fi
20038
20039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20041 echo "${ECHO_T}$ac_header_compiler" >&6; }
20042
20043 # Is the header present?
20044 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20045 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20046 cat >conftest.$ac_ext <<_ACEOF
20047 /* confdefs.h.  */
20048 _ACEOF
20049 cat confdefs.h >>conftest.$ac_ext
20050 cat >>conftest.$ac_ext <<_ACEOF
20051 /* end confdefs.h.  */
20052 #include <stdint.h>
20053 _ACEOF
20054 if { (ac_try="$ac_cpp conftest.$ac_ext"
20055 case "(($ac_try" in
20056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057   *) ac_try_echo=$ac_try;;
20058 esac
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20061   ac_status=$?
20062   grep -v '^ *+' conftest.er1 >conftest.err
20063   rm -f conftest.er1
20064   cat conftest.err >&5
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); } >/dev/null && {
20067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20068          test ! -s conftest.err
20069        }; then
20070   ac_header_preproc=yes
20071 else
20072   echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20074
20075   ac_header_preproc=no
20076 fi
20077
20078 rm -f conftest.err conftest.$ac_ext
20079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20080 echo "${ECHO_T}$ac_header_preproc" >&6; }
20081
20082 # So?  What about this header?
20083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20084   yes:no: )
20085     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20086 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20087     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20088 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20089     ac_header_preproc=yes
20090     ;;
20091   no:yes:* )
20092     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20093 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20094     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20095 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20096     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20097 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20098     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20099 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20100     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20101 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20102     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20103 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20104     ( cat <<\_ASBOX
20105 ## ------------------------------------ ##
20106 ## Report this to opensource@google.com ##
20107 ## ------------------------------------ ##
20108 _ASBOX
20109      ) | sed "s/^/$as_me: WARNING:     /" >&2
20110     ;;
20111 esac
20112 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20113 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20114 if test "${ac_cv_header_stdint_h+set}" = set; then
20115   echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117   ac_cv_header_stdint_h=$ac_header_preproc
20118 fi
20119 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20120 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20121
20122 fi
20123 if test $ac_cv_header_stdint_h = yes; then
20124   ac_cv_have_stdint_h=1
20125 else
20126   ac_cv_have_stdint_h=0
20127 fi
20128
20129
20130 if test "${ac_cv_header_sys_types_h+set}" = set; then
20131   { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20132 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20133 if test "${ac_cv_header_sys_types_h+set}" = set; then
20134   echo $ECHO_N "(cached) $ECHO_C" >&6
20135 fi
20136 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20137 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20138 else
20139   # Is the header compilable?
20140 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20141 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h.  */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h.  */
20148 $ac_includes_default
20149 #include <sys/types.h>
20150 _ACEOF
20151 rm -f conftest.$ac_objext
20152 if { (ac_try="$ac_compile"
20153 case "(($ac_try" in
20154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155   *) ac_try_echo=$ac_try;;
20156 esac
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158   (eval "$ac_compile") 2>conftest.er1
20159   ac_status=$?
20160   grep -v '^ *+' conftest.er1 >conftest.err
20161   rm -f conftest.er1
20162   cat conftest.err >&5
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); } && {
20165          test -z "$ac_c_werror_flag" ||
20166          test ! -s conftest.err
20167        } && test -s conftest.$ac_objext; then
20168   ac_header_compiler=yes
20169 else
20170   echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20172
20173         ac_header_compiler=no
20174 fi
20175
20176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20178 echo "${ECHO_T}$ac_header_compiler" >&6; }
20179
20180 # Is the header present?
20181 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20182 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20183 cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h.  */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h.  */
20189 #include <sys/types.h>
20190 _ACEOF
20191 if { (ac_try="$ac_cpp conftest.$ac_ext"
20192 case "(($ac_try" in
20193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194   *) ac_try_echo=$ac_try;;
20195 esac
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20198   ac_status=$?
20199   grep -v '^ *+' conftest.er1 >conftest.err
20200   rm -f conftest.er1
20201   cat conftest.err >&5
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } >/dev/null && {
20204          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20205          test ! -s conftest.err
20206        }; then
20207   ac_header_preproc=yes
20208 else
20209   echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20211
20212   ac_header_preproc=no
20213 fi
20214
20215 rm -f conftest.err conftest.$ac_ext
20216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20217 echo "${ECHO_T}$ac_header_preproc" >&6; }
20218
20219 # So?  What about this header?
20220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20221   yes:no: )
20222     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20223 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20224     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20225 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20226     ac_header_preproc=yes
20227     ;;
20228   no:yes:* )
20229     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20230 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20231     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20232 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20233     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20234 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20235     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20236 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20237     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20238 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20239     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20240 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20241     ( cat <<\_ASBOX
20242 ## ------------------------------------ ##
20243 ## Report this to opensource@google.com ##
20244 ## ------------------------------------ ##
20245 _ASBOX
20246      ) | sed "s/^/$as_me: WARNING:     /" >&2
20247     ;;
20248 esac
20249 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20250 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20251 if test "${ac_cv_header_sys_types_h+set}" = set; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254   ac_cv_header_sys_types_h=$ac_header_preproc
20255 fi
20256 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20257 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20258
20259 fi
20260 if test $ac_cv_header_sys_types_h = yes; then
20261   ac_cv_have_systypes_h=1
20262 else
20263   ac_cv_have_systypes_h=0
20264 fi
20265
20266
20267 if test "${ac_cv_header_inttypes_h+set}" = set; then
20268   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20269 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20270 if test "${ac_cv_header_inttypes_h+set}" = set; then
20271   echo $ECHO_N "(cached) $ECHO_C" >&6
20272 fi
20273 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20274 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20275 else
20276   # Is the header compilable?
20277 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20278 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20279 cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h.  */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h.  */
20285 $ac_includes_default
20286 #include <inttypes.h>
20287 _ACEOF
20288 rm -f conftest.$ac_objext
20289 if { (ac_try="$ac_compile"
20290 case "(($ac_try" in
20291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292   *) ac_try_echo=$ac_try;;
20293 esac
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295   (eval "$ac_compile") 2>conftest.er1
20296   ac_status=$?
20297   grep -v '^ *+' conftest.er1 >conftest.err
20298   rm -f conftest.er1
20299   cat conftest.err >&5
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); } && {
20302          test -z "$ac_c_werror_flag" ||
20303          test ! -s conftest.err
20304        } && test -s conftest.$ac_objext; then
20305   ac_header_compiler=yes
20306 else
20307   echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20309
20310         ac_header_compiler=no
20311 fi
20312
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20315 echo "${ECHO_T}$ac_header_compiler" >&6; }
20316
20317 # Is the header present?
20318 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20319 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20320 cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h.  */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h.  */
20326 #include <inttypes.h>
20327 _ACEOF
20328 if { (ac_try="$ac_cpp conftest.$ac_ext"
20329 case "(($ac_try" in
20330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331   *) ac_try_echo=$ac_try;;
20332 esac
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20335   ac_status=$?
20336   grep -v '^ *+' conftest.er1 >conftest.err
20337   rm -f conftest.er1
20338   cat conftest.err >&5
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); } >/dev/null && {
20341          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20342          test ! -s conftest.err
20343        }; then
20344   ac_header_preproc=yes
20345 else
20346   echo "$as_me: failed program was:" >&5
20347 sed 's/^/| /' conftest.$ac_ext >&5
20348
20349   ac_header_preproc=no
20350 fi
20351
20352 rm -f conftest.err conftest.$ac_ext
20353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20354 echo "${ECHO_T}$ac_header_preproc" >&6; }
20355
20356 # So?  What about this header?
20357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20358   yes:no: )
20359     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20360 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20361     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20362 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20363     ac_header_preproc=yes
20364     ;;
20365   no:yes:* )
20366     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20367 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20368     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20369 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20370     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20371 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20372     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20373 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20374     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20375 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20376     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20377 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20378     ( cat <<\_ASBOX
20379 ## ------------------------------------ ##
20380 ## Report this to opensource@google.com ##
20381 ## ------------------------------------ ##
20382 _ASBOX
20383      ) | sed "s/^/$as_me: WARNING:     /" >&2
20384     ;;
20385 esac
20386 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20387 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20388 if test "${ac_cv_header_inttypes_h+set}" = set; then
20389   echo $ECHO_N "(cached) $ECHO_C" >&6
20390 else
20391   ac_cv_header_inttypes_h=$ac_header_preproc
20392 fi
20393 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20394 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20395
20396 fi
20397 if test $ac_cv_header_inttypes_h = yes; then
20398   ac_cv_have_inttypes_h=1
20399 else
20400   ac_cv_have_inttypes_h=0
20401 fi
20402
20403
20404
20405 for ac_header in unistd.h
20406 do
20407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20409   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20412   echo $ECHO_N "(cached) $ECHO_C" >&6
20413 fi
20414 ac_res=`eval echo '${'$as_ac_Header'}'`
20415                { echo "$as_me:$LINENO: result: $ac_res" >&5
20416 echo "${ECHO_T}$ac_res" >&6; }
20417 else
20418   # Is the header compilable?
20419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20421 cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h.  */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h.  */
20427 $ac_includes_default
20428 #include <$ac_header>
20429 _ACEOF
20430 rm -f conftest.$ac_objext
20431 if { (ac_try="$ac_compile"
20432 case "(($ac_try" in
20433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434   *) ac_try_echo=$ac_try;;
20435 esac
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437   (eval "$ac_compile") 2>conftest.er1
20438   ac_status=$?
20439   grep -v '^ *+' conftest.er1 >conftest.err
20440   rm -f conftest.er1
20441   cat conftest.err >&5
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); } && {
20444          test -z "$ac_c_werror_flag" ||
20445          test ! -s conftest.err
20446        } && test -s conftest.$ac_objext; then
20447   ac_header_compiler=yes
20448 else
20449   echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20451
20452         ac_header_compiler=no
20453 fi
20454
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20457 echo "${ECHO_T}$ac_header_compiler" >&6; }
20458
20459 # Is the header present?
20460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20462 cat >conftest.$ac_ext <<_ACEOF
20463 /* confdefs.h.  */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h.  */
20468 #include <$ac_header>
20469 _ACEOF
20470 if { (ac_try="$ac_cpp conftest.$ac_ext"
20471 case "(($ac_try" in
20472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473   *) ac_try_echo=$ac_try;;
20474 esac
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20477   ac_status=$?
20478   grep -v '^ *+' conftest.er1 >conftest.err
20479   rm -f conftest.er1
20480   cat conftest.err >&5
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); } >/dev/null && {
20483          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20484          test ! -s conftest.err
20485        }; then
20486   ac_header_preproc=yes
20487 else
20488   echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20490
20491   ac_header_preproc=no
20492 fi
20493
20494 rm -f conftest.err conftest.$ac_ext
20495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20496 echo "${ECHO_T}$ac_header_preproc" >&6; }
20497
20498 # So?  What about this header?
20499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20500   yes:no: )
20501     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20505     ac_header_preproc=yes
20506     ;;
20507   no:yes:* )
20508     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20510     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20511 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20512     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20514     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20515 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20518     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20520     ( cat <<\_ASBOX
20521 ## ------------------------------------ ##
20522 ## Report this to opensource@google.com ##
20523 ## ------------------------------------ ##
20524 _ASBOX
20525      ) | sed "s/^/$as_me: WARNING:     /" >&2
20526     ;;
20527 esac
20528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20531   echo $ECHO_N "(cached) $ECHO_C" >&6
20532 else
20533   eval "$as_ac_Header=\$ac_header_preproc"
20534 fi
20535 ac_res=`eval echo '${'$as_ac_Header'}'`
20536                { echo "$as_me:$LINENO: result: $ac_res" >&5
20537 echo "${ECHO_T}$ac_res" >&6; }
20538
20539 fi
20540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20541   cat >>confdefs.h <<_ACEOF
20542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20543 _ACEOF
20544  ac_cv_have_unistd_h=1
20545 else
20546   ac_cv_have_unistd_h=0
20547 fi
20548
20549 done
20550
20551
20552 for ac_header in syscall.h
20553 do
20554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20556   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20559   echo $ECHO_N "(cached) $ECHO_C" >&6
20560 fi
20561 ac_res=`eval echo '${'$as_ac_Header'}'`
20562                { echo "$as_me:$LINENO: result: $ac_res" >&5
20563 echo "${ECHO_T}$ac_res" >&6; }
20564 else
20565   # Is the header compilable?
20566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20568 cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h.  */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h.  */
20574 $ac_includes_default
20575 #include <$ac_header>
20576 _ACEOF
20577 rm -f conftest.$ac_objext
20578 if { (ac_try="$ac_compile"
20579 case "(($ac_try" in
20580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581   *) ac_try_echo=$ac_try;;
20582 esac
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584   (eval "$ac_compile") 2>conftest.er1
20585   ac_status=$?
20586   grep -v '^ *+' conftest.er1 >conftest.err
20587   rm -f conftest.er1
20588   cat conftest.err >&5
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); } && {
20591          test -z "$ac_c_werror_flag" ||
20592          test ! -s conftest.err
20593        } && test -s conftest.$ac_objext; then
20594   ac_header_compiler=yes
20595 else
20596   echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599         ac_header_compiler=no
20600 fi
20601
20602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20604 echo "${ECHO_T}$ac_header_compiler" >&6; }
20605
20606 # Is the header present?
20607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h.  */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h.  */
20615 #include <$ac_header>
20616 _ACEOF
20617 if { (ac_try="$ac_cpp conftest.$ac_ext"
20618 case "(($ac_try" in
20619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620   *) ac_try_echo=$ac_try;;
20621 esac
20622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20624   ac_status=$?
20625   grep -v '^ *+' conftest.er1 >conftest.err
20626   rm -f conftest.er1
20627   cat conftest.err >&5
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); } >/dev/null && {
20630          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20631          test ! -s conftest.err
20632        }; then
20633   ac_header_preproc=yes
20634 else
20635   echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20637
20638   ac_header_preproc=no
20639 fi
20640
20641 rm -f conftest.err conftest.$ac_ext
20642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20643 echo "${ECHO_T}$ac_header_preproc" >&6; }
20644
20645 # So?  What about this header?
20646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20647   yes:no: )
20648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20652     ac_header_preproc=yes
20653     ;;
20654   no:yes:* )
20655     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20657     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20658 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20659     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20661     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20662 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20665     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20667     ( cat <<\_ASBOX
20668 ## ------------------------------------ ##
20669 ## Report this to opensource@google.com ##
20670 ## ------------------------------------ ##
20671 _ASBOX
20672      ) | sed "s/^/$as_me: WARNING:     /" >&2
20673     ;;
20674 esac
20675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20678   echo $ECHO_N "(cached) $ECHO_C" >&6
20679 else
20680   eval "$as_ac_Header=\$ac_header_preproc"
20681 fi
20682 ac_res=`eval echo '${'$as_ac_Header'}'`
20683                { echo "$as_me:$LINENO: result: $ac_res" >&5
20684 echo "${ECHO_T}$ac_res" >&6; }
20685
20686 fi
20687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20688   cat >>confdefs.h <<_ACEOF
20689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20690 _ACEOF
20691
20692 fi
20693
20694 done
20695
20696
20697 for ac_header in sys/syscall.h
20698 do
20699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20701   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20704   echo $ECHO_N "(cached) $ECHO_C" >&6
20705 fi
20706 ac_res=`eval echo '${'$as_ac_Header'}'`
20707                { echo "$as_me:$LINENO: result: $ac_res" >&5
20708 echo "${ECHO_T}$ac_res" >&6; }
20709 else
20710   # Is the header compilable?
20711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20713 cat >conftest.$ac_ext <<_ACEOF
20714 /* confdefs.h.  */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h.  */
20719 $ac_includes_default
20720 #include <$ac_header>
20721 _ACEOF
20722 rm -f conftest.$ac_objext
20723 if { (ac_try="$ac_compile"
20724 case "(($ac_try" in
20725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726   *) ac_try_echo=$ac_try;;
20727 esac
20728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20729   (eval "$ac_compile") 2>conftest.er1
20730   ac_status=$?
20731   grep -v '^ *+' conftest.er1 >conftest.err
20732   rm -f conftest.er1
20733   cat conftest.err >&5
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); } && {
20736          test -z "$ac_c_werror_flag" ||
20737          test ! -s conftest.err
20738        } && test -s conftest.$ac_objext; then
20739   ac_header_compiler=yes
20740 else
20741   echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20743
20744         ac_header_compiler=no
20745 fi
20746
20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20749 echo "${ECHO_T}$ac_header_compiler" >&6; }
20750
20751 # Is the header present?
20752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20754 cat >conftest.$ac_ext <<_ACEOF
20755 /* confdefs.h.  */
20756 _ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h.  */
20760 #include <$ac_header>
20761 _ACEOF
20762 if { (ac_try="$ac_cpp conftest.$ac_ext"
20763 case "(($ac_try" in
20764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765   *) ac_try_echo=$ac_try;;
20766 esac
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20769   ac_status=$?
20770   grep -v '^ *+' conftest.er1 >conftest.err
20771   rm -f conftest.er1
20772   cat conftest.err >&5
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); } >/dev/null && {
20775          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20776          test ! -s conftest.err
20777        }; then
20778   ac_header_preproc=yes
20779 else
20780   echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783   ac_header_preproc=no
20784 fi
20785
20786 rm -f conftest.err conftest.$ac_ext
20787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20788 echo "${ECHO_T}$ac_header_preproc" >&6; }
20789
20790 # So?  What about this header?
20791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20792   yes:no: )
20793     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20797     ac_header_preproc=yes
20798     ;;
20799   no:yes:* )
20800     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20802     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20803 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20804     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20806     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20807 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20810     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20812     ( cat <<\_ASBOX
20813 ## ------------------------------------ ##
20814 ## Report this to opensource@google.com ##
20815 ## ------------------------------------ ##
20816 _ASBOX
20817      ) | sed "s/^/$as_me: WARNING:     /" >&2
20818     ;;
20819 esac
20820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20823   echo $ECHO_N "(cached) $ECHO_C" >&6
20824 else
20825   eval "$as_ac_Header=\$ac_header_preproc"
20826 fi
20827 ac_res=`eval echo '${'$as_ac_Header'}'`
20828                { echo "$as_me:$LINENO: result: $ac_res" >&5
20829 echo "${ECHO_T}$ac_res" >&6; }
20830
20831 fi
20832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20833   cat >>confdefs.h <<_ACEOF
20834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20835 _ACEOF
20836
20837 fi
20838
20839 done
20840
20841 # For backtrace with glibc.
20842
20843 for ac_header in execinfo.h
20844 do
20845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20847   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20850   echo $ECHO_N "(cached) $ECHO_C" >&6
20851 fi
20852 ac_res=`eval echo '${'$as_ac_Header'}'`
20853                { echo "$as_me:$LINENO: result: $ac_res" >&5
20854 echo "${ECHO_T}$ac_res" >&6; }
20855 else
20856   # Is the header compilable?
20857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h.  */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h.  */
20865 $ac_includes_default
20866 #include <$ac_header>
20867 _ACEOF
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872   *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875   (eval "$ac_compile") 2>conftest.er1
20876   ac_status=$?
20877   grep -v '^ *+' conftest.er1 >conftest.err
20878   rm -f conftest.er1
20879   cat conftest.err >&5
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } && {
20882          test -z "$ac_c_werror_flag" ||
20883          test ! -s conftest.err
20884        } && test -s conftest.$ac_objext; then
20885   ac_header_compiler=yes
20886 else
20887   echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890         ac_header_compiler=no
20891 fi
20892
20893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20895 echo "${ECHO_T}$ac_header_compiler" >&6; }
20896
20897 # Is the header present?
20898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20900 cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h.  */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h.  */
20906 #include <$ac_header>
20907 _ACEOF
20908 if { (ac_try="$ac_cpp conftest.$ac_ext"
20909 case "(($ac_try" in
20910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911   *) ac_try_echo=$ac_try;;
20912 esac
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20915   ac_status=$?
20916   grep -v '^ *+' conftest.er1 >conftest.err
20917   rm -f conftest.er1
20918   cat conftest.err >&5
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); } >/dev/null && {
20921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20922          test ! -s conftest.err
20923        }; then
20924   ac_header_preproc=yes
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20928
20929   ac_header_preproc=no
20930 fi
20931
20932 rm -f conftest.err conftest.$ac_ext
20933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20934 echo "${ECHO_T}$ac_header_preproc" >&6; }
20935
20936 # So?  What about this header?
20937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20938   yes:no: )
20939     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20943     ac_header_preproc=yes
20944     ;;
20945   no:yes:* )
20946     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20948     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20949 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20950     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20952     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20953 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20956     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20958     ( cat <<\_ASBOX
20959 ## ------------------------------------ ##
20960 ## Report this to opensource@google.com ##
20961 ## ------------------------------------ ##
20962 _ASBOX
20963      ) | sed "s/^/$as_me: WARNING:     /" >&2
20964     ;;
20965 esac
20966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20969   echo $ECHO_N "(cached) $ECHO_C" >&6
20970 else
20971   eval "$as_ac_Header=\$ac_header_preproc"
20972 fi
20973 ac_res=`eval echo '${'$as_ac_Header'}'`
20974                { echo "$as_me:$LINENO: result: $ac_res" >&5
20975 echo "${ECHO_T}$ac_res" >&6; }
20976
20977 fi
20978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20979   cat >>confdefs.h <<_ACEOF
20980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20981 _ACEOF
20982
20983 fi
20984
20985 done
20986
20987 # For backtrace with libunwind.
20988
20989 for ac_header in libunwind.h
20990 do
20991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20993   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20996   echo $ECHO_N "(cached) $ECHO_C" >&6
20997 fi
20998 ac_res=`eval echo '${'$as_ac_Header'}'`
20999                { echo "$as_me:$LINENO: result: $ac_res" >&5
21000 echo "${ECHO_T}$ac_res" >&6; }
21001 else
21002   # Is the header compilable?
21003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21005 cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h.  */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h.  */
21011 $ac_includes_default
21012 #include <$ac_header>
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018   *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021   (eval "$ac_compile") 2>conftest.er1
21022   ac_status=$?
21023   grep -v '^ *+' conftest.er1 >conftest.err
21024   rm -f conftest.er1
21025   cat conftest.err >&5
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); } && {
21028          test -z "$ac_c_werror_flag" ||
21029          test ! -s conftest.err
21030        } && test -s conftest.$ac_objext; then
21031   ac_header_compiler=yes
21032 else
21033   echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036         ac_header_compiler=no
21037 fi
21038
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21041 echo "${ECHO_T}$ac_header_compiler" >&6; }
21042
21043 # Is the header present?
21044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052 #include <$ac_header>
21053 _ACEOF
21054 if { (ac_try="$ac_cpp conftest.$ac_ext"
21055 case "(($ac_try" in
21056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057   *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21061   ac_status=$?
21062   grep -v '^ *+' conftest.er1 >conftest.err
21063   rm -f conftest.er1
21064   cat conftest.err >&5
21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); } >/dev/null && {
21067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21068          test ! -s conftest.err
21069        }; then
21070   ac_header_preproc=yes
21071 else
21072   echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21074
21075   ac_header_preproc=no
21076 fi
21077
21078 rm -f conftest.err conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21080 echo "${ECHO_T}$ac_header_preproc" >&6; }
21081
21082 # So?  What about this header?
21083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21084   yes:no: )
21085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21089     ac_header_preproc=yes
21090     ;;
21091   no:yes:* )
21092     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21094     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21095 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21096     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21098     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21099 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21102     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21104     ( cat <<\_ASBOX
21105 ## ------------------------------------ ##
21106 ## Report this to opensource@google.com ##
21107 ## ------------------------------------ ##
21108 _ASBOX
21109      ) | sed "s/^/$as_me: WARNING:     /" >&2
21110     ;;
21111 esac
21112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21115   echo $ECHO_N "(cached) $ECHO_C" >&6
21116 else
21117   eval "$as_ac_Header=\$ac_header_preproc"
21118 fi
21119 ac_res=`eval echo '${'$as_ac_Header'}'`
21120                { echo "$as_me:$LINENO: result: $ac_res" >&5
21121 echo "${ECHO_T}$ac_res" >&6; }
21122
21123 fi
21124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21125   cat >>confdefs.h <<_ACEOF
21126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21127 _ACEOF
21128
21129 fi
21130
21131 done
21132
21133
21134 for ac_header in ucontext.h
21135 do
21136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21138   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21141   echo $ECHO_N "(cached) $ECHO_C" >&6
21142 fi
21143 ac_res=`eval echo '${'$as_ac_Header'}'`
21144                { echo "$as_me:$LINENO: result: $ac_res" >&5
21145 echo "${ECHO_T}$ac_res" >&6; }
21146 else
21147   # Is the header compilable?
21148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21150 cat >conftest.$ac_ext <<_ACEOF
21151 /* confdefs.h.  */
21152 _ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h.  */
21156 $ac_includes_default
21157 #include <$ac_header>
21158 _ACEOF
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163   *) ac_try_echo=$ac_try;;
21164 esac
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166   (eval "$ac_compile") 2>conftest.er1
21167   ac_status=$?
21168   grep -v '^ *+' conftest.er1 >conftest.err
21169   rm -f conftest.er1
21170   cat conftest.err >&5
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); } && {
21173          test -z "$ac_c_werror_flag" ||
21174          test ! -s conftest.err
21175        } && test -s conftest.$ac_objext; then
21176   ac_header_compiler=yes
21177 else
21178   echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21180
21181         ac_header_compiler=no
21182 fi
21183
21184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21186 echo "${ECHO_T}$ac_header_compiler" >&6; }
21187
21188 # Is the header present?
21189 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21191 cat >conftest.$ac_ext <<_ACEOF
21192 /* confdefs.h.  */
21193 _ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h.  */
21197 #include <$ac_header>
21198 _ACEOF
21199 if { (ac_try="$ac_cpp conftest.$ac_ext"
21200 case "(($ac_try" in
21201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202   *) ac_try_echo=$ac_try;;
21203 esac
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21206   ac_status=$?
21207   grep -v '^ *+' conftest.er1 >conftest.err
21208   rm -f conftest.er1
21209   cat conftest.err >&5
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); } >/dev/null && {
21212          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21213          test ! -s conftest.err
21214        }; then
21215   ac_header_preproc=yes
21216 else
21217   echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21219
21220   ac_header_preproc=no
21221 fi
21222
21223 rm -f conftest.err conftest.$ac_ext
21224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21225 echo "${ECHO_T}$ac_header_preproc" >&6; }
21226
21227 # So?  What about this header?
21228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21229   yes:no: )
21230     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21234     ac_header_preproc=yes
21235     ;;
21236   no:yes:* )
21237     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21239     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21240 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21241     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21243     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21244 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21247     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21249     ( cat <<\_ASBOX
21250 ## ------------------------------------ ##
21251 ## Report this to opensource@google.com ##
21252 ## ------------------------------------ ##
21253 _ASBOX
21254      ) | sed "s/^/$as_me: WARNING:     /" >&2
21255     ;;
21256 esac
21257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21260   echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262   eval "$as_ac_Header=\$ac_header_preproc"
21263 fi
21264 ac_res=`eval echo '${'$as_ac_Header'}'`
21265                { echo "$as_me:$LINENO: result: $ac_res" >&5
21266 echo "${ECHO_T}$ac_res" >&6; }
21267
21268 fi
21269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21270   cat >>confdefs.h <<_ACEOF
21271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21272 _ACEOF
21273
21274 fi
21275
21276 done
21277
21278
21279 for ac_header in sys/utsname.h
21280 do
21281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21283   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21286   echo $ECHO_N "(cached) $ECHO_C" >&6
21287 fi
21288 ac_res=`eval echo '${'$as_ac_Header'}'`
21289                { echo "$as_me:$LINENO: result: $ac_res" >&5
21290 echo "${ECHO_T}$ac_res" >&6; }
21291 else
21292   # Is the header compilable?
21293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21295 cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h.  */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h.  */
21301 $ac_includes_default
21302 #include <$ac_header>
21303 _ACEOF
21304 rm -f conftest.$ac_objext
21305 if { (ac_try="$ac_compile"
21306 case "(($ac_try" in
21307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308   *) ac_try_echo=$ac_try;;
21309 esac
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311   (eval "$ac_compile") 2>conftest.er1
21312   ac_status=$?
21313   grep -v '^ *+' conftest.er1 >conftest.err
21314   rm -f conftest.er1
21315   cat conftest.err >&5
21316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317   (exit $ac_status); } && {
21318          test -z "$ac_c_werror_flag" ||
21319          test ! -s conftest.err
21320        } && test -s conftest.$ac_objext; then
21321   ac_header_compiler=yes
21322 else
21323   echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21325
21326         ac_header_compiler=no
21327 fi
21328
21329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21331 echo "${ECHO_T}$ac_header_compiler" >&6; }
21332
21333 # Is the header present?
21334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21336 cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h.  */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h.  */
21342 #include <$ac_header>
21343 _ACEOF
21344 if { (ac_try="$ac_cpp conftest.$ac_ext"
21345 case "(($ac_try" in
21346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347   *) ac_try_echo=$ac_try;;
21348 esac
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21351   ac_status=$?
21352   grep -v '^ *+' conftest.er1 >conftest.err
21353   rm -f conftest.er1
21354   cat conftest.err >&5
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } >/dev/null && {
21357          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21358          test ! -s conftest.err
21359        }; then
21360   ac_header_preproc=yes
21361 else
21362   echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21364
21365   ac_header_preproc=no
21366 fi
21367
21368 rm -f conftest.err conftest.$ac_ext
21369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21370 echo "${ECHO_T}$ac_header_preproc" >&6; }
21371
21372 # So?  What about this header?
21373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21374   yes:no: )
21375     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21377     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21379     ac_header_preproc=yes
21380     ;;
21381   no:yes:* )
21382     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21384     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21385 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21386     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21388     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21389 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21392     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21394     ( cat <<\_ASBOX
21395 ## ------------------------------------ ##
21396 ## Report this to opensource@google.com ##
21397 ## ------------------------------------ ##
21398 _ASBOX
21399      ) | sed "s/^/$as_me: WARNING:     /" >&2
21400     ;;
21401 esac
21402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21405   echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407   eval "$as_ac_Header=\$ac_header_preproc"
21408 fi
21409 ac_res=`eval echo '${'$as_ac_Header'}'`
21410                { echo "$as_me:$LINENO: result: $ac_res" >&5
21411 echo "${ECHO_T}$ac_res" >&6; }
21412
21413 fi
21414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21415   cat >>confdefs.h <<_ACEOF
21416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21417 _ACEOF
21418
21419 fi
21420
21421 done
21422
21423
21424 for ac_header in pwd.h
21425 do
21426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21428   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21431   echo $ECHO_N "(cached) $ECHO_C" >&6
21432 fi
21433 ac_res=`eval echo '${'$as_ac_Header'}'`
21434                { echo "$as_me:$LINENO: result: $ac_res" >&5
21435 echo "${ECHO_T}$ac_res" >&6; }
21436 else
21437   # Is the header compilable?
21438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21440 cat >conftest.$ac_ext <<_ACEOF
21441 /* confdefs.h.  */
21442 _ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h.  */
21446 $ac_includes_default
21447 #include <$ac_header>
21448 _ACEOF
21449 rm -f conftest.$ac_objext
21450 if { (ac_try="$ac_compile"
21451 case "(($ac_try" in
21452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453   *) ac_try_echo=$ac_try;;
21454 esac
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456   (eval "$ac_compile") 2>conftest.er1
21457   ac_status=$?
21458   grep -v '^ *+' conftest.er1 >conftest.err
21459   rm -f conftest.er1
21460   cat conftest.err >&5
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } && {
21463          test -z "$ac_c_werror_flag" ||
21464          test ! -s conftest.err
21465        } && test -s conftest.$ac_objext; then
21466   ac_header_compiler=yes
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471         ac_header_compiler=no
21472 fi
21473
21474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21476 echo "${ECHO_T}$ac_header_compiler" >&6; }
21477
21478 # Is the header present?
21479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21481 cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487 #include <$ac_header>
21488 _ACEOF
21489 if { (ac_try="$ac_cpp conftest.$ac_ext"
21490 case "(($ac_try" in
21491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492   *) ac_try_echo=$ac_try;;
21493 esac
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21496   ac_status=$?
21497   grep -v '^ *+' conftest.er1 >conftest.err
21498   rm -f conftest.er1
21499   cat conftest.err >&5
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); } >/dev/null && {
21502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21503          test ! -s conftest.err
21504        }; then
21505   ac_header_preproc=yes
21506 else
21507   echo "$as_me: failed program was:" >&5
21508 sed 's/^/| /' conftest.$ac_ext >&5
21509
21510   ac_header_preproc=no
21511 fi
21512
21513 rm -f conftest.err conftest.$ac_ext
21514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21515 echo "${ECHO_T}$ac_header_preproc" >&6; }
21516
21517 # So?  What about this header?
21518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21519   yes:no: )
21520     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21524     ac_header_preproc=yes
21525     ;;
21526   no:yes:* )
21527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21529     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21530 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21531     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21533     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21534 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21537     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21539     ( cat <<\_ASBOX
21540 ## ------------------------------------ ##
21541 ## Report this to opensource@google.com ##
21542 ## ------------------------------------ ##
21543 _ASBOX
21544      ) | sed "s/^/$as_me: WARNING:     /" >&2
21545     ;;
21546 esac
21547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21550   echo $ECHO_N "(cached) $ECHO_C" >&6
21551 else
21552   eval "$as_ac_Header=\$ac_header_preproc"
21553 fi
21554 ac_res=`eval echo '${'$as_ac_Header'}'`
21555                { echo "$as_me:$LINENO: result: $ac_res" >&5
21556 echo "${ECHO_T}$ac_res" >&6; }
21557
21558 fi
21559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21560   cat >>confdefs.h <<_ACEOF
21561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21562 _ACEOF
21563
21564 fi
21565
21566 done
21567
21568
21569 for ac_header in syslog.h
21570 do
21571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21573   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21576   echo $ECHO_N "(cached) $ECHO_C" >&6
21577 fi
21578 ac_res=`eval echo '${'$as_ac_Header'}'`
21579                { echo "$as_me:$LINENO: result: $ac_res" >&5
21580 echo "${ECHO_T}$ac_res" >&6; }
21581 else
21582   # Is the header compilable?
21583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21585 cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h.  */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h.  */
21591 $ac_includes_default
21592 #include <$ac_header>
21593 _ACEOF
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598   *) ac_try_echo=$ac_try;;
21599 esac
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601   (eval "$ac_compile") 2>conftest.er1
21602   ac_status=$?
21603   grep -v '^ *+' conftest.er1 >conftest.err
21604   rm -f conftest.er1
21605   cat conftest.err >&5
21606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607   (exit $ac_status); } && {
21608          test -z "$ac_c_werror_flag" ||
21609          test ! -s conftest.err
21610        } && test -s conftest.$ac_objext; then
21611   ac_header_compiler=yes
21612 else
21613   echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616         ac_header_compiler=no
21617 fi
21618
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21621 echo "${ECHO_T}$ac_header_compiler" >&6; }
21622
21623 # Is the header present?
21624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21626 cat >conftest.$ac_ext <<_ACEOF
21627 /* confdefs.h.  */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h.  */
21632 #include <$ac_header>
21633 _ACEOF
21634 if { (ac_try="$ac_cpp conftest.$ac_ext"
21635 case "(($ac_try" in
21636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637   *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21641   ac_status=$?
21642   grep -v '^ *+' conftest.er1 >conftest.err
21643   rm -f conftest.er1
21644   cat conftest.err >&5
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); } >/dev/null && {
21647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21648          test ! -s conftest.err
21649        }; then
21650   ac_header_preproc=yes
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655   ac_header_preproc=no
21656 fi
21657
21658 rm -f conftest.err conftest.$ac_ext
21659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21660 echo "${ECHO_T}$ac_header_preproc" >&6; }
21661
21662 # So?  What about this header?
21663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21664   yes:no: )
21665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21669     ac_header_preproc=yes
21670     ;;
21671   no:yes:* )
21672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21674     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21675 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21676     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21678     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21679 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21682     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21684     ( cat <<\_ASBOX
21685 ## ------------------------------------ ##
21686 ## Report this to opensource@google.com ##
21687 ## ------------------------------------ ##
21688 _ASBOX
21689      ) | sed "s/^/$as_me: WARNING:     /" >&2
21690     ;;
21691 esac
21692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697   eval "$as_ac_Header=\$ac_header_preproc"
21698 fi
21699 ac_res=`eval echo '${'$as_ac_Header'}'`
21700                { echo "$as_me:$LINENO: result: $ac_res" >&5
21701 echo "${ECHO_T}$ac_res" >&6; }
21702
21703 fi
21704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21705   cat >>confdefs.h <<_ACEOF
21706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21707 _ACEOF
21708
21709 fi
21710
21711 done
21712
21713
21714 for ac_header in sys/time.h
21715 do
21716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21718   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21721   echo $ECHO_N "(cached) $ECHO_C" >&6
21722 fi
21723 ac_res=`eval echo '${'$as_ac_Header'}'`
21724                { echo "$as_me:$LINENO: result: $ac_res" >&5
21725 echo "${ECHO_T}$ac_res" >&6; }
21726 else
21727   # Is the header compilable?
21728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21730 cat >conftest.$ac_ext <<_ACEOF
21731 /* confdefs.h.  */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h.  */
21736 $ac_includes_default
21737 #include <$ac_header>
21738 _ACEOF
21739 rm -f conftest.$ac_objext
21740 if { (ac_try="$ac_compile"
21741 case "(($ac_try" in
21742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743   *) ac_try_echo=$ac_try;;
21744 esac
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746   (eval "$ac_compile") 2>conftest.er1
21747   ac_status=$?
21748   grep -v '^ *+' conftest.er1 >conftest.err
21749   rm -f conftest.er1
21750   cat conftest.err >&5
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); } && {
21753          test -z "$ac_c_werror_flag" ||
21754          test ! -s conftest.err
21755        } && test -s conftest.$ac_objext; then
21756   ac_header_compiler=yes
21757 else
21758   echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21760
21761         ac_header_compiler=no
21762 fi
21763
21764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21766 echo "${ECHO_T}$ac_header_compiler" >&6; }
21767
21768 # Is the header present?
21769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21771 cat >conftest.$ac_ext <<_ACEOF
21772 /* confdefs.h.  */
21773 _ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h.  */
21777 #include <$ac_header>
21778 _ACEOF
21779 if { (ac_try="$ac_cpp conftest.$ac_ext"
21780 case "(($ac_try" in
21781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782   *) ac_try_echo=$ac_try;;
21783 esac
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21786   ac_status=$?
21787   grep -v '^ *+' conftest.er1 >conftest.err
21788   rm -f conftest.er1
21789   cat conftest.err >&5
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } >/dev/null && {
21792          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21793          test ! -s conftest.err
21794        }; then
21795   ac_header_preproc=yes
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800   ac_header_preproc=no
21801 fi
21802
21803 rm -f conftest.err conftest.$ac_ext
21804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21805 echo "${ECHO_T}$ac_header_preproc" >&6; }
21806
21807 # So?  What about this header?
21808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21809   yes:no: )
21810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21814     ac_header_preproc=yes
21815     ;;
21816   no:yes:* )
21817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21829     ( cat <<\_ASBOX
21830 ## ------------------------------------ ##
21831 ## Report this to opensource@google.com ##
21832 ## ------------------------------------ ##
21833 _ASBOX
21834      ) | sed "s/^/$as_me: WARNING:     /" >&2
21835     ;;
21836 esac
21837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21840   echo $ECHO_N "(cached) $ECHO_C" >&6
21841 else
21842   eval "$as_ac_Header=\$ac_header_preproc"
21843 fi
21844 ac_res=`eval echo '${'$as_ac_Header'}'`
21845                { echo "$as_me:$LINENO: result: $ac_res" >&5
21846 echo "${ECHO_T}$ac_res" >&6; }
21847
21848 fi
21849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21850   cat >>confdefs.h <<_ACEOF
21851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21852 _ACEOF
21853
21854 fi
21855
21856 done
21857
21858
21859 for ac_header in glob.h
21860 do
21861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21863   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21866   echo $ECHO_N "(cached) $ECHO_C" >&6
21867 fi
21868 ac_res=`eval echo '${'$as_ac_Header'}'`
21869                { echo "$as_me:$LINENO: result: $ac_res" >&5
21870 echo "${ECHO_T}$ac_res" >&6; }
21871 else
21872   # Is the header compilable?
21873 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21875 cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h.  */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h.  */
21881 $ac_includes_default
21882 #include <$ac_header>
21883 _ACEOF
21884 rm -f conftest.$ac_objext
21885 if { (ac_try="$ac_compile"
21886 case "(($ac_try" in
21887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888   *) ac_try_echo=$ac_try;;
21889 esac
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891   (eval "$ac_compile") 2>conftest.er1
21892   ac_status=$?
21893   grep -v '^ *+' conftest.er1 >conftest.err
21894   rm -f conftest.er1
21895   cat conftest.err >&5
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); } && {
21898          test -z "$ac_c_werror_flag" ||
21899          test ! -s conftest.err
21900        } && test -s conftest.$ac_objext; then
21901   ac_header_compiler=yes
21902 else
21903   echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21905
21906         ac_header_compiler=no
21907 fi
21908
21909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21911 echo "${ECHO_T}$ac_header_compiler" >&6; }
21912
21913 # Is the header present?
21914 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21916 cat >conftest.$ac_ext <<_ACEOF
21917 /* confdefs.h.  */
21918 _ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h.  */
21922 #include <$ac_header>
21923 _ACEOF
21924 if { (ac_try="$ac_cpp conftest.$ac_ext"
21925 case "(($ac_try" in
21926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21927   *) ac_try_echo=$ac_try;;
21928 esac
21929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21930   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21931   ac_status=$?
21932   grep -v '^ *+' conftest.er1 >conftest.err
21933   rm -f conftest.er1
21934   cat conftest.err >&5
21935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); } >/dev/null && {
21937          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21938          test ! -s conftest.err
21939        }; then
21940   ac_header_preproc=yes
21941 else
21942   echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21944
21945   ac_header_preproc=no
21946 fi
21947
21948 rm -f conftest.err conftest.$ac_ext
21949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21950 echo "${ECHO_T}$ac_header_preproc" >&6; }
21951
21952 # So?  What about this header?
21953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21954   yes:no: )
21955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21959     ac_header_preproc=yes
21960     ;;
21961   no:yes:* )
21962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21974     ( cat <<\_ASBOX
21975 ## ------------------------------------ ##
21976 ## Report this to opensource@google.com ##
21977 ## ------------------------------------ ##
21978 _ASBOX
21979      ) | sed "s/^/$as_me: WARNING:     /" >&2
21980     ;;
21981 esac
21982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21985   echo $ECHO_N "(cached) $ECHO_C" >&6
21986 else
21987   eval "$as_ac_Header=\$ac_header_preproc"
21988 fi
21989 ac_res=`eval echo '${'$as_ac_Header'}'`
21990                { echo "$as_me:$LINENO: result: $ac_res" >&5
21991 echo "${ECHO_T}$ac_res" >&6; }
21992
21993 fi
21994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21995   cat >>confdefs.h <<_ACEOF
21996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21997 _ACEOF
21998
21999 fi
22000
22001 done
22002
22003
22004 { echo "$as_me:$LINENO: checking for void *" >&5
22005 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22006 if test "${ac_cv_type_void_p+set}" = set; then
22007   echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009   cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015 $ac_includes_default
22016 typedef void * ac__type_new_;
22017 int
22018 main ()
22019 {
22020 if ((ac__type_new_ *) 0)
22021   return 0;
22022 if (sizeof (ac__type_new_))
22023   return 0;
22024   ;
22025   return 0;
22026 }
22027 _ACEOF
22028 rm -f conftest.$ac_objext
22029 if { (ac_try="$ac_compile"
22030 case "(($ac_try" in
22031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032   *) ac_try_echo=$ac_try;;
22033 esac
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035   (eval "$ac_compile") 2>conftest.er1
22036   ac_status=$?
22037   grep -v '^ *+' conftest.er1 >conftest.err
22038   rm -f conftest.er1
22039   cat conftest.err >&5
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); } && {
22042          test -z "$ac_c_werror_flag" ||
22043          test ! -s conftest.err
22044        } && test -s conftest.$ac_objext; then
22045   ac_cv_type_void_p=yes
22046 else
22047   echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22049
22050         ac_cv_type_void_p=no
22051 fi
22052
22053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22054 fi
22055 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22056 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22057
22058 # The cast to long int works around a bug in the HP C Compiler
22059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22061 # This bug is HP SR number 8606223364.
22062 { echo "$as_me:$LINENO: checking size of void *" >&5
22063 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22064 if test "${ac_cv_sizeof_void_p+set}" = set; then
22065   echo $ECHO_N "(cached) $ECHO_C" >&6
22066 else
22067   if test "$cross_compiling" = yes; then
22068   # Depending upon the size, compute the lo and hi bounds.
22069 cat >conftest.$ac_ext <<_ACEOF
22070 /* confdefs.h.  */
22071 _ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h.  */
22075 $ac_includes_default
22076    typedef void * ac__type_sizeof_;
22077 int
22078 main ()
22079 {
22080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22081 test_array [0] = 0
22082
22083   ;
22084   return 0;
22085 }
22086 _ACEOF
22087 rm -f conftest.$ac_objext
22088 if { (ac_try="$ac_compile"
22089 case "(($ac_try" in
22090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091   *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094   (eval "$ac_compile") 2>conftest.er1
22095   ac_status=$?
22096   grep -v '^ *+' conftest.er1 >conftest.err
22097   rm -f conftest.er1
22098   cat conftest.err >&5
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); } && {
22101          test -z "$ac_c_werror_flag" ||
22102          test ! -s conftest.err
22103        } && test -s conftest.$ac_objext; then
22104   ac_lo=0 ac_mid=0
22105   while :; do
22106     cat >conftest.$ac_ext <<_ACEOF
22107 /* confdefs.h.  */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h.  */
22112 $ac_includes_default
22113    typedef void * ac__type_sizeof_;
22114 int
22115 main ()
22116 {
22117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22118 test_array [0] = 0
22119
22120   ;
22121   return 0;
22122 }
22123 _ACEOF
22124 rm -f conftest.$ac_objext
22125 if { (ac_try="$ac_compile"
22126 case "(($ac_try" in
22127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128   *) ac_try_echo=$ac_try;;
22129 esac
22130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131   (eval "$ac_compile") 2>conftest.er1
22132   ac_status=$?
22133   grep -v '^ *+' conftest.er1 >conftest.err
22134   rm -f conftest.er1
22135   cat conftest.err >&5
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); } && {
22138          test -z "$ac_c_werror_flag" ||
22139          test ! -s conftest.err
22140        } && test -s conftest.$ac_objext; then
22141   ac_hi=$ac_mid; break
22142 else
22143   echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22145
22146         ac_lo=`expr $ac_mid + 1`
22147                         if test $ac_lo -le $ac_mid; then
22148                           ac_lo= ac_hi=
22149                           break
22150                         fi
22151                         ac_mid=`expr 2 '*' $ac_mid + 1`
22152 fi
22153
22154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22155   done
22156 else
22157   echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22159
22160         cat >conftest.$ac_ext <<_ACEOF
22161 /* confdefs.h.  */
22162 _ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h.  */
22166 $ac_includes_default
22167    typedef void * ac__type_sizeof_;
22168 int
22169 main ()
22170 {
22171 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22172 test_array [0] = 0
22173
22174   ;
22175   return 0;
22176 }
22177 _ACEOF
22178 rm -f conftest.$ac_objext
22179 if { (ac_try="$ac_compile"
22180 case "(($ac_try" in
22181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182   *) ac_try_echo=$ac_try;;
22183 esac
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185   (eval "$ac_compile") 2>conftest.er1
22186   ac_status=$?
22187   grep -v '^ *+' conftest.er1 >conftest.err
22188   rm -f conftest.er1
22189   cat conftest.err >&5
22190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191   (exit $ac_status); } && {
22192          test -z "$ac_c_werror_flag" ||
22193          test ! -s conftest.err
22194        } && test -s conftest.$ac_objext; then
22195   ac_hi=-1 ac_mid=-1
22196   while :; do
22197     cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h.  */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h.  */
22203 $ac_includes_default
22204    typedef void * ac__type_sizeof_;
22205 int
22206 main ()
22207 {
22208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22209 test_array [0] = 0
22210
22211   ;
22212   return 0;
22213 }
22214 _ACEOF
22215 rm -f conftest.$ac_objext
22216 if { (ac_try="$ac_compile"
22217 case "(($ac_try" in
22218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219   *) ac_try_echo=$ac_try;;
22220 esac
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222   (eval "$ac_compile") 2>conftest.er1
22223   ac_status=$?
22224   grep -v '^ *+' conftest.er1 >conftest.err
22225   rm -f conftest.er1
22226   cat conftest.err >&5
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   (exit $ac_status); } && {
22229          test -z "$ac_c_werror_flag" ||
22230          test ! -s conftest.err
22231        } && test -s conftest.$ac_objext; then
22232   ac_lo=$ac_mid; break
22233 else
22234   echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22236
22237         ac_hi=`expr '(' $ac_mid ')' - 1`
22238                         if test $ac_mid -le $ac_hi; then
22239                           ac_lo= ac_hi=
22240                           break
22241                         fi
22242                         ac_mid=`expr 2 '*' $ac_mid`
22243 fi
22244
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246   done
22247 else
22248   echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251         ac_lo= ac_hi=
22252 fi
22253
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255 fi
22256
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22258 # Binary search between lo and hi bounds.
22259 while test "x$ac_lo" != "x$ac_hi"; do
22260   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22261   cat >conftest.$ac_ext <<_ACEOF
22262 /* confdefs.h.  */
22263 _ACEOF
22264 cat confdefs.h >>conftest.$ac_ext
22265 cat >>conftest.$ac_ext <<_ACEOF
22266 /* end confdefs.h.  */
22267 $ac_includes_default
22268    typedef void * ac__type_sizeof_;
22269 int
22270 main ()
22271 {
22272 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22273 test_array [0] = 0
22274
22275   ;
22276   return 0;
22277 }
22278 _ACEOF
22279 rm -f conftest.$ac_objext
22280 if { (ac_try="$ac_compile"
22281 case "(($ac_try" in
22282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283   *) ac_try_echo=$ac_try;;
22284 esac
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286   (eval "$ac_compile") 2>conftest.er1
22287   ac_status=$?
22288   grep -v '^ *+' conftest.er1 >conftest.err
22289   rm -f conftest.er1
22290   cat conftest.err >&5
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); } && {
22293          test -z "$ac_c_werror_flag" ||
22294          test ! -s conftest.err
22295        } && test -s conftest.$ac_objext; then
22296   ac_hi=$ac_mid
22297 else
22298   echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22300
22301         ac_lo=`expr '(' $ac_mid ')' + 1`
22302 fi
22303
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 done
22306 case $ac_lo in
22307 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22308 '') if test "$ac_cv_type_void_p" = yes; then
22309      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22310 See \`config.log' for more details." >&5
22311 echo "$as_me: error: cannot compute sizeof (void *)
22312 See \`config.log' for more details." >&2;}
22313    { (exit 77); exit 77; }; }
22314    else
22315      ac_cv_sizeof_void_p=0
22316    fi ;;
22317 esac
22318 else
22319   cat >conftest.$ac_ext <<_ACEOF
22320 /* confdefs.h.  */
22321 _ACEOF
22322 cat confdefs.h >>conftest.$ac_ext
22323 cat >>conftest.$ac_ext <<_ACEOF
22324 /* end confdefs.h.  */
22325 $ac_includes_default
22326    typedef void * ac__type_sizeof_;
22327 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22328 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22329 #include <stdio.h>
22330 #include <stdlib.h>
22331 int
22332 main ()
22333 {
22334
22335   FILE *f = fopen ("conftest.val", "w");
22336   if (! f)
22337     return 1;
22338   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22339     {
22340       long int i = longval ();
22341       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22342         return 1;
22343       fprintf (f, "%ld\n", i);
22344     }
22345   else
22346     {
22347       unsigned long int i = ulongval ();
22348       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22349         return 1;
22350       fprintf (f, "%lu\n", i);
22351     }
22352   return ferror (f) || fclose (f) != 0;
22353
22354   ;
22355   return 0;
22356 }
22357 _ACEOF
22358 rm -f conftest$ac_exeext
22359 if { (ac_try="$ac_link"
22360 case "(($ac_try" in
22361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22362   *) ac_try_echo=$ac_try;;
22363 esac
22364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22365   (eval "$ac_link") 2>&5
22366   ac_status=$?
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22369   { (case "(($ac_try" in
22370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371   *) ac_try_echo=$ac_try;;
22372 esac
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374   (eval "$ac_try") 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; }; then
22378   ac_cv_sizeof_void_p=`cat conftest.val`
22379 else
22380   echo "$as_me: program exited with status $ac_status" >&5
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22383
22384 ( exit $ac_status )
22385 if test "$ac_cv_type_void_p" = yes; then
22386      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22387 See \`config.log' for more details." >&5
22388 echo "$as_me: error: cannot compute sizeof (void *)
22389 See \`config.log' for more details." >&2;}
22390    { (exit 77); exit 77; }; }
22391    else
22392      ac_cv_sizeof_void_p=0
22393    fi
22394 fi
22395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22396 fi
22397 rm -f conftest.val
22398 fi
22399 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22400 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22401
22402
22403
22404 cat >>confdefs.h <<_ACEOF
22405 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22406 _ACEOF
22407
22408
22409
22410 # These are the types I need.  We look for them in either stdint.h,
22411 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
22412 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22413 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22414 if test "${ac_cv_type_uint16_t+set}" = set; then
22415   echo $ECHO_N "(cached) $ECHO_C" >&6
22416 else
22417   cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h.  */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h.  */
22423 $ac_includes_default
22424 typedef uint16_t ac__type_new_;
22425 int
22426 main ()
22427 {
22428 if ((ac__type_new_ *) 0)
22429   return 0;
22430 if (sizeof (ac__type_new_))
22431   return 0;
22432   ;
22433   return 0;
22434 }
22435 _ACEOF
22436 rm -f conftest.$ac_objext
22437 if { (ac_try="$ac_compile"
22438 case "(($ac_try" in
22439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22440   *) ac_try_echo=$ac_try;;
22441 esac
22442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22443   (eval "$ac_compile") 2>conftest.er1
22444   ac_status=$?
22445   grep -v '^ *+' conftest.er1 >conftest.err
22446   rm -f conftest.er1
22447   cat conftest.err >&5
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); } && {
22450          test -z "$ac_c_werror_flag" ||
22451          test ! -s conftest.err
22452        } && test -s conftest.$ac_objext; then
22453   ac_cv_type_uint16_t=yes
22454 else
22455   echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22457
22458         ac_cv_type_uint16_t=no
22459 fi
22460
22461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22462 fi
22463 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22464 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22465 if test $ac_cv_type_uint16_t = yes; then
22466   ac_cv_have_uint16_t=1
22467 else
22468   ac_cv_have_uint16_t=0
22469 fi
22470
22471 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
22472 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
22473 if test "${ac_cv_type_u_int16_t+set}" = set; then
22474   echo $ECHO_N "(cached) $ECHO_C" >&6
22475 else
22476   cat >conftest.$ac_ext <<_ACEOF
22477 /* confdefs.h.  */
22478 _ACEOF
22479 cat confdefs.h >>conftest.$ac_ext
22480 cat >>conftest.$ac_ext <<_ACEOF
22481 /* end confdefs.h.  */
22482 $ac_includes_default
22483 typedef u_int16_t ac__type_new_;
22484 int
22485 main ()
22486 {
22487 if ((ac__type_new_ *) 0)
22488   return 0;
22489 if (sizeof (ac__type_new_))
22490   return 0;
22491   ;
22492   return 0;
22493 }
22494 _ACEOF
22495 rm -f conftest.$ac_objext
22496 if { (ac_try="$ac_compile"
22497 case "(($ac_try" in
22498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499   *) ac_try_echo=$ac_try;;
22500 esac
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502   (eval "$ac_compile") 2>conftest.er1
22503   ac_status=$?
22504   grep -v '^ *+' conftest.er1 >conftest.err
22505   rm -f conftest.er1
22506   cat conftest.err >&5
22507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508   (exit $ac_status); } && {
22509          test -z "$ac_c_werror_flag" ||
22510          test ! -s conftest.err
22511        } && test -s conftest.$ac_objext; then
22512   ac_cv_type_u_int16_t=yes
22513 else
22514   echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22516
22517         ac_cv_type_u_int16_t=no
22518 fi
22519
22520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22521 fi
22522 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
22523 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
22524 if test $ac_cv_type_u_int16_t = yes; then
22525   ac_cv_have_u_int16_t=1
22526 else
22527   ac_cv_have_u_int16_t=0
22528 fi
22529
22530 { echo "$as_me:$LINENO: checking for __uint16" >&5
22531 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
22532 if test "${ac_cv_type___uint16+set}" = set; then
22533   echo $ECHO_N "(cached) $ECHO_C" >&6
22534 else
22535   cat >conftest.$ac_ext <<_ACEOF
22536 /* confdefs.h.  */
22537 _ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h.  */
22541 $ac_includes_default
22542 typedef __uint16 ac__type_new_;
22543 int
22544 main ()
22545 {
22546 if ((ac__type_new_ *) 0)
22547   return 0;
22548 if (sizeof (ac__type_new_))
22549   return 0;
22550   ;
22551   return 0;
22552 }
22553 _ACEOF
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558   *) ac_try_echo=$ac_try;;
22559 esac
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561   (eval "$ac_compile") 2>conftest.er1
22562   ac_status=$?
22563   grep -v '^ *+' conftest.er1 >conftest.err
22564   rm -f conftest.er1
22565   cat conftest.err >&5
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } && {
22568          test -z "$ac_c_werror_flag" ||
22569          test ! -s conftest.err
22570        } && test -s conftest.$ac_objext; then
22571   ac_cv_type___uint16=yes
22572 else
22573   echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22575
22576         ac_cv_type___uint16=no
22577 fi
22578
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580 fi
22581 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
22582 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
22583 if test $ac_cv_type___uint16 = yes; then
22584   ac_cv_have___uint16=1
22585 else
22586   ac_cv_have___uint16=0
22587 fi
22588
22589
22590 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
22591 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
22592 if test "${ac_cv_func_sigaltstack+set}" = set; then
22593   echo $ECHO_N "(cached) $ECHO_C" >&6
22594 else
22595   cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h.  */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h.  */
22601 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
22602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22603 #define sigaltstack innocuous_sigaltstack
22604
22605 /* System header to define __stub macros and hopefully few prototypes,
22606     which can conflict with char sigaltstack (); below.
22607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22608     <limits.h> exists even on freestanding compilers.  */
22609
22610 #ifdef __STDC__
22611 # include <limits.h>
22612 #else
22613 # include <assert.h>
22614 #endif
22615
22616 #undef sigaltstack
22617
22618 /* Override any GCC internal prototype to avoid an error.
22619    Use char because int might match the return type of a GCC
22620    builtin and then its argument prototype would still apply.  */
22621 #ifdef __cplusplus
22622 extern "C"
22623 #endif
22624 char sigaltstack ();
22625 /* The GNU C library defines this for functions which it implements
22626     to always fail with ENOSYS.  Some functions are actually named
22627     something starting with __ and the normal name is an alias.  */
22628 #if defined __stub_sigaltstack || defined __stub___sigaltstack
22629 choke me
22630 #endif
22631
22632 int
22633 main ()
22634 {
22635 return sigaltstack ();
22636   ;
22637   return 0;
22638 }
22639 _ACEOF
22640 rm -f conftest.$ac_objext conftest$ac_exeext
22641 if { (ac_try="$ac_link"
22642 case "(($ac_try" in
22643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644   *) ac_try_echo=$ac_try;;
22645 esac
22646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22647   (eval "$ac_link") 2>conftest.er1
22648   ac_status=$?
22649   grep -v '^ *+' conftest.er1 >conftest.err
22650   rm -f conftest.er1
22651   cat conftest.err >&5
22652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); } && {
22654          test -z "$ac_c_werror_flag" ||
22655          test ! -s conftest.err
22656        } && test -s conftest$ac_exeext &&
22657        $as_test_x conftest$ac_exeext; then
22658   ac_cv_func_sigaltstack=yes
22659 else
22660   echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22662
22663         ac_cv_func_sigaltstack=no
22664 fi
22665
22666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22667       conftest$ac_exeext conftest.$ac_ext
22668 fi
22669 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
22670 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
22671 if test $ac_cv_func_sigaltstack = yes; then
22672
22673 cat >>confdefs.h <<\_ACEOF
22674 #define HAVE_SIGALTSTACK 1
22675 _ACEOF
22676
22677 fi
22678
22679 { echo "$as_me:$LINENO: checking for dladdr" >&5
22680 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
22681 if test "${ac_cv_func_dladdr+set}" = set; then
22682   echo $ECHO_N "(cached) $ECHO_C" >&6
22683 else
22684   cat >conftest.$ac_ext <<_ACEOF
22685 /* confdefs.h.  */
22686 _ACEOF
22687 cat confdefs.h >>conftest.$ac_ext
22688 cat >>conftest.$ac_ext <<_ACEOF
22689 /* end confdefs.h.  */
22690 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
22691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22692 #define dladdr innocuous_dladdr
22693
22694 /* System header to define __stub macros and hopefully few prototypes,
22695     which can conflict with char dladdr (); below.
22696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22697     <limits.h> exists even on freestanding compilers.  */
22698
22699 #ifdef __STDC__
22700 # include <limits.h>
22701 #else
22702 # include <assert.h>
22703 #endif
22704
22705 #undef dladdr
22706
22707 /* Override any GCC internal prototype to avoid an error.
22708    Use char because int might match the return type of a GCC
22709    builtin and then its argument prototype would still apply.  */
22710 #ifdef __cplusplus
22711 extern "C"
22712 #endif
22713 char dladdr ();
22714 /* The GNU C library defines this for functions which it implements
22715     to always fail with ENOSYS.  Some functions are actually named
22716     something starting with __ and the normal name is an alias.  */
22717 #if defined __stub_dladdr || defined __stub___dladdr
22718 choke me
22719 #endif
22720
22721 int
22722 main ()
22723 {
22724 return dladdr ();
22725   ;
22726   return 0;
22727 }
22728 _ACEOF
22729 rm -f conftest.$ac_objext conftest$ac_exeext
22730 if { (ac_try="$ac_link"
22731 case "(($ac_try" in
22732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22733   *) ac_try_echo=$ac_try;;
22734 esac
22735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22736   (eval "$ac_link") 2>conftest.er1
22737   ac_status=$?
22738   grep -v '^ *+' conftest.er1 >conftest.err
22739   rm -f conftest.er1
22740   cat conftest.err >&5
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); } && {
22743          test -z "$ac_c_werror_flag" ||
22744          test ! -s conftest.err
22745        } && test -s conftest$ac_exeext &&
22746        $as_test_x conftest$ac_exeext; then
22747   ac_cv_func_dladdr=yes
22748 else
22749   echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752         ac_cv_func_dladdr=no
22753 fi
22754
22755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22756       conftest$ac_exeext conftest.$ac_ext
22757 fi
22758 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
22759 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
22760 if test $ac_cv_func_dladdr = yes; then
22761
22762 cat >>confdefs.h <<\_ACEOF
22763 #define HAVE_DLADDR 1
22764 _ACEOF
22765
22766 fi
22767
22768 { echo "$as_me:$LINENO: checking for fcntl" >&5
22769 echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
22770 if test "${ac_cv_func_fcntl+set}" = set; then
22771   echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773   cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h.  */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h.  */
22779 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
22780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22781 #define fcntl innocuous_fcntl
22782
22783 /* System header to define __stub macros and hopefully few prototypes,
22784     which can conflict with char fcntl (); below.
22785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22786     <limits.h> exists even on freestanding compilers.  */
22787
22788 #ifdef __STDC__
22789 # include <limits.h>
22790 #else
22791 # include <assert.h>
22792 #endif
22793
22794 #undef fcntl
22795
22796 /* Override any GCC internal prototype to avoid an error.
22797    Use char because int might match the return type of a GCC
22798    builtin and then its argument prototype would still apply.  */
22799 #ifdef __cplusplus
22800 extern "C"
22801 #endif
22802 char fcntl ();
22803 /* The GNU C library defines this for functions which it implements
22804     to always fail with ENOSYS.  Some functions are actually named
22805     something starting with __ and the normal name is an alias.  */
22806 #if defined __stub_fcntl || defined __stub___fcntl
22807 choke me
22808 #endif
22809
22810 int
22811 main ()
22812 {
22813 return fcntl ();
22814   ;
22815   return 0;
22816 }
22817 _ACEOF
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (ac_try="$ac_link"
22820 case "(($ac_try" in
22821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822   *) ac_try_echo=$ac_try;;
22823 esac
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825   (eval "$ac_link") 2>conftest.er1
22826   ac_status=$?
22827   grep -v '^ *+' conftest.er1 >conftest.err
22828   rm -f conftest.er1
22829   cat conftest.err >&5
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); } && {
22832          test -z "$ac_c_werror_flag" ||
22833          test ! -s conftest.err
22834        } && test -s conftest$ac_exeext &&
22835        $as_test_x conftest$ac_exeext; then
22836   ac_cv_func_fcntl=yes
22837 else
22838   echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22840
22841         ac_cv_func_fcntl=no
22842 fi
22843
22844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22845       conftest$ac_exeext conftest.$ac_ext
22846 fi
22847 { echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5
22848 echo "${ECHO_T}$ac_cv_func_fcntl" >&6; }
22849 if test $ac_cv_func_fcntl = yes; then
22850
22851 cat >>confdefs.h <<\_ACEOF
22852 #define HAVE_FCNTL 1
22853 _ACEOF
22854
22855 fi
22856
22857
22858
22859   { echo "$as_me:$LINENO: checking for __attribute__" >&5
22860 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
22861   if test "${ac_cv___attribute__+set}" = set; then
22862   echo $ECHO_N "(cached) $ECHO_C" >&6
22863 else
22864
22865     cat >conftest.$ac_ext <<_ACEOF
22866 /* confdefs.h.  */
22867 _ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h.  */
22871 #include <stdlib.h>
22872        static void foo(void) __attribute__ ((unused));
22873        void foo(void) { exit(1); }
22874 int
22875 main ()
22876 {
22877
22878   ;
22879   return 0;
22880 }
22881 _ACEOF
22882 rm -f conftest.$ac_objext
22883 if { (ac_try="$ac_compile"
22884 case "(($ac_try" in
22885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886   *) ac_try_echo=$ac_try;;
22887 esac
22888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889   (eval "$ac_compile") 2>conftest.er1
22890   ac_status=$?
22891   grep -v '^ *+' conftest.er1 >conftest.err
22892   rm -f conftest.er1
22893   cat conftest.err >&5
22894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895   (exit $ac_status); } && {
22896          test -z "$ac_c_werror_flag" ||
22897          test ! -s conftest.err
22898        } && test -s conftest.$ac_objext; then
22899   ac_cv___attribute__=yes
22900 else
22901   echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22903
22904         ac_cv___attribute__=no
22905
22906 fi
22907
22908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22909 fi
22910
22911   if test "$ac_cv___attribute__" = "yes"; then
22912
22913 cat >>confdefs.h <<\_ACEOF
22914 #define HAVE___ATTRIBUTE__ 1
22915 _ACEOF
22916
22917   fi
22918   { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
22919 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
22920
22921 # We only care about these two attributes.
22922 if test x"$ac_cv___attribute__" = x"yes"; then
22923   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
22924   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
22925 else
22926   ac_cv___attribute___noreturn=
22927   ac_cv___attribute___printf_4_5=
22928 fi
22929
22930
22931   { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
22932 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
22933   if test "${ac_cv___builtin_expect+set}" = set; then
22934   echo $ECHO_N "(cached) $ECHO_C" >&6
22935 else
22936
22937     cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h.  */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h.  */
22943 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
22944 int
22945 main ()
22946 {
22947
22948   ;
22949   return 0;
22950 }
22951 _ACEOF
22952 rm -f conftest.$ac_objext
22953 if { (ac_try="$ac_compile"
22954 case "(($ac_try" in
22955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956   *) ac_try_echo=$ac_try;;
22957 esac
22958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22959   (eval "$ac_compile") 2>conftest.er1
22960   ac_status=$?
22961   grep -v '^ *+' conftest.er1 >conftest.err
22962   rm -f conftest.er1
22963   cat conftest.err >&5
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); } && {
22966          test -z "$ac_c_werror_flag" ||
22967          test ! -s conftest.err
22968        } && test -s conftest.$ac_objext; then
22969   ac_cv___builtin_expect=yes
22970 else
22971   echo "$as_me: failed program was:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22973
22974         ac_cv___builtin_expect=no
22975
22976 fi
22977
22978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979 fi
22980
22981   if test "$ac_cv___builtin_expect" = "yes"; then
22982
22983 cat >>confdefs.h <<\_ACEOF
22984 #define HAVE___BUILTIN_EXPECT 1
22985 _ACEOF
22986
22987   fi
22988   { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22989 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
22990
22991 if test x"$ac_cv___builtin_expect" = x"yes"; then
22992   ac_cv_have___builtin_expect=1
22993 else
22994   ac_cv_have___builtin_expect=0
22995 fi
22996
22997
22998   { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
22999 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
23000   if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
23001   echo $ECHO_N "(cached) $ECHO_C" >&6
23002 else
23003
23004     cat >conftest.$ac_ext <<_ACEOF
23005 /* confdefs.h.  */
23006 _ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h.  */
23010 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
23011 int
23012 main ()
23013 {
23014
23015   ;
23016   return 0;
23017 }
23018 _ACEOF
23019 rm -f conftest.$ac_objext conftest$ac_exeext
23020 if { (ac_try="$ac_link"
23021 case "(($ac_try" in
23022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23023   *) ac_try_echo=$ac_try;;
23024 esac
23025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23026   (eval "$ac_link") 2>conftest.er1
23027   ac_status=$?
23028   grep -v '^ *+' conftest.er1 >conftest.err
23029   rm -f conftest.er1
23030   cat conftest.err >&5
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); } && {
23033          test -z "$ac_c_werror_flag" ||
23034          test ! -s conftest.err
23035        } && test -s conftest$ac_exeext &&
23036        $as_test_x conftest$ac_exeext; then
23037   ac_cv___sync_val_compare_and_swap=yes
23038 else
23039   echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23041
23042         ac_cv___sync_val_compare_and_swap=no
23043
23044 fi
23045
23046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23047       conftest$ac_exeext conftest.$ac_ext
23048 fi
23049
23050   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
23051
23052 cat >>confdefs.h <<\_ACEOF
23053 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
23054 _ACEOF
23055
23056   fi
23057   { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
23058 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
23059
23060
23061 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
23062 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
23063 # Check whether --enable-frame_pointers was given.
23064 if test "${enable_frame_pointers+set}" = set; then
23065   enableval=$enable_frame_pointers; enable_frame_pointers=no
23066 fi
23067
23068 cat >conftest.$ac_ext <<_ACEOF
23069 /* confdefs.h.  */
23070 _ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h.  */
23074
23075 int
23076 main ()
23077 {
23078 return __x86_64__ == 1 ? 0 : 1
23079   ;
23080   return 0;
23081 }
23082 _ACEOF
23083 rm -f conftest.$ac_objext
23084 if { (ac_try="$ac_compile"
23085 case "(($ac_try" in
23086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087   *) ac_try_echo=$ac_try;;
23088 esac
23089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23090   (eval "$ac_compile") 2>conftest.er1
23091   ac_status=$?
23092   grep -v '^ *+' conftest.er1 >conftest.err
23093   rm -f conftest.er1
23094   cat conftest.err >&5
23095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096   (exit $ac_status); } && {
23097          test -z "$ac_c_werror_flag" ||
23098          test ! -s conftest.err
23099        } && test -s conftest.$ac_objext; then
23100   is_x86_64=yes
23101 else
23102   echo "$as_me: failed program was:" >&5
23103 sed 's/^/| /' conftest.$ac_ext >&5
23104
23105         is_x86_64=no
23106 fi
23107
23108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23109  if test "$enable_frame_pointers" = yes; then
23110   ENABLE_FRAME_POINTERS_TRUE=
23111   ENABLE_FRAME_POINTERS_FALSE='#'
23112 else
23113   ENABLE_FRAME_POINTERS_TRUE='#'
23114   ENABLE_FRAME_POINTERS_FALSE=
23115 fi
23116
23117  if test "$is_x86_64" = yes; then
23118   X86_64_TRUE=
23119   X86_64_FALSE='#'
23120 else
23121   X86_64_TRUE='#'
23122   X86_64_FALSE=
23123 fi
23124
23125
23126 # Some of the code in this directory depends on pthreads
23127
23128
23129
23130 ac_ext=c
23131 ac_cpp='$CPP $CPPFLAGS'
23132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23135
23136 acx_pthread_ok=no
23137
23138 # We used to check for pthread.h first, but this fails if pthread.h
23139 # requires special compiler flags (e.g. on True64 or Sequent).
23140 # It gets checked for in the link test anyway.
23141
23142 # First of all, check if the user has set any of the PTHREAD_LIBS,
23143 # etcetera environment variables, and if threads linking works using
23144 # them:
23145 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23146         save_CFLAGS="$CFLAGS"
23147         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23148         save_LIBS="$LIBS"
23149         LIBS="$PTHREAD_LIBS $LIBS"
23150         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23151 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
23152         cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158
23159 /* Override any GCC internal prototype to avoid an error.
23160    Use char because int might match the return type of a GCC
23161    builtin and then its argument prototype would still apply.  */
23162 #ifdef __cplusplus
23163 extern "C"
23164 #endif
23165 char pthread_join ();
23166 int
23167 main ()
23168 {
23169 return pthread_join ();
23170   ;
23171   return 0;
23172 }
23173 _ACEOF
23174 rm -f conftest.$ac_objext conftest$ac_exeext
23175 if { (ac_try="$ac_link"
23176 case "(($ac_try" in
23177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178   *) ac_try_echo=$ac_try;;
23179 esac
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181   (eval "$ac_link") 2>conftest.er1
23182   ac_status=$?
23183   grep -v '^ *+' conftest.er1 >conftest.err
23184   rm -f conftest.er1
23185   cat conftest.err >&5
23186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187   (exit $ac_status); } && {
23188          test -z "$ac_c_werror_flag" ||
23189          test ! -s conftest.err
23190        } && test -s conftest$ac_exeext &&
23191        $as_test_x conftest$ac_exeext; then
23192   acx_pthread_ok=yes
23193 else
23194   echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23196
23197
23198 fi
23199
23200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23201       conftest$ac_exeext conftest.$ac_ext
23202         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23203 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23204         if test x"$acx_pthread_ok" = xno; then
23205                 PTHREAD_LIBS=""
23206                 PTHREAD_CFLAGS=""
23207         fi
23208         LIBS="$save_LIBS"
23209         CFLAGS="$save_CFLAGS"
23210 fi
23211
23212 # We must check for the threads library under a number of different
23213 # names; the ordering is very important because some systems
23214 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23215 # libraries is broken (non-POSIX).
23216
23217 # Create a list of thread flags to try.  Items starting with a "-" are
23218 # C compiler flags, and other items are library names, except for "none"
23219 # which indicates that we try without any flags at all, and "pthread-config"
23220 # which is a program returning the flags for the Pth emulation library.
23221
23222 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23223
23224 # The ordering *is* (sometimes) important.  Some notes on the
23225 # individual items follow:
23226
23227 # pthreads: AIX (must check this before -lpthread)
23228 # none: in case threads are in libc; should be tried before -Kthread and
23229 #       other compiler flags to prevent continual compiler warnings
23230 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23231 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23232 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23233 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23234 # -pthreads: Solaris/gcc
23235 # -mthreads: Mingw32/gcc, Lynx/gcc
23236 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23237 #      doesn't hurt to check since this sometimes defines pthreads too;
23238 #      also defines -D_REENTRANT)
23239 #      ... -mt is also the pthreads flag for HP/aCC
23240 # pthread: Linux, etcetera
23241 # --thread-safe: KAI C++
23242 # pthread-config: use pthread-config program (for GNU Pth library)
23243
23244 case "${host_cpu}-${host_os}" in
23245         *solaris*)
23246
23247         # On Solaris (at least, for some versions), libc contains stubbed
23248         # (non-functional) versions of the pthreads routines, so link-based
23249         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
23250         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
23251         # a function called by this macro, so we could check for that, but
23252         # who knows whether they'll stub that too in a future libc.)  So,
23253         # we'll just look for -pthreads and -lpthread first:
23254
23255         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
23256         ;;
23257 esac
23258
23259 if test x"$acx_pthread_ok" = xno; then
23260 for flag in $acx_pthread_flags; do
23261
23262         case $flag in
23263                 none)
23264                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23265 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
23266                 ;;
23267
23268                 -*)
23269                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23270 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
23271                 PTHREAD_CFLAGS="$flag"
23272                 ;;
23273
23274                 pthread-config)
23275                 # Extract the first word of "pthread-config", so it can be a program name with args.
23276 set dummy pthread-config; ac_word=$2
23277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23279 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23280   echo $ECHO_N "(cached) $ECHO_C" >&6
23281 else
23282   if test -n "$acx_pthread_config"; then
23283   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23284 else
23285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23286 for as_dir in $PATH
23287 do
23288   IFS=$as_save_IFS
23289   test -z "$as_dir" && as_dir=.
23290   for ac_exec_ext in '' $ac_executable_extensions; do
23291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23292     ac_cv_prog_acx_pthread_config="yes"
23293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23294     break 2
23295   fi
23296 done
23297 done
23298 IFS=$as_save_IFS
23299
23300   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23301 fi
23302 fi
23303 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23304 if test -n "$acx_pthread_config"; then
23305   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23306 echo "${ECHO_T}$acx_pthread_config" >&6; }
23307 else
23308   { echo "$as_me:$LINENO: result: no" >&5
23309 echo "${ECHO_T}no" >&6; }
23310 fi
23311
23312
23313                 if test x"$acx_pthread_config" = xno; then continue; fi
23314                 PTHREAD_CFLAGS="`pthread-config --cflags`"
23315                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23316                 ;;
23317
23318                 *)
23319                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23320 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
23321                 PTHREAD_LIBS="-l$flag"
23322                 ;;
23323         esac
23324
23325         save_LIBS="$LIBS"
23326         save_CFLAGS="$CFLAGS"
23327         LIBS="$PTHREAD_LIBS $LIBS"
23328         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23329
23330         # Check for various functions.  We must include pthread.h,
23331         # since some functions may be macros.  (On the Sequent, we
23332         # need a special flag -Kthread to make this header compile.)
23333         # We check for pthread_join because it is in -lpthread on IRIX
23334         # while pthread_create is in libc.  We check for pthread_attr_init
23335         # due to DEC craziness with -lpthreads.  We check for
23336         # pthread_cleanup_push because it is one of the few pthread
23337         # functions on Solaris that doesn't have a non-functional libc stub.
23338         # We try pthread_create on general principles.
23339         cat >conftest.$ac_ext <<_ACEOF
23340 /* confdefs.h.  */
23341 _ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h.  */
23345 #include <pthread.h>
23346 int
23347 main ()
23348 {
23349 pthread_t th; pthread_join(th, 0);
23350                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23351                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23352   ;
23353   return 0;
23354 }
23355 _ACEOF
23356 rm -f conftest.$ac_objext conftest$ac_exeext
23357 if { (ac_try="$ac_link"
23358 case "(($ac_try" in
23359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360   *) ac_try_echo=$ac_try;;
23361 esac
23362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23363   (eval "$ac_link") 2>conftest.er1
23364   ac_status=$?
23365   grep -v '^ *+' conftest.er1 >conftest.err
23366   rm -f conftest.er1
23367   cat conftest.err >&5
23368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369   (exit $ac_status); } && {
23370          test -z "$ac_c_werror_flag" ||
23371          test ! -s conftest.err
23372        } && test -s conftest$ac_exeext &&
23373        $as_test_x conftest$ac_exeext; then
23374   acx_pthread_ok=yes
23375 else
23376   echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23378
23379
23380 fi
23381
23382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23383       conftest$ac_exeext conftest.$ac_ext
23384
23385         LIBS="$save_LIBS"
23386         CFLAGS="$save_CFLAGS"
23387
23388         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23389 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23390         if test "x$acx_pthread_ok" = xyes; then
23391                 break;
23392         fi
23393
23394         PTHREAD_LIBS=""
23395         PTHREAD_CFLAGS=""
23396 done
23397 fi
23398
23399 # Various other checks:
23400 if test "x$acx_pthread_ok" = xyes; then
23401         save_LIBS="$LIBS"
23402         LIBS="$PTHREAD_LIBS $LIBS"
23403         save_CFLAGS="$CFLAGS"
23404         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23405
23406         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23407         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23408 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
23409         attr_name=unknown
23410         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23411             cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h.  */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h.  */
23417 #include <pthread.h>
23418 int
23419 main ()
23420 {
23421 int attr=$attr; return attr;
23422   ;
23423   return 0;
23424 }
23425 _ACEOF
23426 rm -f conftest.$ac_objext conftest$ac_exeext
23427 if { (ac_try="$ac_link"
23428 case "(($ac_try" in
23429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23430   *) ac_try_echo=$ac_try;;
23431 esac
23432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23433   (eval "$ac_link") 2>conftest.er1
23434   ac_status=$?
23435   grep -v '^ *+' conftest.er1 >conftest.err
23436   rm -f conftest.er1
23437   cat conftest.err >&5
23438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439   (exit $ac_status); } && {
23440          test -z "$ac_c_werror_flag" ||
23441          test ! -s conftest.err
23442        } && test -s conftest$ac_exeext &&
23443        $as_test_x conftest$ac_exeext; then
23444   attr_name=$attr; break
23445 else
23446   echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23448
23449
23450 fi
23451
23452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23453       conftest$ac_exeext conftest.$ac_ext
23454         done
23455         { echo "$as_me:$LINENO: result: $attr_name" >&5
23456 echo "${ECHO_T}$attr_name" >&6; }
23457         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
23458
23459 cat >>confdefs.h <<_ACEOF
23460 #define PTHREAD_CREATE_JOINABLE $attr_name
23461 _ACEOF
23462
23463         fi
23464
23465         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23466 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
23467         flag=no
23468         case "${host_cpu}-${host_os}" in
23469             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23470             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23471         esac
23472         { echo "$as_me:$LINENO: result: ${flag}" >&5
23473 echo "${ECHO_T}${flag}" >&6; }
23474         if test "x$flag" != xno; then
23475             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23476         fi
23477
23478         LIBS="$save_LIBS"
23479         CFLAGS="$save_CFLAGS"
23480         # More AIX lossage: must compile with xlc_r or cc_r
23481         if test x"$GCC" != xyes; then
23482           for ac_prog in xlc_r cc_r
23483 do
23484   # Extract the first word of "$ac_prog", so it can be a program name with args.
23485 set dummy $ac_prog; ac_word=$2
23486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23488 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23489   echo $ECHO_N "(cached) $ECHO_C" >&6
23490 else
23491   if test -n "$PTHREAD_CC"; then
23492   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23493 else
23494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23495 for as_dir in $PATH
23496 do
23497   IFS=$as_save_IFS
23498   test -z "$as_dir" && as_dir=.
23499   for ac_exec_ext in '' $ac_executable_extensions; do
23500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23501     ac_cv_prog_PTHREAD_CC="$ac_prog"
23502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23503     break 2
23504   fi
23505 done
23506 done
23507 IFS=$as_save_IFS
23508
23509 fi
23510 fi
23511 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23512 if test -n "$PTHREAD_CC"; then
23513   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23514 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23515 else
23516   { echo "$as_me:$LINENO: result: no" >&5
23517 echo "${ECHO_T}no" >&6; }
23518 fi
23519
23520
23521   test -n "$PTHREAD_CC" && break
23522 done
23523 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23524
23525         else
23526           PTHREAD_CC=$CC
23527         fi
23528
23529    # The next part tries to detect GCC inconsistency with -shared on some
23530    # architectures and systems. The problem is that in certain
23531    # configurations, when -shared is specified, GCC "forgets" to
23532    # internally use various flags which are still necessary.
23533
23534    { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
23535 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
23536    check_inconsistencies=yes
23537    case "${host_cpu}-${host_os}" in
23538      *-darwin*) check_inconsistencies=no ;;
23539    esac
23540    if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
23541       { echo "$as_me:$LINENO: result: no" >&5
23542 echo "${ECHO_T}no" >&6; }
23543    else
23544       { echo "$as_me:$LINENO: result: yes" >&5
23545 echo "${ECHO_T}yes" >&6; }
23546
23547       # In order not to create several levels of indentation, we test
23548       # the value of "$ok" until we find out the cure or run out of
23549       # ideas.
23550       ok="no"
23551
23552       #
23553       # Prepare the flags
23554       #
23555       save_CFLAGS="$CFLAGS"
23556       save_LIBS="$LIBS"
23557       save_CC="$CC"
23558       # Try with the flags determined by the earlier checks.
23559       #
23560       # -Wl,-z,defs forces link-time symbol resolution, so that the
23561       # linking checks with -shared actually have any value
23562       #
23563       # FIXME: -fPIC is required for -shared on many architectures,
23564       # so we specify it here, but the right way would probably be to
23565       # properly detect whether it is actually required.
23566       CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
23567       LIBS="$PTHREAD_LIBS $LIBS"
23568       CC="$PTHREAD_CC"
23569
23570       { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
23571 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
23572       cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h.  */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h.  */
23578 #include <pthread.h>
23579 int
23580 main ()
23581 {
23582 pthread_t th; pthread_join(th, 0);
23583          pthread_attr_init(0); pthread_cleanup_push(0, 0);
23584          pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 rm -f conftest.$ac_objext conftest$ac_exeext
23590 if { (ac_try="$ac_link"
23591 case "(($ac_try" in
23592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593   *) ac_try_echo=$ac_try;;
23594 esac
23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596   (eval "$ac_link") 2>conftest.er1
23597   ac_status=$?
23598   grep -v '^ *+' conftest.er1 >conftest.err
23599   rm -f conftest.er1
23600   cat conftest.err >&5
23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602   (exit $ac_status); } && {
23603          test -z "$ac_c_werror_flag" ||
23604          test ! -s conftest.err
23605        } && test -s conftest$ac_exeext &&
23606        $as_test_x conftest$ac_exeext; then
23607   ok=yes
23608 else
23609   echo "$as_me: failed program was:" >&5
23610 sed 's/^/| /' conftest.$ac_ext >&5
23611
23612
23613 fi
23614
23615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23616       conftest$ac_exeext conftest.$ac_ext
23617
23618       if test "x$ok" = xyes; then
23619          { echo "$as_me:$LINENO: result: yes" >&5
23620 echo "${ECHO_T}yes" >&6; }
23621       else
23622          { echo "$as_me:$LINENO: result: no" >&5
23623 echo "${ECHO_T}no" >&6; }
23624       fi
23625
23626       #
23627       # Linux gcc on some architectures such as mips/mipsel forgets
23628       # about -lpthread
23629       #
23630       if test x"$ok" = xno; then
23631          { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
23632 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
23633          LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
23634          cat >conftest.$ac_ext <<_ACEOF
23635 /* confdefs.h.  */
23636 _ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h.  */
23640 #include <pthread.h>
23641 int
23642 main ()
23643 {
23644 pthread_t th; pthread_join(th, 0);
23645             pthread_attr_init(0); pthread_cleanup_push(0, 0);
23646             pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23647   ;
23648   return 0;
23649 }
23650 _ACEOF
23651 rm -f conftest.$ac_objext conftest$ac_exeext
23652 if { (ac_try="$ac_link"
23653 case "(($ac_try" in
23654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655   *) ac_try_echo=$ac_try;;
23656 esac
23657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658   (eval "$ac_link") 2>conftest.er1
23659   ac_status=$?
23660   grep -v '^ *+' conftest.er1 >conftest.err
23661   rm -f conftest.er1
23662   cat conftest.err >&5
23663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664   (exit $ac_status); } && {
23665          test -z "$ac_c_werror_flag" ||
23666          test ! -s conftest.err
23667        } && test -s conftest$ac_exeext &&
23668        $as_test_x conftest$ac_exeext; then
23669   ok=yes
23670 else
23671   echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23673
23674
23675 fi
23676
23677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23678       conftest$ac_exeext conftest.$ac_ext
23679
23680          if test "x$ok" = xyes; then
23681             { echo "$as_me:$LINENO: result: yes" >&5
23682 echo "${ECHO_T}yes" >&6; }
23683             PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
23684          else
23685             { echo "$as_me:$LINENO: result: no" >&5
23686 echo "${ECHO_T}no" >&6; }
23687          fi
23688       fi
23689       #
23690       # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
23691       #
23692       if test x"$ok" = xno; then
23693          { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
23694 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
23695          LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
23696          cat >conftest.$ac_ext <<_ACEOF
23697 /* confdefs.h.  */
23698 _ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h.  */
23702 #include <pthread.h>
23703 int
23704 main ()
23705 {
23706 pthread_t th; pthread_join(th, 0);
23707               pthread_attr_init(0); pthread_cleanup_push(0, 0);
23708               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23709   ;
23710   return 0;
23711 }
23712 _ACEOF
23713 rm -f conftest.$ac_objext conftest$ac_exeext
23714 if { (ac_try="$ac_link"
23715 case "(($ac_try" in
23716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717   *) ac_try_echo=$ac_try;;
23718 esac
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720   (eval "$ac_link") 2>conftest.er1
23721   ac_status=$?
23722   grep -v '^ *+' conftest.er1 >conftest.err
23723   rm -f conftest.er1
23724   cat conftest.err >&5
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); } && {
23727          test -z "$ac_c_werror_flag" ||
23728          test ! -s conftest.err
23729        } && test -s conftest$ac_exeext &&
23730        $as_test_x conftest$ac_exeext; then
23731   ok=yes
23732 else
23733   echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23735
23736
23737 fi
23738
23739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23740       conftest$ac_exeext conftest.$ac_ext
23741
23742          if test "x$ok" = xyes; then
23743             { echo "$as_me:$LINENO: result: yes" >&5
23744 echo "${ECHO_T}yes" >&6; }
23745             PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
23746          else
23747             { echo "$as_me:$LINENO: result: no" >&5
23748 echo "${ECHO_T}no" >&6; }
23749          fi
23750       fi
23751       if test x"$ok" = xno; then
23752          # OK, we have run out of ideas
23753          { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
23754 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
23755
23756          # so it's not safe to assume that we may use pthreads
23757          acx_pthread_ok=no
23758       fi
23759
23760       CFLAGS="$save_CFLAGS"
23761       LIBS="$save_LIBS"
23762       CC="$save_CC"
23763    fi
23764 else
23765         PTHREAD_CC="$CC"
23766 fi
23767
23768
23769
23770
23771
23772 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23773 if test x"$acx_pthread_ok" = xyes; then
23774
23775 cat >>confdefs.h <<\_ACEOF
23776 #define HAVE_PTHREAD 1
23777 _ACEOF
23778
23779         :
23780 else
23781         acx_pthread_ok=no
23782
23783 fi
23784 ac_ext=c
23785 ac_cpp='$CPP $CPPFLAGS'
23786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23789
23790
23791 if test x"$acx_pthread_ok" = x"yes"; then
23792   # To make libglog depend on libpthread on Linux, we need to add
23793   # -lpthread in addition to -pthread.
23794
23795 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
23796 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
23797 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
23798   echo $ECHO_N "(cached) $ECHO_C" >&6
23799 else
23800   ac_check_lib_save_LIBS=$LIBS
23801 LIBS="-lpthread  $LIBS"
23802 cat >conftest.$ac_ext <<_ACEOF
23803 /* confdefs.h.  */
23804 _ACEOF
23805 cat confdefs.h >>conftest.$ac_ext
23806 cat >>conftest.$ac_ext <<_ACEOF
23807 /* end confdefs.h.  */
23808
23809 /* Override any GCC internal prototype to avoid an error.
23810    Use char because int might match the return type of a GCC
23811    builtin and then its argument prototype would still apply.  */
23812 #ifdef __cplusplus
23813 extern "C"
23814 #endif
23815 char pthread_self ();
23816 int
23817 main ()
23818 {
23819 return pthread_self ();
23820   ;
23821   return 0;
23822 }
23823 _ACEOF
23824 rm -f conftest.$ac_objext conftest$ac_exeext
23825 if { (ac_try="$ac_link"
23826 case "(($ac_try" in
23827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828   *) ac_try_echo=$ac_try;;
23829 esac
23830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23831   (eval "$ac_link") 2>conftest.er1
23832   ac_status=$?
23833   grep -v '^ *+' conftest.er1 >conftest.err
23834   rm -f conftest.er1
23835   cat conftest.err >&5
23836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837   (exit $ac_status); } && {
23838          test -z "$ac_c_werror_flag" ||
23839          test ! -s conftest.err
23840        } && test -s conftest$ac_exeext &&
23841        $as_test_x conftest$ac_exeext; then
23842   ac_cv_lib_pthread_pthread_self=yes
23843 else
23844   echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23846
23847         ac_cv_lib_pthread_pthread_self=no
23848 fi
23849
23850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23851       conftest$ac_exeext conftest.$ac_ext
23852 LIBS=$ac_check_lib_save_LIBS
23853 fi
23854 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
23855 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
23856 if test $ac_cv_lib_pthread_pthread_self = yes; then
23857   cat >>confdefs.h <<_ACEOF
23858 #define HAVE_LIBPTHREAD 1
23859 _ACEOF
23860
23861   LIBS="-lpthread $LIBS"
23862
23863 fi
23864
23865 fi
23866
23867 # Check if there is google-gflags library installed.
23868 SAVE_CFLAGS="$CFLAGS"
23869 SAVE_LIBS="$LIBS"
23870
23871 # Check whether --with-gflags was given.
23872 if test "${with_gflags+set}" = set; then
23873   withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
23874   GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
23875   CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
23876   LIBS="$LIBS $GFLAGS_LIBS"
23877
23878 fi
23879
23880 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
23881 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
23882 if test "${ac_cv_lib_gflags_main+set}" = set; then
23883   echo $ECHO_N "(cached) $ECHO_C" >&6
23884 else
23885   ac_check_lib_save_LIBS=$LIBS
23886 LIBS="-lgflags  $LIBS"
23887 cat >conftest.$ac_ext <<_ACEOF
23888 /* confdefs.h.  */
23889 _ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h.  */
23893
23894
23895 int
23896 main ()
23897 {
23898 return main ();
23899   ;
23900   return 0;
23901 }
23902 _ACEOF
23903 rm -f conftest.$ac_objext conftest$ac_exeext
23904 if { (ac_try="$ac_link"
23905 case "(($ac_try" in
23906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23907   *) ac_try_echo=$ac_try;;
23908 esac
23909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23910   (eval "$ac_link") 2>conftest.er1
23911   ac_status=$?
23912   grep -v '^ *+' conftest.er1 >conftest.err
23913   rm -f conftest.er1
23914   cat conftest.err >&5
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); } && {
23917          test -z "$ac_c_werror_flag" ||
23918          test ! -s conftest.err
23919        } && test -s conftest$ac_exeext &&
23920        $as_test_x conftest$ac_exeext; then
23921   ac_cv_lib_gflags_main=yes
23922 else
23923   echo "$as_me: failed program was:" >&5
23924 sed 's/^/| /' conftest.$ac_ext >&5
23925
23926         ac_cv_lib_gflags_main=no
23927 fi
23928
23929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23930       conftest$ac_exeext conftest.$ac_ext
23931 LIBS=$ac_check_lib_save_LIBS
23932 fi
23933 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
23934 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
23935 if test $ac_cv_lib_gflags_main = yes; then
23936   ac_cv_have_libgflags=1
23937 else
23938   ac_cv_have_libgflags=0
23939 fi
23940
23941 if test x"$ac_cv_have_libgflags" = x"1"; then
23942
23943 cat >>confdefs.h <<\_ACEOF
23944 #define HAVE_LIB_GFLAGS 1
23945 _ACEOF
23946
23947 else
23948   GFLAGS_CFLAGS=
23949   GFLAGS_LIBS=
23950 fi
23951 CFLAGS="$SAVE_CFLAGS"
23952 LIBS="$SAVE_LIBS"
23953
23954 # TODO(hamaji): Use official m4 macros provided by testing libraries
23955 #               once the m4 macro of Google Mocking becomes ready.
23956 # Check if there is Google Test library installed.
23957 # Extract the first word of "gtest-config", so it can be a program name with args.
23958 set dummy gtest-config; ac_word=$2
23959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23961 if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then
23962   echo $ECHO_N "(cached) $ECHO_C" >&6
23963 else
23964   if test -n "$GTEST_CONFIG"; then
23965   ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
23966 else
23967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23968 for as_dir in $PATH
23969 do
23970   IFS=$as_save_IFS
23971   test -z "$as_dir" && as_dir=.
23972   for ac_exec_ext in '' $ac_executable_extensions; do
23973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23974     ac_cv_prog_GTEST_CONFIG=""yes""
23975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23976     break 2
23977   fi
23978 done
23979 done
23980 IFS=$as_save_IFS
23981
23982 fi
23983 fi
23984 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
23985 if test -n "$GTEST_CONFIG"; then
23986   { echo "$as_me:$LINENO: result: $GTEST_CONFIG" >&5
23987 echo "${ECHO_T}$GTEST_CONFIG" >&6; }
23988 else
23989   { echo "$as_me:$LINENO: result: no" >&5
23990 echo "${ECHO_T}no" >&6; }
23991 fi
23992
23993
23994 if test x"$GTEST_CONFIG" = "xyes"; then
23995   GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
23996   GTEST_LIBS=`gtest-config --ldflags --libs`
23997
23998 cat >>confdefs.h <<\_ACEOF
23999 #define HAVE_LIB_GTEST 1
24000 _ACEOF
24001
24002
24003   # Check if there is Google Mocking library installed.
24004   # Extract the first word of "gmock-config", so it can be a program name with args.
24005 set dummy gmock-config; ac_word=$2
24006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24008 if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then
24009   echo $ECHO_N "(cached) $ECHO_C" >&6
24010 else
24011   if test -n "$GMOCK_CONFIG"; then
24012   ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
24013 else
24014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24015 for as_dir in $PATH
24016 do
24017   IFS=$as_save_IFS
24018   test -z "$as_dir" && as_dir=.
24019   for ac_exec_ext in '' $ac_executable_extensions; do
24020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24021     ac_cv_prog_GMOCK_CONFIG=""yes""
24022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24023     break 2
24024   fi
24025 done
24026 done
24027 IFS=$as_save_IFS
24028
24029 fi
24030 fi
24031 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
24032 if test -n "$GMOCK_CONFIG"; then
24033   { echo "$as_me:$LINENO: result: $GMOCK_CONFIG" >&5
24034 echo "${ECHO_T}$GMOCK_CONFIG" >&6; }
24035 else
24036   { echo "$as_me:$LINENO: result: no" >&5
24037 echo "${ECHO_T}no" >&6; }
24038 fi
24039
24040
24041   if test x"$GMOCK_CONFIG" = "xyes"; then
24042     GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
24043     GMOCK_LIBS=`gmock-config --ldflags --libs`
24044
24045 cat >>confdefs.h <<\_ACEOF
24046 #define HAVE_LIB_GMOCK 1
24047 _ACEOF
24048
24049   else
24050     # We don't run test cases which use Google Mocking framework.
24051     GMOCK_CFLAGS=
24052     GMOCK_LIBS=
24053   fi
24054 else
24055   # We'll use src/googletest.h for our unittests.
24056   GTEST_CFLAGS=
24057   GTEST_LIBS=
24058 fi
24059  if test x"$GMOCK_CONFIG" = "xyes"; then
24060   HAVE_GMOCK_TRUE=
24061   HAVE_GMOCK_FALSE='#'
24062 else
24063   HAVE_GMOCK_TRUE='#'
24064   HAVE_GMOCK_FALSE=
24065 fi
24066
24067
24068 # We want to link in libunwind if it exists
24069 UNWIND_LIBS=
24070 # Unfortunately, we need to check the header file in addition to the
24071 # lib file to check if libunwind is available since libunwind-0.98
24072 # doesn't install all necessary header files.
24073 if test x"$ac_cv_have_libunwind_h" = x"1"; then
24074  { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
24075 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
24076 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
24077   echo $ECHO_N "(cached) $ECHO_C" >&6
24078 else
24079   ac_check_lib_save_LIBS=$LIBS
24080 LIBS="-lunwind  $LIBS"
24081 cat >conftest.$ac_ext <<_ACEOF
24082 /* confdefs.h.  */
24083 _ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h.  */
24087
24088 /* Override any GCC internal prototype to avoid an error.
24089    Use char because int might match the return type of a GCC
24090    builtin and then its argument prototype would still apply.  */
24091 #ifdef __cplusplus
24092 extern "C"
24093 #endif
24094 char backtrace ();
24095 int
24096 main ()
24097 {
24098 return backtrace ();
24099   ;
24100   return 0;
24101 }
24102 _ACEOF
24103 rm -f conftest.$ac_objext conftest$ac_exeext
24104 if { (ac_try="$ac_link"
24105 case "(($ac_try" in
24106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24107   *) ac_try_echo=$ac_try;;
24108 esac
24109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24110   (eval "$ac_link") 2>conftest.er1
24111   ac_status=$?
24112   grep -v '^ *+' conftest.er1 >conftest.err
24113   rm -f conftest.er1
24114   cat conftest.err >&5
24115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116   (exit $ac_status); } && {
24117          test -z "$ac_c_werror_flag" ||
24118          test ! -s conftest.err
24119        } && test -s conftest$ac_exeext &&
24120        $as_test_x conftest$ac_exeext; then
24121   ac_cv_lib_unwind_backtrace=yes
24122 else
24123   echo "$as_me: failed program was:" >&5
24124 sed 's/^/| /' conftest.$ac_ext >&5
24125
24126         ac_cv_lib_unwind_backtrace=no
24127 fi
24128
24129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24130       conftest$ac_exeext conftest.$ac_ext
24131 LIBS=$ac_check_lib_save_LIBS
24132 fi
24133 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
24134 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
24135 if test $ac_cv_lib_unwind_backtrace = yes; then
24136   UNWIND_LIBS=-lunwind
24137 fi
24138
24139 fi
24140
24141 if test x"$UNWIND_LIBS" != x""; then
24142
24143 cat >>confdefs.h <<\_ACEOF
24144 #define HAVE_LIB_UNWIND 1
24145 _ACEOF
24146
24147 fi
24148
24149 # We'd like to use read/write locks in several places in the code.
24150 # See if our pthreads support extends to that.  Note: for linux, it
24151 # does as long as you define _XOPEN_SOURCE appropriately.
24152 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
24153 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
24154 if test "${ac_rwlock+set}" = set; then
24155   echo $ECHO_N "(cached) $ECHO_C" >&6
24156 else
24157
24158  ac_ext=c
24159 ac_cpp='$CPP $CPPFLAGS'
24160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24163
24164  cat >conftest.$ac_ext <<_ACEOF
24165 /* confdefs.h.  */
24166 _ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h.  */
24170 #define _XOPEN_SOURCE 500
24171                  #include <pthread.h>
24172 int
24173 main ()
24174 {
24175 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
24176                  pthread_rwlock_rdlock(&l);
24177                  return 0;
24178   ;
24179   return 0;
24180 }
24181 _ACEOF
24182 rm -f conftest.$ac_objext
24183 if { (ac_try="$ac_compile"
24184 case "(($ac_try" in
24185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24186   *) ac_try_echo=$ac_try;;
24187 esac
24188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24189   (eval "$ac_compile") 2>conftest.er1
24190   ac_status=$?
24191   grep -v '^ *+' conftest.er1 >conftest.err
24192   rm -f conftest.er1
24193   cat conftest.err >&5
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); } && {
24196          test -z "$ac_c_werror_flag" ||
24197          test ! -s conftest.err
24198        } && test -s conftest.$ac_objext; then
24199   ac_rwlock=yes
24200 else
24201   echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24203
24204         ac_rwlock=no
24205 fi
24206
24207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24208  ac_ext=c
24209 ac_cpp='$CPP $CPPFLAGS'
24210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24213
24214
24215 fi
24216 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
24217 echo "${ECHO_T}$ac_rwlock" >&6; }
24218 if test "$ac_rwlock" = yes; then
24219
24220 cat >>confdefs.h <<\_ACEOF
24221 #define HAVE_RWLOCK 1
24222 _ACEOF
24223
24224 fi
24225
24226
24227 # Find out what namespace 'normal' STL code lives in, and also what namespace
24228 # the user wants our classes to be defined in
24229 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
24230 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
24231 if test "${ac_cv_cxx_namespaces+set}" = set; then
24232   echo $ECHO_N "(cached) $ECHO_C" >&6
24233 else
24234
24235                   ac_ext=cpp
24236 ac_cpp='$CXXCPP $CPPFLAGS'
24237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24240
24241                   cat >conftest.$ac_ext <<_ACEOF
24242 /* confdefs.h.  */
24243 _ACEOF
24244 cat confdefs.h >>conftest.$ac_ext
24245 cat >>conftest.$ac_ext <<_ACEOF
24246 /* end confdefs.h.  */
24247 namespace Outer {
24248                                     namespace Inner { int i = 0; }}
24249 int
24250 main ()
24251 {
24252 using namespace Outer::Inner; return i;
24253   ;
24254   return 0;
24255 }
24256 _ACEOF
24257 rm -f conftest.$ac_objext
24258 if { (ac_try="$ac_compile"
24259 case "(($ac_try" in
24260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261   *) ac_try_echo=$ac_try;;
24262 esac
24263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264   (eval "$ac_compile") 2>conftest.er1
24265   ac_status=$?
24266   grep -v '^ *+' conftest.er1 >conftest.err
24267   rm -f conftest.er1
24268   cat conftest.err >&5
24269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270   (exit $ac_status); } && {
24271          test -z "$ac_cxx_werror_flag" ||
24272          test ! -s conftest.err
24273        } && test -s conftest.$ac_objext; then
24274   ac_cv_cxx_namespaces=yes
24275 else
24276   echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24278
24279         ac_cv_cxx_namespaces=no
24280 fi
24281
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24283                   ac_ext=c
24284 ac_cpp='$CPP $CPPFLAGS'
24285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24288
24289 fi
24290 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
24291 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
24292   if test "$ac_cv_cxx_namespaces" = yes; then
24293
24294 cat >>confdefs.h <<\_ACEOF
24295 #define HAVE_NAMESPACES 1
24296 _ACEOF
24297
24298   fi
24299 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
24300 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
24301 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
24302   echo $ECHO_N "(cached) $ECHO_C" >&6
24303 else
24304
24305
24306       ac_ext=cpp
24307 ac_cpp='$CXXCPP $CPPFLAGS'
24308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24311
24312       cat >conftest.$ac_ext <<_ACEOF
24313 /* confdefs.h.  */
24314 _ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h.  */
24318 #include <vector>
24319 int
24320 main ()
24321 {
24322 vector<int> t; return 0;
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 rm -f conftest.$ac_objext
24328 if { (ac_try="$ac_compile"
24329 case "(($ac_try" in
24330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331   *) ac_try_echo=$ac_try;;
24332 esac
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334   (eval "$ac_compile") 2>conftest.er1
24335   ac_status=$?
24336   grep -v '^ *+' conftest.er1 >conftest.err
24337   rm -f conftest.er1
24338   cat conftest.err >&5
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); } && {
24341          test -z "$ac_cxx_werror_flag" ||
24342          test ! -s conftest.err
24343        } && test -s conftest.$ac_objext; then
24344   ac_cv_cxx_stl_namespace=none
24345 else
24346   echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.$ac_ext >&5
24348
24349
24350 fi
24351
24352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24353       cat >conftest.$ac_ext <<_ACEOF
24354 /* confdefs.h.  */
24355 _ACEOF
24356 cat confdefs.h >>conftest.$ac_ext
24357 cat >>conftest.$ac_ext <<_ACEOF
24358 /* end confdefs.h.  */
24359 #include <vector>
24360 int
24361 main ()
24362 {
24363 std::vector<int> t; return 0;
24364   ;
24365   return 0;
24366 }
24367 _ACEOF
24368 rm -f conftest.$ac_objext
24369 if { (ac_try="$ac_compile"
24370 case "(($ac_try" in
24371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24372   *) ac_try_echo=$ac_try;;
24373 esac
24374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24375   (eval "$ac_compile") 2>conftest.er1
24376   ac_status=$?
24377   grep -v '^ *+' conftest.er1 >conftest.err
24378   rm -f conftest.er1
24379   cat conftest.err >&5
24380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381   (exit $ac_status); } && {
24382          test -z "$ac_cxx_werror_flag" ||
24383          test ! -s conftest.err
24384        } && test -s conftest.$ac_objext; then
24385   ac_cv_cxx_stl_namespace=std
24386 else
24387   echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24389
24390
24391 fi
24392
24393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394       ac_ext=c
24395 ac_cpp='$CPP $CPPFLAGS'
24396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24399
24400 fi
24401 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
24402 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
24403    if test "$ac_cv_cxx_stl_namespace" = none; then
24404
24405 cat >>confdefs.h <<\_ACEOF
24406 #define STL_NAMESPACE
24407 _ACEOF
24408
24409    fi
24410    if test "$ac_cv_cxx_stl_namespace" = std; then
24411
24412 cat >>confdefs.h <<\_ACEOF
24413 #define STL_NAMESPACE std
24414 _ACEOF
24415
24416    fi
24417
24418 google_namespace_default=google
24419    # Check whether --enable-namespace was given.
24420 if test "${enable_namespace+set}" = set; then
24421   enableval=$enable_namespace; case "$enableval" in
24422                     yes) google_namespace="$google_namespace_default" ;;
24423                      no) google_namespace="" ;;
24424                       *) google_namespace="$enableval" ;;
24425                   esac
24426 else
24427   google_namespace="$google_namespace_default"
24428 fi
24429
24430    if test -n "$google_namespace"; then
24431      ac_google_namespace="$google_namespace"
24432      ac_google_start_namespace="namespace $google_namespace {"
24433      ac_google_end_namespace="}"
24434    else
24435      ac_google_namespace=""
24436      ac_google_start_namespace=""
24437      ac_google_end_namespace=""
24438    fi
24439
24440 cat >>confdefs.h <<_ACEOF
24441 #define GOOGLE_NAMESPACE $ac_google_namespace
24442 _ACEOF
24443
24444
24445 cat >>confdefs.h <<_ACEOF
24446 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
24447 _ACEOF
24448
24449
24450 cat >>confdefs.h <<_ACEOF
24451 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
24452 _ACEOF
24453
24454
24455
24456 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
24457 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
24458 if test "${ac_cv_cxx_using_operator+set}" = set; then
24459   echo $ECHO_N "(cached) $ECHO_C" >&6
24460 else
24461
24462        ac_ext=cpp
24463 ac_cpp='$CXXCPP $CPPFLAGS'
24464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24467
24468        cat >conftest.$ac_ext <<_ACEOF
24469 /* confdefs.h.  */
24470 _ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h.  */
24474 #include <iostream>
24475                        std::ostream& operator<<(std::ostream&, struct s);
24476 int
24477 main ()
24478 {
24479 using ::operator<<; return 0;
24480   ;
24481   return 0;
24482 }
24483 _ACEOF
24484 rm -f conftest.$ac_objext
24485 if { (ac_try="$ac_compile"
24486 case "(($ac_try" in
24487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488   *) ac_try_echo=$ac_try;;
24489 esac
24490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24491   (eval "$ac_compile") 2>conftest.er1
24492   ac_status=$?
24493   grep -v '^ *+' conftest.er1 >conftest.err
24494   rm -f conftest.er1
24495   cat conftest.err >&5
24496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497   (exit $ac_status); } && {
24498          test -z "$ac_cxx_werror_flag" ||
24499          test ! -s conftest.err
24500        } && test -s conftest.$ac_objext; then
24501   ac_cv_cxx_using_operator=1
24502 else
24503   echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24505
24506         ac_cv_cxx_using_operator=0
24507 fi
24508
24509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24510       ac_ext=c
24511 ac_cpp='$CPP $CPPFLAGS'
24512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24515
24516 fi
24517 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
24518 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
24519   if test "$ac_cv_cxx_using_operator" = 1; then
24520
24521 cat >>confdefs.h <<\_ACEOF
24522 #define HAVE_USING_OPERATOR 1
24523 _ACEOF
24524
24525   fi
24526
24527 # We want to access the "PC" (Program Counter) register from a struct
24528 # ucontext.  Every system has its own way of doing that.  We try all the
24529 # possibilities we know about.  Note REG_PC should come first (REG_RIP
24530 # is also defined on solaris, but does the wrong thing).
24531 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
24532 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
24533 pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
24534 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
24535 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
24536 pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
24537 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
24538 pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
24539 pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
24540 pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
24541 pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
24542 pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
24543 pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
24544 pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
24545 pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
24546 pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
24547 pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
24548 pc_field_found=false
24549 for pc_field in $pc_fields; do
24550   if ! $pc_field_found; then
24551     cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h.  */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h.  */
24557 #define _GNU_SOURCE 1
24558                     #include <ucontext.h>
24559 int
24560 main ()
24561 {
24562 ucontext_t u; return u.$pc_field == 0;
24563   ;
24564   return 0;
24565 }
24566 _ACEOF
24567 rm -f conftest.$ac_objext
24568 if { (ac_try="$ac_compile"
24569 case "(($ac_try" in
24570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571   *) ac_try_echo=$ac_try;;
24572 esac
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574   (eval "$ac_compile") 2>conftest.er1
24575   ac_status=$?
24576   grep -v '^ *+' conftest.er1 >conftest.err
24577   rm -f conftest.er1
24578   cat conftest.err >&5
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); } && {
24581          test -z "$ac_c_werror_flag" ||
24582          test ! -s conftest.err
24583        } && test -s conftest.$ac_objext; then
24584
24585 cat >>confdefs.h <<_ACEOF
24586 #define PC_FROM_UCONTEXT $pc_field
24587 _ACEOF
24588
24589                    { echo "$as_me:$LINENO: result: $pc_field" >&5
24590 echo "${ECHO_T}$pc_field" >&6; }
24591                  pc_field_found=true
24592 else
24593   echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24595
24596
24597 fi
24598
24599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24600   fi
24601 done
24602 if ! $pc_field_found; then
24603   { echo "$as_me:$LINENO: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
24604 echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
24605 fi
24606
24607 # These are what's needed by logging.h.in and raw_logging.h.in
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630 # Write generated configuration file
24631 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"
24632
24633 ac_config_files="$ac_config_files libglog.pc"
24634
24635 cat >confcache <<\_ACEOF
24636 # This file is a shell script that caches the results of configure
24637 # tests run on this system so they can be shared between configure
24638 # scripts and configure runs, see configure's option --config-cache.
24639 # It is not useful on other systems.  If it contains results you don't
24640 # want to keep, you may remove or edit it.
24641 #
24642 # config.status only pays attention to the cache file if you give it
24643 # the --recheck option to rerun configure.
24644 #
24645 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24646 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24647 # following values.
24648
24649 _ACEOF
24650
24651 # The following way of writing the cache mishandles newlines in values,
24652 # but we know of no workaround that is simple, portable, and efficient.
24653 # So, we kill variables containing newlines.
24654 # Ultrix sh set writes to stderr and can't be redirected directly,
24655 # and sets the high bit in the cache file unless we assign to the vars.
24656 (
24657   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24658     eval ac_val=\$$ac_var
24659     case $ac_val in #(
24660     *${as_nl}*)
24661       case $ac_var in #(
24662       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24663 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24664       esac
24665       case $ac_var in #(
24666       _ | IFS | as_nl) ;; #(
24667       *) $as_unset $ac_var ;;
24668       esac ;;
24669     esac
24670   done
24671
24672   (set) 2>&1 |
24673     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24674     *${as_nl}ac_space=\ *)
24675       # `set' does not quote correctly, so add quotes (double-quote
24676       # substitution turns \\\\ into \\, and sed turns \\ into \).
24677       sed -n \
24678         "s/'/'\\\\''/g;
24679           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24680       ;; #(
24681     *)
24682       # `set' quotes correctly as required by POSIX, so do not add quotes.
24683       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24684       ;;
24685     esac |
24686     sort
24687 ) |
24688   sed '
24689      /^ac_cv_env_/b end
24690      t clear
24691      :clear
24692      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24693      t end
24694      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24695      :end' >>confcache
24696 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24697   if test -w "$cache_file"; then
24698     test "x$cache_file" != "x/dev/null" &&
24699       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24700 echo "$as_me: updating cache $cache_file" >&6;}
24701     cat confcache >$cache_file
24702   else
24703     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24704 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24705   fi
24706 fi
24707 rm -f confcache
24708
24709 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24710 # Let make expand exec_prefix.
24711 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24712
24713 DEFS=-DHAVE_CONFIG_H
24714
24715 ac_libobjs=
24716 ac_ltlibobjs=
24717 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24718   # 1. Remove the extension, and $U if already installed.
24719   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24720   ac_i=`echo "$ac_i" | sed "$ac_script"`
24721   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24722   #    will be set to the directory where LIBOBJS objects are built.
24723   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24724   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24725 done
24726 LIBOBJS=$ac_libobjs
24727
24728 LTLIBOBJS=$ac_ltlibobjs
24729
24730
24731 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24732   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24733 Usually this means the macro was only invoked conditionally." >&5
24734 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24735 Usually this means the macro was only invoked conditionally." >&2;}
24736    { (exit 1); exit 1; }; }
24737 fi
24738 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24739   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24740 Usually this means the macro was only invoked conditionally." >&5
24741 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24742 Usually this means the macro was only invoked conditionally." >&2;}
24743    { (exit 1); exit 1; }; }
24744 fi
24745 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24746   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24747 Usually this means the macro was only invoked conditionally." >&5
24748 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24749 Usually this means the macro was only invoked conditionally." >&2;}
24750    { (exit 1); exit 1; }; }
24751 fi
24752 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
24753   { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
24754 Usually this means the macro was only invoked conditionally." >&5
24755 echo "$as_me: error: conditional \"GCC\" was never defined.
24756 Usually this means the macro was only invoked conditionally." >&2;}
24757    { (exit 1); exit 1; }; }
24758 fi
24759 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
24760   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24761 Usually this means the macro was only invoked conditionally." >&5
24762 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24763 Usually this means the macro was only invoked conditionally." >&2;}
24764    { (exit 1); exit 1; }; }
24765 fi
24766 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
24767   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
24768 Usually this means the macro was only invoked conditionally." >&5
24769 echo "$as_me: error: conditional \"X86_64\" was never defined.
24770 Usually this means the macro was only invoked conditionally." >&2;}
24771    { (exit 1); exit 1; }; }
24772 fi
24773 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
24774   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GMOCK\" was never defined.
24775 Usually this means the macro was only invoked conditionally." >&5
24776 echo "$as_me: error: conditional \"HAVE_GMOCK\" was never defined.
24777 Usually this means the macro was only invoked conditionally." >&2;}
24778    { (exit 1); exit 1; }; }
24779 fi
24780
24781 : ${CONFIG_STATUS=./config.status}
24782 ac_clean_files_save=$ac_clean_files
24783 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24784 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24785 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24786 cat >$CONFIG_STATUS <<_ACEOF
24787 #! $SHELL
24788 # Generated by $as_me.
24789 # Run this file to recreate the current configuration.
24790 # Compiler output produced by configure, useful for debugging
24791 # configure, is in config.log if it exists.
24792
24793 debug=false
24794 ac_cs_recheck=false
24795 ac_cs_silent=false
24796 SHELL=\${CONFIG_SHELL-$SHELL}
24797 _ACEOF
24798
24799 cat >>$CONFIG_STATUS <<\_ACEOF
24800 ## --------------------- ##
24801 ## M4sh Initialization.  ##
24802 ## --------------------- ##
24803
24804 # Be more Bourne compatible
24805 DUALCASE=1; export DUALCASE # for MKS sh
24806 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24807   emulate sh
24808   NULLCMD=:
24809   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24810   # is contrary to our usage.  Disable this feature.
24811   alias -g '${1+"$@"}'='"$@"'
24812   setopt NO_GLOB_SUBST
24813 else
24814   case `(set -o) 2>/dev/null` in
24815   *posix*) set -o posix ;;
24816 esac
24817
24818 fi
24819
24820
24821
24822
24823 # PATH needs CR
24824 # Avoid depending upon Character Ranges.
24825 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24826 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24827 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24828 as_cr_digits='0123456789'
24829 as_cr_alnum=$as_cr_Letters$as_cr_digits
24830
24831 # The user is always right.
24832 if test "${PATH_SEPARATOR+set}" != set; then
24833   echo "#! /bin/sh" >conf$$.sh
24834   echo  "exit 0"   >>conf$$.sh
24835   chmod +x conf$$.sh
24836   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24837     PATH_SEPARATOR=';'
24838   else
24839     PATH_SEPARATOR=:
24840   fi
24841   rm -f conf$$.sh
24842 fi
24843
24844 # Support unset when possible.
24845 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24846   as_unset=unset
24847 else
24848   as_unset=false
24849 fi
24850
24851
24852 # IFS
24853 # We need space, tab and new line, in precisely that order.  Quoting is
24854 # there to prevent editors from complaining about space-tab.
24855 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24856 # splitting by setting IFS to empty value.)
24857 as_nl='
24858 '
24859 IFS=" ""        $as_nl"
24860
24861 # Find who we are.  Look in the path if we contain no directory separator.
24862 case $0 in
24863   *[\\/]* ) as_myself=$0 ;;
24864   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24865 for as_dir in $PATH
24866 do
24867   IFS=$as_save_IFS
24868   test -z "$as_dir" && as_dir=.
24869   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24870 done
24871 IFS=$as_save_IFS
24872
24873      ;;
24874 esac
24875 # We did not find ourselves, most probably we were run as `sh COMMAND'
24876 # in which case we are not to be found in the path.
24877 if test "x$as_myself" = x; then
24878   as_myself=$0
24879 fi
24880 if test ! -f "$as_myself"; then
24881   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24882   { (exit 1); exit 1; }
24883 fi
24884
24885 # Work around bugs in pre-3.0 UWIN ksh.
24886 for as_var in ENV MAIL MAILPATH
24887 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24888 done
24889 PS1='$ '
24890 PS2='> '
24891 PS4='+ '
24892
24893 # NLS nuisances.
24894 for as_var in \
24895   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24896   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24897   LC_TELEPHONE LC_TIME
24898 do
24899   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24900     eval $as_var=C; export $as_var
24901   else
24902     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24903   fi
24904 done
24905
24906 # Required to use basename.
24907 if expr a : '\(a\)' >/dev/null 2>&1 &&
24908    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24909   as_expr=expr
24910 else
24911   as_expr=false
24912 fi
24913
24914 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24915   as_basename=basename
24916 else
24917   as_basename=false
24918 fi
24919
24920
24921 # Name of the executable.
24922 as_me=`$as_basename -- "$0" ||
24923 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24924          X"$0" : 'X\(//\)$' \| \
24925          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24926 echo X/"$0" |
24927     sed '/^.*\/\([^/][^/]*\)\/*$/{
24928             s//\1/
24929             q
24930           }
24931           /^X\/\(\/\/\)$/{
24932             s//\1/
24933             q
24934           }
24935           /^X\/\(\/\).*/{
24936             s//\1/
24937             q
24938           }
24939           s/.*/./; q'`
24940
24941 # CDPATH.
24942 $as_unset CDPATH
24943
24944
24945
24946   as_lineno_1=$LINENO
24947   as_lineno_2=$LINENO
24948   test "x$as_lineno_1" != "x$as_lineno_2" &&
24949   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24950
24951   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24952   # uniformly replaced by the line number.  The first 'sed' inserts a
24953   # line-number line after each line using $LINENO; the second 'sed'
24954   # does the real work.  The second script uses 'N' to pair each
24955   # line-number line with the line containing $LINENO, and appends
24956   # trailing '-' during substitution so that $LINENO is not a special
24957   # case at line end.
24958   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24959   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24960   # E. McMahon (1931-1989) for sed's syntax.  :-)
24961   sed -n '
24962     p
24963     /[$]LINENO/=
24964   ' <$as_myself |
24965     sed '
24966       s/[$]LINENO.*/&-/
24967       t lineno
24968       b
24969       :lineno
24970       N
24971       :loop
24972       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24973       t loop
24974       s/-\n.*//
24975     ' >$as_me.lineno &&
24976   chmod +x "$as_me.lineno" ||
24977     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24978    { (exit 1); exit 1; }; }
24979
24980   # Don't try to exec as it changes $[0], causing all sort of problems
24981   # (the dirname of $[0] is not the place where we might find the
24982   # original and so on.  Autoconf is especially sensitive to this).
24983   . "./$as_me.lineno"
24984   # Exit status is that of the last command.
24985   exit
24986 }
24987
24988
24989 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24990   as_dirname=dirname
24991 else
24992   as_dirname=false
24993 fi
24994
24995 ECHO_C= ECHO_N= ECHO_T=
24996 case `echo -n x` in
24997 -n*)
24998   case `echo 'x\c'` in
24999   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25000   *)   ECHO_C='\c';;
25001   esac;;
25002 *)
25003   ECHO_N='-n';;
25004 esac
25005
25006 if expr a : '\(a\)' >/dev/null 2>&1 &&
25007    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25008   as_expr=expr
25009 else
25010   as_expr=false
25011 fi
25012
25013 rm -f conf$$ conf$$.exe conf$$.file
25014 if test -d conf$$.dir; then
25015   rm -f conf$$.dir/conf$$.file
25016 else
25017   rm -f conf$$.dir
25018   mkdir conf$$.dir
25019 fi
25020 echo >conf$$.file
25021 if ln -s conf$$.file conf$$ 2>/dev/null; then
25022   as_ln_s='ln -s'
25023   # ... but there are two gotchas:
25024   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25025   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25026   # In both cases, we have to default to `cp -p'.
25027   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25028     as_ln_s='cp -p'
25029 elif ln conf$$.file conf$$ 2>/dev/null; then
25030   as_ln_s=ln
25031 else
25032   as_ln_s='cp -p'
25033 fi
25034 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25035 rmdir conf$$.dir 2>/dev/null
25036
25037 if mkdir -p . 2>/dev/null; then
25038   as_mkdir_p=:
25039 else
25040   test -d ./-p && rmdir ./-p
25041   as_mkdir_p=false
25042 fi
25043
25044 if test -x / >/dev/null 2>&1; then
25045   as_test_x='test -x'
25046 else
25047   if ls -dL / >/dev/null 2>&1; then
25048     as_ls_L_option=L
25049   else
25050     as_ls_L_option=
25051   fi
25052   as_test_x='
25053     eval sh -c '\''
25054       if test -d "$1"; then
25055         test -d "$1/.";
25056       else
25057         case $1 in
25058         -*)set "./$1";;
25059         esac;
25060         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25061         ???[sx]*):;;*)false;;esac;fi
25062     '\'' sh
25063   '
25064 fi
25065 as_executable_p=$as_test_x
25066
25067 # Sed expression to map a string onto a valid CPP name.
25068 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25069
25070 # Sed expression to map a string onto a valid variable name.
25071 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25072
25073
25074 exec 6>&1
25075
25076 # Save the log message, to keep $[0] and so on meaningful, and to
25077 # report actual input values of CONFIG_FILES etc. instead of their
25078 # values after options handling.
25079 ac_log="
25080 This file was extended by glog $as_me 0.2, which was
25081 generated by GNU Autoconf 2.61.  Invocation command line was
25082
25083   CONFIG_FILES    = $CONFIG_FILES
25084   CONFIG_HEADERS  = $CONFIG_HEADERS
25085   CONFIG_LINKS    = $CONFIG_LINKS
25086   CONFIG_COMMANDS = $CONFIG_COMMANDS
25087   $ $0 $@
25088
25089 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25090 "
25091
25092 _ACEOF
25093
25094 cat >>$CONFIG_STATUS <<_ACEOF
25095 # Files that config.status was made for.
25096 config_files="$ac_config_files"
25097 config_headers="$ac_config_headers"
25098 config_commands="$ac_config_commands"
25099
25100 _ACEOF
25101
25102 cat >>$CONFIG_STATUS <<\_ACEOF
25103 ac_cs_usage="\
25104 \`$as_me' instantiates files from templates according to the
25105 current configuration.
25106
25107 Usage: $0 [OPTIONS] [FILE]...
25108
25109   -h, --help       print this help, then exit
25110   -V, --version    print version number and configuration settings, then exit
25111   -q, --quiet      do not print progress messages
25112   -d, --debug      don't remove temporary files
25113       --recheck    update $as_me by reconfiguring in the same conditions
25114   --file=FILE[:TEMPLATE]
25115                    instantiate the configuration file FILE
25116   --header=FILE[:TEMPLATE]
25117                    instantiate the configuration header FILE
25118
25119 Configuration files:
25120 $config_files
25121
25122 Configuration headers:
25123 $config_headers
25124
25125 Configuration commands:
25126 $config_commands
25127
25128 Report bugs to <bug-autoconf@gnu.org>."
25129
25130 _ACEOF
25131 cat >>$CONFIG_STATUS <<_ACEOF
25132 ac_cs_version="\\
25133 glog config.status 0.2
25134 configured by $0, generated by GNU Autoconf 2.61,
25135   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25136
25137 Copyright (C) 2006 Free Software Foundation, Inc.
25138 This config.status script is free software; the Free Software Foundation
25139 gives unlimited permission to copy, distribute and modify it."
25140
25141 ac_pwd='$ac_pwd'
25142 srcdir='$srcdir'
25143 INSTALL='$INSTALL'
25144 MKDIR_P='$MKDIR_P'
25145 _ACEOF
25146
25147 cat >>$CONFIG_STATUS <<\_ACEOF
25148 # If no file are specified by the user, then we need to provide default
25149 # value.  By we need to know if files were specified by the user.
25150 ac_need_defaults=:
25151 while test $# != 0
25152 do
25153   case $1 in
25154   --*=*)
25155     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25156     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25157     ac_shift=:
25158     ;;
25159   *)
25160     ac_option=$1
25161     ac_optarg=$2
25162     ac_shift=shift
25163     ;;
25164   esac
25165
25166   case $ac_option in
25167   # Handling of the options.
25168   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25169     ac_cs_recheck=: ;;
25170   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25171     echo "$ac_cs_version"; exit ;;
25172   --debug | --debu | --deb | --de | --d | -d )
25173     debug=: ;;
25174   --file | --fil | --fi | --f )
25175     $ac_shift
25176     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25177     ac_need_defaults=false;;
25178   --header | --heade | --head | --hea )
25179     $ac_shift
25180     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25181     ac_need_defaults=false;;
25182   --he | --h)
25183     # Conflict between --help and --header
25184     { echo "$as_me: error: ambiguous option: $1
25185 Try \`$0 --help' for more information." >&2
25186    { (exit 1); exit 1; }; };;
25187   --help | --hel | -h )
25188     echo "$ac_cs_usage"; exit ;;
25189   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25190   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25191     ac_cs_silent=: ;;
25192
25193   # This is an error.
25194   -*) { echo "$as_me: error: unrecognized option: $1
25195 Try \`$0 --help' for more information." >&2
25196    { (exit 1); exit 1; }; } ;;
25197
25198   *) ac_config_targets="$ac_config_targets $1"
25199      ac_need_defaults=false ;;
25200
25201   esac
25202   shift
25203 done
25204
25205 ac_configure_extra_args=
25206
25207 if $ac_cs_silent; then
25208   exec 6>/dev/null
25209   ac_configure_extra_args="$ac_configure_extra_args --silent"
25210 fi
25211
25212 _ACEOF
25213 cat >>$CONFIG_STATUS <<_ACEOF
25214 if \$ac_cs_recheck; then
25215   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25216   CONFIG_SHELL=$SHELL
25217   export CONFIG_SHELL
25218   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25219 fi
25220
25221 _ACEOF
25222 cat >>$CONFIG_STATUS <<\_ACEOF
25223 exec 5>>config.log
25224 {
25225   echo
25226   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25227 ## Running $as_me. ##
25228 _ASBOX
25229   echo "$ac_log"
25230 } >&5
25231
25232 _ACEOF
25233 cat >>$CONFIG_STATUS <<_ACEOF
25234 #
25235 # INIT-COMMANDS
25236 #
25237 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25238
25239 _ACEOF
25240
25241 cat >>$CONFIG_STATUS <<\_ACEOF
25242
25243 # Handling of arguments.
25244 for ac_config_target in $ac_config_targets
25245 do
25246   case $ac_config_target in
25247     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25248     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25249     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25250     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
25251     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
25252     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
25253     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
25254     "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
25255
25256   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25257 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25258    { (exit 1); exit 1; }; };;
25259   esac
25260 done
25261
25262
25263 # If the user did not use the arguments to specify the items to instantiate,
25264 # then the envvar interface is used.  Set only those that are not.
25265 # We use the long form for the default assignment because of an extremely
25266 # bizarre bug on SunOS 4.1.3.
25267 if $ac_need_defaults; then
25268   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25269   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25270   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25271 fi
25272
25273 # Have a temporary directory for convenience.  Make it in the build tree
25274 # simply because there is no reason against having it here, and in addition,
25275 # creating and moving files from /tmp can sometimes cause problems.
25276 # Hook for its removal unless debugging.
25277 # Note that there is a small window in which the directory will not be cleaned:
25278 # after its creation but before its name has been assigned to `$tmp'.
25279 $debug ||
25280 {
25281   tmp=
25282   trap 'exit_status=$?
25283   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25284 ' 0
25285   trap '{ (exit 1); exit 1; }' 1 2 13 15
25286 }
25287 # Create a (secure) tmp directory for tmp files.
25288
25289 {
25290   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25291   test -n "$tmp" && test -d "$tmp"
25292 }  ||
25293 {
25294   tmp=./conf$$-$RANDOM
25295   (umask 077 && mkdir "$tmp")
25296 } ||
25297 {
25298    echo "$me: cannot create a temporary directory in ." >&2
25299    { (exit 1); exit 1; }
25300 }
25301
25302 #
25303 # Set up the sed scripts for CONFIG_FILES section.
25304 #
25305
25306 # No need to generate the scripts if there are no CONFIG_FILES.
25307 # This happens for instance when ./config.status config.h
25308 if test -n "$CONFIG_FILES"; then
25309
25310 _ACEOF
25311
25312
25313
25314 ac_delim='%!_!# '
25315 for ac_last_try in false false false false false :; do
25316   cat >conf$$subs.sed <<_ACEOF
25317 SHELL!$SHELL$ac_delim
25318 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25319 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25320 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25321 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25322 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25323 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25324 exec_prefix!$exec_prefix$ac_delim
25325 prefix!$prefix$ac_delim
25326 program_transform_name!$program_transform_name$ac_delim
25327 bindir!$bindir$ac_delim
25328 sbindir!$sbindir$ac_delim
25329 libexecdir!$libexecdir$ac_delim
25330 datarootdir!$datarootdir$ac_delim
25331 datadir!$datadir$ac_delim
25332 sysconfdir!$sysconfdir$ac_delim
25333 sharedstatedir!$sharedstatedir$ac_delim
25334 localstatedir!$localstatedir$ac_delim
25335 includedir!$includedir$ac_delim
25336 oldincludedir!$oldincludedir$ac_delim
25337 docdir!$docdir$ac_delim
25338 infodir!$infodir$ac_delim
25339 htmldir!$htmldir$ac_delim
25340 dvidir!$dvidir$ac_delim
25341 pdfdir!$pdfdir$ac_delim
25342 psdir!$psdir$ac_delim
25343 libdir!$libdir$ac_delim
25344 localedir!$localedir$ac_delim
25345 mandir!$mandir$ac_delim
25346 DEFS!$DEFS$ac_delim
25347 ECHO_C!$ECHO_C$ac_delim
25348 ECHO_N!$ECHO_N$ac_delim
25349 ECHO_T!$ECHO_T$ac_delim
25350 LIBS!$LIBS$ac_delim
25351 build_alias!$build_alias$ac_delim
25352 host_alias!$host_alias$ac_delim
25353 target_alias!$target_alias$ac_delim
25354 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25355 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25356 INSTALL_DATA!$INSTALL_DATA$ac_delim
25357 am__isrc!$am__isrc$ac_delim
25358 CYGPATH_W!$CYGPATH_W$ac_delim
25359 PACKAGE!$PACKAGE$ac_delim
25360 VERSION!$VERSION$ac_delim
25361 ACLOCAL!$ACLOCAL$ac_delim
25362 AUTOCONF!$AUTOCONF$ac_delim
25363 AUTOMAKE!$AUTOMAKE$ac_delim
25364 AUTOHEADER!$AUTOHEADER$ac_delim
25365 MAKEINFO!$MAKEINFO$ac_delim
25366 install_sh!$install_sh$ac_delim
25367 STRIP!$STRIP$ac_delim
25368 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25369 mkdir_p!$mkdir_p$ac_delim
25370 AWK!$AWK$ac_delim
25371 SET_MAKE!$SET_MAKE$ac_delim
25372 am__leading_dot!$am__leading_dot$ac_delim
25373 AMTAR!$AMTAR$ac_delim
25374 am__tar!$am__tar$ac_delim
25375 am__untar!$am__untar$ac_delim
25376 CC!$CC$ac_delim
25377 CFLAGS!$CFLAGS$ac_delim
25378 LDFLAGS!$LDFLAGS$ac_delim
25379 CPPFLAGS!$CPPFLAGS$ac_delim
25380 ac_ct_CC!$ac_ct_CC$ac_delim
25381 EXEEXT!$EXEEXT$ac_delim
25382 OBJEXT!$OBJEXT$ac_delim
25383 DEPDIR!$DEPDIR$ac_delim
25384 am__include!$am__include$ac_delim
25385 am__quote!$am__quote$ac_delim
25386 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25387 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25388 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25389 CCDEPMODE!$CCDEPMODE$ac_delim
25390 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25391 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25392 CPP!$CPP$ac_delim
25393 CXX!$CXX$ac_delim
25394 CXXFLAGS!$CXXFLAGS$ac_delim
25395 ac_ct_CXX!$ac_ct_CXX$ac_delim
25396 CXXDEPMODE!$CXXDEPMODE$ac_delim
25397 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25398 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25399 GCC_TRUE!$GCC_TRUE$ac_delim
25400 GCC_FALSE!$GCC_FALSE$ac_delim
25401 build!$build$ac_delim
25402 build_cpu!$build_cpu$ac_delim
25403 build_vendor!$build_vendor$ac_delim
25404 build_os!$build_os$ac_delim
25405 host!$host$ac_delim
25406 host_cpu!$host_cpu$ac_delim
25407 host_vendor!$host_vendor$ac_delim
25408 host_os!$host_os$ac_delim
25409 SED!$SED$ac_delim
25410 GREP!$GREP$ac_delim
25411 EGREP!$EGREP$ac_delim
25412 LN_S!$LN_S$ac_delim
25413 ECHO!$ECHO$ac_delim
25414 _ACEOF
25415
25416   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25417     break
25418   elif $ac_last_try; then
25419     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25420 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25421    { (exit 1); exit 1; }; }
25422   else
25423     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25424   fi
25425 done
25426
25427 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25428 if test -n "$ac_eof"; then
25429   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25430   ac_eof=`expr $ac_eof + 1`
25431 fi
25432
25433 cat >>$CONFIG_STATUS <<_ACEOF
25434 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25436 _ACEOF
25437 sed '
25438 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25439 s/^/s,@/; s/!/@,|#_!!_#|/
25440 :n
25441 t n
25442 s/'"$ac_delim"'$/,g/; t
25443 s/$/\\/; p
25444 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25445 ' >>$CONFIG_STATUS <conf$$subs.sed
25446 rm -f conf$$subs.sed
25447 cat >>$CONFIG_STATUS <<_ACEOF
25448 CEOF$ac_eof
25449 _ACEOF
25450
25451
25452 ac_delim='%!_!# '
25453 for ac_last_try in false false false false false :; do
25454   cat >conf$$subs.sed <<_ACEOF
25455 AR!$AR$ac_delim
25456 RANLIB!$RANLIB$ac_delim
25457 DSYMUTIL!$DSYMUTIL$ac_delim
25458 NMEDIT!$NMEDIT$ac_delim
25459 CXXCPP!$CXXCPP$ac_delim
25460 F77!$F77$ac_delim
25461 FFLAGS!$FFLAGS$ac_delim
25462 ac_ct_F77!$ac_ct_F77$ac_delim
25463 LIBTOOL!$LIBTOOL$ac_delim
25464 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
25465 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
25466 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
25467 X86_64_TRUE!$X86_64_TRUE$ac_delim
25468 X86_64_FALSE!$X86_64_FALSE$ac_delim
25469 acx_pthread_config!$acx_pthread_config$ac_delim
25470 PTHREAD_CC!$PTHREAD_CC$ac_delim
25471 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
25472 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25473 GTEST_CONFIG!$GTEST_CONFIG$ac_delim
25474 GMOCK_CONFIG!$GMOCK_CONFIG$ac_delim
25475 HAVE_GMOCK_TRUE!$HAVE_GMOCK_TRUE$ac_delim
25476 HAVE_GMOCK_FALSE!$HAVE_GMOCK_FALSE$ac_delim
25477 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
25478 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
25479 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
25480 ac_google_namespace!$ac_google_namespace$ac_delim
25481 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
25482 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
25483 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
25484 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
25485 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
25486 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
25487 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
25488 ac_cv_have_unistd_h!$ac_cv_have_unistd_h$ac_delim
25489 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
25490 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
25491 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
25492 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
25493 GFLAGS_CFLAGS!$GFLAGS_CFLAGS$ac_delim
25494 GTEST_CFLAGS!$GTEST_CFLAGS$ac_delim
25495 GMOCK_CFLAGS!$GMOCK_CFLAGS$ac_delim
25496 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
25497 GTEST_LIBS!$GTEST_LIBS$ac_delim
25498 GMOCK_LIBS!$GMOCK_LIBS$ac_delim
25499 LIBOBJS!$LIBOBJS$ac_delim
25500 LTLIBOBJS!$LTLIBOBJS$ac_delim
25501 _ACEOF
25502
25503   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
25504     break
25505   elif $ac_last_try; then
25506     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25507 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25508    { (exit 1); exit 1; }; }
25509   else
25510     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25511   fi
25512 done
25513
25514 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25515 if test -n "$ac_eof"; then
25516   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25517   ac_eof=`expr $ac_eof + 1`
25518 fi
25519
25520 cat >>$CONFIG_STATUS <<_ACEOF
25521 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25523 _ACEOF
25524 sed '
25525 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25526 s/^/s,@/; s/!/@,|#_!!_#|/
25527 :n
25528 t n
25529 s/'"$ac_delim"'$/,g/; t
25530 s/$/\\/; p
25531 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25532 ' >>$CONFIG_STATUS <conf$$subs.sed
25533 rm -f conf$$subs.sed
25534 cat >>$CONFIG_STATUS <<_ACEOF
25535 :end
25536 s/|#_!!_#|//g
25537 CEOF$ac_eof
25538 _ACEOF
25539
25540
25541 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25542 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25543 # trailing colons and then remove the whole line if VPATH becomes empty
25544 # (actually we leave an empty line to preserve line numbers).
25545 if test "x$srcdir" = x.; then
25546   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25547 s/:*\$(srcdir):*/:/
25548 s/:*\${srcdir}:*/:/
25549 s/:*@srcdir@:*/:/
25550 s/^\([^=]*=[     ]*\):*/\1/
25551 s/:*$//
25552 s/^[^=]*=[       ]*$//
25553 }'
25554 fi
25555
25556 cat >>$CONFIG_STATUS <<\_ACEOF
25557 fi # test -n "$CONFIG_FILES"
25558
25559
25560 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25561 do
25562   case $ac_tag in
25563   :[FHLC]) ac_mode=$ac_tag; continue;;
25564   esac
25565   case $ac_mode$ac_tag in
25566   :[FHL]*:*);;
25567   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25568 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25569    { (exit 1); exit 1; }; };;
25570   :[FH]-) ac_tag=-:-;;
25571   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25572   esac
25573   ac_save_IFS=$IFS
25574   IFS=:
25575   set x $ac_tag
25576   IFS=$ac_save_IFS
25577   shift
25578   ac_file=$1
25579   shift
25580
25581   case $ac_mode in
25582   :L) ac_source=$1;;
25583   :[FH])
25584     ac_file_inputs=
25585     for ac_f
25586     do
25587       case $ac_f in
25588       -) ac_f="$tmp/stdin";;
25589       *) # Look for the file first in the build tree, then in the source tree
25590          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25591          # because $ac_f cannot contain `:'.
25592          test -f "$ac_f" ||
25593            case $ac_f in
25594            [\\/$]*) false;;
25595            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25596            esac ||
25597            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25598 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25599    { (exit 1); exit 1; }; };;
25600       esac
25601       ac_file_inputs="$ac_file_inputs $ac_f"
25602     done
25603
25604     # Let's still pretend it is `configure' which instantiates (i.e., don't
25605     # use $as_me), people would be surprised to read:
25606     #    /* config.h.  Generated by config.status.  */
25607     configure_input="Generated from "`IFS=:
25608           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25609     if test x"$ac_file" != x-; then
25610       configure_input="$ac_file.  $configure_input"
25611       { echo "$as_me:$LINENO: creating $ac_file" >&5
25612 echo "$as_me: creating $ac_file" >&6;}
25613     fi
25614
25615     case $ac_tag in
25616     *:-:* | *:-) cat >"$tmp/stdin";;
25617     esac
25618     ;;
25619   esac
25620
25621   ac_dir=`$as_dirname -- "$ac_file" ||
25622 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25623          X"$ac_file" : 'X\(//\)[^/]' \| \
25624          X"$ac_file" : 'X\(//\)$' \| \
25625          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25626 echo X"$ac_file" |
25627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25628             s//\1/
25629             q
25630           }
25631           /^X\(\/\/\)[^/].*/{
25632             s//\1/
25633             q
25634           }
25635           /^X\(\/\/\)$/{
25636             s//\1/
25637             q
25638           }
25639           /^X\(\/\).*/{
25640             s//\1/
25641             q
25642           }
25643           s/.*/./; q'`
25644   { as_dir="$ac_dir"
25645   case $as_dir in #(
25646   -*) as_dir=./$as_dir;;
25647   esac
25648   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25649     as_dirs=
25650     while :; do
25651       case $as_dir in #(
25652       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25653       *) as_qdir=$as_dir;;
25654       esac
25655       as_dirs="'$as_qdir' $as_dirs"
25656       as_dir=`$as_dirname -- "$as_dir" ||
25657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25658          X"$as_dir" : 'X\(//\)[^/]' \| \
25659          X"$as_dir" : 'X\(//\)$' \| \
25660          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25661 echo X"$as_dir" |
25662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25663             s//\1/
25664             q
25665           }
25666           /^X\(\/\/\)[^/].*/{
25667             s//\1/
25668             q
25669           }
25670           /^X\(\/\/\)$/{
25671             s//\1/
25672             q
25673           }
25674           /^X\(\/\).*/{
25675             s//\1/
25676             q
25677           }
25678           s/.*/./; q'`
25679       test -d "$as_dir" && break
25680     done
25681     test -z "$as_dirs" || eval "mkdir $as_dirs"
25682   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25683 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25684    { (exit 1); exit 1; }; }; }
25685   ac_builddir=.
25686
25687 case "$ac_dir" in
25688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25689 *)
25690   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25691   # A ".." for each directory in $ac_dir_suffix.
25692   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25693   case $ac_top_builddir_sub in
25694   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25695   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25696   esac ;;
25697 esac
25698 ac_abs_top_builddir=$ac_pwd
25699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25700 # for backward compatibility:
25701 ac_top_builddir=$ac_top_build_prefix
25702
25703 case $srcdir in
25704   .)  # We are building in place.
25705     ac_srcdir=.
25706     ac_top_srcdir=$ac_top_builddir_sub
25707     ac_abs_top_srcdir=$ac_pwd ;;
25708   [\\/]* | ?:[\\/]* )  # Absolute name.
25709     ac_srcdir=$srcdir$ac_dir_suffix;
25710     ac_top_srcdir=$srcdir
25711     ac_abs_top_srcdir=$srcdir ;;
25712   *) # Relative name.
25713     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25714     ac_top_srcdir=$ac_top_build_prefix$srcdir
25715     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25716 esac
25717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25718
25719
25720   case $ac_mode in
25721   :F)
25722   #
25723   # CONFIG_FILE
25724   #
25725
25726   case $INSTALL in
25727   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25728   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25729   esac
25730   ac_MKDIR_P=$MKDIR_P
25731   case $MKDIR_P in
25732   [\\/$]* | ?:[\\/]* ) ;;
25733   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25734   esac
25735 _ACEOF
25736
25737 cat >>$CONFIG_STATUS <<\_ACEOF
25738 # If the template does not know about datarootdir, expand it.
25739 # FIXME: This hack should be removed a few years after 2.60.
25740 ac_datarootdir_hack=; ac_datarootdir_seen=
25741
25742 case `sed -n '/datarootdir/ {
25743   p
25744   q
25745 }
25746 /@datadir@/p
25747 /@docdir@/p
25748 /@infodir@/p
25749 /@localedir@/p
25750 /@mandir@/p
25751 ' $ac_file_inputs` in
25752 *datarootdir*) ac_datarootdir_seen=yes;;
25753 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25754   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25755 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25756 _ACEOF
25757 cat >>$CONFIG_STATUS <<_ACEOF
25758   ac_datarootdir_hack='
25759   s&@datadir@&$datadir&g
25760   s&@docdir@&$docdir&g
25761   s&@infodir@&$infodir&g
25762   s&@localedir@&$localedir&g
25763   s&@mandir@&$mandir&g
25764     s&\\\${datarootdir}&$datarootdir&g' ;;
25765 esac
25766 _ACEOF
25767
25768 # Neutralize VPATH when `$srcdir' = `.'.
25769 # Shell code in configure.ac might set extrasub.
25770 # FIXME: do we really want to maintain this feature?
25771 cat >>$CONFIG_STATUS <<_ACEOF
25772   sed "$ac_vpsub
25773 $extrasub
25774 _ACEOF
25775 cat >>$CONFIG_STATUS <<\_ACEOF
25776 :t
25777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25778 s&@configure_input@&$configure_input&;t t
25779 s&@top_builddir@&$ac_top_builddir_sub&;t t
25780 s&@srcdir@&$ac_srcdir&;t t
25781 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25782 s&@top_srcdir@&$ac_top_srcdir&;t t
25783 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25784 s&@builddir@&$ac_builddir&;t t
25785 s&@abs_builddir@&$ac_abs_builddir&;t t
25786 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25787 s&@INSTALL@&$ac_INSTALL&;t t
25788 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25789 $ac_datarootdir_hack
25790 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25791
25792 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25793   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25794   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25795   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25796 which seems to be undefined.  Please make sure it is defined." >&5
25797 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25798 which seems to be undefined.  Please make sure it is defined." >&2;}
25799
25800   rm -f "$tmp/stdin"
25801   case $ac_file in
25802   -) cat "$tmp/out"; rm -f "$tmp/out";;
25803   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25804   esac
25805  ;;
25806   :H)
25807   #
25808   # CONFIG_HEADER
25809   #
25810 _ACEOF
25811
25812 # Transform confdefs.h into a sed script `conftest.defines', that
25813 # substitutes the proper values into config.h.in to produce config.h.
25814 rm -f conftest.defines conftest.tail
25815 # First, append a space to every undef/define line, to ease matching.
25816 echo 's/$/ /' >conftest.defines
25817 # Then, protect against being on the right side of a sed subst, or in
25818 # an unquoted here document, in config.status.  If some macros were
25819 # called several times there might be several #defines for the same
25820 # symbol, which is useless.  But do not sort them, since the last
25821 # AC_DEFINE must be honored.
25822 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25823 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25824 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25825 # PARAMS is the parameter list in the macro definition--in most cases, it's
25826 # just an empty string.
25827 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25828 ac_dB='\\)[      (].*,\\1define\\2'
25829 ac_dC=' '
25830 ac_dD=' ,'
25831
25832 uniq confdefs.h |
25833   sed -n '
25834         t rset
25835         :rset
25836         s/^[     ]*#[    ]*define[       ][      ]*//
25837         t ok
25838         d
25839         :ok
25840         s/[\\&,]/\\&/g
25841         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25842         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25843   ' >>conftest.defines
25844
25845 # Remove the space that was appended to ease matching.
25846 # Then replace #undef with comments.  This is necessary, for
25847 # example, in the case of _POSIX_SOURCE, which is predefined and required
25848 # on some systems where configure will not decide to define it.
25849 # (The regexp can be short, since the line contains either #define or #undef.)
25850 echo 's/ $//
25851 s,^[     #]*u.*,/* & */,' >>conftest.defines
25852
25853 # Break up conftest.defines:
25854 ac_max_sed_lines=50
25855
25856 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25857 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25858 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25859 # et cetera.
25860 ac_in='$ac_file_inputs'
25861 ac_out='"$tmp/out1"'
25862 ac_nxt='"$tmp/out2"'
25863
25864 while :
25865 do
25866   # Write a here document:
25867     cat >>$CONFIG_STATUS <<_ACEOF
25868     # First, check the format of the line:
25869     cat >"\$tmp/defines.sed" <<\\CEOF
25870 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25871 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25872 b
25873 :def
25874 _ACEOF
25875   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25876   echo 'CEOF
25877     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25878   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25879   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25880   grep . conftest.tail >/dev/null || break
25881   rm -f conftest.defines
25882   mv conftest.tail conftest.defines
25883 done
25884 rm -f conftest.defines conftest.tail
25885
25886 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25887 cat >>$CONFIG_STATUS <<\_ACEOF
25888   if test x"$ac_file" != x-; then
25889     echo "/* $configure_input  */" >"$tmp/config.h"
25890     cat "$ac_result" >>"$tmp/config.h"
25891     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25892       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25893 echo "$as_me: $ac_file is unchanged" >&6;}
25894     else
25895       rm -f $ac_file
25896       mv "$tmp/config.h" $ac_file
25897     fi
25898   else
25899     echo "/* $configure_input  */"
25900     cat "$ac_result"
25901   fi
25902   rm -f "$tmp/out12"
25903 # Compute $ac_file's index in $config_headers.
25904 _am_arg=$ac_file
25905 _am_stamp_count=1
25906 for _am_header in $config_headers :; do
25907   case $_am_header in
25908     $_am_arg | $_am_arg:* )
25909       break ;;
25910     * )
25911       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25912   esac
25913 done
25914 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25915 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25916          X"$_am_arg" : 'X\(//\)[^/]' \| \
25917          X"$_am_arg" : 'X\(//\)$' \| \
25918          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25919 echo X"$_am_arg" |
25920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25921             s//\1/
25922             q
25923           }
25924           /^X\(\/\/\)[^/].*/{
25925             s//\1/
25926             q
25927           }
25928           /^X\(\/\/\)$/{
25929             s//\1/
25930             q
25931           }
25932           /^X\(\/\).*/{
25933             s//\1/
25934             q
25935           }
25936           s/.*/./; q'`/stamp-h$_am_stamp_count
25937  ;;
25938
25939   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25940 echo "$as_me: executing $ac_file commands" >&6;}
25941  ;;
25942   esac
25943
25944
25945   case $ac_file$ac_mode in
25946     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25947   # Strip MF so we end up with the name of the file.
25948   mf=`echo "$mf" | sed -e 's/:.*$//'`
25949   # Check whether this is an Automake generated Makefile or not.
25950   # We used to match only the files named `Makefile.in', but
25951   # some people rename them; so instead we look at the file content.
25952   # Grep'ing the first line is not enough: some people post-process
25953   # each Makefile.in and add a new line on top of each file to say so.
25954   # Grep'ing the whole file is not good either: AIX grep has a line
25955   # limit of 2048, but all sed's we know have understand at least 4000.
25956   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25957     dirpart=`$as_dirname -- "$mf" ||
25958 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25959          X"$mf" : 'X\(//\)[^/]' \| \
25960          X"$mf" : 'X\(//\)$' \| \
25961          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25962 echo X"$mf" |
25963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25964             s//\1/
25965             q
25966           }
25967           /^X\(\/\/\)[^/].*/{
25968             s//\1/
25969             q
25970           }
25971           /^X\(\/\/\)$/{
25972             s//\1/
25973             q
25974           }
25975           /^X\(\/\).*/{
25976             s//\1/
25977             q
25978           }
25979           s/.*/./; q'`
25980   else
25981     continue
25982   fi
25983   # Extract the definition of DEPDIR, am__include, and am__quote
25984   # from the Makefile without running `make'.
25985   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25986   test -z "$DEPDIR" && continue
25987   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25988   test -z "am__include" && continue
25989   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25990   # When using ansi2knr, U may be empty or an underscore; expand it
25991   U=`sed -n 's/^U = //p' < "$mf"`
25992   # Find all dependency output files, they are included files with
25993   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25994   # simplest approach to changing $(DEPDIR) to its actual value in the
25995   # expansion.
25996   for file in `sed -n "
25997     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25998        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25999     # Make sure the directory exists.
26000     test -f "$dirpart/$file" && continue
26001     fdir=`$as_dirname -- "$file" ||
26002 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26003          X"$file" : 'X\(//\)[^/]' \| \
26004          X"$file" : 'X\(//\)$' \| \
26005          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26006 echo X"$file" |
26007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26008             s//\1/
26009             q
26010           }
26011           /^X\(\/\/\)[^/].*/{
26012             s//\1/
26013             q
26014           }
26015           /^X\(\/\/\)$/{
26016             s//\1/
26017             q
26018           }
26019           /^X\(\/\).*/{
26020             s//\1/
26021             q
26022           }
26023           s/.*/./; q'`
26024     { as_dir=$dirpart/$fdir
26025   case $as_dir in #(
26026   -*) as_dir=./$as_dir;;
26027   esac
26028   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26029     as_dirs=
26030     while :; do
26031       case $as_dir in #(
26032       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26033       *) as_qdir=$as_dir;;
26034       esac
26035       as_dirs="'$as_qdir' $as_dirs"
26036       as_dir=`$as_dirname -- "$as_dir" ||
26037 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26038          X"$as_dir" : 'X\(//\)[^/]' \| \
26039          X"$as_dir" : 'X\(//\)$' \| \
26040          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26041 echo X"$as_dir" |
26042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26043             s//\1/
26044             q
26045           }
26046           /^X\(\/\/\)[^/].*/{
26047             s//\1/
26048             q
26049           }
26050           /^X\(\/\/\)$/{
26051             s//\1/
26052             q
26053           }
26054           /^X\(\/\).*/{
26055             s//\1/
26056             q
26057           }
26058           s/.*/./; q'`
26059       test -d "$as_dir" && break
26060     done
26061     test -z "$as_dirs" || eval "mkdir $as_dirs"
26062   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26063 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26064    { (exit 1); exit 1; }; }; }
26065     # echo "creating $dirpart/$file"
26066     echo '# dummy' > "$dirpart/$file"
26067   done
26068 done
26069  ;;
26070
26071   esac
26072 done # for ac_tag
26073
26074
26075 { (exit 0); exit 0; }
26076 _ACEOF
26077 chmod +x $CONFIG_STATUS
26078 ac_clean_files=$ac_clean_files_save
26079
26080
26081 # configure is writing to config.log, and then calls config.status.
26082 # config.status does its own redirection, appending to config.log.
26083 # Unfortunately, on DOS this fails, as config.log is still kept open
26084 # by configure, so config.status won't be able to write to it; its
26085 # output is simply discarded.  So we exec the FD to /dev/null,
26086 # effectively closing config.log, so it can be properly (re)opened and
26087 # appended to by config.status.  When coming back to configure, we
26088 # need to make the FD available again.
26089 if test "$no_create" != yes; then
26090   ac_cs_success=:
26091   ac_config_status_args=
26092   test "$silent" = yes &&
26093     ac_config_status_args="$ac_config_status_args --quiet"
26094   exec 5>/dev/null
26095   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26096   exec 5>>config.log
26097   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26098   # would make configure fail if this is the last instruction.
26099   $ac_cs_success || { (exit 1); exit 1; }
26100 fi
26101