chiark / gitweb /
Remove some leftover files
[sympathy.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="src/libsympathy.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 CC
808 CFLAGS
809 LDFLAGS
810 CPPFLAGS
811 ac_ct_CC
812 EXEEXT
813 OBJEXT
814 LIBSYMPATHY_MAJOR_VERSION
815 LIBSYMPATHY_MINOR_VERSION
816 LIBSYMPATHY_MICRO_VERSION
817 LIBSYMPATHY_VERSION
818 LIBSYMPATHY_INTERFACE_VERSION_MIN
819 LIBSYMPATHY_INTERFACE_VERSION_MAX
820 LIBSYMPATHY_INTERFACE_REVISION
821 LT_RELEASE
822 LT_CURRENT
823 LT_REVISION
824 LT_AGE
825 INSTALL_PROGRAM
826 INSTALL_SCRIPT
827 INSTALL_DATA
828 am__isrc
829 CYGPATH_W
830 PACKAGE
831 VERSION
832 ACLOCAL
833 AUTOCONF
834 AUTOMAKE
835 AUTOHEADER
836 MAKEINFO
837 install_sh
838 STRIP
839 INSTALL_STRIP_PROGRAM
840 mkdir_p
841 AWK
842 SET_MAKE
843 am__leading_dot
844 AMTAR
845 am__tar
846 am__untar
847 DEPDIR
848 am__include
849 am__quote
850 AMDEP_TRUE
851 AMDEP_FALSE
852 AMDEPBACKSLASH
853 CCDEPMODE
854 am__fastdepCC_TRUE
855 am__fastdepCC_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 CPP
874 CXX
875 CXXFLAGS
876 ac_ct_CXX
877 CXXDEPMODE
878 am__fastdepCXX_TRUE
879 am__fastdepCXX_FALSE
880 CXXCPP
881 F77
882 FFLAGS
883 ac_ct_F77
884 LIBTOOL
885 MD5SUM
886 G2_TM_H
887 G2_HAVE_STDINT_H
888 G2_HAVE_SYS_INT_TYPES_H
889 G2_HAVE_UNISTD_H
890 G2_HAVE_MALLOC_H
891 G2_TIME_WITH_SYS_TIME
892 G2_TM_IN_SYS_TIME
893 LIBOBJS
894 LTLIBOBJS'
895 ac_subst_files=''
896       ac_precious_vars='build_alias
897 host_alias
898 target_alias
899 CC
900 CFLAGS
901 LDFLAGS
902 LIBS
903 CPPFLAGS
904 CPP
905 CXX
906 CXXFLAGS
907 CCC
908 CXXCPP
909 F77
910 FFLAGS'
911
912
913 # Initialize some variables set by options.
914 ac_init_help=
915 ac_init_version=false
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
918 cache_file=/dev/null
919 exec_prefix=NONE
920 no_create=
921 no_recursion=
922 prefix=NONE
923 program_prefix=NONE
924 program_suffix=NONE
925 program_transform_name=s,x,x,
926 silent=
927 site=
928 srcdir=
929 verbose=
930 x_includes=NONE
931 x_libraries=NONE
932
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE}'
950 infodir='${datarootdir}/info'
951 htmldir='${docdir}'
952 dvidir='${docdir}'
953 pdfdir='${docdir}'
954 psdir='${docdir}'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
958
959 ac_prev=
960 ac_dashdash=
961 for ac_option
962 do
963   # If the previous option needs an argument, assign it.
964   if test -n "$ac_prev"; then
965     eval $ac_prev=\$ac_option
966     ac_prev=
967     continue
968   fi
969
970   case $ac_option in
971   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972   *)    ac_optarg=yes ;;
973   esac
974
975   # Accept the important Cygnus configure options, so we can diagnose typos.
976
977   case $ac_dashdash$ac_option in
978   --)
979     ac_dashdash=yes ;;
980
981   -bindir | --bindir | --bindi | --bind | --bin | --bi)
982     ac_prev=bindir ;;
983   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984     bindir=$ac_optarg ;;
985
986   -build | --build | --buil | --bui | --bu)
987     ac_prev=build_alias ;;
988   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989     build_alias=$ac_optarg ;;
990
991   -cache-file | --cache-file | --cache-fil | --cache-fi \
992   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993     ac_prev=cache_file ;;
994   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996     cache_file=$ac_optarg ;;
997
998   --config-cache | -C)
999     cache_file=config.cache ;;
1000
1001   -datadir | --datadir | --datadi | --datad)
1002     ac_prev=datadir ;;
1003   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004     datadir=$ac_optarg ;;
1005
1006   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007   | --dataroo | --dataro | --datar)
1008     ac_prev=datarootdir ;;
1009   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011     datarootdir=$ac_optarg ;;
1012
1013   -disable-* | --disable-*)
1014     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018    { (exit 1); exit 1; }; }
1019     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020     eval enable_$ac_feature=no ;;
1021
1022   -docdir | --docdir | --docdi | --doc | --do)
1023     ac_prev=docdir ;;
1024   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025     docdir=$ac_optarg ;;
1026
1027   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028     ac_prev=dvidir ;;
1029   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030     dvidir=$ac_optarg ;;
1031
1032   -enable-* | --enable-*)
1033     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034     # Reject names that are not valid shell variable names.
1035     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037    { (exit 1); exit 1; }; }
1038     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039     eval enable_$ac_feature=\$ac_optarg ;;
1040
1041   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043   | --exec | --exe | --ex)
1044     ac_prev=exec_prefix ;;
1045   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047   | --exec=* | --exe=* | --ex=*)
1048     exec_prefix=$ac_optarg ;;
1049
1050   -gas | --gas | --ga | --g)
1051     # Obsolete; use --with-gas.
1052     with_gas=yes ;;
1053
1054   -help | --help | --hel | --he | -h)
1055     ac_init_help=long ;;
1056   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057     ac_init_help=recursive ;;
1058   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059     ac_init_help=short ;;
1060
1061   -host | --host | --hos | --ho)
1062     ac_prev=host_alias ;;
1063   -host=* | --host=* | --hos=* | --ho=*)
1064     host_alias=$ac_optarg ;;
1065
1066   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067     ac_prev=htmldir ;;
1068   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069   | --ht=*)
1070     htmldir=$ac_optarg ;;
1071
1072   -includedir | --includedir | --includedi | --included | --include \
1073   | --includ | --inclu | --incl | --inc)
1074     ac_prev=includedir ;;
1075   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076   | --includ=* | --inclu=* | --incl=* | --inc=*)
1077     includedir=$ac_optarg ;;
1078
1079   -infodir | --infodir | --infodi | --infod | --info | --inf)
1080     ac_prev=infodir ;;
1081   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082     infodir=$ac_optarg ;;
1083
1084   -libdir | --libdir | --libdi | --libd)
1085     ac_prev=libdir ;;
1086   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087     libdir=$ac_optarg ;;
1088
1089   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090   | --libexe | --libex | --libe)
1091     ac_prev=libexecdir ;;
1092   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093   | --libexe=* | --libex=* | --libe=*)
1094     libexecdir=$ac_optarg ;;
1095
1096   -localedir | --localedir | --localedi | --localed | --locale)
1097     ac_prev=localedir ;;
1098   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099     localedir=$ac_optarg ;;
1100
1101   -localstatedir | --localstatedir | --localstatedi | --localstated \
1102   | --localstate | --localstat | --localsta | --localst | --locals)
1103     ac_prev=localstatedir ;;
1104   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106     localstatedir=$ac_optarg ;;
1107
1108   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109     ac_prev=mandir ;;
1110   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111     mandir=$ac_optarg ;;
1112
1113   -nfp | --nfp | --nf)
1114     # Obsolete; use --without-fp.
1115     with_fp=no ;;
1116
1117   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118   | --no-cr | --no-c | -n)
1119     no_create=yes ;;
1120
1121   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123     no_recursion=yes ;;
1124
1125   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127   | --oldin | --oldi | --old | --ol | --o)
1128     ac_prev=oldincludedir ;;
1129   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132     oldincludedir=$ac_optarg ;;
1133
1134   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135     ac_prev=prefix ;;
1136   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137     prefix=$ac_optarg ;;
1138
1139   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140   | --program-pre | --program-pr | --program-p)
1141     ac_prev=program_prefix ;;
1142   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144     program_prefix=$ac_optarg ;;
1145
1146   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147   | --program-suf | --program-su | --program-s)
1148     ac_prev=program_suffix ;;
1149   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151     program_suffix=$ac_optarg ;;
1152
1153   -program-transform-name | --program-transform-name \
1154   | --program-transform-nam | --program-transform-na \
1155   | --program-transform-n | --program-transform- \
1156   | --program-transform | --program-transfor \
1157   | --program-transfo | --program-transf \
1158   | --program-trans | --program-tran \
1159   | --progr-tra | --program-tr | --program-t)
1160     ac_prev=program_transform_name ;;
1161   -program-transform-name=* | --program-transform-name=* \
1162   | --program-transform-nam=* | --program-transform-na=* \
1163   | --program-transform-n=* | --program-transform-=* \
1164   | --program-transform=* | --program-transfor=* \
1165   | --program-transfo=* | --program-transf=* \
1166   | --program-trans=* | --program-tran=* \
1167   | --progr-tra=* | --program-tr=* | --program-t=*)
1168     program_transform_name=$ac_optarg ;;
1169
1170   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171     ac_prev=pdfdir ;;
1172   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173     pdfdir=$ac_optarg ;;
1174
1175   -psdir | --psdir | --psdi | --psd | --ps)
1176     ac_prev=psdir ;;
1177   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178     psdir=$ac_optarg ;;
1179
1180   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181   | -silent | --silent | --silen | --sile | --sil)
1182     silent=yes ;;
1183
1184   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185     ac_prev=sbindir ;;
1186   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187   | --sbi=* | --sb=*)
1188     sbindir=$ac_optarg ;;
1189
1190   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192   | --sharedst | --shareds | --shared | --share | --shar \
1193   | --sha | --sh)
1194     ac_prev=sharedstatedir ;;
1195   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198   | --sha=* | --sh=*)
1199     sharedstatedir=$ac_optarg ;;
1200
1201   -site | --site | --sit)
1202     ac_prev=site ;;
1203   -site=* | --site=* | --sit=*)
1204     site=$ac_optarg ;;
1205
1206   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207     ac_prev=srcdir ;;
1208   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209     srcdir=$ac_optarg ;;
1210
1211   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212   | --syscon | --sysco | --sysc | --sys | --sy)
1213     ac_prev=sysconfdir ;;
1214   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216     sysconfdir=$ac_optarg ;;
1217
1218   -target | --target | --targe | --targ | --tar | --ta | --t)
1219     ac_prev=target_alias ;;
1220   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221     target_alias=$ac_optarg ;;
1222
1223   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224     verbose=yes ;;
1225
1226   -version | --version | --versio | --versi | --vers | -V)
1227     ac_init_version=: ;;
1228
1229   -with-* | --with-*)
1230     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231     # Reject names that are not valid shell variable names.
1232     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233       { echo "$as_me: error: invalid package name: $ac_package" >&2
1234    { (exit 1); exit 1; }; }
1235     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236     eval with_$ac_package=\$ac_optarg ;;
1237
1238   -without-* | --without-*)
1239     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242       { echo "$as_me: error: invalid package name: $ac_package" >&2
1243    { (exit 1); exit 1; }; }
1244     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245     eval with_$ac_package=no ;;
1246
1247   --x)
1248     # Obsolete; use --with-x.
1249     with_x=yes ;;
1250
1251   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252   | --x-incl | --x-inc | --x-in | --x-i)
1253     ac_prev=x_includes ;;
1254   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256     x_includes=$ac_optarg ;;
1257
1258   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260     ac_prev=x_libraries ;;
1261   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263     x_libraries=$ac_optarg ;;
1264
1265   -*) { echo "$as_me: error: unrecognized option: $ac_option
1266 Try \`$0 --help' for more information." >&2
1267    { (exit 1); exit 1; }; }
1268     ;;
1269
1270   *=*)
1271     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1274       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275    { (exit 1); exit 1; }; }
1276     eval $ac_envvar=\$ac_optarg
1277     export $ac_envvar ;;
1278
1279   *)
1280     # FIXME: should be removed in autoconf 3.0.
1281     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285     ;;
1286
1287   esac
1288 done
1289
1290 if test -n "$ac_prev"; then
1291   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292   { echo "$as_me: error: missing argument to $ac_option" >&2
1293    { (exit 1); exit 1; }; }
1294 fi
1295
1296 # Be sure to have absolute directory names.
1297 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298                 datadir sysconfdir sharedstatedir localstatedir includedir \
1299                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300                 libdir localedir mandir
1301 do
1302   eval ac_val=\$$ac_var
1303   case $ac_val in
1304     [\\/$]* | ?:[\\/]* )  continue;;
1305     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306   esac
1307   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308    { (exit 1); exit 1; }; }
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320   if test "x$build_alias" = x; then
1321     cross_compiling=maybe
1322     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323     If a cross compiler is detected then cross compile mode will be used." >&2
1324   elif test "x$build_alias" != "x$host_alias"; then
1325     cross_compiling=yes
1326   fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338   { echo "$as_me: error: Working directory cannot be determined" >&2
1339    { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341   { echo "$as_me: error: pwd does not report name of working directory" >&2
1342    { (exit 1); exit 1; }; }
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347   ac_srcdir_defaulted=yes
1348   # Try the directory containing this script, then the parent directory.
1349   ac_confdir=`$as_dirname -- "$0" ||
1350 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351          X"$0" : 'X\(//\)[^/]' \| \
1352          X"$0" : 'X\(//\)$' \| \
1353          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1354 echo X"$0" |
1355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\/\)[^/].*/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)$/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\).*/{
1368             s//\1/
1369             q
1370           }
1371           s/.*/./; q'`
1372   srcdir=$ac_confdir
1373   if test ! -r "$srcdir/$ac_unique_file"; then
1374     srcdir=..
1375   fi
1376 else
1377   ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382    { (exit 1); exit 1; }; }
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1387    { (exit 1); exit 1; }; }
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures this package to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR           user executables [EPREFIX/bin]
1448   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR       program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR           object code libraries [EPREFIX/lib]
1454   --includedir=DIR       C header files [PREFIX/include]
1455   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR          info documentation [DATAROOTDIR/info]
1459   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR           man documentation [DATAROOTDIR/man]
1461   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1462   --htmldir=DIR          html documentation [DOCDIR]
1463   --dvidir=DIR           dvi documentation [DOCDIR]
1464   --pdfdir=DIR           pdf documentation [DOCDIR]
1465   --psdir=DIR            ps documentation [DOCDIR]
1466 _ACEOF
1467
1468   cat <<\_ACEOF
1469
1470 Program names:
1471   --program-prefix=PREFIX            prepend PREFIX to installed program names
1472   --program-suffix=SUFFIX            append SUFFIX to installed program names
1473   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1474
1475 System types:
1476   --build=BUILD     configure for building on BUILD [guessed]
1477   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482
1483   cat <<\_ACEOF
1484
1485 Optional Features:
1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488   --disable-largefile     omit support for large files
1489   --disable-dependency-tracking  speeds up one-time build
1490   --enable-dependency-tracking   do not reject slow dependency extractors
1491   --enable-shared[=PKGS]  build shared libraries [default=yes]
1492   --enable-static[=PKGS]  build static libraries [default=yes]
1493   --enable-fast-install[=PKGS]
1494                           optimize for fast installation [default=yes]
1495   --disable-libtool-lock  avoid locking (might break parallel builds)
1496
1497 Optional Packages:
1498   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1499   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1500   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1501   --with-pic              try to use only PIC/non-PIC objects [default=use
1502                           both]
1503   --with-tags[=TAGS]      include additional configurations [automatic]
1504
1505 Some influential environment variables:
1506   CC          C compiler command
1507   CFLAGS      C compiler flags
1508   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1509               nonstandard directory <lib dir>
1510   LIBS        libraries to pass to the linker, e.g. -l<library>
1511   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1512               you have headers in a nonstandard directory <include dir>
1513   CPP         C preprocessor
1514   CXX         C++ compiler command
1515   CXXFLAGS    C++ compiler flags
1516   CXXCPP      C++ preprocessor
1517   F77         Fortran 77 compiler command
1518   FFLAGS      Fortran 77 compiler flags
1519
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1522
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528   # If there are subdirs, report their specific --help.
1529   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530     test -d "$ac_dir" || continue
1531     ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537   # A ".." for each directory in $ac_dir_suffix.
1538   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539   case $ac_top_builddir_sub in
1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542   esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550   .)  # We are building in place.
1551     ac_srcdir=.
1552     ac_top_srcdir=$ac_top_builddir_sub
1553     ac_abs_top_srcdir=$ac_pwd ;;
1554   [\\/]* | ?:[\\/]* )  # Absolute name.
1555     ac_srcdir=$srcdir$ac_dir_suffix;
1556     ac_top_srcdir=$srcdir
1557     ac_abs_top_srcdir=$srcdir ;;
1558   *) # Relative name.
1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565     cd "$ac_dir" || { ac_status=$?; continue; }
1566     # Check for guested configure.
1567     if test -f "$ac_srcdir/configure.gnu"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570     elif test -f "$ac_srcdir/configure"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure" --help=recursive
1573     else
1574       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575     fi || ac_status=$?
1576     cd "$ac_pwd" || { ac_status=$?; break; }
1577   done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582   cat <<\_ACEOF
1583 configure
1584 generated by GNU Autoconf 2.61
1585
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591   exit
1592 fi
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1596
1597 It was created by $as_me, which was
1598 generated by GNU Autoconf 2.61.  Invocation command line was
1599
1600   $ $0 $@
1601
1602 _ACEOF
1603 exec 5>>config.log
1604 {
1605 cat <<_ASUNAME
1606 ## --------- ##
1607 ## Platform. ##
1608 ## --------- ##
1609
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1618
1619 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1620 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1623 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1624 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1625 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1626
1627 _ASUNAME
1628
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   echo "PATH: $as_dir"
1635 done
1636 IFS=$as_save_IFS
1637
1638 } >&5
1639
1640 cat >&5 <<_ACEOF
1641
1642
1643 ## ----------- ##
1644 ## Core tests. ##
1645 ## ----------- ##
1646
1647 _ACEOF
1648
1649
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_configure_args=
1656 ac_configure_args0=
1657 ac_configure_args1=
1658 ac_must_keep_next=false
1659 for ac_pass in 1 2
1660 do
1661   for ac_arg
1662   do
1663     case $ac_arg in
1664     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666     | -silent | --silent | --silen | --sile | --sil)
1667       continue ;;
1668     *\'*)
1669       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670     esac
1671     case $ac_pass in
1672     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673     2)
1674       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675       if test $ac_must_keep_next = true; then
1676         ac_must_keep_next=false # Got value, back to normal.
1677       else
1678         case $ac_arg in
1679           *=* | --config-cache | -C | -disable-* | --disable-* \
1680           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682           | -with-* | --with-* | -without-* | --without-* | --x)
1683             case "$ac_configure_args0 " in
1684               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685             esac
1686             ;;
1687           -* ) ac_must_keep_next=true ;;
1688         esac
1689       fi
1690       ac_configure_args="$ac_configure_args '$ac_arg'"
1691       ;;
1692     esac
1693   done
1694 done
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log.  We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704   # Save into config.log some information that might help in debugging.
1705   {
1706     echo
1707
1708     cat <<\_ASBOX
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1712 _ASBOX
1713     echo
1714     # The following way of writing the cache mishandles newlines in values,
1715 (
1716   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717     eval ac_val=\$$ac_var
1718     case $ac_val in #(
1719     *${as_nl}*)
1720       case $ac_var in #(
1721       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723       esac
1724       case $ac_var in #(
1725       _ | IFS | as_nl) ;; #(
1726       *) $as_unset $ac_var ;;
1727       esac ;;
1728     esac
1729   done
1730   (set) 2>&1 |
1731     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732     *${as_nl}ac_space=\ *)
1733       sed -n \
1734         "s/'\''/'\''\\\\'\'''\''/g;
1735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736       ;; #(
1737     *)
1738       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739       ;;
1740     esac |
1741     sort
1742 )
1743     echo
1744
1745     cat <<\_ASBOX
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1749 _ASBOX
1750     echo
1751     for ac_var in $ac_subst_vars
1752     do
1753       eval ac_val=\$$ac_var
1754       case $ac_val in
1755       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756       esac
1757       echo "$ac_var='\''$ac_val'\''"
1758     done | sort
1759     echo
1760
1761     if test -n "$ac_subst_files"; then
1762       cat <<\_ASBOX
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1766 _ASBOX
1767       echo
1768       for ac_var in $ac_subst_files
1769       do
1770         eval ac_val=\$$ac_var
1771         case $ac_val in
1772         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773         esac
1774         echo "$ac_var='\''$ac_val'\''"
1775       done | sort
1776       echo
1777     fi
1778
1779     if test -s confdefs.h; then
1780       cat <<\_ASBOX
1781 ## ----------- ##
1782 ## confdefs.h. ##
1783 ## ----------- ##
1784 _ASBOX
1785       echo
1786       cat confdefs.h
1787       echo
1788     fi
1789     test "$ac_signal" != 0 &&
1790       echo "$as_me: caught signal $ac_signal"
1791     echo "$as_me: exit $exit_status"
1792   } >&5
1793   rm -f core *.core core.conftest.* &&
1794     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795     exit $exit_status
1796 ' 0
1797 for ac_signal in 1 2 13 15; do
1798   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 done
1800 ac_signal=0
1801
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1804
1805 # Predefined preprocessor variables.
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 _ACEOF
1830
1831
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835   set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838 else
1839   set x "$ac_default_prefix/share/config.site" \
1840         "$ac_default_prefix/etc/config.site"
1841 fi
1842 shift
1843 for ac_site_file
1844 do
1845   if test -r "$ac_site_file"; then
1846     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848     sed 's/^/| /' "$ac_site_file" >&5
1849     . "$ac_site_file"
1850   fi
1851 done
1852
1853 if test -r "$cache_file"; then
1854   # Some versions of bash will fail to source /dev/null (special
1855   # files actually), so we avoid doing that.
1856   if test -f "$cache_file"; then
1857     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1859     case $cache_file in
1860       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861       *)                      . "./$cache_file";;
1862     esac
1863   fi
1864 else
1865   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1867   >$cache_file
1868 fi
1869
1870 # Check that the precious variables saved in the cache have kept the same
1871 # value.
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875   eval ac_new_set=\$ac_env_${ac_var}_set
1876   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877   eval ac_new_val=\$ac_env_${ac_var}_value
1878   case $ac_old_set,$ac_new_set in
1879     set,)
1880       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882       ac_cache_corrupted=: ;;
1883     ,set)
1884       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886       ac_cache_corrupted=: ;;
1887     ,);;
1888     *)
1889       if test "x$ac_old_val" != "x$ac_new_val"; then
1890         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1893 echo "$as_me:   former value:  $ac_old_val" >&2;}
1894         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1895 echo "$as_me:   current value: $ac_new_val" >&2;}
1896         ac_cache_corrupted=:
1897       fi;;
1898   esac
1899   # Pass precious variables to config.status.
1900   if test "$ac_new_set" = set; then
1901     case $ac_new_val in
1902     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903     *) ac_arg=$ac_var=$ac_new_val ;;
1904     esac
1905     case " $ac_configure_args " in
1906       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1907       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908     esac
1909   fi
1910 done
1911 if $ac_cache_corrupted; then
1912   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916    { (exit 1); exit 1; }; }
1917 fi
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935 ac_ext=c
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942
1943 ac_ext=c
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948 if test -n "$ac_tool_prefix"; then
1949   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1953 if test "${ac_cv_prog_CC+set}" = set; then
1954   echo $ECHO_N "(cached) $ECHO_C" >&6
1955 else
1956   if test -n "$CC"; then
1957   ac_cv_prog_CC="$CC" # Let the user override the test.
1958 else
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 for as_dir in $PATH
1961 do
1962   IFS=$as_save_IFS
1963   test -z "$as_dir" && as_dir=.
1964   for ac_exec_ext in '' $ac_executable_extensions; do
1965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1966     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968     break 2
1969   fi
1970 done
1971 done
1972 IFS=$as_save_IFS
1973
1974 fi
1975 fi
1976 CC=$ac_cv_prog_CC
1977 if test -n "$CC"; then
1978   { echo "$as_me:$LINENO: result: $CC" >&5
1979 echo "${ECHO_T}$CC" >&6; }
1980 else
1981   { echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6; }
1983 fi
1984
1985
1986 fi
1987 if test -z "$ac_cv_prog_CC"; then
1988   ac_ct_CC=$CC
1989   # Extract the first word of "gcc", so it can be a program name with args.
1990 set dummy gcc; ac_word=$2
1991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   if test -n "$ac_ct_CC"; then
1997   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004   for ac_exec_ext in '' $ac_executable_extensions; do
2005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2006     ac_cv_prog_ac_ct_CC="gcc"
2007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008     break 2
2009   fi
2010 done
2011 done
2012 IFS=$as_save_IFS
2013
2014 fi
2015 fi
2016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017 if test -n "$ac_ct_CC"; then
2018   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2019 echo "${ECHO_T}$ac_ct_CC" >&6; }
2020 else
2021   { echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6; }
2023 fi
2024
2025   if test "x$ac_ct_CC" = x; then
2026     CC=""
2027   else
2028     case $cross_compiling:$ac_tool_warned in
2029 yes:)
2030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2031 whose name does not start with the host triplet.  If you think this
2032 configuration is useful to you, please write to autoconf@gnu.org." >&5
2033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2034 whose name does not start with the host triplet.  If you think this
2035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2036 ac_tool_warned=yes ;;
2037 esac
2038     CC=$ac_ct_CC
2039   fi
2040 else
2041   CC="$ac_cv_prog_CC"
2042 fi
2043
2044 if test -z "$CC"; then
2045           if test -n "$ac_tool_prefix"; then
2046     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047 set dummy ${ac_tool_prefix}cc; ac_word=$2
2048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2050 if test "${ac_cv_prog_CC+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   if test -n "$CC"; then
2054   ac_cv_prog_CC="$CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   for ac_exec_ext in '' $ac_executable_extensions; do
2062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2063     ac_cv_prog_CC="${ac_tool_prefix}cc"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069 IFS=$as_save_IFS
2070
2071 fi
2072 fi
2073 CC=$ac_cv_prog_CC
2074 if test -n "$CC"; then
2075   { echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6; }
2077 else
2078   { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2080 fi
2081
2082
2083   fi
2084 fi
2085 if test -z "$CC"; then
2086   # Extract the first word of "cc", so it can be a program name with args.
2087 set dummy cc; ac_word=$2
2088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2090 if test "${ac_cv_prog_CC+set}" = set; then
2091   echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093   if test -n "$CC"; then
2094   ac_cv_prog_CC="$CC" # Let the user override the test.
2095 else
2096   ac_prog_rejected=no
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100   IFS=$as_save_IFS
2101   test -z "$as_dir" && as_dir=.
2102   for ac_exec_ext in '' $ac_executable_extensions; do
2103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2105        ac_prog_rejected=yes
2106        continue
2107      fi
2108     ac_cv_prog_CC="cc"
2109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110     break 2
2111   fi
2112 done
2113 done
2114 IFS=$as_save_IFS
2115
2116 if test $ac_prog_rejected = yes; then
2117   # We found a bogon in the path, so make sure we never use it.
2118   set dummy $ac_cv_prog_CC
2119   shift
2120   if test $# != 0; then
2121     # We chose a different compiler from the bogus one.
2122     # However, it has the same basename, so the bogon will be chosen
2123     # first if we set CC to just the basename; use the full file name.
2124     shift
2125     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2126   fi
2127 fi
2128 fi
2129 fi
2130 CC=$ac_cv_prog_CC
2131 if test -n "$CC"; then
2132   { echo "$as_me:$LINENO: result: $CC" >&5
2133 echo "${ECHO_T}$CC" >&6; }
2134 else
2135   { echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6; }
2137 fi
2138
2139
2140 fi
2141 if test -z "$CC"; then
2142   if test -n "$ac_tool_prefix"; then
2143   for ac_prog in cl.exe
2144   do
2145     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2149 if test "${ac_cv_prog_CC+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   if test -n "$CC"; then
2153   ac_cv_prog_CC="$CC" # Let the user override the test.
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
2158   IFS=$as_save_IFS
2159   test -z "$as_dir" && as_dir=.
2160   for ac_exec_ext in '' $ac_executable_extensions; do
2161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164     break 2
2165   fi
2166 done
2167 done
2168 IFS=$as_save_IFS
2169
2170 fi
2171 fi
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174   { echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6; }
2176 else
2177   { echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6; }
2179 fi
2180
2181
2182     test -n "$CC" && break
2183   done
2184 fi
2185 if test -z "$CC"; then
2186   ac_ct_CC=$CC
2187   for ac_prog in cl.exe
2188 do
2189   # Extract the first word of "$ac_prog", so it can be a program name with args.
2190 set dummy $ac_prog; ac_word=$2
2191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   if test -n "$ac_ct_CC"; then
2197   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204   for ac_exec_ext in '' $ac_executable_extensions; do
2205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206     ac_cv_prog_ac_ct_CC="$ac_prog"
2207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208     break 2
2209   fi
2210 done
2211 done
2212 IFS=$as_save_IFS
2213
2214 fi
2215 fi
2216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217 if test -n "$ac_ct_CC"; then
2218   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2219 echo "${ECHO_T}$ac_ct_CC" >&6; }
2220 else
2221   { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2223 fi
2224
2225
2226   test -n "$ac_ct_CC" && break
2227 done
2228
2229   if test "x$ac_ct_CC" = x; then
2230     CC=""
2231   else
2232     case $cross_compiling:$ac_tool_warned in
2233 yes:)
2234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2235 whose name does not start with the host triplet.  If you think this
2236 configuration is useful to you, please write to autoconf@gnu.org." >&5
2237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2238 whose name does not start with the host triplet.  If you think this
2239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2240 ac_tool_warned=yes ;;
2241 esac
2242     CC=$ac_ct_CC
2243   fi
2244 fi
2245
2246 fi
2247
2248
2249 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: no acceptable C compiler found in \$PATH
2252 See \`config.log' for more details." >&2;}
2253    { (exit 1); exit 1; }; }
2254
2255 # Provide some information about the compiler.
2256 echo "$as_me:$LINENO: checking for C compiler version" >&5
2257 ac_compiler=`set X $ac_compile; echo $2`
2258 { (ac_try="$ac_compiler --version >&5"
2259 case "(($ac_try" in
2260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261   *) ac_try_echo=$ac_try;;
2262 esac
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264   (eval "$ac_compiler --version >&5") 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }
2268 { (ac_try="$ac_compiler -v >&5"
2269 case "(($ac_try" in
2270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271   *) ac_try_echo=$ac_try;;
2272 esac
2273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274   (eval "$ac_compiler -v >&5") 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }
2278 { (ac_try="$ac_compiler -V >&5"
2279 case "(($ac_try" in
2280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281   *) ac_try_echo=$ac_try;;
2282 esac
2283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284   (eval "$ac_compiler -V >&5") 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }
2288
2289 cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 ac_clean_files_save=$ac_clean_files
2305 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2306 # Try to create an executable without -o first, disregard a.out.
2307 # It will help us diagnose broken compilers, and finding out an intuition
2308 # of exeext.
2309 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2310 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2311 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2312 #
2313 # List of possible output files, starting from the most likely.
2314 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2315 # only as a last resort.  b.out is created by i960 compilers.
2316 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2317 #
2318 # The IRIX 6 linker writes into existing files which may not be
2319 # executable, retaining their permissions.  Remove them first so a
2320 # subsequent execution test works.
2321 ac_rmfiles=
2322 for ac_file in $ac_files
2323 do
2324   case $ac_file in
2325     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2326     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2327   esac
2328 done
2329 rm -f $ac_rmfiles
2330
2331 if { (ac_try="$ac_link_default"
2332 case "(($ac_try" in
2333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334   *) ac_try_echo=$ac_try;;
2335 esac
2336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2337   (eval "$ac_link_default") 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); }; then
2341   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2342 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2343 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2344 # so that the user can short-circuit this test for compilers unknown to
2345 # Autoconf.
2346 for ac_file in $ac_files ''
2347 do
2348   test -f "$ac_file" || continue
2349   case $ac_file in
2350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2351         ;;
2352     [ab].out )
2353         # We found the default executable, but exeext='' is most
2354         # certainly right.
2355         break;;
2356     *.* )
2357         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2358         then :; else
2359            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2360         fi
2361         # We set ac_cv_exeext here because the later test for it is not
2362         # safe: cross compilers may not add the suffix if given an `-o'
2363         # argument, so we may need to know it at that point already.
2364         # Even if this section looks crufty: it has the advantage of
2365         # actually working.
2366         break;;
2367     * )
2368         break;;
2369   esac
2370 done
2371 test "$ac_cv_exeext" = no && ac_cv_exeext=
2372
2373 else
2374   ac_file=''
2375 fi
2376
2377 { echo "$as_me:$LINENO: result: $ac_file" >&5
2378 echo "${ECHO_T}$ac_file" >&6; }
2379 if test -z "$ac_file"; then
2380   echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: C compiler cannot create executables
2386 See \`config.log' for more details." >&2;}
2387    { (exit 77); exit 77; }; }
2388 fi
2389
2390 ac_exeext=$ac_cv_exeext
2391
2392 # Check that the compiler produces executables we can run.  If not, either
2393 # the compiler is broken, or we cross compile.
2394 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2395 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2396 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2397 # If not cross compiling, check that we can run a simple program.
2398 if test "$cross_compiling" != yes; then
2399   if { ac_try='./$ac_file'
2400   { (case "(($ac_try" in
2401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402   *) ac_try_echo=$ac_try;;
2403 esac
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405   (eval "$ac_try") 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; }; then
2409     cross_compiling=no
2410   else
2411     if test "$cross_compiling" = maybe; then
2412         cross_compiling=yes
2413     else
2414         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2415 If you meant to cross compile, use \`--host'.
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: cannot run C compiled programs.
2418 If you meant to cross compile, use \`--host'.
2419 See \`config.log' for more details." >&2;}
2420    { (exit 1); exit 1; }; }
2421     fi
2422   fi
2423 fi
2424 { echo "$as_me:$LINENO: result: yes" >&5
2425 echo "${ECHO_T}yes" >&6; }
2426
2427 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2428 ac_clean_files=$ac_clean_files_save
2429 # Check that the compiler produces executables we can run.  If not, either
2430 # the compiler is broken, or we cross compile.
2431 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2432 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2433 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2434 echo "${ECHO_T}$cross_compiling" >&6; }
2435
2436 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2437 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2438 if { (ac_try="$ac_link"
2439 case "(($ac_try" in
2440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441   *) ac_try_echo=$ac_try;;
2442 esac
2443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444   (eval "$ac_link") 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; then
2448   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2449 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2450 # work properly (i.e., refer to `conftest.exe'), while it won't with
2451 # `rm'.
2452 for ac_file in conftest.exe conftest conftest.*; do
2453   test -f "$ac_file" || continue
2454   case $ac_file in
2455     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2456     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457           break;;
2458     * ) break;;
2459   esac
2460 done
2461 else
2462   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2465 See \`config.log' for more details." >&2;}
2466    { (exit 1); exit 1; }; }
2467 fi
2468
2469 rm -f conftest$ac_cv_exeext
2470 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2471 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2472
2473 rm -f conftest.$ac_ext
2474 EXEEXT=$ac_cv_exeext
2475 ac_exeext=$EXEEXT
2476 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2477 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2478 if test "${ac_cv_objext+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487
2488 int
2489 main ()
2490 {
2491
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 rm -f conftest.o conftest.obj
2497 if { (ac_try="$ac_compile"
2498 case "(($ac_try" in
2499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500   *) ac_try_echo=$ac_try;;
2501 esac
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503   (eval "$ac_compile") 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }; then
2507   for ac_file in conftest.o conftest.obj conftest.*; do
2508   test -f "$ac_file" || continue;
2509   case $ac_file in
2510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2511     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2512        break;;
2513   esac
2514 done
2515 else
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2522 See \`config.log' for more details." >&2;}
2523    { (exit 1); exit 1; }; }
2524 fi
2525
2526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2527 fi
2528 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2529 echo "${ECHO_T}$ac_cv_objext" >&6; }
2530 OBJEXT=$ac_cv_objext
2531 ac_objext=$OBJEXT
2532 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h.  */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h.  */
2543
2544 int
2545 main ()
2546 {
2547 #ifndef __GNUC__
2548        choke me
2549 #endif
2550
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (ac_try="$ac_compile"
2557 case "(($ac_try" in
2558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559   *) ac_try_echo=$ac_try;;
2560 esac
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562   (eval "$ac_compile") 2>conftest.er1
2563   ac_status=$?
2564   grep -v '^ *+' conftest.er1 >conftest.err
2565   rm -f conftest.er1
2566   cat conftest.err >&5
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); } && {
2569          test -z "$ac_c_werror_flag" ||
2570          test ! -s conftest.err
2571        } && test -s conftest.$ac_objext; then
2572   ac_compiler_gnu=yes
2573 else
2574   echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577         ac_compiler_gnu=no
2578 fi
2579
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582
2583 fi
2584 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2586 GCC=`test $ac_compiler_gnu = yes && echo yes`
2587 ac_test_CFLAGS=${CFLAGS+set}
2588 ac_save_CFLAGS=$CFLAGS
2589 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2590 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_cc_g+set}" = set; then
2592   echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594   ac_save_c_werror_flag=$ac_c_werror_flag
2595    ac_c_werror_flag=yes
2596    ac_cv_prog_cc_g=no
2597    CFLAGS="-g"
2598    cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604
2605 int
2606 main ()
2607 {
2608
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (ac_try="$ac_compile"
2615 case "(($ac_try" in
2616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617   *) ac_try_echo=$ac_try;;
2618 esac
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620   (eval "$ac_compile") 2>conftest.er1
2621   ac_status=$?
2622   grep -v '^ *+' conftest.er1 >conftest.err
2623   rm -f conftest.er1
2624   cat conftest.err >&5
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); } && {
2627          test -z "$ac_c_werror_flag" ||
2628          test ! -s conftest.err
2629        } && test -s conftest.$ac_objext; then
2630   ac_cv_prog_cc_g=yes
2631 else
2632   echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2634
2635         CFLAGS=""
2636       cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h.  */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h.  */
2642
2643 int
2644 main ()
2645 {
2646
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (ac_try="$ac_compile"
2653 case "(($ac_try" in
2654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655   *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658   (eval "$ac_compile") 2>conftest.er1
2659   ac_status=$?
2660   grep -v '^ *+' conftest.er1 >conftest.err
2661   rm -f conftest.er1
2662   cat conftest.err >&5
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); } && {
2665          test -z "$ac_c_werror_flag" ||
2666          test ! -s conftest.err
2667        } && test -s conftest.$ac_objext; then
2668   :
2669 else
2670   echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673         ac_c_werror_flag=$ac_save_c_werror_flag
2674          CFLAGS="-g"
2675          cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h.  */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h.  */
2681
2682 int
2683 main ()
2684 {
2685
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (ac_try="$ac_compile"
2692 case "(($ac_try" in
2693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694   *) ac_try_echo=$ac_try;;
2695 esac
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697   (eval "$ac_compile") 2>conftest.er1
2698   ac_status=$?
2699   grep -v '^ *+' conftest.er1 >conftest.err
2700   rm -f conftest.er1
2701   cat conftest.err >&5
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); } && {
2704          test -z "$ac_c_werror_flag" ||
2705          test ! -s conftest.err
2706        } && test -s conftest.$ac_objext; then
2707   ac_cv_prog_cc_g=yes
2708 else
2709   echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2711
2712
2713 fi
2714
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 fi
2717
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719 fi
2720
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722    ac_c_werror_flag=$ac_save_c_werror_flag
2723 fi
2724 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2725 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2726 if test "$ac_test_CFLAGS" = set; then
2727   CFLAGS=$ac_save_CFLAGS
2728 elif test $ac_cv_prog_cc_g = yes; then
2729   if test "$GCC" = yes; then
2730     CFLAGS="-g -O2"
2731   else
2732     CFLAGS="-g"
2733   fi
2734 else
2735   if test "$GCC" = yes; then
2736     CFLAGS="-O2"
2737   else
2738     CFLAGS=
2739   fi
2740 fi
2741 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2742 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_cc_c89+set}" = set; then
2744   echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746   ac_cv_prog_cc_c89=no
2747 ac_save_CC=$CC
2748 cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h.  */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h.  */
2754 #include <stdarg.h>
2755 #include <stdio.h>
2756 #include <sys/types.h>
2757 #include <sys/stat.h>
2758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2759 struct buf { int x; };
2760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2761 static char *e (p, i)
2762      char **p;
2763      int i;
2764 {
2765   return p[i];
2766 }
2767 static char *f (char * (*g) (char **, int), char **p, ...)
2768 {
2769   char *s;
2770   va_list v;
2771   va_start (v,p);
2772   s = g (p, va_arg (v,int));
2773   va_end (v);
2774   return s;
2775 }
2776
2777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2778    function prototypes and stuff, but not '\xHH' hex character constants.
2779    These don't provoke an error unfortunately, instead are silently treated
2780    as 'x'.  The following induces an error, until -std is added to get
2781    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2782    array size at least.  It's necessary to write '\x00'==0 to get something
2783    that's true only with -std.  */
2784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2785
2786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2787    inside strings and character constants.  */
2788 #define FOO(x) 'x'
2789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2790
2791 int test (int i, double x);
2792 struct s1 {int (*f) (int a);};
2793 struct s2 {int (*f) (double a);};
2794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2795 int argc;
2796 char **argv;
2797 int
2798 main ()
2799 {
2800 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2801   ;
2802   return 0;
2803 }
2804 _ACEOF
2805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2806         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2807 do
2808   CC="$ac_save_CC $ac_arg"
2809   rm -f conftest.$ac_objext
2810 if { (ac_try="$ac_compile"
2811 case "(($ac_try" in
2812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813   *) ac_try_echo=$ac_try;;
2814 esac
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816   (eval "$ac_compile") 2>conftest.er1
2817   ac_status=$?
2818   grep -v '^ *+' conftest.er1 >conftest.err
2819   rm -f conftest.er1
2820   cat conftest.err >&5
2821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); } && {
2823          test -z "$ac_c_werror_flag" ||
2824          test ! -s conftest.err
2825        } && test -s conftest.$ac_objext; then
2826   ac_cv_prog_cc_c89=$ac_arg
2827 else
2828   echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831
2832 fi
2833
2834 rm -f core conftest.err conftest.$ac_objext
2835   test "x$ac_cv_prog_cc_c89" != "xno" && break
2836 done
2837 rm -f conftest.$ac_ext
2838 CC=$ac_save_CC
2839
2840 fi
2841 # AC_CACHE_VAL
2842 case "x$ac_cv_prog_cc_c89" in
2843   x)
2844     { echo "$as_me:$LINENO: result: none needed" >&5
2845 echo "${ECHO_T}none needed" >&6; } ;;
2846   xno)
2847     { echo "$as_me:$LINENO: result: unsupported" >&5
2848 echo "${ECHO_T}unsupported" >&6; } ;;
2849   *)
2850     CC="$CC $ac_cv_prog_cc_c89"
2851     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2852 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2853 esac
2854
2855
2856 ac_ext=c
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861
2862
2863 # Check whether --enable-largefile was given.
2864 if test "${enable_largefile+set}" = set; then
2865   enableval=$enable_largefile;
2866 fi
2867
2868 if test "$enable_largefile" != no; then
2869
2870   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2871 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
2872 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2873   echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875   ac_cv_sys_largefile_CC=no
2876      if test "$GCC" != yes; then
2877        ac_save_CC=$CC
2878        while :; do
2879          # IRIX 6.2 and later do not support large files by default,
2880          # so use the C compiler's -n32 option if that helps.
2881          cat >conftest.$ac_ext <<_ACEOF
2882 /* confdefs.h.  */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h.  */
2887 #include <sys/types.h>
2888  /* Check that off_t can represent 2**63 - 1 correctly.
2889     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2890     since some C++ compilers masquerading as C compilers
2891     incorrectly reject 9223372036854775807.  */
2892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2893   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2894                        && LARGE_OFF_T % 2147483647 == 1)
2895                       ? 1 : -1];
2896 int
2897 main ()
2898 {
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904          rm -f conftest.$ac_objext
2905 if { (ac_try="$ac_compile"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911   (eval "$ac_compile") 2>conftest.er1
2912   ac_status=$?
2913   grep -v '^ *+' conftest.er1 >conftest.err
2914   rm -f conftest.er1
2915   cat conftest.err >&5
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); } && {
2918          test -z "$ac_c_werror_flag" ||
2919          test ! -s conftest.err
2920        } && test -s conftest.$ac_objext; then
2921   break
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926
2927 fi
2928
2929 rm -f core conftest.err conftest.$ac_objext
2930          CC="$CC -n32"
2931          rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938   (eval "$ac_compile") 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } && {
2945          test -z "$ac_c_werror_flag" ||
2946          test ! -s conftest.err
2947        } && test -s conftest.$ac_objext; then
2948   ac_cv_sys_largefile_CC=' -n32'; break
2949 else
2950   echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953
2954 fi
2955
2956 rm -f core conftest.err conftest.$ac_objext
2957          break
2958        done
2959        CC=$ac_save_CC
2960        rm -f conftest.$ac_ext
2961     fi
2962 fi
2963 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2964 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
2965   if test "$ac_cv_sys_largefile_CC" != no; then
2966     CC=$CC$ac_cv_sys_largefile_CC
2967   fi
2968
2969   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2970 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
2971 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   while :; do
2975   cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981 #include <sys/types.h>
2982  /* Check that off_t can represent 2**63 - 1 correctly.
2983     We can't simply define LARGE_OFF_T to be 9223372036854775807,
2984     since some C++ compilers masquerading as C compilers
2985     incorrectly reject 9223372036854775807.  */
2986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2987   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2988                        && LARGE_OFF_T % 2147483647 == 1)
2989                       ? 1 : -1];
2990 int
2991 main ()
2992 {
2993
2994   ;
2995   return 0;
2996 }
2997 _ACEOF
2998 rm -f conftest.$ac_objext
2999 if { (ac_try="$ac_compile"
3000 case "(($ac_try" in
3001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002   *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005   (eval "$ac_compile") 2>conftest.er1
3006   ac_status=$?
3007   grep -v '^ *+' conftest.er1 >conftest.err
3008   rm -f conftest.er1
3009   cat conftest.err >&5
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); } && {
3012          test -z "$ac_c_werror_flag" ||
3013          test ! -s conftest.err
3014        } && test -s conftest.$ac_objext; then
3015   ac_cv_sys_file_offset_bits=no; break
3016 else
3017   echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020
3021 fi
3022
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 #define _FILE_OFFSET_BITS 64
3031 #include <sys/types.h>
3032  /* Check that off_t can represent 2**63 - 1 correctly.
3033     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3034     since some C++ compilers masquerading as C compilers
3035     incorrectly reject 9223372036854775807.  */
3036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3037   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3038                        && LARGE_OFF_T % 2147483647 == 1)
3039                       ? 1 : -1];
3040 int
3041 main ()
3042 {
3043
3044   ;
3045   return 0;
3046 }
3047 _ACEOF
3048 rm -f conftest.$ac_objext
3049 if { (ac_try="$ac_compile"
3050 case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_compile") 2>conftest.er1
3056   ac_status=$?
3057   grep -v '^ *+' conftest.er1 >conftest.err
3058   rm -f conftest.er1
3059   cat conftest.err >&5
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); } && {
3062          test -z "$ac_c_werror_flag" ||
3063          test ! -s conftest.err
3064        } && test -s conftest.$ac_objext; then
3065   ac_cv_sys_file_offset_bits=64; break
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070
3071 fi
3072
3073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074   ac_cv_sys_file_offset_bits=unknown
3075   break
3076 done
3077 fi
3078 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3079 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3080 case $ac_cv_sys_file_offset_bits in #(
3081   no | unknown) ;;
3082   *)
3083 cat >>confdefs.h <<_ACEOF
3084 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3085 _ACEOF
3086 ;;
3087 esac
3088 rm -f conftest*
3089   if test $ac_cv_sys_file_offset_bits = unknown; then
3090     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3091 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3092 if test "${ac_cv_sys_large_files+set}" = set; then
3093   echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095   while :; do
3096   cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h.  */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h.  */
3102 #include <sys/types.h>
3103  /* Check that off_t can represent 2**63 - 1 correctly.
3104     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3105     since some C++ compilers masquerading as C compilers
3106     incorrectly reject 9223372036854775807.  */
3107 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3108   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3109                        && LARGE_OFF_T % 2147483647 == 1)
3110                       ? 1 : -1];
3111 int
3112 main ()
3113 {
3114
3115   ;
3116   return 0;
3117 }
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_compile") 2>conftest.er1
3127   ac_status=$?
3128   grep -v '^ *+' conftest.er1 >conftest.err
3129   rm -f conftest.er1
3130   cat conftest.err >&5
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); } && {
3133          test -z "$ac_c_werror_flag" ||
3134          test ! -s conftest.err
3135        } && test -s conftest.$ac_objext; then
3136   ac_cv_sys_large_files=no; break
3137 else
3138   echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3140
3141
3142 fi
3143
3144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145   cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h.  */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h.  */
3151 #define _LARGE_FILES 1
3152 #include <sys/types.h>
3153  /* Check that off_t can represent 2**63 - 1 correctly.
3154     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3155     since some C++ compilers masquerading as C compilers
3156     incorrectly reject 9223372036854775807.  */
3157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3158   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3159                        && LARGE_OFF_T % 2147483647 == 1)
3160                       ? 1 : -1];
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3171 case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176   (eval "$ac_compile") 2>conftest.er1
3177   ac_status=$?
3178   grep -v '^ *+' conftest.er1 >conftest.err
3179   rm -f conftest.er1
3180   cat conftest.err >&5
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); } && {
3183          test -z "$ac_c_werror_flag" ||
3184          test ! -s conftest.err
3185        } && test -s conftest.$ac_objext; then
3186   ac_cv_sys_large_files=1; break
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191
3192 fi
3193
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195   ac_cv_sys_large_files=unknown
3196   break
3197 done
3198 fi
3199 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3200 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3201 case $ac_cv_sys_large_files in #(
3202   no | unknown) ;;
3203   *)
3204 cat >>confdefs.h <<_ACEOF
3205 #define _LARGE_FILES $ac_cv_sys_large_files
3206 _ACEOF
3207 ;;
3208 esac
3209 rm -f conftest*
3210   fi
3211 fi
3212
3213
3214
3215 LIBSYMPATHY_MAJOR_VERSION=`cat $srcdir/version-major`
3216 LIBSYMPATHY_MINOR_VERSION=`cat $srcdir/version-minor`
3217 LIBSYMPATHY_MICRO_VERSION=`cat $srcdir/version-micro`
3218
3219
3220
3221 LIBSYMPATHY_INTERFACE_VERSION_MIN=$LIBSYMPATHY_MINOR_VERSION
3222 LIBSYMPATHY_INTERFACE_VERSION_MAX=$LIBSYMPATHY_MINOR_VERSION
3223 LIBSYMPATHY_INTERFACE_REVISION=1
3224
3225 LIBSYMPATHY_VERSION=$LIBSYMPATHY_MAJOR_VERSION.$LIBSYMPATHY_MINOR_VERSION.$LIBSYMPATHY_MICRO_VERSION
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237 LT_RELEASE=$LIBSYMPATHY_MAJOR_VERSION.$LIBSYMPATHY_MINOR_VERSION
3238 LT_CURRENT=$LIBSYMPATHY_INTERFACE_VERSION_MAX
3239 LT_REVISION=$LIBSYMPATHY_MICRO_VERSION
3240 LT_AGE=`expr $LIBSYMPATHY_INTERFACE_VERSION_MAX - $LIBSYMPATHY_INTERFACE_VERSION_MIN`
3241
3242
3243
3244
3245
3246
3247 VERSION=$LIBSYMPATHY_VERSION
3248 PACKAGE=libsympathy
3249
3250 am__api_version='1.10'
3251
3252 ac_aux_dir=
3253 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3254   if test -f "$ac_dir/install-sh"; then
3255     ac_aux_dir=$ac_dir
3256     ac_install_sh="$ac_aux_dir/install-sh -c"
3257     break
3258   elif test -f "$ac_dir/install.sh"; then
3259     ac_aux_dir=$ac_dir
3260     ac_install_sh="$ac_aux_dir/install.sh -c"
3261     break
3262   elif test -f "$ac_dir/shtool"; then
3263     ac_aux_dir=$ac_dir
3264     ac_install_sh="$ac_aux_dir/shtool install -c"
3265     break
3266   fi
3267 done
3268 if test -z "$ac_aux_dir"; then
3269   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3270 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3271    { (exit 1); exit 1; }; }
3272 fi
3273
3274 # These three variables are undocumented and unsupported,
3275 # and are intended to be withdrawn in a future Autoconf release.
3276 # They can cause serious problems if a builder's source tree is in a directory
3277 # whose full name contains unusual characters.
3278 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3279 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3280 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3281
3282
3283 # Find a good install program.  We prefer a C program (faster),
3284 # so one script is as good as another.  But avoid the broken or
3285 # incompatible versions:
3286 # SysV /etc/install, /usr/sbin/install
3287 # SunOS /usr/etc/install
3288 # IRIX /sbin/install
3289 # AIX /bin/install
3290 # AmigaOS /C/install, which installs bootblocks on floppy discs
3291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3294 # OS/2's system install, which has a completely different semantic
3295 # ./install, which can be erroneously created by make from ./install.sh.
3296 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3297 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3298 if test -z "$INSTALL"; then
3299 if test "${ac_cv_path_install+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307   # Account for people who put trailing slashes in PATH elements.
3308 case $as_dir/ in
3309   ./ | .// | /cC/* | \
3310   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3311   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3312   /usr/ucb/* ) ;;
3313   *)
3314     # OSF1 and SCO ODT 3.0 have their own names for install.
3315     # Don't use installbsd from OSF since it installs stuff as root
3316     # by default.
3317     for ac_prog in ginstall scoinst install; do
3318       for ac_exec_ext in '' $ac_executable_extensions; do
3319         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3320           if test $ac_prog = install &&
3321             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3322             # AIX install.  It has an incompatible calling convention.
3323             :
3324           elif test $ac_prog = install &&
3325             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3326             # program-specific install script used by HP pwplus--don't use.
3327             :
3328           else
3329             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3330             break 3
3331           fi
3332         fi
3333       done
3334     done
3335     ;;
3336 esac
3337 done
3338 IFS=$as_save_IFS
3339
3340
3341 fi
3342   if test "${ac_cv_path_install+set}" = set; then
3343     INSTALL=$ac_cv_path_install
3344   else
3345     # As a last resort, use the slow shell script.  Don't cache a
3346     # value for INSTALL within a source directory, because that will
3347     # break other packages using the cache if that directory is
3348     # removed, or if the value is a relative name.
3349     INSTALL=$ac_install_sh
3350   fi
3351 fi
3352 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3353 echo "${ECHO_T}$INSTALL" >&6; }
3354
3355 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3356 # It thinks the first close brace ends the variable substitution.
3357 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3358
3359 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3360
3361 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3362
3363 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3364 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
3365 # Just in case
3366 sleep 1
3367 echo timestamp > conftest.file
3368 # Do `set' in a subshell so we don't clobber the current shell's
3369 # arguments.  Must try -L first in case configure is actually a
3370 # symlink; some systems play weird games with the mod time of symlinks
3371 # (eg FreeBSD returns the mod time of the symlink's containing
3372 # directory).
3373 if (
3374    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3375    if test "$*" = "X"; then
3376       # -L didn't work.
3377       set X `ls -t $srcdir/configure conftest.file`
3378    fi
3379    rm -f conftest.file
3380    if test "$*" != "X $srcdir/configure conftest.file" \
3381       && test "$*" != "X conftest.file $srcdir/configure"; then
3382
3383       # If neither matched, then we have a broken ls.  This can happen
3384       # if, for instance, CONFIG_SHELL is bash and it inherits a
3385       # broken ls alias from the environment.  This has actually
3386       # happened.  Such a system could not be considered "sane".
3387       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3388 alias in your environment" >&5
3389 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3390 alias in your environment" >&2;}
3391    { (exit 1); exit 1; }; }
3392    fi
3393
3394    test "$2" = conftest.file
3395    )
3396 then
3397    # Ok.
3398    :
3399 else
3400    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3401 Check your system clock" >&5
3402 echo "$as_me: error: newly created file is older than distributed files!
3403 Check your system clock" >&2;}
3404    { (exit 1); exit 1; }; }
3405 fi
3406 { echo "$as_me:$LINENO: result: yes" >&5
3407 echo "${ECHO_T}yes" >&6; }
3408 test "$program_prefix" != NONE &&
3409   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3410 # Use a double $ so make ignores it.
3411 test "$program_suffix" != NONE &&
3412   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3413 # Double any \ or $.  echo might interpret backslashes.
3414 # By default was `s,x,x', remove it if useless.
3415 cat <<\_ACEOF >conftest.sed
3416 s/[\\$]/&&/g;s/;s,x,x,$//
3417 _ACEOF
3418 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3419 rm -f conftest.sed
3420
3421 # expand $ac_aux_dir to an absolute path
3422 am_aux_dir=`cd $ac_aux_dir && pwd`
3423
3424 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3425 # Use eval to expand $SHELL
3426 if eval "$MISSING --run true"; then
3427   am_missing_run="$MISSING --run "
3428 else
3429   am_missing_run=
3430   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3431 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3432 fi
3433
3434 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3435 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
3436 if test -z "$MKDIR_P"; then
3437   if test "${ac_cv_path_mkdir+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445   for ac_prog in mkdir gmkdir; do
3446          for ac_exec_ext in '' $ac_executable_extensions; do
3447            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3448            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3449              'mkdir (GNU coreutils) '* | \
3450              'mkdir (coreutils) '* | \
3451              'mkdir (fileutils) '4.1*)
3452                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3453                break 3;;
3454            esac
3455          done
3456        done
3457 done
3458 IFS=$as_save_IFS
3459
3460 fi
3461
3462   if test "${ac_cv_path_mkdir+set}" = set; then
3463     MKDIR_P="$ac_cv_path_mkdir -p"
3464   else
3465     # As a last resort, use the slow shell script.  Don't cache a
3466     # value for MKDIR_P within a source directory, because that will
3467     # break other packages using the cache if that directory is
3468     # removed, or if the value is a relative name.
3469     test -d ./--version && rmdir ./--version
3470     MKDIR_P="$ac_install_sh -d"
3471   fi
3472 fi
3473 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3474 echo "${ECHO_T}$MKDIR_P" >&6; }
3475
3476 mkdir_p="$MKDIR_P"
3477 case $mkdir_p in
3478   [\\/$]* | ?:[\\/]*) ;;
3479   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3480 esac
3481
3482 for ac_prog in gawk mawk nawk awk
3483 do
3484   # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3488 if test "${ac_cv_prog_AWK+set}" = set; then
3489   echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491   if test -n "$AWK"; then
3492   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497   IFS=$as_save_IFS
3498   test -z "$as_dir" && as_dir=.
3499   for ac_exec_ext in '' $ac_executable_extensions; do
3500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501     ac_cv_prog_AWK="$ac_prog"
3502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503     break 2
3504   fi
3505 done
3506 done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 AWK=$ac_cv_prog_AWK
3512 if test -n "$AWK"; then
3513   { echo "$as_me:$LINENO: result: $AWK" >&5
3514 echo "${ECHO_T}$AWK" >&6; }
3515 else
3516   { echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6; }
3518 fi
3519
3520
3521   test -n "$AWK" && break
3522 done
3523
3524 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3525 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3526 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3527 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3528   echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530   cat >conftest.make <<\_ACEOF
3531 SHELL = /bin/sh
3532 all:
3533         @echo '@@@%%%=$(MAKE)=@@@%%%'
3534 _ACEOF
3535 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3536 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3537   *@@@%%%=?*=@@@%%%*)
3538     eval ac_cv_prog_make_${ac_make}_set=yes;;
3539   *)
3540     eval ac_cv_prog_make_${ac_make}_set=no;;
3541 esac
3542 rm -f conftest.make
3543 fi
3544 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3545   { echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6; }
3547   SET_MAKE=
3548 else
3549   { echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6; }
3551   SET_MAKE="MAKE=${MAKE-make}"
3552 fi
3553
3554 rm -rf .tst 2>/dev/null
3555 mkdir .tst 2>/dev/null
3556 if test -d .tst; then
3557   am__leading_dot=.
3558 else
3559   am__leading_dot=_
3560 fi
3561 rmdir .tst 2>/dev/null
3562
3563 DEPDIR="${am__leading_dot}deps"
3564
3565 ac_config_commands="$ac_config_commands depfiles"
3566
3567
3568 am_make=${MAKE-make}
3569 cat > confinc << 'END'
3570 am__doit:
3571         @echo done
3572 .PHONY: am__doit
3573 END
3574 # If we don't find an include directive, just comment out the code.
3575 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3576 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3577 am__include="#"
3578 am__quote=
3579 _am_result=none
3580 # First try GNU make style include.
3581 echo "include confinc" > confmf
3582 # We grep out `Entering directory' and `Leaving directory'
3583 # messages which can occur if `w' ends up in MAKEFLAGS.
3584 # In particular we don't look at `^make:' because GNU make might
3585 # be invoked under some other name (usually "gmake"), in which
3586 # case it prints its new name instead of `make'.
3587 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3588    am__include=include
3589    am__quote=
3590    _am_result=GNU
3591 fi
3592 # Now try BSD make style include.
3593 if test "$am__include" = "#"; then
3594    echo '.include "confinc"' > confmf
3595    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3596       am__include=.include
3597       am__quote="\""
3598       _am_result=BSD
3599    fi
3600 fi
3601
3602
3603 { echo "$as_me:$LINENO: result: $_am_result" >&5
3604 echo "${ECHO_T}$_am_result" >&6; }
3605 rm -f confinc confmf
3606
3607 # Check whether --enable-dependency-tracking was given.
3608 if test "${enable_dependency_tracking+set}" = set; then
3609   enableval=$enable_dependency_tracking;
3610 fi
3611
3612 if test "x$enable_dependency_tracking" != xno; then
3613   am_depcomp="$ac_aux_dir/depcomp"
3614   AMDEPBACKSLASH='\'
3615 fi
3616  if test "x$enable_dependency_tracking" != xno; then
3617   AMDEP_TRUE=
3618   AMDEP_FALSE='#'
3619 else
3620   AMDEP_TRUE='#'
3621   AMDEP_FALSE=
3622 fi
3623
3624
3625 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3626   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3627   # is not polluted with repeated "-I."
3628   am__isrc=' -I$(srcdir)'
3629   # test to see if srcdir already configured
3630   if test -f $srcdir/config.status; then
3631     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3632 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3633    { (exit 1); exit 1; }; }
3634   fi
3635 fi
3636
3637 # test whether we have cygpath
3638 if test -z "$CYGPATH_W"; then
3639   if (cygpath --version) >/dev/null 2>/dev/null; then
3640     CYGPATH_W='cygpath -w'
3641   else
3642     CYGPATH_W=echo
3643   fi
3644 fi
3645
3646
3647 # Define the identity of the package.
3648  PACKAGE=$PACKAGE
3649  VERSION=$VERSION
3650
3651
3652 cat >>confdefs.h <<_ACEOF
3653 #define PACKAGE "$PACKAGE"
3654 _ACEOF
3655
3656
3657 cat >>confdefs.h <<_ACEOF
3658 #define VERSION "$VERSION"
3659 _ACEOF
3660
3661 # Some tools Automake needs.
3662
3663 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3664
3665
3666 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3667
3668
3669 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3670
3671
3672 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3673
3674
3675 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3676
3677 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3678
3679 # Installed binaries are usually stripped using `strip' when the user
3680 # run `make install-strip'.  However `strip' might not be the right
3681 # tool to use in cross-compilation environments, therefore Automake
3682 # will honor the `STRIP' environment variable to overrule this program.
3683 if test "$cross_compiling" != no; then
3684   if test -n "$ac_tool_prefix"; then
3685   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}strip; ac_word=$2
3687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3689 if test "${ac_cv_prog_STRIP+set}" = set; then
3690   echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692   if test -n "$STRIP"; then
3693   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700   for ac_exec_ext in '' $ac_executable_extensions; do
3701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704     break 2
3705   fi
3706 done
3707 done
3708 IFS=$as_save_IFS
3709
3710 fi
3711 fi
3712 STRIP=$ac_cv_prog_STRIP
3713 if test -n "$STRIP"; then
3714   { echo "$as_me:$LINENO: result: $STRIP" >&5
3715 echo "${ECHO_T}$STRIP" >&6; }
3716 else
3717   { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3719 fi
3720
3721
3722 fi
3723 if test -z "$ac_cv_prog_STRIP"; then
3724   ac_ct_STRIP=$STRIP
3725   # Extract the first word of "strip", so it can be a program name with args.
3726 set dummy strip; ac_word=$2
3727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3729 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3730   echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732   if test -n "$ac_ct_STRIP"; then
3733   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738   IFS=$as_save_IFS
3739   test -z "$as_dir" && as_dir=.
3740   for ac_exec_ext in '' $ac_executable_extensions; do
3741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742     ac_cv_prog_ac_ct_STRIP="strip"
3743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744     break 2
3745   fi
3746 done
3747 done
3748 IFS=$as_save_IFS
3749
3750 fi
3751 fi
3752 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3753 if test -n "$ac_ct_STRIP"; then
3754   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3755 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3756 else
3757   { echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6; }
3759 fi
3760
3761   if test "x$ac_ct_STRIP" = x; then
3762     STRIP=":"
3763   else
3764     case $cross_compiling:$ac_tool_warned in
3765 yes:)
3766 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3767 whose name does not start with the host triplet.  If you think this
3768 configuration is useful to you, please write to autoconf@gnu.org." >&5
3769 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3770 whose name does not start with the host triplet.  If you think this
3771 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3772 ac_tool_warned=yes ;;
3773 esac
3774     STRIP=$ac_ct_STRIP
3775   fi
3776 else
3777   STRIP="$ac_cv_prog_STRIP"
3778 fi
3779
3780 fi
3781 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3782
3783 # We need awk for the "check" target.  The system "awk" is bad on
3784 # some platforms.
3785 # Always define AMTAR for backward compatibility.
3786
3787 AMTAR=${AMTAR-"${am_missing_run}tar"}
3788
3789 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3790
3791
3792
3793
3794 depcc="$CC"   am_compiler_list=
3795
3796 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3797 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3798 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3802   # We make a subdir and do the tests there.  Otherwise we can end up
3803   # making bogus files that we don't know about and never remove.  For
3804   # instance it was reported that on HP-UX the gcc test will end up
3805   # making a dummy file named `D' -- because `-MD' means `put the output
3806   # in D'.
3807   mkdir conftest.dir
3808   # Copy depcomp to subdir because otherwise we won't find it if we're
3809   # using a relative directory.
3810   cp "$am_depcomp" conftest.dir
3811   cd conftest.dir
3812   # We will build objects and dependencies in a subdirectory because
3813   # it helps to detect inapplicable dependency modes.  For instance
3814   # both Tru64's cc and ICC support -MD to output dependencies as a
3815   # side effect of compilation, but ICC will put the dependencies in
3816   # the current directory while Tru64 will put them in the object
3817   # directory.
3818   mkdir sub
3819
3820   am_cv_CC_dependencies_compiler_type=none
3821   if test "$am_compiler_list" = ""; then
3822      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823   fi
3824   for depmode in $am_compiler_list; do
3825     # Setup a source with many dependencies, because some compilers
3826     # like to wrap large dependency lists on column 80 (with \), and
3827     # we should not choose a depcomp mode which is confused by this.
3828     #
3829     # We need to recreate these files for each test, as the compiler may
3830     # overwrite some of them when testing with obscure command lines.
3831     # This happens at least with the AIX C compiler.
3832     : > sub/conftest.c
3833     for i in 1 2 3 4 5 6; do
3834       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3835       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3836       # Solaris 8's {/usr,}/bin/sh.
3837       touch sub/conftst$i.h
3838     done
3839     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3840
3841     case $depmode in
3842     nosideeffect)
3843       # after this tag, mechanisms are not by side-effect, so they'll
3844       # only be used when explicitly requested
3845       if test "x$enable_dependency_tracking" = xyes; then
3846         continue
3847       else
3848         break
3849       fi
3850       ;;
3851     none) break ;;
3852     esac
3853     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3854     # mode.  It turns out that the SunPro C++ compiler does not properly
3855     # handle `-M -o', and we need to detect this.
3856     if depmode=$depmode \
3857        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3858        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3860          >/dev/null 2>conftest.err &&
3861        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3864        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865       # icc doesn't choke on unknown options, it will just issue warnings
3866       # or remarks (even with -Werror).  So we grep stderr for any message
3867       # that says an option was ignored or not supported.
3868       # When given -MP, icc 7.0 and 7.1 complain thusly:
3869       #   icc: Command line warning: ignoring option '-M'; no argument required
3870       # The diagnosis changed in icc 8.0:
3871       #   icc: Command line remark: option '-MP' not supported
3872       if (grep 'ignoring option' conftest.err ||
3873           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874         am_cv_CC_dependencies_compiler_type=$depmode
3875         break
3876       fi
3877     fi
3878   done
3879
3880   cd ..
3881   rm -rf conftest.dir
3882 else
3883   am_cv_CC_dependencies_compiler_type=none
3884 fi
3885
3886 fi
3887 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3888 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3889 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3890
3891  if
3892   test "x$enable_dependency_tracking" != xno \
3893   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3894   am__fastdepCC_TRUE=
3895   am__fastdepCC_FALSE='#'
3896 else
3897   am__fastdepCC_TRUE='#'
3898   am__fastdepCC_FALSE=
3899 fi
3900
3901
3902
3903
3904 # Check whether --enable-shared was given.
3905 if test "${enable_shared+set}" = set; then
3906   enableval=$enable_shared; p=${PACKAGE-default}
3907     case $enableval in
3908     yes) enable_shared=yes ;;
3909     no) enable_shared=no ;;
3910     *)
3911       enable_shared=no
3912       # Look at the argument we got.  We use all the common list separators.
3913       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3914       for pkg in $enableval; do
3915         IFS="$lt_save_ifs"
3916         if test "X$pkg" = "X$p"; then
3917           enable_shared=yes
3918         fi
3919       done
3920       IFS="$lt_save_ifs"
3921       ;;
3922     esac
3923 else
3924   enable_shared=yes
3925 fi
3926
3927
3928 # Check whether --enable-static was given.
3929 if test "${enable_static+set}" = set; then
3930   enableval=$enable_static; p=${PACKAGE-default}
3931     case $enableval in
3932     yes) enable_static=yes ;;
3933     no) enable_static=no ;;
3934     *)
3935      enable_static=no
3936       # Look at the argument we got.  We use all the common list separators.
3937       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3938       for pkg in $enableval; do
3939         IFS="$lt_save_ifs"
3940         if test "X$pkg" = "X$p"; then
3941           enable_static=yes
3942         fi
3943       done
3944       IFS="$lt_save_ifs"
3945       ;;
3946     esac
3947 else
3948   enable_static=yes
3949 fi
3950
3951
3952 # Check whether --enable-fast-install was given.
3953 if test "${enable_fast_install+set}" = set; then
3954   enableval=$enable_fast_install; p=${PACKAGE-default}
3955     case $enableval in
3956     yes) enable_fast_install=yes ;;
3957     no) enable_fast_install=no ;;
3958     *)
3959       enable_fast_install=no
3960       # Look at the argument we got.  We use all the common list separators.
3961       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3962       for pkg in $enableval; do
3963         IFS="$lt_save_ifs"
3964         if test "X$pkg" = "X$p"; then
3965           enable_fast_install=yes
3966         fi
3967       done
3968       IFS="$lt_save_ifs"
3969       ;;
3970     esac
3971 else
3972   enable_fast_install=yes
3973 fi
3974
3975
3976 # Make sure we can run config.sub.
3977 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3978   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3979 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3980    { (exit 1); exit 1; }; }
3981
3982 { echo "$as_me:$LINENO: checking build system type" >&5
3983 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3984 if test "${ac_cv_build+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   ac_build_alias=$build_alias
3988 test "x$ac_build_alias" = x &&
3989   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3990 test "x$ac_build_alias" = x &&
3991   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3992 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3993    { (exit 1); exit 1; }; }
3994 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3995   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3996 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3997    { (exit 1); exit 1; }; }
3998
3999 fi
4000 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4001 echo "${ECHO_T}$ac_cv_build" >&6; }
4002 case $ac_cv_build in
4003 *-*-*) ;;
4004 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4005 echo "$as_me: error: invalid value of canonical build" >&2;}
4006    { (exit 1); exit 1; }; };;
4007 esac
4008 build=$ac_cv_build
4009 ac_save_IFS=$IFS; IFS='-'
4010 set x $ac_cv_build
4011 shift
4012 build_cpu=$1
4013 build_vendor=$2
4014 shift; shift
4015 # Remember, the first character of IFS is used to create $*,
4016 # except with old shells:
4017 build_os=$*
4018 IFS=$ac_save_IFS
4019 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4020
4021
4022 { echo "$as_me:$LINENO: checking host system type" >&5
4023 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4024 if test "${ac_cv_host+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   if test "x$host_alias" = x; then
4028   ac_cv_host=$ac_cv_build
4029 else
4030   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4031     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4032 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4033    { (exit 1); exit 1; }; }
4034 fi
4035
4036 fi
4037 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4038 echo "${ECHO_T}$ac_cv_host" >&6; }
4039 case $ac_cv_host in
4040 *-*-*) ;;
4041 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4042 echo "$as_me: error: invalid value of canonical host" >&2;}
4043    { (exit 1); exit 1; }; };;
4044 esac
4045 host=$ac_cv_host
4046 ac_save_IFS=$IFS; IFS='-'
4047 set x $ac_cv_host
4048 shift
4049 host_cpu=$1
4050 host_vendor=$2
4051 shift; shift
4052 # Remember, the first character of IFS is used to create $*,
4053 # except with old shells:
4054 host_os=$*
4055 IFS=$ac_save_IFS
4056 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4057
4058
4059 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4060 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4061 if test "${lt_cv_path_SED+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   # Loop through the user's path and test for sed and gsed.
4065 # Then use that list of sed's as ones to test for truncation.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069   IFS=$as_save_IFS
4070   test -z "$as_dir" && as_dir=.
4071   for lt_ac_prog in sed gsed; do
4072     for ac_exec_ext in '' $ac_executable_extensions; do
4073       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4074         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4075       fi
4076     done
4077   done
4078 done
4079 IFS=$as_save_IFS
4080 lt_ac_max=0
4081 lt_ac_count=0
4082 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4083 # along with /bin/sed that truncates output.
4084 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4085   test ! -f $lt_ac_sed && continue
4086   cat /dev/null > conftest.in
4087   lt_ac_count=0
4088   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4089   # Check for GNU sed and select it if it is found.
4090   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4091     lt_cv_path_SED=$lt_ac_sed
4092     break
4093   fi
4094   while true; do
4095     cat conftest.in conftest.in >conftest.tmp
4096     mv conftest.tmp conftest.in
4097     cp conftest.in conftest.nl
4098     echo >>conftest.nl
4099     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4100     cmp -s conftest.out conftest.nl || break
4101     # 10000 chars as input seems more than enough
4102     test $lt_ac_count -gt 10 && break
4103     lt_ac_count=`expr $lt_ac_count + 1`
4104     if test $lt_ac_count -gt $lt_ac_max; then
4105       lt_ac_max=$lt_ac_count
4106       lt_cv_path_SED=$lt_ac_sed
4107     fi
4108   done
4109 done
4110
4111 fi
4112
4113 SED=$lt_cv_path_SED
4114
4115 { echo "$as_me:$LINENO: result: $SED" >&5
4116 echo "${ECHO_T}$SED" >&6; }
4117
4118 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4119 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4120 if test "${ac_cv_path_GREP+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   # Extract the first word of "grep ggrep" to use in msg output
4124 if test -z "$GREP"; then
4125 set dummy grep ggrep; ac_prog_name=$2
4126 if test "${ac_cv_path_GREP+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   ac_path_GREP_found=false
4130 # Loop through the user's path and test for each of PROGNAME-LIST
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136   for ac_prog in grep ggrep; do
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4139     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4140     # Check for GNU ac_path_GREP and select it if it is found.
4141   # Check for GNU $ac_path_GREP
4142 case `"$ac_path_GREP" --version 2>&1` in
4143 *GNU*)
4144   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4145 *)
4146   ac_count=0
4147   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4148   while :
4149   do
4150     cat "conftest.in" "conftest.in" >"conftest.tmp"
4151     mv "conftest.tmp" "conftest.in"
4152     cp "conftest.in" "conftest.nl"
4153     echo 'GREP' >> "conftest.nl"
4154     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4155     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4156     ac_count=`expr $ac_count + 1`
4157     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4158       # Best one so far, save it but keep looking for a better one
4159       ac_cv_path_GREP="$ac_path_GREP"
4160       ac_path_GREP_max=$ac_count
4161     fi
4162     # 10*(2^10) chars as input seems more than enough
4163     test $ac_count -gt 10 && break
4164   done
4165   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4166 esac
4167
4168
4169     $ac_path_GREP_found && break 3
4170   done
4171 done
4172
4173 done
4174 IFS=$as_save_IFS
4175
4176
4177 fi
4178
4179 GREP="$ac_cv_path_GREP"
4180 if test -z "$GREP"; then
4181   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4182 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4183    { (exit 1); exit 1; }; }
4184 fi
4185
4186 else
4187   ac_cv_path_GREP=$GREP
4188 fi
4189
4190
4191 fi
4192 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4193 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4194  GREP="$ac_cv_path_GREP"
4195
4196
4197 { echo "$as_me:$LINENO: checking for egrep" >&5
4198 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4199 if test "${ac_cv_path_EGREP+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4203    then ac_cv_path_EGREP="$GREP -E"
4204    else
4205      # Extract the first word of "egrep" to use in msg output
4206 if test -z "$EGREP"; then
4207 set dummy egrep; ac_prog_name=$2
4208 if test "${ac_cv_path_EGREP+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   ac_path_EGREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_prog in egrep; do
4219   for ac_exec_ext in '' $ac_executable_extensions; do
4220     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4221     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4222     # Check for GNU ac_path_EGREP and select it if it is found.
4223   # Check for GNU $ac_path_EGREP
4224 case `"$ac_path_EGREP" --version 2>&1` in
4225 *GNU*)
4226   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4227 *)
4228   ac_count=0
4229   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4230   while :
4231   do
4232     cat "conftest.in" "conftest.in" >"conftest.tmp"
4233     mv "conftest.tmp" "conftest.in"
4234     cp "conftest.in" "conftest.nl"
4235     echo 'EGREP' >> "conftest.nl"
4236     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238     ac_count=`expr $ac_count + 1`
4239     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4240       # Best one so far, save it but keep looking for a better one
4241       ac_cv_path_EGREP="$ac_path_EGREP"
4242       ac_path_EGREP_max=$ac_count
4243     fi
4244     # 10*(2^10) chars as input seems more than enough
4245     test $ac_count -gt 10 && break
4246   done
4247   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248 esac
4249
4250
4251     $ac_path_EGREP_found && break 3
4252   done
4253 done
4254
4255 done
4256 IFS=$as_save_IFS
4257
4258
4259 fi
4260
4261 EGREP="$ac_cv_path_EGREP"
4262 if test -z "$EGREP"; then
4263   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265    { (exit 1); exit 1; }; }
4266 fi
4267
4268 else
4269   ac_cv_path_EGREP=$EGREP
4270 fi
4271
4272
4273    fi
4274 fi
4275 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4276 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4277  EGREP="$ac_cv_path_EGREP"
4278
4279
4280
4281 # Check whether --with-gnu-ld was given.
4282 if test "${with_gnu_ld+set}" = set; then
4283   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4284 else
4285   with_gnu_ld=no
4286 fi
4287
4288 ac_prog=ld
4289 if test "$GCC" = yes; then
4290   # Check if gcc -print-prog-name=ld gives a path.
4291   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4292 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4293   case $host in
4294   *-*-mingw*)
4295     # gcc leaves a trailing carriage return which upsets mingw
4296     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4297   *)
4298     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4299   esac
4300   case $ac_prog in
4301     # Accept absolute paths.
4302     [\\/]* | ?:[\\/]*)
4303       re_direlt='/[^/][^/]*/\.\./'
4304       # Canonicalize the pathname of ld
4305       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4306       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4307         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4308       done
4309       test -z "$LD" && LD="$ac_prog"
4310       ;;
4311   "")
4312     # If it fails, then pretend we aren't using GCC.
4313     ac_prog=ld
4314     ;;
4315   *)
4316     # If it is relative, then search for the first ld in PATH.
4317     with_gnu_ld=unknown
4318     ;;
4319   esac
4320 elif test "$with_gnu_ld" = yes; then
4321   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4322 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4323 else
4324   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4325 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4326 fi
4327 if test "${lt_cv_path_LD+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   if test -z "$LD"; then
4331   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4332   for ac_dir in $PATH; do
4333     IFS="$lt_save_ifs"
4334     test -z "$ac_dir" && ac_dir=.
4335     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4336       lt_cv_path_LD="$ac_dir/$ac_prog"
4337       # Check to see if the program is GNU ld.  I'd rather use --version,
4338       # but apparently some variants of GNU ld only accept -v.
4339       # Break only if it was the GNU/non-GNU ld that we prefer.
4340       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4341       *GNU* | *'with BFD'*)
4342         test "$with_gnu_ld" != no && break
4343         ;;
4344       *)
4345         test "$with_gnu_ld" != yes && break
4346         ;;
4347       esac
4348     fi
4349   done
4350   IFS="$lt_save_ifs"
4351 else
4352   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4353 fi
4354 fi
4355
4356 LD="$lt_cv_path_LD"
4357 if test -n "$LD"; then
4358   { echo "$as_me:$LINENO: result: $LD" >&5
4359 echo "${ECHO_T}$LD" >&6; }
4360 else
4361   { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4363 fi
4364 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4365 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4366    { (exit 1); exit 1; }; }
4367 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4368 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4369 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4373 case `$LD -v 2>&1 </dev/null` in
4374 *GNU* | *'with BFD'*)
4375   lt_cv_prog_gnu_ld=yes
4376   ;;
4377 *)
4378   lt_cv_prog_gnu_ld=no
4379   ;;
4380 esac
4381 fi
4382 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4383 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4384 with_gnu_ld=$lt_cv_prog_gnu_ld
4385
4386
4387 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4388 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4389 if test "${lt_cv_ld_reload_flag+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   lt_cv_ld_reload_flag='-r'
4393 fi
4394 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4395 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4396 reload_flag=$lt_cv_ld_reload_flag
4397 case $reload_flag in
4398 "" | " "*) ;;
4399 *) reload_flag=" $reload_flag" ;;
4400 esac
4401 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4402 case $host_os in
4403   darwin*)
4404     if test "$GCC" = yes; then
4405       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4406     else
4407       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4408     fi
4409     ;;
4410 esac
4411
4412 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4413 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4414 if test "${lt_cv_path_NM+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   if test -n "$NM"; then
4418   # Let the user override the test.
4419   lt_cv_path_NM="$NM"
4420 else
4421   lt_nm_to_check="${ac_tool_prefix}nm"
4422   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4423     lt_nm_to_check="$lt_nm_to_check nm"
4424   fi
4425   for lt_tmp_nm in $lt_nm_to_check; do
4426     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4427     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4428       IFS="$lt_save_ifs"
4429       test -z "$ac_dir" && ac_dir=.
4430       tmp_nm="$ac_dir/$lt_tmp_nm"
4431       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4432         # Check to see if the nm accepts a BSD-compat flag.
4433         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4434         #   nm: unknown option "B" ignored
4435         # Tru64's nm complains that /dev/null is an invalid object file
4436         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4437         */dev/null* | *'Invalid file or object type'*)
4438           lt_cv_path_NM="$tmp_nm -B"
4439           break
4440           ;;
4441         *)
4442           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4443           */dev/null*)
4444             lt_cv_path_NM="$tmp_nm -p"
4445             break
4446             ;;
4447           *)
4448             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4449             continue # so that we can try to find one that supports BSD flags
4450             ;;
4451           esac
4452           ;;
4453         esac
4454       fi
4455     done
4456     IFS="$lt_save_ifs"
4457   done
4458   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4459 fi
4460 fi
4461 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4462 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4463 NM="$lt_cv_path_NM"
4464
4465 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4466 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4467 LN_S=$as_ln_s
4468 if test "$LN_S" = "ln -s"; then
4469   { echo "$as_me:$LINENO: result: yes" >&5
4470 echo "${ECHO_T}yes" >&6; }
4471 else
4472   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4473 echo "${ECHO_T}no, using $LN_S" >&6; }
4474 fi
4475
4476 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4477 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4478 if test "${lt_cv_deplibs_check_method+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   lt_cv_file_magic_cmd='$MAGIC_CMD'
4482 lt_cv_file_magic_test_file=
4483 lt_cv_deplibs_check_method='unknown'
4484 # Need to set the preceding variable on all platforms that support
4485 # interlibrary dependencies.
4486 # 'none' -- dependencies not supported.
4487 # `unknown' -- same as none, but documents that we really don't know.
4488 # 'pass_all' -- all dependencies passed with no checks.
4489 # 'test_compile' -- check by making test program.
4490 # 'file_magic [[regex]]' -- check by looking for files in library path
4491 # which responds to the $file_magic_cmd with a given extended regex.
4492 # If you have `file' or equivalent on your system and you're not sure
4493 # whether `pass_all' will *always* work, you probably want this one.
4494
4495 case $host_os in
4496 aix[4-9]*)
4497   lt_cv_deplibs_check_method=pass_all
4498   ;;
4499
4500 beos*)
4501   lt_cv_deplibs_check_method=pass_all
4502   ;;
4503
4504 bsdi[45]*)
4505   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4506   lt_cv_file_magic_cmd='/usr/bin/file -L'
4507   lt_cv_file_magic_test_file=/shlib/libc.so
4508   ;;
4509
4510 cygwin*)
4511   # func_win32_libid is a shell function defined in ltmain.sh
4512   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4513   lt_cv_file_magic_cmd='func_win32_libid'
4514   ;;
4515
4516 mingw* | pw32*)
4517   # Base MSYS/MinGW do not provide the 'file' command needed by
4518   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4519   # unless we find 'file', for example because we are cross-compiling.
4520   if ( file / ) >/dev/null 2>&1; then
4521     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4522     lt_cv_file_magic_cmd='func_win32_libid'
4523   else
4524     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4525     lt_cv_file_magic_cmd='$OBJDUMP -f'
4526   fi
4527   ;;
4528
4529 darwin* | rhapsody*)
4530   lt_cv_deplibs_check_method=pass_all
4531   ;;
4532
4533 freebsd* | dragonfly*)
4534   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4535     case $host_cpu in
4536     i*86 )
4537       # Not sure whether the presence of OpenBSD here was a mistake.
4538       # Let's accept both of them until this is cleared up.
4539       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4540       lt_cv_file_magic_cmd=/usr/bin/file
4541       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4542       ;;
4543     esac
4544   else
4545     lt_cv_deplibs_check_method=pass_all
4546   fi
4547   ;;
4548
4549 gnu*)
4550   lt_cv_deplibs_check_method=pass_all
4551   ;;
4552
4553 hpux10.20* | hpux11*)
4554   lt_cv_file_magic_cmd=/usr/bin/file
4555   case $host_cpu in
4556   ia64*)
4557     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4558     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4559     ;;
4560   hppa*64*)
4561     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]'
4562     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4563     ;;
4564   *)
4565     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4566     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4567     ;;
4568   esac
4569   ;;
4570
4571 interix[3-9]*)
4572   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4573   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4574   ;;
4575
4576 irix5* | irix6* | nonstopux*)
4577   case $LD in
4578   *-32|*"-32 ") libmagic=32-bit;;
4579   *-n32|*"-n32 ") libmagic=N32;;
4580   *-64|*"-64 ") libmagic=64-bit;;
4581   *) libmagic=never-match;;
4582   esac
4583   lt_cv_deplibs_check_method=pass_all
4584   ;;
4585
4586 # This must be Linux ELF.
4587 linux* | k*bsd*-gnu)
4588   lt_cv_deplibs_check_method=pass_all
4589   ;;
4590
4591 netbsd* | netbsdelf*-gnu)
4592   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4593     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4594   else
4595     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4596   fi
4597   ;;
4598
4599 newos6*)
4600   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4601   lt_cv_file_magic_cmd=/usr/bin/file
4602   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4603   ;;
4604
4605 nto-qnx*)
4606   lt_cv_deplibs_check_method=unknown
4607   ;;
4608
4609 openbsd*)
4610   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4611     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4612   else
4613     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4614   fi
4615   ;;
4616
4617 osf3* | osf4* | osf5*)
4618   lt_cv_deplibs_check_method=pass_all
4619   ;;
4620
4621 rdos*)
4622   lt_cv_deplibs_check_method=pass_all
4623   ;;
4624
4625 solaris*)
4626   lt_cv_deplibs_check_method=pass_all
4627   ;;
4628
4629 sysv4 | sysv4.3*)
4630   case $host_vendor in
4631   motorola)
4632     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]'
4633     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4634     ;;
4635   ncr)
4636     lt_cv_deplibs_check_method=pass_all
4637     ;;
4638   sequent)
4639     lt_cv_file_magic_cmd='/bin/file'
4640     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4641     ;;
4642   sni)
4643     lt_cv_file_magic_cmd='/bin/file'
4644     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4645     lt_cv_file_magic_test_file=/lib/libc.so
4646     ;;
4647   siemens)
4648     lt_cv_deplibs_check_method=pass_all
4649     ;;
4650   pc)
4651     lt_cv_deplibs_check_method=pass_all
4652     ;;
4653   esac
4654   ;;
4655
4656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4657   lt_cv_deplibs_check_method=pass_all
4658   ;;
4659 esac
4660
4661 fi
4662 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4663 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4664 file_magic_cmd=$lt_cv_file_magic_cmd
4665 deplibs_check_method=$lt_cv_deplibs_check_method
4666 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4667
4668
4669
4670
4671 # If no C compiler was specified, use CC.
4672 LTCC=${LTCC-"$CC"}
4673
4674 # If no C compiler flags were specified, use CFLAGS.
4675 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4676
4677 # Allow CC to be a program name with arguments.
4678 compiler=$CC
4679
4680 # Check whether --enable-libtool-lock was given.
4681 if test "${enable_libtool_lock+set}" = set; then
4682   enableval=$enable_libtool_lock;
4683 fi
4684
4685 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4686
4687 # Some flags need to be propagated to the compiler or linker for good
4688 # libtool support.
4689 case $host in
4690 ia64-*-hpux*)
4691   # Find out which ABI we are using.
4692   echo 'int i;' > conftest.$ac_ext
4693   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694   (eval $ac_compile) 2>&5
4695   ac_status=$?
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); }; then
4698     case `/usr/bin/file conftest.$ac_objext` in
4699     *ELF-32*)
4700       HPUX_IA64_MODE="32"
4701       ;;
4702     *ELF-64*)
4703       HPUX_IA64_MODE="64"
4704       ;;
4705     esac
4706   fi
4707   rm -rf conftest*
4708   ;;
4709 *-*-irix6*)
4710   # Find out which ABI we are using.
4711   echo '#line 4711 "configure"' > conftest.$ac_ext
4712   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713   (eval $ac_compile) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); }; then
4717    if test "$lt_cv_prog_gnu_ld" = yes; then
4718     case `/usr/bin/file conftest.$ac_objext` in
4719     *32-bit*)
4720       LD="${LD-ld} -melf32bsmip"
4721       ;;
4722     *N32*)
4723       LD="${LD-ld} -melf32bmipn32"
4724       ;;
4725     *64-bit*)
4726       LD="${LD-ld} -melf64bmip"
4727       ;;
4728     esac
4729    else
4730     case `/usr/bin/file conftest.$ac_objext` in
4731     *32-bit*)
4732       LD="${LD-ld} -32"
4733       ;;
4734     *N32*)
4735       LD="${LD-ld} -n32"
4736       ;;
4737     *64-bit*)
4738       LD="${LD-ld} -64"
4739       ;;
4740     esac
4741    fi
4742   fi
4743   rm -rf conftest*
4744   ;;
4745
4746 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4747 s390*-*linux*|sparc*-*linux*)
4748   # Find out which ABI we are using.
4749   echo 'int i;' > conftest.$ac_ext
4750   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751   (eval $ac_compile) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; then
4755     case `/usr/bin/file conftest.o` in
4756     *32-bit*)
4757       case $host in
4758         x86_64-*kfreebsd*-gnu)
4759           LD="${LD-ld} -m elf_i386_fbsd"
4760           ;;
4761         x86_64-*linux*)
4762           LD="${LD-ld} -m elf_i386"
4763           ;;
4764         ppc64-*linux*|powerpc64-*linux*)
4765           LD="${LD-ld} -m elf32ppclinux"
4766           ;;
4767         s390x-*linux*)
4768           LD="${LD-ld} -m elf_s390"
4769           ;;
4770         sparc64-*linux*)
4771           LD="${LD-ld} -m elf32_sparc"
4772           ;;
4773       esac
4774       ;;
4775     *64-bit*)
4776       case $host in
4777         x86_64-*kfreebsd*-gnu)
4778           LD="${LD-ld} -m elf_x86_64_fbsd"
4779           ;;
4780         x86_64-*linux*)
4781           LD="${LD-ld} -m elf_x86_64"
4782           ;;
4783         ppc*-*linux*|powerpc*-*linux*)
4784           LD="${LD-ld} -m elf64ppc"
4785           ;;
4786         s390*-*linux*)
4787           LD="${LD-ld} -m elf64_s390"
4788           ;;
4789         sparc*-*linux*)
4790           LD="${LD-ld} -m elf64_sparc"
4791           ;;
4792       esac
4793       ;;
4794     esac
4795   fi
4796   rm -rf conftest*
4797   ;;
4798
4799 *-*-sco3.2v5*)
4800   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4801   SAVE_CFLAGS="$CFLAGS"
4802   CFLAGS="$CFLAGS -belf"
4803   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4804 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4805 if test "${lt_cv_cc_needs_belf+set}" = set; then
4806   echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808   ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813
4814      cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h.  */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h.  */
4820
4821 int
4822 main ()
4823 {
4824
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext conftest$ac_exeext
4830 if { (ac_try="$ac_link"
4831 case "(($ac_try" in
4832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833   *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836   (eval "$ac_link") 2>conftest.er1
4837   ac_status=$?
4838   grep -v '^ *+' conftest.er1 >conftest.err
4839   rm -f conftest.er1
4840   cat conftest.err >&5
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); } && {
4843          test -z "$ac_c_werror_flag" ||
4844          test ! -s conftest.err
4845        } && test -s conftest$ac_exeext &&
4846        $as_test_x conftest$ac_exeext; then
4847   lt_cv_cc_needs_belf=yes
4848 else
4849   echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852         lt_cv_cc_needs_belf=no
4853 fi
4854
4855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4856       conftest$ac_exeext conftest.$ac_ext
4857      ac_ext=c
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862
4863 fi
4864 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4865 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4866   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4867     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4868     CFLAGS="$SAVE_CFLAGS"
4869   fi
4870   ;;
4871 sparc*-*solaris*)
4872   # Find out which ABI we are using.
4873   echo 'int i;' > conftest.$ac_ext
4874   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875   (eval $ac_compile) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); }; then
4879     case `/usr/bin/file conftest.o` in
4880     *64-bit*)
4881       case $lt_cv_prog_gnu_ld in
4882       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4883       *)
4884         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4885           LD="${LD-ld} -64"
4886         fi
4887         ;;
4888       esac
4889       ;;
4890     esac
4891   fi
4892   rm -rf conftest*
4893   ;;
4894
4895
4896 esac
4897
4898 need_locks="$enable_libtool_lock"
4899
4900
4901 ac_ext=c
4902 ac_cpp='$CPP $CPPFLAGS'
4903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4907 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4908 # On Suns, sometimes $CPP names a directory.
4909 if test -n "$CPP" && test -d "$CPP"; then
4910   CPP=
4911 fi
4912 if test -z "$CPP"; then
4913   if test "${ac_cv_prog_CPP+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916       # Double quotes because CPP needs to be expanded
4917     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4918     do
4919       ac_preproc_ok=false
4920 for ac_c_preproc_warn_flag in '' yes
4921 do
4922   # Use a header file that comes with gcc, so configuring glibc
4923   # with a fresh cross-compiler works.
4924   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4925   # <limits.h> exists even on freestanding compilers.
4926   # On the NeXT, cc -E runs the code through the compiler's parser,
4927   # not just through cpp. "Syntax error" is here to catch this case.
4928   cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 #ifdef __STDC__
4935 # include <limits.h>
4936 #else
4937 # include <assert.h>
4938 #endif
4939                      Syntax error
4940 _ACEOF
4941 if { (ac_try="$ac_cpp conftest.$ac_ext"
4942 case "(($ac_try" in
4943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944   *) ac_try_echo=$ac_try;;
4945 esac
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4948   ac_status=$?
4949   grep -v '^ *+' conftest.er1 >conftest.err
4950   rm -f conftest.er1
4951   cat conftest.err >&5
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); } >/dev/null && {
4954          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4955          test ! -s conftest.err
4956        }; then
4957   :
4958 else
4959   echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962   # Broken: fails on valid input.
4963 continue
4964 fi
4965
4966 rm -f conftest.err conftest.$ac_ext
4967
4968   # OK, works on sane cases.  Now check whether nonexistent headers
4969   # can be detected and how.
4970   cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h.  */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h.  */
4976 #include <ac_nonexistent.h>
4977 _ACEOF
4978 if { (ac_try="$ac_cpp conftest.$ac_ext"
4979 case "(($ac_try" in
4980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981   *) ac_try_echo=$ac_try;;
4982 esac
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4985   ac_status=$?
4986   grep -v '^ *+' conftest.er1 >conftest.err
4987   rm -f conftest.er1
4988   cat conftest.err >&5
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } >/dev/null && {
4991          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4992          test ! -s conftest.err
4993        }; then
4994   # Broken: success on invalid input.
4995 continue
4996 else
4997   echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000   # Passes both tests.
5001 ac_preproc_ok=:
5002 break
5003 fi
5004
5005 rm -f conftest.err conftest.$ac_ext
5006
5007 done
5008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5009 rm -f conftest.err conftest.$ac_ext
5010 if $ac_preproc_ok; then
5011   break
5012 fi
5013
5014     done
5015     ac_cv_prog_CPP=$CPP
5016
5017 fi
5018   CPP=$ac_cv_prog_CPP
5019 else
5020   ac_cv_prog_CPP=$CPP
5021 fi
5022 { echo "$as_me:$LINENO: result: $CPP" >&5
5023 echo "${ECHO_T}$CPP" >&6; }
5024 ac_preproc_ok=false
5025 for ac_c_preproc_warn_flag in '' yes
5026 do
5027   # Use a header file that comes with gcc, so configuring glibc
5028   # with a fresh cross-compiler works.
5029   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5030   # <limits.h> exists even on freestanding compilers.
5031   # On the NeXT, cc -E runs the code through the compiler's parser,
5032   # not just through cpp. "Syntax error" is here to catch this case.
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 #ifdef __STDC__
5040 # include <limits.h>
5041 #else
5042 # include <assert.h>
5043 #endif
5044                      Syntax error
5045 _ACEOF
5046 if { (ac_try="$ac_cpp conftest.$ac_ext"
5047 case "(($ac_try" in
5048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049   *) ac_try_echo=$ac_try;;
5050 esac
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5053   ac_status=$?
5054   grep -v '^ *+' conftest.er1 >conftest.err
5055   rm -f conftest.er1
5056   cat conftest.err >&5
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); } >/dev/null && {
5059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5060          test ! -s conftest.err
5061        }; then
5062   :
5063 else
5064   echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067   # Broken: fails on valid input.
5068 continue
5069 fi
5070
5071 rm -f conftest.err conftest.$ac_ext
5072
5073   # OK, works on sane cases.  Now check whether nonexistent headers
5074   # can be detected and how.
5075   cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h.  */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h.  */
5081 #include <ac_nonexistent.h>
5082 _ACEOF
5083 if { (ac_try="$ac_cpp conftest.$ac_ext"
5084 case "(($ac_try" in
5085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086   *) ac_try_echo=$ac_try;;
5087 esac
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5090   ac_status=$?
5091   grep -v '^ *+' conftest.er1 >conftest.err
5092   rm -f conftest.er1
5093   cat conftest.err >&5
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } >/dev/null && {
5096          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5097          test ! -s conftest.err
5098        }; then
5099   # Broken: success on invalid input.
5100 continue
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105   # Passes both tests.
5106 ac_preproc_ok=:
5107 break
5108 fi
5109
5110 rm -f conftest.err conftest.$ac_ext
5111
5112 done
5113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5114 rm -f conftest.err conftest.$ac_ext
5115 if $ac_preproc_ok; then
5116   :
5117 else
5118   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5119 See \`config.log' for more details." >&5
5120 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5121 See \`config.log' for more details." >&2;}
5122    { (exit 1); exit 1; }; }
5123 fi
5124
5125 ac_ext=c
5126 ac_cpp='$CPP $CPPFLAGS'
5127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5130
5131
5132 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5133 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5134 if test "${ac_cv_header_stdc+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h.  */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h.  */
5143 #include <stdlib.h>
5144 #include <stdarg.h>
5145 #include <string.h>
5146 #include <float.h>
5147
5148 int
5149 main ()
5150 {
5151
5152   ;
5153   return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.$ac_objext
5157 if { (ac_try="$ac_compile"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_compile") 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } && {
5170          test -z "$ac_c_werror_flag" ||
5171          test ! -s conftest.err
5172        } && test -s conftest.$ac_objext; then
5173   ac_cv_header_stdc=yes
5174 else
5175   echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178         ac_cv_header_stdc=no
5179 fi
5180
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182
5183 if test $ac_cv_header_stdc = yes; then
5184   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5185   cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h.  */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h.  */
5191 #include <string.h>
5192
5193 _ACEOF
5194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5195   $EGREP "memchr" >/dev/null 2>&1; then
5196   :
5197 else
5198   ac_cv_header_stdc=no
5199 fi
5200 rm -f conftest*
5201
5202 fi
5203
5204 if test $ac_cv_header_stdc = yes; then
5205   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5206   cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h.  */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h.  */
5212 #include <stdlib.h>
5213
5214 _ACEOF
5215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5216   $EGREP "free" >/dev/null 2>&1; then
5217   :
5218 else
5219   ac_cv_header_stdc=no
5220 fi
5221 rm -f conftest*
5222
5223 fi
5224
5225 if test $ac_cv_header_stdc = yes; then
5226   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5227   if test "$cross_compiling" = yes; then
5228   :
5229 else
5230   cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h.  */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h.  */
5236 #include <ctype.h>
5237 #include <stdlib.h>
5238 #if ((' ' & 0x0FF) == 0x020)
5239 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5240 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5241 #else
5242 # define ISLOWER(c) \
5243                    (('a' <= (c) && (c) <= 'i') \
5244                      || ('j' <= (c) && (c) <= 'r') \
5245                      || ('s' <= (c) && (c) <= 'z'))
5246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5247 #endif
5248
5249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5250 int
5251 main ()
5252 {
5253   int i;
5254   for (i = 0; i < 256; i++)
5255     if (XOR (islower (i), ISLOWER (i))
5256         || toupper (i) != TOUPPER (i))
5257       return 2;
5258   return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest$ac_exeext
5262 if { (ac_try="$ac_link"
5263 case "(($ac_try" in
5264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265   *) ac_try_echo=$ac_try;;
5266 esac
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268   (eval "$ac_link") 2>&5
5269   ac_status=$?
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5272   { (case "(($ac_try" in
5273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274   *) ac_try_echo=$ac_try;;
5275 esac
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277   (eval "$ac_try") 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   :
5282 else
5283   echo "$as_me: program exited with status $ac_status" >&5
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ( exit $ac_status )
5288 ac_cv_header_stdc=no
5289 fi
5290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5291 fi
5292
5293
5294 fi
5295 fi
5296 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5297 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5298 if test $ac_cv_header_stdc = yes; then
5299
5300 cat >>confdefs.h <<\_ACEOF
5301 #define STDC_HEADERS 1
5302 _ACEOF
5303
5304 fi
5305
5306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5317                   inttypes.h stdint.h unistd.h
5318 do
5319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h.  */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h.  */
5331 $ac_includes_default
5332
5333 #include <$ac_header>
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (ac_try="$ac_compile"
5337 case "(($ac_try" in
5338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339   *) ac_try_echo=$ac_try;;
5340 esac
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342   (eval "$ac_compile") 2>conftest.er1
5343   ac_status=$?
5344   grep -v '^ *+' conftest.er1 >conftest.err
5345   rm -f conftest.er1
5346   cat conftest.err >&5
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } && {
5349          test -z "$ac_c_werror_flag" ||
5350          test ! -s conftest.err
5351        } && test -s conftest.$ac_objext; then
5352   eval "$as_ac_Header=yes"
5353 else
5354   echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357         eval "$as_ac_Header=no"
5358 fi
5359
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 fi
5362 ac_res=`eval echo '${'$as_ac_Header'}'`
5363                { echo "$as_me:$LINENO: result: $ac_res" >&5
5364 echo "${ECHO_T}$ac_res" >&6; }
5365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5366   cat >>confdefs.h <<_ACEOF
5367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 _ACEOF
5369
5370 fi
5371
5372 done
5373
5374
5375
5376 for ac_header in dlfcn.h
5377 do
5378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5380   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 fi
5385 ac_res=`eval echo '${'$as_ac_Header'}'`
5386                { echo "$as_me:$LINENO: result: $ac_res" >&5
5387 echo "${ECHO_T}$ac_res" >&6; }
5388 else
5389   # Is the header compilable?
5390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h.  */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h.  */
5398 $ac_includes_default
5399 #include <$ac_header>
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (ac_try="$ac_compile"
5403 case "(($ac_try" in
5404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405   *) ac_try_echo=$ac_try;;
5406 esac
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408   (eval "$ac_compile") 2>conftest.er1
5409   ac_status=$?
5410   grep -v '^ *+' conftest.er1 >conftest.err
5411   rm -f conftest.er1
5412   cat conftest.err >&5
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); } && {
5415          test -z "$ac_c_werror_flag" ||
5416          test ! -s conftest.err
5417        } && test -s conftest.$ac_objext; then
5418   ac_header_compiler=yes
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5422
5423         ac_header_compiler=no
5424 fi
5425
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5428 echo "${ECHO_T}$ac_header_compiler" >&6; }
5429
5430 # Is the header present?
5431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5433 cat >conftest.$ac_ext <<_ACEOF
5434 /* confdefs.h.  */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h.  */
5439 #include <$ac_header>
5440 _ACEOF
5441 if { (ac_try="$ac_cpp conftest.$ac_ext"
5442 case "(($ac_try" in
5443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444   *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5448   ac_status=$?
5449   grep -v '^ *+' conftest.er1 >conftest.err
5450   rm -f conftest.er1
5451   cat conftest.err >&5
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); } >/dev/null && {
5454          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5455          test ! -s conftest.err
5456        }; then
5457   ac_header_preproc=yes
5458 else
5459   echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5461
5462   ac_header_preproc=no
5463 fi
5464
5465 rm -f conftest.err conftest.$ac_ext
5466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5467 echo "${ECHO_T}$ac_header_preproc" >&6; }
5468
5469 # So?  What about this header?
5470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5471   yes:no: )
5472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5476     ac_header_preproc=yes
5477     ;;
5478   no:yes:* )
5479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5491
5492     ;;
5493 esac
5494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5497   echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499   eval "$as_ac_Header=\$ac_header_preproc"
5500 fi
5501 ac_res=`eval echo '${'$as_ac_Header'}'`
5502                { echo "$as_me:$LINENO: result: $ac_res" >&5
5503 echo "${ECHO_T}$ac_res" >&6; }
5504
5505 fi
5506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5507   cat >>confdefs.h <<_ACEOF
5508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5509 _ACEOF
5510
5511 fi
5512
5513 done
5514
5515 ac_ext=cpp
5516 ac_cpp='$CXXCPP $CPPFLAGS'
5517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5520 if test -z "$CXX"; then
5521   if test -n "$CCC"; then
5522     CXX=$CCC
5523   else
5524     if test -n "$ac_tool_prefix"; then
5525   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5526   do
5527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5531 if test "${ac_cv_prog_CXX+set}" = set; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534   if test -n "$CXX"; then
5535   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540   IFS=$as_save_IFS
5541   test -z "$as_dir" && as_dir=.
5542   for ac_exec_ext in '' $ac_executable_extensions; do
5543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546     break 2
5547   fi
5548 done
5549 done
5550 IFS=$as_save_IFS
5551
5552 fi
5553 fi
5554 CXX=$ac_cv_prog_CXX
5555 if test -n "$CXX"; then
5556   { echo "$as_me:$LINENO: result: $CXX" >&5
5557 echo "${ECHO_T}$CXX" >&6; }
5558 else
5559   { echo "$as_me:$LINENO: result: no" >&5
5560 echo "${ECHO_T}no" >&6; }
5561 fi
5562
5563
5564     test -n "$CXX" && break
5565   done
5566 fi
5567 if test -z "$CXX"; then
5568   ac_ct_CXX=$CXX
5569   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5570 do
5571   # Extract the first word of "$ac_prog", so it can be a program name with args.
5572 set dummy $ac_prog; ac_word=$2
5573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5575 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5576   echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578   if test -n "$ac_ct_CXX"; then
5579   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586   for ac_exec_ext in '' $ac_executable_extensions; do
5587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588     ac_cv_prog_ac_ct_CXX="$ac_prog"
5589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590     break 2
5591   fi
5592 done
5593 done
5594 IFS=$as_save_IFS
5595
5596 fi
5597 fi
5598 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5599 if test -n "$ac_ct_CXX"; then
5600   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5601 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5602 else
5603   { echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6; }
5605 fi
5606
5607
5608   test -n "$ac_ct_CXX" && break
5609 done
5610
5611   if test "x$ac_ct_CXX" = x; then
5612     CXX="g++"
5613   else
5614     case $cross_compiling:$ac_tool_warned in
5615 yes:)
5616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5617 whose name does not start with the host triplet.  If you think this
5618 configuration is useful to you, please write to autoconf@gnu.org." >&5
5619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5620 whose name does not start with the host triplet.  If you think this
5621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5622 ac_tool_warned=yes ;;
5623 esac
5624     CXX=$ac_ct_CXX
5625   fi
5626 fi
5627
5628   fi
5629 fi
5630 # Provide some information about the compiler.
5631 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5632 ac_compiler=`set X $ac_compile; echo $2`
5633 { (ac_try="$ac_compiler --version >&5"
5634 case "(($ac_try" in
5635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636   *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639   (eval "$ac_compiler --version >&5") 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }
5643 { (ac_try="$ac_compiler -v >&5"
5644 case "(($ac_try" in
5645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646   *) ac_try_echo=$ac_try;;
5647 esac
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649   (eval "$ac_compiler -v >&5") 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }
5653 { (ac_try="$ac_compiler -V >&5"
5654 case "(($ac_try" in
5655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656   *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659   (eval "$ac_compiler -V >&5") 2>&5
5660   ac_status=$?
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); }
5663
5664 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5665 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5666 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669   cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h.  */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h.  */
5675
5676 int
5677 main ()
5678 {
5679 #ifndef __GNUC__
5680        choke me
5681 #endif
5682
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (ac_try="$ac_compile"
5689 case "(($ac_try" in
5690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691   *) ac_try_echo=$ac_try;;
5692 esac
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694   (eval "$ac_compile") 2>conftest.er1
5695   ac_status=$?
5696   grep -v '^ *+' conftest.er1 >conftest.err
5697   rm -f conftest.er1
5698   cat conftest.err >&5
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } && {
5701          test -z "$ac_cxx_werror_flag" ||
5702          test ! -s conftest.err
5703        } && test -s conftest.$ac_objext; then
5704   ac_compiler_gnu=yes
5705 else
5706   echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709         ac_compiler_gnu=no
5710 fi
5711
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5714
5715 fi
5716 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5717 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5718 GXX=`test $ac_compiler_gnu = yes && echo yes`
5719 ac_test_CXXFLAGS=${CXXFLAGS+set}
5720 ac_save_CXXFLAGS=$CXXFLAGS
5721 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5722 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5723 if test "${ac_cv_prog_cxx_g+set}" = set; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5727    ac_cxx_werror_flag=yes
5728    ac_cv_prog_cxx_g=no
5729    CXXFLAGS="-g"
5730    cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h.  */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h.  */
5736
5737 int
5738 main ()
5739 {
5740
5741   ;
5742   return 0;
5743 }
5744 _ACEOF
5745 rm -f conftest.$ac_objext
5746 if { (ac_try="$ac_compile"
5747 case "(($ac_try" in
5748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749   *) ac_try_echo=$ac_try;;
5750 esac
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752   (eval "$ac_compile") 2>conftest.er1
5753   ac_status=$?
5754   grep -v '^ *+' conftest.er1 >conftest.err
5755   rm -f conftest.er1
5756   cat conftest.err >&5
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); } && {
5759          test -z "$ac_cxx_werror_flag" ||
5760          test ! -s conftest.err
5761        } && test -s conftest.$ac_objext; then
5762   ac_cv_prog_cxx_g=yes
5763 else
5764   echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5766
5767         CXXFLAGS=""
5768       cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h.  */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h.  */
5774
5775 int
5776 main ()
5777 {
5778
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5785 case "(($ac_try" in
5786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787   *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790   (eval "$ac_compile") 2>conftest.er1
5791   ac_status=$?
5792   grep -v '^ *+' conftest.er1 >conftest.err
5793   rm -f conftest.er1
5794   cat conftest.err >&5
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); } && {
5797          test -z "$ac_cxx_werror_flag" ||
5798          test ! -s conftest.err
5799        } && test -s conftest.$ac_objext; then
5800   :
5801 else
5802   echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5806          CXXFLAGS="-g"
5807          cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813
5814 int
5815 main ()
5816 {
5817
5818   ;
5819   return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5824 case "(($ac_try" in
5825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826   *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829   (eval "$ac_compile") 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } && {
5836          test -z "$ac_cxx_werror_flag" ||
5837          test ! -s conftest.err
5838        } && test -s conftest.$ac_objext; then
5839   ac_cv_prog_cxx_g=yes
5840 else
5841   echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844
5845 fi
5846
5847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848 fi
5849
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 fi
5852
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5855 fi
5856 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5857 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5858 if test "$ac_test_CXXFLAGS" = set; then
5859   CXXFLAGS=$ac_save_CXXFLAGS
5860 elif test $ac_cv_prog_cxx_g = yes; then
5861   if test "$GXX" = yes; then
5862     CXXFLAGS="-g -O2"
5863   else
5864     CXXFLAGS="-g"
5865   fi
5866 else
5867   if test "$GXX" = yes; then
5868     CXXFLAGS="-O2"
5869   else
5870     CXXFLAGS=
5871   fi
5872 fi
5873 ac_ext=cpp
5874 ac_cpp='$CXXCPP $CPPFLAGS'
5875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5878
5879 depcc="$CXX"  am_compiler_list=
5880
5881 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5882 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5883 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5887   # We make a subdir and do the tests there.  Otherwise we can end up
5888   # making bogus files that we don't know about and never remove.  For
5889   # instance it was reported that on HP-UX the gcc test will end up
5890   # making a dummy file named `D' -- because `-MD' means `put the output
5891   # in D'.
5892   mkdir conftest.dir
5893   # Copy depcomp to subdir because otherwise we won't find it if we're
5894   # using a relative directory.
5895   cp "$am_depcomp" conftest.dir
5896   cd conftest.dir
5897   # We will build objects and dependencies in a subdirectory because
5898   # it helps to detect inapplicable dependency modes.  For instance
5899   # both Tru64's cc and ICC support -MD to output dependencies as a
5900   # side effect of compilation, but ICC will put the dependencies in
5901   # the current directory while Tru64 will put them in the object
5902   # directory.
5903   mkdir sub
5904
5905   am_cv_CXX_dependencies_compiler_type=none
5906   if test "$am_compiler_list" = ""; then
5907      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5908   fi
5909   for depmode in $am_compiler_list; do
5910     # Setup a source with many dependencies, because some compilers
5911     # like to wrap large dependency lists on column 80 (with \), and
5912     # we should not choose a depcomp mode which is confused by this.
5913     #
5914     # We need to recreate these files for each test, as the compiler may
5915     # overwrite some of them when testing with obscure command lines.
5916     # This happens at least with the AIX C compiler.
5917     : > sub/conftest.c
5918     for i in 1 2 3 4 5 6; do
5919       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5920       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5921       # Solaris 8's {/usr,}/bin/sh.
5922       touch sub/conftst$i.h
5923     done
5924     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5925
5926     case $depmode in
5927     nosideeffect)
5928       # after this tag, mechanisms are not by side-effect, so they'll
5929       # only be used when explicitly requested
5930       if test "x$enable_dependency_tracking" = xyes; then
5931         continue
5932       else
5933         break
5934       fi
5935       ;;
5936     none) break ;;
5937     esac
5938     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5939     # mode.  It turns out that the SunPro C++ compiler does not properly
5940     # handle `-M -o', and we need to detect this.
5941     if depmode=$depmode \
5942        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5943        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5944        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5945          >/dev/null 2>conftest.err &&
5946        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5947        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5948        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5949        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5950       # icc doesn't choke on unknown options, it will just issue warnings
5951       # or remarks (even with -Werror).  So we grep stderr for any message
5952       # that says an option was ignored or not supported.
5953       # When given -MP, icc 7.0 and 7.1 complain thusly:
5954       #   icc: Command line warning: ignoring option '-M'; no argument required
5955       # The diagnosis changed in icc 8.0:
5956       #   icc: Command line remark: option '-MP' not supported
5957       if (grep 'ignoring option' conftest.err ||
5958           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5959         am_cv_CXX_dependencies_compiler_type=$depmode
5960         break
5961       fi
5962     fi
5963   done
5964
5965   cd ..
5966   rm -rf conftest.dir
5967 else
5968   am_cv_CXX_dependencies_compiler_type=none
5969 fi
5970
5971 fi
5972 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5973 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5974 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5975
5976  if
5977   test "x$enable_dependency_tracking" != xno \
5978   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5979   am__fastdepCXX_TRUE=
5980   am__fastdepCXX_FALSE='#'
5981 else
5982   am__fastdepCXX_TRUE='#'
5983   am__fastdepCXX_FALSE=
5984 fi
5985
5986
5987
5988
5989 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5990     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5991     (test "X$CXX" != "Xg++"))) ; then
5992   ac_ext=cpp
5993 ac_cpp='$CXXCPP $CPPFLAGS'
5994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5997 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5998 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5999 if test -z "$CXXCPP"; then
6000   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003       # Double quotes because CXXCPP needs to be expanded
6004     for CXXCPP in "$CXX -E" "/lib/cpp"
6005     do
6006       ac_preproc_ok=false
6007 for ac_cxx_preproc_warn_flag in '' yes
6008 do
6009   # Use a header file that comes with gcc, so configuring glibc
6010   # with a fresh cross-compiler works.
6011   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6012   # <limits.h> exists even on freestanding compilers.
6013   # On the NeXT, cc -E runs the code through the compiler's parser,
6014   # not just through cpp. "Syntax error" is here to catch this case.
6015   cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021 #ifdef __STDC__
6022 # include <limits.h>
6023 #else
6024 # include <assert.h>
6025 #endif
6026                      Syntax error
6027 _ACEOF
6028 if { (ac_try="$ac_cpp conftest.$ac_ext"
6029 case "(($ac_try" in
6030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031   *) ac_try_echo=$ac_try;;
6032 esac
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6035   ac_status=$?
6036   grep -v '^ *+' conftest.er1 >conftest.err
6037   rm -f conftest.er1
6038   cat conftest.err >&5
6039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040   (exit $ac_status); } >/dev/null && {
6041          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6042          test ! -s conftest.err
6043        }; then
6044   :
6045 else
6046   echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6048
6049   # Broken: fails on valid input.
6050 continue
6051 fi
6052
6053 rm -f conftest.err conftest.$ac_ext
6054
6055   # OK, works on sane cases.  Now check whether nonexistent headers
6056   # can be detected and how.
6057   cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h.  */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h.  */
6063 #include <ac_nonexistent.h>
6064 _ACEOF
6065 if { (ac_try="$ac_cpp conftest.$ac_ext"
6066 case "(($ac_try" in
6067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068   *) ac_try_echo=$ac_try;;
6069 esac
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6072   ac_status=$?
6073   grep -v '^ *+' conftest.er1 >conftest.err
6074   rm -f conftest.er1
6075   cat conftest.err >&5
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); } >/dev/null && {
6078          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6079          test ! -s conftest.err
6080        }; then
6081   # Broken: success on invalid input.
6082 continue
6083 else
6084   echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6086
6087   # Passes both tests.
6088 ac_preproc_ok=:
6089 break
6090 fi
6091
6092 rm -f conftest.err conftest.$ac_ext
6093
6094 done
6095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6096 rm -f conftest.err conftest.$ac_ext
6097 if $ac_preproc_ok; then
6098   break
6099 fi
6100
6101     done
6102     ac_cv_prog_CXXCPP=$CXXCPP
6103
6104 fi
6105   CXXCPP=$ac_cv_prog_CXXCPP
6106 else
6107   ac_cv_prog_CXXCPP=$CXXCPP
6108 fi
6109 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6110 echo "${ECHO_T}$CXXCPP" >&6; }
6111 ac_preproc_ok=false
6112 for ac_cxx_preproc_warn_flag in '' yes
6113 do
6114   # Use a header file that comes with gcc, so configuring glibc
6115   # with a fresh cross-compiler works.
6116   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117   # <limits.h> exists even on freestanding compilers.
6118   # On the NeXT, cc -E runs the code through the compiler's parser,
6119   # not just through cpp. "Syntax error" is here to catch this case.
6120   cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126 #ifdef __STDC__
6127 # include <limits.h>
6128 #else
6129 # include <assert.h>
6130 #endif
6131                      Syntax error
6132 _ACEOF
6133 if { (ac_try="$ac_cpp conftest.$ac_ext"
6134 case "(($ac_try" in
6135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136   *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6140   ac_status=$?
6141   grep -v '^ *+' conftest.er1 >conftest.err
6142   rm -f conftest.er1
6143   cat conftest.err >&5
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); } >/dev/null && {
6146          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6147          test ! -s conftest.err
6148        }; then
6149   :
6150 else
6151   echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154   # Broken: fails on valid input.
6155 continue
6156 fi
6157
6158 rm -f conftest.err conftest.$ac_ext
6159
6160   # OK, works on sane cases.  Now check whether nonexistent headers
6161   # can be detected and how.
6162   cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h.  */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h.  */
6168 #include <ac_nonexistent.h>
6169 _ACEOF
6170 if { (ac_try="$ac_cpp conftest.$ac_ext"
6171 case "(($ac_try" in
6172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173   *) ac_try_echo=$ac_try;;
6174 esac
6175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6177   ac_status=$?
6178   grep -v '^ *+' conftest.er1 >conftest.err
6179   rm -f conftest.er1
6180   cat conftest.err >&5
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); } >/dev/null && {
6183          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6184          test ! -s conftest.err
6185        }; then
6186   # Broken: success on invalid input.
6187 continue
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192   # Passes both tests.
6193 ac_preproc_ok=:
6194 break
6195 fi
6196
6197 rm -f conftest.err conftest.$ac_ext
6198
6199 done
6200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6201 rm -f conftest.err conftest.$ac_ext
6202 if $ac_preproc_ok; then
6203   :
6204 else
6205   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6206 See \`config.log' for more details." >&5
6207 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6208 See \`config.log' for more details." >&2;}
6209    { (exit 1); exit 1; }; }
6210 fi
6211
6212 ac_ext=cpp
6213 ac_cpp='$CXXCPP $CPPFLAGS'
6214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6217
6218 fi
6219
6220
6221 ac_ext=f
6222 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6223 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6225 if test -n "$ac_tool_prefix"; then
6226   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
6227   do
6228     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_F77+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   if test -n "$F77"; then
6236   ac_cv_prog_F77="$F77" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241   IFS=$as_save_IFS
6242   test -z "$as_dir" && as_dir=.
6243   for ac_exec_ext in '' $ac_executable_extensions; do
6244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 F77=$ac_cv_prog_F77
6256 if test -n "$F77"; then
6257   { echo "$as_me:$LINENO: result: $F77" >&5
6258 echo "${ECHO_T}$F77" >&6; }
6259 else
6260   { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6262 fi
6263
6264
6265     test -n "$F77" && break
6266   done
6267 fi
6268 if test -z "$F77"; then
6269   ac_ct_F77=$F77
6270   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
6271 do
6272   # Extract the first word of "$ac_prog", so it can be a program name with args.
6273 set dummy $ac_prog; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   if test -n "$ac_ct_F77"; then
6280   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285   IFS=$as_save_IFS
6286   test -z "$as_dir" && as_dir=.
6287   for ac_exec_ext in '' $ac_executable_extensions; do
6288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289     ac_cv_prog_ac_ct_F77="$ac_prog"
6290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291     break 2
6292   fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297 fi
6298 fi
6299 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6300 if test -n "$ac_ct_F77"; then
6301   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6302 echo "${ECHO_T}$ac_ct_F77" >&6; }
6303 else
6304   { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6306 fi
6307
6308
6309   test -n "$ac_ct_F77" && break
6310 done
6311
6312   if test "x$ac_ct_F77" = x; then
6313     F77=""
6314   else
6315     case $cross_compiling:$ac_tool_warned in
6316 yes:)
6317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6318 whose name does not start with the host triplet.  If you think this
6319 configuration is useful to you, please write to autoconf@gnu.org." >&5
6320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6321 whose name does not start with the host triplet.  If you think this
6322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6323 ac_tool_warned=yes ;;
6324 esac
6325     F77=$ac_ct_F77
6326   fi
6327 fi
6328
6329
6330 # Provide some information about the compiler.
6331 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6332 ac_compiler=`set X $ac_compile; echo $2`
6333 { (ac_try="$ac_compiler --version >&5"
6334 case "(($ac_try" in
6335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336   *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339   (eval "$ac_compiler --version >&5") 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }
6343 { (ac_try="$ac_compiler -v >&5"
6344 case "(($ac_try" in
6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346   *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349   (eval "$ac_compiler -v >&5") 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }
6353 { (ac_try="$ac_compiler -V >&5"
6354 case "(($ac_try" in
6355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356   *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359   (eval "$ac_compiler -V >&5") 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }
6363 rm -f a.out
6364
6365 # If we don't use `.F' as extension, the preprocessor is not run on the
6366 # input file.  (Note that this only needs to work for GNU compilers.)
6367 ac_save_ext=$ac_ext
6368 ac_ext=F
6369 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6370 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6371 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   cat >conftest.$ac_ext <<_ACEOF
6375       program main
6376 #ifndef __GNUC__
6377        choke me
6378 #endif
6379
6380       end
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (ac_try="$ac_compile"
6384 case "(($ac_try" in
6385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386   *) ac_try_echo=$ac_try;;
6387 esac
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389   (eval "$ac_compile") 2>conftest.er1
6390   ac_status=$?
6391   grep -v '^ *+' conftest.er1 >conftest.err
6392   rm -f conftest.er1
6393   cat conftest.err >&5
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); } && {
6396          test -z "$ac_f77_werror_flag" ||
6397          test ! -s conftest.err
6398        } && test -s conftest.$ac_objext; then
6399   ac_compiler_gnu=yes
6400 else
6401   echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404         ac_compiler_gnu=no
6405 fi
6406
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6409
6410 fi
6411 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6412 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6413 ac_ext=$ac_save_ext
6414 ac_test_FFLAGS=${FFLAGS+set}
6415 ac_save_FFLAGS=$FFLAGS
6416 FFLAGS=
6417 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6418 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6419 if test "${ac_cv_prog_f77_g+set}" = set; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   FFLAGS=-g
6423 cat >conftest.$ac_ext <<_ACEOF
6424       program main
6425
6426       end
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (ac_try="$ac_compile"
6430 case "(($ac_try" in
6431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432   *) ac_try_echo=$ac_try;;
6433 esac
6434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435   (eval "$ac_compile") 2>conftest.er1
6436   ac_status=$?
6437   grep -v '^ *+' conftest.er1 >conftest.err
6438   rm -f conftest.er1
6439   cat conftest.err >&5
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); } && {
6442          test -z "$ac_f77_werror_flag" ||
6443          test ! -s conftest.err
6444        } && test -s conftest.$ac_objext; then
6445   ac_cv_prog_f77_g=yes
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450         ac_cv_prog_f77_g=no
6451 fi
6452
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454
6455 fi
6456 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6457 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6458 if test "$ac_test_FFLAGS" = set; then
6459   FFLAGS=$ac_save_FFLAGS
6460 elif test $ac_cv_prog_f77_g = yes; then
6461   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6462     FFLAGS="-g -O2"
6463   else
6464     FFLAGS="-g"
6465   fi
6466 else
6467   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6468     FFLAGS="-O2"
6469   else
6470     FFLAGS=
6471   fi
6472 fi
6473
6474 G77=`test $ac_compiler_gnu = yes && echo yes`
6475 ac_ext=c
6476 ac_cpp='$CPP $CPPFLAGS'
6477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6480
6481
6482
6483 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6484 # find the maximum length of command line arguments
6485 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6486 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6487 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490     i=0
6491   teststring="ABCD"
6492
6493   case $build_os in
6494   msdosdjgpp*)
6495     # On DJGPP, this test can blow up pretty badly due to problems in libc
6496     # (any single argument exceeding 2000 bytes causes a buffer overrun
6497     # during glob expansion).  Even if it were fixed, the result of this
6498     # check would be larger than it should be.
6499     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6500     ;;
6501
6502   gnu*)
6503     # Under GNU Hurd, this test is not required because there is
6504     # no limit to the length of command line arguments.
6505     # Libtool will interpret -1 as no limit whatsoever
6506     lt_cv_sys_max_cmd_len=-1;
6507     ;;
6508
6509   cygwin* | mingw*)
6510     # On Win9x/ME, this test blows up -- it succeeds, but takes
6511     # about 5 minutes as the teststring grows exponentially.
6512     # Worse, since 9x/ME are not pre-emptively multitasking,
6513     # you end up with a "frozen" computer, even though with patience
6514     # the test eventually succeeds (with a max line length of 256k).
6515     # Instead, let's just punt: use the minimum linelength reported by
6516     # all of the supported platforms: 8192 (on NT/2K/XP).
6517     lt_cv_sys_max_cmd_len=8192;
6518     ;;
6519
6520   amigaos*)
6521     # On AmigaOS with pdksh, this test takes hours, literally.
6522     # So we just punt and use a minimum line length of 8192.
6523     lt_cv_sys_max_cmd_len=8192;
6524     ;;
6525
6526   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6527     # This has been around since 386BSD, at least.  Likely further.
6528     if test -x /sbin/sysctl; then
6529       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6530     elif test -x /usr/sbin/sysctl; then
6531       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6532     else
6533       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6534     fi
6535     # And add a safety zone
6536     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6537     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6538     ;;
6539
6540   interix*)
6541     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6542     lt_cv_sys_max_cmd_len=196608
6543     ;;
6544
6545   osf*)
6546     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6547     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6548     # nice to cause kernel panics so lets avoid the loop below.
6549     # First set a reasonable default.
6550     lt_cv_sys_max_cmd_len=16384
6551     #
6552     if test -x /sbin/sysconfig; then
6553       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6554         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6555       esac
6556     fi
6557     ;;
6558   sco3.2v5*)
6559     lt_cv_sys_max_cmd_len=102400
6560     ;;
6561   sysv5* | sco5v6* | sysv4.2uw2*)
6562     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6563     if test -n "$kargmax"; then
6564       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6565     else
6566       lt_cv_sys_max_cmd_len=32768
6567     fi
6568     ;;
6569   *)
6570     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6571     if test -n "$lt_cv_sys_max_cmd_len"; then
6572       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6573       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6574     else
6575       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6576       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6577                = "XX$teststring") >/dev/null 2>&1 &&
6578               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6579               lt_cv_sys_max_cmd_len=$new_result &&
6580               test $i != 17 # 1/2 MB should be enough
6581       do
6582         i=`expr $i + 1`
6583         teststring=$teststring$teststring
6584       done
6585       teststring=
6586       # Add a significant safety factor because C++ compilers can tack on massive
6587       # amounts of additional arguments before passing them to the linker.
6588       # It appears as though 1/2 is a usable value.
6589       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6590     fi
6591     ;;
6592   esac
6593
6594 fi
6595
6596 if test -n $lt_cv_sys_max_cmd_len ; then
6597   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6598 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6599 else
6600   { echo "$as_me:$LINENO: result: none" >&5
6601 echo "${ECHO_T}none" >&6; }
6602 fi
6603
6604
6605
6606
6607
6608 # Check for command to grab the raw symbol name followed by C symbol from nm.
6609 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6610 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6611 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614
6615 # These are sane defaults that work on at least a few old systems.
6616 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6617
6618 # Character class describing NM global symbol codes.
6619 symcode='[BCDEGRST]'
6620
6621 # Regexp to match symbols that can be accessed directly from C.
6622 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6623
6624 # Transform an extracted symbol line into a proper C declaration
6625 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6626
6627 # Transform an extracted symbol line into symbol name and symbol address
6628 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'"
6629
6630 # Define system-specific variables.
6631 case $host_os in
6632 aix*)
6633   symcode='[BCDT]'
6634   ;;
6635 cygwin* | mingw* | pw32*)
6636   symcode='[ABCDGISTW]'
6637   ;;
6638 hpux*) # Its linker distinguishes data from code symbols
6639   if test "$host_cpu" = ia64; then
6640     symcode='[ABCDEGRST]'
6641   fi
6642   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6643   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'"
6644   ;;
6645 linux* | k*bsd*-gnu)
6646   if test "$host_cpu" = ia64; then
6647     symcode='[ABCDGIRSTW]'
6648     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6649     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'"
6650   fi
6651   ;;
6652 irix* | nonstopux*)
6653   symcode='[BCDEGRST]'
6654   ;;
6655 osf*)
6656   symcode='[BCDEGQRST]'
6657   ;;
6658 solaris*)
6659   symcode='[BDRT]'
6660   ;;
6661 sco3.2v5*)
6662   symcode='[DT]'
6663   ;;
6664 sysv4.2uw2*)
6665   symcode='[DT]'
6666   ;;
6667 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6668   symcode='[ABDT]'
6669   ;;
6670 sysv4)
6671   symcode='[DFNSTU]'
6672   ;;
6673 esac
6674
6675 # Handle CRLF in mingw tool chain
6676 opt_cr=
6677 case $build_os in
6678 mingw*)
6679   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6680   ;;
6681 esac
6682
6683 # If we're using GNU nm, then use its standard symbol codes.
6684 case `$NM -V 2>&1` in
6685 *GNU* | *'with BFD'*)
6686   symcode='[ABCDGIRSTW]' ;;
6687 esac
6688
6689 # Try without a prefix undercore, then with it.
6690 for ac_symprfx in "" "_"; do
6691
6692   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6693   symxfrm="\\1 $ac_symprfx\\2 \\2"
6694
6695   # Write the raw and C identifiers.
6696   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6697
6698   # Check to see that the pipe works correctly.
6699   pipe_works=no
6700
6701   rm -f conftest*
6702   cat > conftest.$ac_ext <<EOF
6703 #ifdef __cplusplus
6704 extern "C" {
6705 #endif
6706 char nm_test_var;
6707 void nm_test_func(){}
6708 #ifdef __cplusplus
6709 }
6710 #endif
6711 int main(){nm_test_var='a';nm_test_func();return(0);}
6712 EOF
6713
6714   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715   (eval $ac_compile) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; then
6719     # Now try to grab the symbols.
6720     nlist=conftest.nm
6721     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6722   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); } && test -s "$nlist"; then
6726       # Try sorting and uniquifying the output.
6727       if sort "$nlist" | uniq > "$nlist"T; then
6728         mv -f "$nlist"T "$nlist"
6729       else
6730         rm -f "$nlist"T
6731       fi
6732
6733       # Make sure that we snagged all the symbols we need.
6734       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6735         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6736           cat <<EOF > conftest.$ac_ext
6737 #ifdef __cplusplus
6738 extern "C" {
6739 #endif
6740
6741 EOF
6742           # Now generate the symbol file.
6743           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6744
6745           cat <<EOF >> conftest.$ac_ext
6746 #if defined (__STDC__) && __STDC__
6747 # define lt_ptr_t void *
6748 #else
6749 # define lt_ptr_t char *
6750 # define const
6751 #endif
6752
6753 /* The mapping between symbol names and symbols. */
6754 const struct {
6755   const char *name;
6756   lt_ptr_t address;
6757 }
6758 lt_preloaded_symbols[] =
6759 {
6760 EOF
6761           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6762           cat <<\EOF >> conftest.$ac_ext
6763   {0, (lt_ptr_t) 0}
6764 };
6765
6766 #ifdef __cplusplus
6767 }
6768 #endif
6769 EOF
6770           # Now try linking the two files.
6771           mv conftest.$ac_objext conftstm.$ac_objext
6772           lt_save_LIBS="$LIBS"
6773           lt_save_CFLAGS="$CFLAGS"
6774           LIBS="conftstm.$ac_objext"
6775           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6776           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777   (eval $ac_link) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6781             pipe_works=yes
6782           fi
6783           LIBS="$lt_save_LIBS"
6784           CFLAGS="$lt_save_CFLAGS"
6785         else
6786           echo "cannot find nm_test_func in $nlist" >&5
6787         fi
6788       else
6789         echo "cannot find nm_test_var in $nlist" >&5
6790       fi
6791     else
6792       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6793     fi
6794   else
6795     echo "$progname: failed program was:" >&5
6796     cat conftest.$ac_ext >&5
6797   fi
6798   rm -rf conftest* conftst*
6799
6800   # Do not use the global_symbol_pipe unless it works.
6801   if test "$pipe_works" = yes; then
6802     break
6803   else
6804     lt_cv_sys_global_symbol_pipe=
6805   fi
6806 done
6807
6808 fi
6809
6810 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6811   lt_cv_sys_global_symbol_to_cdecl=
6812 fi
6813 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6814   { echo "$as_me:$LINENO: result: failed" >&5
6815 echo "${ECHO_T}failed" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: ok" >&5
6818 echo "${ECHO_T}ok" >&6; }
6819 fi
6820
6821 { echo "$as_me:$LINENO: checking for objdir" >&5
6822 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6823 if test "${lt_cv_objdir+set}" = set; then
6824   echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826   rm -f .libs 2>/dev/null
6827 mkdir .libs 2>/dev/null
6828 if test -d .libs; then
6829   lt_cv_objdir=.libs
6830 else
6831   # MS-DOS does not allow filenames that begin with a dot.
6832   lt_cv_objdir=_libs
6833 fi
6834 rmdir .libs 2>/dev/null
6835 fi
6836 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6837 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6838 objdir=$lt_cv_objdir
6839
6840
6841
6842
6843
6844 case $host_os in
6845 aix3*)
6846   # AIX sometimes has problems with the GCC collect2 program.  For some
6847   # reason, if we set the COLLECT_NAMES environment variable, the problems
6848   # vanish in a puff of smoke.
6849   if test "X${COLLECT_NAMES+set}" != Xset; then
6850     COLLECT_NAMES=
6851     export COLLECT_NAMES
6852   fi
6853   ;;
6854 esac
6855
6856 # Sed substitution that helps us do robust quoting.  It backslashifies
6857 # metacharacters that are still active within double-quoted strings.
6858 Xsed='sed -e 1s/^X//'
6859 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6860
6861 # Same as above, but do not quote variable references.
6862 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6863
6864 # Sed substitution to delay expansion of an escaped shell variable in a
6865 # double_quote_subst'ed string.
6866 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6867
6868 # Sed substitution to avoid accidental globbing in evaled expressions
6869 no_glob_subst='s/\*/\\\*/g'
6870
6871 # Constants:
6872 rm="rm -f"
6873
6874 # Global variables:
6875 default_ofile=libtool
6876 can_build_shared=yes
6877
6878 # All known linkers require a `.a' archive for static linking (except MSVC,
6879 # which needs '.lib').
6880 libext=a
6881 ltmain="$ac_aux_dir/ltmain.sh"
6882 ofile="$default_ofile"
6883 with_gnu_ld="$lt_cv_prog_gnu_ld"
6884
6885 if test -n "$ac_tool_prefix"; then
6886   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}ar; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_prog_AR+set}" = set; then
6891   echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893   if test -n "$AR"; then
6894   ac_cv_prog_AR="$AR" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901   for ac_exec_ext in '' $ac_executable_extensions; do
6902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903     ac_cv_prog_AR="${ac_tool_prefix}ar"
6904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 AR=$ac_cv_prog_AR
6914 if test -n "$AR"; then
6915   { echo "$as_me:$LINENO: result: $AR" >&5
6916 echo "${ECHO_T}$AR" >&6; }
6917 else
6918   { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6920 fi
6921
6922
6923 fi
6924 if test -z "$ac_cv_prog_AR"; then
6925   ac_ct_AR=$AR
6926   # Extract the first word of "ar", so it can be a program name with args.
6927 set dummy ar; ac_word=$2
6928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6931   echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933   if test -n "$ac_ct_AR"; then
6934   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941   for ac_exec_ext in '' $ac_executable_extensions; do
6942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943     ac_cv_prog_ac_ct_AR="ar"
6944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948 done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6954 if test -n "$ac_ct_AR"; then
6955   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6956 echo "${ECHO_T}$ac_ct_AR" >&6; }
6957 else
6958   { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6960 fi
6961
6962   if test "x$ac_ct_AR" = x; then
6963     AR="false"
6964   else
6965     case $cross_compiling:$ac_tool_warned in
6966 yes:)
6967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6968 whose name does not start with the host triplet.  If you think this
6969 configuration is useful to you, please write to autoconf@gnu.org." >&5
6970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6971 whose name does not start with the host triplet.  If you think this
6972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975     AR=$ac_ct_AR
6976   fi
6977 else
6978   AR="$ac_cv_prog_AR"
6979 fi
6980
6981 if test -n "$ac_tool_prefix"; then
6982   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_prog_RANLIB+set}" = set; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989   if test -n "$RANLIB"; then
6990   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997   for ac_exec_ext in '' $ac_executable_extensions; do
6998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 RANLIB=$ac_cv_prog_RANLIB
7010 if test -n "$RANLIB"; then
7011   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7012 echo "${ECHO_T}$RANLIB" >&6; }
7013 else
7014   { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7017
7018
7019 fi
7020 if test -z "$ac_cv_prog_RANLIB"; then
7021   ac_ct_RANLIB=$RANLIB
7022   # Extract the first word of "ranlib", so it can be a program name with args.
7023 set dummy ranlib; ac_word=$2
7024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   if test -n "$ac_ct_RANLIB"; then
7030   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037   for ac_exec_ext in '' $ac_executable_extensions; do
7038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039     ac_cv_prog_ac_ct_RANLIB="ranlib"
7040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7050 if test -n "$ac_ct_RANLIB"; then
7051   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7052 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7053 else
7054   { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7056 fi
7057
7058   if test "x$ac_ct_RANLIB" = x; then
7059     RANLIB=":"
7060   else
7061     case $cross_compiling:$ac_tool_warned in
7062 yes:)
7063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7064 whose name does not start with the host triplet.  If you think this
7065 configuration is useful to you, please write to autoconf@gnu.org." >&5
7066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7067 whose name does not start with the host triplet.  If you think this
7068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7069 ac_tool_warned=yes ;;
7070 esac
7071     RANLIB=$ac_ct_RANLIB
7072   fi
7073 else
7074   RANLIB="$ac_cv_prog_RANLIB"
7075 fi
7076
7077 if test -n "$ac_tool_prefix"; then
7078   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}strip; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_prog_STRIP+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   if test -n "$STRIP"; then
7086   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7090 do
7091   IFS=$as_save_IFS
7092   test -z "$as_dir" && as_dir=.
7093   for ac_exec_ext in '' $ac_executable_extensions; do
7094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097     break 2
7098   fi
7099 done
7100 done
7101 IFS=$as_save_IFS
7102
7103 fi
7104 fi
7105 STRIP=$ac_cv_prog_STRIP
7106 if test -n "$STRIP"; then
7107   { echo "$as_me:$LINENO: result: $STRIP" >&5
7108 echo "${ECHO_T}$STRIP" >&6; }
7109 else
7110   { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7112 fi
7113
7114
7115 fi
7116 if test -z "$ac_cv_prog_STRIP"; then
7117   ac_ct_STRIP=$STRIP
7118   # Extract the first word of "strip", so it can be a program name with args.
7119 set dummy strip; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   if test -n "$ac_ct_STRIP"; then
7126   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131   IFS=$as_save_IFS
7132   test -z "$as_dir" && as_dir=.
7133   for ac_exec_ext in '' $ac_executable_extensions; do
7134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135     ac_cv_prog_ac_ct_STRIP="strip"
7136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137     break 2
7138   fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7146 if test -n "$ac_ct_STRIP"; then
7147   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7148 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7149 else
7150   { echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6; }
7152 fi
7153
7154   if test "x$ac_ct_STRIP" = x; then
7155     STRIP=":"
7156   else
7157     case $cross_compiling:$ac_tool_warned in
7158 yes:)
7159 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7160 whose name does not start with the host triplet.  If you think this
7161 configuration is useful to you, please write to autoconf@gnu.org." >&5
7162 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7163 whose name does not start with the host triplet.  If you think this
7164 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7165 ac_tool_warned=yes ;;
7166 esac
7167     STRIP=$ac_ct_STRIP
7168   fi
7169 else
7170   STRIP="$ac_cv_prog_STRIP"
7171 fi
7172
7173
7174 old_CC="$CC"
7175 old_CFLAGS="$CFLAGS"
7176
7177 # Set sane defaults for various variables
7178 test -z "$AR" && AR=ar
7179 test -z "$AR_FLAGS" && AR_FLAGS=cru
7180 test -z "$AS" && AS=as
7181 test -z "$CC" && CC=cc
7182 test -z "$LTCC" && LTCC=$CC
7183 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7184 test -z "$DLLTOOL" && DLLTOOL=dlltool
7185 test -z "$LD" && LD=ld
7186 test -z "$LN_S" && LN_S="ln -s"
7187 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7188 test -z "$NM" && NM=nm
7189 test -z "$SED" && SED=sed
7190 test -z "$OBJDUMP" && OBJDUMP=objdump
7191 test -z "$RANLIB" && RANLIB=:
7192 test -z "$STRIP" && STRIP=:
7193 test -z "$ac_objext" && ac_objext=o
7194
7195 # Determine commands to create old-style static archives.
7196 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7197 old_postinstall_cmds='chmod 644 $oldlib'
7198 old_postuninstall_cmds=
7199
7200 if test -n "$RANLIB"; then
7201   case $host_os in
7202   openbsd*)
7203     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7204     ;;
7205   *)
7206     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7207     ;;
7208   esac
7209   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7210 fi
7211
7212 for cc_temp in $compiler""; do
7213   case $cc_temp in
7214     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7215     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7216     \-*) ;;
7217     *) break;;
7218   esac
7219 done
7220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7221
7222
7223 # Only perform the check for file, if the check method requires it
7224 case $deplibs_check_method in
7225 file_magic*)
7226   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7227     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7228 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7229 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   case $MAGIC_CMD in
7233 [\\/*] |  ?:[\\/]*)
7234   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7235   ;;
7236 *)
7237   lt_save_MAGIC_CMD="$MAGIC_CMD"
7238   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7239   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7240   for ac_dir in $ac_dummy; do
7241     IFS="$lt_save_ifs"
7242     test -z "$ac_dir" && ac_dir=.
7243     if test -f $ac_dir/${ac_tool_prefix}file; then
7244       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7245       if test -n "$file_magic_test_file"; then
7246         case $deplibs_check_method in
7247         "file_magic "*)
7248           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7249           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7250           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7251             $EGREP "$file_magic_regex" > /dev/null; then
7252             :
7253           else
7254             cat <<EOF 1>&2
7255
7256 *** Warning: the command libtool uses to detect shared libraries,
7257 *** $file_magic_cmd, produces output that libtool cannot recognize.
7258 *** The result is that libtool may fail to recognize shared libraries
7259 *** as such.  This will affect the creation of libtool libraries that
7260 *** depend on shared libraries, but programs linked with such libtool
7261 *** libraries will work regardless of this problem.  Nevertheless, you
7262 *** may want to report the problem to your system manager and/or to
7263 *** bug-libtool@gnu.org
7264
7265 EOF
7266           fi ;;
7267         esac
7268       fi
7269       break
7270     fi
7271   done
7272   IFS="$lt_save_ifs"
7273   MAGIC_CMD="$lt_save_MAGIC_CMD"
7274   ;;
7275 esac
7276 fi
7277
7278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7279 if test -n "$MAGIC_CMD"; then
7280   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7281 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7282 else
7283   { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7285 fi
7286
7287 if test -z "$lt_cv_path_MAGIC_CMD"; then
7288   if test -n "$ac_tool_prefix"; then
7289     { echo "$as_me:$LINENO: checking for file" >&5
7290 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7291 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   case $MAGIC_CMD in
7295 [\\/*] |  ?:[\\/]*)
7296   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7297   ;;
7298 *)
7299   lt_save_MAGIC_CMD="$MAGIC_CMD"
7300   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7301   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7302   for ac_dir in $ac_dummy; do
7303     IFS="$lt_save_ifs"
7304     test -z "$ac_dir" && ac_dir=.
7305     if test -f $ac_dir/file; then
7306       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7307       if test -n "$file_magic_test_file"; then
7308         case $deplibs_check_method in
7309         "file_magic "*)
7310           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7311           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7312           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7313             $EGREP "$file_magic_regex" > /dev/null; then
7314             :
7315           else
7316             cat <<EOF 1>&2
7317
7318 *** Warning: the command libtool uses to detect shared libraries,
7319 *** $file_magic_cmd, produces output that libtool cannot recognize.
7320 *** The result is that libtool may fail to recognize shared libraries
7321 *** as such.  This will affect the creation of libtool libraries that
7322 *** depend on shared libraries, but programs linked with such libtool
7323 *** libraries will work regardless of this problem.  Nevertheless, you
7324 *** may want to report the problem to your system manager and/or to
7325 *** bug-libtool@gnu.org
7326
7327 EOF
7328           fi ;;
7329         esac
7330       fi
7331       break
7332     fi
7333   done
7334   IFS="$lt_save_ifs"
7335   MAGIC_CMD="$lt_save_MAGIC_CMD"
7336   ;;
7337 esac
7338 fi
7339
7340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7341 if test -n "$MAGIC_CMD"; then
7342   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7343 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7344 else
7345   { echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6; }
7347 fi
7348
7349   else
7350     MAGIC_CMD=:
7351   fi
7352 fi
7353
7354   fi
7355   ;;
7356 esac
7357
7358
7359   case $host_os in
7360     rhapsody* | darwin*)
7361     if test -n "$ac_tool_prefix"; then
7362   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7363 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7366 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7367   echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369   if test -n "$DSYMUTIL"; then
7370   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375   IFS=$as_save_IFS
7376   test -z "$as_dir" && as_dir=.
7377   for ac_exec_ext in '' $ac_executable_extensions; do
7378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381     break 2
7382   fi
7383 done
7384 done
7385 IFS=$as_save_IFS
7386
7387 fi
7388 fi
7389 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7390 if test -n "$DSYMUTIL"; then
7391   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7392 echo "${ECHO_T}$DSYMUTIL" >&6; }
7393 else
7394   { echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6; }
7396 fi
7397
7398
7399 fi
7400 if test -z "$ac_cv_prog_DSYMUTIL"; then
7401   ac_ct_DSYMUTIL=$DSYMUTIL
7402   # Extract the first word of "dsymutil", so it can be a program name with args.
7403 set dummy dsymutil; ac_word=$2
7404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   if test -n "$ac_ct_DSYMUTIL"; then
7410   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417   for ac_exec_ext in '' $ac_executable_extensions; do
7418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7430 if test -n "$ac_ct_DSYMUTIL"; then
7431   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7432 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7433 else
7434   { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7436 fi
7437
7438   if test "x$ac_ct_DSYMUTIL" = x; then
7439     DSYMUTIL=":"
7440   else
7441     case $cross_compiling:$ac_tool_warned in
7442 yes:)
7443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7444 whose name does not start with the host triplet.  If you think this
7445 configuration is useful to you, please write to autoconf@gnu.org." >&5
7446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7447 whose name does not start with the host triplet.  If you think this
7448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7449 ac_tool_warned=yes ;;
7450 esac
7451     DSYMUTIL=$ac_ct_DSYMUTIL
7452   fi
7453 else
7454   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7455 fi
7456
7457     if test -n "$ac_tool_prefix"; then
7458   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7459 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7462 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7463   echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465   if test -n "$NMEDIT"; then
7466   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473   for ac_exec_ext in '' $ac_executable_extensions; do
7474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7475     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480 done
7481 IFS=$as_save_IFS
7482
7483 fi
7484 fi
7485 NMEDIT=$ac_cv_prog_NMEDIT
7486 if test -n "$NMEDIT"; then
7487   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7488 echo "${ECHO_T}$NMEDIT" >&6; }
7489 else
7490   { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7492 fi
7493
7494
7495 fi
7496 if test -z "$ac_cv_prog_NMEDIT"; then
7497   ac_ct_NMEDIT=$NMEDIT
7498   # Extract the first word of "nmedit", so it can be a program name with args.
7499 set dummy nmedit; ac_word=$2
7500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   if test -n "$ac_ct_NMEDIT"; then
7506   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513   for ac_exec_ext in '' $ac_executable_extensions; do
7514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520 done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7526 if test -n "$ac_ct_NMEDIT"; then
7527   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7528 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7529 else
7530   { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7532 fi
7533
7534   if test "x$ac_ct_NMEDIT" = x; then
7535     NMEDIT=":"
7536   else
7537     case $cross_compiling:$ac_tool_warned in
7538 yes:)
7539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7540 whose name does not start with the host triplet.  If you think this
7541 configuration is useful to you, please write to autoconf@gnu.org." >&5
7542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7543 whose name does not start with the host triplet.  If you think this
7544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7545 ac_tool_warned=yes ;;
7546 esac
7547     NMEDIT=$ac_ct_NMEDIT
7548   fi
7549 else
7550   NMEDIT="$ac_cv_prog_NMEDIT"
7551 fi
7552
7553
7554     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7555 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7556 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   lt_cv_apple_cc_single_mod=no
7560       if test -z "${LT_MULTI_MODULE}"; then
7561    # By default we will add the -single_module flag. You can override
7562    # by either setting the environment variable LT_MULTI_MODULE
7563    # non-empty at configure time, or by adding -multi_module to the
7564    # link flags.
7565    echo "int foo(void){return 1;}" > conftest.c
7566    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7567      -dynamiclib ${wl}-single_module conftest.c
7568    if test -f libconftest.dylib; then
7569      lt_cv_apple_cc_single_mod=yes
7570      rm -rf libconftest.dylib*
7571    fi
7572    rm conftest.c
7573       fi
7574 fi
7575 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7576 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7577     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7578 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7579 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7580   echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582   lt_cv_ld_exported_symbols_list=no
7583       save_LDFLAGS=$LDFLAGS
7584       echo "_main" > conftest.sym
7585       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7586       cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h.  */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h.  */
7592
7593 int
7594 main ()
7595 {
7596
7597   ;
7598   return 0;
7599 }
7600 _ACEOF
7601 rm -f conftest.$ac_objext conftest$ac_exeext
7602 if { (ac_try="$ac_link"
7603 case "(($ac_try" in
7604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605   *) ac_try_echo=$ac_try;;
7606 esac
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608   (eval "$ac_link") 2>conftest.er1
7609   ac_status=$?
7610   grep -v '^ *+' conftest.er1 >conftest.err
7611   rm -f conftest.er1
7612   cat conftest.err >&5
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); } && {
7615          test -z "$ac_c_werror_flag" ||
7616          test ! -s conftest.err
7617        } && test -s conftest$ac_exeext &&
7618        $as_test_x conftest$ac_exeext; then
7619   lt_cv_ld_exported_symbols_list=yes
7620 else
7621   echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7623
7624         lt_cv_ld_exported_symbols_list=no
7625 fi
7626
7627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7628       conftest$ac_exeext conftest.$ac_ext
7629    LDFLAGS="$save_LDFLAGS"
7630
7631 fi
7632 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7633 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7634     case $host_os in
7635     rhapsody* | darwin1.[0123])
7636       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7637     darwin1.*)
7638      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7639     darwin*)
7640       # if running on 10.5 or later, the deployment target defaults
7641       # to the OS version, if on x86, and 10.4, the deployment
7642       # target defaults to 10.4. Don't you love it?
7643       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7644    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7645      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7646    10.[012]*)
7647      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7648    10.*)
7649      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7650       esac
7651     ;;
7652   esac
7653     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7654       _lt_dar_single_mod='$single_module'
7655     fi
7656     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7657       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7658     else
7659       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7660     fi
7661     if test "$DSYMUTIL" != ":"; then
7662       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7663     else
7664       _lt_dsymutil=
7665     fi
7666     ;;
7667   esac
7668
7669
7670 enable_dlopen=no
7671 enable_win32_dll=no
7672
7673 # Check whether --enable-libtool-lock was given.
7674 if test "${enable_libtool_lock+set}" = set; then
7675   enableval=$enable_libtool_lock;
7676 fi
7677
7678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7679
7680
7681 # Check whether --with-pic was given.
7682 if test "${with_pic+set}" = set; then
7683   withval=$with_pic; pic_mode="$withval"
7684 else
7685   pic_mode=default
7686 fi
7687
7688 test -z "$pic_mode" && pic_mode=default
7689
7690 # Use C for the default configuration in the libtool script
7691 tagname=
7692 lt_save_CC="$CC"
7693 ac_ext=c
7694 ac_cpp='$CPP $CPPFLAGS'
7695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7698
7699
7700 # Source file extension for C test sources.
7701 ac_ext=c
7702
7703 # Object file extension for compiled C test sources.
7704 objext=o
7705 objext=$objext
7706
7707 # Code to be used in simple compile tests
7708 lt_simple_compile_test_code="int some_variable = 0;"
7709
7710 # Code to be used in simple link tests
7711 lt_simple_link_test_code='int main(){return(0);}'
7712
7713
7714 # If no C compiler was specified, use CC.
7715 LTCC=${LTCC-"$CC"}
7716
7717 # If no C compiler flags were specified, use CFLAGS.
7718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7719
7720 # Allow CC to be a program name with arguments.
7721 compiler=$CC
7722
7723
7724 # save warnings/boilerplate of simple test code
7725 ac_outfile=conftest.$ac_objext
7726 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7727 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7728 _lt_compiler_boilerplate=`cat conftest.err`
7729 $rm conftest*
7730
7731 ac_outfile=conftest.$ac_objext
7732 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7733 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7734 _lt_linker_boilerplate=`cat conftest.err`
7735 $rm -r conftest*
7736
7737
7738
7739 lt_prog_compiler_no_builtin_flag=
7740
7741 if test "$GCC" = yes; then
7742   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7743
7744
7745 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7746 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7747 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   lt_cv_prog_compiler_rtti_exceptions=no
7751   ac_outfile=conftest.$ac_objext
7752    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753    lt_compiler_flag="-fno-rtti -fno-exceptions"
7754    # Insert the option either (1) after the last *FLAGS variable, or
7755    # (2) before a word containing "conftest.", or (3) at the end.
7756    # Note that $ac_compile itself does not contain backslashes and begins
7757    # with a dollar sign (not a hyphen), so the echo should work correctly.
7758    # The option is referenced via a variable to avoid confusing sed.
7759    lt_compile=`echo "$ac_compile" | $SED \
7760    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762    -e 's:$: $lt_compiler_flag:'`
7763    (eval echo "\"\$as_me:7763: $lt_compile\"" >&5)
7764    (eval "$lt_compile" 2>conftest.err)
7765    ac_status=$?
7766    cat conftest.err >&5
7767    echo "$as_me:7767: \$? = $ac_status" >&5
7768    if (exit $ac_status) && test -s "$ac_outfile"; then
7769      # The compiler can only warn and ignore the option if not recognized
7770      # So say no if there are warnings other than the usual output.
7771      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7772      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7774        lt_cv_prog_compiler_rtti_exceptions=yes
7775      fi
7776    fi
7777    $rm conftest*
7778
7779 fi
7780 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7781 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7782
7783 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7784     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7785 else
7786     :
7787 fi
7788
7789 fi
7790
7791 lt_prog_compiler_wl=
7792 lt_prog_compiler_pic=
7793 lt_prog_compiler_static=
7794
7795 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7796 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7797
7798   if test "$GCC" = yes; then
7799     lt_prog_compiler_wl='-Wl,'
7800     lt_prog_compiler_static='-static'
7801
7802     case $host_os in
7803       aix*)
7804       # All AIX code is PIC.
7805       if test "$host_cpu" = ia64; then
7806         # AIX 5 now supports IA64 processor
7807         lt_prog_compiler_static='-Bstatic'
7808       fi
7809       ;;
7810
7811     amigaos*)
7812       # FIXME: we need at least 68020 code to build shared libraries, but
7813       # adding the `-m68020' flag to GCC prevents building anything better,
7814       # like `-m68040'.
7815       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7816       ;;
7817
7818     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7819       # PIC is the default for these OSes.
7820       ;;
7821
7822     mingw* | cygwin* | pw32* | os2*)
7823       # This hack is so that the source file can tell whether it is being
7824       # built for inclusion in a dll (and should export symbols for example).
7825       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7826       # (--disable-auto-import) libraries
7827       lt_prog_compiler_pic='-DDLL_EXPORT'
7828       ;;
7829
7830     darwin* | rhapsody*)
7831       # PIC is the default on this platform
7832       # Common symbols not allowed in MH_DYLIB files
7833       lt_prog_compiler_pic='-fno-common'
7834       ;;
7835
7836     interix[3-9]*)
7837       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7838       # Instead, we relocate shared libraries at runtime.
7839       ;;
7840
7841     msdosdjgpp*)
7842       # Just because we use GCC doesn't mean we suddenly get shared libraries
7843       # on systems that don't support them.
7844       lt_prog_compiler_can_build_shared=no
7845       enable_shared=no
7846       ;;
7847
7848     sysv4*MP*)
7849       if test -d /usr/nec; then
7850         lt_prog_compiler_pic=-Kconform_pic
7851       fi
7852       ;;
7853
7854     hpux*)
7855       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7856       # not for PA HP-UX.
7857       case $host_cpu in
7858       hppa*64*|ia64*)
7859         # +Z the default
7860         ;;
7861       *)
7862         lt_prog_compiler_pic='-fPIC'
7863         ;;
7864       esac
7865       ;;
7866
7867     *)
7868       lt_prog_compiler_pic='-fPIC'
7869       ;;
7870     esac
7871   else
7872     # PORTME Check for flag to pass linker flags through the system compiler.
7873     case $host_os in
7874     aix*)
7875       lt_prog_compiler_wl='-Wl,'
7876       if test "$host_cpu" = ia64; then
7877         # AIX 5 now supports IA64 processor
7878         lt_prog_compiler_static='-Bstatic'
7879       else
7880         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7881       fi
7882       ;;
7883       darwin*)
7884         # PIC is the default on this platform
7885         # Common symbols not allowed in MH_DYLIB files
7886        case $cc_basename in
7887          xlc*)
7888          lt_prog_compiler_pic='-qnocommon'
7889          lt_prog_compiler_wl='-Wl,'
7890          ;;
7891        esac
7892        ;;
7893
7894     mingw* | cygwin* | pw32* | os2*)
7895       # This hack is so that the source file can tell whether it is being
7896       # built for inclusion in a dll (and should export symbols for example).
7897       lt_prog_compiler_pic='-DDLL_EXPORT'
7898       ;;
7899
7900     hpux9* | hpux10* | hpux11*)
7901       lt_prog_compiler_wl='-Wl,'
7902       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7903       # not for PA HP-UX.
7904       case $host_cpu in
7905       hppa*64*|ia64*)
7906         # +Z the default
7907         ;;
7908       *)
7909         lt_prog_compiler_pic='+Z'
7910         ;;
7911       esac
7912       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7913       lt_prog_compiler_static='${wl}-a ${wl}archive'
7914       ;;
7915
7916     irix5* | irix6* | nonstopux*)
7917       lt_prog_compiler_wl='-Wl,'
7918       # PIC (with -KPIC) is the default.
7919       lt_prog_compiler_static='-non_shared'
7920       ;;
7921
7922     newsos6)
7923       lt_prog_compiler_pic='-KPIC'
7924       lt_prog_compiler_static='-Bstatic'
7925       ;;
7926
7927     linux* | k*bsd*-gnu)
7928       case $cc_basename in
7929       icc* | ecc*)
7930         lt_prog_compiler_wl='-Wl,'
7931         lt_prog_compiler_pic='-KPIC'
7932         lt_prog_compiler_static='-static'
7933         ;;
7934       pgcc* | pgf77* | pgf90* | pgf95*)
7935         # Portland Group compilers (*not* the Pentium gcc compiler,
7936         # which looks to be a dead project)
7937         lt_prog_compiler_wl='-Wl,'
7938         lt_prog_compiler_pic='-fpic'
7939         lt_prog_compiler_static='-Bstatic'
7940         ;;
7941       ccc*)
7942         lt_prog_compiler_wl='-Wl,'
7943         # All Alpha code is PIC.
7944         lt_prog_compiler_static='-non_shared'
7945         ;;
7946       *)
7947         case `$CC -V 2>&1 | sed 5q` in
7948         *Sun\ C*)
7949           # Sun C 5.9
7950           lt_prog_compiler_pic='-KPIC'
7951           lt_prog_compiler_static='-Bstatic'
7952           lt_prog_compiler_wl='-Wl,'
7953           ;;
7954         *Sun\ F*)
7955           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7956           lt_prog_compiler_pic='-KPIC'
7957           lt_prog_compiler_static='-Bstatic'
7958           lt_prog_compiler_wl=''
7959           ;;
7960         esac
7961         ;;
7962       esac
7963       ;;
7964
7965     osf3* | osf4* | osf5*)
7966       lt_prog_compiler_wl='-Wl,'
7967       # All OSF/1 code is PIC.
7968       lt_prog_compiler_static='-non_shared'
7969       ;;
7970
7971     rdos*)
7972       lt_prog_compiler_static='-non_shared'
7973       ;;
7974
7975     solaris*)
7976       lt_prog_compiler_pic='-KPIC'
7977       lt_prog_compiler_static='-Bstatic'
7978       case $cc_basename in
7979       f77* | f90* | f95*)
7980         lt_prog_compiler_wl='-Qoption ld ';;
7981       *)
7982         lt_prog_compiler_wl='-Wl,';;
7983       esac
7984       ;;
7985
7986     sunos4*)
7987       lt_prog_compiler_wl='-Qoption ld '
7988       lt_prog_compiler_pic='-PIC'
7989       lt_prog_compiler_static='-Bstatic'
7990       ;;
7991
7992     sysv4 | sysv4.2uw2* | sysv4.3*)
7993       lt_prog_compiler_wl='-Wl,'
7994       lt_prog_compiler_pic='-KPIC'
7995       lt_prog_compiler_static='-Bstatic'
7996       ;;
7997
7998     sysv4*MP*)
7999       if test -d /usr/nec ;then
8000         lt_prog_compiler_pic='-Kconform_pic'
8001         lt_prog_compiler_static='-Bstatic'
8002       fi
8003       ;;
8004
8005     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8006       lt_prog_compiler_wl='-Wl,'
8007       lt_prog_compiler_pic='-KPIC'
8008       lt_prog_compiler_static='-Bstatic'
8009       ;;
8010
8011     unicos*)
8012       lt_prog_compiler_wl='-Wl,'
8013       lt_prog_compiler_can_build_shared=no
8014       ;;
8015
8016     uts4*)
8017       lt_prog_compiler_pic='-pic'
8018       lt_prog_compiler_static='-Bstatic'
8019       ;;
8020
8021     *)
8022       lt_prog_compiler_can_build_shared=no
8023       ;;
8024     esac
8025   fi
8026
8027 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8028 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8029
8030 #
8031 # Check to make sure the PIC flag actually works.
8032 #
8033 if test -n "$lt_prog_compiler_pic"; then
8034
8035 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8036 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8037 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   lt_cv_prog_compiler_pic_works=no
8041   ac_outfile=conftest.$ac_objext
8042    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8043    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8044    # Insert the option either (1) after the last *FLAGS variable, or
8045    # (2) before a word containing "conftest.", or (3) at the end.
8046    # Note that $ac_compile itself does not contain backslashes and begins
8047    # with a dollar sign (not a hyphen), so the echo should work correctly.
8048    # The option is referenced via a variable to avoid confusing sed.
8049    lt_compile=`echo "$ac_compile" | $SED \
8050    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052    -e 's:$: $lt_compiler_flag:'`
8053    (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
8054    (eval "$lt_compile" 2>conftest.err)
8055    ac_status=$?
8056    cat conftest.err >&5
8057    echo "$as_me:8057: \$? = $ac_status" >&5
8058    if (exit $ac_status) && test -s "$ac_outfile"; then
8059      # The compiler can only warn and ignore the option if not recognized
8060      # So say no if there are warnings other than the usual output.
8061      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8062      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8063      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8064        lt_cv_prog_compiler_pic_works=yes
8065      fi
8066    fi
8067    $rm conftest*
8068
8069 fi
8070 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8071 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8072
8073 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8074     case $lt_prog_compiler_pic in
8075      "" | " "*) ;;
8076      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8077      esac
8078 else
8079     lt_prog_compiler_pic=
8080      lt_prog_compiler_can_build_shared=no
8081 fi
8082
8083 fi
8084 case $host_os in
8085   # For platforms which do not support PIC, -DPIC is meaningless:
8086   *djgpp*)
8087     lt_prog_compiler_pic=
8088     ;;
8089   *)
8090     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8091     ;;
8092 esac
8093
8094 #
8095 # Check to make sure the static flag actually works.
8096 #
8097 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8098 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8099 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8100 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   lt_cv_prog_compiler_static_works=no
8104    save_LDFLAGS="$LDFLAGS"
8105    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8106    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8107    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8108      # The linker can only warn and ignore the option if not recognized
8109      # So say no if there are warnings
8110      if test -s conftest.err; then
8111        # Append any errors to the config.log.
8112        cat conftest.err 1>&5
8113        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8114        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8115        if diff conftest.exp conftest.er2 >/dev/null; then
8116          lt_cv_prog_compiler_static_works=yes
8117        fi
8118      else
8119        lt_cv_prog_compiler_static_works=yes
8120      fi
8121    fi
8122    $rm -r conftest*
8123    LDFLAGS="$save_LDFLAGS"
8124
8125 fi
8126 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8127 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8128
8129 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8130     :
8131 else
8132     lt_prog_compiler_static=
8133 fi
8134
8135
8136 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8137 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8138 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   lt_cv_prog_compiler_c_o=no
8142    $rm -r conftest 2>/dev/null
8143    mkdir conftest
8144    cd conftest
8145    mkdir out
8146    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8147
8148    lt_compiler_flag="-o out/conftest2.$ac_objext"
8149    # Insert the option either (1) after the last *FLAGS variable, or
8150    # (2) before a word containing "conftest.", or (3) at the end.
8151    # Note that $ac_compile itself does not contain backslashes and begins
8152    # with a dollar sign (not a hyphen), so the echo should work correctly.
8153    lt_compile=`echo "$ac_compile" | $SED \
8154    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8155    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8156    -e 's:$: $lt_compiler_flag:'`
8157    (eval echo "\"\$as_me:8157: $lt_compile\"" >&5)
8158    (eval "$lt_compile" 2>out/conftest.err)
8159    ac_status=$?
8160    cat out/conftest.err >&5
8161    echo "$as_me:8161: \$? = $ac_status" >&5
8162    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8163    then
8164      # The compiler can only warn and ignore the option if not recognized
8165      # So say no if there are warnings
8166      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8167      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8168      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8169        lt_cv_prog_compiler_c_o=yes
8170      fi
8171    fi
8172    chmod u+w . 2>&5
8173    $rm conftest*
8174    # SGI C++ compiler will create directory out/ii_files/ for
8175    # template instantiation
8176    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8177    $rm out/* && rmdir out
8178    cd ..
8179    rmdir conftest
8180    $rm conftest*
8181
8182 fi
8183 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8184 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8185
8186
8187 hard_links="nottested"
8188 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8189   # do not overwrite the value of need_locks provided by the user
8190   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8191 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8192   hard_links=yes
8193   $rm conftest*
8194   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8195   touch conftest.a
8196   ln conftest.a conftest.b 2>&5 || hard_links=no
8197   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8198   { echo "$as_me:$LINENO: result: $hard_links" >&5
8199 echo "${ECHO_T}$hard_links" >&6; }
8200   if test "$hard_links" = no; then
8201     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8202 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8203     need_locks=warn
8204   fi
8205 else
8206   need_locks=no
8207 fi
8208
8209 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8210 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8211
8212   runpath_var=
8213   allow_undefined_flag=
8214   enable_shared_with_static_runtimes=no
8215   archive_cmds=
8216   archive_expsym_cmds=
8217   old_archive_From_new_cmds=
8218   old_archive_from_expsyms_cmds=
8219   export_dynamic_flag_spec=
8220   whole_archive_flag_spec=
8221   thread_safe_flag_spec=
8222   hardcode_libdir_flag_spec=
8223   hardcode_libdir_flag_spec_ld=
8224   hardcode_libdir_separator=
8225   hardcode_direct=no
8226   hardcode_minus_L=no
8227   hardcode_shlibpath_var=unsupported
8228   link_all_deplibs=unknown
8229   hardcode_automatic=no
8230   module_cmds=
8231   module_expsym_cmds=
8232   always_export_symbols=no
8233   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8234   # include_expsyms should be a list of space-separated symbols to be *always*
8235   # included in the symbol list
8236   include_expsyms=
8237   # exclude_expsyms can be an extended regexp of symbols to exclude
8238   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8239   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8240   # as well as any symbol that contains `d'.
8241   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8242   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8243   # platforms (ab)use it in PIC code, but their linkers get confused if
8244   # the symbol is explicitly referenced.  Since portable code cannot
8245   # rely on this symbol name, it's probably fine to never include it in
8246   # preloaded symbol tables.
8247   # Exclude shared library initialization/finalization symbols.
8248   extract_expsyms_cmds=
8249   # Just being paranoid about ensuring that cc_basename is set.
8250   for cc_temp in $compiler""; do
8251   case $cc_temp in
8252     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8253     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8254     \-*) ;;
8255     *) break;;
8256   esac
8257 done
8258 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8259
8260   case $host_os in
8261   cygwin* | mingw* | pw32*)
8262     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8263     # When not using gcc, we currently assume that we are using
8264     # Microsoft Visual C++.
8265     if test "$GCC" != yes; then
8266       with_gnu_ld=no
8267     fi
8268     ;;
8269   interix*)
8270     # we just hope/assume this is gcc and not c89 (= MSVC++)
8271     with_gnu_ld=yes
8272     ;;
8273   openbsd*)
8274     with_gnu_ld=no
8275     ;;
8276   esac
8277
8278   ld_shlibs=yes
8279   if test "$with_gnu_ld" = yes; then
8280     # If archive_cmds runs LD, not CC, wlarc should be empty
8281     wlarc='${wl}'
8282
8283     # Set some defaults for GNU ld with shared library support. These
8284     # are reset later if shared libraries are not supported. Putting them
8285     # here allows them to be overridden if necessary.
8286     runpath_var=LD_RUN_PATH
8287     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8288     export_dynamic_flag_spec='${wl}--export-dynamic'
8289     # ancient GNU ld didn't support --whole-archive et. al.
8290     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8291         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8292       else
8293         whole_archive_flag_spec=
8294     fi
8295     supports_anon_versioning=no
8296     case `$LD -v 2>/dev/null` in
8297       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8298       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8299       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8300       *\ 2.11.*) ;; # other 2.11 versions
8301       *) supports_anon_versioning=yes ;;
8302     esac
8303
8304     # See if GNU ld supports shared libraries.
8305     case $host_os in
8306     aix[3-9]*)
8307       # On AIX/PPC, the GNU linker is very broken
8308       if test "$host_cpu" != ia64; then
8309         ld_shlibs=no
8310         cat <<EOF 1>&2
8311
8312 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8313 *** to be unable to reliably create shared libraries on AIX.
8314 *** Therefore, libtool is disabling shared libraries support.  If you
8315 *** really care for shared libraries, you may want to modify your PATH
8316 *** so that a non-GNU linker is found, and then restart.
8317
8318 EOF
8319       fi
8320       ;;
8321
8322     amigaos*)
8323       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)'
8324       hardcode_libdir_flag_spec='-L$libdir'
8325       hardcode_minus_L=yes
8326
8327       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8328       # that the semantics of dynamic libraries on AmigaOS, at least up
8329       # to version 4, is to share data among multiple programs linked
8330       # with the same dynamic library.  Since this doesn't match the
8331       # behavior of shared libraries on other platforms, we can't use
8332       # them.
8333       ld_shlibs=no
8334       ;;
8335
8336     beos*)
8337       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8338         allow_undefined_flag=unsupported
8339         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8340         # support --undefined.  This deserves some investigation.  FIXME
8341         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8342       else
8343         ld_shlibs=no
8344       fi
8345       ;;
8346
8347     cygwin* | mingw* | pw32*)
8348       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8349       # as there is no search path for DLLs.
8350       hardcode_libdir_flag_spec='-L$libdir'
8351       allow_undefined_flag=unsupported
8352       always_export_symbols=no
8353       enable_shared_with_static_runtimes=yes
8354       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8355
8356       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8357         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8358         # If the export-symbols file already is a .def file (1st line
8359         # is EXPORTS), use it as is; otherwise, prepend...
8360         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8361           cp $export_symbols $output_objdir/$soname.def;
8362         else
8363           echo EXPORTS > $output_objdir/$soname.def;
8364           cat $export_symbols >> $output_objdir/$soname.def;
8365         fi~
8366         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8367       else
8368         ld_shlibs=no
8369       fi
8370       ;;
8371
8372     interix[3-9]*)
8373       hardcode_direct=no
8374       hardcode_shlibpath_var=no
8375       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8376       export_dynamic_flag_spec='${wl}-E'
8377       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8378       # Instead, shared libraries are loaded at an image base (0x10000000 by
8379       # default) and relocated if they conflict, which is a slow very memory
8380       # consuming and fragmenting process.  To avoid this, we pick a random,
8381       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8382       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8383       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8384       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'
8385       ;;
8386
8387     gnu* | linux* | k*bsd*-gnu)
8388       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8389         tmp_addflag=
8390         case $cc_basename,$host_cpu in
8391         pgcc*)                          # Portland Group C compiler
8392           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'
8393           tmp_addflag=' $pic_flag'
8394           ;;
8395         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8396           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'
8397           tmp_addflag=' $pic_flag -Mnomain' ;;
8398         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8399           tmp_addflag=' -i_dynamic' ;;
8400         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8401           tmp_addflag=' -i_dynamic -nofor_main' ;;
8402         ifc* | ifort*)                  # Intel Fortran compiler
8403           tmp_addflag=' -nofor_main' ;;
8404         esac
8405         case `$CC -V 2>&1 | sed 5q` in
8406         *Sun\ C*)                       # Sun C 5.9
8407           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'
8408           tmp_sharedflag='-G' ;;
8409         *Sun\ F*)                       # Sun Fortran 8.3
8410           tmp_sharedflag='-G' ;;
8411         *)
8412           tmp_sharedflag='-shared' ;;
8413         esac
8414         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8415
8416         if test $supports_anon_versioning = yes; then
8417           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8418   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8419   $echo "local: *; };" >> $output_objdir/$libname.ver~
8420           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8421         fi
8422         link_all_deplibs=no
8423       else
8424         ld_shlibs=no
8425       fi
8426       ;;
8427
8428     netbsd* | netbsdelf*-gnu)
8429       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8430         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8431         wlarc=
8432       else
8433         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8434         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8435       fi
8436       ;;
8437
8438     solaris*)
8439       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8440         ld_shlibs=no
8441         cat <<EOF 1>&2
8442
8443 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8444 *** create shared libraries on Solaris systems.  Therefore, libtool
8445 *** is disabling shared libraries support.  We urge you to upgrade GNU
8446 *** binutils to release 2.9.1 or newer.  Another option is to modify
8447 *** your PATH or compiler configuration so that the native linker is
8448 *** used, and then restart.
8449
8450 EOF
8451       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8452         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8453         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8454       else
8455         ld_shlibs=no
8456       fi
8457       ;;
8458
8459     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8460       case `$LD -v 2>&1` in
8461         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8462         ld_shlibs=no
8463         cat <<_LT_EOF 1>&2
8464
8465 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8466 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8467 *** is disabling shared libraries support.  We urge you to upgrade GNU
8468 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8469 *** your PATH or compiler configuration so that the native linker is
8470 *** used, and then restart.
8471
8472 _LT_EOF
8473         ;;
8474         *)
8475           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8476             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8477             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8478             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8479           else
8480             ld_shlibs=no
8481           fi
8482         ;;
8483       esac
8484       ;;
8485
8486     sunos4*)
8487       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8488       wlarc=
8489       hardcode_direct=yes
8490       hardcode_shlibpath_var=no
8491       ;;
8492
8493     *)
8494       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8495         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8497       else
8498         ld_shlibs=no
8499       fi
8500       ;;
8501     esac
8502
8503     if test "$ld_shlibs" = no; then
8504       runpath_var=
8505       hardcode_libdir_flag_spec=
8506       export_dynamic_flag_spec=
8507       whole_archive_flag_spec=
8508     fi
8509   else
8510     # PORTME fill in a description of your system's linker (not GNU ld)
8511     case $host_os in
8512     aix3*)
8513       allow_undefined_flag=unsupported
8514       always_export_symbols=yes
8515       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'
8516       # Note: this linker hardcodes the directories in LIBPATH if there
8517       # are no directories specified by -L.
8518       hardcode_minus_L=yes
8519       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8520         # Neither direct hardcoding nor static linking is supported with a
8521         # broken collect2.
8522         hardcode_direct=unsupported
8523       fi
8524       ;;
8525
8526     aix[4-9]*)
8527       if test "$host_cpu" = ia64; then
8528         # On IA64, the linker does run time linking by default, so we don't
8529         # have to do anything special.
8530         aix_use_runtimelinking=no
8531         exp_sym_flag='-Bexport'
8532         no_entry_flag=""
8533       else
8534         # If we're using GNU nm, then we don't want the "-C" option.
8535         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8536         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8537           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'
8538         else
8539           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'
8540         fi
8541         aix_use_runtimelinking=no
8542
8543         # Test if we are trying to use run time linking or normal
8544         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8545         # need to do runtime linking.
8546         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8547           for ld_flag in $LDFLAGS; do
8548           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8549             aix_use_runtimelinking=yes
8550             break
8551           fi
8552           done
8553           ;;
8554         esac
8555
8556         exp_sym_flag='-bexport'
8557         no_entry_flag='-bnoentry'
8558       fi
8559
8560       # When large executables or shared objects are built, AIX ld can
8561       # have problems creating the table of contents.  If linking a library
8562       # or program results in "error TOC overflow" add -mminimal-toc to
8563       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8564       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8565
8566       archive_cmds=''
8567       hardcode_direct=yes
8568       hardcode_libdir_separator=':'
8569       link_all_deplibs=yes
8570
8571       if test "$GCC" = yes; then
8572         case $host_os in aix4.[012]|aix4.[012].*)
8573         # We only want to do this on AIX 4.2 and lower, the check
8574         # below for broken collect2 doesn't work under 4.3+
8575           collect2name=`${CC} -print-prog-name=collect2`
8576           if test -f "$collect2name" && \
8577            strings "$collect2name" | grep resolve_lib_name >/dev/null
8578           then
8579           # We have reworked collect2
8580           :
8581           else
8582           # We have old collect2
8583           hardcode_direct=unsupported
8584           # It fails to find uninstalled libraries when the uninstalled
8585           # path is not listed in the libpath.  Setting hardcode_minus_L
8586           # to unsupported forces relinking
8587           hardcode_minus_L=yes
8588           hardcode_libdir_flag_spec='-L$libdir'
8589           hardcode_libdir_separator=
8590           fi
8591           ;;
8592         esac
8593         shared_flag='-shared'
8594         if test "$aix_use_runtimelinking" = yes; then
8595           shared_flag="$shared_flag "'${wl}-G'
8596         fi
8597       else
8598         # not using gcc
8599         if test "$host_cpu" = ia64; then
8600         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8601         # chokes on -Wl,-G. The following line is correct:
8602           shared_flag='-G'
8603         else
8604           if test "$aix_use_runtimelinking" = yes; then
8605             shared_flag='${wl}-G'
8606           else
8607             shared_flag='${wl}-bM:SRE'
8608           fi
8609         fi
8610       fi
8611
8612       # It seems that -bexpall does not export symbols beginning with
8613       # underscore (_), so it is better to generate a list of symbols to export.
8614       always_export_symbols=yes
8615       if test "$aix_use_runtimelinking" = yes; then
8616         # Warning - without using the other runtime loading flags (-brtl),
8617         # -berok will link without error, but may produce a broken library.
8618         allow_undefined_flag='-berok'
8619        # Determine the default libpath from the value encoded in an empty executable.
8620        cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h.  */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h.  */
8626
8627 int
8628 main ()
8629 {
8630
8631   ;
8632   return 0;
8633 }
8634 _ACEOF
8635 rm -f conftest.$ac_objext conftest$ac_exeext
8636 if { (ac_try="$ac_link"
8637 case "(($ac_try" in
8638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639   *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642   (eval "$ac_link") 2>conftest.er1
8643   ac_status=$?
8644   grep -v '^ *+' conftest.er1 >conftest.err
8645   rm -f conftest.er1
8646   cat conftest.err >&5
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); } && {
8649          test -z "$ac_c_werror_flag" ||
8650          test ! -s conftest.err
8651        } && test -s conftest$ac_exeext &&
8652        $as_test_x conftest$ac_exeext; then
8653
8654 lt_aix_libpath_sed='
8655     /Import File Strings/,/^$/ {
8656         /^0/ {
8657             s/^0  *\(.*\)$/\1/
8658             p
8659         }
8660     }'
8661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8662 # Check for a 64-bit object if we didn't find anything.
8663 if test -z "$aix_libpath"; then
8664   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8665 fi
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670
8671 fi
8672
8673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8674       conftest$ac_exeext conftest.$ac_ext
8675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8676
8677        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8678         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"
8679        else
8680         if test "$host_cpu" = ia64; then
8681           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8682           allow_undefined_flag="-z nodefs"
8683           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"
8684         else
8685          # Determine the default libpath from the value encoded in an empty executable.
8686          cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h.  */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h.  */
8692
8693 int
8694 main ()
8695 {
8696
8697   ;
8698   return 0;
8699 }
8700 _ACEOF
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (ac_try="$ac_link"
8703 case "(($ac_try" in
8704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705   *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708   (eval "$ac_link") 2>conftest.er1
8709   ac_status=$?
8710   grep -v '^ *+' conftest.er1 >conftest.err
8711   rm -f conftest.er1
8712   cat conftest.err >&5
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); } && {
8715          test -z "$ac_c_werror_flag" ||
8716          test ! -s conftest.err
8717        } && test -s conftest$ac_exeext &&
8718        $as_test_x conftest$ac_exeext; then
8719
8720 lt_aix_libpath_sed='
8721     /Import File Strings/,/^$/ {
8722         /^0/ {
8723             s/^0  *\(.*\)$/\1/
8724             p
8725         }
8726     }'
8727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8728 # Check for a 64-bit object if we didn't find anything.
8729 if test -z "$aix_libpath"; then
8730   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8731 fi
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736
8737 fi
8738
8739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8740       conftest$ac_exeext conftest.$ac_ext
8741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8742
8743          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8744           # Warning - without using the other run time loading flags,
8745           # -berok will link without error, but may produce a broken library.
8746           no_undefined_flag=' ${wl}-bernotok'
8747           allow_undefined_flag=' ${wl}-berok'
8748           # Exported symbols can be pulled into shared objects from archives
8749           whole_archive_flag_spec='$convenience'
8750           archive_cmds_need_lc=yes
8751           # This is similar to how AIX traditionally builds its shared libraries.
8752           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'
8753         fi
8754       fi
8755       ;;
8756
8757     amigaos*)
8758       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)'
8759       hardcode_libdir_flag_spec='-L$libdir'
8760       hardcode_minus_L=yes
8761       # see comment about different semantics on the GNU ld section
8762       ld_shlibs=no
8763       ;;
8764
8765     bsdi[45]*)
8766       export_dynamic_flag_spec=-rdynamic
8767       ;;
8768
8769     cygwin* | mingw* | pw32*)
8770       # When not using gcc, we currently assume that we are using
8771       # Microsoft Visual C++.
8772       # hardcode_libdir_flag_spec is actually meaningless, as there is
8773       # no search path for DLLs.
8774       hardcode_libdir_flag_spec=' '
8775       allow_undefined_flag=unsupported
8776       # Tell ltmain to make .lib files, not .a files.
8777       libext=lib
8778       # Tell ltmain to make .dll files, not .so files.
8779       shrext_cmds=".dll"
8780       # FIXME: Setting linknames here is a bad hack.
8781       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8782       # The linker will automatically build a .lib file if we build a DLL.
8783       old_archive_From_new_cmds='true'
8784       # FIXME: Should let the user specify the lib program.
8785       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8786       fix_srcfile_path='`cygpath -w "$srcfile"`'
8787       enable_shared_with_static_runtimes=yes
8788       ;;
8789
8790     darwin* | rhapsody*)
8791       case $host_os in
8792         rhapsody* | darwin1.[012])
8793          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8794          ;;
8795        *) # Darwin 1.3 on
8796          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8797            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8798          else
8799            case ${MACOSX_DEPLOYMENT_TARGET} in
8800              10.[012])
8801                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8802                ;;
8803              10.*)
8804                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8805                ;;
8806            esac
8807          fi
8808          ;;
8809       esac
8810       archive_cmds_need_lc=no
8811       hardcode_direct=no
8812       hardcode_automatic=yes
8813       hardcode_shlibpath_var=unsupported
8814       whole_archive_flag_spec=''
8815       link_all_deplibs=yes
8816     if test "$GCC" = yes ; then
8817         output_verbose_link_cmd='echo'
8818         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8819         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8820         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}"
8821         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}"
8822     else
8823       case $cc_basename in
8824         xlc*)
8825          output_verbose_link_cmd='echo'
8826          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8827          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8828           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8829          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}'
8830           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}'
8831           ;;
8832        *)
8833          ld_shlibs=no
8834           ;;
8835       esac
8836     fi
8837       ;;
8838
8839     dgux*)
8840       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841       hardcode_libdir_flag_spec='-L$libdir'
8842       hardcode_shlibpath_var=no
8843       ;;
8844
8845     freebsd1*)
8846       ld_shlibs=no
8847       ;;
8848
8849     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8850     # support.  Future versions do this automatically, but an explicit c++rt0.o
8851     # does not break anything, and helps significantly (at the cost of a little
8852     # extra space).
8853     freebsd2.2*)
8854       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8855       hardcode_libdir_flag_spec='-R$libdir'
8856       hardcode_direct=yes
8857       hardcode_shlibpath_var=no
8858       ;;
8859
8860     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8861     freebsd2*)
8862       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8863       hardcode_direct=yes
8864       hardcode_minus_L=yes
8865       hardcode_shlibpath_var=no
8866       ;;
8867
8868     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8869     freebsd* | dragonfly*)
8870       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8871       hardcode_libdir_flag_spec='-R$libdir'
8872       hardcode_direct=yes
8873       hardcode_shlibpath_var=no
8874       ;;
8875
8876     hpux9*)
8877       if test "$GCC" = yes; then
8878         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'
8879       else
8880         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'
8881       fi
8882       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8883       hardcode_libdir_separator=:
8884       hardcode_direct=yes
8885
8886       # hardcode_minus_L: Not really in the search PATH,
8887       # but as the default location of the library.
8888       hardcode_minus_L=yes
8889       export_dynamic_flag_spec='${wl}-E'
8890       ;;
8891
8892     hpux10*)
8893       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8894         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8895       else
8896         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8897       fi
8898       if test "$with_gnu_ld" = no; then
8899         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8900         hardcode_libdir_separator=:
8901
8902         hardcode_direct=yes
8903         export_dynamic_flag_spec='${wl}-E'
8904
8905         # hardcode_minus_L: Not really in the search PATH,
8906         # but as the default location of the library.
8907         hardcode_minus_L=yes
8908       fi
8909       ;;
8910
8911     hpux11*)
8912       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8913         case $host_cpu in
8914         hppa*64*)
8915           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8916           ;;
8917         ia64*)
8918           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8919           ;;
8920         *)
8921           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8922           ;;
8923         esac
8924       else
8925         case $host_cpu in
8926         hppa*64*)
8927           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8928           ;;
8929         ia64*)
8930           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8931           ;;
8932         *)
8933           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8934           ;;
8935         esac
8936       fi
8937       if test "$with_gnu_ld" = no; then
8938         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8939         hardcode_libdir_separator=:
8940
8941         case $host_cpu in
8942         hppa*64*|ia64*)
8943           hardcode_libdir_flag_spec_ld='+b $libdir'
8944           hardcode_direct=no
8945           hardcode_shlibpath_var=no
8946           ;;
8947         *)
8948           hardcode_direct=yes
8949           export_dynamic_flag_spec='${wl}-E'
8950
8951           # hardcode_minus_L: Not really in the search PATH,
8952           # but as the default location of the library.
8953           hardcode_minus_L=yes
8954           ;;
8955         esac
8956       fi
8957       ;;
8958
8959     irix5* | irix6* | nonstopux*)
8960       if test "$GCC" = yes; then
8961         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'
8962       else
8963         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'
8964         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8965       fi
8966       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967       hardcode_libdir_separator=:
8968       link_all_deplibs=yes
8969       ;;
8970
8971     netbsd* | netbsdelf*-gnu)
8972       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8973         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8974       else
8975         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8976       fi
8977       hardcode_libdir_flag_spec='-R$libdir'
8978       hardcode_direct=yes
8979       hardcode_shlibpath_var=no
8980       ;;
8981
8982     newsos6)
8983       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8984       hardcode_direct=yes
8985       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8986       hardcode_libdir_separator=:
8987       hardcode_shlibpath_var=no
8988       ;;
8989
8990     openbsd*)
8991       if test -f /usr/libexec/ld.so; then
8992         hardcode_direct=yes
8993         hardcode_shlibpath_var=no
8994         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8995           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8996           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8997           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8998           export_dynamic_flag_spec='${wl}-E'
8999         else
9000           case $host_os in
9001            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9002              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9003              hardcode_libdir_flag_spec='-R$libdir'
9004              ;;
9005            *)
9006              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9007              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9008              ;;
9009           esac
9010         fi
9011       else
9012         ld_shlibs=no
9013       fi
9014       ;;
9015
9016     os2*)
9017       hardcode_libdir_flag_spec='-L$libdir'
9018       hardcode_minus_L=yes
9019       allow_undefined_flag=unsupported
9020       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'
9021       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9022       ;;
9023
9024     osf3*)
9025       if test "$GCC" = yes; then
9026         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9027         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'
9028       else
9029         allow_undefined_flag=' -expect_unresolved \*'
9030         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'
9031       fi
9032       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9033       hardcode_libdir_separator=:
9034       ;;
9035
9036     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9037       if test "$GCC" = yes; then
9038         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9039         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'
9040         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9041       else
9042         allow_undefined_flag=' -expect_unresolved \*'
9043         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'
9044         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9045         $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'
9046
9047         # Both c and cxx compiler support -rpath directly
9048         hardcode_libdir_flag_spec='-rpath $libdir'
9049       fi
9050       hardcode_libdir_separator=:
9051       ;;
9052
9053     solaris*)
9054       no_undefined_flag=' -z text'
9055       if test "$GCC" = yes; then
9056         wlarc='${wl}'
9057         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9058         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9059           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9060       else
9061         wlarc=''
9062         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9064         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9065       fi
9066       hardcode_libdir_flag_spec='-R$libdir'
9067       hardcode_shlibpath_var=no
9068       case $host_os in
9069       solaris2.[0-5] | solaris2.[0-5].*) ;;
9070       *)
9071         # The compiler driver will combine and reorder linker options,
9072         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9073         # but is careful enough not to reorder.
9074         # Supported since Solaris 2.6 (maybe 2.5.1?)
9075         if test "$GCC" = yes; then
9076           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9077         else
9078           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9079         fi
9080         ;;
9081       esac
9082       link_all_deplibs=yes
9083       ;;
9084
9085     sunos4*)
9086       if test "x$host_vendor" = xsequent; then
9087         # Use $CC to link under sequent, because it throws in some extra .o
9088         # files that make .init and .fini sections work.
9089         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9090       else
9091         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9092       fi
9093       hardcode_libdir_flag_spec='-L$libdir'
9094       hardcode_direct=yes
9095       hardcode_minus_L=yes
9096       hardcode_shlibpath_var=no
9097       ;;
9098
9099     sysv4)
9100       case $host_vendor in
9101         sni)
9102           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103           hardcode_direct=yes # is this really true???
9104         ;;
9105         siemens)
9106           ## LD is ld it makes a PLAMLIB
9107           ## CC just makes a GrossModule.
9108           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9109           reload_cmds='$CC -r -o $output$reload_objs'
9110           hardcode_direct=no
9111         ;;
9112         motorola)
9113           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9114           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9115         ;;
9116       esac
9117       runpath_var='LD_RUN_PATH'
9118       hardcode_shlibpath_var=no
9119       ;;
9120
9121     sysv4.3*)
9122       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123       hardcode_shlibpath_var=no
9124       export_dynamic_flag_spec='-Bexport'
9125       ;;
9126
9127     sysv4*MP*)
9128       if test -d /usr/nec; then
9129         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130         hardcode_shlibpath_var=no
9131         runpath_var=LD_RUN_PATH
9132         hardcode_runpath_var=yes
9133         ld_shlibs=yes
9134       fi
9135       ;;
9136
9137     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9138       no_undefined_flag='${wl}-z,text'
9139       archive_cmds_need_lc=no
9140       hardcode_shlibpath_var=no
9141       runpath_var='LD_RUN_PATH'
9142
9143       if test "$GCC" = yes; then
9144         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146       else
9147         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9148         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149       fi
9150       ;;
9151
9152     sysv5* | sco3.2v5* | sco5v6*)
9153       # Note: We can NOT use -z defs as we might desire, because we do not
9154       # link with -lc, and that would cause any symbols used from libc to
9155       # always be unresolved, which means just about no library would
9156       # ever link correctly.  If we're not using GNU ld we use -z text
9157       # though, which does catch some bad symbols but isn't as heavy-handed
9158       # as -z defs.
9159       no_undefined_flag='${wl}-z,text'
9160       allow_undefined_flag='${wl}-z,nodefs'
9161       archive_cmds_need_lc=no
9162       hardcode_shlibpath_var=no
9163       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9164       hardcode_libdir_separator=':'
9165       link_all_deplibs=yes
9166       export_dynamic_flag_spec='${wl}-Bexport'
9167       runpath_var='LD_RUN_PATH'
9168
9169       if test "$GCC" = yes; then
9170         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9171         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9172       else
9173         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9174         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9175       fi
9176       ;;
9177
9178     uts4*)
9179       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9180       hardcode_libdir_flag_spec='-L$libdir'
9181       hardcode_shlibpath_var=no
9182       ;;
9183
9184     *)
9185       ld_shlibs=no
9186       ;;
9187     esac
9188   fi
9189
9190 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9191 echo "${ECHO_T}$ld_shlibs" >&6; }
9192 test "$ld_shlibs" = no && can_build_shared=no
9193
9194 #
9195 # Do we need to explicitly link libc?
9196 #
9197 case "x$archive_cmds_need_lc" in
9198 x|xyes)
9199   # Assume -lc should be added
9200   archive_cmds_need_lc=yes
9201
9202   if test "$enable_shared" = yes && test "$GCC" = yes; then
9203     case $archive_cmds in
9204     *'~'*)
9205       # FIXME: we may have to deal with multi-command sequences.
9206       ;;
9207     '$CC '*)
9208       # Test whether the compiler implicitly links with -lc since on some
9209       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9210       # to ld, don't add -lc before -lgcc.
9211       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9212 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9213       $rm conftest*
9214       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9215
9216       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9217   (eval $ac_compile) 2>&5
9218   ac_status=$?
9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); } 2>conftest.err; then
9221         soname=conftest
9222         lib=conftest
9223         libobjs=conftest.$ac_objext
9224         deplibs=
9225         wl=$lt_prog_compiler_wl
9226         pic_flag=$lt_prog_compiler_pic
9227         compiler_flags=-v
9228         linker_flags=-v
9229         verstring=
9230         output_objdir=.
9231         libname=conftest
9232         lt_save_allow_undefined_flag=$allow_undefined_flag
9233         allow_undefined_flag=
9234         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9235   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9236   ac_status=$?
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); }
9239         then
9240           archive_cmds_need_lc=no
9241         else
9242           archive_cmds_need_lc=yes
9243         fi
9244         allow_undefined_flag=$lt_save_allow_undefined_flag
9245       else
9246         cat conftest.err 1>&5
9247       fi
9248       $rm conftest*
9249       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9250 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9251       ;;
9252     esac
9253   fi
9254   ;;
9255 esac
9256
9257 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9258 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9259 library_names_spec=
9260 libname_spec='lib$name'
9261 soname_spec=
9262 shrext_cmds=".so"
9263 postinstall_cmds=
9264 postuninstall_cmds=
9265 finish_cmds=
9266 finish_eval=
9267 shlibpath_var=
9268 shlibpath_overrides_runpath=unknown
9269 version_type=none
9270 dynamic_linker="$host_os ld.so"
9271 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9272
9273 if test "$GCC" = yes; then
9274   case $host_os in
9275     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9276     *) lt_awk_arg="/^libraries:/" ;;
9277   esac
9278   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9279   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9280     # if the path contains ";" then we assume it to be the separator
9281     # otherwise default to the standard path separator (i.e. ":") - it is
9282     # assumed that no part of a normal pathname contains ";" but that should
9283     # okay in the real world where ";" in dirpaths is itself problematic.
9284     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9285   else
9286     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9287   fi
9288   # Ok, now we have the path, separated by spaces, we can step through it
9289   # and add multilib dir if necessary.
9290   lt_tmp_lt_search_path_spec=
9291   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9292   for lt_sys_path in $lt_search_path_spec; do
9293     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9294       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9295     else
9296       test -d "$lt_sys_path" && \
9297         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9298     fi
9299   done
9300   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9301 BEGIN {RS=" "; FS="/|\n";} {
9302   lt_foo="";
9303   lt_count=0;
9304   for (lt_i = NF; lt_i > 0; lt_i--) {
9305     if ($lt_i != "" && $lt_i != ".") {
9306       if ($lt_i == "..") {
9307         lt_count++;
9308       } else {
9309         if (lt_count == 0) {
9310           lt_foo="/" $lt_i lt_foo;
9311         } else {
9312           lt_count--;
9313         }
9314       }
9315     }
9316   }
9317   if (lt_foo != "") { lt_freq[lt_foo]++; }
9318   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9319 }'`
9320   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9321 else
9322   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9323 fi
9324 need_lib_prefix=unknown
9325 hardcode_into_libs=no
9326
9327 # when you set need_version to no, make sure it does not cause -set_version
9328 # flags to be left without arguments
9329 need_version=unknown
9330
9331 case $host_os in
9332 aix3*)
9333   version_type=linux
9334   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9335   shlibpath_var=LIBPATH
9336
9337   # AIX 3 has no versioning support, so we append a major version to the name.
9338   soname_spec='${libname}${release}${shared_ext}$major'
9339   ;;
9340
9341 aix[4-9]*)
9342   version_type=linux
9343   need_lib_prefix=no
9344   need_version=no
9345   hardcode_into_libs=yes
9346   if test "$host_cpu" = ia64; then
9347     # AIX 5 supports IA64
9348     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9349     shlibpath_var=LD_LIBRARY_PATH
9350   else
9351     # With GCC up to 2.95.x, collect2 would create an import file
9352     # for dependence libraries.  The import file would start with
9353     # the line `#! .'.  This would cause the generated library to
9354     # depend on `.', always an invalid library.  This was fixed in
9355     # development snapshots of GCC prior to 3.0.
9356     case $host_os in
9357       aix4 | aix4.[01] | aix4.[01].*)
9358       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9359            echo ' yes '
9360            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9361         :
9362       else
9363         can_build_shared=no
9364       fi
9365       ;;
9366     esac
9367     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9368     # soname into executable. Probably we can add versioning support to
9369     # collect2, so additional links can be useful in future.
9370     if test "$aix_use_runtimelinking" = yes; then
9371       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9372       # instead of lib<name>.a to let people know that these are not
9373       # typical AIX shared libraries.
9374       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375     else
9376       # We preserve .a as extension for shared libraries through AIX4.2
9377       # and later when we are not doing run time linking.
9378       library_names_spec='${libname}${release}.a $libname.a'
9379       soname_spec='${libname}${release}${shared_ext}$major'
9380     fi
9381     shlibpath_var=LIBPATH
9382   fi
9383   ;;
9384
9385 amigaos*)
9386   library_names_spec='$libname.ixlibrary $libname.a'
9387   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9388   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'
9389   ;;
9390
9391 beos*)
9392   library_names_spec='${libname}${shared_ext}'
9393   dynamic_linker="$host_os ld.so"
9394   shlibpath_var=LIBRARY_PATH
9395   ;;
9396
9397 bsdi[45]*)
9398   version_type=linux
9399   need_version=no
9400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401   soname_spec='${libname}${release}${shared_ext}$major'
9402   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9403   shlibpath_var=LD_LIBRARY_PATH
9404   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9405   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9406   # the default ld.so.conf also contains /usr/contrib/lib and
9407   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9408   # libtool to hard-code these into programs
9409   ;;
9410
9411 cygwin* | mingw* | pw32*)
9412   version_type=windows
9413   shrext_cmds=".dll"
9414   need_version=no
9415   need_lib_prefix=no
9416
9417   case $GCC,$host_os in
9418   yes,cygwin* | yes,mingw* | yes,pw32*)
9419     library_names_spec='$libname.dll.a'
9420     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9421     postinstall_cmds='base_file=`basename \${file}`~
9422       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9423       dldir=$destdir/`dirname \$dlpath`~
9424       test -d \$dldir || mkdir -p \$dldir~
9425       $install_prog $dir/$dlname \$dldir/$dlname~
9426       chmod a+x \$dldir/$dlname'
9427     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9428       dlpath=$dir/\$dldll~
9429        $rm \$dlpath'
9430     shlibpath_overrides_runpath=yes
9431
9432     case $host_os in
9433     cygwin*)
9434       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9435       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9436       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9437       ;;
9438     mingw*)
9439       # MinGW DLLs use traditional 'lib' prefix
9440       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9441       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9442       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9443         # It is most probably a Windows format PATH printed by
9444         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9445         # path with ; separators, and with drive letters. We can handle the
9446         # drive letters (cygwin fileutils understands them), so leave them,
9447         # especially as we might pass files found there to a mingw objdump,
9448         # which wouldn't understand a cygwinified path. Ahh.
9449         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9450       else
9451         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9452       fi
9453       ;;
9454     pw32*)
9455       # pw32 DLLs use 'pw' prefix rather than 'lib'
9456       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9457       ;;
9458     esac
9459     ;;
9460
9461   *)
9462     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9463     ;;
9464   esac
9465   dynamic_linker='Win32 ld.exe'
9466   # FIXME: first we should search . and the directory the executable is in
9467   shlibpath_var=PATH
9468   ;;
9469
9470 darwin* | rhapsody*)
9471   dynamic_linker="$host_os dyld"
9472   version_type=darwin
9473   need_lib_prefix=no
9474   need_version=no
9475   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9476   soname_spec='${libname}${release}${major}$shared_ext'
9477   shlibpath_overrides_runpath=yes
9478   shlibpath_var=DYLD_LIBRARY_PATH
9479   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9480
9481   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9482   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9483   ;;
9484
9485 dgux*)
9486   version_type=linux
9487   need_lib_prefix=no
9488   need_version=no
9489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9490   soname_spec='${libname}${release}${shared_ext}$major'
9491   shlibpath_var=LD_LIBRARY_PATH
9492   ;;
9493
9494 freebsd1*)
9495   dynamic_linker=no
9496   ;;
9497
9498 freebsd* | dragonfly*)
9499   # DragonFly does not have aout.  When/if they implement a new
9500   # versioning mechanism, adjust this.
9501   if test -x /usr/bin/objformat; then
9502     objformat=`/usr/bin/objformat`
9503   else
9504     case $host_os in
9505     freebsd[123]*) objformat=aout ;;
9506     *) objformat=elf ;;
9507     esac
9508   fi
9509   version_type=freebsd-$objformat
9510   case $version_type in
9511     freebsd-elf*)
9512       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9513       need_version=no
9514       need_lib_prefix=no
9515       ;;
9516     freebsd-*)
9517       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9518       need_version=yes
9519       ;;
9520   esac
9521   shlibpath_var=LD_LIBRARY_PATH
9522   case $host_os in
9523   freebsd2*)
9524     shlibpath_overrides_runpath=yes
9525     ;;
9526   freebsd3.[01]* | freebsdelf3.[01]*)
9527     shlibpath_overrides_runpath=yes
9528     hardcode_into_libs=yes
9529     ;;
9530   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9531   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9532     shlibpath_overrides_runpath=no
9533     hardcode_into_libs=yes
9534     ;;
9535   *) # from 4.6 on, and DragonFly
9536     shlibpath_overrides_runpath=yes
9537     hardcode_into_libs=yes
9538     ;;
9539   esac
9540   ;;
9541
9542 gnu*)
9543   version_type=linux
9544   need_lib_prefix=no
9545   need_version=no
9546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9547   soname_spec='${libname}${release}${shared_ext}$major'
9548   shlibpath_var=LD_LIBRARY_PATH
9549   hardcode_into_libs=yes
9550   ;;
9551
9552 hpux9* | hpux10* | hpux11*)
9553   # Give a soname corresponding to the major version so that dld.sl refuses to
9554   # link against other versions.
9555   version_type=sunos
9556   need_lib_prefix=no
9557   need_version=no
9558   case $host_cpu in
9559   ia64*)
9560     shrext_cmds='.so'
9561     hardcode_into_libs=yes
9562     dynamic_linker="$host_os dld.so"
9563     shlibpath_var=LD_LIBRARY_PATH
9564     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566     soname_spec='${libname}${release}${shared_ext}$major'
9567     if test "X$HPUX_IA64_MODE" = X32; then
9568       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9569     else
9570       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9571     fi
9572     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9573     ;;
9574    hppa*64*)
9575      shrext_cmds='.sl'
9576      hardcode_into_libs=yes
9577      dynamic_linker="$host_os dld.sl"
9578      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9579      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9580      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581      soname_spec='${libname}${release}${shared_ext}$major'
9582      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9583      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9584      ;;
9585    *)
9586     shrext_cmds='.sl'
9587     dynamic_linker="$host_os dld.sl"
9588     shlibpath_var=SHLIB_PATH
9589     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591     soname_spec='${libname}${release}${shared_ext}$major'
9592     ;;
9593   esac
9594   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9595   postinstall_cmds='chmod 555 $lib'
9596   ;;
9597
9598 interix[3-9]*)
9599   version_type=linux
9600   need_lib_prefix=no
9601   need_version=no
9602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9603   soname_spec='${libname}${release}${shared_ext}$major'
9604   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9605   shlibpath_var=LD_LIBRARY_PATH
9606   shlibpath_overrides_runpath=no
9607   hardcode_into_libs=yes
9608   ;;
9609
9610 irix5* | irix6* | nonstopux*)
9611   case $host_os in
9612     nonstopux*) version_type=nonstopux ;;
9613     *)
9614         if test "$lt_cv_prog_gnu_ld" = yes; then
9615                 version_type=linux
9616         else
9617                 version_type=irix
9618         fi ;;
9619   esac
9620   need_lib_prefix=no
9621   need_version=no
9622   soname_spec='${libname}${release}${shared_ext}$major'
9623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9624   case $host_os in
9625   irix5* | nonstopux*)
9626     libsuff= shlibsuff=
9627     ;;
9628   *)
9629     case $LD in # libtool.m4 will add one of these switches to LD
9630     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9631       libsuff= shlibsuff= libmagic=32-bit;;
9632     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9633       libsuff=32 shlibsuff=N32 libmagic=N32;;
9634     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9635       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9636     *) libsuff= shlibsuff= libmagic=never-match;;
9637     esac
9638     ;;
9639   esac
9640   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9641   shlibpath_overrides_runpath=no
9642   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9643   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9644   hardcode_into_libs=yes
9645   ;;
9646
9647 # No shared lib support for Linux oldld, aout, or coff.
9648 linux*oldld* | linux*aout* | linux*coff*)
9649   dynamic_linker=no
9650   ;;
9651
9652 # This must be Linux ELF.
9653 linux* | k*bsd*-gnu)
9654   version_type=linux
9655   need_lib_prefix=no
9656   need_version=no
9657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658   soname_spec='${libname}${release}${shared_ext}$major'
9659   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9660   shlibpath_var=LD_LIBRARY_PATH
9661   shlibpath_overrides_runpath=no
9662   # This implies no fast_install, which is unacceptable.
9663   # Some rework will be needed to allow for fast_install
9664   # before this can be enabled.
9665   hardcode_into_libs=yes
9666
9667   # Append ld.so.conf contents to the search path
9668   if test -f /etc/ld.so.conf; then
9669     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' ' '`
9670     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9671   fi
9672
9673   # We used to test for /lib/ld.so.1 and disable shared libraries on
9674   # powerpc, because MkLinux only supported shared libraries with the
9675   # GNU dynamic linker.  Since this was broken with cross compilers,
9676   # most powerpc-linux boxes support dynamic linking these days and
9677   # people can always --disable-shared, the test was removed, and we
9678   # assume the GNU/Linux dynamic linker is in use.
9679   dynamic_linker='GNU/Linux ld.so'
9680   ;;
9681
9682 netbsdelf*-gnu)
9683   version_type=linux
9684   need_lib_prefix=no
9685   need_version=no
9686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9687   soname_spec='${libname}${release}${shared_ext}$major'
9688   shlibpath_var=LD_LIBRARY_PATH
9689   shlibpath_overrides_runpath=no
9690   hardcode_into_libs=yes
9691   dynamic_linker='NetBSD ld.elf_so'
9692   ;;
9693
9694 netbsd*)
9695   version_type=sunos
9696   need_lib_prefix=no
9697   need_version=no
9698   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9700     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9701     dynamic_linker='NetBSD (a.out) ld.so'
9702   else
9703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9704     soname_spec='${libname}${release}${shared_ext}$major'
9705     dynamic_linker='NetBSD ld.elf_so'
9706   fi
9707   shlibpath_var=LD_LIBRARY_PATH
9708   shlibpath_overrides_runpath=yes
9709   hardcode_into_libs=yes
9710   ;;
9711
9712 newsos6)
9713   version_type=linux
9714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715   shlibpath_var=LD_LIBRARY_PATH
9716   shlibpath_overrides_runpath=yes
9717   ;;
9718
9719 nto-qnx*)
9720   version_type=linux
9721   need_lib_prefix=no
9722   need_version=no
9723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724   soname_spec='${libname}${release}${shared_ext}$major'
9725   shlibpath_var=LD_LIBRARY_PATH
9726   shlibpath_overrides_runpath=yes
9727   ;;
9728
9729 openbsd*)
9730   version_type=sunos
9731   sys_lib_dlsearch_path_spec="/usr/lib"
9732   need_lib_prefix=no
9733   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9734   case $host_os in
9735     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9736     *)                         need_version=no  ;;
9737   esac
9738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9739   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9740   shlibpath_var=LD_LIBRARY_PATH
9741   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9742     case $host_os in
9743       openbsd2.[89] | openbsd2.[89].*)
9744         shlibpath_overrides_runpath=no
9745         ;;
9746       *)
9747         shlibpath_overrides_runpath=yes
9748         ;;
9749       esac
9750   else
9751     shlibpath_overrides_runpath=yes
9752   fi
9753   ;;
9754
9755 os2*)
9756   libname_spec='$name'
9757   shrext_cmds=".dll"
9758   need_lib_prefix=no
9759   library_names_spec='$libname${shared_ext} $libname.a'
9760   dynamic_linker='OS/2 ld.exe'
9761   shlibpath_var=LIBPATH
9762   ;;
9763
9764 osf3* | osf4* | osf5*)
9765   version_type=osf
9766   need_lib_prefix=no
9767   need_version=no
9768   soname_spec='${libname}${release}${shared_ext}$major'
9769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770   shlibpath_var=LD_LIBRARY_PATH
9771   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9772   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9773   ;;
9774
9775 rdos*)
9776   dynamic_linker=no
9777   ;;
9778
9779 solaris*)
9780   version_type=linux
9781   need_lib_prefix=no
9782   need_version=no
9783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784   soname_spec='${libname}${release}${shared_ext}$major'
9785   shlibpath_var=LD_LIBRARY_PATH
9786   shlibpath_overrides_runpath=yes
9787   hardcode_into_libs=yes
9788   # ldd complains unless libraries are executable
9789   postinstall_cmds='chmod +x $lib'
9790   ;;
9791
9792 sunos4*)
9793   version_type=sunos
9794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9795   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9796   shlibpath_var=LD_LIBRARY_PATH
9797   shlibpath_overrides_runpath=yes
9798   if test "$with_gnu_ld" = yes; then
9799     need_lib_prefix=no
9800   fi
9801   need_version=yes
9802   ;;
9803
9804 sysv4 | sysv4.3*)
9805   version_type=linux
9806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807   soname_spec='${libname}${release}${shared_ext}$major'
9808   shlibpath_var=LD_LIBRARY_PATH
9809   case $host_vendor in
9810     sni)
9811       shlibpath_overrides_runpath=no
9812       need_lib_prefix=no
9813       export_dynamic_flag_spec='${wl}-Blargedynsym'
9814       runpath_var=LD_RUN_PATH
9815       ;;
9816     siemens)
9817       need_lib_prefix=no
9818       ;;
9819     motorola)
9820       need_lib_prefix=no
9821       need_version=no
9822       shlibpath_overrides_runpath=no
9823       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9824       ;;
9825   esac
9826   ;;
9827
9828 sysv4*MP*)
9829   if test -d /usr/nec ;then
9830     version_type=linux
9831     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9832     soname_spec='$libname${shared_ext}.$major'
9833     shlibpath_var=LD_LIBRARY_PATH
9834   fi
9835   ;;
9836
9837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9838   version_type=freebsd-elf
9839   need_lib_prefix=no
9840   need_version=no
9841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9842   soname_spec='${libname}${release}${shared_ext}$major'
9843   shlibpath_var=LD_LIBRARY_PATH
9844   hardcode_into_libs=yes
9845   if test "$with_gnu_ld" = yes; then
9846     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9847     shlibpath_overrides_runpath=no
9848   else
9849     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9850     shlibpath_overrides_runpath=yes
9851     case $host_os in
9852       sco3.2v5*)
9853         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9854         ;;
9855     esac
9856   fi
9857   sys_lib_dlsearch_path_spec='/usr/lib'
9858   ;;
9859
9860 uts4*)
9861   version_type=linux
9862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863   soname_spec='${libname}${release}${shared_ext}$major'
9864   shlibpath_var=LD_LIBRARY_PATH
9865   ;;
9866
9867 *)
9868   dynamic_linker=no
9869   ;;
9870 esac
9871 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9872 echo "${ECHO_T}$dynamic_linker" >&6; }
9873 test "$dynamic_linker" = no && can_build_shared=no
9874
9875 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9879 fi
9880
9881 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9882 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9883   echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9886 fi
9887
9888 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9889
9890 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9891 if test "$GCC" = yes; then
9892   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9893 fi
9894
9895 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9896 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9897 hardcode_action=
9898 if test -n "$hardcode_libdir_flag_spec" || \
9899    test -n "$runpath_var" || \
9900    test "X$hardcode_automatic" = "Xyes" ; then
9901
9902   # We can hardcode non-existant directories.
9903   if test "$hardcode_direct" != no &&
9904      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9905      # have to relink, otherwise we might link with an installed library
9906      # when we should be linking with a yet-to-be-installed one
9907      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9908      test "$hardcode_minus_L" != no; then
9909     # Linking always hardcodes the temporary library directory.
9910     hardcode_action=relink
9911   else
9912     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9913     hardcode_action=immediate
9914   fi
9915 else
9916   # We cannot hardcode anything, or else we can only hardcode existing
9917   # directories.
9918   hardcode_action=unsupported
9919 fi
9920 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9921 echo "${ECHO_T}$hardcode_action" >&6; }
9922
9923 if test "$hardcode_action" = relink; then
9924   # Fast installation is not supported
9925   enable_fast_install=no
9926 elif test "$shlibpath_overrides_runpath" = yes ||
9927      test "$enable_shared" = no; then
9928   # Fast installation is not necessary
9929   enable_fast_install=needless
9930 fi
9931
9932 striplib=
9933 old_striplib=
9934 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9935 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9936 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9937   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9938   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9939   { echo "$as_me:$LINENO: result: yes" >&5
9940 echo "${ECHO_T}yes" >&6; }
9941 else
9942 # FIXME - insert some real tests, host_os isn't really good enough
9943   case $host_os in
9944    darwin*)
9945        if test -n "$STRIP" ; then
9946          striplib="$STRIP -x"
9947          old_striplib="$STRIP -S"
9948          { echo "$as_me:$LINENO: result: yes" >&5
9949 echo "${ECHO_T}yes" >&6; }
9950        else
9951   { echo "$as_me:$LINENO: result: no" >&5
9952 echo "${ECHO_T}no" >&6; }
9953 fi
9954        ;;
9955    *)
9956   { echo "$as_me:$LINENO: result: no" >&5
9957 echo "${ECHO_T}no" >&6; }
9958     ;;
9959   esac
9960 fi
9961
9962 if test "x$enable_dlopen" != xyes; then
9963   enable_dlopen=unknown
9964   enable_dlopen_self=unknown
9965   enable_dlopen_self_static=unknown
9966 else
9967   lt_cv_dlopen=no
9968   lt_cv_dlopen_libs=
9969
9970   case $host_os in
9971   beos*)
9972     lt_cv_dlopen="load_add_on"
9973     lt_cv_dlopen_libs=
9974     lt_cv_dlopen_self=yes
9975     ;;
9976
9977   mingw* | pw32*)
9978     lt_cv_dlopen="LoadLibrary"
9979     lt_cv_dlopen_libs=
9980    ;;
9981
9982   cygwin*)
9983     lt_cv_dlopen="dlopen"
9984     lt_cv_dlopen_libs=
9985    ;;
9986
9987   darwin*)
9988   # if libdl is installed we need to link against it
9989     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9990 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9991 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   ac_check_lib_save_LIBS=$LIBS
9995 LIBS="-ldl  $LIBS"
9996 cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h.  */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h.  */
10002
10003 /* Override any GCC internal prototype to avoid an error.
10004    Use char because int might match the return type of a GCC
10005    builtin and then its argument prototype would still apply.  */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 char dlopen ();
10010 int
10011 main ()
10012 {
10013 return dlopen ();
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (ac_try="$ac_link"
10020 case "(($ac_try" in
10021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022   *) ac_try_echo=$ac_try;;
10023 esac
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025   (eval "$ac_link") 2>conftest.er1
10026   ac_status=$?
10027   grep -v '^ *+' conftest.er1 >conftest.err
10028   rm -f conftest.er1
10029   cat conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } && {
10032          test -z "$ac_c_werror_flag" ||
10033          test ! -s conftest.err
10034        } && test -s conftest$ac_exeext &&
10035        $as_test_x conftest$ac_exeext; then
10036   ac_cv_lib_dl_dlopen=yes
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041         ac_cv_lib_dl_dlopen=no
10042 fi
10043
10044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10045       conftest$ac_exeext conftest.$ac_ext
10046 LIBS=$ac_check_lib_save_LIBS
10047 fi
10048 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10049 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10050 if test $ac_cv_lib_dl_dlopen = yes; then
10051   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10052 else
10053
10054     lt_cv_dlopen="dyld"
10055     lt_cv_dlopen_libs=
10056     lt_cv_dlopen_self=yes
10057
10058 fi
10059
10060    ;;
10061
10062   *)
10063     { echo "$as_me:$LINENO: checking for shl_load" >&5
10064 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10065 if test "${ac_cv_func_shl_load+set}" = set; then
10066   echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068   cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10076 #define shl_load innocuous_shl_load
10077
10078 /* System header to define __stub macros and hopefully few prototypes,
10079     which can conflict with char shl_load (); below.
10080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10081     <limits.h> exists even on freestanding compilers.  */
10082
10083 #ifdef __STDC__
10084 # include <limits.h>
10085 #else
10086 # include <assert.h>
10087 #endif
10088
10089 #undef shl_load
10090
10091 /* Override any GCC internal prototype to avoid an error.
10092    Use char because int might match the return type of a GCC
10093    builtin and then its argument prototype would still apply.  */
10094 #ifdef __cplusplus
10095 extern "C"
10096 #endif
10097 char shl_load ();
10098 /* The GNU C library defines this for functions which it implements
10099     to always fail with ENOSYS.  Some functions are actually named
10100     something starting with __ and the normal name is an alias.  */
10101 #if defined __stub_shl_load || defined __stub___shl_load
10102 choke me
10103 #endif
10104
10105 int
10106 main ()
10107 {
10108 return shl_load ();
10109   ;
10110   return 0;
10111 }
10112 _ACEOF
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117   *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120   (eval "$ac_link") 2>conftest.er1
10121   ac_status=$?
10122   grep -v '^ *+' conftest.er1 >conftest.err
10123   rm -f conftest.er1
10124   cat conftest.err >&5
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); } && {
10127          test -z "$ac_c_werror_flag" ||
10128          test ! -s conftest.err
10129        } && test -s conftest$ac_exeext &&
10130        $as_test_x conftest$ac_exeext; then
10131   ac_cv_func_shl_load=yes
10132 else
10133   echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136         ac_cv_func_shl_load=no
10137 fi
10138
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140       conftest$ac_exeext conftest.$ac_ext
10141 fi
10142 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10143 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10144 if test $ac_cv_func_shl_load = yes; then
10145   lt_cv_dlopen="shl_load"
10146 else
10147   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10148 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10149 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10150   echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152   ac_check_lib_save_LIBS=$LIBS
10153 LIBS="-ldld  $LIBS"
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h.  */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h.  */
10160
10161 /* Override any GCC internal prototype to avoid an error.
10162    Use char because int might match the return type of a GCC
10163    builtin and then its argument prototype would still apply.  */
10164 #ifdef __cplusplus
10165 extern "C"
10166 #endif
10167 char shl_load ();
10168 int
10169 main ()
10170 {
10171 return shl_load ();
10172   ;
10173   return 0;
10174 }
10175 _ACEOF
10176 rm -f conftest.$ac_objext conftest$ac_exeext
10177 if { (ac_try="$ac_link"
10178 case "(($ac_try" in
10179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180   *) ac_try_echo=$ac_try;;
10181 esac
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183   (eval "$ac_link") 2>conftest.er1
10184   ac_status=$?
10185   grep -v '^ *+' conftest.er1 >conftest.err
10186   rm -f conftest.er1
10187   cat conftest.err >&5
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); } && {
10190          test -z "$ac_c_werror_flag" ||
10191          test ! -s conftest.err
10192        } && test -s conftest$ac_exeext &&
10193        $as_test_x conftest$ac_exeext; then
10194   ac_cv_lib_dld_shl_load=yes
10195 else
10196   echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10198
10199         ac_cv_lib_dld_shl_load=no
10200 fi
10201
10202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10203       conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10205 fi
10206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10208 if test $ac_cv_lib_dld_shl_load = yes; then
10209   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10210 else
10211   { echo "$as_me:$LINENO: checking for dlopen" >&5
10212 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10213 if test "${ac_cv_func_dlopen+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10224 #define dlopen innocuous_dlopen
10225
10226 /* System header to define __stub macros and hopefully few prototypes,
10227     which can conflict with char dlopen (); below.
10228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10229     <limits.h> exists even on freestanding compilers.  */
10230
10231 #ifdef __STDC__
10232 # include <limits.h>
10233 #else
10234 # include <assert.h>
10235 #endif
10236
10237 #undef dlopen
10238
10239 /* Override any GCC internal prototype to avoid an error.
10240    Use char because int might match the return type of a GCC
10241    builtin and then its argument prototype would still apply.  */
10242 #ifdef __cplusplus
10243 extern "C"
10244 #endif
10245 char dlopen ();
10246 /* The GNU C library defines this for functions which it implements
10247     to always fail with ENOSYS.  Some functions are actually named
10248     something starting with __ and the normal name is an alias.  */
10249 #if defined __stub_dlopen || defined __stub___dlopen
10250 choke me
10251 #endif
10252
10253 int
10254 main ()
10255 {
10256 return dlopen ();
10257   ;
10258   return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (ac_try="$ac_link"
10263 case "(($ac_try" in
10264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265   *) ac_try_echo=$ac_try;;
10266 esac
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268   (eval "$ac_link") 2>conftest.er1
10269   ac_status=$?
10270   grep -v '^ *+' conftest.er1 >conftest.err
10271   rm -f conftest.er1
10272   cat conftest.err >&5
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); } && {
10275          test -z "$ac_c_werror_flag" ||
10276          test ! -s conftest.err
10277        } && test -s conftest$ac_exeext &&
10278        $as_test_x conftest$ac_exeext; then
10279   ac_cv_func_dlopen=yes
10280 else
10281   echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10283
10284         ac_cv_func_dlopen=no
10285 fi
10286
10287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10288       conftest$ac_exeext conftest.$ac_ext
10289 fi
10290 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10291 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10292 if test $ac_cv_func_dlopen = yes; then
10293   lt_cv_dlopen="dlopen"
10294 else
10295   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10296 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10297 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10298   echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300   ac_check_lib_save_LIBS=$LIBS
10301 LIBS="-ldl  $LIBS"
10302 cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308
10309 /* Override any GCC internal prototype to avoid an error.
10310    Use char because int might match the return type of a GCC
10311    builtin and then its argument prototype would still apply.  */
10312 #ifdef __cplusplus
10313 extern "C"
10314 #endif
10315 char dlopen ();
10316 int
10317 main ()
10318 {
10319 return dlopen ();
10320   ;
10321   return 0;
10322 }
10323 _ACEOF
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (ac_try="$ac_link"
10326 case "(($ac_try" in
10327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328   *) ac_try_echo=$ac_try;;
10329 esac
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331   (eval "$ac_link") 2>conftest.er1
10332   ac_status=$?
10333   grep -v '^ *+' conftest.er1 >conftest.err
10334   rm -f conftest.er1
10335   cat conftest.err >&5
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); } && {
10338          test -z "$ac_c_werror_flag" ||
10339          test ! -s conftest.err
10340        } && test -s conftest$ac_exeext &&
10341        $as_test_x conftest$ac_exeext; then
10342   ac_cv_lib_dl_dlopen=yes
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347         ac_cv_lib_dl_dlopen=no
10348 fi
10349
10350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10351       conftest$ac_exeext conftest.$ac_ext
10352 LIBS=$ac_check_lib_save_LIBS
10353 fi
10354 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10355 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10356 if test $ac_cv_lib_dl_dlopen = yes; then
10357   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10358 else
10359   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10360 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10361 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10362   echo $ECHO_N "(cached) $ECHO_C" >&6
10363 else
10364   ac_check_lib_save_LIBS=$LIBS
10365 LIBS="-lsvld  $LIBS"
10366 cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372
10373 /* Override any GCC internal prototype to avoid an error.
10374    Use char because int might match the return type of a GCC
10375    builtin and then its argument prototype would still apply.  */
10376 #ifdef __cplusplus
10377 extern "C"
10378 #endif
10379 char dlopen ();
10380 int
10381 main ()
10382 {
10383 return dlopen ();
10384   ;
10385   return 0;
10386 }
10387 _ACEOF
10388 rm -f conftest.$ac_objext conftest$ac_exeext
10389 if { (ac_try="$ac_link"
10390 case "(($ac_try" in
10391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392   *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395   (eval "$ac_link") 2>conftest.er1
10396   ac_status=$?
10397   grep -v '^ *+' conftest.er1 >conftest.err
10398   rm -f conftest.er1
10399   cat conftest.err >&5
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); } && {
10402          test -z "$ac_c_werror_flag" ||
10403          test ! -s conftest.err
10404        } && test -s conftest$ac_exeext &&
10405        $as_test_x conftest$ac_exeext; then
10406   ac_cv_lib_svld_dlopen=yes
10407 else
10408   echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10410
10411         ac_cv_lib_svld_dlopen=no
10412 fi
10413
10414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10415       conftest$ac_exeext conftest.$ac_ext
10416 LIBS=$ac_check_lib_save_LIBS
10417 fi
10418 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10419 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10420 if test $ac_cv_lib_svld_dlopen = yes; then
10421   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10422 else
10423   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10424 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10425 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10426   echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428   ac_check_lib_save_LIBS=$LIBS
10429 LIBS="-ldld  $LIBS"
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h.  */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h.  */
10436
10437 /* Override any GCC internal prototype to avoid an error.
10438    Use char because int might match the return type of a GCC
10439    builtin and then its argument prototype would still apply.  */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 char dld_link ();
10444 int
10445 main ()
10446 {
10447 return dld_link ();
10448   ;
10449   return 0;
10450 }
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456   *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459   (eval "$ac_link") 2>conftest.er1
10460   ac_status=$?
10461   grep -v '^ *+' conftest.er1 >conftest.err
10462   rm -f conftest.er1
10463   cat conftest.err >&5
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); } && {
10466          test -z "$ac_c_werror_flag" ||
10467          test ! -s conftest.err
10468        } && test -s conftest$ac_exeext &&
10469        $as_test_x conftest$ac_exeext; then
10470   ac_cv_lib_dld_dld_link=yes
10471 else
10472   echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10474
10475         ac_cv_lib_dld_dld_link=no
10476 fi
10477
10478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10479       conftest$ac_exeext conftest.$ac_ext
10480 LIBS=$ac_check_lib_save_LIBS
10481 fi
10482 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10483 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10484 if test $ac_cv_lib_dld_dld_link = yes; then
10485   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10486 fi
10487
10488
10489 fi
10490
10491
10492 fi
10493
10494
10495 fi
10496
10497
10498 fi
10499
10500
10501 fi
10502
10503     ;;
10504   esac
10505
10506   if test "x$lt_cv_dlopen" != xno; then
10507     enable_dlopen=yes
10508   else
10509     enable_dlopen=no
10510   fi
10511
10512   case $lt_cv_dlopen in
10513   dlopen)
10514     save_CPPFLAGS="$CPPFLAGS"
10515     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10516
10517     save_LDFLAGS="$LDFLAGS"
10518     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10519
10520     save_LIBS="$LIBS"
10521     LIBS="$lt_cv_dlopen_libs $LIBS"
10522
10523     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10524 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10525 if test "${lt_cv_dlopen_self+set}" = set; then
10526   echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528           if test "$cross_compiling" = yes; then :
10529   lt_cv_dlopen_self=cross
10530 else
10531   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10532   lt_status=$lt_dlunknown
10533   cat > conftest.$ac_ext <<EOF
10534 #line 10534 "configure"
10535 #include "confdefs.h"
10536
10537 #if HAVE_DLFCN_H
10538 #include <dlfcn.h>
10539 #endif
10540
10541 #include <stdio.h>
10542
10543 #ifdef RTLD_GLOBAL
10544 #  define LT_DLGLOBAL           RTLD_GLOBAL
10545 #else
10546 #  ifdef DL_GLOBAL
10547 #    define LT_DLGLOBAL         DL_GLOBAL
10548 #  else
10549 #    define LT_DLGLOBAL         0
10550 #  endif
10551 #endif
10552
10553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10554    find out it does not work in some platform. */
10555 #ifndef LT_DLLAZY_OR_NOW
10556 #  ifdef RTLD_LAZY
10557 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10558 #  else
10559 #    ifdef DL_LAZY
10560 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10561 #    else
10562 #      ifdef RTLD_NOW
10563 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10564 #      else
10565 #        ifdef DL_NOW
10566 #          define LT_DLLAZY_OR_NOW      DL_NOW
10567 #        else
10568 #          define LT_DLLAZY_OR_NOW      0
10569 #        endif
10570 #      endif
10571 #    endif
10572 #  endif
10573 #endif
10574
10575 #ifdef __cplusplus
10576 extern "C" void exit (int);
10577 #endif
10578
10579 void fnord() { int i=42;}
10580 int main ()
10581 {
10582   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10583   int status = $lt_dlunknown;
10584
10585   if (self)
10586     {
10587       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10588       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10589       /* dlclose (self); */
10590     }
10591   else
10592     puts (dlerror ());
10593
10594     exit (status);
10595 }
10596 EOF
10597   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598   (eval $ac_link) 2>&5
10599   ac_status=$?
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10602     (./conftest; exit; ) >&5 2>/dev/null
10603     lt_status=$?
10604     case x$lt_status in
10605       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10606       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10607       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10608     esac
10609   else :
10610     # compilation failed
10611     lt_cv_dlopen_self=no
10612   fi
10613 fi
10614 rm -fr conftest*
10615
10616
10617 fi
10618 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10619 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10620
10621     if test "x$lt_cv_dlopen_self" = xyes; then
10622       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10623       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10624 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10625 if test "${lt_cv_dlopen_self_static+set}" = set; then
10626   echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628           if test "$cross_compiling" = yes; then :
10629   lt_cv_dlopen_self_static=cross
10630 else
10631   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10632   lt_status=$lt_dlunknown
10633   cat > conftest.$ac_ext <<EOF
10634 #line 10634 "configure"
10635 #include "confdefs.h"
10636
10637 #if HAVE_DLFCN_H
10638 #include <dlfcn.h>
10639 #endif
10640
10641 #include <stdio.h>
10642
10643 #ifdef RTLD_GLOBAL
10644 #  define LT_DLGLOBAL           RTLD_GLOBAL
10645 #else
10646 #  ifdef DL_GLOBAL
10647 #    define LT_DLGLOBAL         DL_GLOBAL
10648 #  else
10649 #    define LT_DLGLOBAL         0
10650 #  endif
10651 #endif
10652
10653 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10654    find out it does not work in some platform. */
10655 #ifndef LT_DLLAZY_OR_NOW
10656 #  ifdef RTLD_LAZY
10657 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10658 #  else
10659 #    ifdef DL_LAZY
10660 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10661 #    else
10662 #      ifdef RTLD_NOW
10663 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10664 #      else
10665 #        ifdef DL_NOW
10666 #          define LT_DLLAZY_OR_NOW      DL_NOW
10667 #        else
10668 #          define LT_DLLAZY_OR_NOW      0
10669 #        endif
10670 #      endif
10671 #    endif
10672 #  endif
10673 #endif
10674
10675 #ifdef __cplusplus
10676 extern "C" void exit (int);
10677 #endif
10678
10679 void fnord() { int i=42;}
10680 int main ()
10681 {
10682   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10683   int status = $lt_dlunknown;
10684
10685   if (self)
10686     {
10687       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10688       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10689       /* dlclose (self); */
10690     }
10691   else
10692     puts (dlerror ());
10693
10694     exit (status);
10695 }
10696 EOF
10697   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698   (eval $ac_link) 2>&5
10699   ac_status=$?
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10702     (./conftest; exit; ) >&5 2>/dev/null
10703     lt_status=$?
10704     case x$lt_status in
10705       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10706       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10707       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10708     esac
10709   else :
10710     # compilation failed
10711     lt_cv_dlopen_self_static=no
10712   fi
10713 fi
10714 rm -fr conftest*
10715
10716
10717 fi
10718 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10719 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10720     fi
10721
10722     CPPFLAGS="$save_CPPFLAGS"
10723     LDFLAGS="$save_LDFLAGS"
10724     LIBS="$save_LIBS"
10725     ;;
10726   esac
10727
10728   case $lt_cv_dlopen_self in
10729   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10730   *) enable_dlopen_self=unknown ;;
10731   esac
10732
10733   case $lt_cv_dlopen_self_static in
10734   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10735   *) enable_dlopen_self_static=unknown ;;
10736   esac
10737 fi
10738
10739
10740 # Report which library types will actually be built
10741 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10742 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10743 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10744 echo "${ECHO_T}$can_build_shared" >&6; }
10745
10746 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10747 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10748 test "$can_build_shared" = "no" && enable_shared=no
10749
10750 # On AIX, shared libraries and static libraries use the same namespace, and
10751 # are all built from PIC.
10752 case $host_os in
10753 aix3*)
10754   test "$enable_shared" = yes && enable_static=no
10755   if test -n "$RANLIB"; then
10756     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10757     postinstall_cmds='$RANLIB $lib'
10758   fi
10759   ;;
10760
10761 aix[4-9]*)
10762   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10763     test "$enable_shared" = yes && enable_static=no
10764   fi
10765     ;;
10766 esac
10767 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10768 echo "${ECHO_T}$enable_shared" >&6; }
10769
10770 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10771 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10772 # Make sure either enable_shared or enable_static is yes.
10773 test "$enable_shared" = yes || enable_static=yes
10774 { echo "$as_me:$LINENO: result: $enable_static" >&5
10775 echo "${ECHO_T}$enable_static" >&6; }
10776
10777 # The else clause should only fire when bootstrapping the
10778 # libtool distribution, otherwise you forgot to ship ltmain.sh
10779 # with your package, and you will get complaints that there are
10780 # no rules to generate ltmain.sh.
10781 if test -f "$ltmain"; then
10782   # See if we are running on zsh, and set the options which allow our commands through
10783   # without removal of \ escapes.
10784   if test -n "${ZSH_VERSION+set}" ; then
10785     setopt NO_GLOB_SUBST
10786   fi
10787   # Now quote all the things that may contain metacharacters while being
10788   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10789   # variables and quote the copies for generation of the libtool script.
10790   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10791     SED SHELL STRIP \
10792     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10793     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10794     deplibs_check_method reload_flag reload_cmds need_locks \
10795     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10796     lt_cv_sys_global_symbol_to_c_name_address \
10797     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10798     old_postinstall_cmds old_postuninstall_cmds \
10799     compiler \
10800     CC \
10801     LD \
10802     lt_prog_compiler_wl \
10803     lt_prog_compiler_pic \
10804     lt_prog_compiler_static \
10805     lt_prog_compiler_no_builtin_flag \
10806     export_dynamic_flag_spec \
10807     thread_safe_flag_spec \
10808     whole_archive_flag_spec \
10809     enable_shared_with_static_runtimes \
10810     old_archive_cmds \
10811     old_archive_from_new_cmds \
10812     predep_objects \
10813     postdep_objects \
10814     predeps \
10815     postdeps \
10816     compiler_lib_search_path \
10817     compiler_lib_search_dirs \
10818     archive_cmds \
10819     archive_expsym_cmds \
10820     postinstall_cmds \
10821     postuninstall_cmds \
10822     old_archive_from_expsyms_cmds \
10823     allow_undefined_flag \
10824     no_undefined_flag \
10825     export_symbols_cmds \
10826     hardcode_libdir_flag_spec \
10827     hardcode_libdir_flag_spec_ld \
10828     hardcode_libdir_separator \
10829     hardcode_automatic \
10830     module_cmds \
10831     module_expsym_cmds \
10832     lt_cv_prog_compiler_c_o \
10833     fix_srcfile_path \
10834     exclude_expsyms \
10835     include_expsyms; do
10836
10837     case $var in
10838     old_archive_cmds | \
10839     old_archive_from_new_cmds | \
10840     archive_cmds | \
10841     archive_expsym_cmds | \
10842     module_cmds | \
10843     module_expsym_cmds | \
10844     old_archive_from_expsyms_cmds | \
10845     export_symbols_cmds | \
10846     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10847     postinstall_cmds | postuninstall_cmds | \
10848     old_postinstall_cmds | old_postuninstall_cmds | \
10849     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10850       # Double-quote double-evaled strings.
10851       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10852       ;;
10853     *)
10854       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10855       ;;
10856     esac
10857   done
10858
10859   case $lt_echo in
10860   *'\$0 --fallback-echo"')
10861     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10862     ;;
10863   esac
10864
10865 cfgfile="${ofile}T"
10866   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10867   $rm -f "$cfgfile"
10868   { echo "$as_me:$LINENO: creating $ofile" >&5
10869 echo "$as_me: creating $ofile" >&6;}
10870
10871   cat <<__EOF__ >> "$cfgfile"
10872 #! $SHELL
10873
10874 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10875 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10876 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10877 #
10878 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10879 # Free Software Foundation, Inc.
10880 #
10881 # This file is part of GNU Libtool:
10882 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10883 #
10884 # This program is free software; you can redistribute it and/or modify
10885 # it under the terms of the GNU General Public License as published by
10886 # the Free Software Foundation; either version 2 of the License, or
10887 # (at your option) any later version.
10888 #
10889 # This program is distributed in the hope that it will be useful, but
10890 # WITHOUT ANY WARRANTY; without even the implied warranty of
10891 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10892 # General Public License for more details.
10893 #
10894 # You should have received a copy of the GNU General Public License
10895 # along with this program; if not, write to the Free Software
10896 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10897 #
10898 # As a special exception to the GNU General Public License, if you
10899 # distribute this file as part of a program that contains a
10900 # configuration script generated by Autoconf, you may include it under
10901 # the same distribution terms that you use for the rest of that program.
10902
10903 # A sed program that does not truncate output.
10904 SED=$lt_SED
10905
10906 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10907 Xsed="$SED -e 1s/^X//"
10908
10909 # The HP-UX ksh and POSIX shell print the target directory to stdout
10910 # if CDPATH is set.
10911 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10912
10913 # The names of the tagged configurations supported by this script.
10914 available_tags=
10915
10916 # ### BEGIN LIBTOOL CONFIG
10917
10918 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10919
10920 # Shell to use when invoking shell scripts.
10921 SHELL=$lt_SHELL
10922
10923 # Whether or not to build shared libraries.
10924 build_libtool_libs=$enable_shared
10925
10926 # Whether or not to build static libraries.
10927 build_old_libs=$enable_static
10928
10929 # Whether or not to add -lc for building shared libraries.
10930 build_libtool_need_lc=$archive_cmds_need_lc
10931
10932 # Whether or not to disallow shared libs when runtime libs are static
10933 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10934
10935 # Whether or not to optimize for fast installation.
10936 fast_install=$enable_fast_install
10937
10938 # The host system.
10939 host_alias=$host_alias
10940 host=$host
10941 host_os=$host_os
10942
10943 # The build system.
10944 build_alias=$build_alias
10945 build=$build
10946 build_os=$build_os
10947
10948 # An echo program that does not interpret backslashes.
10949 echo=$lt_echo
10950
10951 # The archiver.
10952 AR=$lt_AR
10953 AR_FLAGS=$lt_AR_FLAGS
10954
10955 # A C compiler.
10956 LTCC=$lt_LTCC
10957
10958 # LTCC compiler flags.
10959 LTCFLAGS=$lt_LTCFLAGS
10960
10961 # A language-specific compiler.
10962 CC=$lt_compiler
10963
10964 # Is the compiler the GNU C compiler?
10965 with_gcc=$GCC
10966
10967 # An ERE matcher.
10968 EGREP=$lt_EGREP
10969
10970 # The linker used to build libraries.
10971 LD=$lt_LD
10972
10973 # Whether we need hard or soft links.
10974 LN_S=$lt_LN_S
10975
10976 # A BSD-compatible nm program.
10977 NM=$lt_NM
10978
10979 # A symbol stripping program
10980 STRIP=$lt_STRIP
10981
10982 # Used to examine libraries when file_magic_cmd begins "file"
10983 MAGIC_CMD=$MAGIC_CMD
10984
10985 # Used on cygwin: DLL creation program.
10986 DLLTOOL="$DLLTOOL"
10987
10988 # Used on cygwin: object dumper.
10989 OBJDUMP="$OBJDUMP"
10990
10991 # Used on cygwin: assembler.
10992 AS="$AS"
10993
10994 # The name of the directory that contains temporary libtool files.
10995 objdir=$objdir
10996
10997 # How to create reloadable object files.
10998 reload_flag=$lt_reload_flag
10999 reload_cmds=$lt_reload_cmds
11000
11001 # How to pass a linker flag through the compiler.
11002 wl=$lt_lt_prog_compiler_wl
11003
11004 # Object file suffix (normally "o").
11005 objext="$ac_objext"
11006
11007 # Old archive suffix (normally "a").
11008 libext="$libext"
11009
11010 # Shared library suffix (normally ".so").
11011 shrext_cmds='$shrext_cmds'
11012
11013 # Executable file suffix (normally "").
11014 exeext="$exeext"
11015
11016 # Additional compiler flags for building library objects.
11017 pic_flag=$lt_lt_prog_compiler_pic
11018 pic_mode=$pic_mode
11019
11020 # What is the maximum length of a command?
11021 max_cmd_len=$lt_cv_sys_max_cmd_len
11022
11023 # Does compiler simultaneously support -c and -o options?
11024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11025
11026 # Must we lock files when doing compilation?
11027 need_locks=$lt_need_locks
11028
11029 # Do we need the lib prefix for modules?
11030 need_lib_prefix=$need_lib_prefix
11031
11032 # Do we need a version for libraries?
11033 need_version=$need_version
11034
11035 # Whether dlopen is supported.
11036 dlopen_support=$enable_dlopen
11037
11038 # Whether dlopen of programs is supported.
11039 dlopen_self=$enable_dlopen_self
11040
11041 # Whether dlopen of statically linked programs is supported.
11042 dlopen_self_static=$enable_dlopen_self_static
11043
11044 # Compiler flag to prevent dynamic linking.
11045 link_static_flag=$lt_lt_prog_compiler_static
11046
11047 # Compiler flag to turn off builtin functions.
11048 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11049
11050 # Compiler flag to allow reflexive dlopens.
11051 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11052
11053 # Compiler flag to generate shared objects directly from archives.
11054 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11055
11056 # Compiler flag to generate thread-safe objects.
11057 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11058
11059 # Library versioning type.
11060 version_type=$version_type
11061
11062 # Format of library name prefix.
11063 libname_spec=$lt_libname_spec
11064
11065 # List of archive names.  First name is the real one, the rest are links.
11066 # The last name is the one that the linker finds with -lNAME.
11067 library_names_spec=$lt_library_names_spec
11068
11069 # The coded name of the library, if different from the real name.
11070 soname_spec=$lt_soname_spec
11071
11072 # Commands used to build and install an old-style archive.
11073 RANLIB=$lt_RANLIB
11074 old_archive_cmds=$lt_old_archive_cmds
11075 old_postinstall_cmds=$lt_old_postinstall_cmds
11076 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11077
11078 # Create an old-style archive from a shared archive.
11079 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11080
11081 # Create a temporary old-style archive to link instead of a shared archive.
11082 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11083
11084 # Commands used to build and install a shared archive.
11085 archive_cmds=$lt_archive_cmds
11086 archive_expsym_cmds=$lt_archive_expsym_cmds
11087 postinstall_cmds=$lt_postinstall_cmds
11088 postuninstall_cmds=$lt_postuninstall_cmds
11089
11090 # Commands used to build a loadable module (assumed same as above if empty)
11091 module_cmds=$lt_module_cmds
11092 module_expsym_cmds=$lt_module_expsym_cmds
11093
11094 # Commands to strip libraries.
11095 old_striplib=$lt_old_striplib
11096 striplib=$lt_striplib
11097
11098 # Dependencies to place before the objects being linked to create a
11099 # shared library.
11100 predep_objects=$lt_predep_objects
11101
11102 # Dependencies to place after the objects being linked to create a
11103 # shared library.
11104 postdep_objects=$lt_postdep_objects
11105
11106 # Dependencies to place before the objects being linked to create a
11107 # shared library.
11108 predeps=$lt_predeps
11109
11110 # Dependencies to place after the objects being linked to create a
11111 # shared library.
11112 postdeps=$lt_postdeps
11113
11114 # The directories searched by this compiler when creating a shared
11115 # library
11116 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11117
11118 # The library search path used internally by the compiler when linking
11119 # a shared library.
11120 compiler_lib_search_path=$lt_compiler_lib_search_path
11121
11122 # Method to check whether dependent libraries are shared objects.
11123 deplibs_check_method=$lt_deplibs_check_method
11124
11125 # Command to use when deplibs_check_method == file_magic.
11126 file_magic_cmd=$lt_file_magic_cmd
11127
11128 # Flag that allows shared libraries with undefined symbols to be built.
11129 allow_undefined_flag=$lt_allow_undefined_flag
11130
11131 # Flag that forces no undefined symbols.
11132 no_undefined_flag=$lt_no_undefined_flag
11133
11134 # Commands used to finish a libtool library installation in a directory.
11135 finish_cmds=$lt_finish_cmds
11136
11137 # Same as above, but a single script fragment to be evaled but not shown.
11138 finish_eval=$lt_finish_eval
11139
11140 # Take the output of nm and produce a listing of raw symbols and C names.
11141 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11142
11143 # Transform the output of nm in a proper C declaration
11144 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11145
11146 # Transform the output of nm in a C name address pair
11147 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11148
11149 # This is the shared library runtime path variable.
11150 runpath_var=$runpath_var
11151
11152 # This is the shared library path variable.
11153 shlibpath_var=$shlibpath_var
11154
11155 # Is shlibpath searched before the hard-coded library search path?
11156 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11157
11158 # How to hardcode a shared library path into an executable.
11159 hardcode_action=$hardcode_action
11160
11161 # Whether we should hardcode library paths into libraries.
11162 hardcode_into_libs=$hardcode_into_libs
11163
11164 # Flag to hardcode \$libdir into a binary during linking.
11165 # This must work even if \$libdir does not exist.
11166 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11167
11168 # If ld is used when linking, flag to hardcode \$libdir into
11169 # a binary during linking. This must work even if \$libdir does
11170 # not exist.
11171 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11172
11173 # Whether we need a single -rpath flag with a separated argument.
11174 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11175
11176 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11177 # resulting binary.
11178 hardcode_direct=$hardcode_direct
11179
11180 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11181 # resulting binary.
11182 hardcode_minus_L=$hardcode_minus_L
11183
11184 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11185 # the resulting binary.
11186 hardcode_shlibpath_var=$hardcode_shlibpath_var
11187
11188 # Set to yes if building a shared library automatically hardcodes DIR into the library
11189 # and all subsequent libraries and executables linked against it.
11190 hardcode_automatic=$hardcode_automatic
11191
11192 # Variables whose values should be saved in libtool wrapper scripts and
11193 # restored at relink time.
11194 variables_saved_for_relink="$variables_saved_for_relink"
11195
11196 # Whether libtool must link a program against all its dependency libraries.
11197 link_all_deplibs=$link_all_deplibs
11198
11199 # Compile-time system search path for libraries
11200 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11201
11202 # Run-time system search path for libraries
11203 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11204
11205 # Fix the shell variable \$srcfile for the compiler.
11206 fix_srcfile_path=$lt_fix_srcfile_path
11207
11208 # Set to yes if exported symbols are required.
11209 always_export_symbols=$always_export_symbols
11210
11211 # The commands to list exported symbols.
11212 export_symbols_cmds=$lt_export_symbols_cmds
11213
11214 # The commands to extract the exported symbol list from a shared archive.
11215 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11216
11217 # Symbols that should not be listed in the preloaded symbols.
11218 exclude_expsyms=$lt_exclude_expsyms
11219
11220 # Symbols that must always be exported.
11221 include_expsyms=$lt_include_expsyms
11222
11223 # ### END LIBTOOL CONFIG
11224
11225 __EOF__
11226
11227
11228   case $host_os in
11229   aix3*)
11230     cat <<\EOF >> "$cfgfile"
11231
11232 # AIX sometimes has problems with the GCC collect2 program.  For some
11233 # reason, if we set the COLLECT_NAMES environment variable, the problems
11234 # vanish in a puff of smoke.
11235 if test "X${COLLECT_NAMES+set}" != Xset; then
11236   COLLECT_NAMES=
11237   export COLLECT_NAMES
11238 fi
11239 EOF
11240     ;;
11241   esac
11242
11243   # We use sed instead of cat because bash on DJGPP gets confused if
11244   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11245   # text mode, it properly converts lines to CR/LF.  This bash problem
11246   # is reportedly fixed, but why not run on old versions too?
11247   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11248
11249   mv -f "$cfgfile" "$ofile" || \
11250     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11251   chmod +x "$ofile"
11252
11253 else
11254   # If there is no Makefile yet, we rely on a make rule to execute
11255   # `config.status --recheck' to rerun these tests and create the
11256   # libtool script then.
11257   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11258   if test -f "$ltmain_in"; then
11259     test -f Makefile && make "$ltmain"
11260   fi
11261 fi
11262
11263
11264 ac_ext=c
11265 ac_cpp='$CPP $CPPFLAGS'
11266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11269
11270 CC="$lt_save_CC"
11271
11272
11273 # Check whether --with-tags was given.
11274 if test "${with_tags+set}" = set; then
11275   withval=$with_tags; tagnames="$withval"
11276 fi
11277
11278
11279 if test -f "$ltmain" && test -n "$tagnames"; then
11280   if test ! -f "${ofile}"; then
11281     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11282 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11283   fi
11284
11285   if test -z "$LTCC"; then
11286     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11287     if test -z "$LTCC"; then
11288       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11289 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11290     else
11291       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11292 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11293     fi
11294   fi
11295   if test -z "$LTCFLAGS"; then
11296     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11297   fi
11298
11299   # Extract list of available tagged configurations in $ofile.
11300   # Note that this assumes the entire list is on one line.
11301   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11302
11303   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11304   for tagname in $tagnames; do
11305     IFS="$lt_save_ifs"
11306     # Check whether tagname contains only valid characters
11307     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11308     "") ;;
11309     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11310 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11311    { (exit 1); exit 1; }; }
11312         ;;
11313     esac
11314
11315     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11316     then
11317       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11318 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11319    { (exit 1); exit 1; }; }
11320     fi
11321
11322     # Update the list of available tags.
11323     if test -n "$tagname"; then
11324       echo appending configuration tag \"$tagname\" to $ofile
11325
11326       case $tagname in
11327       CXX)
11328         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11329             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11330             (test "X$CXX" != "Xg++"))) ; then
11331           ac_ext=cpp
11332 ac_cpp='$CXXCPP $CPPFLAGS'
11333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11336
11337
11338
11339
11340 archive_cmds_need_lc_CXX=no
11341 allow_undefined_flag_CXX=
11342 always_export_symbols_CXX=no
11343 archive_expsym_cmds_CXX=
11344 export_dynamic_flag_spec_CXX=
11345 hardcode_direct_CXX=no
11346 hardcode_libdir_flag_spec_CXX=
11347 hardcode_libdir_flag_spec_ld_CXX=
11348 hardcode_libdir_separator_CXX=
11349 hardcode_minus_L_CXX=no
11350 hardcode_shlibpath_var_CXX=unsupported
11351 hardcode_automatic_CXX=no
11352 module_cmds_CXX=
11353 module_expsym_cmds_CXX=
11354 link_all_deplibs_CXX=unknown
11355 old_archive_cmds_CXX=$old_archive_cmds
11356 no_undefined_flag_CXX=
11357 whole_archive_flag_spec_CXX=
11358 enable_shared_with_static_runtimes_CXX=no
11359
11360 # Dependencies to place before and after the object being linked:
11361 predep_objects_CXX=
11362 postdep_objects_CXX=
11363 predeps_CXX=
11364 postdeps_CXX=
11365 compiler_lib_search_path_CXX=
11366 compiler_lib_search_dirs_CXX=
11367
11368 # Source file extension for C++ test sources.
11369 ac_ext=cpp
11370
11371 # Object file extension for compiled C++ test sources.
11372 objext=o
11373 objext_CXX=$objext
11374
11375 # Code to be used in simple compile tests
11376 lt_simple_compile_test_code="int some_variable = 0;"
11377
11378 # Code to be used in simple link tests
11379 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11380
11381 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11382
11383 # If no C compiler was specified, use CC.
11384 LTCC=${LTCC-"$CC"}
11385
11386 # If no C compiler flags were specified, use CFLAGS.
11387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11388
11389 # Allow CC to be a program name with arguments.
11390 compiler=$CC
11391
11392
11393 # save warnings/boilerplate of simple test code
11394 ac_outfile=conftest.$ac_objext
11395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11397 _lt_compiler_boilerplate=`cat conftest.err`
11398 $rm conftest*
11399
11400 ac_outfile=conftest.$ac_objext
11401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11403 _lt_linker_boilerplate=`cat conftest.err`
11404 $rm -r conftest*
11405
11406
11407 # Allow CC to be a program name with arguments.
11408 lt_save_CC=$CC
11409 lt_save_LD=$LD
11410 lt_save_GCC=$GCC
11411 GCC=$GXX
11412 lt_save_with_gnu_ld=$with_gnu_ld
11413 lt_save_path_LD=$lt_cv_path_LD
11414 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11415   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11416 else
11417   $as_unset lt_cv_prog_gnu_ld
11418 fi
11419 if test -n "${lt_cv_path_LDCXX+set}"; then
11420   lt_cv_path_LD=$lt_cv_path_LDCXX
11421 else
11422   $as_unset lt_cv_path_LD
11423 fi
11424 test -z "${LDCXX+set}" || LD=$LDCXX
11425 CC=${CXX-"c++"}
11426 compiler=$CC
11427 compiler_CXX=$CC
11428 for cc_temp in $compiler""; do
11429   case $cc_temp in
11430     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11431     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11432     \-*) ;;
11433     *) break;;
11434   esac
11435 done
11436 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11437
11438
11439 # We don't want -fno-exception wen compiling C++ code, so set the
11440 # no_builtin_flag separately
11441 if test "$GXX" = yes; then
11442   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11443 else
11444   lt_prog_compiler_no_builtin_flag_CXX=
11445 fi
11446
11447 if test "$GXX" = yes; then
11448   # Set up default GNU C++ configuration
11449
11450
11451 # Check whether --with-gnu-ld was given.
11452 if test "${with_gnu_ld+set}" = set; then
11453   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11454 else
11455   with_gnu_ld=no
11456 fi
11457
11458 ac_prog=ld
11459 if test "$GCC" = yes; then
11460   # Check if gcc -print-prog-name=ld gives a path.
11461   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11462 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11463   case $host in
11464   *-*-mingw*)
11465     # gcc leaves a trailing carriage return which upsets mingw
11466     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11467   *)
11468     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11469   esac
11470   case $ac_prog in
11471     # Accept absolute paths.
11472     [\\/]* | ?:[\\/]*)
11473       re_direlt='/[^/][^/]*/\.\./'
11474       # Canonicalize the pathname of ld
11475       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11476       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11477         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11478       done
11479       test -z "$LD" && LD="$ac_prog"
11480       ;;
11481   "")
11482     # If it fails, then pretend we aren't using GCC.
11483     ac_prog=ld
11484     ;;
11485   *)
11486     # If it is relative, then search for the first ld in PATH.
11487     with_gnu_ld=unknown
11488     ;;
11489   esac
11490 elif test "$with_gnu_ld" = yes; then
11491   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11492 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11493 else
11494   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11495 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11496 fi
11497 if test "${lt_cv_path_LD+set}" = set; then
11498   echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500   if test -z "$LD"; then
11501   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11502   for ac_dir in $PATH; do
11503     IFS="$lt_save_ifs"
11504     test -z "$ac_dir" && ac_dir=.
11505     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11506       lt_cv_path_LD="$ac_dir/$ac_prog"
11507       # Check to see if the program is GNU ld.  I'd rather use --version,
11508       # but apparently some variants of GNU ld only accept -v.
11509       # Break only if it was the GNU/non-GNU ld that we prefer.
11510       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11511       *GNU* | *'with BFD'*)
11512         test "$with_gnu_ld" != no && break
11513         ;;
11514       *)
11515         test "$with_gnu_ld" != yes && break
11516         ;;
11517       esac
11518     fi
11519   done
11520   IFS="$lt_save_ifs"
11521 else
11522   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11523 fi
11524 fi
11525
11526 LD="$lt_cv_path_LD"
11527 if test -n "$LD"; then
11528   { echo "$as_me:$LINENO: result: $LD" >&5
11529 echo "${ECHO_T}$LD" >&6; }
11530 else
11531   { echo "$as_me:$LINENO: result: no" >&5
11532 echo "${ECHO_T}no" >&6; }
11533 fi
11534 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11535 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11536    { (exit 1); exit 1; }; }
11537 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11538 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11539 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11540   echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11543 case `$LD -v 2>&1 </dev/null` in
11544 *GNU* | *'with BFD'*)
11545   lt_cv_prog_gnu_ld=yes
11546   ;;
11547 *)
11548   lt_cv_prog_gnu_ld=no
11549   ;;
11550 esac
11551 fi
11552 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11553 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11554 with_gnu_ld=$lt_cv_prog_gnu_ld
11555
11556
11557
11558   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11559   # archiving commands below assume that GNU ld is being used.
11560   if test "$with_gnu_ld" = yes; then
11561     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11562     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'
11563
11564     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11565     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11566
11567     # If archive_cmds runs LD, not CC, wlarc should be empty
11568     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11569     #     investigate it a little bit more. (MM)
11570     wlarc='${wl}'
11571
11572     # ancient GNU ld didn't support --whole-archive et. al.
11573     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11574         grep 'no-whole-archive' > /dev/null; then
11575       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11576     else
11577       whole_archive_flag_spec_CXX=
11578     fi
11579   else
11580     with_gnu_ld=no
11581     wlarc=
11582
11583     # A generic and very simple default shared library creation
11584     # command for GNU C++ for the case where it uses the native
11585     # linker, instead of GNU ld.  If possible, this setting should
11586     # overridden to take advantage of the native linker features on
11587     # the platform it is being used on.
11588     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11589   fi
11590
11591   # Commands to make compiler produce verbose output that lists
11592   # what "hidden" libraries, object files and flags are used when
11593   # linking a shared library.
11594   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11595
11596 else
11597   GXX=no
11598   with_gnu_ld=no
11599   wlarc=
11600 fi
11601
11602 # PORTME: fill in a description of your system's C++ link characteristics
11603 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11605 ld_shlibs_CXX=yes
11606 case $host_os in
11607   aix3*)
11608     # FIXME: insert proper C++ library support
11609     ld_shlibs_CXX=no
11610     ;;
11611   aix[4-9]*)
11612     if test "$host_cpu" = ia64; then
11613       # On IA64, the linker does run time linking by default, so we don't
11614       # have to do anything special.
11615       aix_use_runtimelinking=no
11616       exp_sym_flag='-Bexport'
11617       no_entry_flag=""
11618     else
11619       aix_use_runtimelinking=no
11620
11621       # Test if we are trying to use run time linking or normal
11622       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11623       # need to do runtime linking.
11624       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11625         for ld_flag in $LDFLAGS; do
11626           case $ld_flag in
11627           *-brtl*)
11628             aix_use_runtimelinking=yes
11629             break
11630             ;;
11631           esac
11632         done
11633         ;;
11634       esac
11635
11636       exp_sym_flag='-bexport'
11637       no_entry_flag='-bnoentry'
11638     fi
11639
11640     # When large executables or shared objects are built, AIX ld can
11641     # have problems creating the table of contents.  If linking a library
11642     # or program results in "error TOC overflow" add -mminimal-toc to
11643     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11644     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11645
11646     archive_cmds_CXX=''
11647     hardcode_direct_CXX=yes
11648     hardcode_libdir_separator_CXX=':'
11649     link_all_deplibs_CXX=yes
11650
11651     if test "$GXX" = yes; then
11652       case $host_os in aix4.[012]|aix4.[012].*)
11653       # We only want to do this on AIX 4.2 and lower, the check
11654       # below for broken collect2 doesn't work under 4.3+
11655         collect2name=`${CC} -print-prog-name=collect2`
11656         if test -f "$collect2name" && \
11657            strings "$collect2name" | grep resolve_lib_name >/dev/null
11658         then
11659           # We have reworked collect2
11660           :
11661         else
11662           # We have old collect2
11663           hardcode_direct_CXX=unsupported
11664           # It fails to find uninstalled libraries when the uninstalled
11665           # path is not listed in the libpath.  Setting hardcode_minus_L
11666           # to unsupported forces relinking
11667           hardcode_minus_L_CXX=yes
11668           hardcode_libdir_flag_spec_CXX='-L$libdir'
11669           hardcode_libdir_separator_CXX=
11670         fi
11671         ;;
11672       esac
11673       shared_flag='-shared'
11674       if test "$aix_use_runtimelinking" = yes; then
11675         shared_flag="$shared_flag "'${wl}-G'
11676       fi
11677     else
11678       # not using gcc
11679       if test "$host_cpu" = ia64; then
11680         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11681         # chokes on -Wl,-G. The following line is correct:
11682         shared_flag='-G'
11683       else
11684         if test "$aix_use_runtimelinking" = yes; then
11685           shared_flag='${wl}-G'
11686         else
11687           shared_flag='${wl}-bM:SRE'
11688         fi
11689       fi
11690     fi
11691
11692     # It seems that -bexpall does not export symbols beginning with
11693     # underscore (_), so it is better to generate a list of symbols to export.
11694     always_export_symbols_CXX=yes
11695     if test "$aix_use_runtimelinking" = yes; then
11696       # Warning - without using the other runtime loading flags (-brtl),
11697       # -berok will link without error, but may produce a broken library.
11698       allow_undefined_flag_CXX='-berok'
11699       # Determine the default libpath from the value encoded in an empty executable.
11700       cat >conftest.$ac_ext <<_ACEOF
11701 /* confdefs.h.  */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h.  */
11706
11707 int
11708 main ()
11709 {
11710
11711   ;
11712   return 0;
11713 }
11714 _ACEOF
11715 rm -f conftest.$ac_objext conftest$ac_exeext
11716 if { (ac_try="$ac_link"
11717 case "(($ac_try" in
11718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719   *) ac_try_echo=$ac_try;;
11720 esac
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722   (eval "$ac_link") 2>conftest.er1
11723   ac_status=$?
11724   grep -v '^ *+' conftest.er1 >conftest.err
11725   rm -f conftest.er1
11726   cat conftest.err >&5
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } && {
11729          test -z "$ac_cxx_werror_flag" ||
11730          test ! -s conftest.err
11731        } && test -s conftest$ac_exeext &&
11732        $as_test_x conftest$ac_exeext; then
11733
11734 lt_aix_libpath_sed='
11735     /Import File Strings/,/^$/ {
11736         /^0/ {
11737             s/^0  *\(.*\)$/\1/
11738             p
11739         }
11740     }'
11741 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11742 # Check for a 64-bit object if we didn't find anything.
11743 if test -z "$aix_libpath"; then
11744   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11745 fi
11746 else
11747   echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11749
11750
11751 fi
11752
11753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11754       conftest$ac_exeext conftest.$ac_ext
11755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11756
11757       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11758
11759       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"
11760      else
11761       if test "$host_cpu" = ia64; then
11762         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11763         allow_undefined_flag_CXX="-z nodefs"
11764         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"
11765       else
11766         # Determine the default libpath from the value encoded in an empty executable.
11767         cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h.  */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h.  */
11773
11774 int
11775 main ()
11776 {
11777
11778   ;
11779   return 0;
11780 }
11781 _ACEOF
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (ac_try="$ac_link"
11784 case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789   (eval "$ac_link") 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } && {
11796          test -z "$ac_cxx_werror_flag" ||
11797          test ! -s conftest.err
11798        } && test -s conftest$ac_exeext &&
11799        $as_test_x conftest$ac_exeext; then
11800
11801 lt_aix_libpath_sed='
11802     /Import File Strings/,/^$/ {
11803         /^0/ {
11804             s/^0  *\(.*\)$/\1/
11805             p
11806         }
11807     }'
11808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11809 # Check for a 64-bit object if we didn't find anything.
11810 if test -z "$aix_libpath"; then
11811   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11812 fi
11813 else
11814   echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11816
11817
11818 fi
11819
11820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11821       conftest$ac_exeext conftest.$ac_ext
11822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11823
11824         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11825         # Warning - without using the other run time loading flags,
11826         # -berok will link without error, but may produce a broken library.
11827         no_undefined_flag_CXX=' ${wl}-bernotok'
11828         allow_undefined_flag_CXX=' ${wl}-berok'
11829         # Exported symbols can be pulled into shared objects from archives
11830         whole_archive_flag_spec_CXX='$convenience'
11831         archive_cmds_need_lc_CXX=yes
11832         # This is similar to how AIX traditionally builds its shared libraries.
11833         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'
11834       fi
11835     fi
11836     ;;
11837
11838   beos*)
11839     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11840       allow_undefined_flag_CXX=unsupported
11841       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11842       # support --undefined.  This deserves some investigation.  FIXME
11843       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11844     else
11845       ld_shlibs_CXX=no
11846     fi
11847     ;;
11848
11849   chorus*)
11850     case $cc_basename in
11851       *)
11852         # FIXME: insert proper C++ library support
11853         ld_shlibs_CXX=no
11854         ;;
11855     esac
11856     ;;
11857
11858   cygwin* | mingw* | pw32*)
11859     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11860     # as there is no search path for DLLs.
11861     hardcode_libdir_flag_spec_CXX='-L$libdir'
11862     allow_undefined_flag_CXX=unsupported
11863     always_export_symbols_CXX=no
11864     enable_shared_with_static_runtimes_CXX=yes
11865
11866     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11867       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'
11868       # If the export-symbols file already is a .def file (1st line
11869       # is EXPORTS), use it as is; otherwise, prepend...
11870       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11871         cp $export_symbols $output_objdir/$soname.def;
11872       else
11873         echo EXPORTS > $output_objdir/$soname.def;
11874         cat $export_symbols >> $output_objdir/$soname.def;
11875       fi~
11876       $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'
11877     else
11878       ld_shlibs_CXX=no
11879     fi
11880   ;;
11881       darwin* | rhapsody*)
11882       archive_cmds_need_lc_CXX=no
11883       hardcode_direct_CXX=no
11884       hardcode_automatic_CXX=yes
11885       hardcode_shlibpath_var_CXX=unsupported
11886       whole_archive_flag_spec_CXX=''
11887       link_all_deplibs_CXX=yes
11888       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11889       if test "$GXX" = yes ; then
11890       output_verbose_link_cmd='echo'
11891       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}"
11892       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11893       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}"
11894       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}"
11895       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11896         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}"
11897         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}"
11898       fi
11899       else
11900       case $cc_basename in
11901         xlc*)
11902          output_verbose_link_cmd='echo'
11903           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'
11904           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11905           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11906           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}'
11907           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}'
11908           ;;
11909        *)
11910          ld_shlibs_CXX=no
11911           ;;
11912       esac
11913       fi
11914         ;;
11915
11916   dgux*)
11917     case $cc_basename in
11918       ec++*)
11919         # FIXME: insert proper C++ library support
11920         ld_shlibs_CXX=no
11921         ;;
11922       ghcx*)
11923         # Green Hills C++ Compiler
11924         # FIXME: insert proper C++ library support
11925         ld_shlibs_CXX=no
11926         ;;
11927       *)
11928         # FIXME: insert proper C++ library support
11929         ld_shlibs_CXX=no
11930         ;;
11931     esac
11932     ;;
11933   freebsd[12]*)
11934     # C++ shared libraries reported to be fairly broken before switch to ELF
11935     ld_shlibs_CXX=no
11936     ;;
11937   freebsd-elf*)
11938     archive_cmds_need_lc_CXX=no
11939     ;;
11940   freebsd* | dragonfly*)
11941     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11942     # conventions
11943     ld_shlibs_CXX=yes
11944     ;;
11945   gnu*)
11946     ;;
11947   hpux9*)
11948     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11949     hardcode_libdir_separator_CXX=:
11950     export_dynamic_flag_spec_CXX='${wl}-E'
11951     hardcode_direct_CXX=yes
11952     hardcode_minus_L_CXX=yes # Not in the search PATH,
11953                                 # but as the default
11954                                 # location of the library.
11955
11956     case $cc_basename in
11957     CC*)
11958       # FIXME: insert proper C++ library support
11959       ld_shlibs_CXX=no
11960       ;;
11961     aCC*)
11962       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'
11963       # Commands to make compiler produce verbose output that lists
11964       # what "hidden" libraries, object files and flags are used when
11965       # linking a shared library.
11966       #
11967       # There doesn't appear to be a way to prevent this compiler from
11968       # explicitly linking system object files so we need to strip them
11969       # from the output so that they don't get included in the library
11970       # dependencies.
11971       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'
11972       ;;
11973     *)
11974       if test "$GXX" = yes; then
11975         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'
11976       else
11977         # FIXME: insert proper C++ library support
11978         ld_shlibs_CXX=no
11979       fi
11980       ;;
11981     esac
11982     ;;
11983   hpux10*|hpux11*)
11984     if test $with_gnu_ld = no; then
11985       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11986       hardcode_libdir_separator_CXX=:
11987
11988       case $host_cpu in
11989       hppa*64*|ia64*) ;;
11990       *)
11991         export_dynamic_flag_spec_CXX='${wl}-E'
11992         ;;
11993       esac
11994     fi
11995     case $host_cpu in
11996     hppa*64*|ia64*)
11997       hardcode_direct_CXX=no
11998       hardcode_shlibpath_var_CXX=no
11999       ;;
12000     *)
12001       hardcode_direct_CXX=yes
12002       hardcode_minus_L_CXX=yes # Not in the search PATH,
12003                                               # but as the default
12004                                               # location of the library.
12005       ;;
12006     esac
12007
12008     case $cc_basename in
12009       CC*)
12010         # FIXME: insert proper C++ library support
12011         ld_shlibs_CXX=no
12012         ;;
12013       aCC*)
12014         case $host_cpu in
12015         hppa*64*)
12016           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12017           ;;
12018         ia64*)
12019           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12020           ;;
12021         *)
12022           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12023           ;;
12024         esac
12025         # Commands to make compiler produce verbose output that lists
12026         # what "hidden" libraries, object files and flags are used when
12027         # linking a shared library.
12028         #
12029         # There doesn't appear to be a way to prevent this compiler from
12030         # explicitly linking system object files so we need to strip them
12031         # from the output so that they don't get included in the library
12032         # dependencies.
12033         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'
12034         ;;
12035       *)
12036         if test "$GXX" = yes; then
12037           if test $with_gnu_ld = no; then
12038             case $host_cpu in
12039             hppa*64*)
12040               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12041               ;;
12042             ia64*)
12043               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12044               ;;
12045             *)
12046               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'
12047               ;;
12048             esac
12049           fi
12050         else
12051           # FIXME: insert proper C++ library support
12052           ld_shlibs_CXX=no
12053         fi
12054         ;;
12055     esac
12056     ;;
12057   interix[3-9]*)
12058     hardcode_direct_CXX=no
12059     hardcode_shlibpath_var_CXX=no
12060     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12061     export_dynamic_flag_spec_CXX='${wl}-E'
12062     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12063     # Instead, shared libraries are loaded at an image base (0x10000000 by
12064     # default) and relocated if they conflict, which is a slow very memory
12065     # consuming and fragmenting process.  To avoid this, we pick a random,
12066     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12067     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12068     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'
12069     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'
12070     ;;
12071   irix5* | irix6*)
12072     case $cc_basename in
12073       CC*)
12074         # SGI C++
12075         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'
12076
12077         # Archives containing C++ object files must be created using
12078         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12079         # necessary to make sure instantiated templates are included
12080         # in the archive.
12081         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12082         ;;
12083       *)
12084         if test "$GXX" = yes; then
12085           if test "$with_gnu_ld" = no; then
12086             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'
12087           else
12088             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'
12089           fi
12090         fi
12091         link_all_deplibs_CXX=yes
12092         ;;
12093     esac
12094     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12095     hardcode_libdir_separator_CXX=:
12096     ;;
12097   linux* | k*bsd*-gnu)
12098     case $cc_basename in
12099       KCC*)
12100         # Kuck and Associates, Inc. (KAI) C++ Compiler
12101
12102         # KCC will only create a shared library if the output file
12103         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12104         # to its proper name (with version) after linking.
12105         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'
12106         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'
12107         # Commands to make compiler produce verbose output that lists
12108         # what "hidden" libraries, object files and flags are used when
12109         # linking a shared library.
12110         #
12111         # There doesn't appear to be a way to prevent this compiler from
12112         # explicitly linking system object files so we need to strip them
12113         # from the output so that they don't get included in the library
12114         # dependencies.
12115         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'
12116
12117         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12118         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12119
12120         # Archives containing C++ object files must be created using
12121         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12122         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12123         ;;
12124       icpc*)
12125         # Intel C++
12126         with_gnu_ld=yes
12127         # version 8.0 and above of icpc choke on multiply defined symbols
12128         # if we add $predep_objects and $postdep_objects, however 7.1 and
12129         # earlier do not add the objects themselves.
12130         case `$CC -V 2>&1` in
12131         *"Version 7."*)
12132           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12133           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'
12134           ;;
12135         *)  # Version 8.0 or newer
12136           tmp_idyn=
12137           case $host_cpu in
12138             ia64*) tmp_idyn=' -i_dynamic';;
12139           esac
12140           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12141           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'
12142           ;;
12143         esac
12144         archive_cmds_need_lc_CXX=no
12145         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12146         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12147         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12148         ;;
12149       pgCC* | pgcpp*)
12150         # Portland Group C++ compiler
12151         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12152         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'
12153
12154         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12155         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12156         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'
12157         ;;
12158       cxx*)
12159         # Compaq C++
12160         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12161         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'
12162
12163         runpath_var=LD_RUN_PATH
12164         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12165         hardcode_libdir_separator_CXX=:
12166
12167         # Commands to make compiler produce verbose output that lists
12168         # what "hidden" libraries, object files and flags are used when
12169         # linking a shared library.
12170         #
12171         # There doesn't appear to be a way to prevent this compiler from
12172         # explicitly linking system object files so we need to strip them
12173         # from the output so that they don't get included in the library
12174         # dependencies.
12175         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'
12176         ;;
12177       *)
12178         case `$CC -V 2>&1 | sed 5q` in
12179         *Sun\ C*)
12180           # Sun C++ 5.9
12181           no_undefined_flag_CXX=' -zdefs'
12182           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12183           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'
12184           hardcode_libdir_flag_spec_CXX='-R$libdir'
12185           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'
12186
12187           # Not sure whether something based on
12188           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12189           # would be better.
12190           output_verbose_link_cmd='echo'
12191
12192           # Archives containing C++ object files must be created using
12193           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12194           # necessary to make sure instantiated templates are included
12195           # in the archive.
12196           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12197           ;;
12198         esac
12199         ;;
12200     esac
12201     ;;
12202   lynxos*)
12203     # FIXME: insert proper C++ library support
12204     ld_shlibs_CXX=no
12205     ;;
12206   m88k*)
12207     # FIXME: insert proper C++ library support
12208     ld_shlibs_CXX=no
12209     ;;
12210   mvs*)
12211     case $cc_basename in
12212       cxx*)
12213         # FIXME: insert proper C++ library support
12214         ld_shlibs_CXX=no
12215         ;;
12216       *)
12217         # FIXME: insert proper C++ library support
12218         ld_shlibs_CXX=no
12219         ;;
12220     esac
12221     ;;
12222   netbsd* | netbsdelf*-gnu)
12223     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12224       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12225       wlarc=
12226       hardcode_libdir_flag_spec_CXX='-R$libdir'
12227       hardcode_direct_CXX=yes
12228       hardcode_shlibpath_var_CXX=no
12229     fi
12230     # Workaround some broken pre-1.5 toolchains
12231     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12232     ;;
12233   openbsd2*)
12234     # C++ shared libraries are fairly broken
12235     ld_shlibs_CXX=no
12236     ;;
12237   openbsd*)
12238     if test -f /usr/libexec/ld.so; then
12239       hardcode_direct_CXX=yes
12240       hardcode_shlibpath_var_CXX=no
12241       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12242       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12243       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12244         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12245         export_dynamic_flag_spec_CXX='${wl}-E'
12246         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12247       fi
12248       output_verbose_link_cmd='echo'
12249     else
12250       ld_shlibs_CXX=no
12251     fi
12252     ;;
12253   osf3*)
12254     case $cc_basename in
12255       KCC*)
12256         # Kuck and Associates, Inc. (KAI) C++ Compiler
12257
12258         # KCC will only create a shared library if the output file
12259         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12260         # to its proper name (with version) after linking.
12261         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'
12262
12263         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12264         hardcode_libdir_separator_CXX=:
12265
12266         # Archives containing C++ object files must be created using
12267         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12268         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12269
12270         ;;
12271       RCC*)
12272         # Rational C++ 2.4.1
12273         # FIXME: insert proper C++ library support
12274         ld_shlibs_CXX=no
12275         ;;
12276       cxx*)
12277         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12278         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'
12279
12280         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12281         hardcode_libdir_separator_CXX=:
12282
12283         # Commands to make compiler produce verbose output that lists
12284         # what "hidden" libraries, object files and flags are used when
12285         # linking a shared library.
12286         #
12287         # There doesn't appear to be a way to prevent this compiler from
12288         # explicitly linking system object files so we need to strip them
12289         # from the output so that they don't get included in the library
12290         # dependencies.
12291         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'
12292         ;;
12293       *)
12294         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12295           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12296           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'
12297
12298           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12299           hardcode_libdir_separator_CXX=:
12300
12301           # Commands to make compiler produce verbose output that lists
12302           # what "hidden" libraries, object files and flags are used when
12303           # linking a shared library.
12304           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12305
12306         else
12307           # FIXME: insert proper C++ library support
12308           ld_shlibs_CXX=no
12309         fi
12310         ;;
12311     esac
12312     ;;
12313   osf4* | osf5*)
12314     case $cc_basename in
12315       KCC*)
12316         # Kuck and Associates, Inc. (KAI) C++ Compiler
12317
12318         # KCC will only create a shared library if the output file
12319         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12320         # to its proper name (with version) after linking.
12321         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'
12322
12323         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12324         hardcode_libdir_separator_CXX=:
12325
12326         # Archives containing C++ object files must be created using
12327         # the KAI C++ compiler.
12328         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12329         ;;
12330       RCC*)
12331         # Rational C++ 2.4.1
12332         # FIXME: insert proper C++ library support
12333         ld_shlibs_CXX=no
12334         ;;
12335       cxx*)
12336         allow_undefined_flag_CXX=' -expect_unresolved \*'
12337         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'
12338         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12339           echo "-hidden">> $lib.exp~
12340           $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~
12341           $rm $lib.exp'
12342
12343         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12344         hardcode_libdir_separator_CXX=:
12345
12346         # Commands to make compiler produce verbose output that lists
12347         # what "hidden" libraries, object files and flags are used when
12348         # linking a shared library.
12349         #
12350         # There doesn't appear to be a way to prevent this compiler from
12351         # explicitly linking system object files so we need to strip them
12352         # from the output so that they don't get included in the library
12353         # dependencies.
12354         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'
12355         ;;
12356       *)
12357         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12358           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12359          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'
12360
12361           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12362           hardcode_libdir_separator_CXX=:
12363
12364           # Commands to make compiler produce verbose output that lists
12365           # what "hidden" libraries, object files and flags are used when
12366           # linking a shared library.
12367           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12368
12369         else
12370           # FIXME: insert proper C++ library support
12371           ld_shlibs_CXX=no
12372         fi
12373         ;;
12374     esac
12375     ;;
12376   psos*)
12377     # FIXME: insert proper C++ library support
12378     ld_shlibs_CXX=no
12379     ;;
12380   sunos4*)
12381     case $cc_basename in
12382       CC*)
12383         # Sun C++ 4.x
12384         # FIXME: insert proper C++ library support
12385         ld_shlibs_CXX=no
12386         ;;
12387       lcc*)
12388         # Lucid
12389         # FIXME: insert proper C++ library support
12390         ld_shlibs_CXX=no
12391         ;;
12392       *)
12393         # FIXME: insert proper C++ library support
12394         ld_shlibs_CXX=no
12395         ;;
12396     esac
12397     ;;
12398   solaris*)
12399     case $cc_basename in
12400       CC*)
12401         # Sun C++ 4.2, 5.x and Centerline C++
12402         archive_cmds_need_lc_CXX=yes
12403         no_undefined_flag_CXX=' -zdefs'
12404         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12405         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12406         $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'
12407
12408         hardcode_libdir_flag_spec_CXX='-R$libdir'
12409         hardcode_shlibpath_var_CXX=no
12410         case $host_os in
12411           solaris2.[0-5] | solaris2.[0-5].*) ;;
12412           *)
12413             # The compiler driver will combine and reorder linker options,
12414             # but understands `-z linker_flag'.
12415             # Supported since Solaris 2.6 (maybe 2.5.1?)
12416             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12417             ;;
12418         esac
12419         link_all_deplibs_CXX=yes
12420
12421         output_verbose_link_cmd='echo'
12422
12423         # Archives containing C++ object files must be created using
12424         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12425         # necessary to make sure instantiated templates are included
12426         # in the archive.
12427         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12428         ;;
12429       gcx*)
12430         # Green Hills C++ Compiler
12431         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12432
12433         # The C++ compiler must be used to create the archive.
12434         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12435         ;;
12436       *)
12437         # GNU C++ compiler with Solaris linker
12438         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12439           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12440           if $CC --version | grep -v '^2\.7' > /dev/null; then
12441             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12442             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12443                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12444
12445             # Commands to make compiler produce verbose output that lists
12446             # what "hidden" libraries, object files and flags are used when
12447             # linking a shared library.
12448             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12449           else
12450             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12451             # platform.
12452             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12453             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12454                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12455
12456             # Commands to make compiler produce verbose output that lists
12457             # what "hidden" libraries, object files and flags are used when
12458             # linking a shared library.
12459             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12460           fi
12461
12462           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12463           case $host_os in
12464           solaris2.[0-5] | solaris2.[0-5].*) ;;
12465           *)
12466             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12467             ;;
12468           esac
12469         fi
12470         ;;
12471     esac
12472     ;;
12473   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12474     no_undefined_flag_CXX='${wl}-z,text'
12475     archive_cmds_need_lc_CXX=no
12476     hardcode_shlibpath_var_CXX=no
12477     runpath_var='LD_RUN_PATH'
12478
12479     case $cc_basename in
12480       CC*)
12481         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12482         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12483         ;;
12484       *)
12485         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12486         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12487         ;;
12488     esac
12489     ;;
12490   sysv5* | sco3.2v5* | sco5v6*)
12491     # Note: We can NOT use -z defs as we might desire, because we do not
12492     # link with -lc, and that would cause any symbols used from libc to
12493     # always be unresolved, which means just about no library would
12494     # ever link correctly.  If we're not using GNU ld we use -z text
12495     # though, which does catch some bad symbols but isn't as heavy-handed
12496     # as -z defs.
12497     # For security reasons, it is highly recommended that you always
12498     # use absolute paths for naming shared libraries, and exclude the
12499     # DT_RUNPATH tag from executables and libraries.  But doing so
12500     # requires that you compile everything twice, which is a pain.
12501     # So that behaviour is only enabled if SCOABSPATH is set to a
12502     # non-empty value in the environment.  Most likely only useful for
12503     # creating official distributions of packages.
12504     # This is a hack until libtool officially supports absolute path
12505     # names for shared libraries.
12506     no_undefined_flag_CXX='${wl}-z,text'
12507     allow_undefined_flag_CXX='${wl}-z,nodefs'
12508     archive_cmds_need_lc_CXX=no
12509     hardcode_shlibpath_var_CXX=no
12510     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12511     hardcode_libdir_separator_CXX=':'
12512     link_all_deplibs_CXX=yes
12513     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12514     runpath_var='LD_RUN_PATH'
12515
12516     case $cc_basename in
12517       CC*)
12518         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12519         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12520         ;;
12521       *)
12522         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12523         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12524         ;;
12525     esac
12526     ;;
12527   tandem*)
12528     case $cc_basename in
12529       NCC*)
12530         # NonStop-UX NCC 3.20
12531         # FIXME: insert proper C++ library support
12532         ld_shlibs_CXX=no
12533         ;;
12534       *)
12535         # FIXME: insert proper C++ library support
12536         ld_shlibs_CXX=no
12537         ;;
12538     esac
12539     ;;
12540   vxworks*)
12541     # FIXME: insert proper C++ library support
12542     ld_shlibs_CXX=no
12543     ;;
12544   *)
12545     # FIXME: insert proper C++ library support
12546     ld_shlibs_CXX=no
12547     ;;
12548 esac
12549 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12550 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12551 test "$ld_shlibs_CXX" = no && can_build_shared=no
12552
12553 GCC_CXX="$GXX"
12554 LD_CXX="$LD"
12555
12556 cat > conftest.$ac_ext <<EOF
12557 class Foo
12558 {
12559 public:
12560   Foo (void) { a = 0; }
12561 private:
12562   int a;
12563 };
12564 EOF
12565
12566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567   (eval $ac_compile) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); }; then
12571   # Parse the compiler output and extract the necessary
12572   # objects, libraries and library flags.
12573
12574   # Sentinel used to keep track of whether or not we are before
12575   # the conftest object file.
12576   pre_test_object_deps_done=no
12577
12578   # The `*' in the case matches for architectures that use `case' in
12579   # $output_verbose_cmd can trigger glob expansion during the loop
12580   # eval without this substitution.
12581   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12582
12583   for p in `eval $output_verbose_link_cmd`; do
12584     case $p in
12585
12586     -L* | -R* | -l*)
12587        # Some compilers place space between "-{L,R}" and the path.
12588        # Remove the space.
12589        if test $p = "-L" \
12590           || test $p = "-R"; then
12591          prev=$p
12592          continue
12593        else
12594          prev=
12595        fi
12596
12597        if test "$pre_test_object_deps_done" = no; then
12598          case $p in
12599          -L* | -R*)
12600            # Internal compiler library paths should come after those
12601            # provided the user.  The postdeps already come after the
12602            # user supplied libs so there is no need to process them.
12603            if test -z "$compiler_lib_search_path_CXX"; then
12604              compiler_lib_search_path_CXX="${prev}${p}"
12605            else
12606              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12607            fi
12608            ;;
12609          # The "-l" case would never come before the object being
12610          # linked, so don't bother handling this case.
12611          esac
12612        else
12613          if test -z "$postdeps_CXX"; then
12614            postdeps_CXX="${prev}${p}"
12615          else
12616            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12617          fi
12618        fi
12619        ;;
12620
12621     *.$objext)
12622        # This assumes that the test object file only shows up
12623        # once in the compiler output.
12624        if test "$p" = "conftest.$objext"; then
12625          pre_test_object_deps_done=yes
12626          continue
12627        fi
12628
12629        if test "$pre_test_object_deps_done" = no; then
12630          if test -z "$predep_objects_CXX"; then
12631            predep_objects_CXX="$p"
12632          else
12633            predep_objects_CXX="$predep_objects_CXX $p"
12634          fi
12635        else
12636          if test -z "$postdep_objects_CXX"; then
12637            postdep_objects_CXX="$p"
12638          else
12639            postdep_objects_CXX="$postdep_objects_CXX $p"
12640          fi
12641        fi
12642        ;;
12643
12644     *) ;; # Ignore the rest.
12645
12646     esac
12647   done
12648
12649   # Clean up.
12650   rm -f a.out a.exe
12651 else
12652   echo "libtool.m4: error: problem compiling CXX test program"
12653 fi
12654
12655 $rm -f confest.$objext
12656
12657 compiler_lib_search_dirs_CXX=
12658 if test -n "$compiler_lib_search_path_CXX"; then
12659   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12660 fi
12661
12662 # PORTME: override above test on systems where it is broken
12663 case $host_os in
12664 interix[3-9]*)
12665   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12666   # hack all around it, let's just trust "g++" to DTRT.
12667   predep_objects_CXX=
12668   postdep_objects_CXX=
12669   postdeps_CXX=
12670   ;;
12671
12672 linux*)
12673   case `$CC -V 2>&1 | sed 5q` in
12674   *Sun\ C*)
12675     # Sun C++ 5.9
12676     #
12677     # The more standards-conforming stlport4 library is
12678     # incompatible with the Cstd library. Avoid specifying
12679     # it if it's in CXXFLAGS. Ignore libCrun as
12680     # -library=stlport4 depends on it.
12681     case " $CXX $CXXFLAGS " in
12682     *" -library=stlport4 "*)
12683       solaris_use_stlport4=yes
12684       ;;
12685     esac
12686     if test "$solaris_use_stlport4" != yes; then
12687       postdeps_CXX='-library=Cstd -library=Crun'
12688     fi
12689     ;;
12690   esac
12691   ;;
12692
12693 solaris*)
12694   case $cc_basename in
12695   CC*)
12696     # The more standards-conforming stlport4 library is
12697     # incompatible with the Cstd library. Avoid specifying
12698     # it if it's in CXXFLAGS. Ignore libCrun as
12699     # -library=stlport4 depends on it.
12700     case " $CXX $CXXFLAGS " in
12701     *" -library=stlport4 "*)
12702       solaris_use_stlport4=yes
12703       ;;
12704     esac
12705
12706     # Adding this requires a known-good setup of shared libraries for
12707     # Sun compiler versions before 5.6, else PIC objects from an old
12708     # archive will be linked into the output, leading to subtle bugs.
12709     if test "$solaris_use_stlport4" != yes; then
12710       postdeps_CXX='-library=Cstd -library=Crun'
12711     fi
12712     ;;
12713   esac
12714   ;;
12715 esac
12716
12717 case " $postdeps_CXX " in
12718 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12719 esac
12720
12721 lt_prog_compiler_wl_CXX=
12722 lt_prog_compiler_pic_CXX=
12723 lt_prog_compiler_static_CXX=
12724
12725 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12726 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12727
12728   # C++ specific cases for pic, static, wl, etc.
12729   if test "$GXX" = yes; then
12730     lt_prog_compiler_wl_CXX='-Wl,'
12731     lt_prog_compiler_static_CXX='-static'
12732
12733     case $host_os in
12734     aix*)
12735       # All AIX code is PIC.
12736       if test "$host_cpu" = ia64; then
12737         # AIX 5 now supports IA64 processor
12738         lt_prog_compiler_static_CXX='-Bstatic'
12739       fi
12740       ;;
12741     amigaos*)
12742       # FIXME: we need at least 68020 code to build shared libraries, but
12743       # adding the `-m68020' flag to GCC prevents building anything better,
12744       # like `-m68040'.
12745       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12746       ;;
12747     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12748       # PIC is the default for these OSes.
12749       ;;
12750     mingw* | cygwin* | os2* | pw32*)
12751       # This hack is so that the source file can tell whether it is being
12752       # built for inclusion in a dll (and should export symbols for example).
12753       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12754       # (--disable-auto-import) libraries
12755       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12756       ;;
12757     darwin* | rhapsody*)
12758       # PIC is the default on this platform
12759       # Common symbols not allowed in MH_DYLIB files
12760       lt_prog_compiler_pic_CXX='-fno-common'
12761       ;;
12762     *djgpp*)
12763       # DJGPP does not support shared libraries at all
12764       lt_prog_compiler_pic_CXX=
12765       ;;
12766     interix[3-9]*)
12767       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12768       # Instead, we relocate shared libraries at runtime.
12769       ;;
12770     sysv4*MP*)
12771       if test -d /usr/nec; then
12772         lt_prog_compiler_pic_CXX=-Kconform_pic
12773       fi
12774       ;;
12775     hpux*)
12776       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12777       # not for PA HP-UX.
12778       case $host_cpu in
12779       hppa*64*|ia64*)
12780         ;;
12781       *)
12782         lt_prog_compiler_pic_CXX='-fPIC'
12783         ;;
12784       esac
12785       ;;
12786     *)
12787       lt_prog_compiler_pic_CXX='-fPIC'
12788       ;;
12789     esac
12790   else
12791     case $host_os in
12792       aix[4-9]*)
12793         # All AIX code is PIC.
12794         if test "$host_cpu" = ia64; then
12795           # AIX 5 now supports IA64 processor
12796           lt_prog_compiler_static_CXX='-Bstatic'
12797         else
12798           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12799         fi
12800         ;;
12801       chorus*)
12802         case $cc_basename in
12803         cxch68*)
12804           # Green Hills C++ Compiler
12805           # _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"
12806           ;;
12807         esac
12808         ;;
12809        darwin*)
12810          # PIC is the default on this platform
12811          # Common symbols not allowed in MH_DYLIB files
12812          case $cc_basename in
12813            xlc*)
12814            lt_prog_compiler_pic_CXX='-qnocommon'
12815            lt_prog_compiler_wl_CXX='-Wl,'
12816            ;;
12817          esac
12818        ;;
12819       dgux*)
12820         case $cc_basename in
12821           ec++*)
12822             lt_prog_compiler_pic_CXX='-KPIC'
12823             ;;
12824           ghcx*)
12825             # Green Hills C++ Compiler
12826             lt_prog_compiler_pic_CXX='-pic'
12827             ;;
12828           *)
12829             ;;
12830         esac
12831         ;;
12832       freebsd* | dragonfly*)
12833         # FreeBSD uses GNU C++
12834         ;;
12835       hpux9* | hpux10* | hpux11*)
12836         case $cc_basename in
12837           CC*)
12838             lt_prog_compiler_wl_CXX='-Wl,'
12839             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12840             if test "$host_cpu" != ia64; then
12841               lt_prog_compiler_pic_CXX='+Z'
12842             fi
12843             ;;
12844           aCC*)
12845             lt_prog_compiler_wl_CXX='-Wl,'
12846             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12847             case $host_cpu in
12848             hppa*64*|ia64*)
12849               # +Z the default
12850               ;;
12851             *)
12852               lt_prog_compiler_pic_CXX='+Z'
12853               ;;
12854             esac
12855             ;;
12856           *)
12857             ;;
12858         esac
12859         ;;
12860       interix*)
12861         # This is c89, which is MS Visual C++ (no shared libs)
12862         # Anyone wants to do a port?
12863         ;;
12864       irix5* | irix6* | nonstopux*)
12865         case $cc_basename in
12866           CC*)
12867             lt_prog_compiler_wl_CXX='-Wl,'
12868             lt_prog_compiler_static_CXX='-non_shared'
12869             # CC pic flag -KPIC is the default.
12870             ;;
12871           *)
12872             ;;
12873         esac
12874         ;;
12875       linux* | k*bsd*-gnu)
12876         case $cc_basename in
12877           KCC*)
12878             # KAI C++ Compiler
12879             lt_prog_compiler_wl_CXX='--backend -Wl,'
12880             lt_prog_compiler_pic_CXX='-fPIC'
12881             ;;
12882           icpc* | ecpc*)
12883             # Intel C++
12884             lt_prog_compiler_wl_CXX='-Wl,'
12885             lt_prog_compiler_pic_CXX='-KPIC'
12886             lt_prog_compiler_static_CXX='-static'
12887             ;;
12888           pgCC* | pgcpp*)
12889             # Portland Group C++ compiler.
12890             lt_prog_compiler_wl_CXX='-Wl,'
12891             lt_prog_compiler_pic_CXX='-fpic'
12892             lt_prog_compiler_static_CXX='-Bstatic'
12893             ;;
12894           cxx*)
12895             # Compaq C++
12896             # Make sure the PIC flag is empty.  It appears that all Alpha
12897             # Linux and Compaq Tru64 Unix objects are PIC.
12898             lt_prog_compiler_pic_CXX=
12899             lt_prog_compiler_static_CXX='-non_shared'
12900             ;;
12901           *)
12902             case `$CC -V 2>&1 | sed 5q` in
12903             *Sun\ C*)
12904               # Sun C++ 5.9
12905               lt_prog_compiler_pic_CXX='-KPIC'
12906               lt_prog_compiler_static_CXX='-Bstatic'
12907               lt_prog_compiler_wl_CXX='-Qoption ld '
12908               ;;
12909             esac
12910             ;;
12911         esac
12912         ;;
12913       lynxos*)
12914         ;;
12915       m88k*)
12916         ;;
12917       mvs*)
12918         case $cc_basename in
12919           cxx*)
12920             lt_prog_compiler_pic_CXX='-W c,exportall'
12921             ;;
12922           *)
12923             ;;
12924         esac
12925         ;;
12926       netbsd* | netbsdelf*-gnu)
12927         ;;
12928       osf3* | osf4* | osf5*)
12929         case $cc_basename in
12930           KCC*)
12931             lt_prog_compiler_wl_CXX='--backend -Wl,'
12932             ;;
12933           RCC*)
12934             # Rational C++ 2.4.1
12935             lt_prog_compiler_pic_CXX='-pic'
12936             ;;
12937           cxx*)
12938             # Digital/Compaq C++
12939             lt_prog_compiler_wl_CXX='-Wl,'
12940             # Make sure the PIC flag is empty.  It appears that all Alpha
12941             # Linux and Compaq Tru64 Unix objects are PIC.
12942             lt_prog_compiler_pic_CXX=
12943             lt_prog_compiler_static_CXX='-non_shared'
12944             ;;
12945           *)
12946             ;;
12947         esac
12948         ;;
12949       psos*)
12950         ;;
12951       solaris*)
12952         case $cc_basename in
12953           CC*)
12954             # Sun C++ 4.2, 5.x and Centerline C++
12955             lt_prog_compiler_pic_CXX='-KPIC'
12956             lt_prog_compiler_static_CXX='-Bstatic'
12957             lt_prog_compiler_wl_CXX='-Qoption ld '
12958             ;;
12959           gcx*)
12960             # Green Hills C++ Compiler
12961             lt_prog_compiler_pic_CXX='-PIC'
12962             ;;
12963           *)
12964             ;;
12965         esac
12966         ;;
12967       sunos4*)
12968         case $cc_basename in
12969           CC*)
12970             # Sun C++ 4.x
12971             lt_prog_compiler_pic_CXX='-pic'
12972             lt_prog_compiler_static_CXX='-Bstatic'
12973             ;;
12974           lcc*)
12975             # Lucid
12976             lt_prog_compiler_pic_CXX='-pic'
12977             ;;
12978           *)
12979             ;;
12980         esac
12981         ;;
12982       tandem*)
12983         case $cc_basename in
12984           NCC*)
12985             # NonStop-UX NCC 3.20
12986             lt_prog_compiler_pic_CXX='-KPIC'
12987             ;;
12988           *)
12989             ;;
12990         esac
12991         ;;
12992       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12993         case $cc_basename in
12994           CC*)
12995             lt_prog_compiler_wl_CXX='-Wl,'
12996             lt_prog_compiler_pic_CXX='-KPIC'
12997             lt_prog_compiler_static_CXX='-Bstatic'
12998             ;;
12999         esac
13000         ;;
13001       vxworks*)
13002         ;;
13003       *)
13004         lt_prog_compiler_can_build_shared_CXX=no
13005         ;;
13006     esac
13007   fi
13008
13009 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13010 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13011
13012 #
13013 # Check to make sure the PIC flag actually works.
13014 #
13015 if test -n "$lt_prog_compiler_pic_CXX"; then
13016
13017 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13018 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13019 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   lt_cv_prog_compiler_pic_works_CXX=no
13023   ac_outfile=conftest.$ac_objext
13024    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13025    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13026    # Insert the option either (1) after the last *FLAGS variable, or
13027    # (2) before a word containing "conftest.", or (3) at the end.
13028    # Note that $ac_compile itself does not contain backslashes and begins
13029    # with a dollar sign (not a hyphen), so the echo should work correctly.
13030    # The option is referenced via a variable to avoid confusing sed.
13031    lt_compile=`echo "$ac_compile" | $SED \
13032    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13034    -e 's:$: $lt_compiler_flag:'`
13035    (eval echo "\"\$as_me:13035: $lt_compile\"" >&5)
13036    (eval "$lt_compile" 2>conftest.err)
13037    ac_status=$?
13038    cat conftest.err >&5
13039    echo "$as_me:13039: \$? = $ac_status" >&5
13040    if (exit $ac_status) && test -s "$ac_outfile"; then
13041      # The compiler can only warn and ignore the option if not recognized
13042      # So say no if there are warnings other than the usual output.
13043      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13044      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13045      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13046        lt_cv_prog_compiler_pic_works_CXX=yes
13047      fi
13048    fi
13049    $rm conftest*
13050
13051 fi
13052 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13053 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13054
13055 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13056     case $lt_prog_compiler_pic_CXX in
13057      "" | " "*) ;;
13058      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13059      esac
13060 else
13061     lt_prog_compiler_pic_CXX=
13062      lt_prog_compiler_can_build_shared_CXX=no
13063 fi
13064
13065 fi
13066 case $host_os in
13067   # For platforms which do not support PIC, -DPIC is meaningless:
13068   *djgpp*)
13069     lt_prog_compiler_pic_CXX=
13070     ;;
13071   *)
13072     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13073     ;;
13074 esac
13075
13076 #
13077 # Check to make sure the static flag actually works.
13078 #
13079 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13080 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13081 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13082 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13083   echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085   lt_cv_prog_compiler_static_works_CXX=no
13086    save_LDFLAGS="$LDFLAGS"
13087    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13088    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13089    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13090      # The linker can only warn and ignore the option if not recognized
13091      # So say no if there are warnings
13092      if test -s conftest.err; then
13093        # Append any errors to the config.log.
13094        cat conftest.err 1>&5
13095        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13096        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13097        if diff conftest.exp conftest.er2 >/dev/null; then
13098          lt_cv_prog_compiler_static_works_CXX=yes
13099        fi
13100      else
13101        lt_cv_prog_compiler_static_works_CXX=yes
13102      fi
13103    fi
13104    $rm -r conftest*
13105    LDFLAGS="$save_LDFLAGS"
13106
13107 fi
13108 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13109 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13110
13111 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13112     :
13113 else
13114     lt_prog_compiler_static_CXX=
13115 fi
13116
13117
13118 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13119 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13120 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13121   echo $ECHO_N "(cached) $ECHO_C" >&6
13122 else
13123   lt_cv_prog_compiler_c_o_CXX=no
13124    $rm -r conftest 2>/dev/null
13125    mkdir conftest
13126    cd conftest
13127    mkdir out
13128    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13129
13130    lt_compiler_flag="-o out/conftest2.$ac_objext"
13131    # Insert the option either (1) after the last *FLAGS variable, or
13132    # (2) before a word containing "conftest.", or (3) at the end.
13133    # Note that $ac_compile itself does not contain backslashes and begins
13134    # with a dollar sign (not a hyphen), so the echo should work correctly.
13135    lt_compile=`echo "$ac_compile" | $SED \
13136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13138    -e 's:$: $lt_compiler_flag:'`
13139    (eval echo "\"\$as_me:13139: $lt_compile\"" >&5)
13140    (eval "$lt_compile" 2>out/conftest.err)
13141    ac_status=$?
13142    cat out/conftest.err >&5
13143    echo "$as_me:13143: \$? = $ac_status" >&5
13144    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13145    then
13146      # The compiler can only warn and ignore the option if not recognized
13147      # So say no if there are warnings
13148      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13149      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13150      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13151        lt_cv_prog_compiler_c_o_CXX=yes
13152      fi
13153    fi
13154    chmod u+w . 2>&5
13155    $rm conftest*
13156    # SGI C++ compiler will create directory out/ii_files/ for
13157    # template instantiation
13158    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13159    $rm out/* && rmdir out
13160    cd ..
13161    rmdir conftest
13162    $rm conftest*
13163
13164 fi
13165 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13166 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13167
13168
13169 hard_links="nottested"
13170 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13171   # do not overwrite the value of need_locks provided by the user
13172   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13173 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13174   hard_links=yes
13175   $rm conftest*
13176   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13177   touch conftest.a
13178   ln conftest.a conftest.b 2>&5 || hard_links=no
13179   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13180   { echo "$as_me:$LINENO: result: $hard_links" >&5
13181 echo "${ECHO_T}$hard_links" >&6; }
13182   if test "$hard_links" = no; then
13183     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13184 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13185     need_locks=warn
13186   fi
13187 else
13188   need_locks=no
13189 fi
13190
13191 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13192 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13193
13194   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13195   case $host_os in
13196   aix[4-9]*)
13197     # If we're using GNU nm, then we don't want the "-C" option.
13198     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13199     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13200       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'
13201     else
13202       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'
13203     fi
13204     ;;
13205   pw32*)
13206     export_symbols_cmds_CXX="$ltdll_cmds"
13207   ;;
13208   cygwin* | mingw*)
13209     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'
13210   ;;
13211   linux* | k*bsd*-gnu)
13212     link_all_deplibs_CXX=no
13213   ;;
13214   *)
13215     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13216   ;;
13217   esac
13218   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13219
13220 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13221 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13222 test "$ld_shlibs_CXX" = no && can_build_shared=no
13223
13224 #
13225 # Do we need to explicitly link libc?
13226 #
13227 case "x$archive_cmds_need_lc_CXX" in
13228 x|xyes)
13229   # Assume -lc should be added
13230   archive_cmds_need_lc_CXX=yes
13231
13232   if test "$enable_shared" = yes && test "$GCC" = yes; then
13233     case $archive_cmds_CXX in
13234     *'~'*)
13235       # FIXME: we may have to deal with multi-command sequences.
13236       ;;
13237     '$CC '*)
13238       # Test whether the compiler implicitly links with -lc since on some
13239       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13240       # to ld, don't add -lc before -lgcc.
13241       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13242 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13243       $rm conftest*
13244       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13245
13246       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247   (eval $ac_compile) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); } 2>conftest.err; then
13251         soname=conftest
13252         lib=conftest
13253         libobjs=conftest.$ac_objext
13254         deplibs=
13255         wl=$lt_prog_compiler_wl_CXX
13256         pic_flag=$lt_prog_compiler_pic_CXX
13257         compiler_flags=-v
13258         linker_flags=-v
13259         verstring=
13260         output_objdir=.
13261         libname=conftest
13262         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13263         allow_undefined_flag_CXX=
13264         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13265   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }
13269         then
13270           archive_cmds_need_lc_CXX=no
13271         else
13272           archive_cmds_need_lc_CXX=yes
13273         fi
13274         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13275       else
13276         cat conftest.err 1>&5
13277       fi
13278       $rm conftest*
13279       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13280 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13281       ;;
13282     esac
13283   fi
13284   ;;
13285 esac
13286
13287 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13288 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13289 library_names_spec=
13290 libname_spec='lib$name'
13291 soname_spec=
13292 shrext_cmds=".so"
13293 postinstall_cmds=
13294 postuninstall_cmds=
13295 finish_cmds=
13296 finish_eval=
13297 shlibpath_var=
13298 shlibpath_overrides_runpath=unknown
13299 version_type=none
13300 dynamic_linker="$host_os ld.so"
13301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13302
13303 need_lib_prefix=unknown
13304 hardcode_into_libs=no
13305
13306 # when you set need_version to no, make sure it does not cause -set_version
13307 # flags to be left without arguments
13308 need_version=unknown
13309
13310 case $host_os in
13311 aix3*)
13312   version_type=linux
13313   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13314   shlibpath_var=LIBPATH
13315
13316   # AIX 3 has no versioning support, so we append a major version to the name.
13317   soname_spec='${libname}${release}${shared_ext}$major'
13318   ;;
13319
13320 aix[4-9]*)
13321   version_type=linux
13322   need_lib_prefix=no
13323   need_version=no
13324   hardcode_into_libs=yes
13325   if test "$host_cpu" = ia64; then
13326     # AIX 5 supports IA64
13327     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13328     shlibpath_var=LD_LIBRARY_PATH
13329   else
13330     # With GCC up to 2.95.x, collect2 would create an import file
13331     # for dependence libraries.  The import file would start with
13332     # the line `#! .'.  This would cause the generated library to
13333     # depend on `.', always an invalid library.  This was fixed in
13334     # development snapshots of GCC prior to 3.0.
13335     case $host_os in
13336       aix4 | aix4.[01] | aix4.[01].*)
13337       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13338            echo ' yes '
13339            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13340         :
13341       else
13342         can_build_shared=no
13343       fi
13344       ;;
13345     esac
13346     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13347     # soname into executable. Probably we can add versioning support to
13348     # collect2, so additional links can be useful in future.
13349     if test "$aix_use_runtimelinking" = yes; then
13350       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13351       # instead of lib<name>.a to let people know that these are not
13352       # typical AIX shared libraries.
13353       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354     else
13355       # We preserve .a as extension for shared libraries through AIX4.2
13356       # and later when we are not doing run time linking.
13357       library_names_spec='${libname}${release}.a $libname.a'
13358       soname_spec='${libname}${release}${shared_ext}$major'
13359     fi
13360     shlibpath_var=LIBPATH
13361   fi
13362   ;;
13363
13364 amigaos*)
13365   library_names_spec='$libname.ixlibrary $libname.a'
13366   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13367   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'
13368   ;;
13369
13370 beos*)
13371   library_names_spec='${libname}${shared_ext}'
13372   dynamic_linker="$host_os ld.so"
13373   shlibpath_var=LIBRARY_PATH
13374   ;;
13375
13376 bsdi[45]*)
13377   version_type=linux
13378   need_version=no
13379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380   soname_spec='${libname}${release}${shared_ext}$major'
13381   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13382   shlibpath_var=LD_LIBRARY_PATH
13383   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13384   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13385   # the default ld.so.conf also contains /usr/contrib/lib and
13386   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13387   # libtool to hard-code these into programs
13388   ;;
13389
13390 cygwin* | mingw* | pw32*)
13391   version_type=windows
13392   shrext_cmds=".dll"
13393   need_version=no
13394   need_lib_prefix=no
13395
13396   case $GCC,$host_os in
13397   yes,cygwin* | yes,mingw* | yes,pw32*)
13398     library_names_spec='$libname.dll.a'
13399     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13400     postinstall_cmds='base_file=`basename \${file}`~
13401       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13402       dldir=$destdir/`dirname \$dlpath`~
13403       test -d \$dldir || mkdir -p \$dldir~
13404       $install_prog $dir/$dlname \$dldir/$dlname~
13405       chmod a+x \$dldir/$dlname'
13406     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13407       dlpath=$dir/\$dldll~
13408        $rm \$dlpath'
13409     shlibpath_overrides_runpath=yes
13410
13411     case $host_os in
13412     cygwin*)
13413       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13414       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13415       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13416       ;;
13417     mingw*)
13418       # MinGW DLLs use traditional 'lib' prefix
13419       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13420       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13421       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13422         # It is most probably a Windows format PATH printed by
13423         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13424         # path with ; separators, and with drive letters. We can handle the
13425         # drive letters (cygwin fileutils understands them), so leave them,
13426         # especially as we might pass files found there to a mingw objdump,
13427         # which wouldn't understand a cygwinified path. Ahh.
13428         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13429       else
13430         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13431       fi
13432       ;;
13433     pw32*)
13434       # pw32 DLLs use 'pw' prefix rather than 'lib'
13435       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13436       ;;
13437     esac
13438     ;;
13439
13440   *)
13441     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13442     ;;
13443   esac
13444   dynamic_linker='Win32 ld.exe'
13445   # FIXME: first we should search . and the directory the executable is in
13446   shlibpath_var=PATH
13447   ;;
13448
13449 darwin* | rhapsody*)
13450   dynamic_linker="$host_os dyld"
13451   version_type=darwin
13452   need_lib_prefix=no
13453   need_version=no
13454   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13455   soname_spec='${libname}${release}${major}$shared_ext'
13456   shlibpath_overrides_runpath=yes
13457   shlibpath_var=DYLD_LIBRARY_PATH
13458   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13459
13460   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13461   ;;
13462
13463 dgux*)
13464   version_type=linux
13465   need_lib_prefix=no
13466   need_version=no
13467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13468   soname_spec='${libname}${release}${shared_ext}$major'
13469   shlibpath_var=LD_LIBRARY_PATH
13470   ;;
13471
13472 freebsd1*)
13473   dynamic_linker=no
13474   ;;
13475
13476 freebsd* | dragonfly*)
13477   # DragonFly does not have aout.  When/if they implement a new
13478   # versioning mechanism, adjust this.
13479   if test -x /usr/bin/objformat; then
13480     objformat=`/usr/bin/objformat`
13481   else
13482     case $host_os in
13483     freebsd[123]*) objformat=aout ;;
13484     *) objformat=elf ;;
13485     esac
13486   fi
13487   version_type=freebsd-$objformat
13488   case $version_type in
13489     freebsd-elf*)
13490       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13491       need_version=no
13492       need_lib_prefix=no
13493       ;;
13494     freebsd-*)
13495       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13496       need_version=yes
13497       ;;
13498   esac
13499   shlibpath_var=LD_LIBRARY_PATH
13500   case $host_os in
13501   freebsd2*)
13502     shlibpath_overrides_runpath=yes
13503     ;;
13504   freebsd3.[01]* | freebsdelf3.[01]*)
13505     shlibpath_overrides_runpath=yes
13506     hardcode_into_libs=yes
13507     ;;
13508   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13509   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13510     shlibpath_overrides_runpath=no
13511     hardcode_into_libs=yes
13512     ;;
13513   *) # from 4.6 on, and DragonFly
13514     shlibpath_overrides_runpath=yes
13515     hardcode_into_libs=yes
13516     ;;
13517   esac
13518   ;;
13519
13520 gnu*)
13521   version_type=linux
13522   need_lib_prefix=no
13523   need_version=no
13524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13525   soname_spec='${libname}${release}${shared_ext}$major'
13526   shlibpath_var=LD_LIBRARY_PATH
13527   hardcode_into_libs=yes
13528   ;;
13529
13530 hpux9* | hpux10* | hpux11*)
13531   # Give a soname corresponding to the major version so that dld.sl refuses to
13532   # link against other versions.
13533   version_type=sunos
13534   need_lib_prefix=no
13535   need_version=no
13536   case $host_cpu in
13537   ia64*)
13538     shrext_cmds='.so'
13539     hardcode_into_libs=yes
13540     dynamic_linker="$host_os dld.so"
13541     shlibpath_var=LD_LIBRARY_PATH
13542     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544     soname_spec='${libname}${release}${shared_ext}$major'
13545     if test "X$HPUX_IA64_MODE" = X32; then
13546       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13547     else
13548       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13549     fi
13550     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13551     ;;
13552    hppa*64*)
13553      shrext_cmds='.sl'
13554      hardcode_into_libs=yes
13555      dynamic_linker="$host_os dld.sl"
13556      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13557      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13558      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559      soname_spec='${libname}${release}${shared_ext}$major'
13560      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13561      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13562      ;;
13563    *)
13564     shrext_cmds='.sl'
13565     dynamic_linker="$host_os dld.sl"
13566     shlibpath_var=SHLIB_PATH
13567     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13569     soname_spec='${libname}${release}${shared_ext}$major'
13570     ;;
13571   esac
13572   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13573   postinstall_cmds='chmod 555 $lib'
13574   ;;
13575
13576 interix[3-9]*)
13577   version_type=linux
13578   need_lib_prefix=no
13579   need_version=no
13580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13581   soname_spec='${libname}${release}${shared_ext}$major'
13582   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13583   shlibpath_var=LD_LIBRARY_PATH
13584   shlibpath_overrides_runpath=no
13585   hardcode_into_libs=yes
13586   ;;
13587
13588 irix5* | irix6* | nonstopux*)
13589   case $host_os in
13590     nonstopux*) version_type=nonstopux ;;
13591     *)
13592         if test "$lt_cv_prog_gnu_ld" = yes; then
13593                 version_type=linux
13594         else
13595                 version_type=irix
13596         fi ;;
13597   esac
13598   need_lib_prefix=no
13599   need_version=no
13600   soname_spec='${libname}${release}${shared_ext}$major'
13601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13602   case $host_os in
13603   irix5* | nonstopux*)
13604     libsuff= shlibsuff=
13605     ;;
13606   *)
13607     case $LD in # libtool.m4 will add one of these switches to LD
13608     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13609       libsuff= shlibsuff= libmagic=32-bit;;
13610     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13611       libsuff=32 shlibsuff=N32 libmagic=N32;;
13612     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13613       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13614     *) libsuff= shlibsuff= libmagic=never-match;;
13615     esac
13616     ;;
13617   esac
13618   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13619   shlibpath_overrides_runpath=no
13620   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13621   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13622   hardcode_into_libs=yes
13623   ;;
13624
13625 # No shared lib support for Linux oldld, aout, or coff.
13626 linux*oldld* | linux*aout* | linux*coff*)
13627   dynamic_linker=no
13628   ;;
13629
13630 # This must be Linux ELF.
13631 linux* | k*bsd*-gnu)
13632   version_type=linux
13633   need_lib_prefix=no
13634   need_version=no
13635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13636   soname_spec='${libname}${release}${shared_ext}$major'
13637   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13638   shlibpath_var=LD_LIBRARY_PATH
13639   shlibpath_overrides_runpath=no
13640   # This implies no fast_install, which is unacceptable.
13641   # Some rework will be needed to allow for fast_install
13642   # before this can be enabled.
13643   hardcode_into_libs=yes
13644
13645   # Append ld.so.conf contents to the search path
13646   if test -f /etc/ld.so.conf; then
13647     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' ' '`
13648     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13649   fi
13650
13651   # We used to test for /lib/ld.so.1 and disable shared libraries on
13652   # powerpc, because MkLinux only supported shared libraries with the
13653   # GNU dynamic linker.  Since this was broken with cross compilers,
13654   # most powerpc-linux boxes support dynamic linking these days and
13655   # people can always --disable-shared, the test was removed, and we
13656   # assume the GNU/Linux dynamic linker is in use.
13657   dynamic_linker='GNU/Linux ld.so'
13658   ;;
13659
13660 netbsdelf*-gnu)
13661   version_type=linux
13662   need_lib_prefix=no
13663   need_version=no
13664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13665   soname_spec='${libname}${release}${shared_ext}$major'
13666   shlibpath_var=LD_LIBRARY_PATH
13667   shlibpath_overrides_runpath=no
13668   hardcode_into_libs=yes
13669   dynamic_linker='NetBSD ld.elf_so'
13670   ;;
13671
13672 netbsd*)
13673   version_type=sunos
13674   need_lib_prefix=no
13675   need_version=no
13676   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13678     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13679     dynamic_linker='NetBSD (a.out) ld.so'
13680   else
13681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13682     soname_spec='${libname}${release}${shared_ext}$major'
13683     dynamic_linker='NetBSD ld.elf_so'
13684   fi
13685   shlibpath_var=LD_LIBRARY_PATH
13686   shlibpath_overrides_runpath=yes
13687   hardcode_into_libs=yes
13688   ;;
13689
13690 newsos6)
13691   version_type=linux
13692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13693   shlibpath_var=LD_LIBRARY_PATH
13694   shlibpath_overrides_runpath=yes
13695   ;;
13696
13697 nto-qnx*)
13698   version_type=linux
13699   need_lib_prefix=no
13700   need_version=no
13701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702   soname_spec='${libname}${release}${shared_ext}$major'
13703   shlibpath_var=LD_LIBRARY_PATH
13704   shlibpath_overrides_runpath=yes
13705   ;;
13706
13707 openbsd*)
13708   version_type=sunos
13709   sys_lib_dlsearch_path_spec="/usr/lib"
13710   need_lib_prefix=no
13711   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13712   case $host_os in
13713     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13714     *)                         need_version=no  ;;
13715   esac
13716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13717   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13718   shlibpath_var=LD_LIBRARY_PATH
13719   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13720     case $host_os in
13721       openbsd2.[89] | openbsd2.[89].*)
13722         shlibpath_overrides_runpath=no
13723         ;;
13724       *)
13725         shlibpath_overrides_runpath=yes
13726         ;;
13727       esac
13728   else
13729     shlibpath_overrides_runpath=yes
13730   fi
13731   ;;
13732
13733 os2*)
13734   libname_spec='$name'
13735   shrext_cmds=".dll"
13736   need_lib_prefix=no
13737   library_names_spec='$libname${shared_ext} $libname.a'
13738   dynamic_linker='OS/2 ld.exe'
13739   shlibpath_var=LIBPATH
13740   ;;
13741
13742 osf3* | osf4* | osf5*)
13743   version_type=osf
13744   need_lib_prefix=no
13745   need_version=no
13746   soname_spec='${libname}${release}${shared_ext}$major'
13747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748   shlibpath_var=LD_LIBRARY_PATH
13749   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13750   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13751   ;;
13752
13753 rdos*)
13754   dynamic_linker=no
13755   ;;
13756
13757 solaris*)
13758   version_type=linux
13759   need_lib_prefix=no
13760   need_version=no
13761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13762   soname_spec='${libname}${release}${shared_ext}$major'
13763   shlibpath_var=LD_LIBRARY_PATH
13764   shlibpath_overrides_runpath=yes
13765   hardcode_into_libs=yes
13766   # ldd complains unless libraries are executable
13767   postinstall_cmds='chmod +x $lib'
13768   ;;
13769
13770 sunos4*)
13771   version_type=sunos
13772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13773   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13774   shlibpath_var=LD_LIBRARY_PATH
13775   shlibpath_overrides_runpath=yes
13776   if test "$with_gnu_ld" = yes; then
13777     need_lib_prefix=no
13778   fi
13779   need_version=yes
13780   ;;
13781
13782 sysv4 | sysv4.3*)
13783   version_type=linux
13784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785   soname_spec='${libname}${release}${shared_ext}$major'
13786   shlibpath_var=LD_LIBRARY_PATH
13787   case $host_vendor in
13788     sni)
13789       shlibpath_overrides_runpath=no
13790       need_lib_prefix=no
13791       export_dynamic_flag_spec='${wl}-Blargedynsym'
13792       runpath_var=LD_RUN_PATH
13793       ;;
13794     siemens)
13795       need_lib_prefix=no
13796       ;;
13797     motorola)
13798       need_lib_prefix=no
13799       need_version=no
13800       shlibpath_overrides_runpath=no
13801       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13802       ;;
13803   esac
13804   ;;
13805
13806 sysv4*MP*)
13807   if test -d /usr/nec ;then
13808     version_type=linux
13809     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13810     soname_spec='$libname${shared_ext}.$major'
13811     shlibpath_var=LD_LIBRARY_PATH
13812   fi
13813   ;;
13814
13815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13816   version_type=freebsd-elf
13817   need_lib_prefix=no
13818   need_version=no
13819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13820   soname_spec='${libname}${release}${shared_ext}$major'
13821   shlibpath_var=LD_LIBRARY_PATH
13822   hardcode_into_libs=yes
13823   if test "$with_gnu_ld" = yes; then
13824     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13825     shlibpath_overrides_runpath=no
13826   else
13827     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13828     shlibpath_overrides_runpath=yes
13829     case $host_os in
13830       sco3.2v5*)
13831         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13832         ;;
13833     esac
13834   fi
13835   sys_lib_dlsearch_path_spec='/usr/lib'
13836   ;;
13837
13838 uts4*)
13839   version_type=linux
13840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13841   soname_spec='${libname}${release}${shared_ext}$major'
13842   shlibpath_var=LD_LIBRARY_PATH
13843   ;;
13844
13845 *)
13846   dynamic_linker=no
13847   ;;
13848 esac
13849 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13850 echo "${ECHO_T}$dynamic_linker" >&6; }
13851 test "$dynamic_linker" = no && can_build_shared=no
13852
13853 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13854   echo $ECHO_N "(cached) $ECHO_C" >&6
13855 else
13856   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13857 fi
13858
13859 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13860 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13861   echo $ECHO_N "(cached) $ECHO_C" >&6
13862 else
13863   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13864 fi
13865
13866 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13867
13868 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13869 if test "$GCC" = yes; then
13870   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13871 fi
13872
13873 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13874 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13875 hardcode_action_CXX=
13876 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13877    test -n "$runpath_var_CXX" || \
13878    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13879
13880   # We can hardcode non-existant directories.
13881   if test "$hardcode_direct_CXX" != no &&
13882      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13883      # have to relink, otherwise we might link with an installed library
13884      # when we should be linking with a yet-to-be-installed one
13885      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13886      test "$hardcode_minus_L_CXX" != no; then
13887     # Linking always hardcodes the temporary library directory.
13888     hardcode_action_CXX=relink
13889   else
13890     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13891     hardcode_action_CXX=immediate
13892   fi
13893 else
13894   # We cannot hardcode anything, or else we can only hardcode existing
13895   # directories.
13896   hardcode_action_CXX=unsupported
13897 fi
13898 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13899 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13900
13901 if test "$hardcode_action_CXX" = relink; then
13902   # Fast installation is not supported
13903   enable_fast_install=no
13904 elif test "$shlibpath_overrides_runpath" = yes ||
13905      test "$enable_shared" = no; then
13906   # Fast installation is not necessary
13907   enable_fast_install=needless
13908 fi
13909
13910
13911 # The else clause should only fire when bootstrapping the
13912 # libtool distribution, otherwise you forgot to ship ltmain.sh
13913 # with your package, and you will get complaints that there are
13914 # no rules to generate ltmain.sh.
13915 if test -f "$ltmain"; then
13916   # See if we are running on zsh, and set the options which allow our commands through
13917   # without removal of \ escapes.
13918   if test -n "${ZSH_VERSION+set}" ; then
13919     setopt NO_GLOB_SUBST
13920   fi
13921   # Now quote all the things that may contain metacharacters while being
13922   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13923   # variables and quote the copies for generation of the libtool script.
13924   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13925     SED SHELL STRIP \
13926     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13927     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13928     deplibs_check_method reload_flag reload_cmds need_locks \
13929     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13930     lt_cv_sys_global_symbol_to_c_name_address \
13931     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13932     old_postinstall_cmds old_postuninstall_cmds \
13933     compiler_CXX \
13934     CC_CXX \
13935     LD_CXX \
13936     lt_prog_compiler_wl_CXX \
13937     lt_prog_compiler_pic_CXX \
13938     lt_prog_compiler_static_CXX \
13939     lt_prog_compiler_no_builtin_flag_CXX \
13940     export_dynamic_flag_spec_CXX \
13941     thread_safe_flag_spec_CXX \
13942     whole_archive_flag_spec_CXX \
13943     enable_shared_with_static_runtimes_CXX \
13944     old_archive_cmds_CXX \
13945     old_archive_from_new_cmds_CXX \
13946     predep_objects_CXX \
13947     postdep_objects_CXX \
13948     predeps_CXX \
13949     postdeps_CXX \
13950     compiler_lib_search_path_CXX \
13951     compiler_lib_search_dirs_CXX \
13952     archive_cmds_CXX \
13953     archive_expsym_cmds_CXX \
13954     postinstall_cmds_CXX \
13955     postuninstall_cmds_CXX \
13956     old_archive_from_expsyms_cmds_CXX \
13957     allow_undefined_flag_CXX \
13958     no_undefined_flag_CXX \
13959     export_symbols_cmds_CXX \
13960     hardcode_libdir_flag_spec_CXX \
13961     hardcode_libdir_flag_spec_ld_CXX \
13962     hardcode_libdir_separator_CXX \
13963     hardcode_automatic_CXX \
13964     module_cmds_CXX \
13965     module_expsym_cmds_CXX \
13966     lt_cv_prog_compiler_c_o_CXX \
13967     fix_srcfile_path_CXX \
13968     exclude_expsyms_CXX \
13969     include_expsyms_CXX; do
13970
13971     case $var in
13972     old_archive_cmds_CXX | \
13973     old_archive_from_new_cmds_CXX | \
13974     archive_cmds_CXX | \
13975     archive_expsym_cmds_CXX | \
13976     module_cmds_CXX | \
13977     module_expsym_cmds_CXX | \
13978     old_archive_from_expsyms_cmds_CXX | \
13979     export_symbols_cmds_CXX | \
13980     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13981     postinstall_cmds | postuninstall_cmds | \
13982     old_postinstall_cmds | old_postuninstall_cmds | \
13983     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13984       # Double-quote double-evaled strings.
13985       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13986       ;;
13987     *)
13988       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13989       ;;
13990     esac
13991   done
13992
13993   case $lt_echo in
13994   *'\$0 --fallback-echo"')
13995     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13996     ;;
13997   esac
13998
13999 cfgfile="$ofile"
14000
14001   cat <<__EOF__ >> "$cfgfile"
14002 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14003
14004 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14005
14006 # Shell to use when invoking shell scripts.
14007 SHELL=$lt_SHELL
14008
14009 # Whether or not to build shared libraries.
14010 build_libtool_libs=$enable_shared
14011
14012 # Whether or not to build static libraries.
14013 build_old_libs=$enable_static
14014
14015 # Whether or not to add -lc for building shared libraries.
14016 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14017
14018 # Whether or not to disallow shared libs when runtime libs are static
14019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14020
14021 # Whether or not to optimize for fast installation.
14022 fast_install=$enable_fast_install
14023
14024 # The host system.
14025 host_alias=$host_alias
14026 host=$host
14027 host_os=$host_os
14028
14029 # The build system.
14030 build_alias=$build_alias
14031 build=$build
14032 build_os=$build_os
14033
14034 # An echo program that does not interpret backslashes.
14035 echo=$lt_echo
14036
14037 # The archiver.
14038 AR=$lt_AR
14039 AR_FLAGS=$lt_AR_FLAGS
14040
14041 # A C compiler.
14042 LTCC=$lt_LTCC
14043
14044 # LTCC compiler flags.
14045 LTCFLAGS=$lt_LTCFLAGS
14046
14047 # A language-specific compiler.
14048 CC=$lt_compiler_CXX
14049
14050 # Is the compiler the GNU C compiler?
14051 with_gcc=$GCC_CXX
14052
14053 # An ERE matcher.
14054 EGREP=$lt_EGREP
14055
14056 # The linker used to build libraries.
14057 LD=$lt_LD_CXX
14058
14059 # Whether we need hard or soft links.
14060 LN_S=$lt_LN_S
14061
14062 # A BSD-compatible nm program.
14063 NM=$lt_NM
14064
14065 # A symbol stripping program
14066 STRIP=$lt_STRIP
14067
14068 # Used to examine libraries when file_magic_cmd begins "file"
14069 MAGIC_CMD=$MAGIC_CMD
14070
14071 # Used on cygwin: DLL creation program.
14072 DLLTOOL="$DLLTOOL"
14073
14074 # Used on cygwin: object dumper.
14075 OBJDUMP="$OBJDUMP"
14076
14077 # Used on cygwin: assembler.
14078 AS="$AS"
14079
14080 # The name of the directory that contains temporary libtool files.
14081 objdir=$objdir
14082
14083 # How to create reloadable object files.
14084 reload_flag=$lt_reload_flag
14085 reload_cmds=$lt_reload_cmds
14086
14087 # How to pass a linker flag through the compiler.
14088 wl=$lt_lt_prog_compiler_wl_CXX
14089
14090 # Object file suffix (normally "o").
14091 objext="$ac_objext"
14092
14093 # Old archive suffix (normally "a").
14094 libext="$libext"
14095
14096 # Shared library suffix (normally ".so").
14097 shrext_cmds='$shrext_cmds'
14098
14099 # Executable file suffix (normally "").
14100 exeext="$exeext"
14101
14102 # Additional compiler flags for building library objects.
14103 pic_flag=$lt_lt_prog_compiler_pic_CXX
14104 pic_mode=$pic_mode
14105
14106 # What is the maximum length of a command?
14107 max_cmd_len=$lt_cv_sys_max_cmd_len
14108
14109 # Does compiler simultaneously support -c and -o options?
14110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14111
14112 # Must we lock files when doing compilation?
14113 need_locks=$lt_need_locks
14114
14115 # Do we need the lib prefix for modules?
14116 need_lib_prefix=$need_lib_prefix
14117
14118 # Do we need a version for libraries?
14119 need_version=$need_version
14120
14121 # Whether dlopen is supported.
14122 dlopen_support=$enable_dlopen
14123
14124 # Whether dlopen of programs is supported.
14125 dlopen_self=$enable_dlopen_self
14126
14127 # Whether dlopen of statically linked programs is supported.
14128 dlopen_self_static=$enable_dlopen_self_static
14129
14130 # Compiler flag to prevent dynamic linking.
14131 link_static_flag=$lt_lt_prog_compiler_static_CXX
14132
14133 # Compiler flag to turn off builtin functions.
14134 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14135
14136 # Compiler flag to allow reflexive dlopens.
14137 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14138
14139 # Compiler flag to generate shared objects directly from archives.
14140 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14141
14142 # Compiler flag to generate thread-safe objects.
14143 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14144
14145 # Library versioning type.
14146 version_type=$version_type
14147
14148 # Format of library name prefix.
14149 libname_spec=$lt_libname_spec
14150
14151 # List of archive names.  First name is the real one, the rest are links.
14152 # The last name is the one that the linker finds with -lNAME.
14153 library_names_spec=$lt_library_names_spec
14154
14155 # The coded name of the library, if different from the real name.
14156 soname_spec=$lt_soname_spec
14157
14158 # Commands used to build and install an old-style archive.
14159 RANLIB=$lt_RANLIB
14160 old_archive_cmds=$lt_old_archive_cmds_CXX
14161 old_postinstall_cmds=$lt_old_postinstall_cmds
14162 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14163
14164 # Create an old-style archive from a shared archive.
14165 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14166
14167 # Create a temporary old-style archive to link instead of a shared archive.
14168 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14169
14170 # Commands used to build and install a shared archive.
14171 archive_cmds=$lt_archive_cmds_CXX
14172 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14173 postinstall_cmds=$lt_postinstall_cmds
14174 postuninstall_cmds=$lt_postuninstall_cmds
14175
14176 # Commands used to build a loadable module (assumed same as above if empty)
14177 module_cmds=$lt_module_cmds_CXX
14178 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14179
14180 # Commands to strip libraries.
14181 old_striplib=$lt_old_striplib
14182 striplib=$lt_striplib
14183
14184 # Dependencies to place before the objects being linked to create a
14185 # shared library.
14186 predep_objects=$lt_predep_objects_CXX
14187
14188 # Dependencies to place after the objects being linked to create a
14189 # shared library.
14190 postdep_objects=$lt_postdep_objects_CXX
14191
14192 # Dependencies to place before the objects being linked to create a
14193 # shared library.
14194 predeps=$lt_predeps_CXX
14195
14196 # Dependencies to place after the objects being linked to create a
14197 # shared library.
14198 postdeps=$lt_postdeps_CXX
14199
14200 # The directories searched by this compiler when creating a shared
14201 # library
14202 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14203
14204 # The library search path used internally by the compiler when linking
14205 # a shared library.
14206 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14207
14208 # Method to check whether dependent libraries are shared objects.
14209 deplibs_check_method=$lt_deplibs_check_method
14210
14211 # Command to use when deplibs_check_method == file_magic.
14212 file_magic_cmd=$lt_file_magic_cmd
14213
14214 # Flag that allows shared libraries with undefined symbols to be built.
14215 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14216
14217 # Flag that forces no undefined symbols.
14218 no_undefined_flag=$lt_no_undefined_flag_CXX
14219
14220 # Commands used to finish a libtool library installation in a directory.
14221 finish_cmds=$lt_finish_cmds
14222
14223 # Same as above, but a single script fragment to be evaled but not shown.
14224 finish_eval=$lt_finish_eval
14225
14226 # Take the output of nm and produce a listing of raw symbols and C names.
14227 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14228
14229 # Transform the output of nm in a proper C declaration
14230 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14231
14232 # Transform the output of nm in a C name address pair
14233 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14234
14235 # This is the shared library runtime path variable.
14236 runpath_var=$runpath_var
14237
14238 # This is the shared library path variable.
14239 shlibpath_var=$shlibpath_var
14240
14241 # Is shlibpath searched before the hard-coded library search path?
14242 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14243
14244 # How to hardcode a shared library path into an executable.
14245 hardcode_action=$hardcode_action_CXX
14246
14247 # Whether we should hardcode library paths into libraries.
14248 hardcode_into_libs=$hardcode_into_libs
14249
14250 # Flag to hardcode \$libdir into a binary during linking.
14251 # This must work even if \$libdir does not exist.
14252 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14253
14254 # If ld is used when linking, flag to hardcode \$libdir into
14255 # a binary during linking. This must work even if \$libdir does
14256 # not exist.
14257 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14258
14259 # Whether we need a single -rpath flag with a separated argument.
14260 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14261
14262 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14263 # resulting binary.
14264 hardcode_direct=$hardcode_direct_CXX
14265
14266 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14267 # resulting binary.
14268 hardcode_minus_L=$hardcode_minus_L_CXX
14269
14270 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14271 # the resulting binary.
14272 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14273
14274 # Set to yes if building a shared library automatically hardcodes DIR into the library
14275 # and all subsequent libraries and executables linked against it.
14276 hardcode_automatic=$hardcode_automatic_CXX
14277
14278 # Variables whose values should be saved in libtool wrapper scripts and
14279 # restored at relink time.
14280 variables_saved_for_relink="$variables_saved_for_relink"
14281
14282 # Whether libtool must link a program against all its dependency libraries.
14283 link_all_deplibs=$link_all_deplibs_CXX
14284
14285 # Compile-time system search path for libraries
14286 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14287
14288 # Run-time system search path for libraries
14289 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14290
14291 # Fix the shell variable \$srcfile for the compiler.
14292 fix_srcfile_path=$lt_fix_srcfile_path
14293
14294 # Set to yes if exported symbols are required.
14295 always_export_symbols=$always_export_symbols_CXX
14296
14297 # The commands to list exported symbols.
14298 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14299
14300 # The commands to extract the exported symbol list from a shared archive.
14301 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14302
14303 # Symbols that should not be listed in the preloaded symbols.
14304 exclude_expsyms=$lt_exclude_expsyms_CXX
14305
14306 # Symbols that must always be exported.
14307 include_expsyms=$lt_include_expsyms_CXX
14308
14309 # ### END LIBTOOL TAG CONFIG: $tagname
14310
14311 __EOF__
14312
14313
14314 else
14315   # If there is no Makefile yet, we rely on a make rule to execute
14316   # `config.status --recheck' to rerun these tests and create the
14317   # libtool script then.
14318   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14319   if test -f "$ltmain_in"; then
14320     test -f Makefile && make "$ltmain"
14321   fi
14322 fi
14323
14324
14325 ac_ext=c
14326 ac_cpp='$CPP $CPPFLAGS'
14327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14330
14331 CC=$lt_save_CC
14332 LDCXX=$LD
14333 LD=$lt_save_LD
14334 GCC=$lt_save_GCC
14335 with_gnu_ldcxx=$with_gnu_ld
14336 with_gnu_ld=$lt_save_with_gnu_ld
14337 lt_cv_path_LDCXX=$lt_cv_path_LD
14338 lt_cv_path_LD=$lt_save_path_LD
14339 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14340 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14341
14342         else
14343           tagname=""
14344         fi
14345         ;;
14346
14347       F77)
14348         if test -n "$F77" && test "X$F77" != "Xno"; then
14349
14350 ac_ext=f
14351 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14352 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14353 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14354
14355
14356 archive_cmds_need_lc_F77=no
14357 allow_undefined_flag_F77=
14358 always_export_symbols_F77=no
14359 archive_expsym_cmds_F77=
14360 export_dynamic_flag_spec_F77=
14361 hardcode_direct_F77=no
14362 hardcode_libdir_flag_spec_F77=
14363 hardcode_libdir_flag_spec_ld_F77=
14364 hardcode_libdir_separator_F77=
14365 hardcode_minus_L_F77=no
14366 hardcode_automatic_F77=no
14367 module_cmds_F77=
14368 module_expsym_cmds_F77=
14369 link_all_deplibs_F77=unknown
14370 old_archive_cmds_F77=$old_archive_cmds
14371 no_undefined_flag_F77=
14372 whole_archive_flag_spec_F77=
14373 enable_shared_with_static_runtimes_F77=no
14374
14375 # Source file extension for f77 test sources.
14376 ac_ext=f
14377
14378 # Object file extension for compiled f77 test sources.
14379 objext=o
14380 objext_F77=$objext
14381
14382 # Code to be used in simple compile tests
14383 lt_simple_compile_test_code="\
14384       subroutine t
14385       return
14386       end
14387 "
14388
14389 # Code to be used in simple link tests
14390 lt_simple_link_test_code="\
14391       program t
14392       end
14393 "
14394
14395 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14396
14397 # If no C compiler was specified, use CC.
14398 LTCC=${LTCC-"$CC"}
14399
14400 # If no C compiler flags were specified, use CFLAGS.
14401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14402
14403 # Allow CC to be a program name with arguments.
14404 compiler=$CC
14405
14406
14407 # save warnings/boilerplate of simple test code
14408 ac_outfile=conftest.$ac_objext
14409 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14411 _lt_compiler_boilerplate=`cat conftest.err`
14412 $rm conftest*
14413
14414 ac_outfile=conftest.$ac_objext
14415 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14417 _lt_linker_boilerplate=`cat conftest.err`
14418 $rm -r conftest*
14419
14420
14421 # Allow CC to be a program name with arguments.
14422 lt_save_CC="$CC"
14423 CC=${F77-"f77"}
14424 compiler=$CC
14425 compiler_F77=$CC
14426 for cc_temp in $compiler""; do
14427   case $cc_temp in
14428     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14429     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14430     \-*) ;;
14431     *) break;;
14432   esac
14433 done
14434 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14435
14436
14437 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14438 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14439 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14440 echo "${ECHO_T}$can_build_shared" >&6; }
14441
14442 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14443 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14444 test "$can_build_shared" = "no" && enable_shared=no
14445
14446 # On AIX, shared libraries and static libraries use the same namespace, and
14447 # are all built from PIC.
14448 case $host_os in
14449 aix3*)
14450   test "$enable_shared" = yes && enable_static=no
14451   if test -n "$RANLIB"; then
14452     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14453     postinstall_cmds='$RANLIB $lib'
14454   fi
14455   ;;
14456 aix[4-9]*)
14457   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14458     test "$enable_shared" = yes && enable_static=no
14459   fi
14460   ;;
14461 esac
14462 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14463 echo "${ECHO_T}$enable_shared" >&6; }
14464
14465 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14466 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14467 # Make sure either enable_shared or enable_static is yes.
14468 test "$enable_shared" = yes || enable_static=yes
14469 { echo "$as_me:$LINENO: result: $enable_static" >&5
14470 echo "${ECHO_T}$enable_static" >&6; }
14471
14472 GCC_F77="$G77"
14473 LD_F77="$LD"
14474
14475 lt_prog_compiler_wl_F77=
14476 lt_prog_compiler_pic_F77=
14477 lt_prog_compiler_static_F77=
14478
14479 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14480 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14481
14482   if test "$GCC" = yes; then
14483     lt_prog_compiler_wl_F77='-Wl,'
14484     lt_prog_compiler_static_F77='-static'
14485
14486     case $host_os in
14487       aix*)
14488       # All AIX code is PIC.
14489       if test "$host_cpu" = ia64; then
14490         # AIX 5 now supports IA64 processor
14491         lt_prog_compiler_static_F77='-Bstatic'
14492       fi
14493       ;;
14494
14495     amigaos*)
14496       # FIXME: we need at least 68020 code to build shared libraries, but
14497       # adding the `-m68020' flag to GCC prevents building anything better,
14498       # like `-m68040'.
14499       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14500       ;;
14501
14502     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14503       # PIC is the default for these OSes.
14504       ;;
14505
14506     mingw* | cygwin* | pw32* | os2*)
14507       # This hack is so that the source file can tell whether it is being
14508       # built for inclusion in a dll (and should export symbols for example).
14509       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14510       # (--disable-auto-import) libraries
14511       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14512       ;;
14513
14514     darwin* | rhapsody*)
14515       # PIC is the default on this platform
14516       # Common symbols not allowed in MH_DYLIB files
14517       lt_prog_compiler_pic_F77='-fno-common'
14518       ;;
14519
14520     interix[3-9]*)
14521       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14522       # Instead, we relocate shared libraries at runtime.
14523       ;;
14524
14525     msdosdjgpp*)
14526       # Just because we use GCC doesn't mean we suddenly get shared libraries
14527       # on systems that don't support them.
14528       lt_prog_compiler_can_build_shared_F77=no
14529       enable_shared=no
14530       ;;
14531
14532     sysv4*MP*)
14533       if test -d /usr/nec; then
14534         lt_prog_compiler_pic_F77=-Kconform_pic
14535       fi
14536       ;;
14537
14538     hpux*)
14539       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14540       # not for PA HP-UX.
14541       case $host_cpu in
14542       hppa*64*|ia64*)
14543         # +Z the default
14544         ;;
14545       *)
14546         lt_prog_compiler_pic_F77='-fPIC'
14547         ;;
14548       esac
14549       ;;
14550
14551     *)
14552       lt_prog_compiler_pic_F77='-fPIC'
14553       ;;
14554     esac
14555   else
14556     # PORTME Check for flag to pass linker flags through the system compiler.
14557     case $host_os in
14558     aix*)
14559       lt_prog_compiler_wl_F77='-Wl,'
14560       if test "$host_cpu" = ia64; then
14561         # AIX 5 now supports IA64 processor
14562         lt_prog_compiler_static_F77='-Bstatic'
14563       else
14564         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14565       fi
14566       ;;
14567       darwin*)
14568         # PIC is the default on this platform
14569         # Common symbols not allowed in MH_DYLIB files
14570        case $cc_basename in
14571          xlc*)
14572          lt_prog_compiler_pic_F77='-qnocommon'
14573          lt_prog_compiler_wl_F77='-Wl,'
14574          ;;
14575        esac
14576        ;;
14577
14578     mingw* | cygwin* | pw32* | os2*)
14579       # This hack is so that the source file can tell whether it is being
14580       # built for inclusion in a dll (and should export symbols for example).
14581       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14582       ;;
14583
14584     hpux9* | hpux10* | hpux11*)
14585       lt_prog_compiler_wl_F77='-Wl,'
14586       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14587       # not for PA HP-UX.
14588       case $host_cpu in
14589       hppa*64*|ia64*)
14590         # +Z the default
14591         ;;
14592       *)
14593         lt_prog_compiler_pic_F77='+Z'
14594         ;;
14595       esac
14596       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14597       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14598       ;;
14599
14600     irix5* | irix6* | nonstopux*)
14601       lt_prog_compiler_wl_F77='-Wl,'
14602       # PIC (with -KPIC) is the default.
14603       lt_prog_compiler_static_F77='-non_shared'
14604       ;;
14605
14606     newsos6)
14607       lt_prog_compiler_pic_F77='-KPIC'
14608       lt_prog_compiler_static_F77='-Bstatic'
14609       ;;
14610
14611     linux* | k*bsd*-gnu)
14612       case $cc_basename in
14613       icc* | ecc*)
14614         lt_prog_compiler_wl_F77='-Wl,'
14615         lt_prog_compiler_pic_F77='-KPIC'
14616         lt_prog_compiler_static_F77='-static'
14617         ;;
14618       pgcc* | pgf77* | pgf90* | pgf95*)
14619         # Portland Group compilers (*not* the Pentium gcc compiler,
14620         # which looks to be a dead project)
14621         lt_prog_compiler_wl_F77='-Wl,'
14622         lt_prog_compiler_pic_F77='-fpic'
14623         lt_prog_compiler_static_F77='-Bstatic'
14624         ;;
14625       ccc*)
14626         lt_prog_compiler_wl_F77='-Wl,'
14627         # All Alpha code is PIC.
14628         lt_prog_compiler_static_F77='-non_shared'
14629         ;;
14630       *)
14631         case `$CC -V 2>&1 | sed 5q` in
14632         *Sun\ C*)
14633           # Sun C 5.9
14634           lt_prog_compiler_pic_F77='-KPIC'
14635           lt_prog_compiler_static_F77='-Bstatic'
14636           lt_prog_compiler_wl_F77='-Wl,'
14637           ;;
14638         *Sun\ F*)
14639           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14640           lt_prog_compiler_pic_F77='-KPIC'
14641           lt_prog_compiler_static_F77='-Bstatic'
14642           lt_prog_compiler_wl_F77=''
14643           ;;
14644         esac
14645         ;;
14646       esac
14647       ;;
14648
14649     osf3* | osf4* | osf5*)
14650       lt_prog_compiler_wl_F77='-Wl,'
14651       # All OSF/1 code is PIC.
14652       lt_prog_compiler_static_F77='-non_shared'
14653       ;;
14654
14655     rdos*)
14656       lt_prog_compiler_static_F77='-non_shared'
14657       ;;
14658
14659     solaris*)
14660       lt_prog_compiler_pic_F77='-KPIC'
14661       lt_prog_compiler_static_F77='-Bstatic'
14662       case $cc_basename in
14663       f77* | f90* | f95*)
14664         lt_prog_compiler_wl_F77='-Qoption ld ';;
14665       *)
14666         lt_prog_compiler_wl_F77='-Wl,';;
14667       esac
14668       ;;
14669
14670     sunos4*)
14671       lt_prog_compiler_wl_F77='-Qoption ld '
14672       lt_prog_compiler_pic_F77='-PIC'
14673       lt_prog_compiler_static_F77='-Bstatic'
14674       ;;
14675
14676     sysv4 | sysv4.2uw2* | sysv4.3*)
14677       lt_prog_compiler_wl_F77='-Wl,'
14678       lt_prog_compiler_pic_F77='-KPIC'
14679       lt_prog_compiler_static_F77='-Bstatic'
14680       ;;
14681
14682     sysv4*MP*)
14683       if test -d /usr/nec ;then
14684         lt_prog_compiler_pic_F77='-Kconform_pic'
14685         lt_prog_compiler_static_F77='-Bstatic'
14686       fi
14687       ;;
14688
14689     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14690       lt_prog_compiler_wl_F77='-Wl,'
14691       lt_prog_compiler_pic_F77='-KPIC'
14692       lt_prog_compiler_static_F77='-Bstatic'
14693       ;;
14694
14695     unicos*)
14696       lt_prog_compiler_wl_F77='-Wl,'
14697       lt_prog_compiler_can_build_shared_F77=no
14698       ;;
14699
14700     uts4*)
14701       lt_prog_compiler_pic_F77='-pic'
14702       lt_prog_compiler_static_F77='-Bstatic'
14703       ;;
14704
14705     *)
14706       lt_prog_compiler_can_build_shared_F77=no
14707       ;;
14708     esac
14709   fi
14710
14711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14712 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14713
14714 #
14715 # Check to make sure the PIC flag actually works.
14716 #
14717 if test -n "$lt_prog_compiler_pic_F77"; then
14718
14719 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14721 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   lt_cv_prog_compiler_pic_works_F77=no
14725   ac_outfile=conftest.$ac_objext
14726    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14727    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14728    # Insert the option either (1) after the last *FLAGS variable, or
14729    # (2) before a word containing "conftest.", or (3) at the end.
14730    # Note that $ac_compile itself does not contain backslashes and begins
14731    # with a dollar sign (not a hyphen), so the echo should work correctly.
14732    # The option is referenced via a variable to avoid confusing sed.
14733    lt_compile=`echo "$ac_compile" | $SED \
14734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14736    -e 's:$: $lt_compiler_flag:'`
14737    (eval echo "\"\$as_me:14737: $lt_compile\"" >&5)
14738    (eval "$lt_compile" 2>conftest.err)
14739    ac_status=$?
14740    cat conftest.err >&5
14741    echo "$as_me:14741: \$? = $ac_status" >&5
14742    if (exit $ac_status) && test -s "$ac_outfile"; then
14743      # The compiler can only warn and ignore the option if not recognized
14744      # So say no if there are warnings other than the usual output.
14745      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14746      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14747      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14748        lt_cv_prog_compiler_pic_works_F77=yes
14749      fi
14750    fi
14751    $rm conftest*
14752
14753 fi
14754 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14755 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14756
14757 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14758     case $lt_prog_compiler_pic_F77 in
14759      "" | " "*) ;;
14760      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14761      esac
14762 else
14763     lt_prog_compiler_pic_F77=
14764      lt_prog_compiler_can_build_shared_F77=no
14765 fi
14766
14767 fi
14768 case $host_os in
14769   # For platforms which do not support PIC, -DPIC is meaningless:
14770   *djgpp*)
14771     lt_prog_compiler_pic_F77=
14772     ;;
14773   *)
14774     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14775     ;;
14776 esac
14777
14778 #
14779 # Check to make sure the static flag actually works.
14780 #
14781 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14782 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14784 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   lt_cv_prog_compiler_static_works_F77=no
14788    save_LDFLAGS="$LDFLAGS"
14789    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14790    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14791    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14792      # The linker can only warn and ignore the option if not recognized
14793      # So say no if there are warnings
14794      if test -s conftest.err; then
14795        # Append any errors to the config.log.
14796        cat conftest.err 1>&5
14797        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14798        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14799        if diff conftest.exp conftest.er2 >/dev/null; then
14800          lt_cv_prog_compiler_static_works_F77=yes
14801        fi
14802      else
14803        lt_cv_prog_compiler_static_works_F77=yes
14804      fi
14805    fi
14806    $rm -r conftest*
14807    LDFLAGS="$save_LDFLAGS"
14808
14809 fi
14810 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14811 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14812
14813 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14814     :
14815 else
14816     lt_prog_compiler_static_F77=
14817 fi
14818
14819
14820 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14822 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14823   echo $ECHO_N "(cached) $ECHO_C" >&6
14824 else
14825   lt_cv_prog_compiler_c_o_F77=no
14826    $rm -r conftest 2>/dev/null
14827    mkdir conftest
14828    cd conftest
14829    mkdir out
14830    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14831
14832    lt_compiler_flag="-o out/conftest2.$ac_objext"
14833    # Insert the option either (1) after the last *FLAGS variable, or
14834    # (2) before a word containing "conftest.", or (3) at the end.
14835    # Note that $ac_compile itself does not contain backslashes and begins
14836    # with a dollar sign (not a hyphen), so the echo should work correctly.
14837    lt_compile=`echo "$ac_compile" | $SED \
14838    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14840    -e 's:$: $lt_compiler_flag:'`
14841    (eval echo "\"\$as_me:14841: $lt_compile\"" >&5)
14842    (eval "$lt_compile" 2>out/conftest.err)
14843    ac_status=$?
14844    cat out/conftest.err >&5
14845    echo "$as_me:14845: \$? = $ac_status" >&5
14846    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14847    then
14848      # The compiler can only warn and ignore the option if not recognized
14849      # So say no if there are warnings
14850      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14851      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14852      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14853        lt_cv_prog_compiler_c_o_F77=yes
14854      fi
14855    fi
14856    chmod u+w . 2>&5
14857    $rm conftest*
14858    # SGI C++ compiler will create directory out/ii_files/ for
14859    # template instantiation
14860    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14861    $rm out/* && rmdir out
14862    cd ..
14863    rmdir conftest
14864    $rm conftest*
14865
14866 fi
14867 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14869
14870
14871 hard_links="nottested"
14872 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14873   # do not overwrite the value of need_locks provided by the user
14874   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14876   hard_links=yes
14877   $rm conftest*
14878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14879   touch conftest.a
14880   ln conftest.a conftest.b 2>&5 || hard_links=no
14881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14882   { echo "$as_me:$LINENO: result: $hard_links" >&5
14883 echo "${ECHO_T}$hard_links" >&6; }
14884   if test "$hard_links" = no; then
14885     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14887     need_locks=warn
14888   fi
14889 else
14890   need_locks=no
14891 fi
14892
14893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14895
14896   runpath_var=
14897   allow_undefined_flag_F77=
14898   enable_shared_with_static_runtimes_F77=no
14899   archive_cmds_F77=
14900   archive_expsym_cmds_F77=
14901   old_archive_From_new_cmds_F77=
14902   old_archive_from_expsyms_cmds_F77=
14903   export_dynamic_flag_spec_F77=
14904   whole_archive_flag_spec_F77=
14905   thread_safe_flag_spec_F77=
14906   hardcode_libdir_flag_spec_F77=
14907   hardcode_libdir_flag_spec_ld_F77=
14908   hardcode_libdir_separator_F77=
14909   hardcode_direct_F77=no
14910   hardcode_minus_L_F77=no
14911   hardcode_shlibpath_var_F77=unsupported
14912   link_all_deplibs_F77=unknown
14913   hardcode_automatic_F77=no
14914   module_cmds_F77=
14915   module_expsym_cmds_F77=
14916   always_export_symbols_F77=no
14917   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14918   # include_expsyms should be a list of space-separated symbols to be *always*
14919   # included in the symbol list
14920   include_expsyms_F77=
14921   # exclude_expsyms can be an extended regexp of symbols to exclude
14922   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14923   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14924   # as well as any symbol that contains `d'.
14925   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14926   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14927   # platforms (ab)use it in PIC code, but their linkers get confused if
14928   # the symbol is explicitly referenced.  Since portable code cannot
14929   # rely on this symbol name, it's probably fine to never include it in
14930   # preloaded symbol tables.
14931   # Exclude shared library initialization/finalization symbols.
14932   extract_expsyms_cmds=
14933   # Just being paranoid about ensuring that cc_basename is set.
14934   for cc_temp in $compiler""; do
14935   case $cc_temp in
14936     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14937     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14938     \-*) ;;
14939     *) break;;
14940   esac
14941 done
14942 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14943
14944   case $host_os in
14945   cygwin* | mingw* | pw32*)
14946     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14947     # When not using gcc, we currently assume that we are using
14948     # Microsoft Visual C++.
14949     if test "$GCC" != yes; then
14950       with_gnu_ld=no
14951     fi
14952     ;;
14953   interix*)
14954     # we just hope/assume this is gcc and not c89 (= MSVC++)
14955     with_gnu_ld=yes
14956     ;;
14957   openbsd*)
14958     with_gnu_ld=no
14959     ;;
14960   esac
14961
14962   ld_shlibs_F77=yes
14963   if test "$with_gnu_ld" = yes; then
14964     # If archive_cmds runs LD, not CC, wlarc should be empty
14965     wlarc='${wl}'
14966
14967     # Set some defaults for GNU ld with shared library support. These
14968     # are reset later if shared libraries are not supported. Putting them
14969     # here allows them to be overridden if necessary.
14970     runpath_var=LD_RUN_PATH
14971     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14972     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14973     # ancient GNU ld didn't support --whole-archive et. al.
14974     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14975         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14976       else
14977         whole_archive_flag_spec_F77=
14978     fi
14979     supports_anon_versioning=no
14980     case `$LD -v 2>/dev/null` in
14981       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14982       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14983       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14984       *\ 2.11.*) ;; # other 2.11 versions
14985       *) supports_anon_versioning=yes ;;
14986     esac
14987
14988     # See if GNU ld supports shared libraries.
14989     case $host_os in
14990     aix[3-9]*)
14991       # On AIX/PPC, the GNU linker is very broken
14992       if test "$host_cpu" != ia64; then
14993         ld_shlibs_F77=no
14994         cat <<EOF 1>&2
14995
14996 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14997 *** to be unable to reliably create shared libraries on AIX.
14998 *** Therefore, libtool is disabling shared libraries support.  If you
14999 *** really care for shared libraries, you may want to modify your PATH
15000 *** so that a non-GNU linker is found, and then restart.
15001
15002 EOF
15003       fi
15004       ;;
15005
15006     amigaos*)
15007       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)'
15008       hardcode_libdir_flag_spec_F77='-L$libdir'
15009       hardcode_minus_L_F77=yes
15010
15011       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15012       # that the semantics of dynamic libraries on AmigaOS, at least up
15013       # to version 4, is to share data among multiple programs linked
15014       # with the same dynamic library.  Since this doesn't match the
15015       # behavior of shared libraries on other platforms, we can't use
15016       # them.
15017       ld_shlibs_F77=no
15018       ;;
15019
15020     beos*)
15021       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15022         allow_undefined_flag_F77=unsupported
15023         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15024         # support --undefined.  This deserves some investigation.  FIXME
15025         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15026       else
15027         ld_shlibs_F77=no
15028       fi
15029       ;;
15030
15031     cygwin* | mingw* | pw32*)
15032       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15033       # as there is no search path for DLLs.
15034       hardcode_libdir_flag_spec_F77='-L$libdir'
15035       allow_undefined_flag_F77=unsupported
15036       always_export_symbols_F77=no
15037       enable_shared_with_static_runtimes_F77=yes
15038       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15039
15040       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15041         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15042         # If the export-symbols file already is a .def file (1st line
15043         # is EXPORTS), use it as is; otherwise, prepend...
15044         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15045           cp $export_symbols $output_objdir/$soname.def;
15046         else
15047           echo EXPORTS > $output_objdir/$soname.def;
15048           cat $export_symbols >> $output_objdir/$soname.def;
15049         fi~
15050         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15051       else
15052         ld_shlibs_F77=no
15053       fi
15054       ;;
15055
15056     interix[3-9]*)
15057       hardcode_direct_F77=no
15058       hardcode_shlibpath_var_F77=no
15059       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15060       export_dynamic_flag_spec_F77='${wl}-E'
15061       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15062       # Instead, shared libraries are loaded at an image base (0x10000000 by
15063       # default) and relocated if they conflict, which is a slow very memory
15064       # consuming and fragmenting process.  To avoid this, we pick a random,
15065       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15066       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15067       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'
15068       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'
15069       ;;
15070
15071     gnu* | linux* | k*bsd*-gnu)
15072       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15073         tmp_addflag=
15074         case $cc_basename,$host_cpu in
15075         pgcc*)                          # Portland Group C compiler
15076           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'
15077           tmp_addflag=' $pic_flag'
15078           ;;
15079         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15080           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'
15081           tmp_addflag=' $pic_flag -Mnomain' ;;
15082         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15083           tmp_addflag=' -i_dynamic' ;;
15084         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15085           tmp_addflag=' -i_dynamic -nofor_main' ;;
15086         ifc* | ifort*)                  # Intel Fortran compiler
15087           tmp_addflag=' -nofor_main' ;;
15088         esac
15089         case `$CC -V 2>&1 | sed 5q` in
15090         *Sun\ C*)                       # Sun C 5.9
15091           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'
15092           tmp_sharedflag='-G' ;;
15093         *Sun\ F*)                       # Sun Fortran 8.3
15094           tmp_sharedflag='-G' ;;
15095         *)
15096           tmp_sharedflag='-shared' ;;
15097         esac
15098         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15099
15100         if test $supports_anon_versioning = yes; then
15101           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15102   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15103   $echo "local: *; };" >> $output_objdir/$libname.ver~
15104           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15105         fi
15106         link_all_deplibs_F77=no
15107       else
15108         ld_shlibs_F77=no
15109       fi
15110       ;;
15111
15112     netbsd* | netbsdelf*-gnu)
15113       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15114         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15115         wlarc=
15116       else
15117         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15119       fi
15120       ;;
15121
15122     solaris*)
15123       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15124         ld_shlibs_F77=no
15125         cat <<EOF 1>&2
15126
15127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15128 *** create shared libraries on Solaris systems.  Therefore, libtool
15129 *** is disabling shared libraries support.  We urge you to upgrade GNU
15130 *** binutils to release 2.9.1 or newer.  Another option is to modify
15131 *** your PATH or compiler configuration so that the native linker is
15132 *** used, and then restart.
15133
15134 EOF
15135       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15136         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15137         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15138       else
15139         ld_shlibs_F77=no
15140       fi
15141       ;;
15142
15143     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15144       case `$LD -v 2>&1` in
15145         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15146         ld_shlibs_F77=no
15147         cat <<_LT_EOF 1>&2
15148
15149 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15150 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15151 *** is disabling shared libraries support.  We urge you to upgrade GNU
15152 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15153 *** your PATH or compiler configuration so that the native linker is
15154 *** used, and then restart.
15155
15156 _LT_EOF
15157         ;;
15158         *)
15159           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15160             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15161             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15162             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15163           else
15164             ld_shlibs_F77=no
15165           fi
15166         ;;
15167       esac
15168       ;;
15169
15170     sunos4*)
15171       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15172       wlarc=
15173       hardcode_direct_F77=yes
15174       hardcode_shlibpath_var_F77=no
15175       ;;
15176
15177     *)
15178       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15179         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15180         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15181       else
15182         ld_shlibs_F77=no
15183       fi
15184       ;;
15185     esac
15186
15187     if test "$ld_shlibs_F77" = no; then
15188       runpath_var=
15189       hardcode_libdir_flag_spec_F77=
15190       export_dynamic_flag_spec_F77=
15191       whole_archive_flag_spec_F77=
15192     fi
15193   else
15194     # PORTME fill in a description of your system's linker (not GNU ld)
15195     case $host_os in
15196     aix3*)
15197       allow_undefined_flag_F77=unsupported
15198       always_export_symbols_F77=yes
15199       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'
15200       # Note: this linker hardcodes the directories in LIBPATH if there
15201       # are no directories specified by -L.
15202       hardcode_minus_L_F77=yes
15203       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15204         # Neither direct hardcoding nor static linking is supported with a
15205         # broken collect2.
15206         hardcode_direct_F77=unsupported
15207       fi
15208       ;;
15209
15210     aix[4-9]*)
15211       if test "$host_cpu" = ia64; then
15212         # On IA64, the linker does run time linking by default, so we don't
15213         # have to do anything special.
15214         aix_use_runtimelinking=no
15215         exp_sym_flag='-Bexport'
15216         no_entry_flag=""
15217       else
15218         # If we're using GNU nm, then we don't want the "-C" option.
15219         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15220         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15221           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'
15222         else
15223           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'
15224         fi
15225         aix_use_runtimelinking=no
15226
15227         # Test if we are trying to use run time linking or normal
15228         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15229         # need to do runtime linking.
15230         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15231           for ld_flag in $LDFLAGS; do
15232           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15233             aix_use_runtimelinking=yes
15234             break
15235           fi
15236           done
15237           ;;
15238         esac
15239
15240         exp_sym_flag='-bexport'
15241         no_entry_flag='-bnoentry'
15242       fi
15243
15244       # When large executables or shared objects are built, AIX ld can
15245       # have problems creating the table of contents.  If linking a library
15246       # or program results in "error TOC overflow" add -mminimal-toc to
15247       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15248       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15249
15250       archive_cmds_F77=''
15251       hardcode_direct_F77=yes
15252       hardcode_libdir_separator_F77=':'
15253       link_all_deplibs_F77=yes
15254
15255       if test "$GCC" = yes; then
15256         case $host_os in aix4.[012]|aix4.[012].*)
15257         # We only want to do this on AIX 4.2 and lower, the check
15258         # below for broken collect2 doesn't work under 4.3+
15259           collect2name=`${CC} -print-prog-name=collect2`
15260           if test -f "$collect2name" && \
15261            strings "$collect2name" | grep resolve_lib_name >/dev/null
15262           then
15263           # We have reworked collect2
15264           :
15265           else
15266           # We have old collect2
15267           hardcode_direct_F77=unsupported
15268           # It fails to find uninstalled libraries when the uninstalled
15269           # path is not listed in the libpath.  Setting hardcode_minus_L
15270           # to unsupported forces relinking
15271           hardcode_minus_L_F77=yes
15272           hardcode_libdir_flag_spec_F77='-L$libdir'
15273           hardcode_libdir_separator_F77=
15274           fi
15275           ;;
15276         esac
15277         shared_flag='-shared'
15278         if test "$aix_use_runtimelinking" = yes; then
15279           shared_flag="$shared_flag "'${wl}-G'
15280         fi
15281       else
15282         # not using gcc
15283         if test "$host_cpu" = ia64; then
15284         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15285         # chokes on -Wl,-G. The following line is correct:
15286           shared_flag='-G'
15287         else
15288           if test "$aix_use_runtimelinking" = yes; then
15289             shared_flag='${wl}-G'
15290           else
15291             shared_flag='${wl}-bM:SRE'
15292           fi
15293         fi
15294       fi
15295
15296       # It seems that -bexpall does not export symbols beginning with
15297       # underscore (_), so it is better to generate a list of symbols to export.
15298       always_export_symbols_F77=yes
15299       if test "$aix_use_runtimelinking" = yes; then
15300         # Warning - without using the other runtime loading flags (-brtl),
15301         # -berok will link without error, but may produce a broken library.
15302         allow_undefined_flag_F77='-berok'
15303        # Determine the default libpath from the value encoded in an empty executable.
15304        cat >conftest.$ac_ext <<_ACEOF
15305       program main
15306
15307       end
15308 _ACEOF
15309 rm -f conftest.$ac_objext conftest$ac_exeext
15310 if { (ac_try="$ac_link"
15311 case "(($ac_try" in
15312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313   *) ac_try_echo=$ac_try;;
15314 esac
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316   (eval "$ac_link") 2>conftest.er1
15317   ac_status=$?
15318   grep -v '^ *+' conftest.er1 >conftest.err
15319   rm -f conftest.er1
15320   cat conftest.err >&5
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); } && {
15323          test -z "$ac_f77_werror_flag" ||
15324          test ! -s conftest.err
15325        } && test -s conftest$ac_exeext &&
15326        $as_test_x conftest$ac_exeext; then
15327
15328 lt_aix_libpath_sed='
15329     /Import File Strings/,/^$/ {
15330         /^0/ {
15331             s/^0  *\(.*\)$/\1/
15332             p
15333         }
15334     }'
15335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15336 # Check for a 64-bit object if we didn't find anything.
15337 if test -z "$aix_libpath"; then
15338   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15339 fi
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344
15345 fi
15346
15347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15348       conftest$ac_exeext conftest.$ac_ext
15349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15350
15351        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15352         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"
15353        else
15354         if test "$host_cpu" = ia64; then
15355           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15356           allow_undefined_flag_F77="-z nodefs"
15357           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"
15358         else
15359          # Determine the default libpath from the value encoded in an empty executable.
15360          cat >conftest.$ac_ext <<_ACEOF
15361       program main
15362
15363       end
15364 _ACEOF
15365 rm -f conftest.$ac_objext conftest$ac_exeext
15366 if { (ac_try="$ac_link"
15367 case "(($ac_try" in
15368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369   *) ac_try_echo=$ac_try;;
15370 esac
15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372   (eval "$ac_link") 2>conftest.er1
15373   ac_status=$?
15374   grep -v '^ *+' conftest.er1 >conftest.err
15375   rm -f conftest.er1
15376   cat conftest.err >&5
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); } && {
15379          test -z "$ac_f77_werror_flag" ||
15380          test ! -s conftest.err
15381        } && test -s conftest$ac_exeext &&
15382        $as_test_x conftest$ac_exeext; then
15383
15384 lt_aix_libpath_sed='
15385     /Import File Strings/,/^$/ {
15386         /^0/ {
15387             s/^0  *\(.*\)$/\1/
15388             p
15389         }
15390     }'
15391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15392 # Check for a 64-bit object if we didn't find anything.
15393 if test -z "$aix_libpath"; then
15394   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15395 fi
15396 else
15397   echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15399
15400
15401 fi
15402
15403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15404       conftest$ac_exeext conftest.$ac_ext
15405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15406
15407          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15408           # Warning - without using the other run time loading flags,
15409           # -berok will link without error, but may produce a broken library.
15410           no_undefined_flag_F77=' ${wl}-bernotok'
15411           allow_undefined_flag_F77=' ${wl}-berok'
15412           # Exported symbols can be pulled into shared objects from archives
15413           whole_archive_flag_spec_F77='$convenience'
15414           archive_cmds_need_lc_F77=yes
15415           # This is similar to how AIX traditionally builds its shared libraries.
15416           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'
15417         fi
15418       fi
15419       ;;
15420
15421     amigaos*)
15422       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)'
15423       hardcode_libdir_flag_spec_F77='-L$libdir'
15424       hardcode_minus_L_F77=yes
15425       # see comment about different semantics on the GNU ld section
15426       ld_shlibs_F77=no
15427       ;;
15428
15429     bsdi[45]*)
15430       export_dynamic_flag_spec_F77=-rdynamic
15431       ;;
15432
15433     cygwin* | mingw* | pw32*)
15434       # When not using gcc, we currently assume that we are using
15435       # Microsoft Visual C++.
15436       # hardcode_libdir_flag_spec is actually meaningless, as there is
15437       # no search path for DLLs.
15438       hardcode_libdir_flag_spec_F77=' '
15439       allow_undefined_flag_F77=unsupported
15440       # Tell ltmain to make .lib files, not .a files.
15441       libext=lib
15442       # Tell ltmain to make .dll files, not .so files.
15443       shrext_cmds=".dll"
15444       # FIXME: Setting linknames here is a bad hack.
15445       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15446       # The linker will automatically build a .lib file if we build a DLL.
15447       old_archive_From_new_cmds_F77='true'
15448       # FIXME: Should let the user specify the lib program.
15449       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15450       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15451       enable_shared_with_static_runtimes_F77=yes
15452       ;;
15453
15454     darwin* | rhapsody*)
15455       case $host_os in
15456         rhapsody* | darwin1.[012])
15457          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15458          ;;
15459        *) # Darwin 1.3 on
15460          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15461            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15462          else
15463            case ${MACOSX_DEPLOYMENT_TARGET} in
15464              10.[012])
15465                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15466                ;;
15467              10.*)
15468                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15469                ;;
15470            esac
15471          fi
15472          ;;
15473       esac
15474       archive_cmds_need_lc_F77=no
15475       hardcode_direct_F77=no
15476       hardcode_automatic_F77=yes
15477       hardcode_shlibpath_var_F77=unsupported
15478       whole_archive_flag_spec_F77=''
15479       link_all_deplibs_F77=yes
15480     if test "$GCC" = yes ; then
15481         output_verbose_link_cmd='echo'
15482         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}"
15483         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15484         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}"
15485         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}"
15486     else
15487       case $cc_basename in
15488         xlc*)
15489          output_verbose_link_cmd='echo'
15490          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15491          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15492           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15493          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}'
15494           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}'
15495           ;;
15496        *)
15497          ld_shlibs_F77=no
15498           ;;
15499       esac
15500     fi
15501       ;;
15502
15503     dgux*)
15504       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15505       hardcode_libdir_flag_spec_F77='-L$libdir'
15506       hardcode_shlibpath_var_F77=no
15507       ;;
15508
15509     freebsd1*)
15510       ld_shlibs_F77=no
15511       ;;
15512
15513     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15514     # support.  Future versions do this automatically, but an explicit c++rt0.o
15515     # does not break anything, and helps significantly (at the cost of a little
15516     # extra space).
15517     freebsd2.2*)
15518       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15519       hardcode_libdir_flag_spec_F77='-R$libdir'
15520       hardcode_direct_F77=yes
15521       hardcode_shlibpath_var_F77=no
15522       ;;
15523
15524     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15525     freebsd2*)
15526       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15527       hardcode_direct_F77=yes
15528       hardcode_minus_L_F77=yes
15529       hardcode_shlibpath_var_F77=no
15530       ;;
15531
15532     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15533     freebsd* | dragonfly*)
15534       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15535       hardcode_libdir_flag_spec_F77='-R$libdir'
15536       hardcode_direct_F77=yes
15537       hardcode_shlibpath_var_F77=no
15538       ;;
15539
15540     hpux9*)
15541       if test "$GCC" = yes; then
15542         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'
15543       else
15544         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'
15545       fi
15546       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15547       hardcode_libdir_separator_F77=:
15548       hardcode_direct_F77=yes
15549
15550       # hardcode_minus_L: Not really in the search PATH,
15551       # but as the default location of the library.
15552       hardcode_minus_L_F77=yes
15553       export_dynamic_flag_spec_F77='${wl}-E'
15554       ;;
15555
15556     hpux10*)
15557       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15558         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15559       else
15560         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15561       fi
15562       if test "$with_gnu_ld" = no; then
15563         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15564         hardcode_libdir_separator_F77=:
15565
15566         hardcode_direct_F77=yes
15567         export_dynamic_flag_spec_F77='${wl}-E'
15568
15569         # hardcode_minus_L: Not really in the search PATH,
15570         # but as the default location of the library.
15571         hardcode_minus_L_F77=yes
15572       fi
15573       ;;
15574
15575     hpux11*)
15576       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15577         case $host_cpu in
15578         hppa*64*)
15579           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15580           ;;
15581         ia64*)
15582           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15583           ;;
15584         *)
15585           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15586           ;;
15587         esac
15588       else
15589         case $host_cpu in
15590         hppa*64*)
15591           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15592           ;;
15593         ia64*)
15594           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15595           ;;
15596         *)
15597           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15598           ;;
15599         esac
15600       fi
15601       if test "$with_gnu_ld" = no; then
15602         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15603         hardcode_libdir_separator_F77=:
15604
15605         case $host_cpu in
15606         hppa*64*|ia64*)
15607           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15608           hardcode_direct_F77=no
15609           hardcode_shlibpath_var_F77=no
15610           ;;
15611         *)
15612           hardcode_direct_F77=yes
15613           export_dynamic_flag_spec_F77='${wl}-E'
15614
15615           # hardcode_minus_L: Not really in the search PATH,
15616           # but as the default location of the library.
15617           hardcode_minus_L_F77=yes
15618           ;;
15619         esac
15620       fi
15621       ;;
15622
15623     irix5* | irix6* | nonstopux*)
15624       if test "$GCC" = yes; then
15625         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'
15626       else
15627         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'
15628         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15629       fi
15630       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15631       hardcode_libdir_separator_F77=:
15632       link_all_deplibs_F77=yes
15633       ;;
15634
15635     netbsd* | netbsdelf*-gnu)
15636       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15637         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15638       else
15639         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15640       fi
15641       hardcode_libdir_flag_spec_F77='-R$libdir'
15642       hardcode_direct_F77=yes
15643       hardcode_shlibpath_var_F77=no
15644       ;;
15645
15646     newsos6)
15647       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15648       hardcode_direct_F77=yes
15649       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15650       hardcode_libdir_separator_F77=:
15651       hardcode_shlibpath_var_F77=no
15652       ;;
15653
15654     openbsd*)
15655       if test -f /usr/libexec/ld.so; then
15656         hardcode_direct_F77=yes
15657         hardcode_shlibpath_var_F77=no
15658         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15659           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15660           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15661           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15662           export_dynamic_flag_spec_F77='${wl}-E'
15663         else
15664           case $host_os in
15665            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15666              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15667              hardcode_libdir_flag_spec_F77='-R$libdir'
15668              ;;
15669            *)
15670              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15671              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15672              ;;
15673           esac
15674         fi
15675       else
15676         ld_shlibs_F77=no
15677       fi
15678       ;;
15679
15680     os2*)
15681       hardcode_libdir_flag_spec_F77='-L$libdir'
15682       hardcode_minus_L_F77=yes
15683       allow_undefined_flag_F77=unsupported
15684       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'
15685       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15686       ;;
15687
15688     osf3*)
15689       if test "$GCC" = yes; then
15690         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15691         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'
15692       else
15693         allow_undefined_flag_F77=' -expect_unresolved \*'
15694         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'
15695       fi
15696       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15697       hardcode_libdir_separator_F77=:
15698       ;;
15699
15700     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15701       if test "$GCC" = yes; then
15702         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15703         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'
15704         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15705       else
15706         allow_undefined_flag_F77=' -expect_unresolved \*'
15707         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'
15708         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~
15709         $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'
15710
15711         # Both c and cxx compiler support -rpath directly
15712         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15713       fi
15714       hardcode_libdir_separator_F77=:
15715       ;;
15716
15717     solaris*)
15718       no_undefined_flag_F77=' -z text'
15719       if test "$GCC" = yes; then
15720         wlarc='${wl}'
15721         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15722         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15723           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15724       else
15725         wlarc=''
15726         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15727         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15728         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15729       fi
15730       hardcode_libdir_flag_spec_F77='-R$libdir'
15731       hardcode_shlibpath_var_F77=no
15732       case $host_os in
15733       solaris2.[0-5] | solaris2.[0-5].*) ;;
15734       *)
15735         # The compiler driver will combine and reorder linker options,
15736         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15737         # but is careful enough not to reorder.
15738         # Supported since Solaris 2.6 (maybe 2.5.1?)
15739         if test "$GCC" = yes; then
15740           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15741         else
15742           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15743         fi
15744         ;;
15745       esac
15746       link_all_deplibs_F77=yes
15747       ;;
15748
15749     sunos4*)
15750       if test "x$host_vendor" = xsequent; then
15751         # Use $CC to link under sequent, because it throws in some extra .o
15752         # files that make .init and .fini sections work.
15753         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15754       else
15755         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15756       fi
15757       hardcode_libdir_flag_spec_F77='-L$libdir'
15758       hardcode_direct_F77=yes
15759       hardcode_minus_L_F77=yes
15760       hardcode_shlibpath_var_F77=no
15761       ;;
15762
15763     sysv4)
15764       case $host_vendor in
15765         sni)
15766           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15767           hardcode_direct_F77=yes # is this really true???
15768         ;;
15769         siemens)
15770           ## LD is ld it makes a PLAMLIB
15771           ## CC just makes a GrossModule.
15772           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15773           reload_cmds_F77='$CC -r -o $output$reload_objs'
15774           hardcode_direct_F77=no
15775         ;;
15776         motorola)
15777           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15779         ;;
15780       esac
15781       runpath_var='LD_RUN_PATH'
15782       hardcode_shlibpath_var_F77=no
15783       ;;
15784
15785     sysv4.3*)
15786       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15787       hardcode_shlibpath_var_F77=no
15788       export_dynamic_flag_spec_F77='-Bexport'
15789       ;;
15790
15791     sysv4*MP*)
15792       if test -d /usr/nec; then
15793         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15794         hardcode_shlibpath_var_F77=no
15795         runpath_var=LD_RUN_PATH
15796         hardcode_runpath_var=yes
15797         ld_shlibs_F77=yes
15798       fi
15799       ;;
15800
15801     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15802       no_undefined_flag_F77='${wl}-z,text'
15803       archive_cmds_need_lc_F77=no
15804       hardcode_shlibpath_var_F77=no
15805       runpath_var='LD_RUN_PATH'
15806
15807       if test "$GCC" = yes; then
15808         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15809         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15810       else
15811         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15812         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15813       fi
15814       ;;
15815
15816     sysv5* | sco3.2v5* | sco5v6*)
15817       # Note: We can NOT use -z defs as we might desire, because we do not
15818       # link with -lc, and that would cause any symbols used from libc to
15819       # always be unresolved, which means just about no library would
15820       # ever link correctly.  If we're not using GNU ld we use -z text
15821       # though, which does catch some bad symbols but isn't as heavy-handed
15822       # as -z defs.
15823       no_undefined_flag_F77='${wl}-z,text'
15824       allow_undefined_flag_F77='${wl}-z,nodefs'
15825       archive_cmds_need_lc_F77=no
15826       hardcode_shlibpath_var_F77=no
15827       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15828       hardcode_libdir_separator_F77=':'
15829       link_all_deplibs_F77=yes
15830       export_dynamic_flag_spec_F77='${wl}-Bexport'
15831       runpath_var='LD_RUN_PATH'
15832
15833       if test "$GCC" = yes; then
15834         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15835         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15836       else
15837         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15838         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15839       fi
15840       ;;
15841
15842     uts4*)
15843       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844       hardcode_libdir_flag_spec_F77='-L$libdir'
15845       hardcode_shlibpath_var_F77=no
15846       ;;
15847
15848     *)
15849       ld_shlibs_F77=no
15850       ;;
15851     esac
15852   fi
15853
15854 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15855 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15856 test "$ld_shlibs_F77" = no && can_build_shared=no
15857
15858 #
15859 # Do we need to explicitly link libc?
15860 #
15861 case "x$archive_cmds_need_lc_F77" in
15862 x|xyes)
15863   # Assume -lc should be added
15864   archive_cmds_need_lc_F77=yes
15865
15866   if test "$enable_shared" = yes && test "$GCC" = yes; then
15867     case $archive_cmds_F77 in
15868     *'~'*)
15869       # FIXME: we may have to deal with multi-command sequences.
15870       ;;
15871     '$CC '*)
15872       # Test whether the compiler implicitly links with -lc since on some
15873       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15874       # to ld, don't add -lc before -lgcc.
15875       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15876 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15877       $rm conftest*
15878       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15879
15880       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15881   (eval $ac_compile) 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); } 2>conftest.err; then
15885         soname=conftest
15886         lib=conftest
15887         libobjs=conftest.$ac_objext
15888         deplibs=
15889         wl=$lt_prog_compiler_wl_F77
15890         pic_flag=$lt_prog_compiler_pic_F77
15891         compiler_flags=-v
15892         linker_flags=-v
15893         verstring=
15894         output_objdir=.
15895         libname=conftest
15896         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15897         allow_undefined_flag_F77=
15898         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15899   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15900   ac_status=$?
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   (exit $ac_status); }
15903         then
15904           archive_cmds_need_lc_F77=no
15905         else
15906           archive_cmds_need_lc_F77=yes
15907         fi
15908         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15909       else
15910         cat conftest.err 1>&5
15911       fi
15912       $rm conftest*
15913       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15914 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15915       ;;
15916     esac
15917   fi
15918   ;;
15919 esac
15920
15921 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15922 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15923 library_names_spec=
15924 libname_spec='lib$name'
15925 soname_spec=
15926 shrext_cmds=".so"
15927 postinstall_cmds=
15928 postuninstall_cmds=
15929 finish_cmds=
15930 finish_eval=
15931 shlibpath_var=
15932 shlibpath_overrides_runpath=unknown
15933 version_type=none
15934 dynamic_linker="$host_os ld.so"
15935 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15936
15937 need_lib_prefix=unknown
15938 hardcode_into_libs=no
15939
15940 # when you set need_version to no, make sure it does not cause -set_version
15941 # flags to be left without arguments
15942 need_version=unknown
15943
15944 case $host_os in
15945 aix3*)
15946   version_type=linux
15947   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15948   shlibpath_var=LIBPATH
15949
15950   # AIX 3 has no versioning support, so we append a major version to the name.
15951   soname_spec='${libname}${release}${shared_ext}$major'
15952   ;;
15953
15954 aix[4-9]*)
15955   version_type=linux
15956   need_lib_prefix=no
15957   need_version=no
15958   hardcode_into_libs=yes
15959   if test "$host_cpu" = ia64; then
15960     # AIX 5 supports IA64
15961     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15962     shlibpath_var=LD_LIBRARY_PATH
15963   else
15964     # With GCC up to 2.95.x, collect2 would create an import file
15965     # for dependence libraries.  The import file would start with
15966     # the line `#! .'.  This would cause the generated library to
15967     # depend on `.', always an invalid library.  This was fixed in
15968     # development snapshots of GCC prior to 3.0.
15969     case $host_os in
15970       aix4 | aix4.[01] | aix4.[01].*)
15971       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15972            echo ' yes '
15973            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15974         :
15975       else
15976         can_build_shared=no
15977       fi
15978       ;;
15979     esac
15980     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15981     # soname into executable. Probably we can add versioning support to
15982     # collect2, so additional links can be useful in future.
15983     if test "$aix_use_runtimelinking" = yes; then
15984       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15985       # instead of lib<name>.a to let people know that these are not
15986       # typical AIX shared libraries.
15987       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988     else
15989       # We preserve .a as extension for shared libraries through AIX4.2
15990       # and later when we are not doing run time linking.
15991       library_names_spec='${libname}${release}.a $libname.a'
15992       soname_spec='${libname}${release}${shared_ext}$major'
15993     fi
15994     shlibpath_var=LIBPATH
15995   fi
15996   ;;
15997
15998 amigaos*)
15999   library_names_spec='$libname.ixlibrary $libname.a'
16000   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16001   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'
16002   ;;
16003
16004 beos*)
16005   library_names_spec='${libname}${shared_ext}'
16006   dynamic_linker="$host_os ld.so"
16007   shlibpath_var=LIBRARY_PATH
16008   ;;
16009
16010 bsdi[45]*)
16011   version_type=linux
16012   need_version=no
16013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16014   soname_spec='${libname}${release}${shared_ext}$major'
16015   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16016   shlibpath_var=LD_LIBRARY_PATH
16017   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16018   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16019   # the default ld.so.conf also contains /usr/contrib/lib and
16020   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16021   # libtool to hard-code these into programs
16022   ;;
16023
16024 cygwin* | mingw* | pw32*)
16025   version_type=windows
16026   shrext_cmds=".dll"
16027   need_version=no
16028   need_lib_prefix=no
16029
16030   case $GCC,$host_os in
16031   yes,cygwin* | yes,mingw* | yes,pw32*)
16032     library_names_spec='$libname.dll.a'
16033     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16034     postinstall_cmds='base_file=`basename \${file}`~
16035       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16036       dldir=$destdir/`dirname \$dlpath`~
16037       test -d \$dldir || mkdir -p \$dldir~
16038       $install_prog $dir/$dlname \$dldir/$dlname~
16039       chmod a+x \$dldir/$dlname'
16040     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16041       dlpath=$dir/\$dldll~
16042        $rm \$dlpath'
16043     shlibpath_overrides_runpath=yes
16044
16045     case $host_os in
16046     cygwin*)
16047       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16048       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16049       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16050       ;;
16051     mingw*)
16052       # MinGW DLLs use traditional 'lib' prefix
16053       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16054       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16055       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16056         # It is most probably a Windows format PATH printed by
16057         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16058         # path with ; separators, and with drive letters. We can handle the
16059         # drive letters (cygwin fileutils understands them), so leave them,
16060         # especially as we might pass files found there to a mingw objdump,
16061         # which wouldn't understand a cygwinified path. Ahh.
16062         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16063       else
16064         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16065       fi
16066       ;;
16067     pw32*)
16068       # pw32 DLLs use 'pw' prefix rather than 'lib'
16069       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16070       ;;
16071     esac
16072     ;;
16073
16074   *)
16075     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16076     ;;
16077   esac
16078   dynamic_linker='Win32 ld.exe'
16079   # FIXME: first we should search . and the directory the executable is in
16080   shlibpath_var=PATH
16081   ;;
16082
16083 darwin* | rhapsody*)
16084   dynamic_linker="$host_os dyld"
16085   version_type=darwin
16086   need_lib_prefix=no
16087   need_version=no
16088   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16089   soname_spec='${libname}${release}${major}$shared_ext'
16090   shlibpath_overrides_runpath=yes
16091   shlibpath_var=DYLD_LIBRARY_PATH
16092   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16093
16094   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16095   ;;
16096
16097 dgux*)
16098   version_type=linux
16099   need_lib_prefix=no
16100   need_version=no
16101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16102   soname_spec='${libname}${release}${shared_ext}$major'
16103   shlibpath_var=LD_LIBRARY_PATH
16104   ;;
16105
16106 freebsd1*)
16107   dynamic_linker=no
16108   ;;
16109
16110 freebsd* | dragonfly*)
16111   # DragonFly does not have aout.  When/if they implement a new
16112   # versioning mechanism, adjust this.
16113   if test -x /usr/bin/objformat; then
16114     objformat=`/usr/bin/objformat`
16115   else
16116     case $host_os in
16117     freebsd[123]*) objformat=aout ;;
16118     *) objformat=elf ;;
16119     esac
16120   fi
16121   version_type=freebsd-$objformat
16122   case $version_type in
16123     freebsd-elf*)
16124       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16125       need_version=no
16126       need_lib_prefix=no
16127       ;;
16128     freebsd-*)
16129       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16130       need_version=yes
16131       ;;
16132   esac
16133   shlibpath_var=LD_LIBRARY_PATH
16134   case $host_os in
16135   freebsd2*)
16136     shlibpath_overrides_runpath=yes
16137     ;;
16138   freebsd3.[01]* | freebsdelf3.[01]*)
16139     shlibpath_overrides_runpath=yes
16140     hardcode_into_libs=yes
16141     ;;
16142   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16143   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16144     shlibpath_overrides_runpath=no
16145     hardcode_into_libs=yes
16146     ;;
16147   *) # from 4.6 on, and DragonFly
16148     shlibpath_overrides_runpath=yes
16149     hardcode_into_libs=yes
16150     ;;
16151   esac
16152   ;;
16153
16154 gnu*)
16155   version_type=linux
16156   need_lib_prefix=no
16157   need_version=no
16158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16159   soname_spec='${libname}${release}${shared_ext}$major'
16160   shlibpath_var=LD_LIBRARY_PATH
16161   hardcode_into_libs=yes
16162   ;;
16163
16164 hpux9* | hpux10* | hpux11*)
16165   # Give a soname corresponding to the major version so that dld.sl refuses to
16166   # link against other versions.
16167   version_type=sunos
16168   need_lib_prefix=no
16169   need_version=no
16170   case $host_cpu in
16171   ia64*)
16172     shrext_cmds='.so'
16173     hardcode_into_libs=yes
16174     dynamic_linker="$host_os dld.so"
16175     shlibpath_var=LD_LIBRARY_PATH
16176     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16177     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178     soname_spec='${libname}${release}${shared_ext}$major'
16179     if test "X$HPUX_IA64_MODE" = X32; then
16180       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16181     else
16182       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16183     fi
16184     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16185     ;;
16186    hppa*64*)
16187      shrext_cmds='.sl'
16188      hardcode_into_libs=yes
16189      dynamic_linker="$host_os dld.sl"
16190      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16191      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16192      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193      soname_spec='${libname}${release}${shared_ext}$major'
16194      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16195      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16196      ;;
16197    *)
16198     shrext_cmds='.sl'
16199     dynamic_linker="$host_os dld.sl"
16200     shlibpath_var=SHLIB_PATH
16201     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203     soname_spec='${libname}${release}${shared_ext}$major'
16204     ;;
16205   esac
16206   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16207   postinstall_cmds='chmod 555 $lib'
16208   ;;
16209
16210 interix[3-9]*)
16211   version_type=linux
16212   need_lib_prefix=no
16213   need_version=no
16214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16215   soname_spec='${libname}${release}${shared_ext}$major'
16216   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16217   shlibpath_var=LD_LIBRARY_PATH
16218   shlibpath_overrides_runpath=no
16219   hardcode_into_libs=yes
16220   ;;
16221
16222 irix5* | irix6* | nonstopux*)
16223   case $host_os in
16224     nonstopux*) version_type=nonstopux ;;
16225     *)
16226         if test "$lt_cv_prog_gnu_ld" = yes; then
16227                 version_type=linux
16228         else
16229                 version_type=irix
16230         fi ;;
16231   esac
16232   need_lib_prefix=no
16233   need_version=no
16234   soname_spec='${libname}${release}${shared_ext}$major'
16235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16236   case $host_os in
16237   irix5* | nonstopux*)
16238     libsuff= shlibsuff=
16239     ;;
16240   *)
16241     case $LD in # libtool.m4 will add one of these switches to LD
16242     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16243       libsuff= shlibsuff= libmagic=32-bit;;
16244     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16245       libsuff=32 shlibsuff=N32 libmagic=N32;;
16246     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16247       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16248     *) libsuff= shlibsuff= libmagic=never-match;;
16249     esac
16250     ;;
16251   esac
16252   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16253   shlibpath_overrides_runpath=no
16254   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16255   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16256   hardcode_into_libs=yes
16257   ;;
16258
16259 # No shared lib support for Linux oldld, aout, or coff.
16260 linux*oldld* | linux*aout* | linux*coff*)
16261   dynamic_linker=no
16262   ;;
16263
16264 # This must be Linux ELF.
16265 linux* | k*bsd*-gnu)
16266   version_type=linux
16267   need_lib_prefix=no
16268   need_version=no
16269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270   soname_spec='${libname}${release}${shared_ext}$major'
16271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16272   shlibpath_var=LD_LIBRARY_PATH
16273   shlibpath_overrides_runpath=no
16274   # This implies no fast_install, which is unacceptable.
16275   # Some rework will be needed to allow for fast_install
16276   # before this can be enabled.
16277   hardcode_into_libs=yes
16278
16279   # Append ld.so.conf contents to the search path
16280   if test -f /etc/ld.so.conf; then
16281     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' ' '`
16282     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16283   fi
16284
16285   # We used to test for /lib/ld.so.1 and disable shared libraries on
16286   # powerpc, because MkLinux only supported shared libraries with the
16287   # GNU dynamic linker.  Since this was broken with cross compilers,
16288   # most powerpc-linux boxes support dynamic linking these days and
16289   # people can always --disable-shared, the test was removed, and we
16290   # assume the GNU/Linux dynamic linker is in use.
16291   dynamic_linker='GNU/Linux ld.so'
16292   ;;
16293
16294 netbsdelf*-gnu)
16295   version_type=linux
16296   need_lib_prefix=no
16297   need_version=no
16298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16299   soname_spec='${libname}${release}${shared_ext}$major'
16300   shlibpath_var=LD_LIBRARY_PATH
16301   shlibpath_overrides_runpath=no
16302   hardcode_into_libs=yes
16303   dynamic_linker='NetBSD ld.elf_so'
16304   ;;
16305
16306 netbsd*)
16307   version_type=sunos
16308   need_lib_prefix=no
16309   need_version=no
16310   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16312     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16313     dynamic_linker='NetBSD (a.out) ld.so'
16314   else
16315     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16316     soname_spec='${libname}${release}${shared_ext}$major'
16317     dynamic_linker='NetBSD ld.elf_so'
16318   fi
16319   shlibpath_var=LD_LIBRARY_PATH
16320   shlibpath_overrides_runpath=yes
16321   hardcode_into_libs=yes
16322   ;;
16323
16324 newsos6)
16325   version_type=linux
16326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16327   shlibpath_var=LD_LIBRARY_PATH
16328   shlibpath_overrides_runpath=yes
16329   ;;
16330
16331 nto-qnx*)
16332   version_type=linux
16333   need_lib_prefix=no
16334   need_version=no
16335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336   soname_spec='${libname}${release}${shared_ext}$major'
16337   shlibpath_var=LD_LIBRARY_PATH
16338   shlibpath_overrides_runpath=yes
16339   ;;
16340
16341 openbsd*)
16342   version_type=sunos
16343   sys_lib_dlsearch_path_spec="/usr/lib"
16344   need_lib_prefix=no
16345   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16346   case $host_os in
16347     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16348     *)                         need_version=no  ;;
16349   esac
16350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16352   shlibpath_var=LD_LIBRARY_PATH
16353   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16354     case $host_os in
16355       openbsd2.[89] | openbsd2.[89].*)
16356         shlibpath_overrides_runpath=no
16357         ;;
16358       *)
16359         shlibpath_overrides_runpath=yes
16360         ;;
16361       esac
16362   else
16363     shlibpath_overrides_runpath=yes
16364   fi
16365   ;;
16366
16367 os2*)
16368   libname_spec='$name'
16369   shrext_cmds=".dll"
16370   need_lib_prefix=no
16371   library_names_spec='$libname${shared_ext} $libname.a'
16372   dynamic_linker='OS/2 ld.exe'
16373   shlibpath_var=LIBPATH
16374   ;;
16375
16376 osf3* | osf4* | osf5*)
16377   version_type=osf
16378   need_lib_prefix=no
16379   need_version=no
16380   soname_spec='${libname}${release}${shared_ext}$major'
16381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16382   shlibpath_var=LD_LIBRARY_PATH
16383   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16384   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16385   ;;
16386
16387 rdos*)
16388   dynamic_linker=no
16389   ;;
16390
16391 solaris*)
16392   version_type=linux
16393   need_lib_prefix=no
16394   need_version=no
16395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396   soname_spec='${libname}${release}${shared_ext}$major'
16397   shlibpath_var=LD_LIBRARY_PATH
16398   shlibpath_overrides_runpath=yes
16399   hardcode_into_libs=yes
16400   # ldd complains unless libraries are executable
16401   postinstall_cmds='chmod +x $lib'
16402   ;;
16403
16404 sunos4*)
16405   version_type=sunos
16406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16407   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16408   shlibpath_var=LD_LIBRARY_PATH
16409   shlibpath_overrides_runpath=yes
16410   if test "$with_gnu_ld" = yes; then
16411     need_lib_prefix=no
16412   fi
16413   need_version=yes
16414   ;;
16415
16416 sysv4 | sysv4.3*)
16417   version_type=linux
16418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419   soname_spec='${libname}${release}${shared_ext}$major'
16420   shlibpath_var=LD_LIBRARY_PATH
16421   case $host_vendor in
16422     sni)
16423       shlibpath_overrides_runpath=no
16424       need_lib_prefix=no
16425       export_dynamic_flag_spec='${wl}-Blargedynsym'
16426       runpath_var=LD_RUN_PATH
16427       ;;
16428     siemens)
16429       need_lib_prefix=no
16430       ;;
16431     motorola)
16432       need_lib_prefix=no
16433       need_version=no
16434       shlibpath_overrides_runpath=no
16435       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16436       ;;
16437   esac
16438   ;;
16439
16440 sysv4*MP*)
16441   if test -d /usr/nec ;then
16442     version_type=linux
16443     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16444     soname_spec='$libname${shared_ext}.$major'
16445     shlibpath_var=LD_LIBRARY_PATH
16446   fi
16447   ;;
16448
16449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16450   version_type=freebsd-elf
16451   need_lib_prefix=no
16452   need_version=no
16453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16454   soname_spec='${libname}${release}${shared_ext}$major'
16455   shlibpath_var=LD_LIBRARY_PATH
16456   hardcode_into_libs=yes
16457   if test "$with_gnu_ld" = yes; then
16458     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16459     shlibpath_overrides_runpath=no
16460   else
16461     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16462     shlibpath_overrides_runpath=yes
16463     case $host_os in
16464       sco3.2v5*)
16465         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16466         ;;
16467     esac
16468   fi
16469   sys_lib_dlsearch_path_spec='/usr/lib'
16470   ;;
16471
16472 uts4*)
16473   version_type=linux
16474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475   soname_spec='${libname}${release}${shared_ext}$major'
16476   shlibpath_var=LD_LIBRARY_PATH
16477   ;;
16478
16479 *)
16480   dynamic_linker=no
16481   ;;
16482 esac
16483 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16484 echo "${ECHO_T}$dynamic_linker" >&6; }
16485 test "$dynamic_linker" = no && can_build_shared=no
16486
16487 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16488   echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16491 fi
16492
16493 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16495   echo $ECHO_N "(cached) $ECHO_C" >&6
16496 else
16497   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16498 fi
16499
16500 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16501
16502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16503 if test "$GCC" = yes; then
16504   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16505 fi
16506
16507 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16508 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16509 hardcode_action_F77=
16510 if test -n "$hardcode_libdir_flag_spec_F77" || \
16511    test -n "$runpath_var_F77" || \
16512    test "X$hardcode_automatic_F77" = "Xyes" ; then
16513
16514   # We can hardcode non-existant directories.
16515   if test "$hardcode_direct_F77" != no &&
16516      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16517      # have to relink, otherwise we might link with an installed library
16518      # when we should be linking with a yet-to-be-installed one
16519      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16520      test "$hardcode_minus_L_F77" != no; then
16521     # Linking always hardcodes the temporary library directory.
16522     hardcode_action_F77=relink
16523   else
16524     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16525     hardcode_action_F77=immediate
16526   fi
16527 else
16528   # We cannot hardcode anything, or else we can only hardcode existing
16529   # directories.
16530   hardcode_action_F77=unsupported
16531 fi
16532 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16533 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16534
16535 if test "$hardcode_action_F77" = relink; then
16536   # Fast installation is not supported
16537   enable_fast_install=no
16538 elif test "$shlibpath_overrides_runpath" = yes ||
16539      test "$enable_shared" = no; then
16540   # Fast installation is not necessary
16541   enable_fast_install=needless
16542 fi
16543
16544
16545 # The else clause should only fire when bootstrapping the
16546 # libtool distribution, otherwise you forgot to ship ltmain.sh
16547 # with your package, and you will get complaints that there are
16548 # no rules to generate ltmain.sh.
16549 if test -f "$ltmain"; then
16550   # See if we are running on zsh, and set the options which allow our commands through
16551   # without removal of \ escapes.
16552   if test -n "${ZSH_VERSION+set}" ; then
16553     setopt NO_GLOB_SUBST
16554   fi
16555   # Now quote all the things that may contain metacharacters while being
16556   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16557   # variables and quote the copies for generation of the libtool script.
16558   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16559     SED SHELL STRIP \
16560     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16561     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16562     deplibs_check_method reload_flag reload_cmds need_locks \
16563     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16564     lt_cv_sys_global_symbol_to_c_name_address \
16565     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16566     old_postinstall_cmds old_postuninstall_cmds \
16567     compiler_F77 \
16568     CC_F77 \
16569     LD_F77 \
16570     lt_prog_compiler_wl_F77 \
16571     lt_prog_compiler_pic_F77 \
16572     lt_prog_compiler_static_F77 \
16573     lt_prog_compiler_no_builtin_flag_F77 \
16574     export_dynamic_flag_spec_F77 \
16575     thread_safe_flag_spec_F77 \
16576     whole_archive_flag_spec_F77 \
16577     enable_shared_with_static_runtimes_F77 \
16578     old_archive_cmds_F77 \
16579     old_archive_from_new_cmds_F77 \
16580     predep_objects_F77 \
16581     postdep_objects_F77 \
16582     predeps_F77 \
16583     postdeps_F77 \
16584     compiler_lib_search_path_F77 \
16585     compiler_lib_search_dirs_F77 \
16586     archive_cmds_F77 \
16587     archive_expsym_cmds_F77 \
16588     postinstall_cmds_F77 \
16589     postuninstall_cmds_F77 \
16590     old_archive_from_expsyms_cmds_F77 \
16591     allow_undefined_flag_F77 \
16592     no_undefined_flag_F77 \
16593     export_symbols_cmds_F77 \
16594     hardcode_libdir_flag_spec_F77 \
16595     hardcode_libdir_flag_spec_ld_F77 \
16596     hardcode_libdir_separator_F77 \
16597     hardcode_automatic_F77 \
16598     module_cmds_F77 \
16599     module_expsym_cmds_F77 \
16600     lt_cv_prog_compiler_c_o_F77 \
16601     fix_srcfile_path_F77 \
16602     exclude_expsyms_F77 \
16603     include_expsyms_F77; do
16604
16605     case $var in
16606     old_archive_cmds_F77 | \
16607     old_archive_from_new_cmds_F77 | \
16608     archive_cmds_F77 | \
16609     archive_expsym_cmds_F77 | \
16610     module_cmds_F77 | \
16611     module_expsym_cmds_F77 | \
16612     old_archive_from_expsyms_cmds_F77 | \
16613     export_symbols_cmds_F77 | \
16614     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16615     postinstall_cmds | postuninstall_cmds | \
16616     old_postinstall_cmds | old_postuninstall_cmds | \
16617     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16618       # Double-quote double-evaled strings.
16619       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16620       ;;
16621     *)
16622       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16623       ;;
16624     esac
16625   done
16626
16627   case $lt_echo in
16628   *'\$0 --fallback-echo"')
16629     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16630     ;;
16631   esac
16632
16633 cfgfile="$ofile"
16634
16635   cat <<__EOF__ >> "$cfgfile"
16636 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16637
16638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16639
16640 # Shell to use when invoking shell scripts.
16641 SHELL=$lt_SHELL
16642
16643 # Whether or not to build shared libraries.
16644 build_libtool_libs=$enable_shared
16645
16646 # Whether or not to build static libraries.
16647 build_old_libs=$enable_static
16648
16649 # Whether or not to add -lc for building shared libraries.
16650 build_libtool_need_lc=$archive_cmds_need_lc_F77
16651
16652 # Whether or not to disallow shared libs when runtime libs are static
16653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16654
16655 # Whether or not to optimize for fast installation.
16656 fast_install=$enable_fast_install
16657
16658 # The host system.
16659 host_alias=$host_alias
16660 host=$host
16661 host_os=$host_os
16662
16663 # The build system.
16664 build_alias=$build_alias
16665 build=$build
16666 build_os=$build_os
16667
16668 # An echo program that does not interpret backslashes.
16669 echo=$lt_echo
16670
16671 # The archiver.
16672 AR=$lt_AR
16673 AR_FLAGS=$lt_AR_FLAGS
16674
16675 # A C compiler.
16676 LTCC=$lt_LTCC
16677
16678 # LTCC compiler flags.
16679 LTCFLAGS=$lt_LTCFLAGS
16680
16681 # A language-specific compiler.
16682 CC=$lt_compiler_F77
16683
16684 # Is the compiler the GNU C compiler?
16685 with_gcc=$GCC_F77
16686
16687 # An ERE matcher.
16688 EGREP=$lt_EGREP
16689
16690 # The linker used to build libraries.
16691 LD=$lt_LD_F77
16692
16693 # Whether we need hard or soft links.
16694 LN_S=$lt_LN_S
16695
16696 # A BSD-compatible nm program.
16697 NM=$lt_NM
16698
16699 # A symbol stripping program
16700 STRIP=$lt_STRIP
16701
16702 # Used to examine libraries when file_magic_cmd begins "file"
16703 MAGIC_CMD=$MAGIC_CMD
16704
16705 # Used on cygwin: DLL creation program.
16706 DLLTOOL="$DLLTOOL"
16707
16708 # Used on cygwin: object dumper.
16709 OBJDUMP="$OBJDUMP"
16710
16711 # Used on cygwin: assembler.
16712 AS="$AS"
16713
16714 # The name of the directory that contains temporary libtool files.
16715 objdir=$objdir
16716
16717 # How to create reloadable object files.
16718 reload_flag=$lt_reload_flag
16719 reload_cmds=$lt_reload_cmds
16720
16721 # How to pass a linker flag through the compiler.
16722 wl=$lt_lt_prog_compiler_wl_F77
16723
16724 # Object file suffix (normally "o").
16725 objext="$ac_objext"
16726
16727 # Old archive suffix (normally "a").
16728 libext="$libext"
16729
16730 # Shared library suffix (normally ".so").
16731 shrext_cmds='$shrext_cmds'
16732
16733 # Executable file suffix (normally "").
16734 exeext="$exeext"
16735
16736 # Additional compiler flags for building library objects.
16737 pic_flag=$lt_lt_prog_compiler_pic_F77
16738 pic_mode=$pic_mode
16739
16740 # What is the maximum length of a command?
16741 max_cmd_len=$lt_cv_sys_max_cmd_len
16742
16743 # Does compiler simultaneously support -c and -o options?
16744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16745
16746 # Must we lock files when doing compilation?
16747 need_locks=$lt_need_locks
16748
16749 # Do we need the lib prefix for modules?
16750 need_lib_prefix=$need_lib_prefix
16751
16752 # Do we need a version for libraries?
16753 need_version=$need_version
16754
16755 # Whether dlopen is supported.
16756 dlopen_support=$enable_dlopen
16757
16758 # Whether dlopen of programs is supported.
16759 dlopen_self=$enable_dlopen_self
16760
16761 # Whether dlopen of statically linked programs is supported.
16762 dlopen_self_static=$enable_dlopen_self_static
16763
16764 # Compiler flag to prevent dynamic linking.
16765 link_static_flag=$lt_lt_prog_compiler_static_F77
16766
16767 # Compiler flag to turn off builtin functions.
16768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16769
16770 # Compiler flag to allow reflexive dlopens.
16771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16772
16773 # Compiler flag to generate shared objects directly from archives.
16774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16775
16776 # Compiler flag to generate thread-safe objects.
16777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16778
16779 # Library versioning type.
16780 version_type=$version_type
16781
16782 # Format of library name prefix.
16783 libname_spec=$lt_libname_spec
16784
16785 # List of archive names.  First name is the real one, the rest are links.
16786 # The last name is the one that the linker finds with -lNAME.
16787 library_names_spec=$lt_library_names_spec
16788
16789 # The coded name of the library, if different from the real name.
16790 soname_spec=$lt_soname_spec
16791
16792 # Commands used to build and install an old-style archive.
16793 RANLIB=$lt_RANLIB
16794 old_archive_cmds=$lt_old_archive_cmds_F77
16795 old_postinstall_cmds=$lt_old_postinstall_cmds
16796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16797
16798 # Create an old-style archive from a shared archive.
16799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16800
16801 # Create a temporary old-style archive to link instead of a shared archive.
16802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16803
16804 # Commands used to build and install a shared archive.
16805 archive_cmds=$lt_archive_cmds_F77
16806 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16807 postinstall_cmds=$lt_postinstall_cmds
16808 postuninstall_cmds=$lt_postuninstall_cmds
16809
16810 # Commands used to build a loadable module (assumed same as above if empty)
16811 module_cmds=$lt_module_cmds_F77
16812 module_expsym_cmds=$lt_module_expsym_cmds_F77
16813
16814 # Commands to strip libraries.
16815 old_striplib=$lt_old_striplib
16816 striplib=$lt_striplib
16817
16818 # Dependencies to place before the objects being linked to create a
16819 # shared library.
16820 predep_objects=$lt_predep_objects_F77
16821
16822 # Dependencies to place after the objects being linked to create a
16823 # shared library.
16824 postdep_objects=$lt_postdep_objects_F77
16825
16826 # Dependencies to place before the objects being linked to create a
16827 # shared library.
16828 predeps=$lt_predeps_F77
16829
16830 # Dependencies to place after the objects being linked to create a
16831 # shared library.
16832 postdeps=$lt_postdeps_F77
16833
16834 # The directories searched by this compiler when creating a shared
16835 # library
16836 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16837
16838 # The library search path used internally by the compiler when linking
16839 # a shared library.
16840 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16841
16842 # Method to check whether dependent libraries are shared objects.
16843 deplibs_check_method=$lt_deplibs_check_method
16844
16845 # Command to use when deplibs_check_method == file_magic.
16846 file_magic_cmd=$lt_file_magic_cmd
16847
16848 # Flag that allows shared libraries with undefined symbols to be built.
16849 allow_undefined_flag=$lt_allow_undefined_flag_F77
16850
16851 # Flag that forces no undefined symbols.
16852 no_undefined_flag=$lt_no_undefined_flag_F77
16853
16854 # Commands used to finish a libtool library installation in a directory.
16855 finish_cmds=$lt_finish_cmds
16856
16857 # Same as above, but a single script fragment to be evaled but not shown.
16858 finish_eval=$lt_finish_eval
16859
16860 # Take the output of nm and produce a listing of raw symbols and C names.
16861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16862
16863 # Transform the output of nm in a proper C declaration
16864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16865
16866 # Transform the output of nm in a C name address pair
16867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16868
16869 # This is the shared library runtime path variable.
16870 runpath_var=$runpath_var
16871
16872 # This is the shared library path variable.
16873 shlibpath_var=$shlibpath_var
16874
16875 # Is shlibpath searched before the hard-coded library search path?
16876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16877
16878 # How to hardcode a shared library path into an executable.
16879 hardcode_action=$hardcode_action_F77
16880
16881 # Whether we should hardcode library paths into libraries.
16882 hardcode_into_libs=$hardcode_into_libs
16883
16884 # Flag to hardcode \$libdir into a binary during linking.
16885 # This must work even if \$libdir does not exist.
16886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16887
16888 # If ld is used when linking, flag to hardcode \$libdir into
16889 # a binary during linking. This must work even if \$libdir does
16890 # not exist.
16891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16892
16893 # Whether we need a single -rpath flag with a separated argument.
16894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16895
16896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16897 # resulting binary.
16898 hardcode_direct=$hardcode_direct_F77
16899
16900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16901 # resulting binary.
16902 hardcode_minus_L=$hardcode_minus_L_F77
16903
16904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16905 # the resulting binary.
16906 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16907
16908 # Set to yes if building a shared library automatically hardcodes DIR into the library
16909 # and all subsequent libraries and executables linked against it.
16910 hardcode_automatic=$hardcode_automatic_F77
16911
16912 # Variables whose values should be saved in libtool wrapper scripts and
16913 # restored at relink time.
16914 variables_saved_for_relink="$variables_saved_for_relink"
16915
16916 # Whether libtool must link a program against all its dependency libraries.
16917 link_all_deplibs=$link_all_deplibs_F77
16918
16919 # Compile-time system search path for libraries
16920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16921
16922 # Run-time system search path for libraries
16923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16924
16925 # Fix the shell variable \$srcfile for the compiler.
16926 fix_srcfile_path=$lt_fix_srcfile_path
16927
16928 # Set to yes if exported symbols are required.
16929 always_export_symbols=$always_export_symbols_F77
16930
16931 # The commands to list exported symbols.
16932 export_symbols_cmds=$lt_export_symbols_cmds_F77
16933
16934 # The commands to extract the exported symbol list from a shared archive.
16935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16936
16937 # Symbols that should not be listed in the preloaded symbols.
16938 exclude_expsyms=$lt_exclude_expsyms_F77
16939
16940 # Symbols that must always be exported.
16941 include_expsyms=$lt_include_expsyms_F77
16942
16943 # ### END LIBTOOL TAG CONFIG: $tagname
16944
16945 __EOF__
16946
16947
16948 else
16949   # If there is no Makefile yet, we rely on a make rule to execute
16950   # `config.status --recheck' to rerun these tests and create the
16951   # libtool script then.
16952   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16953   if test -f "$ltmain_in"; then
16954     test -f Makefile && make "$ltmain"
16955   fi
16956 fi
16957
16958
16959 ac_ext=c
16960 ac_cpp='$CPP $CPPFLAGS'
16961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16964
16965 CC="$lt_save_CC"
16966
16967         else
16968           tagname=""
16969         fi
16970         ;;
16971
16972       GCJ)
16973         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16974
16975
16976 # Source file extension for Java test sources.
16977 ac_ext=java
16978
16979 # Object file extension for compiled Java test sources.
16980 objext=o
16981 objext_GCJ=$objext
16982
16983 # Code to be used in simple compile tests
16984 lt_simple_compile_test_code="class foo {}"
16985
16986 # Code to be used in simple link tests
16987 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16988
16989 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16990
16991 # If no C compiler was specified, use CC.
16992 LTCC=${LTCC-"$CC"}
16993
16994 # If no C compiler flags were specified, use CFLAGS.
16995 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16996
16997 # Allow CC to be a program name with arguments.
16998 compiler=$CC
16999
17000
17001 # save warnings/boilerplate of simple test code
17002 ac_outfile=conftest.$ac_objext
17003 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17004 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17005 _lt_compiler_boilerplate=`cat conftest.err`
17006 $rm conftest*
17007
17008 ac_outfile=conftest.$ac_objext
17009 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17010 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17011 _lt_linker_boilerplate=`cat conftest.err`
17012 $rm -r conftest*
17013
17014
17015 # Allow CC to be a program name with arguments.
17016 lt_save_CC="$CC"
17017 CC=${GCJ-"gcj"}
17018 compiler=$CC
17019 compiler_GCJ=$CC
17020 for cc_temp in $compiler""; do
17021   case $cc_temp in
17022     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17023     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17024     \-*) ;;
17025     *) break;;
17026   esac
17027 done
17028 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17029
17030
17031 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17032 archive_cmds_need_lc_GCJ=no
17033
17034 old_archive_cmds_GCJ=$old_archive_cmds
17035
17036
17037 lt_prog_compiler_no_builtin_flag_GCJ=
17038
17039 if test "$GCC" = yes; then
17040   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17041
17042
17043 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17044 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17045 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17046   echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048   lt_cv_prog_compiler_rtti_exceptions=no
17049   ac_outfile=conftest.$ac_objext
17050    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17051    lt_compiler_flag="-fno-rtti -fno-exceptions"
17052    # Insert the option either (1) after the last *FLAGS variable, or
17053    # (2) before a word containing "conftest.", or (3) at the end.
17054    # Note that $ac_compile itself does not contain backslashes and begins
17055    # with a dollar sign (not a hyphen), so the echo should work correctly.
17056    # The option is referenced via a variable to avoid confusing sed.
17057    lt_compile=`echo "$ac_compile" | $SED \
17058    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17059    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17060    -e 's:$: $lt_compiler_flag:'`
17061    (eval echo "\"\$as_me:17061: $lt_compile\"" >&5)
17062    (eval "$lt_compile" 2>conftest.err)
17063    ac_status=$?
17064    cat conftest.err >&5
17065    echo "$as_me:17065: \$? = $ac_status" >&5
17066    if (exit $ac_status) && test -s "$ac_outfile"; then
17067      # The compiler can only warn and ignore the option if not recognized
17068      # So say no if there are warnings other than the usual output.
17069      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17070      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17071      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17072        lt_cv_prog_compiler_rtti_exceptions=yes
17073      fi
17074    fi
17075    $rm conftest*
17076
17077 fi
17078 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17079 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17080
17081 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17082     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17083 else
17084     :
17085 fi
17086
17087 fi
17088
17089 lt_prog_compiler_wl_GCJ=
17090 lt_prog_compiler_pic_GCJ=
17091 lt_prog_compiler_static_GCJ=
17092
17093 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17094 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17095
17096   if test "$GCC" = yes; then
17097     lt_prog_compiler_wl_GCJ='-Wl,'
17098     lt_prog_compiler_static_GCJ='-static'
17099
17100     case $host_os in
17101       aix*)
17102       # All AIX code is PIC.
17103       if test "$host_cpu" = ia64; then
17104         # AIX 5 now supports IA64 processor
17105         lt_prog_compiler_static_GCJ='-Bstatic'
17106       fi
17107       ;;
17108
17109     amigaos*)
17110       # FIXME: we need at least 68020 code to build shared libraries, but
17111       # adding the `-m68020' flag to GCC prevents building anything better,
17112       # like `-m68040'.
17113       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17114       ;;
17115
17116     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17117       # PIC is the default for these OSes.
17118       ;;
17119
17120     mingw* | cygwin* | pw32* | os2*)
17121       # This hack is so that the source file can tell whether it is being
17122       # built for inclusion in a dll (and should export symbols for example).
17123       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17124       # (--disable-auto-import) libraries
17125
17126       ;;
17127
17128     darwin* | rhapsody*)
17129       # PIC is the default on this platform
17130       # Common symbols not allowed in MH_DYLIB files
17131       lt_prog_compiler_pic_GCJ='-fno-common'
17132       ;;
17133
17134     interix[3-9]*)
17135       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17136       # Instead, we relocate shared libraries at runtime.
17137       ;;
17138
17139     msdosdjgpp*)
17140       # Just because we use GCC doesn't mean we suddenly get shared libraries
17141       # on systems that don't support them.
17142       lt_prog_compiler_can_build_shared_GCJ=no
17143       enable_shared=no
17144       ;;
17145
17146     sysv4*MP*)
17147       if test -d /usr/nec; then
17148         lt_prog_compiler_pic_GCJ=-Kconform_pic
17149       fi
17150       ;;
17151
17152     hpux*)
17153       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17154       # not for PA HP-UX.
17155       case $host_cpu in
17156       hppa*64*|ia64*)
17157         # +Z the default
17158         ;;
17159       *)
17160         lt_prog_compiler_pic_GCJ='-fPIC'
17161         ;;
17162       esac
17163       ;;
17164
17165     *)
17166       lt_prog_compiler_pic_GCJ='-fPIC'
17167       ;;
17168     esac
17169   else
17170     # PORTME Check for flag to pass linker flags through the system compiler.
17171     case $host_os in
17172     aix*)
17173       lt_prog_compiler_wl_GCJ='-Wl,'
17174       if test "$host_cpu" = ia64; then
17175         # AIX 5 now supports IA64 processor
17176         lt_prog_compiler_static_GCJ='-Bstatic'
17177       else
17178         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17179       fi
17180       ;;
17181       darwin*)
17182         # PIC is the default on this platform
17183         # Common symbols not allowed in MH_DYLIB files
17184        case $cc_basename in
17185          xlc*)
17186          lt_prog_compiler_pic_GCJ='-qnocommon'
17187          lt_prog_compiler_wl_GCJ='-Wl,'
17188          ;;
17189        esac
17190        ;;
17191
17192     mingw* | cygwin* | pw32* | os2*)
17193       # This hack is so that the source file can tell whether it is being
17194       # built for inclusion in a dll (and should export symbols for example).
17195
17196       ;;
17197
17198     hpux9* | hpux10* | hpux11*)
17199       lt_prog_compiler_wl_GCJ='-Wl,'
17200       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17201       # not for PA HP-UX.
17202       case $host_cpu in
17203       hppa*64*|ia64*)
17204         # +Z the default
17205         ;;
17206       *)
17207         lt_prog_compiler_pic_GCJ='+Z'
17208         ;;
17209       esac
17210       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17211       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17212       ;;
17213
17214     irix5* | irix6* | nonstopux*)
17215       lt_prog_compiler_wl_GCJ='-Wl,'
17216       # PIC (with -KPIC) is the default.
17217       lt_prog_compiler_static_GCJ='-non_shared'
17218       ;;
17219
17220     newsos6)
17221       lt_prog_compiler_pic_GCJ='-KPIC'
17222       lt_prog_compiler_static_GCJ='-Bstatic'
17223       ;;
17224
17225     linux* | k*bsd*-gnu)
17226       case $cc_basename in
17227       icc* | ecc*)
17228         lt_prog_compiler_wl_GCJ='-Wl,'
17229         lt_prog_compiler_pic_GCJ='-KPIC'
17230         lt_prog_compiler_static_GCJ='-static'
17231         ;;
17232       pgcc* | pgf77* | pgf90* | pgf95*)
17233         # Portland Group compilers (*not* the Pentium gcc compiler,
17234         # which looks to be a dead project)
17235         lt_prog_compiler_wl_GCJ='-Wl,'
17236         lt_prog_compiler_pic_GCJ='-fpic'
17237         lt_prog_compiler_static_GCJ='-Bstatic'
17238         ;;
17239       ccc*)
17240         lt_prog_compiler_wl_GCJ='-Wl,'
17241         # All Alpha code is PIC.
17242         lt_prog_compiler_static_GCJ='-non_shared'
17243         ;;
17244       *)
17245         case `$CC -V 2>&1 | sed 5q` in
17246         *Sun\ C*)
17247           # Sun C 5.9
17248           lt_prog_compiler_pic_GCJ='-KPIC'
17249           lt_prog_compiler_static_GCJ='-Bstatic'
17250           lt_prog_compiler_wl_GCJ='-Wl,'
17251           ;;
17252         *Sun\ F*)
17253           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17254           lt_prog_compiler_pic_GCJ='-KPIC'
17255           lt_prog_compiler_static_GCJ='-Bstatic'
17256           lt_prog_compiler_wl_GCJ=''
17257           ;;
17258         esac
17259         ;;
17260       esac
17261       ;;
17262
17263     osf3* | osf4* | osf5*)
17264       lt_prog_compiler_wl_GCJ='-Wl,'
17265       # All OSF/1 code is PIC.
17266       lt_prog_compiler_static_GCJ='-non_shared'
17267       ;;
17268
17269     rdos*)
17270       lt_prog_compiler_static_GCJ='-non_shared'
17271       ;;
17272
17273     solaris*)
17274       lt_prog_compiler_pic_GCJ='-KPIC'
17275       lt_prog_compiler_static_GCJ='-Bstatic'
17276       case $cc_basename in
17277       f77* | f90* | f95*)
17278         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17279       *)
17280         lt_prog_compiler_wl_GCJ='-Wl,';;
17281       esac
17282       ;;
17283
17284     sunos4*)
17285       lt_prog_compiler_wl_GCJ='-Qoption ld '
17286       lt_prog_compiler_pic_GCJ='-PIC'
17287       lt_prog_compiler_static_GCJ='-Bstatic'
17288       ;;
17289
17290     sysv4 | sysv4.2uw2* | sysv4.3*)
17291       lt_prog_compiler_wl_GCJ='-Wl,'
17292       lt_prog_compiler_pic_GCJ='-KPIC'
17293       lt_prog_compiler_static_GCJ='-Bstatic'
17294       ;;
17295
17296     sysv4*MP*)
17297       if test -d /usr/nec ;then
17298         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17299         lt_prog_compiler_static_GCJ='-Bstatic'
17300       fi
17301       ;;
17302
17303     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17304       lt_prog_compiler_wl_GCJ='-Wl,'
17305       lt_prog_compiler_pic_GCJ='-KPIC'
17306       lt_prog_compiler_static_GCJ='-Bstatic'
17307       ;;
17308
17309     unicos*)
17310       lt_prog_compiler_wl_GCJ='-Wl,'
17311       lt_prog_compiler_can_build_shared_GCJ=no
17312       ;;
17313
17314     uts4*)
17315       lt_prog_compiler_pic_GCJ='-pic'
17316       lt_prog_compiler_static_GCJ='-Bstatic'
17317       ;;
17318
17319     *)
17320       lt_prog_compiler_can_build_shared_GCJ=no
17321       ;;
17322     esac
17323   fi
17324
17325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17326 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17327
17328 #
17329 # Check to make sure the PIC flag actually works.
17330 #
17331 if test -n "$lt_prog_compiler_pic_GCJ"; then
17332
17333 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17334 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17335 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17336   echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338   lt_cv_prog_compiler_pic_works_GCJ=no
17339   ac_outfile=conftest.$ac_objext
17340    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17341    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17342    # Insert the option either (1) after the last *FLAGS variable, or
17343    # (2) before a word containing "conftest.", or (3) at the end.
17344    # Note that $ac_compile itself does not contain backslashes and begins
17345    # with a dollar sign (not a hyphen), so the echo should work correctly.
17346    # The option is referenced via a variable to avoid confusing sed.
17347    lt_compile=`echo "$ac_compile" | $SED \
17348    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17350    -e 's:$: $lt_compiler_flag:'`
17351    (eval echo "\"\$as_me:17351: $lt_compile\"" >&5)
17352    (eval "$lt_compile" 2>conftest.err)
17353    ac_status=$?
17354    cat conftest.err >&5
17355    echo "$as_me:17355: \$? = $ac_status" >&5
17356    if (exit $ac_status) && test -s "$ac_outfile"; then
17357      # The compiler can only warn and ignore the option if not recognized
17358      # So say no if there are warnings other than the usual output.
17359      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17360      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17361      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17362        lt_cv_prog_compiler_pic_works_GCJ=yes
17363      fi
17364    fi
17365    $rm conftest*
17366
17367 fi
17368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17369 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17370
17371 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17372     case $lt_prog_compiler_pic_GCJ in
17373      "" | " "*) ;;
17374      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17375      esac
17376 else
17377     lt_prog_compiler_pic_GCJ=
17378      lt_prog_compiler_can_build_shared_GCJ=no
17379 fi
17380
17381 fi
17382 case $host_os in
17383   # For platforms which do not support PIC, -DPIC is meaningless:
17384   *djgpp*)
17385     lt_prog_compiler_pic_GCJ=
17386     ;;
17387   *)
17388     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17389     ;;
17390 esac
17391
17392 #
17393 # Check to make sure the static flag actually works.
17394 #
17395 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17396 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17397 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17398 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17399   echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401   lt_cv_prog_compiler_static_works_GCJ=no
17402    save_LDFLAGS="$LDFLAGS"
17403    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17404    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17405    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17406      # The linker can only warn and ignore the option if not recognized
17407      # So say no if there are warnings
17408      if test -s conftest.err; then
17409        # Append any errors to the config.log.
17410        cat conftest.err 1>&5
17411        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17412        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17413        if diff conftest.exp conftest.er2 >/dev/null; then
17414          lt_cv_prog_compiler_static_works_GCJ=yes
17415        fi
17416      else
17417        lt_cv_prog_compiler_static_works_GCJ=yes
17418      fi
17419    fi
17420    $rm -r conftest*
17421    LDFLAGS="$save_LDFLAGS"
17422
17423 fi
17424 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17425 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17426
17427 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17428     :
17429 else
17430     lt_prog_compiler_static_GCJ=
17431 fi
17432
17433
17434 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17435 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17436 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17437   echo $ECHO_N "(cached) $ECHO_C" >&6
17438 else
17439   lt_cv_prog_compiler_c_o_GCJ=no
17440    $rm -r conftest 2>/dev/null
17441    mkdir conftest
17442    cd conftest
17443    mkdir out
17444    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17445
17446    lt_compiler_flag="-o out/conftest2.$ac_objext"
17447    # Insert the option either (1) after the last *FLAGS variable, or
17448    # (2) before a word containing "conftest.", or (3) at the end.
17449    # Note that $ac_compile itself does not contain backslashes and begins
17450    # with a dollar sign (not a hyphen), so the echo should work correctly.
17451    lt_compile=`echo "$ac_compile" | $SED \
17452    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17453    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17454    -e 's:$: $lt_compiler_flag:'`
17455    (eval echo "\"\$as_me:17455: $lt_compile\"" >&5)
17456    (eval "$lt_compile" 2>out/conftest.err)
17457    ac_status=$?
17458    cat out/conftest.err >&5
17459    echo "$as_me:17459: \$? = $ac_status" >&5
17460    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17461    then
17462      # The compiler can only warn and ignore the option if not recognized
17463      # So say no if there are warnings
17464      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17465      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17466      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17467        lt_cv_prog_compiler_c_o_GCJ=yes
17468      fi
17469    fi
17470    chmod u+w . 2>&5
17471    $rm conftest*
17472    # SGI C++ compiler will create directory out/ii_files/ for
17473    # template instantiation
17474    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17475    $rm out/* && rmdir out
17476    cd ..
17477    rmdir conftest
17478    $rm conftest*
17479
17480 fi
17481 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17483
17484
17485 hard_links="nottested"
17486 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17487   # do not overwrite the value of need_locks provided by the user
17488   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17490   hard_links=yes
17491   $rm conftest*
17492   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17493   touch conftest.a
17494   ln conftest.a conftest.b 2>&5 || hard_links=no
17495   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17496   { echo "$as_me:$LINENO: result: $hard_links" >&5
17497 echo "${ECHO_T}$hard_links" >&6; }
17498   if test "$hard_links" = no; then
17499     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17501     need_locks=warn
17502   fi
17503 else
17504   need_locks=no
17505 fi
17506
17507 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17509
17510   runpath_var=
17511   allow_undefined_flag_GCJ=
17512   enable_shared_with_static_runtimes_GCJ=no
17513   archive_cmds_GCJ=
17514   archive_expsym_cmds_GCJ=
17515   old_archive_From_new_cmds_GCJ=
17516   old_archive_from_expsyms_cmds_GCJ=
17517   export_dynamic_flag_spec_GCJ=
17518   whole_archive_flag_spec_GCJ=
17519   thread_safe_flag_spec_GCJ=
17520   hardcode_libdir_flag_spec_GCJ=
17521   hardcode_libdir_flag_spec_ld_GCJ=
17522   hardcode_libdir_separator_GCJ=
17523   hardcode_direct_GCJ=no
17524   hardcode_minus_L_GCJ=no
17525   hardcode_shlibpath_var_GCJ=unsupported
17526   link_all_deplibs_GCJ=unknown
17527   hardcode_automatic_GCJ=no
17528   module_cmds_GCJ=
17529   module_expsym_cmds_GCJ=
17530   always_export_symbols_GCJ=no
17531   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17532   # include_expsyms should be a list of space-separated symbols to be *always*
17533   # included in the symbol list
17534   include_expsyms_GCJ=
17535   # exclude_expsyms can be an extended regexp of symbols to exclude
17536   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17537   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17538   # as well as any symbol that contains `d'.
17539   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17540   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17541   # platforms (ab)use it in PIC code, but their linkers get confused if
17542   # the symbol is explicitly referenced.  Since portable code cannot
17543   # rely on this symbol name, it's probably fine to never include it in
17544   # preloaded symbol tables.
17545   # Exclude shared library initialization/finalization symbols.
17546   extract_expsyms_cmds=
17547   # Just being paranoid about ensuring that cc_basename is set.
17548   for cc_temp in $compiler""; do
17549   case $cc_temp in
17550     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17551     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17552     \-*) ;;
17553     *) break;;
17554   esac
17555 done
17556 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17557
17558   case $host_os in
17559   cygwin* | mingw* | pw32*)
17560     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17561     # When not using gcc, we currently assume that we are using
17562     # Microsoft Visual C++.
17563     if test "$GCC" != yes; then
17564       with_gnu_ld=no
17565     fi
17566     ;;
17567   interix*)
17568     # we just hope/assume this is gcc and not c89 (= MSVC++)
17569     with_gnu_ld=yes
17570     ;;
17571   openbsd*)
17572     with_gnu_ld=no
17573     ;;
17574   esac
17575
17576   ld_shlibs_GCJ=yes
17577   if test "$with_gnu_ld" = yes; then
17578     # If archive_cmds runs LD, not CC, wlarc should be empty
17579     wlarc='${wl}'
17580
17581     # Set some defaults for GNU ld with shared library support. These
17582     # are reset later if shared libraries are not supported. Putting them
17583     # here allows them to be overridden if necessary.
17584     runpath_var=LD_RUN_PATH
17585     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17586     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17587     # ancient GNU ld didn't support --whole-archive et. al.
17588     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17589         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17590       else
17591         whole_archive_flag_spec_GCJ=
17592     fi
17593     supports_anon_versioning=no
17594     case `$LD -v 2>/dev/null` in
17595       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17596       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17597       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17598       *\ 2.11.*) ;; # other 2.11 versions
17599       *) supports_anon_versioning=yes ;;
17600     esac
17601
17602     # See if GNU ld supports shared libraries.
17603     case $host_os in
17604     aix[3-9]*)
17605       # On AIX/PPC, the GNU linker is very broken
17606       if test "$host_cpu" != ia64; then
17607         ld_shlibs_GCJ=no
17608         cat <<EOF 1>&2
17609
17610 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17611 *** to be unable to reliably create shared libraries on AIX.
17612 *** Therefore, libtool is disabling shared libraries support.  If you
17613 *** really care for shared libraries, you may want to modify your PATH
17614 *** so that a non-GNU linker is found, and then restart.
17615
17616 EOF
17617       fi
17618       ;;
17619
17620     amigaos*)
17621       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)'
17622       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17623       hardcode_minus_L_GCJ=yes
17624
17625       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17626       # that the semantics of dynamic libraries on AmigaOS, at least up
17627       # to version 4, is to share data among multiple programs linked
17628       # with the same dynamic library.  Since this doesn't match the
17629       # behavior of shared libraries on other platforms, we can't use
17630       # them.
17631       ld_shlibs_GCJ=no
17632       ;;
17633
17634     beos*)
17635       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17636         allow_undefined_flag_GCJ=unsupported
17637         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17638         # support --undefined.  This deserves some investigation.  FIXME
17639         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17640       else
17641         ld_shlibs_GCJ=no
17642       fi
17643       ;;
17644
17645     cygwin* | mingw* | pw32*)
17646       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17647       # as there is no search path for DLLs.
17648       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17649       allow_undefined_flag_GCJ=unsupported
17650       always_export_symbols_GCJ=no
17651       enable_shared_with_static_runtimes_GCJ=yes
17652       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17653
17654       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17655         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17656         # If the export-symbols file already is a .def file (1st line
17657         # is EXPORTS), use it as is; otherwise, prepend...
17658         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17659           cp $export_symbols $output_objdir/$soname.def;
17660         else
17661           echo EXPORTS > $output_objdir/$soname.def;
17662           cat $export_symbols >> $output_objdir/$soname.def;
17663         fi~
17664         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17665       else
17666         ld_shlibs_GCJ=no
17667       fi
17668       ;;
17669
17670     interix[3-9]*)
17671       hardcode_direct_GCJ=no
17672       hardcode_shlibpath_var_GCJ=no
17673       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17674       export_dynamic_flag_spec_GCJ='${wl}-E'
17675       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17676       # Instead, shared libraries are loaded at an image base (0x10000000 by
17677       # default) and relocated if they conflict, which is a slow very memory
17678       # consuming and fragmenting process.  To avoid this, we pick a random,
17679       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17680       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17681       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'
17682       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'
17683       ;;
17684
17685     gnu* | linux* | k*bsd*-gnu)
17686       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17687         tmp_addflag=
17688         case $cc_basename,$host_cpu in
17689         pgcc*)                          # Portland Group C compiler
17690           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'
17691           tmp_addflag=' $pic_flag'
17692           ;;
17693         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17694           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'
17695           tmp_addflag=' $pic_flag -Mnomain' ;;
17696         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17697           tmp_addflag=' -i_dynamic' ;;
17698         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17699           tmp_addflag=' -i_dynamic -nofor_main' ;;
17700         ifc* | ifort*)                  # Intel Fortran compiler
17701           tmp_addflag=' -nofor_main' ;;
17702         esac
17703         case `$CC -V 2>&1 | sed 5q` in
17704         *Sun\ C*)                       # Sun C 5.9
17705           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'
17706           tmp_sharedflag='-G' ;;
17707         *Sun\ F*)                       # Sun Fortran 8.3
17708           tmp_sharedflag='-G' ;;
17709         *)
17710           tmp_sharedflag='-shared' ;;
17711         esac
17712         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17713
17714         if test $supports_anon_versioning = yes; then
17715           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17716   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17717   $echo "local: *; };" >> $output_objdir/$libname.ver~
17718           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17719         fi
17720         link_all_deplibs_GCJ=no
17721       else
17722         ld_shlibs_GCJ=no
17723       fi
17724       ;;
17725
17726     netbsd* | netbsdelf*-gnu)
17727       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17728         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17729         wlarc=
17730       else
17731         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17732         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17733       fi
17734       ;;
17735
17736     solaris*)
17737       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17738         ld_shlibs_GCJ=no
17739         cat <<EOF 1>&2
17740
17741 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17742 *** create shared libraries on Solaris systems.  Therefore, libtool
17743 *** is disabling shared libraries support.  We urge you to upgrade GNU
17744 *** binutils to release 2.9.1 or newer.  Another option is to modify
17745 *** your PATH or compiler configuration so that the native linker is
17746 *** used, and then restart.
17747
17748 EOF
17749       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17750         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17751         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17752       else
17753         ld_shlibs_GCJ=no
17754       fi
17755       ;;
17756
17757     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17758       case `$LD -v 2>&1` in
17759         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17760         ld_shlibs_GCJ=no
17761         cat <<_LT_EOF 1>&2
17762
17763 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17764 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17765 *** is disabling shared libraries support.  We urge you to upgrade GNU
17766 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17767 *** your PATH or compiler configuration so that the native linker is
17768 *** used, and then restart.
17769
17770 _LT_EOF
17771         ;;
17772         *)
17773           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17774             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17775             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17776             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17777           else
17778             ld_shlibs_GCJ=no
17779           fi
17780         ;;
17781       esac
17782       ;;
17783
17784     sunos4*)
17785       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17786       wlarc=
17787       hardcode_direct_GCJ=yes
17788       hardcode_shlibpath_var_GCJ=no
17789       ;;
17790
17791     *)
17792       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17793         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17794         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17795       else
17796         ld_shlibs_GCJ=no
17797       fi
17798       ;;
17799     esac
17800
17801     if test "$ld_shlibs_GCJ" = no; then
17802       runpath_var=
17803       hardcode_libdir_flag_spec_GCJ=
17804       export_dynamic_flag_spec_GCJ=
17805       whole_archive_flag_spec_GCJ=
17806     fi
17807   else
17808     # PORTME fill in a description of your system's linker (not GNU ld)
17809     case $host_os in
17810     aix3*)
17811       allow_undefined_flag_GCJ=unsupported
17812       always_export_symbols_GCJ=yes
17813       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'
17814       # Note: this linker hardcodes the directories in LIBPATH if there
17815       # are no directories specified by -L.
17816       hardcode_minus_L_GCJ=yes
17817       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17818         # Neither direct hardcoding nor static linking is supported with a
17819         # broken collect2.
17820         hardcode_direct_GCJ=unsupported
17821       fi
17822       ;;
17823
17824     aix[4-9]*)
17825       if test "$host_cpu" = ia64; then
17826         # On IA64, the linker does run time linking by default, so we don't
17827         # have to do anything special.
17828         aix_use_runtimelinking=no
17829         exp_sym_flag='-Bexport'
17830         no_entry_flag=""
17831       else
17832         # If we're using GNU nm, then we don't want the "-C" option.
17833         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17834         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17835           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'
17836         else
17837           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'
17838         fi
17839         aix_use_runtimelinking=no
17840
17841         # Test if we are trying to use run time linking or normal
17842         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17843         # need to do runtime linking.
17844         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17845           for ld_flag in $LDFLAGS; do
17846           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17847             aix_use_runtimelinking=yes
17848             break
17849           fi
17850           done
17851           ;;
17852         esac
17853
17854         exp_sym_flag='-bexport'
17855         no_entry_flag='-bnoentry'
17856       fi
17857
17858       # When large executables or shared objects are built, AIX ld can
17859       # have problems creating the table of contents.  If linking a library
17860       # or program results in "error TOC overflow" add -mminimal-toc to
17861       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17862       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17863
17864       archive_cmds_GCJ=''
17865       hardcode_direct_GCJ=yes
17866       hardcode_libdir_separator_GCJ=':'
17867       link_all_deplibs_GCJ=yes
17868
17869       if test "$GCC" = yes; then
17870         case $host_os in aix4.[012]|aix4.[012].*)
17871         # We only want to do this on AIX 4.2 and lower, the check
17872         # below for broken collect2 doesn't work under 4.3+
17873           collect2name=`${CC} -print-prog-name=collect2`
17874           if test -f "$collect2name" && \
17875            strings "$collect2name" | grep resolve_lib_name >/dev/null
17876           then
17877           # We have reworked collect2
17878           :
17879           else
17880           # We have old collect2
17881           hardcode_direct_GCJ=unsupported
17882           # It fails to find uninstalled libraries when the uninstalled
17883           # path is not listed in the libpath.  Setting hardcode_minus_L
17884           # to unsupported forces relinking
17885           hardcode_minus_L_GCJ=yes
17886           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17887           hardcode_libdir_separator_GCJ=
17888           fi
17889           ;;
17890         esac
17891         shared_flag='-shared'
17892         if test "$aix_use_runtimelinking" = yes; then
17893           shared_flag="$shared_flag "'${wl}-G'
17894         fi
17895       else
17896         # not using gcc
17897         if test "$host_cpu" = ia64; then
17898         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17899         # chokes on -Wl,-G. The following line is correct:
17900           shared_flag='-G'
17901         else
17902           if test "$aix_use_runtimelinking" = yes; then
17903             shared_flag='${wl}-G'
17904           else
17905             shared_flag='${wl}-bM:SRE'
17906           fi
17907         fi
17908       fi
17909
17910       # It seems that -bexpall does not export symbols beginning with
17911       # underscore (_), so it is better to generate a list of symbols to export.
17912       always_export_symbols_GCJ=yes
17913       if test "$aix_use_runtimelinking" = yes; then
17914         # Warning - without using the other runtime loading flags (-brtl),
17915         # -berok will link without error, but may produce a broken library.
17916         allow_undefined_flag_GCJ='-berok'
17917        # Determine the default libpath from the value encoded in an empty executable.
17918        cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h.  */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h.  */
17924
17925 int
17926 main ()
17927 {
17928
17929   ;
17930   return 0;
17931 }
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (ac_try="$ac_link"
17935 case "(($ac_try" in
17936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937   *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940   (eval "$ac_link") 2>conftest.er1
17941   ac_status=$?
17942   grep -v '^ *+' conftest.er1 >conftest.err
17943   rm -f conftest.er1
17944   cat conftest.err >&5
17945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946   (exit $ac_status); } && {
17947          test -z "$ac_c_werror_flag" ||
17948          test ! -s conftest.err
17949        } && test -s conftest$ac_exeext &&
17950        $as_test_x conftest$ac_exeext; then
17951
17952 lt_aix_libpath_sed='
17953     /Import File Strings/,/^$/ {
17954         /^0/ {
17955             s/^0  *\(.*\)$/\1/
17956             p
17957         }
17958     }'
17959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17960 # Check for a 64-bit object if we didn't find anything.
17961 if test -z "$aix_libpath"; then
17962   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17963 fi
17964 else
17965   echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968
17969 fi
17970
17971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17972       conftest$ac_exeext conftest.$ac_ext
17973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17974
17975        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17976         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"
17977        else
17978         if test "$host_cpu" = ia64; then
17979           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17980           allow_undefined_flag_GCJ="-z nodefs"
17981           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"
17982         else
17983          # Determine the default libpath from the value encoded in an empty executable.
17984          cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h.  */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h.  */
17990
17991 int
17992 main ()
17993 {
17994
17995   ;
17996   return 0;
17997 }
17998 _ACEOF
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (ac_try="$ac_link"
18001 case "(($ac_try" in
18002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003   *) ac_try_echo=$ac_try;;
18004 esac
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006   (eval "$ac_link") 2>conftest.er1
18007   ac_status=$?
18008   grep -v '^ *+' conftest.er1 >conftest.err
18009   rm -f conftest.er1
18010   cat conftest.err >&5
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); } && {
18013          test -z "$ac_c_werror_flag" ||
18014          test ! -s conftest.err
18015        } && test -s conftest$ac_exeext &&
18016        $as_test_x conftest$ac_exeext; then
18017
18018 lt_aix_libpath_sed='
18019     /Import File Strings/,/^$/ {
18020         /^0/ {
18021             s/^0  *\(.*\)$/\1/
18022             p
18023         }
18024     }'
18025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18026 # Check for a 64-bit object if we didn't find anything.
18027 if test -z "$aix_libpath"; then
18028   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18029 fi
18030 else
18031   echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18033
18034
18035 fi
18036
18037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18038       conftest$ac_exeext conftest.$ac_ext
18039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18040
18041          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18042           # Warning - without using the other run time loading flags,
18043           # -berok will link without error, but may produce a broken library.
18044           no_undefined_flag_GCJ=' ${wl}-bernotok'
18045           allow_undefined_flag_GCJ=' ${wl}-berok'
18046           # Exported symbols can be pulled into shared objects from archives
18047           whole_archive_flag_spec_GCJ='$convenience'
18048           archive_cmds_need_lc_GCJ=yes
18049           # This is similar to how AIX traditionally builds its shared libraries.
18050           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'
18051         fi
18052       fi
18053       ;;
18054
18055     amigaos*)
18056       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)'
18057       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18058       hardcode_minus_L_GCJ=yes
18059       # see comment about different semantics on the GNU ld section
18060       ld_shlibs_GCJ=no
18061       ;;
18062
18063     bsdi[45]*)
18064       export_dynamic_flag_spec_GCJ=-rdynamic
18065       ;;
18066
18067     cygwin* | mingw* | pw32*)
18068       # When not using gcc, we currently assume that we are using
18069       # Microsoft Visual C++.
18070       # hardcode_libdir_flag_spec is actually meaningless, as there is
18071       # no search path for DLLs.
18072       hardcode_libdir_flag_spec_GCJ=' '
18073       allow_undefined_flag_GCJ=unsupported
18074       # Tell ltmain to make .lib files, not .a files.
18075       libext=lib
18076       # Tell ltmain to make .dll files, not .so files.
18077       shrext_cmds=".dll"
18078       # FIXME: Setting linknames here is a bad hack.
18079       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18080       # The linker will automatically build a .lib file if we build a DLL.
18081       old_archive_From_new_cmds_GCJ='true'
18082       # FIXME: Should let the user specify the lib program.
18083       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18084       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18085       enable_shared_with_static_runtimes_GCJ=yes
18086       ;;
18087
18088     darwin* | rhapsody*)
18089       case $host_os in
18090         rhapsody* | darwin1.[012])
18091          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18092          ;;
18093        *) # Darwin 1.3 on
18094          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18095            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18096          else
18097            case ${MACOSX_DEPLOYMENT_TARGET} in
18098              10.[012])
18099                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18100                ;;
18101              10.*)
18102                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18103                ;;
18104            esac
18105          fi
18106          ;;
18107       esac
18108       archive_cmds_need_lc_GCJ=no
18109       hardcode_direct_GCJ=no
18110       hardcode_automatic_GCJ=yes
18111       hardcode_shlibpath_var_GCJ=unsupported
18112       whole_archive_flag_spec_GCJ=''
18113       link_all_deplibs_GCJ=yes
18114     if test "$GCC" = yes ; then
18115         output_verbose_link_cmd='echo'
18116         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}"
18117         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18118         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}"
18119         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}"
18120     else
18121       case $cc_basename in
18122         xlc*)
18123          output_verbose_link_cmd='echo'
18124          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18125          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18126           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18127          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}'
18128           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}'
18129           ;;
18130        *)
18131          ld_shlibs_GCJ=no
18132           ;;
18133       esac
18134     fi
18135       ;;
18136
18137     dgux*)
18138       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18139       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18140       hardcode_shlibpath_var_GCJ=no
18141       ;;
18142
18143     freebsd1*)
18144       ld_shlibs_GCJ=no
18145       ;;
18146
18147     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18148     # support.  Future versions do this automatically, but an explicit c++rt0.o
18149     # does not break anything, and helps significantly (at the cost of a little
18150     # extra space).
18151     freebsd2.2*)
18152       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18153       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18154       hardcode_direct_GCJ=yes
18155       hardcode_shlibpath_var_GCJ=no
18156       ;;
18157
18158     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18159     freebsd2*)
18160       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18161       hardcode_direct_GCJ=yes
18162       hardcode_minus_L_GCJ=yes
18163       hardcode_shlibpath_var_GCJ=no
18164       ;;
18165
18166     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18167     freebsd* | dragonfly*)
18168       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18169       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18170       hardcode_direct_GCJ=yes
18171       hardcode_shlibpath_var_GCJ=no
18172       ;;
18173
18174     hpux9*)
18175       if test "$GCC" = yes; then
18176         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'
18177       else
18178         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'
18179       fi
18180       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18181       hardcode_libdir_separator_GCJ=:
18182       hardcode_direct_GCJ=yes
18183
18184       # hardcode_minus_L: Not really in the search PATH,
18185       # but as the default location of the library.
18186       hardcode_minus_L_GCJ=yes
18187       export_dynamic_flag_spec_GCJ='${wl}-E'
18188       ;;
18189
18190     hpux10*)
18191       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18192         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18193       else
18194         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18195       fi
18196       if test "$with_gnu_ld" = no; then
18197         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18198         hardcode_libdir_separator_GCJ=:
18199
18200         hardcode_direct_GCJ=yes
18201         export_dynamic_flag_spec_GCJ='${wl}-E'
18202
18203         # hardcode_minus_L: Not really in the search PATH,
18204         # but as the default location of the library.
18205         hardcode_minus_L_GCJ=yes
18206       fi
18207       ;;
18208
18209     hpux11*)
18210       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18211         case $host_cpu in
18212         hppa*64*)
18213           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18214           ;;
18215         ia64*)
18216           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18217           ;;
18218         *)
18219           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18220           ;;
18221         esac
18222       else
18223         case $host_cpu in
18224         hppa*64*)
18225           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18226           ;;
18227         ia64*)
18228           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18229           ;;
18230         *)
18231           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18232           ;;
18233         esac
18234       fi
18235       if test "$with_gnu_ld" = no; then
18236         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18237         hardcode_libdir_separator_GCJ=:
18238
18239         case $host_cpu in
18240         hppa*64*|ia64*)
18241           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18242           hardcode_direct_GCJ=no
18243           hardcode_shlibpath_var_GCJ=no
18244           ;;
18245         *)
18246           hardcode_direct_GCJ=yes
18247           export_dynamic_flag_spec_GCJ='${wl}-E'
18248
18249           # hardcode_minus_L: Not really in the search PATH,
18250           # but as the default location of the library.
18251           hardcode_minus_L_GCJ=yes
18252           ;;
18253         esac
18254       fi
18255       ;;
18256
18257     irix5* | irix6* | nonstopux*)
18258       if test "$GCC" = yes; then
18259         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'
18260       else
18261         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'
18262         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18263       fi
18264       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18265       hardcode_libdir_separator_GCJ=:
18266       link_all_deplibs_GCJ=yes
18267       ;;
18268
18269     netbsd* | netbsdelf*-gnu)
18270       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18271         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18272       else
18273         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18274       fi
18275       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18276       hardcode_direct_GCJ=yes
18277       hardcode_shlibpath_var_GCJ=no
18278       ;;
18279
18280     newsos6)
18281       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18282       hardcode_direct_GCJ=yes
18283       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18284       hardcode_libdir_separator_GCJ=:
18285       hardcode_shlibpath_var_GCJ=no
18286       ;;
18287
18288     openbsd*)
18289       if test -f /usr/libexec/ld.so; then
18290         hardcode_direct_GCJ=yes
18291         hardcode_shlibpath_var_GCJ=no
18292         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18293           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18294           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18295           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18296           export_dynamic_flag_spec_GCJ='${wl}-E'
18297         else
18298           case $host_os in
18299            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18300              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18301              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18302              ;;
18303            *)
18304              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18305              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18306              ;;
18307           esac
18308         fi
18309       else
18310         ld_shlibs_GCJ=no
18311       fi
18312       ;;
18313
18314     os2*)
18315       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18316       hardcode_minus_L_GCJ=yes
18317       allow_undefined_flag_GCJ=unsupported
18318       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'
18319       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18320       ;;
18321
18322     osf3*)
18323       if test "$GCC" = yes; then
18324         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18325         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'
18326       else
18327         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18328         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'
18329       fi
18330       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18331       hardcode_libdir_separator_GCJ=:
18332       ;;
18333
18334     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18335       if test "$GCC" = yes; then
18336         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18337         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'
18338         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18339       else
18340         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18341         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'
18342         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~
18343         $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'
18344
18345         # Both c and cxx compiler support -rpath directly
18346         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18347       fi
18348       hardcode_libdir_separator_GCJ=:
18349       ;;
18350
18351     solaris*)
18352       no_undefined_flag_GCJ=' -z text'
18353       if test "$GCC" = yes; then
18354         wlarc='${wl}'
18355         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18356         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18357           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18358       else
18359         wlarc=''
18360         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18361         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18362         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18363       fi
18364       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18365       hardcode_shlibpath_var_GCJ=no
18366       case $host_os in
18367       solaris2.[0-5] | solaris2.[0-5].*) ;;
18368       *)
18369         # The compiler driver will combine and reorder linker options,
18370         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18371         # but is careful enough not to reorder.
18372         # Supported since Solaris 2.6 (maybe 2.5.1?)
18373         if test "$GCC" = yes; then
18374           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18375         else
18376           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18377         fi
18378         ;;
18379       esac
18380       link_all_deplibs_GCJ=yes
18381       ;;
18382
18383     sunos4*)
18384       if test "x$host_vendor" = xsequent; then
18385         # Use $CC to link under sequent, because it throws in some extra .o
18386         # files that make .init and .fini sections work.
18387         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18388       else
18389         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18390       fi
18391       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18392       hardcode_direct_GCJ=yes
18393       hardcode_minus_L_GCJ=yes
18394       hardcode_shlibpath_var_GCJ=no
18395       ;;
18396
18397     sysv4)
18398       case $host_vendor in
18399         sni)
18400           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18401           hardcode_direct_GCJ=yes # is this really true???
18402         ;;
18403         siemens)
18404           ## LD is ld it makes a PLAMLIB
18405           ## CC just makes a GrossModule.
18406           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18407           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18408           hardcode_direct_GCJ=no
18409         ;;
18410         motorola)
18411           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18412           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18413         ;;
18414       esac
18415       runpath_var='LD_RUN_PATH'
18416       hardcode_shlibpath_var_GCJ=no
18417       ;;
18418
18419     sysv4.3*)
18420       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18421       hardcode_shlibpath_var_GCJ=no
18422       export_dynamic_flag_spec_GCJ='-Bexport'
18423       ;;
18424
18425     sysv4*MP*)
18426       if test -d /usr/nec; then
18427         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18428         hardcode_shlibpath_var_GCJ=no
18429         runpath_var=LD_RUN_PATH
18430         hardcode_runpath_var=yes
18431         ld_shlibs_GCJ=yes
18432       fi
18433       ;;
18434
18435     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18436       no_undefined_flag_GCJ='${wl}-z,text'
18437       archive_cmds_need_lc_GCJ=no
18438       hardcode_shlibpath_var_GCJ=no
18439       runpath_var='LD_RUN_PATH'
18440
18441       if test "$GCC" = yes; then
18442         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18443         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18444       else
18445         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18446         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18447       fi
18448       ;;
18449
18450     sysv5* | sco3.2v5* | sco5v6*)
18451       # Note: We can NOT use -z defs as we might desire, because we do not
18452       # link with -lc, and that would cause any symbols used from libc to
18453       # always be unresolved, which means just about no library would
18454       # ever link correctly.  If we're not using GNU ld we use -z text
18455       # though, which does catch some bad symbols but isn't as heavy-handed
18456       # as -z defs.
18457       no_undefined_flag_GCJ='${wl}-z,text'
18458       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18459       archive_cmds_need_lc_GCJ=no
18460       hardcode_shlibpath_var_GCJ=no
18461       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18462       hardcode_libdir_separator_GCJ=':'
18463       link_all_deplibs_GCJ=yes
18464       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18465       runpath_var='LD_RUN_PATH'
18466
18467       if test "$GCC" = yes; then
18468         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18469         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18470       else
18471         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18472         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18473       fi
18474       ;;
18475
18476     uts4*)
18477       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18478       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18479       hardcode_shlibpath_var_GCJ=no
18480       ;;
18481
18482     *)
18483       ld_shlibs_GCJ=no
18484       ;;
18485     esac
18486   fi
18487
18488 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18489 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18490 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18491
18492 #
18493 # Do we need to explicitly link libc?
18494 #
18495 case "x$archive_cmds_need_lc_GCJ" in
18496 x|xyes)
18497   # Assume -lc should be added
18498   archive_cmds_need_lc_GCJ=yes
18499
18500   if test "$enable_shared" = yes && test "$GCC" = yes; then
18501     case $archive_cmds_GCJ in
18502     *'~'*)
18503       # FIXME: we may have to deal with multi-command sequences.
18504       ;;
18505     '$CC '*)
18506       # Test whether the compiler implicitly links with -lc since on some
18507       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18508       # to ld, don't add -lc before -lgcc.
18509       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18510 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18511       $rm conftest*
18512       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18513
18514       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18515   (eval $ac_compile) 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); } 2>conftest.err; then
18519         soname=conftest
18520         lib=conftest
18521         libobjs=conftest.$ac_objext
18522         deplibs=
18523         wl=$lt_prog_compiler_wl_GCJ
18524         pic_flag=$lt_prog_compiler_pic_GCJ
18525         compiler_flags=-v
18526         linker_flags=-v
18527         verstring=
18528         output_objdir=.
18529         libname=conftest
18530         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18531         allow_undefined_flag_GCJ=
18532         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18533   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18534   ac_status=$?
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); }
18537         then
18538           archive_cmds_need_lc_GCJ=no
18539         else
18540           archive_cmds_need_lc_GCJ=yes
18541         fi
18542         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18543       else
18544         cat conftest.err 1>&5
18545       fi
18546       $rm conftest*
18547       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18548 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18549       ;;
18550     esac
18551   fi
18552   ;;
18553 esac
18554
18555 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18556 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18557 library_names_spec=
18558 libname_spec='lib$name'
18559 soname_spec=
18560 shrext_cmds=".so"
18561 postinstall_cmds=
18562 postuninstall_cmds=
18563 finish_cmds=
18564 finish_eval=
18565 shlibpath_var=
18566 shlibpath_overrides_runpath=unknown
18567 version_type=none
18568 dynamic_linker="$host_os ld.so"
18569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18570
18571 need_lib_prefix=unknown
18572 hardcode_into_libs=no
18573
18574 # when you set need_version to no, make sure it does not cause -set_version
18575 # flags to be left without arguments
18576 need_version=unknown
18577
18578 case $host_os in
18579 aix3*)
18580   version_type=linux
18581   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18582   shlibpath_var=LIBPATH
18583
18584   # AIX 3 has no versioning support, so we append a major version to the name.
18585   soname_spec='${libname}${release}${shared_ext}$major'
18586   ;;
18587
18588 aix[4-9]*)
18589   version_type=linux
18590   need_lib_prefix=no
18591   need_version=no
18592   hardcode_into_libs=yes
18593   if test "$host_cpu" = ia64; then
18594     # AIX 5 supports IA64
18595     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18596     shlibpath_var=LD_LIBRARY_PATH
18597   else
18598     # With GCC up to 2.95.x, collect2 would create an import file
18599     # for dependence libraries.  The import file would start with
18600     # the line `#! .'.  This would cause the generated library to
18601     # depend on `.', always an invalid library.  This was fixed in
18602     # development snapshots of GCC prior to 3.0.
18603     case $host_os in
18604       aix4 | aix4.[01] | aix4.[01].*)
18605       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18606            echo ' yes '
18607            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18608         :
18609       else
18610         can_build_shared=no
18611       fi
18612       ;;
18613     esac
18614     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18615     # soname into executable. Probably we can add versioning support to
18616     # collect2, so additional links can be useful in future.
18617     if test "$aix_use_runtimelinking" = yes; then
18618       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18619       # instead of lib<name>.a to let people know that these are not
18620       # typical AIX shared libraries.
18621       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622     else
18623       # We preserve .a as extension for shared libraries through AIX4.2
18624       # and later when we are not doing run time linking.
18625       library_names_spec='${libname}${release}.a $libname.a'
18626       soname_spec='${libname}${release}${shared_ext}$major'
18627     fi
18628     shlibpath_var=LIBPATH
18629   fi
18630   ;;
18631
18632 amigaos*)
18633   library_names_spec='$libname.ixlibrary $libname.a'
18634   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18635   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'
18636   ;;
18637
18638 beos*)
18639   library_names_spec='${libname}${shared_ext}'
18640   dynamic_linker="$host_os ld.so"
18641   shlibpath_var=LIBRARY_PATH
18642   ;;
18643
18644 bsdi[45]*)
18645   version_type=linux
18646   need_version=no
18647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18648   soname_spec='${libname}${release}${shared_ext}$major'
18649   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18650   shlibpath_var=LD_LIBRARY_PATH
18651   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18652   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18653   # the default ld.so.conf also contains /usr/contrib/lib and
18654   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18655   # libtool to hard-code these into programs
18656   ;;
18657
18658 cygwin* | mingw* | pw32*)
18659   version_type=windows
18660   shrext_cmds=".dll"
18661   need_version=no
18662   need_lib_prefix=no
18663
18664   case $GCC,$host_os in
18665   yes,cygwin* | yes,mingw* | yes,pw32*)
18666     library_names_spec='$libname.dll.a'
18667     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18668     postinstall_cmds='base_file=`basename \${file}`~
18669       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18670       dldir=$destdir/`dirname \$dlpath`~
18671       test -d \$dldir || mkdir -p \$dldir~
18672       $install_prog $dir/$dlname \$dldir/$dlname~
18673       chmod a+x \$dldir/$dlname'
18674     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18675       dlpath=$dir/\$dldll~
18676        $rm \$dlpath'
18677     shlibpath_overrides_runpath=yes
18678
18679     case $host_os in
18680     cygwin*)
18681       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18682       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18683       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18684       ;;
18685     mingw*)
18686       # MinGW DLLs use traditional 'lib' prefix
18687       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18688       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18689       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18690         # It is most probably a Windows format PATH printed by
18691         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18692         # path with ; separators, and with drive letters. We can handle the
18693         # drive letters (cygwin fileutils understands them), so leave them,
18694         # especially as we might pass files found there to a mingw objdump,
18695         # which wouldn't understand a cygwinified path. Ahh.
18696         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18697       else
18698         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18699       fi
18700       ;;
18701     pw32*)
18702       # pw32 DLLs use 'pw' prefix rather than 'lib'
18703       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18704       ;;
18705     esac
18706     ;;
18707
18708   *)
18709     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18710     ;;
18711   esac
18712   dynamic_linker='Win32 ld.exe'
18713   # FIXME: first we should search . and the directory the executable is in
18714   shlibpath_var=PATH
18715   ;;
18716
18717 darwin* | rhapsody*)
18718   dynamic_linker="$host_os dyld"
18719   version_type=darwin
18720   need_lib_prefix=no
18721   need_version=no
18722   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18723   soname_spec='${libname}${release}${major}$shared_ext'
18724   shlibpath_overrides_runpath=yes
18725   shlibpath_var=DYLD_LIBRARY_PATH
18726   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18727
18728   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18729   ;;
18730
18731 dgux*)
18732   version_type=linux
18733   need_lib_prefix=no
18734   need_version=no
18735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18736   soname_spec='${libname}${release}${shared_ext}$major'
18737   shlibpath_var=LD_LIBRARY_PATH
18738   ;;
18739
18740 freebsd1*)
18741   dynamic_linker=no
18742   ;;
18743
18744 freebsd* | dragonfly*)
18745   # DragonFly does not have aout.  When/if they implement a new
18746   # versioning mechanism, adjust this.
18747   if test -x /usr/bin/objformat; then
18748     objformat=`/usr/bin/objformat`
18749   else
18750     case $host_os in
18751     freebsd[123]*) objformat=aout ;;
18752     *) objformat=elf ;;
18753     esac
18754   fi
18755   version_type=freebsd-$objformat
18756   case $version_type in
18757     freebsd-elf*)
18758       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18759       need_version=no
18760       need_lib_prefix=no
18761       ;;
18762     freebsd-*)
18763       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18764       need_version=yes
18765       ;;
18766   esac
18767   shlibpath_var=LD_LIBRARY_PATH
18768   case $host_os in
18769   freebsd2*)
18770     shlibpath_overrides_runpath=yes
18771     ;;
18772   freebsd3.[01]* | freebsdelf3.[01]*)
18773     shlibpath_overrides_runpath=yes
18774     hardcode_into_libs=yes
18775     ;;
18776   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18777   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18778     shlibpath_overrides_runpath=no
18779     hardcode_into_libs=yes
18780     ;;
18781   *) # from 4.6 on, and DragonFly
18782     shlibpath_overrides_runpath=yes
18783     hardcode_into_libs=yes
18784     ;;
18785   esac
18786   ;;
18787
18788 gnu*)
18789   version_type=linux
18790   need_lib_prefix=no
18791   need_version=no
18792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18793   soname_spec='${libname}${release}${shared_ext}$major'
18794   shlibpath_var=LD_LIBRARY_PATH
18795   hardcode_into_libs=yes
18796   ;;
18797
18798 hpux9* | hpux10* | hpux11*)
18799   # Give a soname corresponding to the major version so that dld.sl refuses to
18800   # link against other versions.
18801   version_type=sunos
18802   need_lib_prefix=no
18803   need_version=no
18804   case $host_cpu in
18805   ia64*)
18806     shrext_cmds='.so'
18807     hardcode_into_libs=yes
18808     dynamic_linker="$host_os dld.so"
18809     shlibpath_var=LD_LIBRARY_PATH
18810     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812     soname_spec='${libname}${release}${shared_ext}$major'
18813     if test "X$HPUX_IA64_MODE" = X32; then
18814       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18815     else
18816       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18817     fi
18818     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18819     ;;
18820    hppa*64*)
18821      shrext_cmds='.sl'
18822      hardcode_into_libs=yes
18823      dynamic_linker="$host_os dld.sl"
18824      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18825      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18826      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18827      soname_spec='${libname}${release}${shared_ext}$major'
18828      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18829      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18830      ;;
18831    *)
18832     shrext_cmds='.sl'
18833     dynamic_linker="$host_os dld.sl"
18834     shlibpath_var=SHLIB_PATH
18835     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18836     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837     soname_spec='${libname}${release}${shared_ext}$major'
18838     ;;
18839   esac
18840   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18841   postinstall_cmds='chmod 555 $lib'
18842   ;;
18843
18844 interix[3-9]*)
18845   version_type=linux
18846   need_lib_prefix=no
18847   need_version=no
18848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18849   soname_spec='${libname}${release}${shared_ext}$major'
18850   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18851   shlibpath_var=LD_LIBRARY_PATH
18852   shlibpath_overrides_runpath=no
18853   hardcode_into_libs=yes
18854   ;;
18855
18856 irix5* | irix6* | nonstopux*)
18857   case $host_os in
18858     nonstopux*) version_type=nonstopux ;;
18859     *)
18860         if test "$lt_cv_prog_gnu_ld" = yes; then
18861                 version_type=linux
18862         else
18863                 version_type=irix
18864         fi ;;
18865   esac
18866   need_lib_prefix=no
18867   need_version=no
18868   soname_spec='${libname}${release}${shared_ext}$major'
18869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18870   case $host_os in
18871   irix5* | nonstopux*)
18872     libsuff= shlibsuff=
18873     ;;
18874   *)
18875     case $LD in # libtool.m4 will add one of these switches to LD
18876     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18877       libsuff= shlibsuff= libmagic=32-bit;;
18878     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18879       libsuff=32 shlibsuff=N32 libmagic=N32;;
18880     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18881       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18882     *) libsuff= shlibsuff= libmagic=never-match;;
18883     esac
18884     ;;
18885   esac
18886   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18887   shlibpath_overrides_runpath=no
18888   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18889   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18890   hardcode_into_libs=yes
18891   ;;
18892
18893 # No shared lib support for Linux oldld, aout, or coff.
18894 linux*oldld* | linux*aout* | linux*coff*)
18895   dynamic_linker=no
18896   ;;
18897
18898 # This must be Linux ELF.
18899 linux* | k*bsd*-gnu)
18900   version_type=linux
18901   need_lib_prefix=no
18902   need_version=no
18903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18904   soname_spec='${libname}${release}${shared_ext}$major'
18905   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18906   shlibpath_var=LD_LIBRARY_PATH
18907   shlibpath_overrides_runpath=no
18908   # This implies no fast_install, which is unacceptable.
18909   # Some rework will be needed to allow for fast_install
18910   # before this can be enabled.
18911   hardcode_into_libs=yes
18912
18913   # Append ld.so.conf contents to the search path
18914   if test -f /etc/ld.so.conf; then
18915     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' ' '`
18916     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18917   fi
18918
18919   # We used to test for /lib/ld.so.1 and disable shared libraries on
18920   # powerpc, because MkLinux only supported shared libraries with the
18921   # GNU dynamic linker.  Since this was broken with cross compilers,
18922   # most powerpc-linux boxes support dynamic linking these days and
18923   # people can always --disable-shared, the test was removed, and we
18924   # assume the GNU/Linux dynamic linker is in use.
18925   dynamic_linker='GNU/Linux ld.so'
18926   ;;
18927
18928 netbsdelf*-gnu)
18929   version_type=linux
18930   need_lib_prefix=no
18931   need_version=no
18932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18933   soname_spec='${libname}${release}${shared_ext}$major'
18934   shlibpath_var=LD_LIBRARY_PATH
18935   shlibpath_overrides_runpath=no
18936   hardcode_into_libs=yes
18937   dynamic_linker='NetBSD ld.elf_so'
18938   ;;
18939
18940 netbsd*)
18941   version_type=sunos
18942   need_lib_prefix=no
18943   need_version=no
18944   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18946     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18947     dynamic_linker='NetBSD (a.out) ld.so'
18948   else
18949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18950     soname_spec='${libname}${release}${shared_ext}$major'
18951     dynamic_linker='NetBSD ld.elf_so'
18952   fi
18953   shlibpath_var=LD_LIBRARY_PATH
18954   shlibpath_overrides_runpath=yes
18955   hardcode_into_libs=yes
18956   ;;
18957
18958 newsos6)
18959   version_type=linux
18960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18961   shlibpath_var=LD_LIBRARY_PATH
18962   shlibpath_overrides_runpath=yes
18963   ;;
18964
18965 nto-qnx*)
18966   version_type=linux
18967   need_lib_prefix=no
18968   need_version=no
18969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18970   soname_spec='${libname}${release}${shared_ext}$major'
18971   shlibpath_var=LD_LIBRARY_PATH
18972   shlibpath_overrides_runpath=yes
18973   ;;
18974
18975 openbsd*)
18976   version_type=sunos
18977   sys_lib_dlsearch_path_spec="/usr/lib"
18978   need_lib_prefix=no
18979   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18980   case $host_os in
18981     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18982     *)                         need_version=no  ;;
18983   esac
18984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18985   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18986   shlibpath_var=LD_LIBRARY_PATH
18987   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18988     case $host_os in
18989       openbsd2.[89] | openbsd2.[89].*)
18990         shlibpath_overrides_runpath=no
18991         ;;
18992       *)
18993         shlibpath_overrides_runpath=yes
18994         ;;
18995       esac
18996   else
18997     shlibpath_overrides_runpath=yes
18998   fi
18999   ;;
19000
19001 os2*)
19002   libname_spec='$name'
19003   shrext_cmds=".dll"
19004   need_lib_prefix=no
19005   library_names_spec='$libname${shared_ext} $libname.a'
19006   dynamic_linker='OS/2 ld.exe'
19007   shlibpath_var=LIBPATH
19008   ;;
19009
19010 osf3* | osf4* | osf5*)
19011   version_type=osf
19012   need_lib_prefix=no
19013   need_version=no
19014   soname_spec='${libname}${release}${shared_ext}$major'
19015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19016   shlibpath_var=LD_LIBRARY_PATH
19017   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19018   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19019   ;;
19020
19021 rdos*)
19022   dynamic_linker=no
19023   ;;
19024
19025 solaris*)
19026   version_type=linux
19027   need_lib_prefix=no
19028   need_version=no
19029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19030   soname_spec='${libname}${release}${shared_ext}$major'
19031   shlibpath_var=LD_LIBRARY_PATH
19032   shlibpath_overrides_runpath=yes
19033   hardcode_into_libs=yes
19034   # ldd complains unless libraries are executable
19035   postinstall_cmds='chmod +x $lib'
19036   ;;
19037
19038 sunos4*)
19039   version_type=sunos
19040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19041   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19042   shlibpath_var=LD_LIBRARY_PATH
19043   shlibpath_overrides_runpath=yes
19044   if test "$with_gnu_ld" = yes; then
19045     need_lib_prefix=no
19046   fi
19047   need_version=yes
19048   ;;
19049
19050 sysv4 | sysv4.3*)
19051   version_type=linux
19052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19053   soname_spec='${libname}${release}${shared_ext}$major'
19054   shlibpath_var=LD_LIBRARY_PATH
19055   case $host_vendor in
19056     sni)
19057       shlibpath_overrides_runpath=no
19058       need_lib_prefix=no
19059       export_dynamic_flag_spec='${wl}-Blargedynsym'
19060       runpath_var=LD_RUN_PATH
19061       ;;
19062     siemens)
19063       need_lib_prefix=no
19064       ;;
19065     motorola)
19066       need_lib_prefix=no
19067       need_version=no
19068       shlibpath_overrides_runpath=no
19069       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19070       ;;
19071   esac
19072   ;;
19073
19074 sysv4*MP*)
19075   if test -d /usr/nec ;then
19076     version_type=linux
19077     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19078     soname_spec='$libname${shared_ext}.$major'
19079     shlibpath_var=LD_LIBRARY_PATH
19080   fi
19081   ;;
19082
19083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19084   version_type=freebsd-elf
19085   need_lib_prefix=no
19086   need_version=no
19087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19088   soname_spec='${libname}${release}${shared_ext}$major'
19089   shlibpath_var=LD_LIBRARY_PATH
19090   hardcode_into_libs=yes
19091   if test "$with_gnu_ld" = yes; then
19092     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19093     shlibpath_overrides_runpath=no
19094   else
19095     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19096     shlibpath_overrides_runpath=yes
19097     case $host_os in
19098       sco3.2v5*)
19099         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19100         ;;
19101     esac
19102   fi
19103   sys_lib_dlsearch_path_spec='/usr/lib'
19104   ;;
19105
19106 uts4*)
19107   version_type=linux
19108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19109   soname_spec='${libname}${release}${shared_ext}$major'
19110   shlibpath_var=LD_LIBRARY_PATH
19111   ;;
19112
19113 *)
19114   dynamic_linker=no
19115   ;;
19116 esac
19117 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19118 echo "${ECHO_T}$dynamic_linker" >&6; }
19119 test "$dynamic_linker" = no && can_build_shared=no
19120
19121 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19122   echo $ECHO_N "(cached) $ECHO_C" >&6
19123 else
19124   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19125 fi
19126
19127 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19128 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19129   echo $ECHO_N "(cached) $ECHO_C" >&6
19130 else
19131   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19132 fi
19133
19134 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19135
19136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19137 if test "$GCC" = yes; then
19138   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19139 fi
19140
19141 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19142 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19143 hardcode_action_GCJ=
19144 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19145    test -n "$runpath_var_GCJ" || \
19146    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19147
19148   # We can hardcode non-existant directories.
19149   if test "$hardcode_direct_GCJ" != no &&
19150      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19151      # have to relink, otherwise we might link with an installed library
19152      # when we should be linking with a yet-to-be-installed one
19153      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19154      test "$hardcode_minus_L_GCJ" != no; then
19155     # Linking always hardcodes the temporary library directory.
19156     hardcode_action_GCJ=relink
19157   else
19158     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19159     hardcode_action_GCJ=immediate
19160   fi
19161 else
19162   # We cannot hardcode anything, or else we can only hardcode existing
19163   # directories.
19164   hardcode_action_GCJ=unsupported
19165 fi
19166 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19167 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19168
19169 if test "$hardcode_action_GCJ" = relink; then
19170   # Fast installation is not supported
19171   enable_fast_install=no
19172 elif test "$shlibpath_overrides_runpath" = yes ||
19173      test "$enable_shared" = no; then
19174   # Fast installation is not necessary
19175   enable_fast_install=needless
19176 fi
19177
19178
19179 # The else clause should only fire when bootstrapping the
19180 # libtool distribution, otherwise you forgot to ship ltmain.sh
19181 # with your package, and you will get complaints that there are
19182 # no rules to generate ltmain.sh.
19183 if test -f "$ltmain"; then
19184   # See if we are running on zsh, and set the options which allow our commands through
19185   # without removal of \ escapes.
19186   if test -n "${ZSH_VERSION+set}" ; then
19187     setopt NO_GLOB_SUBST
19188   fi
19189   # Now quote all the things that may contain metacharacters while being
19190   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19191   # variables and quote the copies for generation of the libtool script.
19192   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19193     SED SHELL STRIP \
19194     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19195     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19196     deplibs_check_method reload_flag reload_cmds need_locks \
19197     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19198     lt_cv_sys_global_symbol_to_c_name_address \
19199     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19200     old_postinstall_cmds old_postuninstall_cmds \
19201     compiler_GCJ \
19202     CC_GCJ \
19203     LD_GCJ \
19204     lt_prog_compiler_wl_GCJ \
19205     lt_prog_compiler_pic_GCJ \
19206     lt_prog_compiler_static_GCJ \
19207     lt_prog_compiler_no_builtin_flag_GCJ \
19208     export_dynamic_flag_spec_GCJ \
19209     thread_safe_flag_spec_GCJ \
19210     whole_archive_flag_spec_GCJ \
19211     enable_shared_with_static_runtimes_GCJ \
19212     old_archive_cmds_GCJ \
19213     old_archive_from_new_cmds_GCJ \
19214     predep_objects_GCJ \
19215     postdep_objects_GCJ \
19216     predeps_GCJ \
19217     postdeps_GCJ \
19218     compiler_lib_search_path_GCJ \
19219     compiler_lib_search_dirs_GCJ \
19220     archive_cmds_GCJ \
19221     archive_expsym_cmds_GCJ \
19222     postinstall_cmds_GCJ \
19223     postuninstall_cmds_GCJ \
19224     old_archive_from_expsyms_cmds_GCJ \
19225     allow_undefined_flag_GCJ \
19226     no_undefined_flag_GCJ \
19227     export_symbols_cmds_GCJ \
19228     hardcode_libdir_flag_spec_GCJ \
19229     hardcode_libdir_flag_spec_ld_GCJ \
19230     hardcode_libdir_separator_GCJ \
19231     hardcode_automatic_GCJ \
19232     module_cmds_GCJ \
19233     module_expsym_cmds_GCJ \
19234     lt_cv_prog_compiler_c_o_GCJ \
19235     fix_srcfile_path_GCJ \
19236     exclude_expsyms_GCJ \
19237     include_expsyms_GCJ; do
19238
19239     case $var in
19240     old_archive_cmds_GCJ | \
19241     old_archive_from_new_cmds_GCJ | \
19242     archive_cmds_GCJ | \
19243     archive_expsym_cmds_GCJ | \
19244     module_cmds_GCJ | \
19245     module_expsym_cmds_GCJ | \
19246     old_archive_from_expsyms_cmds_GCJ | \
19247     export_symbols_cmds_GCJ | \
19248     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19249     postinstall_cmds | postuninstall_cmds | \
19250     old_postinstall_cmds | old_postuninstall_cmds | \
19251     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19252       # Double-quote double-evaled strings.
19253       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19254       ;;
19255     *)
19256       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19257       ;;
19258     esac
19259   done
19260
19261   case $lt_echo in
19262   *'\$0 --fallback-echo"')
19263     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19264     ;;
19265   esac
19266
19267 cfgfile="$ofile"
19268
19269   cat <<__EOF__ >> "$cfgfile"
19270 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19271
19272 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19273
19274 # Shell to use when invoking shell scripts.
19275 SHELL=$lt_SHELL
19276
19277 # Whether or not to build shared libraries.
19278 build_libtool_libs=$enable_shared
19279
19280 # Whether or not to build static libraries.
19281 build_old_libs=$enable_static
19282
19283 # Whether or not to add -lc for building shared libraries.
19284 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19285
19286 # Whether or not to disallow shared libs when runtime libs are static
19287 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19288
19289 # Whether or not to optimize for fast installation.
19290 fast_install=$enable_fast_install
19291
19292 # The host system.
19293 host_alias=$host_alias
19294 host=$host
19295 host_os=$host_os
19296
19297 # The build system.
19298 build_alias=$build_alias
19299 build=$build
19300 build_os=$build_os
19301
19302 # An echo program that does not interpret backslashes.
19303 echo=$lt_echo
19304
19305 # The archiver.
19306 AR=$lt_AR
19307 AR_FLAGS=$lt_AR_FLAGS
19308
19309 # A C compiler.
19310 LTCC=$lt_LTCC
19311
19312 # LTCC compiler flags.
19313 LTCFLAGS=$lt_LTCFLAGS
19314
19315 # A language-specific compiler.
19316 CC=$lt_compiler_GCJ
19317
19318 # Is the compiler the GNU C compiler?
19319 with_gcc=$GCC_GCJ
19320
19321 # An ERE matcher.
19322 EGREP=$lt_EGREP
19323
19324 # The linker used to build libraries.
19325 LD=$lt_LD_GCJ
19326
19327 # Whether we need hard or soft links.
19328 LN_S=$lt_LN_S
19329
19330 # A BSD-compatible nm program.
19331 NM=$lt_NM
19332
19333 # A symbol stripping program
19334 STRIP=$lt_STRIP
19335
19336 # Used to examine libraries when file_magic_cmd begins "file"
19337 MAGIC_CMD=$MAGIC_CMD
19338
19339 # Used on cygwin: DLL creation program.
19340 DLLTOOL="$DLLTOOL"
19341
19342 # Used on cygwin: object dumper.
19343 OBJDUMP="$OBJDUMP"
19344
19345 # Used on cygwin: assembler.
19346 AS="$AS"
19347
19348 # The name of the directory that contains temporary libtool files.
19349 objdir=$objdir
19350
19351 # How to create reloadable object files.
19352 reload_flag=$lt_reload_flag
19353 reload_cmds=$lt_reload_cmds
19354
19355 # How to pass a linker flag through the compiler.
19356 wl=$lt_lt_prog_compiler_wl_GCJ
19357
19358 # Object file suffix (normally "o").
19359 objext="$ac_objext"
19360
19361 # Old archive suffix (normally "a").
19362 libext="$libext"
19363
19364 # Shared library suffix (normally ".so").
19365 shrext_cmds='$shrext_cmds'
19366
19367 # Executable file suffix (normally "").
19368 exeext="$exeext"
19369
19370 # Additional compiler flags for building library objects.
19371 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19372 pic_mode=$pic_mode
19373
19374 # What is the maximum length of a command?
19375 max_cmd_len=$lt_cv_sys_max_cmd_len
19376
19377 # Does compiler simultaneously support -c and -o options?
19378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19379
19380 # Must we lock files when doing compilation?
19381 need_locks=$lt_need_locks
19382
19383 # Do we need the lib prefix for modules?
19384 need_lib_prefix=$need_lib_prefix
19385
19386 # Do we need a version for libraries?
19387 need_version=$need_version
19388
19389 # Whether dlopen is supported.
19390 dlopen_support=$enable_dlopen
19391
19392 # Whether dlopen of programs is supported.
19393 dlopen_self=$enable_dlopen_self
19394
19395 # Whether dlopen of statically linked programs is supported.
19396 dlopen_self_static=$enable_dlopen_self_static
19397
19398 # Compiler flag to prevent dynamic linking.
19399 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19400
19401 # Compiler flag to turn off builtin functions.
19402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19403
19404 # Compiler flag to allow reflexive dlopens.
19405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19406
19407 # Compiler flag to generate shared objects directly from archives.
19408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19409
19410 # Compiler flag to generate thread-safe objects.
19411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19412
19413 # Library versioning type.
19414 version_type=$version_type
19415
19416 # Format of library name prefix.
19417 libname_spec=$lt_libname_spec
19418
19419 # List of archive names.  First name is the real one, the rest are links.
19420 # The last name is the one that the linker finds with -lNAME.
19421 library_names_spec=$lt_library_names_spec
19422
19423 # The coded name of the library, if different from the real name.
19424 soname_spec=$lt_soname_spec
19425
19426 # Commands used to build and install an old-style archive.
19427 RANLIB=$lt_RANLIB
19428 old_archive_cmds=$lt_old_archive_cmds_GCJ
19429 old_postinstall_cmds=$lt_old_postinstall_cmds
19430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19431
19432 # Create an old-style archive from a shared archive.
19433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19434
19435 # Create a temporary old-style archive to link instead of a shared archive.
19436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19437
19438 # Commands used to build and install a shared archive.
19439 archive_cmds=$lt_archive_cmds_GCJ
19440 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19441 postinstall_cmds=$lt_postinstall_cmds
19442 postuninstall_cmds=$lt_postuninstall_cmds
19443
19444 # Commands used to build a loadable module (assumed same as above if empty)
19445 module_cmds=$lt_module_cmds_GCJ
19446 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19447
19448 # Commands to strip libraries.
19449 old_striplib=$lt_old_striplib
19450 striplib=$lt_striplib
19451
19452 # Dependencies to place before the objects being linked to create a
19453 # shared library.
19454 predep_objects=$lt_predep_objects_GCJ
19455
19456 # Dependencies to place after the objects being linked to create a
19457 # shared library.
19458 postdep_objects=$lt_postdep_objects_GCJ
19459
19460 # Dependencies to place before the objects being linked to create a
19461 # shared library.
19462 predeps=$lt_predeps_GCJ
19463
19464 # Dependencies to place after the objects being linked to create a
19465 # shared library.
19466 postdeps=$lt_postdeps_GCJ
19467
19468 # The directories searched by this compiler when creating a shared
19469 # library
19470 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19471
19472 # The library search path used internally by the compiler when linking
19473 # a shared library.
19474 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19475
19476 # Method to check whether dependent libraries are shared objects.
19477 deplibs_check_method=$lt_deplibs_check_method
19478
19479 # Command to use when deplibs_check_method == file_magic.
19480 file_magic_cmd=$lt_file_magic_cmd
19481
19482 # Flag that allows shared libraries with undefined symbols to be built.
19483 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19484
19485 # Flag that forces no undefined symbols.
19486 no_undefined_flag=$lt_no_undefined_flag_GCJ
19487
19488 # Commands used to finish a libtool library installation in a directory.
19489 finish_cmds=$lt_finish_cmds
19490
19491 # Same as above, but a single script fragment to be evaled but not shown.
19492 finish_eval=$lt_finish_eval
19493
19494 # Take the output of nm and produce a listing of raw symbols and C names.
19495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19496
19497 # Transform the output of nm in a proper C declaration
19498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19499
19500 # Transform the output of nm in a C name address pair
19501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19502
19503 # This is the shared library runtime path variable.
19504 runpath_var=$runpath_var
19505
19506 # This is the shared library path variable.
19507 shlibpath_var=$shlibpath_var
19508
19509 # Is shlibpath searched before the hard-coded library search path?
19510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19511
19512 # How to hardcode a shared library path into an executable.
19513 hardcode_action=$hardcode_action_GCJ
19514
19515 # Whether we should hardcode library paths into libraries.
19516 hardcode_into_libs=$hardcode_into_libs
19517
19518 # Flag to hardcode \$libdir into a binary during linking.
19519 # This must work even if \$libdir does not exist.
19520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19521
19522 # If ld is used when linking, flag to hardcode \$libdir into
19523 # a binary during linking. This must work even if \$libdir does
19524 # not exist.
19525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19526
19527 # Whether we need a single -rpath flag with a separated argument.
19528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19529
19530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19531 # resulting binary.
19532 hardcode_direct=$hardcode_direct_GCJ
19533
19534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19535 # resulting binary.
19536 hardcode_minus_L=$hardcode_minus_L_GCJ
19537
19538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19539 # the resulting binary.
19540 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19541
19542 # Set to yes if building a shared library automatically hardcodes DIR into the library
19543 # and all subsequent libraries and executables linked against it.
19544 hardcode_automatic=$hardcode_automatic_GCJ
19545
19546 # Variables whose values should be saved in libtool wrapper scripts and
19547 # restored at relink time.
19548 variables_saved_for_relink="$variables_saved_for_relink"
19549
19550 # Whether libtool must link a program against all its dependency libraries.
19551 link_all_deplibs=$link_all_deplibs_GCJ
19552
19553 # Compile-time system search path for libraries
19554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19555
19556 # Run-time system search path for libraries
19557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19558
19559 # Fix the shell variable \$srcfile for the compiler.
19560 fix_srcfile_path=$lt_fix_srcfile_path
19561
19562 # Set to yes if exported symbols are required.
19563 always_export_symbols=$always_export_symbols_GCJ
19564
19565 # The commands to list exported symbols.
19566 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19567
19568 # The commands to extract the exported symbol list from a shared archive.
19569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19570
19571 # Symbols that should not be listed in the preloaded symbols.
19572 exclude_expsyms=$lt_exclude_expsyms_GCJ
19573
19574 # Symbols that must always be exported.
19575 include_expsyms=$lt_include_expsyms_GCJ
19576
19577 # ### END LIBTOOL TAG CONFIG: $tagname
19578
19579 __EOF__
19580
19581
19582 else
19583   # If there is no Makefile yet, we rely on a make rule to execute
19584   # `config.status --recheck' to rerun these tests and create the
19585   # libtool script then.
19586   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19587   if test -f "$ltmain_in"; then
19588     test -f Makefile && make "$ltmain"
19589   fi
19590 fi
19591
19592
19593 ac_ext=c
19594 ac_cpp='$CPP $CPPFLAGS'
19595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19598
19599 CC="$lt_save_CC"
19600
19601         else
19602           tagname=""
19603         fi
19604         ;;
19605
19606       RC)
19607
19608
19609 # Source file extension for RC test sources.
19610 ac_ext=rc
19611
19612 # Object file extension for compiled RC test sources.
19613 objext=o
19614 objext_RC=$objext
19615
19616 # Code to be used in simple compile tests
19617 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19618
19619 # Code to be used in simple link tests
19620 lt_simple_link_test_code="$lt_simple_compile_test_code"
19621
19622 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19623
19624 # If no C compiler was specified, use CC.
19625 LTCC=${LTCC-"$CC"}
19626
19627 # If no C compiler flags were specified, use CFLAGS.
19628 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19629
19630 # Allow CC to be a program name with arguments.
19631 compiler=$CC
19632
19633
19634 # save warnings/boilerplate of simple test code
19635 ac_outfile=conftest.$ac_objext
19636 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19637 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19638 _lt_compiler_boilerplate=`cat conftest.err`
19639 $rm conftest*
19640
19641 ac_outfile=conftest.$ac_objext
19642 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19643 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19644 _lt_linker_boilerplate=`cat conftest.err`
19645 $rm -r conftest*
19646
19647
19648 # Allow CC to be a program name with arguments.
19649 lt_save_CC="$CC"
19650 CC=${RC-"windres"}
19651 compiler=$CC
19652 compiler_RC=$CC
19653 for cc_temp in $compiler""; do
19654   case $cc_temp in
19655     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19656     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19657     \-*) ;;
19658     *) break;;
19659   esac
19660 done
19661 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19662
19663 lt_cv_prog_compiler_c_o_RC=yes
19664
19665 # The else clause should only fire when bootstrapping the
19666 # libtool distribution, otherwise you forgot to ship ltmain.sh
19667 # with your package, and you will get complaints that there are
19668 # no rules to generate ltmain.sh.
19669 if test -f "$ltmain"; then
19670   # See if we are running on zsh, and set the options which allow our commands through
19671   # without removal of \ escapes.
19672   if test -n "${ZSH_VERSION+set}" ; then
19673     setopt NO_GLOB_SUBST
19674   fi
19675   # Now quote all the things that may contain metacharacters while being
19676   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19677   # variables and quote the copies for generation of the libtool script.
19678   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19679     SED SHELL STRIP \
19680     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19681     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19682     deplibs_check_method reload_flag reload_cmds need_locks \
19683     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19684     lt_cv_sys_global_symbol_to_c_name_address \
19685     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19686     old_postinstall_cmds old_postuninstall_cmds \
19687     compiler_RC \
19688     CC_RC \
19689     LD_RC \
19690     lt_prog_compiler_wl_RC \
19691     lt_prog_compiler_pic_RC \
19692     lt_prog_compiler_static_RC \
19693     lt_prog_compiler_no_builtin_flag_RC \
19694     export_dynamic_flag_spec_RC \
19695     thread_safe_flag_spec_RC \
19696     whole_archive_flag_spec_RC \
19697     enable_shared_with_static_runtimes_RC \
19698     old_archive_cmds_RC \
19699     old_archive_from_new_cmds_RC \
19700     predep_objects_RC \
19701     postdep_objects_RC \
19702     predeps_RC \
19703     postdeps_RC \
19704     compiler_lib_search_path_RC \
19705     compiler_lib_search_dirs_RC \
19706     archive_cmds_RC \
19707     archive_expsym_cmds_RC \
19708     postinstall_cmds_RC \
19709     postuninstall_cmds_RC \
19710     old_archive_from_expsyms_cmds_RC \
19711     allow_undefined_flag_RC \
19712     no_undefined_flag_RC \
19713     export_symbols_cmds_RC \
19714     hardcode_libdir_flag_spec_RC \
19715     hardcode_libdir_flag_spec_ld_RC \
19716     hardcode_libdir_separator_RC \
19717     hardcode_automatic_RC \
19718     module_cmds_RC \
19719     module_expsym_cmds_RC \
19720     lt_cv_prog_compiler_c_o_RC \
19721     fix_srcfile_path_RC \
19722     exclude_expsyms_RC \
19723     include_expsyms_RC; do
19724
19725     case $var in
19726     old_archive_cmds_RC | \
19727     old_archive_from_new_cmds_RC | \
19728     archive_cmds_RC | \
19729     archive_expsym_cmds_RC | \
19730     module_cmds_RC | \
19731     module_expsym_cmds_RC | \
19732     old_archive_from_expsyms_cmds_RC | \
19733     export_symbols_cmds_RC | \
19734     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19735     postinstall_cmds | postuninstall_cmds | \
19736     old_postinstall_cmds | old_postuninstall_cmds | \
19737     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19738       # Double-quote double-evaled strings.
19739       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19740       ;;
19741     *)
19742       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19743       ;;
19744     esac
19745   done
19746
19747   case $lt_echo in
19748   *'\$0 --fallback-echo"')
19749     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19750     ;;
19751   esac
19752
19753 cfgfile="$ofile"
19754
19755   cat <<__EOF__ >> "$cfgfile"
19756 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19757
19758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19759
19760 # Shell to use when invoking shell scripts.
19761 SHELL=$lt_SHELL
19762
19763 # Whether or not to build shared libraries.
19764 build_libtool_libs=$enable_shared
19765
19766 # Whether or not to build static libraries.
19767 build_old_libs=$enable_static
19768
19769 # Whether or not to add -lc for building shared libraries.
19770 build_libtool_need_lc=$archive_cmds_need_lc_RC
19771
19772 # Whether or not to disallow shared libs when runtime libs are static
19773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19774
19775 # Whether or not to optimize for fast installation.
19776 fast_install=$enable_fast_install
19777
19778 # The host system.
19779 host_alias=$host_alias
19780 host=$host
19781 host_os=$host_os
19782
19783 # The build system.
19784 build_alias=$build_alias
19785 build=$build
19786 build_os=$build_os
19787
19788 # An echo program that does not interpret backslashes.
19789 echo=$lt_echo
19790
19791 # The archiver.
19792 AR=$lt_AR
19793 AR_FLAGS=$lt_AR_FLAGS
19794
19795 # A C compiler.
19796 LTCC=$lt_LTCC
19797
19798 # LTCC compiler flags.
19799 LTCFLAGS=$lt_LTCFLAGS
19800
19801 # A language-specific compiler.
19802 CC=$lt_compiler_RC
19803
19804 # Is the compiler the GNU C compiler?
19805 with_gcc=$GCC_RC
19806
19807 # An ERE matcher.
19808 EGREP=$lt_EGREP
19809
19810 # The linker used to build libraries.
19811 LD=$lt_LD_RC
19812
19813 # Whether we need hard or soft links.
19814 LN_S=$lt_LN_S
19815
19816 # A BSD-compatible nm program.
19817 NM=$lt_NM
19818
19819 # A symbol stripping program
19820 STRIP=$lt_STRIP
19821
19822 # Used to examine libraries when file_magic_cmd begins "file"
19823 MAGIC_CMD=$MAGIC_CMD
19824
19825 # Used on cygwin: DLL creation program.
19826 DLLTOOL="$DLLTOOL"
19827
19828 # Used on cygwin: object dumper.
19829 OBJDUMP="$OBJDUMP"
19830
19831 # Used on cygwin: assembler.
19832 AS="$AS"
19833
19834 # The name of the directory that contains temporary libtool files.
19835 objdir=$objdir
19836
19837 # How to create reloadable object files.
19838 reload_flag=$lt_reload_flag
19839 reload_cmds=$lt_reload_cmds
19840
19841 # How to pass a linker flag through the compiler.
19842 wl=$lt_lt_prog_compiler_wl_RC
19843
19844 # Object file suffix (normally "o").
19845 objext="$ac_objext"
19846
19847 # Old archive suffix (normally "a").
19848 libext="$libext"
19849
19850 # Shared library suffix (normally ".so").
19851 shrext_cmds='$shrext_cmds'
19852
19853 # Executable file suffix (normally "").
19854 exeext="$exeext"
19855
19856 # Additional compiler flags for building library objects.
19857 pic_flag=$lt_lt_prog_compiler_pic_RC
19858 pic_mode=$pic_mode
19859
19860 # What is the maximum length of a command?
19861 max_cmd_len=$lt_cv_sys_max_cmd_len
19862
19863 # Does compiler simultaneously support -c and -o options?
19864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19865
19866 # Must we lock files when doing compilation?
19867 need_locks=$lt_need_locks
19868
19869 # Do we need the lib prefix for modules?
19870 need_lib_prefix=$need_lib_prefix
19871
19872 # Do we need a version for libraries?
19873 need_version=$need_version
19874
19875 # Whether dlopen is supported.
19876 dlopen_support=$enable_dlopen
19877
19878 # Whether dlopen of programs is supported.
19879 dlopen_self=$enable_dlopen_self
19880
19881 # Whether dlopen of statically linked programs is supported.
19882 dlopen_self_static=$enable_dlopen_self_static
19883
19884 # Compiler flag to prevent dynamic linking.
19885 link_static_flag=$lt_lt_prog_compiler_static_RC
19886
19887 # Compiler flag to turn off builtin functions.
19888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19889
19890 # Compiler flag to allow reflexive dlopens.
19891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19892
19893 # Compiler flag to generate shared objects directly from archives.
19894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19895
19896 # Compiler flag to generate thread-safe objects.
19897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19898
19899 # Library versioning type.
19900 version_type=$version_type
19901
19902 # Format of library name prefix.
19903 libname_spec=$lt_libname_spec
19904
19905 # List of archive names.  First name is the real one, the rest are links.
19906 # The last name is the one that the linker finds with -lNAME.
19907 library_names_spec=$lt_library_names_spec
19908
19909 # The coded name of the library, if different from the real name.
19910 soname_spec=$lt_soname_spec
19911
19912 # Commands used to build and install an old-style archive.
19913 RANLIB=$lt_RANLIB
19914 old_archive_cmds=$lt_old_archive_cmds_RC
19915 old_postinstall_cmds=$lt_old_postinstall_cmds
19916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19917
19918 # Create an old-style archive from a shared archive.
19919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19920
19921 # Create a temporary old-style archive to link instead of a shared archive.
19922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19923
19924 # Commands used to build and install a shared archive.
19925 archive_cmds=$lt_archive_cmds_RC
19926 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19927 postinstall_cmds=$lt_postinstall_cmds
19928 postuninstall_cmds=$lt_postuninstall_cmds
19929
19930 # Commands used to build a loadable module (assumed same as above if empty)
19931 module_cmds=$lt_module_cmds_RC
19932 module_expsym_cmds=$lt_module_expsym_cmds_RC
19933
19934 # Commands to strip libraries.
19935 old_striplib=$lt_old_striplib
19936 striplib=$lt_striplib
19937
19938 # Dependencies to place before the objects being linked to create a
19939 # shared library.
19940 predep_objects=$lt_predep_objects_RC
19941
19942 # Dependencies to place after the objects being linked to create a
19943 # shared library.
19944 postdep_objects=$lt_postdep_objects_RC
19945
19946 # Dependencies to place before the objects being linked to create a
19947 # shared library.
19948 predeps=$lt_predeps_RC
19949
19950 # Dependencies to place after the objects being linked to create a
19951 # shared library.
19952 postdeps=$lt_postdeps_RC
19953
19954 # The directories searched by this compiler when creating a shared
19955 # library
19956 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19957
19958 # The library search path used internally by the compiler when linking
19959 # a shared library.
19960 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19961
19962 # Method to check whether dependent libraries are shared objects.
19963 deplibs_check_method=$lt_deplibs_check_method
19964
19965 # Command to use when deplibs_check_method == file_magic.
19966 file_magic_cmd=$lt_file_magic_cmd
19967
19968 # Flag that allows shared libraries with undefined symbols to be built.
19969 allow_undefined_flag=$lt_allow_undefined_flag_RC
19970
19971 # Flag that forces no undefined symbols.
19972 no_undefined_flag=$lt_no_undefined_flag_RC
19973
19974 # Commands used to finish a libtool library installation in a directory.
19975 finish_cmds=$lt_finish_cmds
19976
19977 # Same as above, but a single script fragment to be evaled but not shown.
19978 finish_eval=$lt_finish_eval
19979
19980 # Take the output of nm and produce a listing of raw symbols and C names.
19981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19982
19983 # Transform the output of nm in a proper C declaration
19984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19985
19986 # Transform the output of nm in a C name address pair
19987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19988
19989 # This is the shared library runtime path variable.
19990 runpath_var=$runpath_var
19991
19992 # This is the shared library path variable.
19993 shlibpath_var=$shlibpath_var
19994
19995 # Is shlibpath searched before the hard-coded library search path?
19996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19997
19998 # How to hardcode a shared library path into an executable.
19999 hardcode_action=$hardcode_action_RC
20000
20001 # Whether we should hardcode library paths into libraries.
20002 hardcode_into_libs=$hardcode_into_libs
20003
20004 # Flag to hardcode \$libdir into a binary during linking.
20005 # This must work even if \$libdir does not exist.
20006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20007
20008 # If ld is used when linking, flag to hardcode \$libdir into
20009 # a binary during linking. This must work even if \$libdir does
20010 # not exist.
20011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20012
20013 # Whether we need a single -rpath flag with a separated argument.
20014 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20015
20016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20017 # resulting binary.
20018 hardcode_direct=$hardcode_direct_RC
20019
20020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20021 # resulting binary.
20022 hardcode_minus_L=$hardcode_minus_L_RC
20023
20024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20025 # the resulting binary.
20026 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20027
20028 # Set to yes if building a shared library automatically hardcodes DIR into the library
20029 # and all subsequent libraries and executables linked against it.
20030 hardcode_automatic=$hardcode_automatic_RC
20031
20032 # Variables whose values should be saved in libtool wrapper scripts and
20033 # restored at relink time.
20034 variables_saved_for_relink="$variables_saved_for_relink"
20035
20036 # Whether libtool must link a program against all its dependency libraries.
20037 link_all_deplibs=$link_all_deplibs_RC
20038
20039 # Compile-time system search path for libraries
20040 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20041
20042 # Run-time system search path for libraries
20043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20044
20045 # Fix the shell variable \$srcfile for the compiler.
20046 fix_srcfile_path=$lt_fix_srcfile_path
20047
20048 # Set to yes if exported symbols are required.
20049 always_export_symbols=$always_export_symbols_RC
20050
20051 # The commands to list exported symbols.
20052 export_symbols_cmds=$lt_export_symbols_cmds_RC
20053
20054 # The commands to extract the exported symbol list from a shared archive.
20055 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20056
20057 # Symbols that should not be listed in the preloaded symbols.
20058 exclude_expsyms=$lt_exclude_expsyms_RC
20059
20060 # Symbols that must always be exported.
20061 include_expsyms=$lt_include_expsyms_RC
20062
20063 # ### END LIBTOOL TAG CONFIG: $tagname
20064
20065 __EOF__
20066
20067
20068 else
20069   # If there is no Makefile yet, we rely on a make rule to execute
20070   # `config.status --recheck' to rerun these tests and create the
20071   # libtool script then.
20072   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20073   if test -f "$ltmain_in"; then
20074     test -f Makefile && make "$ltmain"
20075   fi
20076 fi
20077
20078
20079 ac_ext=c
20080 ac_cpp='$CPP $CPPFLAGS'
20081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20084
20085 CC="$lt_save_CC"
20086
20087         ;;
20088
20089       *)
20090         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20091 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20092    { (exit 1); exit 1; }; }
20093         ;;
20094       esac
20095
20096       # Append the new tag name to the list of available tags.
20097       if test -n "$tagname" ; then
20098       available_tags="$available_tags $tagname"
20099     fi
20100     fi
20101   done
20102   IFS="$lt_save_ifs"
20103
20104   # Now substitute the updated list of available tags.
20105   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20106     mv "${ofile}T" "$ofile"
20107     chmod +x "$ofile"
20108   else
20109     rm -f "${ofile}T"
20110     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20111 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20112    { (exit 1); exit 1; }; }
20113   fi
20114 fi
20115
20116
20117
20118 # This can be used to rebuild libtool when needed
20119 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20120
20121 # Always use our own libtool.
20122 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20123
20124 # Prevent multiple expansion
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146 ac_config_headers="$ac_config_headers src/config.h"
20147
20148
20149 # Extract the first word of "md5sum", so it can be a program name with args.
20150 set dummy md5sum; ac_word=$2
20151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20153 if test "${ac_cv_prog_MD5SUM+set}" = set; then
20154   echo $ECHO_N "(cached) $ECHO_C" >&6
20155 else
20156   if test -n "$MD5SUM"; then
20157   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
20158 else
20159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20160 for as_dir in $PATH
20161 do
20162   IFS=$as_save_IFS
20163   test -z "$as_dir" && as_dir=.
20164   for ac_exec_ext in '' $ac_executable_extensions; do
20165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20166     ac_cv_prog_MD5SUM="md5sum"
20167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20168     break 2
20169   fi
20170 done
20171 done
20172 IFS=$as_save_IFS
20173
20174 fi
20175 fi
20176 MD5SUM=$ac_cv_prog_MD5SUM
20177 if test -n "$MD5SUM"; then
20178   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
20179 echo "${ECHO_T}$MD5SUM" >&6; }
20180 else
20181   { echo "$as_me:$LINENO: result: no" >&5
20182 echo "${ECHO_T}no" >&6; }
20183 fi
20184
20185
20186 # Extract the first word of "grep", so it can be a program name with args.
20187 set dummy grep; ac_word=$2
20188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20190 if test "${ac_cv_prog_GREP+set}" = set; then
20191   echo $ECHO_N "(cached) $ECHO_C" >&6
20192 else
20193   if test -n "$GREP"; then
20194   ac_cv_prog_GREP="$GREP" # Let the user override the test.
20195 else
20196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20197 for as_dir in $PATH
20198 do
20199   IFS=$as_save_IFS
20200   test -z "$as_dir" && as_dir=.
20201   for ac_exec_ext in '' $ac_executable_extensions; do
20202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20203     ac_cv_prog_GREP="grep"
20204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20205     break 2
20206   fi
20207 done
20208 done
20209 IFS=$as_save_IFS
20210
20211 fi
20212 fi
20213 GREP=$ac_cv_prog_GREP
20214 if test -n "$GREP"; then
20215   { echo "$as_me:$LINENO: result: $GREP" >&5
20216 echo "${ECHO_T}$GREP" >&6; }
20217 else
20218   { echo "$as_me:$LINENO: result: no" >&5
20219 echo "${ECHO_T}no" >&6; }
20220 fi
20221
20222
20223 # Extract the first word of "sed", so it can be a program name with args.
20224 set dummy sed; ac_word=$2
20225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20227 if test "${ac_cv_prog_SED+set}" = set; then
20228   echo $ECHO_N "(cached) $ECHO_C" >&6
20229 else
20230   if test -n "$SED"; then
20231   ac_cv_prog_SED="$SED" # Let the user override the test.
20232 else
20233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20234 for as_dir in $PATH
20235 do
20236   IFS=$as_save_IFS
20237   test -z "$as_dir" && as_dir=.
20238   for ac_exec_ext in '' $ac_executable_extensions; do
20239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20240     ac_cv_prog_SED="sed"
20241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20242     break 2
20243   fi
20244 done
20245 done
20246 IFS=$as_save_IFS
20247
20248 fi
20249 fi
20250 SED=$ac_cv_prog_SED
20251 if test -n "$SED"; then
20252   { echo "$as_me:$LINENO: result: $SED" >&5
20253 echo "${ECHO_T}$SED" >&6; }
20254 else
20255   { echo "$as_me:$LINENO: result: no" >&5
20256 echo "${ECHO_T}no" >&6; }
20257 fi
20258
20259
20260 for ac_prog in gawk mawk nawk awk
20261 do
20262   # Extract the first word of "$ac_prog", so it can be a program name with args.
20263 set dummy $ac_prog; ac_word=$2
20264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20266 if test "${ac_cv_prog_AWK+set}" = set; then
20267   echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269   if test -n "$AWK"; then
20270   ac_cv_prog_AWK="$AWK" # Let the user override the test.
20271 else
20272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20273 for as_dir in $PATH
20274 do
20275   IFS=$as_save_IFS
20276   test -z "$as_dir" && as_dir=.
20277   for ac_exec_ext in '' $ac_executable_extensions; do
20278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20279     ac_cv_prog_AWK="$ac_prog"
20280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20281     break 2
20282   fi
20283 done
20284 done
20285 IFS=$as_save_IFS
20286
20287 fi
20288 fi
20289 AWK=$ac_cv_prog_AWK
20290 if test -n "$AWK"; then
20291   { echo "$as_me:$LINENO: result: $AWK" >&5
20292 echo "${ECHO_T}$AWK" >&6; }
20293 else
20294   { echo "$as_me:$LINENO: result: no" >&5
20295 echo "${ECHO_T}no" >&6; }
20296 fi
20297
20298
20299   test -n "$AWK" && break
20300 done
20301
20302
20303
20304
20305
20306
20307
20308 for ac_header in fcntl.h malloc.h sys/ioctl.h unistd.h
20309 do
20310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20312   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20315   echo $ECHO_N "(cached) $ECHO_C" >&6
20316 fi
20317 ac_res=`eval echo '${'$as_ac_Header'}'`
20318                { echo "$as_me:$LINENO: result: $ac_res" >&5
20319 echo "${ECHO_T}$ac_res" >&6; }
20320 else
20321   # Is the header compilable?
20322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20324 cat >conftest.$ac_ext <<_ACEOF
20325 /* confdefs.h.  */
20326 _ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h.  */
20330 $ac_includes_default
20331 #include <$ac_header>
20332 _ACEOF
20333 rm -f conftest.$ac_objext
20334 if { (ac_try="$ac_compile"
20335 case "(($ac_try" in
20336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337   *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340   (eval "$ac_compile") 2>conftest.er1
20341   ac_status=$?
20342   grep -v '^ *+' conftest.er1 >conftest.err
20343   rm -f conftest.er1
20344   cat conftest.err >&5
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } && {
20347          test -z "$ac_c_werror_flag" ||
20348          test ! -s conftest.err
20349        } && test -s conftest.$ac_objext; then
20350   ac_header_compiler=yes
20351 else
20352   echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355         ac_header_compiler=no
20356 fi
20357
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20360 echo "${ECHO_T}$ac_header_compiler" >&6; }
20361
20362 # Is the header present?
20363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h.  */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h.  */
20371 #include <$ac_header>
20372 _ACEOF
20373 if { (ac_try="$ac_cpp conftest.$ac_ext"
20374 case "(($ac_try" in
20375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376   *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20380   ac_status=$?
20381   grep -v '^ *+' conftest.er1 >conftest.err
20382   rm -f conftest.er1
20383   cat conftest.err >&5
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); } >/dev/null && {
20386          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20387          test ! -s conftest.err
20388        }; then
20389   ac_header_preproc=yes
20390 else
20391   echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394   ac_header_preproc=no
20395 fi
20396
20397 rm -f conftest.err conftest.$ac_ext
20398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20399 echo "${ECHO_T}$ac_header_preproc" >&6; }
20400
20401 # So?  What about this header?
20402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20403   yes:no: )
20404     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20408     ac_header_preproc=yes
20409     ;;
20410   no:yes:* )
20411     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20413     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20414 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20415     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20417     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20418 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20421     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20423
20424     ;;
20425 esac
20426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20429   echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431   eval "$as_ac_Header=\$ac_header_preproc"
20432 fi
20433 ac_res=`eval echo '${'$as_ac_Header'}'`
20434                { echo "$as_me:$LINENO: result: $ac_res" >&5
20435 echo "${ECHO_T}$ac_res" >&6; }
20436
20437 fi
20438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20439   cat >>confdefs.h <<_ACEOF
20440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20441 _ACEOF
20442
20443 fi
20444
20445 done
20446
20447
20448
20449
20450 for ac_header in sys/scsi/impl/uscsi.h scsi/sg.h stdint.h
20451 do
20452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20454   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20457   echo $ECHO_N "(cached) $ECHO_C" >&6
20458 fi
20459 ac_res=`eval echo '${'$as_ac_Header'}'`
20460                { echo "$as_me:$LINENO: result: $ac_res" >&5
20461 echo "${ECHO_T}$ac_res" >&6; }
20462 else
20463   # Is the header compilable?
20464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h.  */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h.  */
20472 $ac_includes_default
20473 #include <$ac_header>
20474 _ACEOF
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479   *) ac_try_echo=$ac_try;;
20480 esac
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482   (eval "$ac_compile") 2>conftest.er1
20483   ac_status=$?
20484   grep -v '^ *+' conftest.er1 >conftest.err
20485   rm -f conftest.er1
20486   cat conftest.err >&5
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); } && {
20489          test -z "$ac_c_werror_flag" ||
20490          test ! -s conftest.err
20491        } && test -s conftest.$ac_objext; then
20492   ac_header_compiler=yes
20493 else
20494   echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497         ac_header_compiler=no
20498 fi
20499
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20502 echo "${ECHO_T}$ac_header_compiler" >&6; }
20503
20504 # Is the header present?
20505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h.  */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h.  */
20513 #include <$ac_header>
20514 _ACEOF
20515 if { (ac_try="$ac_cpp conftest.$ac_ext"
20516 case "(($ac_try" in
20517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518   *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20522   ac_status=$?
20523   grep -v '^ *+' conftest.er1 >conftest.err
20524   rm -f conftest.er1
20525   cat conftest.err >&5
20526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527   (exit $ac_status); } >/dev/null && {
20528          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20529          test ! -s conftest.err
20530        }; then
20531   ac_header_preproc=yes
20532 else
20533   echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20535
20536   ac_header_preproc=no
20537 fi
20538
20539 rm -f conftest.err conftest.$ac_ext
20540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20541 echo "${ECHO_T}$ac_header_preproc" >&6; }
20542
20543 # So?  What about this header?
20544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20545   yes:no: )
20546     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20550     ac_header_preproc=yes
20551     ;;
20552   no:yes:* )
20553     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20555     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20556 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20557     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20559     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20560 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20563     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20565
20566     ;;
20567 esac
20568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20571   echo $ECHO_N "(cached) $ECHO_C" >&6
20572 else
20573   eval "$as_ac_Header=\$ac_header_preproc"
20574 fi
20575 ac_res=`eval echo '${'$as_ac_Header'}'`
20576                { echo "$as_me:$LINENO: result: $ac_res" >&5
20577 echo "${ECHO_T}$ac_res" >&6; }
20578
20579 fi
20580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20581   cat >>confdefs.h <<_ACEOF
20582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20583 _ACEOF
20584
20585 fi
20586
20587 done
20588
20589
20590
20591
20592 for ac_header in sys/int_types.h string.h strings.h
20593 do
20594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20596   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20599   echo $ECHO_N "(cached) $ECHO_C" >&6
20600 fi
20601 ac_res=`eval echo '${'$as_ac_Header'}'`
20602                { echo "$as_me:$LINENO: result: $ac_res" >&5
20603 echo "${ECHO_T}$ac_res" >&6; }
20604 else
20605   # Is the header compilable?
20606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20608 cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h.  */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h.  */
20614 $ac_includes_default
20615 #include <$ac_header>
20616 _ACEOF
20617 rm -f conftest.$ac_objext
20618 if { (ac_try="$ac_compile"
20619 case "(($ac_try" in
20620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621   *) ac_try_echo=$ac_try;;
20622 esac
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624   (eval "$ac_compile") 2>conftest.er1
20625   ac_status=$?
20626   grep -v '^ *+' conftest.er1 >conftest.err
20627   rm -f conftest.er1
20628   cat conftest.err >&5
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); } && {
20631          test -z "$ac_c_werror_flag" ||
20632          test ! -s conftest.err
20633        } && test -s conftest.$ac_objext; then
20634   ac_header_compiler=yes
20635 else
20636   echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639         ac_header_compiler=no
20640 fi
20641
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20644 echo "${ECHO_T}$ac_header_compiler" >&6; }
20645
20646 # Is the header present?
20647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20649 cat >conftest.$ac_ext <<_ACEOF
20650 /* confdefs.h.  */
20651 _ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h.  */
20655 #include <$ac_header>
20656 _ACEOF
20657 if { (ac_try="$ac_cpp conftest.$ac_ext"
20658 case "(($ac_try" in
20659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660   *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20664   ac_status=$?
20665   grep -v '^ *+' conftest.er1 >conftest.err
20666   rm -f conftest.er1
20667   cat conftest.err >&5
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } >/dev/null && {
20670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20671          test ! -s conftest.err
20672        }; then
20673   ac_header_preproc=yes
20674 else
20675   echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678   ac_header_preproc=no
20679 fi
20680
20681 rm -f conftest.err conftest.$ac_ext
20682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20683 echo "${ECHO_T}$ac_header_preproc" >&6; }
20684
20685 # So?  What about this header?
20686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20687   yes:no: )
20688     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20692     ac_header_preproc=yes
20693     ;;
20694   no:yes:* )
20695     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20697     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20698 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20699     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20701     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20702 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20705     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20707
20708     ;;
20709 esac
20710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20713   echo $ECHO_N "(cached) $ECHO_C" >&6
20714 else
20715   eval "$as_ac_Header=\$ac_header_preproc"
20716 fi
20717 ac_res=`eval echo '${'$as_ac_Header'}'`
20718                { echo "$as_me:$LINENO: result: $ac_res" >&5
20719 echo "${ECHO_T}$ac_res" >&6; }
20720
20721 fi
20722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20723   cat >>confdefs.h <<_ACEOF
20724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20725 _ACEOF
20726
20727 fi
20728
20729 done
20730
20731
20732
20733 for ac_header in dirent.h sys/stat.h
20734 do
20735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20737   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20740   echo $ECHO_N "(cached) $ECHO_C" >&6
20741 fi
20742 ac_res=`eval echo '${'$as_ac_Header'}'`
20743                { echo "$as_me:$LINENO: result: $ac_res" >&5
20744 echo "${ECHO_T}$ac_res" >&6; }
20745 else
20746   # Is the header compilable?
20747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20749 cat >conftest.$ac_ext <<_ACEOF
20750 /* confdefs.h.  */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h.  */
20755 $ac_includes_default
20756 #include <$ac_header>
20757 _ACEOF
20758 rm -f conftest.$ac_objext
20759 if { (ac_try="$ac_compile"
20760 case "(($ac_try" in
20761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762   *) ac_try_echo=$ac_try;;
20763 esac
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765   (eval "$ac_compile") 2>conftest.er1
20766   ac_status=$?
20767   grep -v '^ *+' conftest.er1 >conftest.err
20768   rm -f conftest.er1
20769   cat conftest.err >&5
20770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771   (exit $ac_status); } && {
20772          test -z "$ac_c_werror_flag" ||
20773          test ! -s conftest.err
20774        } && test -s conftest.$ac_objext; then
20775   ac_header_compiler=yes
20776 else
20777   echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780         ac_header_compiler=no
20781 fi
20782
20783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20785 echo "${ECHO_T}$ac_header_compiler" >&6; }
20786
20787 # Is the header present?
20788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20790 cat >conftest.$ac_ext <<_ACEOF
20791 /* confdefs.h.  */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h.  */
20796 #include <$ac_header>
20797 _ACEOF
20798 if { (ac_try="$ac_cpp conftest.$ac_ext"
20799 case "(($ac_try" in
20800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801   *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20805   ac_status=$?
20806   grep -v '^ *+' conftest.er1 >conftest.err
20807   rm -f conftest.er1
20808   cat conftest.err >&5
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); } >/dev/null && {
20811          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20812          test ! -s conftest.err
20813        }; then
20814   ac_header_preproc=yes
20815 else
20816   echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819   ac_header_preproc=no
20820 fi
20821
20822 rm -f conftest.err conftest.$ac_ext
20823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20824 echo "${ECHO_T}$ac_header_preproc" >&6; }
20825
20826 # So?  What about this header?
20827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20828   yes:no: )
20829     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20833     ac_header_preproc=yes
20834     ;;
20835   no:yes:* )
20836     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20838     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20839 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20840     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20842     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20843 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20846     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20848
20849     ;;
20850 esac
20851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20854   echo $ECHO_N "(cached) $ECHO_C" >&6
20855 else
20856   eval "$as_ac_Header=\$ac_header_preproc"
20857 fi
20858 ac_res=`eval echo '${'$as_ac_Header'}'`
20859                { echo "$as_me:$LINENO: result: $ac_res" >&5
20860 echo "${ECHO_T}$ac_res" >&6; }
20861
20862 fi
20863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20864   cat >>confdefs.h <<_ACEOF
20865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20866 _ACEOF
20867
20868 fi
20869
20870 done
20871
20872
20873 { echo "$as_me:$LINENO: checking for inline" >&5
20874 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20875 if test "${ac_cv_c_inline+set}" = set; then
20876   echo $ECHO_N "(cached) $ECHO_C" >&6
20877 else
20878   ac_cv_c_inline=no
20879 for ac_kw in inline __inline__ __inline; do
20880   cat >conftest.$ac_ext <<_ACEOF
20881 /* confdefs.h.  */
20882 _ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h.  */
20886 #ifndef __cplusplus
20887 typedef int foo_t;
20888 static $ac_kw foo_t static_foo () {return 0; }
20889 $ac_kw foo_t foo () {return 0; }
20890 #endif
20891
20892 _ACEOF
20893 rm -f conftest.$ac_objext
20894 if { (ac_try="$ac_compile"
20895 case "(($ac_try" in
20896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897   *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900   (eval "$ac_compile") 2>conftest.er1
20901   ac_status=$?
20902   grep -v '^ *+' conftest.er1 >conftest.err
20903   rm -f conftest.er1
20904   cat conftest.err >&5
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); } && {
20907          test -z "$ac_c_werror_flag" ||
20908          test ! -s conftest.err
20909        } && test -s conftest.$ac_objext; then
20910   ac_cv_c_inline=$ac_kw
20911 else
20912   echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915
20916 fi
20917
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919   test "$ac_cv_c_inline" != no && break
20920 done
20921
20922 fi
20923 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20924 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20925
20926
20927 case $ac_cv_c_inline in
20928   inline | yes) ;;
20929   *)
20930     case $ac_cv_c_inline in
20931       no) ac_val=;;
20932       *) ac_val=$ac_cv_c_inline;;
20933     esac
20934     cat >>confdefs.h <<_ACEOF
20935 #ifndef __cplusplus
20936 #define inline $ac_val
20937 #endif
20938 _ACEOF
20939     ;;
20940 esac
20941
20942 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20943 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20944 if test "${ac_cv_c_const+set}" = set; then
20945   echo $ECHO_N "(cached) $ECHO_C" >&6
20946 else
20947   cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953
20954 int
20955 main ()
20956 {
20957 /* FIXME: Include the comments suggested by Paul. */
20958 #ifndef __cplusplus
20959   /* Ultrix mips cc rejects this.  */
20960   typedef int charset[2];
20961   const charset cs;
20962   /* SunOS 4.1.1 cc rejects this.  */
20963   char const *const *pcpcc;
20964   char **ppc;
20965   /* NEC SVR4.0.2 mips cc rejects this.  */
20966   struct point {int x, y;};
20967   static struct point const zero = {0,0};
20968   /* AIX XL C 1.02.0.0 rejects this.
20969      It does not let you subtract one const X* pointer from another in
20970      an arm of an if-expression whose if-part is not a constant
20971      expression */
20972   const char *g = "string";
20973   pcpcc = &g + (g ? g-g : 0);
20974   /* HPUX 7.0 cc rejects these. */
20975   ++pcpcc;
20976   ppc = (char**) pcpcc;
20977   pcpcc = (char const *const *) ppc;
20978   { /* SCO 3.2v4 cc rejects this.  */
20979     char *t;
20980     char const *s = 0 ? (char *) 0 : (char const *) 0;
20981
20982     *t++ = 0;
20983     if (s) return 0;
20984   }
20985   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20986     int x[] = {25, 17};
20987     const int *foo = &x[0];
20988     ++foo;
20989   }
20990   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20991     typedef const int *iptr;
20992     iptr p = 0;
20993     ++p;
20994   }
20995   { /* AIX XL C 1.02.0.0 rejects this saying
20996        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20997     struct s { int j; const int *ap[3]; };
20998     struct s *b; b->j = 5;
20999   }
21000   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21001     const int foo = 10;
21002     if (!foo) return 0;
21003   }
21004   return !cs[0] && !zero.x;
21005 #endif
21006
21007   ;
21008   return 0;
21009 }
21010 _ACEOF
21011 rm -f conftest.$ac_objext
21012 if { (ac_try="$ac_compile"
21013 case "(($ac_try" in
21014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015   *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018   (eval "$ac_compile") 2>conftest.er1
21019   ac_status=$?
21020   grep -v '^ *+' conftest.er1 >conftest.err
21021   rm -f conftest.er1
21022   cat conftest.err >&5
21023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024   (exit $ac_status); } && {
21025          test -z "$ac_c_werror_flag" ||
21026          test ! -s conftest.err
21027        } && test -s conftest.$ac_objext; then
21028   ac_cv_c_const=yes
21029 else
21030   echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21032
21033         ac_cv_c_const=no
21034 fi
21035
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037 fi
21038 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21039 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21040 if test $ac_cv_c_const = no; then
21041
21042 cat >>confdefs.h <<\_ACEOF
21043 #define const
21044 _ACEOF
21045
21046 fi
21047
21048 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21049 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21050 if test "${ac_cv_header_time+set}" = set; then
21051   echo $ECHO_N "(cached) $ECHO_C" >&6
21052 else
21053   cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h.  */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h.  */
21059 #include <sys/types.h>
21060 #include <sys/time.h>
21061 #include <time.h>
21062
21063 int
21064 main ()
21065 {
21066 if ((struct tm *) 0)
21067 return 0;
21068   ;
21069   return 0;
21070 }
21071 _ACEOF
21072 rm -f conftest.$ac_objext
21073 if { (ac_try="$ac_compile"
21074 case "(($ac_try" in
21075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076   *) ac_try_echo=$ac_try;;
21077 esac
21078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21079   (eval "$ac_compile") 2>conftest.er1
21080   ac_status=$?
21081   grep -v '^ *+' conftest.er1 >conftest.err
21082   rm -f conftest.er1
21083   cat conftest.err >&5
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); } && {
21086          test -z "$ac_c_werror_flag" ||
21087          test ! -s conftest.err
21088        } && test -s conftest.$ac_objext; then
21089   ac_cv_header_time=yes
21090 else
21091   echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094         ac_cv_header_time=no
21095 fi
21096
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098 fi
21099 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21100 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21101 if test $ac_cv_header_time = yes; then
21102
21103 cat >>confdefs.h <<\_ACEOF
21104 #define TIME_WITH_SYS_TIME 1
21105 _ACEOF
21106
21107 fi
21108
21109 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21110 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21111 if test "${ac_cv_struct_tm+set}" = set; then
21112   echo $ECHO_N "(cached) $ECHO_C" >&6
21113 else
21114   cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h.  */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h.  */
21120 #include <sys/types.h>
21121 #include <time.h>
21122
21123 int
21124 main ()
21125 {
21126 struct tm tm;
21127                                      int *p = &tm.tm_sec;
21128                                      return !p;
21129   ;
21130   return 0;
21131 }
21132 _ACEOF
21133 rm -f conftest.$ac_objext
21134 if { (ac_try="$ac_compile"
21135 case "(($ac_try" in
21136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137   *) ac_try_echo=$ac_try;;
21138 esac
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140   (eval "$ac_compile") 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } && {
21147          test -z "$ac_c_werror_flag" ||
21148          test ! -s conftest.err
21149        } && test -s conftest.$ac_objext; then
21150   ac_cv_struct_tm=time.h
21151 else
21152   echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155         ac_cv_struct_tm=sys/time.h
21156 fi
21157
21158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21159 fi
21160 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21161 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21162 if test $ac_cv_struct_tm = sys/time.h; then
21163
21164 cat >>confdefs.h <<\_ACEOF
21165 #define TM_IN_SYS_TIME 1
21166 _ACEOF
21167
21168 fi
21169
21170
21171
21172
21173 for ac_func in select strdup strstr
21174 do
21175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21179   echo $ECHO_N "(cached) $ECHO_C" >&6
21180 else
21181   cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h.  */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h.  */
21187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21189 #define $ac_func innocuous_$ac_func
21190
21191 /* System header to define __stub macros and hopefully few prototypes,
21192     which can conflict with char $ac_func (); below.
21193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21194     <limits.h> exists even on freestanding compilers.  */
21195
21196 #ifdef __STDC__
21197 # include <limits.h>
21198 #else
21199 # include <assert.h>
21200 #endif
21201
21202 #undef $ac_func
21203
21204 /* Override any GCC internal prototype to avoid an error.
21205    Use char because int might match the return type of a GCC
21206    builtin and then its argument prototype would still apply.  */
21207 #ifdef __cplusplus
21208 extern "C"
21209 #endif
21210 char $ac_func ();
21211 /* The GNU C library defines this for functions which it implements
21212     to always fail with ENOSYS.  Some functions are actually named
21213     something starting with __ and the normal name is an alias.  */
21214 #if defined __stub_$ac_func || defined __stub___$ac_func
21215 choke me
21216 #endif
21217
21218 int
21219 main ()
21220 {
21221 return $ac_func ();
21222   ;
21223   return 0;
21224 }
21225 _ACEOF
21226 rm -f conftest.$ac_objext conftest$ac_exeext
21227 if { (ac_try="$ac_link"
21228 case "(($ac_try" in
21229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230   *) ac_try_echo=$ac_try;;
21231 esac
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233   (eval "$ac_link") 2>conftest.er1
21234   ac_status=$?
21235   grep -v '^ *+' conftest.er1 >conftest.err
21236   rm -f conftest.er1
21237   cat conftest.err >&5
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); } && {
21240          test -z "$ac_c_werror_flag" ||
21241          test ! -s conftest.err
21242        } && test -s conftest$ac_exeext &&
21243        $as_test_x conftest$ac_exeext; then
21244   eval "$as_ac_var=yes"
21245 else
21246   echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249         eval "$as_ac_var=no"
21250 fi
21251
21252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21253       conftest$ac_exeext conftest.$ac_ext
21254 fi
21255 ac_res=`eval echo '${'$as_ac_var'}'`
21256                { echo "$as_me:$LINENO: result: $ac_res" >&5
21257 echo "${ECHO_T}$ac_res" >&6; }
21258 if test `eval echo '${'$as_ac_var'}'` = yes; then
21259   cat >>confdefs.h <<_ACEOF
21260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21261 _ACEOF
21262
21263 fi
21264 done
21265
21266
21267 G2_TM_H=$ac_cv_struct_tm
21268
21269 G2_HAVE_STDINT_H=0
21270 G2_HAVE_SYS_INT_TYPES_H=0
21271 if test "$ac_cv_header_sys_int_types_h" = "yes"; then
21272         G2_HAVE_SYS_INT_TYPES_H=1
21273 fi
21274 if test "$ac_cv_header_stdint_h" = "yes"; then
21275         G2_HAVE_STDINT_H=1
21276 fi
21277 G2_HAVE_UNISTD_H=0
21278 if test "$ac_cv_header_unistd_h" = "yes"; then
21279         G2_HAVE_UNISTD_H=1
21280 fi
21281 G2_HAVE_MALLOC_H=0
21282 if test "$ac_cv_header_malloc_h" = "yes"; then
21283         G2_HAVE_MALLOC_H=1
21284 fi
21285 G2_HAVE_STDINT_H=0
21286 if test "$ac_cv_header_stdint_h" = "yes"; then
21287         G2_HAVE_STDINT_H=1
21288 fi
21289 G2_TIME_WITH_SYS_TIME=0
21290 if test "$ac_cv_header_time_h" = "yes"; then
21291         G2_TIME_WITH_SYS_TIME=1
21292 fi
21293 G2_TM_IN_SYS_TIME=0
21294 if test "$ac_cv_struct_tm" = "sys/time.h"; then
21295         G2_TM_IN_SYS_TIME=1
21296 fi
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309 ac_config_files="$ac_config_files Makefile src/Makefile src/sympathy.h.head test/Makefile apps/Makefile libsympathy-config.src"
21310
21311 ac_config_commands="$ac_config_commands default"
21312
21313 cat >confcache <<\_ACEOF
21314 # This file is a shell script that caches the results of configure
21315 # tests run on this system so they can be shared between configure
21316 # scripts and configure runs, see configure's option --config-cache.
21317 # It is not useful on other systems.  If it contains results you don't
21318 # want to keep, you may remove or edit it.
21319 #
21320 # config.status only pays attention to the cache file if you give it
21321 # the --recheck option to rerun configure.
21322 #
21323 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21324 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21325 # following values.
21326
21327 _ACEOF
21328
21329 # The following way of writing the cache mishandles newlines in values,
21330 # but we know of no workaround that is simple, portable, and efficient.
21331 # So, we kill variables containing newlines.
21332 # Ultrix sh set writes to stderr and can't be redirected directly,
21333 # and sets the high bit in the cache file unless we assign to the vars.
21334 (
21335   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21336     eval ac_val=\$$ac_var
21337     case $ac_val in #(
21338     *${as_nl}*)
21339       case $ac_var in #(
21340       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21341 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21342       esac
21343       case $ac_var in #(
21344       _ | IFS | as_nl) ;; #(
21345       *) $as_unset $ac_var ;;
21346       esac ;;
21347     esac
21348   done
21349
21350   (set) 2>&1 |
21351     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21352     *${as_nl}ac_space=\ *)
21353       # `set' does not quote correctly, so add quotes (double-quote
21354       # substitution turns \\\\ into \\, and sed turns \\ into \).
21355       sed -n \
21356         "s/'/'\\\\''/g;
21357           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21358       ;; #(
21359     *)
21360       # `set' quotes correctly as required by POSIX, so do not add quotes.
21361       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21362       ;;
21363     esac |
21364     sort
21365 ) |
21366   sed '
21367      /^ac_cv_env_/b end
21368      t clear
21369      :clear
21370      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21371      t end
21372      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21373      :end' >>confcache
21374 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21375   if test -w "$cache_file"; then
21376     test "x$cache_file" != "x/dev/null" &&
21377       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21378 echo "$as_me: updating cache $cache_file" >&6;}
21379     cat confcache >$cache_file
21380   else
21381     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21382 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21383   fi
21384 fi
21385 rm -f confcache
21386
21387 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21388 # Let make expand exec_prefix.
21389 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21390
21391 DEFS=-DHAVE_CONFIG_H
21392
21393 ac_libobjs=
21394 ac_ltlibobjs=
21395 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21396   # 1. Remove the extension, and $U if already installed.
21397   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21398   ac_i=`echo "$ac_i" | sed "$ac_script"`
21399   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21400   #    will be set to the directory where LIBOBJS objects are built.
21401   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21402   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21403 done
21404 LIBOBJS=$ac_libobjs
21405
21406 LTLIBOBJS=$ac_ltlibobjs
21407
21408
21409 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21410   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21411 Usually this means the macro was only invoked conditionally." >&5
21412 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21413 Usually this means the macro was only invoked conditionally." >&2;}
21414    { (exit 1); exit 1; }; }
21415 fi
21416 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21417   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21418 Usually this means the macro was only invoked conditionally." >&5
21419 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21420 Usually this means the macro was only invoked conditionally." >&2;}
21421    { (exit 1); exit 1; }; }
21422 fi
21423 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21424   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21425 Usually this means the macro was only invoked conditionally." >&5
21426 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21427 Usually this means the macro was only invoked conditionally." >&2;}
21428    { (exit 1); exit 1; }; }
21429 fi
21430
21431 : ${CONFIG_STATUS=./config.status}
21432 ac_clean_files_save=$ac_clean_files
21433 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21434 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21435 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21436 cat >$CONFIG_STATUS <<_ACEOF
21437 #! $SHELL
21438 # Generated by $as_me.
21439 # Run this file to recreate the current configuration.
21440 # Compiler output produced by configure, useful for debugging
21441 # configure, is in config.log if it exists.
21442
21443 debug=false
21444 ac_cs_recheck=false
21445 ac_cs_silent=false
21446 SHELL=\${CONFIG_SHELL-$SHELL}
21447 _ACEOF
21448
21449 cat >>$CONFIG_STATUS <<\_ACEOF
21450 ## --------------------- ##
21451 ## M4sh Initialization.  ##
21452 ## --------------------- ##
21453
21454 # Be more Bourne compatible
21455 DUALCASE=1; export DUALCASE # for MKS sh
21456 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21457   emulate sh
21458   NULLCMD=:
21459   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21460   # is contrary to our usage.  Disable this feature.
21461   alias -g '${1+"$@"}'='"$@"'
21462   setopt NO_GLOB_SUBST
21463 else
21464   case `(set -o) 2>/dev/null` in
21465   *posix*) set -o posix ;;
21466 esac
21467
21468 fi
21469
21470
21471
21472
21473 # PATH needs CR
21474 # Avoid depending upon Character Ranges.
21475 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21476 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21477 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21478 as_cr_digits='0123456789'
21479 as_cr_alnum=$as_cr_Letters$as_cr_digits
21480
21481 # The user is always right.
21482 if test "${PATH_SEPARATOR+set}" != set; then
21483   echo "#! /bin/sh" >conf$$.sh
21484   echo  "exit 0"   >>conf$$.sh
21485   chmod +x conf$$.sh
21486   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21487     PATH_SEPARATOR=';'
21488   else
21489     PATH_SEPARATOR=:
21490   fi
21491   rm -f conf$$.sh
21492 fi
21493
21494 # Support unset when possible.
21495 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21496   as_unset=unset
21497 else
21498   as_unset=false
21499 fi
21500
21501
21502 # IFS
21503 # We need space, tab and new line, in precisely that order.  Quoting is
21504 # there to prevent editors from complaining about space-tab.
21505 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21506 # splitting by setting IFS to empty value.)
21507 as_nl='
21508 '
21509 IFS=" ""        $as_nl"
21510
21511 # Find who we are.  Look in the path if we contain no directory separator.
21512 case $0 in
21513   *[\\/]* ) as_myself=$0 ;;
21514   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21515 for as_dir in $PATH
21516 do
21517   IFS=$as_save_IFS
21518   test -z "$as_dir" && as_dir=.
21519   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21520 done
21521 IFS=$as_save_IFS
21522
21523      ;;
21524 esac
21525 # We did not find ourselves, most probably we were run as `sh COMMAND'
21526 # in which case we are not to be found in the path.
21527 if test "x$as_myself" = x; then
21528   as_myself=$0
21529 fi
21530 if test ! -f "$as_myself"; then
21531   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21532   { (exit 1); exit 1; }
21533 fi
21534
21535 # Work around bugs in pre-3.0 UWIN ksh.
21536 for as_var in ENV MAIL MAILPATH
21537 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21538 done
21539 PS1='$ '
21540 PS2='> '
21541 PS4='+ '
21542
21543 # NLS nuisances.
21544 for as_var in \
21545   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21546   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21547   LC_TELEPHONE LC_TIME
21548 do
21549   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21550     eval $as_var=C; export $as_var
21551   else
21552     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21553   fi
21554 done
21555
21556 # Required to use basename.
21557 if expr a : '\(a\)' >/dev/null 2>&1 &&
21558    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21559   as_expr=expr
21560 else
21561   as_expr=false
21562 fi
21563
21564 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21565   as_basename=basename
21566 else
21567   as_basename=false
21568 fi
21569
21570
21571 # Name of the executable.
21572 as_me=`$as_basename -- "$0" ||
21573 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21574          X"$0" : 'X\(//\)$' \| \
21575          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21576 echo X/"$0" |
21577     sed '/^.*\/\([^/][^/]*\)\/*$/{
21578             s//\1/
21579             q
21580           }
21581           /^X\/\(\/\/\)$/{
21582             s//\1/
21583             q
21584           }
21585           /^X\/\(\/\).*/{
21586             s//\1/
21587             q
21588           }
21589           s/.*/./; q'`
21590
21591 # CDPATH.
21592 $as_unset CDPATH
21593
21594
21595
21596   as_lineno_1=$LINENO
21597   as_lineno_2=$LINENO
21598   test "x$as_lineno_1" != "x$as_lineno_2" &&
21599   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21600
21601   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21602   # uniformly replaced by the line number.  The first 'sed' inserts a
21603   # line-number line after each line using $LINENO; the second 'sed'
21604   # does the real work.  The second script uses 'N' to pair each
21605   # line-number line with the line containing $LINENO, and appends
21606   # trailing '-' during substitution so that $LINENO is not a special
21607   # case at line end.
21608   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21609   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21610   # E. McMahon (1931-1989) for sed's syntax.  :-)
21611   sed -n '
21612     p
21613     /[$]LINENO/=
21614   ' <$as_myself |
21615     sed '
21616       s/[$]LINENO.*/&-/
21617       t lineno
21618       b
21619       :lineno
21620       N
21621       :loop
21622       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21623       t loop
21624       s/-\n.*//
21625     ' >$as_me.lineno &&
21626   chmod +x "$as_me.lineno" ||
21627     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21628    { (exit 1); exit 1; }; }
21629
21630   # Don't try to exec as it changes $[0], causing all sort of problems
21631   # (the dirname of $[0] is not the place where we might find the
21632   # original and so on.  Autoconf is especially sensitive to this).
21633   . "./$as_me.lineno"
21634   # Exit status is that of the last command.
21635   exit
21636 }
21637
21638
21639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21640   as_dirname=dirname
21641 else
21642   as_dirname=false
21643 fi
21644
21645 ECHO_C= ECHO_N= ECHO_T=
21646 case `echo -n x` in
21647 -n*)
21648   case `echo 'x\c'` in
21649   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21650   *)   ECHO_C='\c';;
21651   esac;;
21652 *)
21653   ECHO_N='-n';;
21654 esac
21655
21656 if expr a : '\(a\)' >/dev/null 2>&1 &&
21657    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21658   as_expr=expr
21659 else
21660   as_expr=false
21661 fi
21662
21663 rm -f conf$$ conf$$.exe conf$$.file
21664 if test -d conf$$.dir; then
21665   rm -f conf$$.dir/conf$$.file
21666 else
21667   rm -f conf$$.dir
21668   mkdir conf$$.dir
21669 fi
21670 echo >conf$$.file
21671 if ln -s conf$$.file conf$$ 2>/dev/null; then
21672   as_ln_s='ln -s'
21673   # ... but there are two gotchas:
21674   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21675   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21676   # In both cases, we have to default to `cp -p'.
21677   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21678     as_ln_s='cp -p'
21679 elif ln conf$$.file conf$$ 2>/dev/null; then
21680   as_ln_s=ln
21681 else
21682   as_ln_s='cp -p'
21683 fi
21684 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21685 rmdir conf$$.dir 2>/dev/null
21686
21687 if mkdir -p . 2>/dev/null; then
21688   as_mkdir_p=:
21689 else
21690   test -d ./-p && rmdir ./-p
21691   as_mkdir_p=false
21692 fi
21693
21694 if test -x / >/dev/null 2>&1; then
21695   as_test_x='test -x'
21696 else
21697   if ls -dL / >/dev/null 2>&1; then
21698     as_ls_L_option=L
21699   else
21700     as_ls_L_option=
21701   fi
21702   as_test_x='
21703     eval sh -c '\''
21704       if test -d "$1"; then
21705         test -d "$1/.";
21706       else
21707         case $1 in
21708         -*)set "./$1";;
21709         esac;
21710         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21711         ???[sx]*):;;*)false;;esac;fi
21712     '\'' sh
21713   '
21714 fi
21715 as_executable_p=$as_test_x
21716
21717 # Sed expression to map a string onto a valid CPP name.
21718 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21719
21720 # Sed expression to map a string onto a valid variable name.
21721 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21722
21723
21724 exec 6>&1
21725
21726 # Save the log message, to keep $[0] and so on meaningful, and to
21727 # report actual input values of CONFIG_FILES etc. instead of their
21728 # values after options handling.
21729 ac_log="
21730 This file was extended by $as_me, which was
21731 generated by GNU Autoconf 2.61.  Invocation command line was
21732
21733   CONFIG_FILES    = $CONFIG_FILES
21734   CONFIG_HEADERS  = $CONFIG_HEADERS
21735   CONFIG_LINKS    = $CONFIG_LINKS
21736   CONFIG_COMMANDS = $CONFIG_COMMANDS
21737   $ $0 $@
21738
21739 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21740 "
21741
21742 _ACEOF
21743
21744 cat >>$CONFIG_STATUS <<_ACEOF
21745 # Files that config.status was made for.
21746 config_files="$ac_config_files"
21747 config_headers="$ac_config_headers"
21748 config_commands="$ac_config_commands"
21749
21750 _ACEOF
21751
21752 cat >>$CONFIG_STATUS <<\_ACEOF
21753 ac_cs_usage="\
21754 \`$as_me' instantiates files from templates according to the
21755 current configuration.
21756
21757 Usage: $0 [OPTIONS] [FILE]...
21758
21759   -h, --help       print this help, then exit
21760   -V, --version    print version number and configuration settings, then exit
21761   -q, --quiet      do not print progress messages
21762   -d, --debug      don't remove temporary files
21763       --recheck    update $as_me by reconfiguring in the same conditions
21764   --file=FILE[:TEMPLATE]
21765                    instantiate the configuration file FILE
21766   --header=FILE[:TEMPLATE]
21767                    instantiate the configuration header FILE
21768
21769 Configuration files:
21770 $config_files
21771
21772 Configuration headers:
21773 $config_headers
21774
21775 Configuration commands:
21776 $config_commands
21777
21778 Report bugs to <bug-autoconf@gnu.org>."
21779
21780 _ACEOF
21781 cat >>$CONFIG_STATUS <<_ACEOF
21782 ac_cs_version="\\
21783 config.status
21784 configured by $0, generated by GNU Autoconf 2.61,
21785   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21786
21787 Copyright (C) 2006 Free Software Foundation, Inc.
21788 This config.status script is free software; the Free Software Foundation
21789 gives unlimited permission to copy, distribute and modify it."
21790
21791 ac_pwd='$ac_pwd'
21792 srcdir='$srcdir'
21793 INSTALL='$INSTALL'
21794 MKDIR_P='$MKDIR_P'
21795 _ACEOF
21796
21797 cat >>$CONFIG_STATUS <<\_ACEOF
21798 # If no file are specified by the user, then we need to provide default
21799 # value.  By we need to know if files were specified by the user.
21800 ac_need_defaults=:
21801 while test $# != 0
21802 do
21803   case $1 in
21804   --*=*)
21805     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21806     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21807     ac_shift=:
21808     ;;
21809   *)
21810     ac_option=$1
21811     ac_optarg=$2
21812     ac_shift=shift
21813     ;;
21814   esac
21815
21816   case $ac_option in
21817   # Handling of the options.
21818   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21819     ac_cs_recheck=: ;;
21820   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21821     echo "$ac_cs_version"; exit ;;
21822   --debug | --debu | --deb | --de | --d | -d )
21823     debug=: ;;
21824   --file | --fil | --fi | --f )
21825     $ac_shift
21826     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21827     ac_need_defaults=false;;
21828   --header | --heade | --head | --hea )
21829     $ac_shift
21830     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21831     ac_need_defaults=false;;
21832   --he | --h)
21833     # Conflict between --help and --header
21834     { echo "$as_me: error: ambiguous option: $1
21835 Try \`$0 --help' for more information." >&2
21836    { (exit 1); exit 1; }; };;
21837   --help | --hel | -h )
21838     echo "$ac_cs_usage"; exit ;;
21839   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21840   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21841     ac_cs_silent=: ;;
21842
21843   # This is an error.
21844   -*) { echo "$as_me: error: unrecognized option: $1
21845 Try \`$0 --help' for more information." >&2
21846    { (exit 1); exit 1; }; } ;;
21847
21848   *) ac_config_targets="$ac_config_targets $1"
21849      ac_need_defaults=false ;;
21850
21851   esac
21852   shift
21853 done
21854
21855 ac_configure_extra_args=
21856
21857 if $ac_cs_silent; then
21858   exec 6>/dev/null
21859   ac_configure_extra_args="$ac_configure_extra_args --silent"
21860 fi
21861
21862 _ACEOF
21863 cat >>$CONFIG_STATUS <<_ACEOF
21864 if \$ac_cs_recheck; then
21865   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21866   CONFIG_SHELL=$SHELL
21867   export CONFIG_SHELL
21868   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21869 fi
21870
21871 _ACEOF
21872 cat >>$CONFIG_STATUS <<\_ACEOF
21873 exec 5>>config.log
21874 {
21875   echo
21876   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21877 ## Running $as_me. ##
21878 _ASBOX
21879   echo "$ac_log"
21880 } >&5
21881
21882 _ACEOF
21883 cat >>$CONFIG_STATUS <<_ACEOF
21884 #
21885 # INIT-COMMANDS
21886 #
21887 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21888
21889 _ACEOF
21890
21891 cat >>$CONFIG_STATUS <<\_ACEOF
21892
21893 # Handling of arguments.
21894 for ac_config_target in $ac_config_targets
21895 do
21896   case $ac_config_target in
21897     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21898     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21899     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21900     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21901     "src/sympathy.h.head") CONFIG_FILES="$CONFIG_FILES src/sympathy.h.head" ;;
21902     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21903     "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
21904     "libsympathy-config.src") CONFIG_FILES="$CONFIG_FILES libsympathy-config.src" ;;
21905     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21906
21907   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21908 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21909    { (exit 1); exit 1; }; };;
21910   esac
21911 done
21912
21913
21914 # If the user did not use the arguments to specify the items to instantiate,
21915 # then the envvar interface is used.  Set only those that are not.
21916 # We use the long form for the default assignment because of an extremely
21917 # bizarre bug on SunOS 4.1.3.
21918 if $ac_need_defaults; then
21919   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21920   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21921   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21922 fi
21923
21924 # Have a temporary directory for convenience.  Make it in the build tree
21925 # simply because there is no reason against having it here, and in addition,
21926 # creating and moving files from /tmp can sometimes cause problems.
21927 # Hook for its removal unless debugging.
21928 # Note that there is a small window in which the directory will not be cleaned:
21929 # after its creation but before its name has been assigned to `$tmp'.
21930 $debug ||
21931 {
21932   tmp=
21933   trap 'exit_status=$?
21934   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21935 ' 0
21936   trap '{ (exit 1); exit 1; }' 1 2 13 15
21937 }
21938 # Create a (secure) tmp directory for tmp files.
21939
21940 {
21941   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21942   test -n "$tmp" && test -d "$tmp"
21943 }  ||
21944 {
21945   tmp=./conf$$-$RANDOM
21946   (umask 077 && mkdir "$tmp")
21947 } ||
21948 {
21949    echo "$me: cannot create a temporary directory in ." >&2
21950    { (exit 1); exit 1; }
21951 }
21952
21953 #
21954 # Set up the sed scripts for CONFIG_FILES section.
21955 #
21956
21957 # No need to generate the scripts if there are no CONFIG_FILES.
21958 # This happens for instance when ./config.status config.h
21959 if test -n "$CONFIG_FILES"; then
21960
21961 _ACEOF
21962
21963
21964
21965 ac_delim='%!_!# '
21966 for ac_last_try in false false false false false :; do
21967   cat >conf$$subs.sed <<_ACEOF
21968 SHELL!$SHELL$ac_delim
21969 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21970 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21971 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21972 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21973 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21974 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21975 exec_prefix!$exec_prefix$ac_delim
21976 prefix!$prefix$ac_delim
21977 program_transform_name!$program_transform_name$ac_delim
21978 bindir!$bindir$ac_delim
21979 sbindir!$sbindir$ac_delim
21980 libexecdir!$libexecdir$ac_delim
21981 datarootdir!$datarootdir$ac_delim
21982 datadir!$datadir$ac_delim
21983 sysconfdir!$sysconfdir$ac_delim
21984 sharedstatedir!$sharedstatedir$ac_delim
21985 localstatedir!$localstatedir$ac_delim
21986 includedir!$includedir$ac_delim
21987 oldincludedir!$oldincludedir$ac_delim
21988 docdir!$docdir$ac_delim
21989 infodir!$infodir$ac_delim
21990 htmldir!$htmldir$ac_delim
21991 dvidir!$dvidir$ac_delim
21992 pdfdir!$pdfdir$ac_delim
21993 psdir!$psdir$ac_delim
21994 libdir!$libdir$ac_delim
21995 localedir!$localedir$ac_delim
21996 mandir!$mandir$ac_delim
21997 DEFS!$DEFS$ac_delim
21998 ECHO_C!$ECHO_C$ac_delim
21999 ECHO_N!$ECHO_N$ac_delim
22000 ECHO_T!$ECHO_T$ac_delim
22001 LIBS!$LIBS$ac_delim
22002 build_alias!$build_alias$ac_delim
22003 host_alias!$host_alias$ac_delim
22004 target_alias!$target_alias$ac_delim
22005 CC!$CC$ac_delim
22006 CFLAGS!$CFLAGS$ac_delim
22007 LDFLAGS!$LDFLAGS$ac_delim
22008 CPPFLAGS!$CPPFLAGS$ac_delim
22009 ac_ct_CC!$ac_ct_CC$ac_delim
22010 EXEEXT!$EXEEXT$ac_delim
22011 OBJEXT!$OBJEXT$ac_delim
22012 LIBSYMPATHY_MAJOR_VERSION!$LIBSYMPATHY_MAJOR_VERSION$ac_delim
22013 LIBSYMPATHY_MINOR_VERSION!$LIBSYMPATHY_MINOR_VERSION$ac_delim
22014 LIBSYMPATHY_MICRO_VERSION!$LIBSYMPATHY_MICRO_VERSION$ac_delim
22015 LIBSYMPATHY_VERSION!$LIBSYMPATHY_VERSION$ac_delim
22016 LIBSYMPATHY_INTERFACE_VERSION_MIN!$LIBSYMPATHY_INTERFACE_VERSION_MIN$ac_delim
22017 LIBSYMPATHY_INTERFACE_VERSION_MAX!$LIBSYMPATHY_INTERFACE_VERSION_MAX$ac_delim
22018 LIBSYMPATHY_INTERFACE_REVISION!$LIBSYMPATHY_INTERFACE_REVISION$ac_delim
22019 LT_RELEASE!$LT_RELEASE$ac_delim
22020 LT_CURRENT!$LT_CURRENT$ac_delim
22021 LT_REVISION!$LT_REVISION$ac_delim
22022 LT_AGE!$LT_AGE$ac_delim
22023 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22024 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22025 INSTALL_DATA!$INSTALL_DATA$ac_delim
22026 am__isrc!$am__isrc$ac_delim
22027 CYGPATH_W!$CYGPATH_W$ac_delim
22028 PACKAGE!$PACKAGE$ac_delim
22029 VERSION!$VERSION$ac_delim
22030 ACLOCAL!$ACLOCAL$ac_delim
22031 AUTOCONF!$AUTOCONF$ac_delim
22032 AUTOMAKE!$AUTOMAKE$ac_delim
22033 AUTOHEADER!$AUTOHEADER$ac_delim
22034 MAKEINFO!$MAKEINFO$ac_delim
22035 install_sh!$install_sh$ac_delim
22036 STRIP!$STRIP$ac_delim
22037 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22038 mkdir_p!$mkdir_p$ac_delim
22039 AWK!$AWK$ac_delim
22040 SET_MAKE!$SET_MAKE$ac_delim
22041 am__leading_dot!$am__leading_dot$ac_delim
22042 AMTAR!$AMTAR$ac_delim
22043 am__tar!$am__tar$ac_delim
22044 am__untar!$am__untar$ac_delim
22045 DEPDIR!$DEPDIR$ac_delim
22046 am__include!$am__include$ac_delim
22047 am__quote!$am__quote$ac_delim
22048 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22049 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22050 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22051 CCDEPMODE!$CCDEPMODE$ac_delim
22052 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22053 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22054 build!$build$ac_delim
22055 build_cpu!$build_cpu$ac_delim
22056 build_vendor!$build_vendor$ac_delim
22057 build_os!$build_os$ac_delim
22058 host!$host$ac_delim
22059 host_cpu!$host_cpu$ac_delim
22060 host_vendor!$host_vendor$ac_delim
22061 host_os!$host_os$ac_delim
22062 SED!$SED$ac_delim
22063 GREP!$GREP$ac_delim
22064 EGREP!$EGREP$ac_delim
22065 _ACEOF
22066
22067   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22068     break
22069   elif $ac_last_try; then
22070     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22071 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22072    { (exit 1); exit 1; }; }
22073   else
22074     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22075   fi
22076 done
22077
22078 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22079 if test -n "$ac_eof"; then
22080   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22081   ac_eof=`expr $ac_eof + 1`
22082 fi
22083
22084 cat >>$CONFIG_STATUS <<_ACEOF
22085 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22087 _ACEOF
22088 sed '
22089 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22090 s/^/s,@/; s/!/@,|#_!!_#|/
22091 :n
22092 t n
22093 s/'"$ac_delim"'$/,g/; t
22094 s/$/\\/; p
22095 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22096 ' >>$CONFIG_STATUS <conf$$subs.sed
22097 rm -f conf$$subs.sed
22098 cat >>$CONFIG_STATUS <<_ACEOF
22099 CEOF$ac_eof
22100 _ACEOF
22101
22102
22103 ac_delim='%!_!# '
22104 for ac_last_try in false false false false false :; do
22105   cat >conf$$subs.sed <<_ACEOF
22106 LN_S!$LN_S$ac_delim
22107 ECHO!$ECHO$ac_delim
22108 AR!$AR$ac_delim
22109 RANLIB!$RANLIB$ac_delim
22110 DSYMUTIL!$DSYMUTIL$ac_delim
22111 NMEDIT!$NMEDIT$ac_delim
22112 CPP!$CPP$ac_delim
22113 CXX!$CXX$ac_delim
22114 CXXFLAGS!$CXXFLAGS$ac_delim
22115 ac_ct_CXX!$ac_ct_CXX$ac_delim
22116 CXXDEPMODE!$CXXDEPMODE$ac_delim
22117 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22118 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22119 CXXCPP!$CXXCPP$ac_delim
22120 F77!$F77$ac_delim
22121 FFLAGS!$FFLAGS$ac_delim
22122 ac_ct_F77!$ac_ct_F77$ac_delim
22123 LIBTOOL!$LIBTOOL$ac_delim
22124 MD5SUM!$MD5SUM$ac_delim
22125 G2_TM_H!$G2_TM_H$ac_delim
22126 G2_HAVE_STDINT_H!$G2_HAVE_STDINT_H$ac_delim
22127 G2_HAVE_SYS_INT_TYPES_H!$G2_HAVE_SYS_INT_TYPES_H$ac_delim
22128 G2_HAVE_UNISTD_H!$G2_HAVE_UNISTD_H$ac_delim
22129 G2_HAVE_MALLOC_H!$G2_HAVE_MALLOC_H$ac_delim
22130 G2_TIME_WITH_SYS_TIME!$G2_TIME_WITH_SYS_TIME$ac_delim
22131 G2_TM_IN_SYS_TIME!$G2_TM_IN_SYS_TIME$ac_delim
22132 LIBOBJS!$LIBOBJS$ac_delim
22133 LTLIBOBJS!$LTLIBOBJS$ac_delim
22134 _ACEOF
22135
22136   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
22137     break
22138   elif $ac_last_try; then
22139     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22140 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22141    { (exit 1); exit 1; }; }
22142   else
22143     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22144   fi
22145 done
22146
22147 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22148 if test -n "$ac_eof"; then
22149   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22150   ac_eof=`expr $ac_eof + 1`
22151 fi
22152
22153 cat >>$CONFIG_STATUS <<_ACEOF
22154 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22156 _ACEOF
22157 sed '
22158 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22159 s/^/s,@/; s/!/@,|#_!!_#|/
22160 :n
22161 t n
22162 s/'"$ac_delim"'$/,g/; t
22163 s/$/\\/; p
22164 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22165 ' >>$CONFIG_STATUS <conf$$subs.sed
22166 rm -f conf$$subs.sed
22167 cat >>$CONFIG_STATUS <<_ACEOF
22168 :end
22169 s/|#_!!_#|//g
22170 CEOF$ac_eof
22171 _ACEOF
22172
22173
22174 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22175 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22176 # trailing colons and then remove the whole line if VPATH becomes empty
22177 # (actually we leave an empty line to preserve line numbers).
22178 if test "x$srcdir" = x.; then
22179   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22180 s/:*\$(srcdir):*/:/
22181 s/:*\${srcdir}:*/:/
22182 s/:*@srcdir@:*/:/
22183 s/^\([^=]*=[     ]*\):*/\1/
22184 s/:*$//
22185 s/^[^=]*=[       ]*$//
22186 }'
22187 fi
22188
22189 cat >>$CONFIG_STATUS <<\_ACEOF
22190 fi # test -n "$CONFIG_FILES"
22191
22192
22193 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22194 do
22195   case $ac_tag in
22196   :[FHLC]) ac_mode=$ac_tag; continue;;
22197   esac
22198   case $ac_mode$ac_tag in
22199   :[FHL]*:*);;
22200   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22201 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22202    { (exit 1); exit 1; }; };;
22203   :[FH]-) ac_tag=-:-;;
22204   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22205   esac
22206   ac_save_IFS=$IFS
22207   IFS=:
22208   set x $ac_tag
22209   IFS=$ac_save_IFS
22210   shift
22211   ac_file=$1
22212   shift
22213
22214   case $ac_mode in
22215   :L) ac_source=$1;;
22216   :[FH])
22217     ac_file_inputs=
22218     for ac_f
22219     do
22220       case $ac_f in
22221       -) ac_f="$tmp/stdin";;
22222       *) # Look for the file first in the build tree, then in the source tree
22223          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22224          # because $ac_f cannot contain `:'.
22225          test -f "$ac_f" ||
22226            case $ac_f in
22227            [\\/$]*) false;;
22228            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22229            esac ||
22230            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22231 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22232    { (exit 1); exit 1; }; };;
22233       esac
22234       ac_file_inputs="$ac_file_inputs $ac_f"
22235     done
22236
22237     # Let's still pretend it is `configure' which instantiates (i.e., don't
22238     # use $as_me), people would be surprised to read:
22239     #    /* config.h.  Generated by config.status.  */
22240     configure_input="Generated from "`IFS=:
22241           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22242     if test x"$ac_file" != x-; then
22243       configure_input="$ac_file.  $configure_input"
22244       { echo "$as_me:$LINENO: creating $ac_file" >&5
22245 echo "$as_me: creating $ac_file" >&6;}
22246     fi
22247
22248     case $ac_tag in
22249     *:-:* | *:-) cat >"$tmp/stdin";;
22250     esac
22251     ;;
22252   esac
22253
22254   ac_dir=`$as_dirname -- "$ac_file" ||
22255 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22256          X"$ac_file" : 'X\(//\)[^/]' \| \
22257          X"$ac_file" : 'X\(//\)$' \| \
22258          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22259 echo X"$ac_file" |
22260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22261             s//\1/
22262             q
22263           }
22264           /^X\(\/\/\)[^/].*/{
22265             s//\1/
22266             q
22267           }
22268           /^X\(\/\/\)$/{
22269             s//\1/
22270             q
22271           }
22272           /^X\(\/\).*/{
22273             s//\1/
22274             q
22275           }
22276           s/.*/./; q'`
22277   { as_dir="$ac_dir"
22278   case $as_dir in #(
22279   -*) as_dir=./$as_dir;;
22280   esac
22281   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22282     as_dirs=
22283     while :; do
22284       case $as_dir in #(
22285       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22286       *) as_qdir=$as_dir;;
22287       esac
22288       as_dirs="'$as_qdir' $as_dirs"
22289       as_dir=`$as_dirname -- "$as_dir" ||
22290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22291          X"$as_dir" : 'X\(//\)[^/]' \| \
22292          X"$as_dir" : 'X\(//\)$' \| \
22293          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22294 echo X"$as_dir" |
22295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22296             s//\1/
22297             q
22298           }
22299           /^X\(\/\/\)[^/].*/{
22300             s//\1/
22301             q
22302           }
22303           /^X\(\/\/\)$/{
22304             s//\1/
22305             q
22306           }
22307           /^X\(\/\).*/{
22308             s//\1/
22309             q
22310           }
22311           s/.*/./; q'`
22312       test -d "$as_dir" && break
22313     done
22314     test -z "$as_dirs" || eval "mkdir $as_dirs"
22315   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22316 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22317    { (exit 1); exit 1; }; }; }
22318   ac_builddir=.
22319
22320 case "$ac_dir" in
22321 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22322 *)
22323   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22324   # A ".." for each directory in $ac_dir_suffix.
22325   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22326   case $ac_top_builddir_sub in
22327   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22328   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22329   esac ;;
22330 esac
22331 ac_abs_top_builddir=$ac_pwd
22332 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22333 # for backward compatibility:
22334 ac_top_builddir=$ac_top_build_prefix
22335
22336 case $srcdir in
22337   .)  # We are building in place.
22338     ac_srcdir=.
22339     ac_top_srcdir=$ac_top_builddir_sub
22340     ac_abs_top_srcdir=$ac_pwd ;;
22341   [\\/]* | ?:[\\/]* )  # Absolute name.
22342     ac_srcdir=$srcdir$ac_dir_suffix;
22343     ac_top_srcdir=$srcdir
22344     ac_abs_top_srcdir=$srcdir ;;
22345   *) # Relative name.
22346     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22347     ac_top_srcdir=$ac_top_build_prefix$srcdir
22348     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22349 esac
22350 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22351
22352
22353   case $ac_mode in
22354   :F)
22355   #
22356   # CONFIG_FILE
22357   #
22358
22359   case $INSTALL in
22360   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22361   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22362   esac
22363   ac_MKDIR_P=$MKDIR_P
22364   case $MKDIR_P in
22365   [\\/$]* | ?:[\\/]* ) ;;
22366   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22367   esac
22368 _ACEOF
22369
22370 cat >>$CONFIG_STATUS <<\_ACEOF
22371 # If the template does not know about datarootdir, expand it.
22372 # FIXME: This hack should be removed a few years after 2.60.
22373 ac_datarootdir_hack=; ac_datarootdir_seen=
22374
22375 case `sed -n '/datarootdir/ {
22376   p
22377   q
22378 }
22379 /@datadir@/p
22380 /@docdir@/p
22381 /@infodir@/p
22382 /@localedir@/p
22383 /@mandir@/p
22384 ' $ac_file_inputs` in
22385 *datarootdir*) ac_datarootdir_seen=yes;;
22386 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22387   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22388 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22389 _ACEOF
22390 cat >>$CONFIG_STATUS <<_ACEOF
22391   ac_datarootdir_hack='
22392   s&@datadir@&$datadir&g
22393   s&@docdir@&$docdir&g
22394   s&@infodir@&$infodir&g
22395   s&@localedir@&$localedir&g
22396   s&@mandir@&$mandir&g
22397     s&\\\${datarootdir}&$datarootdir&g' ;;
22398 esac
22399 _ACEOF
22400
22401 # Neutralize VPATH when `$srcdir' = `.'.
22402 # Shell code in configure.ac might set extrasub.
22403 # FIXME: do we really want to maintain this feature?
22404 cat >>$CONFIG_STATUS <<_ACEOF
22405   sed "$ac_vpsub
22406 $extrasub
22407 _ACEOF
22408 cat >>$CONFIG_STATUS <<\_ACEOF
22409 :t
22410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22411 s&@configure_input@&$configure_input&;t t
22412 s&@top_builddir@&$ac_top_builddir_sub&;t t
22413 s&@srcdir@&$ac_srcdir&;t t
22414 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22415 s&@top_srcdir@&$ac_top_srcdir&;t t
22416 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22417 s&@builddir@&$ac_builddir&;t t
22418 s&@abs_builddir@&$ac_abs_builddir&;t t
22419 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22420 s&@INSTALL@&$ac_INSTALL&;t t
22421 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22422 $ac_datarootdir_hack
22423 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22424
22425 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22426   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22427   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22428   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22429 which seems to be undefined.  Please make sure it is defined." >&5
22430 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22431 which seems to be undefined.  Please make sure it is defined." >&2;}
22432
22433   rm -f "$tmp/stdin"
22434   case $ac_file in
22435   -) cat "$tmp/out"; rm -f "$tmp/out";;
22436   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22437   esac
22438  ;;
22439   :H)
22440   #
22441   # CONFIG_HEADER
22442   #
22443 _ACEOF
22444
22445 # Transform confdefs.h into a sed script `conftest.defines', that
22446 # substitutes the proper values into config.h.in to produce config.h.
22447 rm -f conftest.defines conftest.tail
22448 # First, append a space to every undef/define line, to ease matching.
22449 echo 's/$/ /' >conftest.defines
22450 # Then, protect against being on the right side of a sed subst, or in
22451 # an unquoted here document, in config.status.  If some macros were
22452 # called several times there might be several #defines for the same
22453 # symbol, which is useless.  But do not sort them, since the last
22454 # AC_DEFINE must be honored.
22455 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22456 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22457 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22458 # PARAMS is the parameter list in the macro definition--in most cases, it's
22459 # just an empty string.
22460 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22461 ac_dB='\\)[      (].*,\\1define\\2'
22462 ac_dC=' '
22463 ac_dD=' ,'
22464
22465 uniq confdefs.h |
22466   sed -n '
22467         t rset
22468         :rset
22469         s/^[     ]*#[    ]*define[       ][      ]*//
22470         t ok
22471         d
22472         :ok
22473         s/[\\&,]/\\&/g
22474         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22475         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22476   ' >>conftest.defines
22477
22478 # Remove the space that was appended to ease matching.
22479 # Then replace #undef with comments.  This is necessary, for
22480 # example, in the case of _POSIX_SOURCE, which is predefined and required
22481 # on some systems where configure will not decide to define it.
22482 # (The regexp can be short, since the line contains either #define or #undef.)
22483 echo 's/ $//
22484 s,^[     #]*u.*,/* & */,' >>conftest.defines
22485
22486 # Break up conftest.defines:
22487 ac_max_sed_lines=50
22488
22489 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22490 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22491 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22492 # et cetera.
22493 ac_in='$ac_file_inputs'
22494 ac_out='"$tmp/out1"'
22495 ac_nxt='"$tmp/out2"'
22496
22497 while :
22498 do
22499   # Write a here document:
22500     cat >>$CONFIG_STATUS <<_ACEOF
22501     # First, check the format of the line:
22502     cat >"\$tmp/defines.sed" <<\\CEOF
22503 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22504 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22505 b
22506 :def
22507 _ACEOF
22508   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22509   echo 'CEOF
22510     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22511   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22512   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22513   grep . conftest.tail >/dev/null || break
22514   rm -f conftest.defines
22515   mv conftest.tail conftest.defines
22516 done
22517 rm -f conftest.defines conftest.tail
22518
22519 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22520 cat >>$CONFIG_STATUS <<\_ACEOF
22521   if test x"$ac_file" != x-; then
22522     echo "/* $configure_input  */" >"$tmp/config.h"
22523     cat "$ac_result" >>"$tmp/config.h"
22524     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22525       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22526 echo "$as_me: $ac_file is unchanged" >&6;}
22527     else
22528       rm -f $ac_file
22529       mv "$tmp/config.h" $ac_file
22530     fi
22531   else
22532     echo "/* $configure_input  */"
22533     cat "$ac_result"
22534   fi
22535   rm -f "$tmp/out12"
22536 # Compute $ac_file's index in $config_headers.
22537 _am_arg=$ac_file
22538 _am_stamp_count=1
22539 for _am_header in $config_headers :; do
22540   case $_am_header in
22541     $_am_arg | $_am_arg:* )
22542       break ;;
22543     * )
22544       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22545   esac
22546 done
22547 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22548 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22549          X"$_am_arg" : 'X\(//\)[^/]' \| \
22550          X"$_am_arg" : 'X\(//\)$' \| \
22551          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22552 echo X"$_am_arg" |
22553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22554             s//\1/
22555             q
22556           }
22557           /^X\(\/\/\)[^/].*/{
22558             s//\1/
22559             q
22560           }
22561           /^X\(\/\/\)$/{
22562             s//\1/
22563             q
22564           }
22565           /^X\(\/\).*/{
22566             s//\1/
22567             q
22568           }
22569           s/.*/./; q'`/stamp-h$_am_stamp_count
22570  ;;
22571
22572   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22573 echo "$as_me: executing $ac_file commands" >&6;}
22574  ;;
22575   esac
22576
22577
22578   case $ac_file$ac_mode in
22579     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22580   # Strip MF so we end up with the name of the file.
22581   mf=`echo "$mf" | sed -e 's/:.*$//'`
22582   # Check whether this is an Automake generated Makefile or not.
22583   # We used to match only the files named `Makefile.in', but
22584   # some people rename them; so instead we look at the file content.
22585   # Grep'ing the first line is not enough: some people post-process
22586   # each Makefile.in and add a new line on top of each file to say so.
22587   # Grep'ing the whole file is not good either: AIX grep has a line
22588   # limit of 2048, but all sed's we know have understand at least 4000.
22589   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22590     dirpart=`$as_dirname -- "$mf" ||
22591 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22592          X"$mf" : 'X\(//\)[^/]' \| \
22593          X"$mf" : 'X\(//\)$' \| \
22594          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22595 echo X"$mf" |
22596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22597             s//\1/
22598             q
22599           }
22600           /^X\(\/\/\)[^/].*/{
22601             s//\1/
22602             q
22603           }
22604           /^X\(\/\/\)$/{
22605             s//\1/
22606             q
22607           }
22608           /^X\(\/\).*/{
22609             s//\1/
22610             q
22611           }
22612           s/.*/./; q'`
22613   else
22614     continue
22615   fi
22616   # Extract the definition of DEPDIR, am__include, and am__quote
22617   # from the Makefile without running `make'.
22618   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22619   test -z "$DEPDIR" && continue
22620   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22621   test -z "am__include" && continue
22622   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22623   # When using ansi2knr, U may be empty or an underscore; expand it
22624   U=`sed -n 's/^U = //p' < "$mf"`
22625   # Find all dependency output files, they are included files with
22626   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22627   # simplest approach to changing $(DEPDIR) to its actual value in the
22628   # expansion.
22629   for file in `sed -n "
22630     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22631        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22632     # Make sure the directory exists.
22633     test -f "$dirpart/$file" && continue
22634     fdir=`$as_dirname -- "$file" ||
22635 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22636          X"$file" : 'X\(//\)[^/]' \| \
22637          X"$file" : 'X\(//\)$' \| \
22638          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22639 echo X"$file" |
22640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22641             s//\1/
22642             q
22643           }
22644           /^X\(\/\/\)[^/].*/{
22645             s//\1/
22646             q
22647           }
22648           /^X\(\/\/\)$/{
22649             s//\1/
22650             q
22651           }
22652           /^X\(\/\).*/{
22653             s//\1/
22654             q
22655           }
22656           s/.*/./; q'`
22657     { as_dir=$dirpart/$fdir
22658   case $as_dir in #(
22659   -*) as_dir=./$as_dir;;
22660   esac
22661   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22662     as_dirs=
22663     while :; do
22664       case $as_dir in #(
22665       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22666       *) as_qdir=$as_dir;;
22667       esac
22668       as_dirs="'$as_qdir' $as_dirs"
22669       as_dir=`$as_dirname -- "$as_dir" ||
22670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22671          X"$as_dir" : 'X\(//\)[^/]' \| \
22672          X"$as_dir" : 'X\(//\)$' \| \
22673          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22674 echo X"$as_dir" |
22675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22676             s//\1/
22677             q
22678           }
22679           /^X\(\/\/\)[^/].*/{
22680             s//\1/
22681             q
22682           }
22683           /^X\(\/\/\)$/{
22684             s//\1/
22685             q
22686           }
22687           /^X\(\/\).*/{
22688             s//\1/
22689             q
22690           }
22691           s/.*/./; q'`
22692       test -d "$as_dir" && break
22693     done
22694     test -z "$as_dirs" || eval "mkdir $as_dirs"
22695   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22696 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22697    { (exit 1); exit 1; }; }; }
22698     # echo "creating $dirpart/$file"
22699     echo '# dummy' > "$dirpart/$file"
22700   done
22701 done
22702  ;;
22703     "default":C) chmod +x libsympathy-config.src ;;
22704
22705   esac
22706 done # for ac_tag
22707
22708
22709 { (exit 0); exit 0; }
22710 _ACEOF
22711 chmod +x $CONFIG_STATUS
22712 ac_clean_files=$ac_clean_files_save
22713
22714
22715 # configure is writing to config.log, and then calls config.status.
22716 # config.status does its own redirection, appending to config.log.
22717 # Unfortunately, on DOS this fails, as config.log is still kept open
22718 # by configure, so config.status won't be able to write to it; its
22719 # output is simply discarded.  So we exec the FD to /dev/null,
22720 # effectively closing config.log, so it can be properly (re)opened and
22721 # appended to by config.status.  When coming back to configure, we
22722 # need to make the FD available again.
22723 if test "$no_create" != yes; then
22724   ac_cs_success=:
22725   ac_config_status_args=
22726   test "$silent" = yes &&
22727     ac_config_status_args="$ac_config_status_args --quiet"
22728   exec 5>/dev/null
22729   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22730   exec 5>>config.log
22731   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22732   # would make configure fail if this is the last instruction.
22733   $ac_cs_success || { (exit 1); exit 1; }
22734 fi
22735
22736